biblio-react 3.0.0-alpha288-popup → 3.0.0-alpha289-popup

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/index.js CHANGED
@@ -2,12 +2,12 @@ var o2 = Object.defineProperty;
2
2
  var s = (t, e) => o2(t, "name", { value: e, configurable: !0 });
3
3
  import { jsx as b, jsxs as H, Fragment as _n } from "react/jsx-runtime";
4
4
  import * as S from "react";
5
- import Tt, { forwardRef as yc, useContext as Je, createElement as o1, isValidElement as ur, cloneElement as zn, Children as Hl, createContext as Vt, useState as we, useMemo as ot, useRef as vn, useCallback as De, useEffect as Se, memo as ST, Fragment as kr, useImperativeHandle as i2, useDebugValue as xT, useId as s2 } from "react";
6
- import { MenuItem as eo, ListItemIcon as ts, ListItemText as ns, useMediaQuery as Pr, Typography as Jo, Box as Me, useTheme as $p, Card as tb, CardContent as CT, Stack as rs, Tooltip as Co, IconButton as Tn, createTheme as a2, ThemeProvider as l2, Chip as i1, Menu as da, alpha as c2, StyledEngineProvider as wT, CircularProgress as TT, DialogTitle as ug, Dialog as Ju, DialogContent as dg, Collapse as u2, List as ET, Switch as d2, DialogActions as s1, Button as a1, Paper as OT, Table as p2, TableHead as f2, TableRow as l1, TableCell as Oi, Skeleton as ki, TableBody as h2, ToggleButtonGroup as Lp, ToggleButton as cn, ListItem as m2, ListItemButton as g2, FormHelperText as y2 } from "@mui/material";
5
+ import Tt, { forwardRef as yc, useContext as Je, createElement as o1, isValidElement as ur, cloneElement as zn, Children as Hl, createContext as Vt, useState as we, useMemo as ot, useRef as vn, useCallback as De, useEffect as xe, memo as ST, Fragment as kr, useImperativeHandle as i2, useDebugValue as xT, useId as s2 } from "react";
6
+ import { MenuItem as eo, ListItemIcon as ts, ListItemText as ns, useMediaQuery as Pr, Typography as Jo, Box as Me, useTheme as $p, Card as tb, CardContent as CT, Stack as rs, Tooltip as Co, IconButton as Tn, createTheme as a2, ThemeProvider as l2, Chip as i1, Menu as da, alpha as c2, StyledEngineProvider as wT, CircularProgress as TT, DialogTitle as ug, Dialog as Ju, DialogContent as dg, Collapse as u2, List as ET, Switch as d2, DialogActions as s1, Button as a1, Paper as OT, Table as p2, TableHead as f2, TableRow as l1, TableCell as Oi, Skeleton as ki, TableBody as h2, ToggleButtonGroup as Lp, ToggleButton as ln, ListItem as m2, ListItemButton as g2, FormHelperText as y2 } from "@mui/material";
7
7
  import { useTranslate as Ut, useUserMenu as b2, useResourceDefinitions as nb, AppBar as v2, UserMenu as S2, Logout as x2, required as C2, minValue as w2, TopToolbar as kT, ShowButton as T2, useNotify as rb, useDataProvider as pi, useResourceContext as mt, useListContext as wo, useRedirect as Mo, useUnselectAll as E2, ResourceDefinitionContext as MT, useStoreContext as O2, NumberField as k2, DateField as c1, TextField as sl, ReferenceField as M2, useGetResourceLabel as Fp, ResourceContextProvider as ta, useRecordContext as gr, useCreatePath as R2, useResourceDefinition as ob, BulkActionsToolbar as RT, Button as En, useInput as Bp, useGetList as PT, Labeled as AT, Confirm as _p, Form as Da, SaveButton as bc, useGetOne as IT, useCreateController as P2, CreateContextProvider as A2, useDeleteWithConfirmController as I2, Toolbar as NT, ToolbarClasses as N2, useDelete as DT, useSaveContext as D2, Create as $2, Loading as ks, useListController as L2, ListContextProvider as F2, List as $T, Pagination as B2, Edit as _2, useEditContext as z2, useSidebarState as LT, Menu as V2, DashboardMenuItem as j2, MenuItemLink as FT, Layout as W2, FilterContext as H2, FilterButton as q2, sanitizeListRestProps as U2, useLogin as G2, TextInput as to, PasswordInput as BT, Show as K2, useShowContext as Y2, useSplatPathBase as J2, getTabbedFormTabFullPath as Xc, TabbedFormTabs as _T, defaultTheme as zT, FormTab as X2, BooleanField as Q2, ImageInput as Z2, ImageField as eA, FileInput as tA, BooleanInput as nA, ReferenceInput as VT, useChoicesContext as jT, AutocompleteInput as rA, SelectInput as oA, ReferenceArrayInput as iA, AutocompleteArrayInput as sA, SearchInput as aA, RadioButtonGroupInput as WT, useRecordSelection as HT, ListActions as lA, Datagrid as cA, SelectAllButton as uA, ValidationError as dA, FieldTitle as qT } from "react-admin";
8
8
  import { Link as pg, useNavigate as zp, useLocation as co, Routes as UT, Route as GT, useParams as KT, matchPath as ql } from "react-router-dom";
9
9
  import { useGridApiContext as fi, useGridSelector as pa, gridColumnVisibilityModelSelector as YT, gridColumnDefinitionsSelector as JT, GridColumnIcon as pA, gridSortModelSelector as fA, GridArrowUpwardIcon as hA, GridArrowDownwardIcon as mA, GridToolbarContainer as gA, GridClearIcon as yA, GridToolbarQuickFilter as bA, GridPivotIcon as vA, GridToolbarExportContainer as SA, useGridRootProps as xA, useGridApiRef as ib, gridClasses as fg, useKeepGroupedColumnsHidden as XT, GridActionsCellItem as Ga, isAutogeneratedRow as Qc, DataGridPremium as sb } from "@mui/x-data-grid-premium";
10
- import { useFormContext as en, useController as QT, useFormState as CA, useWatch as wA } from "react-hook-form";
10
+ import { useFormContext as fn, useController as QT, useFormState as CA, useWatch as wA } from "react-hook-form";
11
11
  import { useDispatch as Ro, useSelector as ab } from "react-redux";
12
12
  import { isAfter as TA } from "date-fns";
13
13
  import { useMutation as EA, useQueryClient as lb } from "@tanstack/react-query";
@@ -1841,7 +1841,7 @@ var $I = /* @__PURE__ */ (function() {
1841
1841
  }, "flush"), t;
1842
1842
  })(), gn = "-ms-", Zu = "-moz-", ct = "-webkit-", cE = "comm", pb = "rule", fb = "decl", LI = "@import", uE = "@keyframes", FI = "@layer", BI = Math.abs, Xp = String.fromCharCode, _I = Object.assign;
1843
1843
  function zI(t, e) {
1844
- return sn(t, 0) ^ 45 ? (((e << 2 ^ sn(t, 0)) << 2 ^ sn(t, 1)) << 2 ^ sn(t, 2)) << 2 ^ sn(t, 3) : 0;
1844
+ return on(t, 0) ^ 45 ? (((e << 2 ^ on(t, 0)) << 2 ^ on(t, 1)) << 2 ^ on(t, 2)) << 2 ^ on(t, 3) : 0;
1845
1845
  }
1846
1846
  s(zI, "hash$2");
1847
1847
  function dE(t) {
@@ -1860,10 +1860,10 @@ function yg(t, e) {
1860
1860
  return t.indexOf(e);
1861
1861
  }
1862
1862
  s(yg, "indexof");
1863
- function sn(t, e) {
1863
+ function on(t, e) {
1864
1864
  return t.charCodeAt(e) | 0;
1865
1865
  }
1866
- s(sn, "charat");
1866
+ s(on, "charat");
1867
1867
  function Ul(t, e, n) {
1868
1868
  return t.slice(e, n);
1869
1869
  }
@@ -1898,15 +1898,15 @@ function WI() {
1898
1898
  }
1899
1899
  s(WI, "char");
1900
1900
  function HI() {
1901
- return Wt = Hn > 0 ? sn($a, --Hn) : 0, fa--, Wt === 10 && (fa = 1, Qp--), Wt;
1901
+ return Wt = Hn > 0 ? on($a, --Hn) : 0, fa--, Wt === 10 && (fa = 1, Qp--), Wt;
1902
1902
  }
1903
1903
  s(HI, "prev");
1904
1904
  function Xn() {
1905
- return Wt = Hn < pE ? sn($a, Hn++) : 0, fa++, Wt === 10 && (fa = 1, Qp++), Wt;
1905
+ return Wt = Hn < pE ? on($a, Hn++) : 0, fa++, Wt === 10 && (fa = 1, Qp++), Wt;
1906
1906
  }
1907
1907
  s(Xn, "next");
1908
1908
  function no() {
1909
- return sn($a, Hn);
1909
+ return on($a, Hn);
1910
1910
  }
1911
1911
  s(no, "peek");
1912
1912
  function Fu() {
@@ -2025,7 +2025,7 @@ function _u(t, e, n, r, o, i, a, l, u) {
2025
2025
  switch (y = T, T = Xn()) {
2026
2026
  // (
2027
2027
  case 40:
2028
- if (y != 108 && sn(R, f - 1) == 58) {
2028
+ if (y != 108 && on(R, f - 1) == 58) {
2029
2029
  yg(R += ut(Bu(T), "&", "&\f"), "&\f") != -1 && (x = -1);
2030
2030
  break;
2031
2031
  }
@@ -2082,7 +2082,7 @@ function _u(t, e, n, r, o, i, a, l, u) {
2082
2082
  if (p === 0)
2083
2083
  _u(R, e, k, k, C, i, f, l, w);
2084
2084
  else
2085
- switch (h === 99 && sn(R, 3) === 110 ? 100 : h) {
2085
+ switch (h === 99 && on(R, 3) === 110 ? 100 : h) {
2086
2086
  // d l m s
2087
2087
  case 100:
2088
2088
  case 108:
@@ -2334,13 +2334,13 @@ function gE(t, e) {
2334
2334
  case 5789:
2335
2335
  case 5021:
2336
2336
  case 4765:
2337
- if (Kr(t) - 1 - e > 6) switch (sn(t, e + 1)) {
2337
+ if (Kr(t) - 1 - e > 6) switch (on(t, e + 1)) {
2338
2338
  // (m)ax-content, (m)in-content
2339
2339
  case 109:
2340
- if (sn(t, e + 4) !== 45) break;
2340
+ if (on(t, e + 4) !== 45) break;
2341
2341
  // (f)ill-available, (f)it-content
2342
2342
  case 102:
2343
- return ut(t, /(.+:)(.+)-([^]+)/, "$1" + ct + "$2-$3$1" + Zu + (sn(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
2343
+ return ut(t, /(.+:)(.+)-([^]+)/, "$1" + ct + "$2-$3$1" + Zu + (on(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
2344
2344
  // (s)tretch
2345
2345
  case 115:
2346
2346
  return ~yg(t, "stretch") ? gE(ut(t, "stretch", "fill-available"), e) + t : t;
@@ -2348,21 +2348,21 @@ function gE(t, e) {
2348
2348
  break;
2349
2349
  // position: sticky
2350
2350
  case 4949:
2351
- if (sn(t, e + 1) !== 115) break;
2351
+ if (on(t, e + 1) !== 115) break;
2352
2352
  // display: (flex|inline-flex)
2353
2353
  case 6444:
2354
- switch (sn(t, Kr(t) - 3 - (~yg(t, "!important") && 10))) {
2354
+ switch (on(t, Kr(t) - 3 - (~yg(t, "!important") && 10))) {
2355
2355
  // stic(k)y
2356
2356
  case 107:
2357
2357
  return ut(t, ":", ":" + ct) + t;
2358
2358
  // (inline-)?fl(e)x
2359
2359
  case 101:
2360
- return ut(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + ct + (sn(t, 14) === 45 ? "inline-" : "") + "box$3$1" + ct + "$2$3$1" + gn + "$2box$3") + t;
2360
+ return ut(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + ct + (on(t, 14) === 45 ? "inline-" : "") + "box$3$1" + ct + "$2$3$1" + gn + "$2box$3") + t;
2361
2361
  }
2362
2362
  break;
2363
2363
  // writing-mode
2364
2364
  case 5936:
2365
- switch (sn(t, e + 11)) {
2365
+ switch (on(t, e + 11)) {
2366
2366
  // vertical-l(r)
2367
2367
  case 114:
2368
2368
  return ct + t + gn + ut(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
@@ -3486,15 +3486,15 @@ const zN = {
3486
3486
  required: "required",
3487
3487
  selected: "selected"
3488
3488
  };
3489
- function Ee(t, e, n = "Mui") {
3489
+ function Oe(t, e, n = "Mui") {
3490
3490
  const r = zN[e];
3491
3491
  return r ? `${n}-${r}` : `${nE.generate(t)}-${e}`;
3492
3492
  }
3493
- s(Ee, "generateUtilityClass");
3493
+ s(Oe, "generateUtilityClass");
3494
3494
  function Re(t, e, n = "Mui") {
3495
3495
  const r = {};
3496
3496
  return e.forEach((o) => {
3497
- r[o] = Ee(t, o, n);
3497
+ r[o] = Oe(t, o, n);
3498
3498
  }), r;
3499
3499
  }
3500
3500
  s(Re, "generateUtilityClasses");
@@ -3757,10 +3757,10 @@ function tf({
3757
3757
  });
3758
3758
  }
3759
3759
  s(tf, "useThemeProps$1");
3760
- const fn = typeof window < "u" ? S.useLayoutEffect : S.useEffect;
3760
+ const pn = typeof window < "u" ? S.useLayoutEffect : S.useEffect;
3761
3761
  function YN(t, e, n, r, o) {
3762
3762
  const [i, a] = S.useState(() => o && n ? n(t).matches : r ? r(t).matches : e);
3763
- return fn(() => {
3763
+ return pn(() => {
3764
3764
  if (!n)
3765
3765
  return;
3766
3766
  const l = n(t), u = /* @__PURE__ */ s(() => {
@@ -4124,7 +4124,7 @@ function pD(t) {
4124
4124
  modularCssLayers: r
4125
4125
  } = t;
4126
4126
  let o = "mui.global, mui.components, mui.theme, mui.custom, mui.sx";
4127
- return !r || e !== null ? o = "" : typeof r == "string" ? o = r.replace(/mui(?!\.)/g, o) : o = `@layer ${o};`, fn(() => {
4127
+ return !r || e !== null ? o = "" : typeof r == "string" ? o = r.replace(/mui(?!\.)/g, o) : o = `@layer ${o};`, pn(() => {
4128
4128
  const i = document.querySelector("head");
4129
4129
  if (!i)
4130
4130
  return;
@@ -4509,10 +4509,10 @@ function xD(t) {
4509
4509
  storageWindow: N,
4510
4510
  noSsr: $
4511
4511
  });
4512
- let Ae = re, Oe = Ce;
4513
- z && (Ae = j.mode, Oe = j.colorScheme), process.env.NODE_ENV !== "production" && I && !U.vars && console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.", "Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
4512
+ let Ae = re, Te = Ce;
4513
+ z && (Ae = j.mode, Te = j.colorScheme), process.env.NODE_ENV !== "production" && I && !U.vars && console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.", "Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
4514
4514
  `));
4515
- let Ie = Oe || U.defaultColorScheme;
4515
+ let Ie = Te || U.defaultColorScheme;
4516
4516
  U.vars && !I && (Ie = U.defaultColorScheme);
4517
4517
  const Fe = S.useMemo(() => {
4518
4518
  const Ge = U.generateThemeVars?.() || U.vars, Be = {
@@ -4533,24 +4533,24 @@ function xD(t) {
4533
4533
  }
4534
4534
  return l ? l(Be) : Be;
4535
4535
  }, [U, Ie, q, J, K]), fe = U.colorSchemeSelector;
4536
- fn(() => {
4537
- if (Oe && D && fe && fe !== "media") {
4536
+ pn(() => {
4537
+ if (Te && D && fe && fe !== "media") {
4538
4538
  const Ge = fe;
4539
4539
  let Be = fe;
4540
4540
  if (Ge === "class" && (Be = ".%s"), Ge === "data" && (Be = "[data-%s]"), Ge?.startsWith("data-") && !Ge.includes("%s") && (Be = `[${Ge}="%s"]`), Be.startsWith("."))
4541
- D.classList.remove(...G.map((et) => Be.substring(1).replace("%s", et))), D.classList.add(Be.substring(1).replace("%s", Oe));
4541
+ D.classList.remove(...G.map((et) => Be.substring(1).replace("%s", et))), D.classList.add(Be.substring(1).replace("%s", Te));
4542
4542
  else {
4543
- const et = Be.replace("%s", Oe).match(/\[([^\]]+)\]/);
4543
+ const et = Be.replace("%s", Te).match(/\[([^\]]+)\]/);
4544
4544
  if (et) {
4545
4545
  const [tt, Xe] = et[1].split("=");
4546
4546
  Xe || G.forEach((Ne) => {
4547
- D.removeAttribute(tt.replace(Oe, Ne));
4547
+ D.removeAttribute(tt.replace(Te, Ne));
4548
4548
  }), D.setAttribute(tt, Xe ? Xe.replace(/"|'/g, "") : "");
4549
4549
  } else
4550
- D.setAttribute(Be, Oe);
4550
+ D.setAttribute(Be, Te);
4551
4551
  }
4552
4552
  }
4553
- }, [Oe, fe, D, G]), S.useEffect(() => {
4553
+ }, [Te, fe, D, G]), S.useEffect(() => {
4554
4554
  let Ge;
4555
4555
  if (k && L.current && P) {
4556
4556
  const Be = P.createElement("style");
@@ -4561,12 +4561,12 @@ function xD(t) {
4561
4561
  return () => {
4562
4562
  clearTimeout(Ge);
4563
4563
  };
4564
- }, [Oe, k, P]), S.useEffect(() => (L.current = !0, () => {
4564
+ }, [Te, k, P]), S.useEffect(() => (L.current = !0, () => {
4565
4565
  L.current = !1;
4566
4566
  }), []);
4567
4567
  const me = S.useMemo(() => ({
4568
4568
  allColorSchemes: G,
4569
- colorScheme: Oe,
4569
+ colorScheme: Te,
4570
4570
  darkColorScheme: ge,
4571
4571
  lightColorScheme: X,
4572
4572
  mode: Ae,
@@ -4576,7 +4576,7 @@ function xD(t) {
4576
4576
  `)), B(Ge);
4577
4577
  },
4578
4578
  systemMode: ie
4579
- }), [G, Oe, ge, X, Ae, ue, B, ie, Fe.colorSchemeSelector]);
4579
+ }), [G, Te, ge, X, Ae, ue, B, ie, Fe.colorSchemeSelector]);
4580
4580
  let le = !0;
4581
4581
  (O || U.cssVariables === !1 || z && V?.cssVarPrefix === K) && (le = !1);
4582
4582
  const Ot = /* @__PURE__ */ H(S.Fragment, {
@@ -5049,7 +5049,7 @@ function WD(t = {}) {
5049
5049
  } = d, v = {
5050
5050
  root: ["root", f && "container", y !== "wrap" && `wrap-xs-${String(y)}`, ...FD(h), ...$D(g), ...f ? LD(m, p.breakpoints.keys[0]) : []]
5051
5051
  };
5052
- return ke(v, (x) => Ee(o, x), {});
5052
+ return ke(v, (x) => Oe(o, x), {});
5053
5053
  }, "useUtilityClasses");
5054
5054
  function a(d, p, f = () => !0) {
5055
5055
  const h = {};
@@ -5198,7 +5198,7 @@ function JD(t = {}) {
5198
5198
  componentName: r = "MuiStack"
5199
5199
  } = t, o = /* @__PURE__ */ s(() => ke({
5200
5200
  root: ["root"]
5201
- }, (u) => Ee(r, u), {}), "useUtilityClasses"), i = e(YD), a = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(u, d) {
5201
+ }, (u) => Oe(r, u), {}), "useUtilityClasses"), i = e(YD), a = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(u, d) {
5202
5202
  const p = n(u), f = Jp(p), {
5203
5203
  component: h = "div",
5204
5204
  direction: m = "column",
@@ -5878,7 +5878,7 @@ function wg(t = {}, ...e) {
5878
5878
  const E = v[T];
5879
5879
  if (y.includes(T) && Object.keys(E).length > 0) {
5880
5880
  if (process.env.NODE_ENV !== "production") {
5881
- const C = Ee("", T);
5881
+ const C = Oe("", T);
5882
5882
  console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${T}\` internal state.`, "You can not override it like this: ", JSON.stringify(v, null, 2), "", `Instead, you need to use the '&.${C}' syntax:`, JSON.stringify({
5883
5883
  root: {
5884
5884
  [`&.${C}`]: E
@@ -6244,10 +6244,10 @@ function UE(t) {
6244
6244
  return t !== "ownerState" && t !== "theme" && t !== "sx" && t !== "as";
6245
6245
  }
6246
6246
  s(UE, "slotShouldForwardProp");
6247
- const tn = /* @__PURE__ */ s((t) => UE(t) && t !== "classes", "rootShouldForwardProp"), ee = kE({
6247
+ const en = /* @__PURE__ */ s((t) => UE(t) && t !== "classes", "rootShouldForwardProp"), ee = kE({
6248
6248
  themeId: Mr,
6249
6249
  defaultTheme: af,
6250
- rootShouldForwardProp: tn
6250
+ rootShouldForwardProp: en
6251
6251
  });
6252
6252
  function M$(t) {
6253
6253
  return /* @__PURE__ */ s(function(n) {
@@ -6274,7 +6274,7 @@ function Pe(t) {
6274
6274
  }
6275
6275
  s(Pe, "useDefaultProps");
6276
6276
  function P$(t) {
6277
- return Ee("MuiSvgIcon", t);
6277
+ return Oe("MuiSvgIcon", t);
6278
6278
  }
6279
6279
  s(P$, "getSvgIconUtilityClass");
6280
6280
  Re("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
@@ -6528,10 +6528,10 @@ function Kt(t) {
6528
6528
  return t && t.ownerDocument || document;
6529
6529
  }
6530
6530
  s(Kt, "ownerDocument");
6531
- function pn(t) {
6531
+ function dn(t) {
6532
6532
  return Kt(t).defaultView || window;
6533
6533
  }
6534
- s(pn, "ownerWindow");
6534
+ s(dn, "ownerWindow");
6535
6535
  function N$(t, e) {
6536
6536
  if (process.env.NODE_ENV === "production")
6537
6537
  return () => () => null;
@@ -6590,7 +6590,7 @@ function rd(t) {
6590
6590
  s(rd, "useControlled");
6591
6591
  function On(t) {
6592
6592
  const e = S.useRef(t);
6593
- return fn(() => {
6593
+ return pn(() => {
6594
6594
  e.current = t;
6595
6595
  }), S.useRef((...n) => (
6596
6596
  // @ts-expect-error hide `this`
@@ -6835,7 +6835,7 @@ function JE(t = window) {
6835
6835
  s(JE, "getScrollbarSize");
6836
6836
  function H$(t) {
6837
6837
  const e = Kt(t);
6838
- return e.body === t ? pn(t).innerWidth > e.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
6838
+ return e.body === t ? dn(t).innerWidth > e.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
6839
6839
  }
6840
6840
  s(H$, "isOverflowing");
6841
6841
  function Sl(t, e) {
@@ -6843,7 +6843,7 @@ function Sl(t, e) {
6843
6843
  }
6844
6844
  s(Sl, "ariaHidden");
6845
6845
  function cS(t) {
6846
- return parseFloat(pn(t).getComputedStyle(t).paddingRight) || 0;
6846
+ return parseFloat(dn(t).getComputedStyle(t).paddingRight) || 0;
6847
6847
  }
6848
6848
  s(cS, "getPaddingRight");
6849
6849
  function q$(t) {
@@ -6868,7 +6868,7 @@ function U$(t, e) {
6868
6868
  const n = [], r = t.container;
6869
6869
  if (!e.disableScrollLock) {
6870
6870
  if (H$(r)) {
6871
- const a = JE(pn(r));
6871
+ const a = JE(dn(r));
6872
6872
  n.push({
6873
6873
  value: r.style.paddingRight,
6874
6874
  property: "padding-right",
@@ -6887,7 +6887,7 @@ function U$(t, e) {
6887
6887
  if (r.parentNode instanceof DocumentFragment)
6888
6888
  i = Kt(r).body;
6889
6889
  else {
6890
- const a = r.parentElement, l = pn(r);
6890
+ const a = r.parentElement, l = dn(r);
6891
6891
  i = a?.nodeName === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : r;
6892
6892
  }
6893
6893
  n.push({
@@ -7194,9 +7194,9 @@ const Zl = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
7194
7194
  container: o,
7195
7195
  disablePortal: i = !1
7196
7196
  } = e, [a, l] = S.useState(null), u = Ft(/* @__PURE__ */ S.isValidElement(r) ? Ps(r) : null, n);
7197
- if (fn(() => {
7197
+ if (pn(() => {
7198
7198
  i || l(tL(o) || document.body);
7199
- }, [o, i]), fn(() => {
7199
+ }, [o, i]), pn(() => {
7200
7200
  if (a && !i)
7201
7201
  return lS(n, a), () => {
7202
7202
  lS(n, null);
@@ -8100,7 +8100,7 @@ process.env.NODE_ENV !== "production" && (sd.propTypes = {
8100
8100
  })])
8101
8101
  });
8102
8102
  function dL(t) {
8103
- return Ee("MuiBackdrop", t);
8103
+ return Oe("MuiBackdrop", t);
8104
8104
  }
8105
8105
  s(dL, "getBackdropUtilityClass");
8106
8106
  Re("MuiBackdrop", ["root", "invisible"]);
@@ -8383,7 +8383,7 @@ function gL(t) {
8383
8383
  }
8384
8384
  s(gL, "useModal");
8385
8385
  function yL(t) {
8386
- return Ee("MuiModal", t);
8386
+ return Oe("MuiModal", t);
8387
8387
  }
8388
8388
  s(yL, "getModalUtilityClass");
8389
8389
  Re("MuiModal", ["root", "hidden", "backdrop"]);
@@ -8752,7 +8752,7 @@ iO.isRequired = oO;
8752
8752
  Rg.isRequired = Rg;
8753
8753
  const Db = process.env.NODE_ENV === "production" ? Rg : iO;
8754
8754
  function CL(t) {
8755
- return Ee("MuiPaper", t);
8755
+ return Oe("MuiPaper", t);
8756
8756
  }
8757
8757
  s(CL, "getPaperUtilityClass");
8758
8758
  Re("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
@@ -8897,7 +8897,7 @@ process.env.NODE_ENV !== "production" && (Lr.propTypes = {
8897
8897
  variant: c.oneOfType([c.oneOf(["elevation", "outlined"]), c.string])
8898
8898
  });
8899
8899
  function EL(t) {
8900
- return Ee("MuiDialog", t);
8900
+ return Oe("MuiDialog", t);
8901
8901
  }
8902
8902
  s(EL, "getDialogUtilityClass");
8903
8903
  const vh = Re("MuiDialog", ["root", "backdrop", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), $b = /* @__PURE__ */ S.createContext({});
@@ -9350,7 +9350,7 @@ process.env.NODE_ENV !== "production" && (Ac.propTypes = {
9350
9350
  TransitionProps: c.object
9351
9351
  });
9352
9352
  function AL(t) {
9353
- return Ee("MuiDialogActions", t);
9353
+ return Oe("MuiDialogActions", t);
9354
9354
  }
9355
9355
  s(AL, "getDialogActionsUtilityClass");
9356
9356
  Re("MuiDialogActions", ["root", "spacing"]);
@@ -9434,12 +9434,12 @@ process.env.NODE_ENV !== "production" && (Ic.propTypes = {
9434
9434
  sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
9435
9435
  });
9436
9436
  function DL(t) {
9437
- return Ee("MuiDialogContent", t);
9437
+ return Oe("MuiDialogContent", t);
9438
9438
  }
9439
9439
  s(DL, "getDialogContentUtilityClass");
9440
9440
  Re("MuiDialogContent", ["root", "dividers"]);
9441
9441
  function $L(t) {
9442
- return Ee("MuiDialogTitle", t);
9442
+ return Oe("MuiDialogTitle", t);
9443
9443
  }
9444
9444
  s($L, "getDialogTitleUtilityClass");
9445
9445
  const LL = Re("MuiDialogTitle", ["root"]), FL = /* @__PURE__ */ s((t) => {
@@ -9550,7 +9550,7 @@ function qn(t = []) {
9550
9550
  }
9551
9551
  s(qn, "createSimplePaletteValueFilter");
9552
9552
  function VL(t) {
9553
- return Ee("MuiTypography", t);
9553
+ return Oe("MuiTypography", t);
9554
9554
  }
9555
9555
  s(VL, "getTypographyUtilityClass");
9556
9556
  const hS = Re("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]), jL = {
@@ -9795,7 +9795,7 @@ process.env.NODE_ENV !== "production" && (Yt.propTypes = {
9795
9795
  variantMapping: c.object
9796
9796
  });
9797
9797
  function UL(t) {
9798
- return Ee("MuiDialogContentText", t);
9798
+ return Oe("MuiDialogContentText", t);
9799
9799
  }
9800
9800
  s(UL, "getDialogContentTextUtilityClass");
9801
9801
  Re("MuiDialogContentText", ["root"]);
@@ -9811,7 +9811,7 @@ const GL = /* @__PURE__ */ s((t) => {
9811
9811
  ...r
9812
9812
  };
9813
9813
  }, "useUtilityClasses$G"), KL = ee(Yt, {
9814
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
9814
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
9815
9815
  name: "MuiDialogContentText",
9816
9816
  slot: "Root"
9817
9817
  })({}), Lb = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
@@ -9994,7 +9994,7 @@ const sO = Vt(), $c = /* @__PURE__ */ s(({ children: t }) => {
9994
9994
  return !m && E === "pivot" ? "grilla" : E;
9995
9995
  });
9996
9996
  }, [m]);
9997
- Se(() => {
9997
+ xe(() => {
9998
9998
  !m && f === "pivot" && h("grilla");
9999
9999
  }, [m, f]);
10000
10000
  const v = ot(
@@ -10892,9 +10892,9 @@ const Ig = /* @__PURE__ */ s((t = "scope") => (bS += 1, `${t}-${bS}`), "createRe
10892
10892
  const [n, r] = we({}), o = Ro(), i = t.scopeIdentity ?? t.estado ?? "ficha", a = vn(i), [l, u] = we(
10893
10893
  () => Ig("ficha")
10894
10894
  );
10895
- Se(() => {
10895
+ xe(() => {
10896
10896
  a.current !== i && (a.current = i, o(Ag(l)), r({}), u(Ig("ficha")));
10897
- }, [o, l, i]), Se(
10897
+ }, [o, l, i]), xe(
10898
10898
  () => () => {
10899
10899
  o(Ag(l));
10900
10900
  },
@@ -10986,7 +10986,7 @@ const Ig = /* @__PURE__ */ s((t = "scope") => (bS += 1, `${t}-${bS}`), "createRe
10986
10986
  validate: Ce,
10987
10987
  required: ue,
10988
10988
  ...Ae
10989
- } = Q, Oe = ie || Z, Ie = ge || G, Fe = X || oe, fe = x !== void 0 ? x : ue !== void 0 ? ue : h ? !0 : l || U === void 0 ? M : U, me = v !== void 0 ? v : re !== void 0 ? re : f ? !0 : q, le = g !== void 0 ? g : B !== void 0 ? B : m ? !0 : K, Ot = ot(() => {
10989
+ } = Q, Te = ie || Z, Ie = ge || G, Fe = X || oe, fe = x !== void 0 ? x : ue !== void 0 ? ue : h ? !0 : l || U === void 0 ? M : U, me = v !== void 0 ? v : re !== void 0 ? re : f ? !0 : q, le = g !== void 0 ? g : B !== void 0 ? B : m ? !0 : K, Ot = ot(() => {
10990
10990
  const Xe = Array.isArray(O) ? O : [O], Ne = Array.isArray(F) ? F : [F], Bt = Array.isArray(Ce) ? Ce : [Ce];
10991
10991
  let at = [
10992
10992
  ...Xe,
@@ -11003,9 +11003,9 @@ const Ig = /* @__PURE__ */ s((t = "scope") => (bS += 1, `${t}-${bS}`), "createRe
11003
11003
  fe
11004
11004
  ]), Ge = De(
11005
11005
  (Xe) => {
11006
- Oe && Oe(ne, n, Xe);
11006
+ Te && Te(ne, n, Xe);
11007
11007
  },
11008
- [Oe, ne, n]
11008
+ [Te, ne, n]
11009
11009
  ), Be = De(
11010
11010
  (Xe) => Ie && Ie(ne, n, Xe),
11011
11011
  [Ie, ne, n]
@@ -11402,8 +11402,8 @@ const Ig = /* @__PURE__ */ s((t = "scope") => (bS += 1, `${t}-${bS}`), "createRe
11402
11402
  asisEtr: v
11403
11403
  };
11404
11404
  }, "useUtilsSubmit"), Ya = /* @__PURE__ */ new Map(), Fr = /* @__PURE__ */ s((t) => {
11405
- const e = mt(t), n = t?.id ?? "new", r = `${e}-${n}`, o = en();
11406
- Se(() => {
11405
+ const e = mt(t), n = t?.id ?? "new", r = `${e}-${n}`, o = fn();
11406
+ xe(() => {
11407
11407
  const I = Ya.get(r) ?? { form: null, count: 0 };
11408
11408
  return o && !I.form && (I.form = o), I.count += 1, Ya.set(r, I), () => {
11409
11409
  const $ = Ya.get(r);
@@ -11580,7 +11580,7 @@ const Ig = /* @__PURE__ */ s((t = "scope") => (bS += 1, `${t}-${bS}`), "createRe
11580
11580
  };
11581
11581
  }, "useEtrActions");
11582
11582
  function M5(t) {
11583
- return Ee("MuiCircularProgress", t);
11583
+ return Oe("MuiCircularProgress", t);
11584
11584
  }
11585
11585
  s(M5, "getCircularProgressUtilityClass");
11586
11586
  Re("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
@@ -13045,7 +13045,7 @@ function jB(t) {
13045
13045
  k[C] = Ce, O[C] = Ce - V;
13046
13046
  }
13047
13047
  if (l) {
13048
- var ue, Ae = C === "x" ? Vn : jn, Oe = C === "x" ? hr : mr, Ie = k[w], Fe = w === "y" ? "height" : "width", fe = Ie + v[Ae], me = Ie - v[Oe], le = [Vn, jn].indexOf(x) !== -1, Ot = (ue = A?.[w]) != null ? ue : 0, Ge = le ? fe : Ie - R[Fe] - N[Fe] - Ot + D.altAxis, Be = le ? Ie + R[Fe] + N[Fe] - Ot - D.altAxis : me, et = m && le ? pB(Ge, Ie, Be) : xl(m ? Ge : fe, Ie, m ? Be : me);
13048
+ var ue, Ae = C === "x" ? Vn : jn, Te = C === "x" ? hr : mr, Ie = k[w], Fe = w === "y" ? "height" : "width", fe = Ie + v[Ae], me = Ie - v[Te], le = [Vn, jn].indexOf(x) !== -1, Ot = (ue = A?.[w]) != null ? ue : 0, Ge = le ? fe : Ie - R[Fe] - N[Fe] - Ot + D.altAxis, Be = le ? Ie + R[Fe] + N[Fe] - Ot - D.altAxis : me, et = m && le ? pB(Ge, Ie, Be) : xl(m ? Ge : fe, Ie, m ? Be : me);
13049
13049
  k[w] = et, O[w] = et - Ie;
13050
13050
  }
13051
13051
  e.modifiersData[r] = O;
@@ -13290,7 +13290,7 @@ function _a() {
13290
13290
  }
13291
13291
  s(_a, "isLayoutSupported");
13292
13292
  function t_(t) {
13293
- return Ee("MuiPopper", t);
13293
+ return Oe("MuiPopper", t);
13294
13294
  }
13295
13295
  s(t_, "getPopperUtilityClass");
13296
13296
  Re("MuiPopper", ["root"]);
@@ -13349,7 +13349,7 @@ const o_ = /* @__PURE__ */ s((t) => {
13349
13349
  // prevent from spreading to DOM, it can come from the parent component e.g. Select.
13350
13350
  ...v
13351
13351
  } = e, x = S.useRef(null), T = Ft(x, n), E = S.useRef(null), C = Ft(E, f), w = S.useRef(C);
13352
- fn(() => {
13352
+ pn(() => {
13353
13353
  w.current = C;
13354
13354
  }, [C]), S.useImperativeHandle(f, () => E.current, []);
13355
13355
  const k = n_(d, i), [R, N] = S.useState(k), [P, D] = S.useState(ud(r));
@@ -13357,7 +13357,7 @@ const o_ = /* @__PURE__ */ s((t) => {
13357
13357
  E.current && E.current.forceUpdate();
13358
13358
  }), S.useEffect(() => {
13359
13359
  r && D(ud(r));
13360
- }, [r]), fn(() => {
13360
+ }, [r]), pn(() => {
13361
13361
  if (!P || !u)
13362
13362
  return;
13363
13363
  const $ = /* @__PURE__ */ s((j) => {
@@ -14196,7 +14196,7 @@ process.env.NODE_ENV !== "production" && (qO.propTypes = {
14196
14196
  className: c.string
14197
14197
  });
14198
14198
  function S_(t) {
14199
- return Ee("MuiButtonBase", t);
14199
+ return Oe("MuiButtonBase", t);
14200
14200
  }
14201
14201
  s(S_, "getButtonBaseUtilityClass");
14202
14202
  const x_ = Re("MuiButtonBase", ["root", "disabled", "focusVisible"]), C_ = /* @__PURE__ */ s((t) => {
@@ -14322,7 +14322,7 @@ const x_ = Re("MuiButtonBase", ["root", "disabled", "focusVisible"]), C_ = /* @_
14322
14322
  Ae.type = L === void 0 && !fe ? "button" : L, Ae.disabled = d;
14323
14323
  } else
14324
14324
  !V.href && !V.to && (Ae.role = "button"), d && (Ae["aria-disabled"] = d);
14325
- const Oe = Ft(n, j), Ie = {
14325
+ const Te = Ft(n, j), Ie = {
14326
14326
  ...r,
14327
14327
  centerRipple: i,
14328
14328
  component: u,
@@ -14350,7 +14350,7 @@ const x_ = Re("MuiButtonBase", ["root", "disabled", "focusVisible"]), C_ = /* @_
14350
14350
  onTouchEnd: Q,
14351
14351
  onTouchMove: re,
14352
14352
  onTouchStart: ne,
14353
- ref: Oe,
14353
+ ref: Te,
14354
14354
  tabIndex: d ? -1 : M,
14355
14355
  type: L,
14356
14356
  ...Ae,
@@ -14529,7 +14529,7 @@ process.env.NODE_ENV !== "production" && (gi.propTypes = {
14529
14529
  type: c.oneOfType([c.oneOf(["button", "reset", "submit"]), c.string])
14530
14530
  });
14531
14531
  function T_(t) {
14532
- return Ee("MuiIconButton", t);
14532
+ return Oe("MuiIconButton", t);
14533
14533
  }
14534
14534
  s(T_, "getIconButtonUtilityClass");
14535
14535
  const _g = Re("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), E_ = /* @__PURE__ */ s((t) => {
@@ -14854,7 +14854,7 @@ const UO = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
14854
14854
  const E = p.current, C = m.current;
14855
14855
  if (!E || !C)
14856
14856
  return;
14857
- const k = pn(E).getComputedStyle(E);
14857
+ const k = dn(E).getComputedStyle(E);
14858
14858
  if (k.width === "0px")
14859
14859
  return {
14860
14860
  outerHeightStyle: 0,
@@ -14885,11 +14885,11 @@ const UO = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
14885
14885
  const w = C.outerHeightStyle;
14886
14886
  h.current !== w && (h.current = w, E.style.height = `${w}px`), E.style.overflow = C.overflowing ? "hidden" : "";
14887
14887
  }, [y]), x = S.useRef(-1);
14888
- fn(() => {
14888
+ pn(() => {
14889
14889
  const E = Mc(v), C = p?.current;
14890
14890
  if (!C)
14891
14891
  return;
14892
- const w = pn(C);
14892
+ const w = dn(C);
14893
14893
  w.addEventListener("resize", E);
14894
14894
  let k;
14895
14895
  return typeof ResizeObserver < "u" && (k = new ResizeObserver(() => {
@@ -14899,7 +14899,7 @@ const UO = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
14899
14899
  }), k.observe(C)), () => {
14900
14900
  E.clear(), cancelAnimationFrame(x.current), w.removeEventListener("resize", E), k && k.disconnect();
14901
14901
  };
14902
- }, [y, v, g]), fn(() => {
14902
+ }, [y, v, g]), pn(() => {
14903
14903
  v();
14904
14904
  });
14905
14905
  const T = /* @__PURE__ */ s((E) => {
@@ -14993,7 +14993,7 @@ function P_(t) {
14993
14993
  }
14994
14994
  s(P_, "isAdornedStart");
14995
14995
  function A_(t) {
14996
- return Ee("MuiInputBase", t);
14996
+ return Oe("MuiInputBase", t);
14997
14997
  }
14998
14998
  s(A_, "getInputBaseUtilityClass");
14999
14999
  const Ca = Re("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
@@ -15264,12 +15264,12 @@ const mf = /* @__PURE__ */ s((t, e) => {
15264
15264
  const Ce = X && X.onFilled, ue = X && X.onEmpty, Ae = S.useCallback((Ne) => {
15265
15265
  pd(Ne) ? Ce && Ce() : ue && ue();
15266
15266
  }, [Ce, ue]);
15267
- fn(() => {
15267
+ pn(() => {
15268
15268
  oe && Ae({
15269
15269
  value: G
15270
15270
  });
15271
15271
  }, [G, Ae, oe]);
15272
- const Oe = /* @__PURE__ */ s((Ne) => {
15272
+ const Te = /* @__PURE__ */ s((Ne) => {
15273
15273
  M && M(Ne), E.onFocus && E.onFocus(Ne), X && X.onFocus ? X.onFocus(Ne) : ie(!0);
15274
15274
  }, "handleFocus"), Ie = /* @__PURE__ */ s((Ne) => {
15275
15275
  D && D(Ne), E.onBlur && E.onBlur(Ne), X && X.onBlur ? X.onBlur(Ne) : ie(!1);
@@ -15375,7 +15375,7 @@ const mf = /* @__PURE__ */ s((t, e) => {
15375
15375
  className: se(Be.input, le.className, V && "MuiInputBase-readOnly"),
15376
15376
  onBlur: Ie,
15377
15377
  onChange: Fe,
15378
- onFocus: Oe
15378
+ onFocus: Te
15379
15379
  })
15380
15380
  }), y, j ? j({
15381
15381
  ...ge,
@@ -15613,7 +15613,7 @@ process.env.NODE_ENV !== "production" && (vf.propTypes = {
15613
15613
  value: c.any
15614
15614
  });
15615
15615
  function N_(t) {
15616
- return Ee("MuiInput", t);
15616
+ return Oe("MuiInput", t);
15617
15617
  }
15618
15618
  s(N_, "getInputUtilityClass");
15619
15619
  const Xa = {
@@ -15621,7 +15621,7 @@ const Xa = {
15621
15621
  ...Re("MuiInput", ["root", "underline", "input"])
15622
15622
  };
15623
15623
  function D_(t) {
15624
- return Ee("MuiOutlinedInput", t);
15624
+ return Oe("MuiOutlinedInput", t);
15625
15625
  }
15626
15626
  s(D_, "getOutlinedInputUtilityClass");
15627
15627
  const Fn = {
@@ -15629,7 +15629,7 @@ const Fn = {
15629
15629
  ...Re("MuiOutlinedInput", ["root", "notchedOutline", "input"])
15630
15630
  };
15631
15631
  function $_(t) {
15632
- return Ee("MuiFilledInput", t);
15632
+ return Oe("MuiFilledInput", t);
15633
15633
  }
15634
15634
  s($_, "getFilledInputUtilityClass");
15635
15635
  const Ri = {
@@ -15663,7 +15663,7 @@ function F_(t) {
15663
15663
  }
15664
15664
  s(F_, "useBadge");
15665
15665
  function B_(t) {
15666
- return Ee("MuiBadge", t);
15666
+ return Oe("MuiBadge", t);
15667
15667
  }
15668
15668
  s(B_, "getBadgeUtilityClass");
15669
15669
  const __ = Re("MuiBadge", [
@@ -16011,7 +16011,7 @@ process.env.NODE_ENV !== "production" && (zg.propTypes = {
16011
16011
  variant: c.oneOfType([c.oneOf(["dot", "standard"]), c.string])
16012
16012
  });
16013
16013
  function W_(t) {
16014
- return Ee("PrivateSwitchBase", t);
16014
+ return Oe("PrivateSwitchBase", t);
16015
16015
  }
16016
16016
  s(W_, "getSwitchBaseUtilityClass");
16017
16017
  Re("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
@@ -16066,7 +16066,7 @@ const H_ = /* @__PURE__ */ s((t) => {
16066
16066
  }]
16067
16067
  }), U_ = ee("input", {
16068
16068
  name: "MuiSwitchBase",
16069
- shouldForwardProp: tn
16069
+ shouldForwardProp: en
16070
16070
  })({
16071
16071
  cursor: "inherit",
16072
16072
  position: "absolute",
@@ -16320,7 +16320,7 @@ const G_ = pe(/* @__PURE__ */ b("path", {
16320
16320
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
16321
16321
  }), "IndeterminateCheckBox");
16322
16322
  function J_(t) {
16323
- return Ee("MuiCheckbox", t);
16323
+ return Oe("MuiCheckbox", t);
16324
16324
  }
16325
16325
  s(J_, "getCheckboxUtilityClass");
16326
16326
  const Ch = Re("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), X_ = /* @__PURE__ */ s((t) => {
@@ -16338,7 +16338,7 @@ const Ch = Re("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
16338
16338
  ...a
16339
16339
  };
16340
16340
  }, "useUtilityClasses$x"), Q_ = ee(GO, {
16341
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
16341
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
16342
16342
  name: "MuiCheckbox",
16343
16343
  slot: "Root",
16344
16344
  overridesResolver: /* @__PURE__ */ s((t, e) => {
@@ -16568,7 +16568,7 @@ process.env.NODE_ENV !== "production" && (KO.propTypes = {
16568
16568
  value: c.any
16569
16569
  });
16570
16570
  function n4(t) {
16571
- return Ee("MuiDivider", t);
16571
+ return Oe("MuiDivider", t);
16572
16572
  }
16573
16573
  s(n4, "getDividerUtilityClass");
16574
16574
  const $S = Re("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), r4 = /* @__PURE__ */ s((t) => {
@@ -16859,7 +16859,7 @@ process.env.NODE_ENV !== "production" && (ci.propTypes = {
16859
16859
  variant: c.oneOfType([c.oneOf(["fullWidth", "inset", "middle"]), c.string])
16860
16860
  });
16861
16861
  function s4(t) {
16862
- return Ee("MuiListItemIcon", t);
16862
+ return Oe("MuiListItemIcon", t);
16863
16863
  }
16864
16864
  s(s4, "getListItemIconUtilityClass");
16865
16865
  const LS = Re("MuiListItemIcon", ["root", "alignItemsFlexStart"]), pr = /* @__PURE__ */ S.createContext({});
@@ -16938,7 +16938,7 @@ process.env.NODE_ENV !== "production" && (Qo.propTypes = {
16938
16938
  sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
16939
16939
  });
16940
16940
  function c4(t) {
16941
- return Ee("MuiListItemText", t);
16941
+ return Oe("MuiListItemText", t);
16942
16942
  }
16943
16943
  s(c4, "getListItemTextUtilityClass");
16944
16944
  const Ys = Re("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), u4 = /* @__PURE__ */ s((t) => {
@@ -17274,7 +17274,7 @@ function h4() {
17274
17274
  s(h4, "requireReactIs");
17275
17275
  var Sf = /* @__PURE__ */ h4();
17276
17276
  function m4(t) {
17277
- return Ee("MuiList", t);
17277
+ return Oe("MuiList", t);
17278
17278
  }
17279
17279
  s(m4, "getListUtilityClass");
17280
17280
  Re("MuiList", ["root", "padding", "dense", "subheader"]);
@@ -17445,7 +17445,7 @@ const JO = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
17445
17445
  previousKeyMatched: !0,
17446
17446
  lastTime: null
17447
17447
  });
17448
- fn(() => {
17448
+ pn(() => {
17449
17449
  o && m.current.focus();
17450
17450
  }, [o]), S.useImperativeHandle(r, () => ({
17451
17451
  adjustStyleForScrollbar: /* @__PURE__ */ s((E, {
@@ -17453,7 +17453,7 @@ const JO = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
17453
17453
  }) => {
17454
17454
  const w = !m.current.style.width;
17455
17455
  if (E.clientHeight < m.current.clientHeight && w) {
17456
- const k = `${JE(pn(E))}px`;
17456
+ const k = `${JE(dn(E))}px`;
17457
17457
  m.current.style[C === "rtl" ? "paddingLeft" : "paddingRight"] = k, m.current.style.width = `calc(100% + ${k})`;
17458
17458
  }
17459
17459
  return m.current;
@@ -17554,7 +17554,7 @@ process.env.NODE_ENV !== "production" && (JO.propTypes = {
17554
17554
  variant: c.oneOf(["menu", "selectedMenu"])
17555
17555
  });
17556
17556
  function b4(t) {
17557
- return Ee("MuiMenuItem", t);
17557
+ return Oe("MuiMenuItem", t);
17558
17558
  }
17559
17559
  s(b4, "getMenuItemUtilityClass");
17560
17560
  const Za = Re("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), v4 = /* @__PURE__ */ s((t, e) => {
@@ -17578,7 +17578,7 @@ const Za = Re("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divi
17578
17578
  ...u
17579
17579
  };
17580
17580
  }, "useUtilityClasses$s"), x4 = ee(gi, {
17581
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
17581
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
17582
17582
  name: "MuiMenuItem",
17583
17583
  slot: "Root",
17584
17584
  overridesResolver: v4
@@ -17699,7 +17699,7 @@ const Za = Re("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divi
17699
17699
  dense: a || y.dense || !1,
17700
17700
  disableGutters: u
17701
17701
  }), [y.dense, a, u]), v = S.useRef(null);
17702
- fn(() => {
17702
+ pn(() => {
17703
17703
  o && (v.current ? v.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
17704
17704
  }, [o]);
17705
17705
  const x = {
@@ -17813,7 +17813,7 @@ const C4 = /* @__PURE__ */ s((t) => {
17813
17813
  ...o
17814
17814
  };
17815
17815
  }, "useUtilityClasses$r"), w4 = ee(yf, {
17816
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
17816
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
17817
17817
  name: "MuiInput",
17818
17818
  slot: "Root",
17819
17819
  overridesResolver: /* @__PURE__ */ s((t, e) => {
@@ -18148,7 +18148,7 @@ const E4 = /* @__PURE__ */ s((t) => {
18148
18148
  ...d
18149
18149
  };
18150
18150
  }, "useUtilityClasses$q"), O4 = ee(yf, {
18151
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
18151
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
18152
18152
  name: "MuiFilledInput",
18153
18153
  slot: "Root",
18154
18154
  overridesResolver: /* @__PURE__ */ s((t, e) => {
@@ -18615,7 +18615,7 @@ Cf.muiName = "Input";
18615
18615
  var VS;
18616
18616
  const M4 = ee("fieldset", {
18617
18617
  name: "MuiNotchedOutlined",
18618
- shouldForwardProp: tn
18618
+ shouldForwardProp: en
18619
18619
  })({
18620
18620
  textAlign: "left",
18621
18621
  position: "absolute",
@@ -18633,7 +18633,7 @@ const M4 = ee("fieldset", {
18633
18633
  minWidth: "0%"
18634
18634
  }), R4 = ee("legend", {
18635
18635
  name: "MuiNotchedOutlined",
18636
- shouldForwardProp: tn
18636
+ shouldForwardProp: en
18637
18637
  })(je(({
18638
18638
  theme: t
18639
18639
  }) => ({
@@ -18770,7 +18770,7 @@ const P4 = /* @__PURE__ */ s((t) => {
18770
18770
  ...r
18771
18771
  };
18772
18772
  }, "useUtilityClasses$p"), A4 = ee(yf, {
18773
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
18773
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
18774
18774
  name: "MuiOutlinedInput",
18775
18775
  slot: "Root",
18776
18776
  overridesResolver: mf
@@ -19153,7 +19153,7 @@ process.env.NODE_ENV !== "production" && (wf.propTypes = {
19153
19153
  });
19154
19154
  wf.muiName = "Input";
19155
19155
  function D4(t) {
19156
- return Ee("MuiFormLabel", t);
19156
+ return Oe("MuiFormLabel", t);
19157
19157
  }
19158
19158
  s(D4, "getFormLabelUtilityClasses");
19159
19159
  const wl = Re("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), $4 = /* @__PURE__ */ s((t) => {
@@ -19313,7 +19313,7 @@ process.env.NODE_ENV !== "production" && (QO.propTypes = {
19313
19313
  sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
19314
19314
  });
19315
19315
  function B4(t) {
19316
- return Ee("MuiInputLabel", t);
19316
+ return Oe("MuiInputLabel", t);
19317
19317
  }
19318
19318
  s(B4, "getInputLabelUtilityClasses");
19319
19319
  Re("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
@@ -19336,7 +19336,7 @@ const _4 = /* @__PURE__ */ s((t) => {
19336
19336
  ...d
19337
19337
  };
19338
19338
  }, "useUtilityClasses$n"), z4 = ee(QO, {
19339
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
19339
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
19340
19340
  name: "MuiInputLabel",
19341
19341
  slot: "Root",
19342
19342
  overridesResolver: /* @__PURE__ */ s((t, e) => {
@@ -19574,7 +19574,7 @@ process.env.NODE_ENV !== "production" && (ZO.propTypes = {
19574
19574
  variant: c.oneOf(["filled", "outlined", "standard"])
19575
19575
  });
19576
19576
  function V4(t) {
19577
- return Ee("MuiFormControl", t);
19577
+ return Oe("MuiFormControl", t);
19578
19578
  }
19579
19579
  s(V4, "getFormControlUtilityClasses");
19580
19580
  Re("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
@@ -19804,7 +19804,7 @@ process.env.NODE_ENV !== "production" && (ek.propTypes = {
19804
19804
  variant: c.oneOf(["filled", "outlined", "standard"])
19805
19805
  });
19806
19806
  function H4(t) {
19807
- return Ee("MuiFormHelperText", t);
19807
+ return Oe("MuiFormHelperText", t);
19808
19808
  }
19809
19809
  s(H4, "getFormHelperTextUtilityClasses");
19810
19810
  const jS = Re("MuiFormHelperText", ["root", "error", "disabled", "sizeSmall", "sizeMedium", "contained", "focused", "filled", "required"]);
@@ -20160,7 +20160,7 @@ process.env.NODE_ENV !== "production" && (nc.propTypes = {
20160
20160
  });
20161
20161
  nc && (nc.muiSupportAuto = !0);
20162
20162
  function K4(t) {
20163
- return Ee("MuiPopover", t);
20163
+ return Oe("MuiPopover", t);
20164
20164
  }
20165
20165
  s(K4, "getPopoverUtilityClass");
20166
20166
  Re("MuiPopover", ["root", "paper"]);
@@ -20281,15 +20281,15 @@ const Y4 = /* @__PURE__ */ s((t) => {
20281
20281
  };
20282
20282
  const ie = A();
20283
20283
  let X = ie.top - B.vertical, ge = ie.left - B.horizontal;
20284
- const Ce = X + re.height, ue = ge + re.width, Ae = pn(dl(i)), Oe = Ae.innerHeight - m, Ie = Ae.innerWidth - m;
20284
+ const Ce = X + re.height, ue = ge + re.width, Ae = dn(dl(i)), Te = Ae.innerHeight - m, Ie = Ae.innerWidth - m;
20285
20285
  if (m !== null && X < m) {
20286
20286
  const Fe = X - m;
20287
20287
  X -= Fe, B.vertical += Fe;
20288
- } else if (m !== null && Ce > Oe) {
20289
- const Fe = Ce - Oe;
20288
+ } else if (m !== null && Ce > Te) {
20289
+ const Fe = Ce - Te;
20290
20290
  X -= Fe, B.vertical += Fe;
20291
20291
  }
20292
- if (process.env.NODE_ENV !== "production" && re.height > Oe && re.height && Oe && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${re.height - Oe}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
20292
+ if (process.env.NODE_ENV !== "production" && re.height > Te && re.height && Te && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${re.height - Te}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
20293
20293
  `)), m !== null && ge < m) {
20294
20294
  const Fe = ge - m;
20295
20295
  ge -= Fe, B.horizontal += Fe;
@@ -20326,7 +20326,7 @@ const Y4 = /* @__PURE__ */ s((t) => {
20326
20326
  return;
20327
20327
  const Q = Mc(() => {
20328
20328
  L();
20329
- }), re = pn(dl(i));
20329
+ }), re = dn(dl(i));
20330
20330
  return re.addEventListener("resize", Q), () => {
20331
20331
  Q.clear(), re.removeEventListener("resize", Q);
20332
20332
  };
@@ -20618,7 +20618,7 @@ process.env.NODE_ENV !== "production" && (rk.propTypes = {
20618
20618
  TransitionProps: c.object
20619
20619
  });
20620
20620
  function X4(t) {
20621
- return Ee("MuiMenu", t);
20621
+ return Oe("MuiMenu", t);
20622
20622
  }
20623
20623
  s(X4, "getMenuUtilityClass");
20624
20624
  Re("MuiMenu", ["root", "paper", "list"]);
@@ -20638,7 +20638,7 @@ const Q4 = {
20638
20638
  list: ["list"]
20639
20639
  }, X4, e);
20640
20640
  }, "useUtilityClasses$j"), t3 = ee(rk, {
20641
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
20641
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
20642
20642
  name: "MuiMenu",
20643
20643
  slot: "Root"
20644
20644
  })({}), n3 = ee(nk, {
@@ -20889,7 +20889,7 @@ process.env.NODE_ENV !== "production" && (Jb.propTypes = {
20889
20889
  variant: c.oneOf(["menu", "selectedMenu"])
20890
20890
  });
20891
20891
  function o3(t) {
20892
- return Ee("MuiNativeSelect", t);
20892
+ return Oe("MuiNativeSelect", t);
20893
20893
  }
20894
20894
  s(o3, "getNativeSelectUtilityClasses");
20895
20895
  const Xb = Re("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), i3 = /* @__PURE__ */ s((t) => {
@@ -20972,7 +20972,7 @@ const Xb = Re("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
20972
20972
  })), s3 = ee(ok, {
20973
20973
  name: "MuiNativeSelect",
20974
20974
  slot: "Select",
20975
- shouldForwardProp: tn,
20975
+ shouldForwardProp: en,
20976
20976
  overridesResolver: /* @__PURE__ */ s((t, e) => {
20977
20977
  const {
20978
20978
  ownerState: n
@@ -21114,7 +21114,7 @@ process.env.NODE_ENV !== "production" && (sk.propTypes = {
21114
21114
  variant: c.oneOf(["standard", "outlined", "filled"])
21115
21115
  });
21116
21116
  function ak(t) {
21117
- return Ee("MuiSelect", t);
21117
+ return Oe("MuiSelect", t);
21118
21118
  }
21119
21119
  s(ak, "getSelectUtilityClasses");
21120
21120
  const el = Re("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
@@ -21289,8 +21289,8 @@ const p3 = /* @__PURE__ */ s((t) => {
21289
21289
  P?.(he), he.button === 0 && (he.preventDefault(), Z.current.focus(), Ce(!0, he));
21290
21290
  }, "handleMouseDown"), Ae = /* @__PURE__ */ s((he) => {
21291
21291
  Ce(!1, he);
21292
- }, "handleClose"), Oe = S.Children.toArray(l), Ie = /* @__PURE__ */ s((he) => {
21293
- const Ve = Oe.find((Qe) => Qe.props.value === he.target.value);
21292
+ }, "handleClose"), Te = S.Children.toArray(l), Ie = /* @__PURE__ */ s((he) => {
21293
+ const Ve = Te.find((Qe) => Qe.props.value === he.target.value);
21294
21294
  Ve !== void 0 && (U(Ve.props.value), w && w(he, Ve));
21295
21295
  }, "handleChange"), Fe = /* @__PURE__ */ s((he) => (Ve) => {
21296
21296
  let Qe;
@@ -21338,7 +21338,7 @@ const p3 = /* @__PURE__ */ s((t) => {
21338
21338
  (pd({
21339
21339
  value: F
21340
21340
  }) || h) && (M ? le = M(F) : Be = !0);
21341
- const tt = Oe.map((he) => {
21341
+ const tt = Te.map((he) => {
21342
21342
  if (!/* @__PURE__ */ S.isValidElement(he))
21343
21343
  return null;
21344
21344
  process.env.NODE_ENV !== "production" && Sf.isFragment(he) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
@@ -21366,11 +21366,11 @@ const p3 = /* @__PURE__ */ s((t) => {
21366
21366
  });
21367
21367
  process.env.NODE_ENV !== "production" && S.useEffect(() => {
21368
21368
  if (!et && !T && F !== "") {
21369
- const he = Oe.map((Ve) => Ve.props.value);
21369
+ const he = Te.map((Ve) => Ve.props.value);
21370
21370
  console.warn([`MUI: You have provided an out-of-range value \`${F}\` for the select ${E ? `(name="${E}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${he.filter((Ve) => Ve != null).map((Ve) => `\`${Ve}\``).join(", ") || '""'}.`].join(`
21371
21371
  `));
21372
21372
  }
21373
- }, [et, Oe, T, E, F]), Be && (T ? Ge.length === 0 ? le = null : le = Ge.reduce((he, Ve, Qe) => (he.push(Ve), Qe < Ge.length - 1 && he.push(", "), he), []) : le = Ot);
21373
+ }, [et, Te, T, E, F]), Be && (T ? Ge.length === 0 ? le = null : le = Ge.reduce((he, Ve, Qe) => (he.push(Ve), Qe < Ge.length - 1 && he.push(", "), he), []) : le = Ot);
21374
21374
  let Xe = Q;
21375
21375
  !a && ne && G && (Xe = X.clientWidth);
21376
21376
  let Ne;
@@ -21634,7 +21634,7 @@ const f3 = /* @__PURE__ */ s((t) => {
21634
21634
  }, "useUtilityClasses$g"), Qb = {
21635
21635
  name: "MuiSelect",
21636
21636
  slot: "Root",
21637
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) && t !== "variant", "shouldForwardProp")
21637
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) && t !== "variant", "shouldForwardProp")
21638
21638
  }, h3 = ee(xf, Qb)(""), m3 = ee(wf, Qb)(""), g3 = ee(Cf, Qb)(""), Zb = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
21639
21639
  const r = Pe({
21640
21640
  name: "MuiSelect",
@@ -21881,7 +21881,7 @@ process.env.NODE_ENV !== "production" && (Zb.propTypes = {
21881
21881
  });
21882
21882
  Zb.muiName = "Select";
21883
21883
  function y3(t) {
21884
- return Ee("MuiTextField", t);
21884
+ return Oe("MuiTextField", t);
21885
21885
  }
21886
21886
  s(y3, "getTextFieldUtilityClass");
21887
21887
  Re("MuiTextField", ["root"]);
@@ -21991,7 +21991,7 @@ const b3 = {
21991
21991
  elementType: ZO,
21992
21992
  externalForwardedProps: ne,
21993
21993
  ownerState: J
21994
- }), [Ae, Oe] = ze("htmlInput", {
21994
+ }), [Ae, Te] = ze("htmlInput", {
21995
21995
  elementType: "input",
21996
21996
  externalForwardedProps: ne,
21997
21997
  ownerState: J
@@ -22022,7 +22022,7 @@ const b3 = {
22022
22022
  onChange: D,
22023
22023
  onFocus: A,
22024
22024
  placeholder: O,
22025
- inputProps: Oe,
22025
+ inputProps: Te,
22026
22026
  slots: {
22027
22027
  input: V.htmlInput ? Ae : void 0
22028
22028
  },
@@ -22253,7 +22253,7 @@ process.env.NODE_ENV !== "production" && (e0.propTypes = {
22253
22253
  variant: c.oneOf(["filled", "outlined", "standard"])
22254
22254
  });
22255
22255
  function x3(t) {
22256
- return Ee("MuiButton", t);
22256
+ return Oe("MuiButton", t);
22257
22257
  }
22258
22258
  s(x3, "getButtonUtilityClass");
22259
22259
  const Pi = Re("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), ck = /* @__PURE__ */ S.createContext({});
@@ -22310,7 +22310,7 @@ const C3 = /* @__PURE__ */ s((t) => {
22310
22310
  }
22311
22311
  }
22312
22312
  }], w3 = ee(gi, {
22313
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
22313
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
22314
22314
  name: "MuiButton",
22315
22315
  slot: "Root",
22316
22316
  overridesResolver: /* @__PURE__ */ s((t, e) => {
@@ -22902,7 +22902,7 @@ process.env.NODE_ENV !== "production" && (Or.propTypes = {
22902
22902
  variant: c.oneOfType([c.oneOf(["contained", "outlined", "text"]), c.string])
22903
22903
  });
22904
22904
  function k3(t) {
22905
- return Ee("MuiTooltip", t);
22905
+ return Oe("MuiTooltip", t);
22906
22906
  }
22907
22907
  s(k3, "getTooltipUtilityClass");
22908
22908
  const Lt = Re("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
@@ -23254,7 +23254,7 @@ const Tf = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
23254
23254
  q.current && $e.type !== "touchstart" || (_ && _.removeAttribute("title"), G.clear(), oe.clear(), y || du && g ? G.start(du ? g : y, () => {
23255
23255
  Ce($e);
23256
23256
  }) : Ce($e));
23257
- }, "handleMouseOver"), Oe = /* @__PURE__ */ s(($e) => {
23257
+ }, "handleMouseOver"), Te = /* @__PURE__ */ s(($e) => {
23258
23258
  G.clear(), oe.start(E, () => {
23259
23259
  ue($e);
23260
23260
  });
@@ -23267,7 +23267,7 @@ const Tf = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
23267
23267
  value: Ht
23268
23268
  }), Object.defineProperty(ye, "currentTarget", {
23269
23269
  value: Ht
23270
- })), Oe(ye);
23270
+ })), Te(ye);
23271
23271
  }
23272
23272
  }, "handleBlur"), fe = /* @__PURE__ */ s(($e) => {
23273
23273
  _ || F($e.currentTarget), xa($e.target) && (Ie(!0), Ae($e));
@@ -23320,7 +23320,7 @@ const Tf = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
23320
23320
  `));
23321
23321
  }, [_]));
23322
23322
  const Bt = {};
23323
- m || (Ne.onTouchStart = le, Ne.onTouchEnd = Ot), f || (Ne.onMouseOver = pu(Ae, Ne.onMouseOver), Ne.onMouseLeave = pu(Oe, Ne.onMouseLeave), K || (Bt.onMouseOver = Ae, Bt.onMouseLeave = Oe)), p || (Ne.onFocus = pu(fe, Ne.onFocus), Ne.onBlur = pu(Fe, Ne.onBlur), K || (Bt.onFocus = fe, Bt.onBlur = Fe)), process.env.NODE_ENV !== "production" && V.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${V.props.title}\` or the Tooltip component.`].join(`
23323
+ m || (Ne.onTouchStart = le, Ne.onTouchEnd = Ot), f || (Ne.onMouseOver = pu(Ae, Ne.onMouseOver), Ne.onMouseLeave = pu(Te, Ne.onMouseLeave), K || (Bt.onMouseOver = Ae, Bt.onMouseLeave = Te)), p || (Ne.onFocus = pu(fe, Ne.onFocus), Ne.onBlur = pu(Fe, Ne.onBlur), K || (Bt.onFocus = fe, Bt.onBlur = Fe)), process.env.NODE_ENV !== "production" && V.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${V.props.title}\` or the Tooltip component.`].join(`
23324
23324
  `));
23325
23325
  const at = {
23326
23326
  ...r,
@@ -23611,7 +23611,7 @@ process.env.NODE_ENV !== "production" && (Tf.propTypes = {
23611
23611
  TransitionProps: c.object
23612
23612
  });
23613
23613
  function N3(t) {
23614
- return Ee("MuiToolbar", t);
23614
+ return Oe("MuiToolbar", t);
23615
23615
  }
23616
23616
  s(N3, "getToolbarUtilityClass");
23617
23617
  Re("MuiToolbar", ["root", "gutters", "regular", "dense"]);
@@ -23779,11 +23779,11 @@ function fk(t) {
23779
23779
  } = t, r = S.useRef(), o = S.useRef(null), i = /* @__PURE__ */ s(() => {
23780
23780
  r.current = o.current.offsetHeight - o.current.clientHeight;
23781
23781
  }, "setMeasurements");
23782
- return fn(() => {
23782
+ return pn(() => {
23783
23783
  const a = Mc(() => {
23784
23784
  const u = r.current;
23785
23785
  i(), u !== r.current && e(r.current);
23786
- }), l = pn(o.current);
23786
+ }), l = dn(o.current);
23787
23787
  return l.addEventListener("resize", a), () => {
23788
23788
  a.clear(), l.removeEventListener("resize", a);
23789
23789
  };
@@ -23800,7 +23800,7 @@ process.env.NODE_ENV !== "production" && (fk.propTypes = {
23800
23800
  onChange: c.func.isRequired
23801
23801
  });
23802
23802
  function V3(t) {
23803
- return Ee("MuiTabScrollButton", t);
23803
+ return Oe("MuiTabScrollButton", t);
23804
23804
  }
23805
23805
  s(V3, "getTabScrollButtonUtilityClass");
23806
23806
  const j3 = Re("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), W3 = /* @__PURE__ */ s((t) => {
@@ -23948,7 +23948,7 @@ process.env.NODE_ENV !== "production" && (hk.propTypes = {
23948
23948
  sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
23949
23949
  });
23950
23950
  function q3(t) {
23951
- return Ee("MuiTabs", t);
23951
+ return Oe("MuiTabs", t);
23952
23952
  }
23953
23953
  s(q3, "getTabsUtilityClass");
23954
23954
  const Eh = Re("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), XS = /* @__PURE__ */ s((t, e) => t === e ? t.firstChild : e && e.nextElementSibling ? e.nextElementSibling : t.firstChild, "nextItem"), QS = /* @__PURE__ */ s((t, e) => t === e ? t.lastChild : e && e.previousElementSibling ? e.previousElementSibling : t.lastChild, "previousItem"), fu = /* @__PURE__ */ s((t, e, n) => {
@@ -24213,7 +24213,7 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24213
24213
  const [q, K] = S.useState(!1), [Z, G] = S.useState(ZS), [oe, ne] = S.useState(!1), [Q, re] = S.useState(!1), [B, ie] = S.useState(!1), [X, ge] = S.useState({
24214
24214
  overflow: "hidden",
24215
24215
  scrollbarWidth: 0
24216
- }), Ce = /* @__PURE__ */ new Map(), ue = S.useRef(null), Ae = S.useRef(null), Oe = {
24216
+ }), Ce = /* @__PURE__ */ new Map(), ue = S.useRef(null), Ae = S.useRef(null), Te = {
24217
24217
  slots: C,
24218
24218
  slotProps: {
24219
24219
  indicator: k,
@@ -24222,10 +24222,10 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24222
24222
  }
24223
24223
  }, Ie = /* @__PURE__ */ s(() => {
24224
24224
  const ye = ue.current;
24225
- let xe;
24225
+ let Se;
24226
24226
  if (ye) {
24227
24227
  const it = ye.getBoundingClientRect();
24228
- xe = {
24228
+ Se = {
24229
24229
  clientWidth: ye.clientWidth,
24230
24230
  scrollLeft: ye.scrollLeft,
24231
24231
  scrollTop: ye.scrollTop,
@@ -24243,25 +24243,25 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24243
24243
  const Rt = it[Ce.get(P)];
24244
24244
  process.env.NODE_ENV !== "production" && (Rt || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${P}".`, Ce.keys ? `You can provide one of the following values: ${Array.from(Ce.keys()).join(", ")}.` : null].join(`
24245
24245
  `))), nt = Rt ? Rt.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && _a() && !ex && nt && nt.width === 0 && nt.height === 0 && // if the whole Tabs component is hidden, don't warn
24246
- xe.clientWidth !== 0 && (xe = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${P}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
24246
+ Se.clientWidth !== 0 && (Se = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${P}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
24247
24247
  `)), ex = !0);
24248
24248
  }
24249
24249
  }
24250
24250
  return {
24251
- tabsMeta: xe,
24251
+ tabsMeta: Se,
24252
24252
  tabMeta: nt
24253
24253
  };
24254
24254
  }, "getTabsMeta"), Fe = On(() => {
24255
24255
  const {
24256
24256
  tabsMeta: ye,
24257
- tabMeta: xe
24257
+ tabMeta: Se
24258
24258
  } = Ie();
24259
24259
  let nt = 0, it;
24260
- I ? (it = "top", xe && ye && (nt = xe.top - ye.top + ye.scrollTop)) : (it = i ? "right" : "left", xe && ye && (nt = (i ? -1 : 1) * (xe[it] - ye[it] + ye.scrollLeft)));
24260
+ I ? (it = "top", Se && ye && (nt = Se.top - ye.top + ye.scrollTop)) : (it = i ? "right" : "left", Se && ye && (nt = (i ? -1 : 1) * (Se[it] - ye[it] + ye.scrollLeft)));
24261
24261
  const Rt = {
24262
24262
  [it]: nt,
24263
24263
  // May be wrong until the font is loaded.
24264
- [z]: xe ? xe[z] : 0
24264
+ [z]: Se ? Se[z] : 0
24265
24265
  };
24266
24266
  if (typeof Z[it] != "number" || typeof Z[z] != "number")
24267
24267
  G(Rt);
@@ -24270,27 +24270,27 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24270
24270
  (Yn >= 1 || Cr >= 1) && G(Rt);
24271
24271
  }
24272
24272
  }), fe = /* @__PURE__ */ s((ye, {
24273
- animation: xe = !0
24273
+ animation: Se = !0
24274
24274
  } = {}) => {
24275
- xe ? _3($, ue.current, ye, {
24275
+ Se ? _3($, ue.current, ye, {
24276
24276
  duration: o.transitions.duration.standard
24277
24277
  }) : ue.current[$] = ye;
24278
24278
  }, "scroll"), me = /* @__PURE__ */ s((ye) => {
24279
- let xe = ue.current[$];
24280
- I ? xe += ye : xe += ye * (i ? -1 : 1), fe(xe);
24279
+ let Se = ue.current[$];
24280
+ I ? Se += ye : Se += ye * (i ? -1 : 1), fe(Se);
24281
24281
  }, "moveTabsScroll"), le = /* @__PURE__ */ s(() => {
24282
24282
  const ye = ue.current[j];
24283
- let xe = 0;
24283
+ let Se = 0;
24284
24284
  const nt = Array.from(Ae.current.children);
24285
24285
  for (let it = 0; it < nt.length; it += 1) {
24286
24286
  const Rt = nt[it];
24287
- if (xe + Rt[j] > ye) {
24288
- it === 0 && (xe = ye);
24287
+ if (Se + Rt[j] > ye) {
24288
+ it === 0 && (Se = ye);
24289
24289
  break;
24290
24290
  }
24291
- xe += Rt[j];
24291
+ Se += Rt[j];
24292
24292
  }
24293
- return xe;
24293
+ return Se;
24294
24294
  }, "getScrollSize"), Ot = /* @__PURE__ */ s(() => {
24295
24295
  me(-1 * le());
24296
24296
  }, "handleStartScrollClick"), Ge = /* @__PURE__ */ s(() => {
@@ -24302,7 +24302,7 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24302
24302
  className: se(F.scrollableX, F.hideScrollbar),
24303
24303
  elementType: X3,
24304
24304
  shouldForwardComponentProp: !0,
24305
- externalForwardedProps: Oe,
24305
+ externalForwardedProps: Te,
24306
24306
  ownerState: _
24307
24307
  }), Xe = S.useCallback((ye) => {
24308
24308
  et?.(ye), ge({
@@ -24312,7 +24312,7 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24312
24312
  }, [et]), [Ne, Bt] = ze("scrollButtons", {
24313
24313
  className: se(F.scrollButtons, R.className),
24314
24314
  elementType: hk,
24315
- externalForwardedProps: Oe,
24315
+ externalForwardedProps: Te,
24316
24316
  ownerState: _,
24317
24317
  additionalProps: {
24318
24318
  orientation: v,
@@ -24345,17 +24345,17 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24345
24345
  }) : null, ye;
24346
24346
  }, "getConditionalElements"), _t = On((ye) => {
24347
24347
  const {
24348
- tabsMeta: xe,
24348
+ tabsMeta: Se,
24349
24349
  tabMeta: nt
24350
24350
  } = Ie();
24351
- if (!(!nt || !xe)) {
24352
- if (nt[L] < xe[L]) {
24353
- const it = xe[$] + (nt[L] - xe[L]);
24351
+ if (!(!nt || !Se)) {
24352
+ if (nt[L] < Se[L]) {
24353
+ const it = Se[$] + (nt[L] - Se[L]);
24354
24354
  fe(it, {
24355
24355
  animation: ye
24356
24356
  });
24357
- } else if (nt[V] > xe[V]) {
24358
- const it = xe[$] + (nt[V] - xe[V]);
24357
+ } else if (nt[V] > Se[V]) {
24358
+ const it = Se[$] + (nt[V] - Se[V]);
24359
24359
  fe(it, {
24360
24360
  animation: ye
24361
24361
  });
@@ -24368,29 +24368,29 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24368
24368
  const ye = Mc(() => {
24369
24369
  ue.current && Fe();
24370
24370
  });
24371
- let xe;
24371
+ let Se;
24372
24372
  const nt = /* @__PURE__ */ s((Yn) => {
24373
24373
  Yn.forEach((Cr) => {
24374
24374
  Cr.removedNodes.forEach(($o) => {
24375
- xe?.unobserve($o);
24375
+ Se?.unobserve($o);
24376
24376
  }), Cr.addedNodes.forEach(($o) => {
24377
- xe?.observe($o);
24377
+ Se?.observe($o);
24378
24378
  });
24379
24379
  }), ye(), hn();
24380
- }, "handleMutation"), it = pn(ue.current);
24380
+ }, "handleMutation"), it = dn(ue.current);
24381
24381
  it.addEventListener("resize", ye);
24382
24382
  let Rt;
24383
- return typeof ResizeObserver < "u" && (xe = new ResizeObserver(ye), Array.from(Ae.current.children).forEach((Yn) => {
24384
- xe.observe(Yn);
24383
+ return typeof ResizeObserver < "u" && (Se = new ResizeObserver(ye), Array.from(Ae.current.children).forEach((Yn) => {
24384
+ Se.observe(Yn);
24385
24385
  })), typeof MutationObserver < "u" && (Rt = new MutationObserver(nt), Rt.observe(Ae.current, {
24386
24386
  childList: !0
24387
24387
  })), () => {
24388
- ye.clear(), it.removeEventListener("resize", ye), Rt?.disconnect(), xe?.disconnect();
24388
+ ye.clear(), it.removeEventListener("resize", ye), Rt?.disconnect(), Se?.disconnect();
24389
24389
  };
24390
24390
  }, [Fe, hn]), S.useEffect(() => {
24391
- const ye = Array.from(Ae.current.children), xe = ye.length;
24392
- if (typeof IntersectionObserver < "u" && xe > 0 && M && T !== !1) {
24393
- const nt = ye[0], it = ye[xe - 1], Rt = {
24391
+ const ye = Array.from(Ae.current.children), Se = ye.length;
24392
+ if (typeof IntersectionObserver < "u" && Se > 0 && M && T !== !1) {
24393
+ const nt = ye[0], it = ye[Se - 1], Rt = {
24394
24394
  root: ue.current,
24395
24395
  threshold: 0.99
24396
24396
  }, Yn = /* @__PURE__ */ s((Lo) => {
@@ -24417,7 +24417,7 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24417
24417
  const [Gn, Kn] = ze("indicator", {
24418
24418
  className: se(F.indicator, k.className),
24419
24419
  elementType: J3,
24420
- externalForwardedProps: Oe,
24420
+ externalForwardedProps: Te,
24421
24421
  ownerState: _,
24422
24422
  additionalProps: {
24423
24423
  style: Z
@@ -24431,9 +24431,9 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24431
24431
  return null;
24432
24432
  process.env.NODE_ENV !== "production" && Sf.isFragment(ye) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
24433
24433
  `));
24434
- const xe = ye.props.value === void 0 ? Ve : ye.props.value;
24435
- Ce.set(xe, Ve);
24436
- const nt = xe === P;
24434
+ const Se = ye.props.value === void 0 ? Ve : ye.props.value;
24435
+ Ce.set(Se, Ve);
24436
+ const nt = Se === P;
24437
24437
  return Ve += 1, /* @__PURE__ */ S.cloneElement(ye, {
24438
24438
  fullWidth: D === "fullWidth",
24439
24439
  indicator: nt && !q && he,
@@ -24441,7 +24441,7 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24441
24441
  selectionFollowsFocus: E,
24442
24442
  onChange: g,
24443
24443
  textColor: N,
24444
- value: xe,
24444
+ value: Se,
24445
24445
  ...Ve === 1 && P === !1 && !ye.props.tabIndex ? {
24446
24446
  tabIndex: 0
24447
24447
  } : {}
@@ -24449,22 +24449,22 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24449
24449
  }), mn = /* @__PURE__ */ s((ye) => {
24450
24450
  if (ye.altKey || ye.shiftKey || ye.ctrlKey || ye.metaKey)
24451
24451
  return;
24452
- const xe = Ae.current, nt = Gs(Kt(xe));
24452
+ const Se = Ae.current, nt = Gs(Kt(Se));
24453
24453
  if (nt?.getAttribute("role") !== "tab")
24454
24454
  return;
24455
24455
  let Rt = v === "horizontal" ? "ArrowLeft" : "ArrowUp", Yn = v === "horizontal" ? "ArrowRight" : "ArrowDown";
24456
24456
  switch (v === "horizontal" && i && (Rt = "ArrowRight", Yn = "ArrowLeft"), ye.key) {
24457
24457
  case Rt:
24458
- ye.preventDefault(), fu(xe, nt, QS);
24458
+ ye.preventDefault(), fu(Se, nt, QS);
24459
24459
  break;
24460
24460
  case Yn:
24461
- ye.preventDefault(), fu(xe, nt, XS);
24461
+ ye.preventDefault(), fu(Se, nt, XS);
24462
24462
  break;
24463
24463
  case "Home":
24464
- ye.preventDefault(), fu(xe, null, XS);
24464
+ ye.preventDefault(), fu(Se, null, XS);
24465
24465
  break;
24466
24466
  case "End":
24467
- ye.preventDefault(), fu(xe, null, QS);
24467
+ ye.preventDefault(), fu(Se, null, QS);
24468
24468
  break;
24469
24469
  }
24470
24470
  }, "handleKeyDown"), wn = at(), [po, Do] = ze("root", {
@@ -24472,7 +24472,7 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24472
24472
  className: se(F.root, f),
24473
24473
  elementType: G3,
24474
24474
  externalForwardedProps: {
24475
- ...Oe,
24475
+ ...Te,
24476
24476
  ...O,
24477
24477
  component: h
24478
24478
  },
@@ -24481,7 +24481,7 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24481
24481
  ref: ue,
24482
24482
  className: F.scroller,
24483
24483
  elementType: K3,
24484
- externalForwardedProps: Oe,
24484
+ externalForwardedProps: Te,
24485
24485
  ownerState: _,
24486
24486
  additionalProps: {
24487
24487
  style: {
@@ -24493,12 +24493,12 @@ const mk = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
24493
24493
  ref: Ae,
24494
24494
  className: se(F.list, F.flexContainer),
24495
24495
  elementType: Y3,
24496
- externalForwardedProps: Oe,
24496
+ externalForwardedProps: Te,
24497
24497
  ownerState: _,
24498
24498
  getSlotProps: /* @__PURE__ */ s((ye) => ({
24499
24499
  ...ye,
24500
- onKeyDown: /* @__PURE__ */ s((xe) => {
24501
- mn(xe), ye.onKeyDown?.(xe);
24500
+ onKeyDown: /* @__PURE__ */ s((Se) => {
24501
+ mn(Se), ye.onKeyDown?.(Se);
24502
24502
  }, "onKeyDown")
24503
24503
  }), "getSlotProps")
24504
24504
  });
@@ -24683,7 +24683,7 @@ process.env.NODE_ENV !== "production" && (mk.propTypes = {
24683
24683
  visibleScrollbar: c.bool
24684
24684
  });
24685
24685
  function Q3(t) {
24686
- return Ee("MuiTab", t);
24686
+ return Oe("MuiTab", t);
24687
24687
  }
24688
24688
  s(Q3, "getTabUtilityClass");
24689
24689
  const rr = Re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), Z3 = /* @__PURE__ */ s((t) => {
@@ -25613,13 +25613,13 @@ Et(r0, Ef, vk, (t, e, n) => {
25613
25613
  }
25614
25614
  return r;
25615
25615
  });
25616
- const Vz = Re("MuiBox", ["root"]), jz = Rb(), un = _N({
25616
+ const Vz = Re("MuiBox", ["root"]), jz = Rb(), cn = _N({
25617
25617
  themeId: Mr,
25618
25618
  defaultTheme: jz,
25619
25619
  defaultClassName: Vz.root,
25620
25620
  generateClassName: nE.generate
25621
25621
  });
25622
- process.env.NODE_ENV !== "production" && (un.propTypes = {
25622
+ process.env.NODE_ENV !== "production" && (cn.propTypes = {
25623
25623
  // ┌────────────────────────────── Warning ──────────────────────────────┐
25624
25624
  // │ These PropTypes are generated from the TypeScript type definitions. │
25625
25625
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -25644,12 +25644,12 @@ const Wz = pe(/* @__PURE__ */ b("path", {
25644
25644
  d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
25645
25645
  }), "CheckBoxOutlineBlank");
25646
25646
  function qz(t) {
25647
- return Ee("MuiListItem", t);
25647
+ return Oe("MuiListItem", t);
25648
25648
  }
25649
25649
  s(qz, "getListItemUtilityClass");
25650
25650
  Re("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
25651
25651
  function Uz(t) {
25652
- return Ee("MuiListItemButton", t);
25652
+ return Oe("MuiListItemButton", t);
25653
25653
  }
25654
25654
  s(Uz, "getListItemButtonUtilityClass");
25655
25655
  const Ws = Re("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]), Gz = /* @__PURE__ */ s((t, e) => {
@@ -25674,7 +25674,7 @@ const Ws = Re("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems
25674
25674
  ...d
25675
25675
  };
25676
25676
  }, "useUtilityClasses$8"), Yz = ee(gi, {
25677
- shouldForwardProp: /* @__PURE__ */ s((t) => tn(t) || t === "classes", "shouldForwardProp"),
25677
+ shouldForwardProp: /* @__PURE__ */ s((t) => en(t) || t === "classes", "shouldForwardProp"),
25678
25678
  name: "MuiListItemButton",
25679
25679
  slot: "Root",
25680
25680
  overridesResolver: Gz
@@ -25775,7 +25775,7 @@ const Ws = Re("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems
25775
25775
  alignItems: o,
25776
25776
  disableGutters: d
25777
25777
  }), [o, g.dense, u, d]), x = S.useRef(null);
25778
- fn(() => {
25778
+ pn(() => {
25779
25779
  i && (x.current ? x.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
25780
25780
  }, [i]);
25781
25781
  const T = {
@@ -25880,7 +25880,7 @@ process.env.NODE_ENV !== "production" && (ei.propTypes = {
25880
25880
  sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
25881
25881
  });
25882
25882
  function Jz(t) {
25883
- return Ee("MuiListItemSecondaryAction", t);
25883
+ return Oe("MuiListItemSecondaryAction", t);
25884
25884
  }
25885
25885
  s(Jz, "getListItemSecondaryActionClassesUtilityClass");
25886
25886
  Re("MuiListItemSecondaryAction", ["root", "disableGutters"]);
@@ -26299,7 +26299,7 @@ function md(t) {
26299
26299
  defer: n = !1,
26300
26300
  fallback: r = null
26301
26301
  } = t, [o, i] = S.useState(!1);
26302
- return fn(() => {
26302
+ return pn(() => {
26303
26303
  n || i(!0);
26304
26304
  }, [n]), S.useEffect(() => {
26305
26305
  n && i(!0);
@@ -26329,7 +26329,7 @@ process.env.NODE_ENV !== "production" && (md.propTypes = {
26329
26329
  });
26330
26330
  process.env.NODE_ENV !== "production" && (md.propTypes = kc(md.propTypes));
26331
26331
  function rV(t, e, n) {
26332
- const r = e.getBoundingClientRect(), o = n && n.getBoundingClientRect(), i = pn(e);
26332
+ const r = e.getBoundingClientRect(), o = n && n.getBoundingClientRect(), i = dn(e);
26333
26333
  let a;
26334
26334
  if (e.fakeTransform)
26335
26335
  a = e.fakeTransform;
@@ -26418,7 +26418,7 @@ const s0 = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ s(function(e, n) {
26418
26418
  return;
26419
26419
  const j = Mc(() => {
26420
26420
  R.current && mu(p, R.current, d);
26421
- }), z = pn(R.current);
26421
+ }), z = dn(R.current);
26422
26422
  return z.addEventListener("resize", j), () => {
26423
26423
  j.clear(), z.removeEventListener("resize", j);
26424
26424
  };
@@ -26554,7 +26554,7 @@ process.env.NODE_ENV !== "production" && (s0.propTypes = {
26554
26554
  })])
26555
26555
  });
26556
26556
  function oV(t) {
26557
- return Ee("MuiDrawer", t);
26557
+ return Oe("MuiDrawer", t);
26558
26558
  }
26559
26559
  s(oV, "getDrawerUtilityClass");
26560
26560
  Re("MuiDrawer", ["root", "docked", "paper", "anchorLeft", "anchorRight", "anchorTop", "anchorBottom", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
@@ -26584,7 +26584,7 @@ const $k = /* @__PURE__ */ s((t, e) => {
26584
26584
  }) => ({
26585
26585
  zIndex: (t.vars || t).zIndex.drawer
26586
26586
  }))), aV = ee("div", {
26587
- shouldForwardProp: tn,
26587
+ shouldForwardProp: en,
26588
26588
  name: "MuiDrawer",
26589
26589
  slot: "Docked",
26590
26590
  skipVariantsResolver: !1,
@@ -26945,7 +26945,7 @@ process.env.NODE_ENV !== "production" && (Fk.propTypes = {
26945
26945
  });
26946
26946
  const cV = ee("div", {
26947
26947
  name: "MuiSwipeArea",
26948
- shouldForwardProp: tn
26948
+ shouldForwardProp: en
26949
26949
  })(je(({
26950
26950
  theme: t
26951
26951
  }) => ({
@@ -27051,7 +27051,7 @@ s(ox, "getTranslate");
27051
27051
  function uV(t, e) {
27052
27052
  const n = [];
27053
27053
  for (; t && t !== e.parentElement; ) {
27054
- const r = pn(e).getComputedStyle(t);
27054
+ const r = dn(e).getComputedStyle(t);
27055
27055
  // Ignore the scroll children if the element is absolute positioned.
27056
27056
  r.getPropertyValue("position") === "absolute" || // Ignore the scroll children if the element has an overflowX hidden
27057
27057
  r.getPropertyValue("overflow-x") === "hidden" || (t.clientWidth > 0 && t.scrollWidth > t.clientWidth || t.clientHeight > 0 && t.scrollHeight > t.clientHeight) && n.push(t), t = t.parentElement;
@@ -27122,7 +27122,7 @@ const pV = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
27122
27122
  } = r, [A, O] = S.useState(!1), M = S.useRef({
27123
27123
  isSwiping: null
27124
27124
  }), I = S.useRef(), $ = S.useRef(), L = S.useRef(), V = Ft(E.ref, L), j = S.useRef(!1), z = S.useRef();
27125
- fn(() => {
27125
+ pn(() => {
27126
27126
  z.current = null;
27127
27127
  }, [T]);
27128
27128
  const _ = S.useCallback((G, oe = {}) => {
@@ -27154,7 +27154,7 @@ const pV = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
27154
27154
  M.current.isSwiping = null;
27155
27155
  const oe = pl(o, a), ne = Fi(a);
27156
27156
  let Q;
27157
- ne ? Q = kh(oe, G.changedTouches, Kt(G.currentTarget)) : Q = Mh(oe, G.changedTouches, pn(G.currentTarget));
27157
+ ne ? Q = kh(oe, G.changedTouches, Kt(G.currentTarget)) : Q = Mh(oe, G.changedTouches, dn(G.currentTarget));
27158
27158
  const re = ne ? M.current.startX : M.current.startY, B = nl(ne, L.current), ie = ox(Q, re, T, B), X = ie / B;
27159
27159
  if (Math.abs(M.current.velocity) > m && (z.current = Math.abs((B - ie) / M.current.velocity) * 1e3), T) {
27160
27160
  M.current.velocity > m || X > f ? v() : _(0, {
@@ -27179,7 +27179,7 @@ const pV = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
27179
27179
  if (!L.current || !j.current || mo !== null && mo !== M.current)
27180
27180
  return;
27181
27181
  U(!0);
27182
- const oe = pl(o, a), ne = Fi(a), Q = kh(oe, G.touches, Kt(G.currentTarget)), re = Mh(oe, G.touches, pn(G.currentTarget));
27182
+ const oe = pl(o, a), ne = Fi(a), Q = kh(oe, G.touches, Kt(G.currentTarget)), re = Mh(oe, G.touches, dn(G.currentTarget));
27183
27183
  if (T && L.current.contains(G.target) && mo === null) {
27184
27184
  const Ce = uV(G.target, L.current);
27185
27185
  if (dV({
@@ -27222,7 +27222,7 @@ const pV = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
27222
27222
  }), q = On((G) => {
27223
27223
  if (G.defaultPrevented || G.defaultMuiPrevented || T && (p || !$.current.contains(G.target)) && !L.current.contains(G.target))
27224
27224
  return;
27225
- const oe = pl(o, a), ne = Fi(a), Q = kh(oe, G.touches, Kt(G.currentTarget)), re = Mh(oe, G.touches, pn(G.currentTarget));
27225
+ const oe = pl(o, a), ne = Fi(a), Q = kh(oe, G.touches, Kt(G.currentTarget)), re = Mh(oe, G.touches, dn(G.currentTarget));
27226
27226
  if (!T) {
27227
27227
  if (d || !(G.target === I.current || L.current?.contains(G.target) && (typeof h == "function" ? h(G, I.current, L.current) : h)))
27228
27228
  return;
@@ -27510,7 +27510,7 @@ process.env.NODE_ENV !== "production" && (gd.propTypes = {
27510
27510
  });
27511
27511
  function fV() {
27512
27512
  return /* @__PURE__ */ b(
27513
- un,
27513
+ cn,
27514
27514
  {
27515
27515
  sx: {
27516
27516
  display: "flex",
@@ -27520,7 +27520,7 @@ function fV() {
27520
27520
  pt: 2
27521
27521
  },
27522
27522
  children: /* @__PURE__ */ b(
27523
- un,
27523
+ cn,
27524
27524
  {
27525
27525
  sx: {
27526
27526
  width: 32,
@@ -27746,7 +27746,7 @@ const yV = {
27746
27746
  ...n
27747
27747
  }) => {
27748
27748
  const [r, o] = we(null), [i, a] = we(!1), l = fi(), u = rb(), { csvOptions: d = {}, excelOptions: p = {}, printOptions: f = {}, ...h } = n, { slotProps: m = {}, ...y } = h;
27749
- Se(() => {
27749
+ xe(() => {
27750
27750
  t?.current && o(t.current);
27751
27751
  }, [t]);
27752
27752
  const g = S.useCallback(
@@ -27883,7 +27883,7 @@ function CV(t) {
27883
27883
  ] })
27884
27884
  ] }) : /* @__PURE__ */ H(S.Fragment, { children: [
27885
27885
  o && /* @__PURE__ */ b(
27886
- un,
27886
+ cn,
27887
27887
  {
27888
27888
  sx: {
27889
27889
  ml: 0.5,
@@ -28847,9 +28847,9 @@ const Ug = pe(/* @__PURE__ */ b("path", {
28847
28847
  promptChangeChartsLabel: /* @__PURE__ */ s((t, e) => `Dimensiones (${t}), Valores (${e})`, "promptChangeChartsLabel")
28848
28848
  }, Hk = _V(zV), VV = /* @__PURE__ */ s((t) => {
28849
28849
  const { onRenderGrilla: e, onLoadGrilla: n, apiRef: r = {} } = t, { isLoading: o } = wo(), i = uf(t);
28850
- Se(() => {
28850
+ xe(() => {
28851
28851
  e && e({ ...i, api: r?.current });
28852
- }, []), Se(() => {
28852
+ }, []), xe(() => {
28853
28853
  o || n && n({ ...i, api: r?.current });
28854
28854
  }, [o]);
28855
28855
  }, "useInitGrilla"), jV = /* @__PURE__ */ s(() => {
@@ -29190,7 +29190,7 @@ const Zk = /* @__PURE__ */ s((t) => {
29190
29190
  ...ue
29191
29191
  },
29192
29192
  setProps: Ae
29193
- } = Ao(), Oe = R ?? X, Ie = N ?? ge, Fe = S.useCallback(
29193
+ } = Ao(), Te = R ?? X, Ie = N ?? ge, Fe = S.useCallback(
29194
29194
  (W) => {
29195
29195
  if (j.current = W, !!re) {
29196
29196
  if (typeof re == "function") {
@@ -29201,7 +29201,7 @@ const Zk = /* @__PURE__ */ s((t) => {
29201
29201
  }
29202
29202
  },
29203
29203
  [re]
29204
- ), fe = $?.unstable_listView ?? ue?.unstable_listView ?? !1, me = Oe && B === "pivot", le = ib(), [Ot, Ge] = S.useState(
29204
+ ), fe = $?.unstable_listView ?? ue?.unstable_listView ?? !1, me = Te && B === "pivot", le = ib(), [Ot, Ge] = S.useState(
29205
29205
  hx
29206
29206
  ), Be = S.useCallback(() => {
29207
29207
  Ge(hx());
@@ -29234,13 +29234,13 @@ const Zk = /* @__PURE__ */ s((t) => {
29234
29234
  rows: [],
29235
29235
  columns: [],
29236
29236
  values: []
29237
- }), [, ye] = S.useState({}), xe = P && me, nt = S.useMemo(() => {
29237
+ }), [, ye] = S.useState({}), Se = P && me, nt = S.useMemo(() => {
29238
29238
  if (!me)
29239
29239
  return et;
29240
29240
  const W = /* @__PURE__ */ s((te) => {
29241
29241
  if (!te)
29242
29242
  return te;
29243
- const Te = typeof te.getRows == "function" ? (...Ye) => te.getRows(...Ye) : te.getRows, We = typeof te.getGroupKey == "function" ? (...Ye) => te.getGroupKey(...Ye) : null, lt = /* @__PURE__ */ s((Ye) => {
29243
+ const Ee = typeof te.getRows == "function" ? (...Ye) => te.getRows(...Ye) : te.getRows, We = typeof te.getGroupKey == "function" ? (...Ye) => te.getGroupKey(...Ye) : null, lt = /* @__PURE__ */ s((Ye) => {
29244
29244
  const rt = We?.(Ye);
29245
29245
  if (rt != null && rt !== "")
29246
29246
  return String(rt);
@@ -29256,15 +29256,15 @@ const Zk = /* @__PURE__ */ s((t) => {
29256
29256
  (Gt) => Gt !== "id" && Gt !== "__childrenCount" && Gt !== "childrenCount" && Ye[Gt] != null && Ye[Gt] !== ""
29257
29257
  );
29258
29258
  return Nt ? String(Ye[Nt]) : Ye.id != null ? String(Ye.id) : "";
29259
- }, "getGroupKey"), _e = typeof te.getChildrenCount == "function" ? (...Ye) => te.getChildrenCount(...Ye) : null, nn = /* @__PURE__ */ s((Ye) => {
29259
+ }, "getGroupKey"), _e = typeof te.getChildrenCount == "function" ? (...Ye) => te.getChildrenCount(...Ye) : null, tn = /* @__PURE__ */ s((Ye) => {
29260
29260
  const rt = _e?.(Ye);
29261
29261
  return Number.isFinite(rt) ? rt : Ye?.childrenCount ?? Ye?.__childrenCount ?? 0;
29262
29262
  }, "getChildrenCount"), Dn = typeof te.getAggregatedValue == "function" ? (...Ye) => te.getAggregatedValue(...Ye) : null;
29263
29263
  return {
29264
29264
  ...te,
29265
- getRows: Te,
29265
+ getRows: Ee,
29266
29266
  getGroupKey: lt,
29267
- getChildrenCount: nn,
29267
+ getChildrenCount: tn,
29268
29268
  getAggregatedValue: /* @__PURE__ */ s((Ye, rt) => {
29269
29269
  const It = Dn?.(Ye, rt);
29270
29270
  if (It != null)
@@ -29287,9 +29287,9 @@ const Zk = /* @__PURE__ */ s((t) => {
29287
29287
  }, "ensureDataSourceGrouping");
29288
29288
  return W(et || {
29289
29289
  getRows: /* @__PURE__ */ s(async (te) => {
29290
- const Te = te.pivotModel || {};
29291
- $e.current = Te;
29292
- const We = te.start ?? 0, lt = te.end ?? We + 50, _e = Math.max(1, lt - We), nn = Math.floor(We / _e) + 1, Dn = te.sortModel ?? [], At = Dn[0]?.field ?? Qe.field ?? "id", Ye = (Dn[0]?.sort ?? Qe.order ?? "ASC").toUpperCase(), rt = le.current?.state?.rowGrouping?.model?.[0], It = v({
29290
+ const Ee = te.pivotModel || {};
29291
+ $e.current = Ee;
29292
+ const We = te.start ?? 0, lt = te.end ?? We + 50, _e = Math.max(1, lt - We), tn = Math.floor(We / _e) + 1, Dn = te.sortModel ?? [], At = Dn[0]?.field ?? Qe.field ?? "id", Ye = (Dn[0]?.sort ?? Qe.order ?? "ASC").toUpperCase(), rt = le.current?.state?.rowGrouping?.model?.[0], It = v({
29293
29293
  groupingField: rt,
29294
29294
  ...te.filterModel || {}
29295
29295
  }), Nt = {
@@ -29300,7 +29300,7 @@ const Zk = /* @__PURE__ */ s((t) => {
29300
29300
  end: lt,
29301
29301
  sortModel: Dn,
29302
29302
  filterModel: Nt,
29303
- pivotModel: Te,
29303
+ pivotModel: Ee,
29304
29304
  aggregationModel: te.aggregationModel || {},
29305
29305
  groupFields: te.groupFields || [],
29306
29306
  groupKeys: te.groupKeys || []
@@ -29311,21 +29311,21 @@ const Zk = /* @__PURE__ */ s((t) => {
29311
29311
  ...$?.meta || {},
29312
29312
  ...ue?.meta || {},
29313
29313
  pivot: 1,
29314
- pivotModel: JSON.stringify(Te),
29314
+ pivotModel: JSON.stringify(Ee),
29315
29315
  aggregationModel: JSON.stringify(
29316
29316
  te.aggregationModel ?? {}
29317
29317
  ),
29318
29318
  groupFields: JSON.stringify(te.groupFields ?? []),
29319
29319
  groupKeys: JSON.stringify(te.groupKeys ?? [])
29320
29320
  }, Ds = Bt.getList(K, {
29321
- pagination: { page: nn, perPage: _e },
29321
+ pagination: { page: tn, perPage: _e },
29322
29322
  sort: { field: At, order: Ye },
29323
29323
  filter: Nt,
29324
29324
  meta: wr
29325
29325
  }).then((Wa) => {
29326
29326
  const eh = Wa.data || [], t1 = Array.isArray(
29327
29327
  Wa.pivotColumns
29328
- ) ? Wa.pivotColumns : [], th = Te.rows || [], ZP = Te.columns || [], n1 = Te.values || [], e2 = th.map(Su).filter(Boolean), Kc = (te.groupFields || []).map(Su).filter(Boolean), Ha = te.groupKeys || [], t2 = e2.length > 0 && ZP.length === 0 && n1.length === 0, n2 = eh.some(
29328
+ ) ? Wa.pivotColumns : [], th = Ee.rows || [], ZP = Ee.columns || [], n1 = Ee.values || [], e2 = th.map(Su).filter(Boolean), Kc = (te.groupFields || []).map(Su).filter(Boolean), Ha = te.groupKeys || [], t2 = e2.length > 0 && ZP.length === 0 && n1.length === 0, n2 = eh.some(
29329
29329
  (_o) => _o?.childrenCount != null || _o?.__childrenCount != null
29330
29330
  );
29331
29331
  let qa = eh, nh = Wa.total ?? 0;
@@ -29412,24 +29412,24 @@ const Zk = /* @__PURE__ */ s((t) => {
29412
29412
  user: Lo = [],
29413
29413
  lang: Bv = []
29414
29414
  } = $o, DP = Xk(wi), _v = w && !DP, Gf = Je(dO), Fo = u0(), Uc = (le.current?.state?.rowGrouping?.model?.length ?? 0) > 0, zv = Uc && !me ? `${z.h + 4}px` : 0;
29415
- Se(() => {
29415
+ xe(() => {
29416
29416
  if (!me || Ie === "custom" || !le.current?.showSidebar || le.current?.state?.sidebar?.open && le.current?.state?.sidebar?.value === "pivot")
29417
29417
  return;
29418
29418
  const te = requestAnimationFrame(() => {
29419
29419
  le.current?.showSidebar?.("pivot");
29420
29420
  });
29421
29421
  return () => cancelAnimationFrame(te);
29422
- }, [le, Ie, me]), Se(() => {
29422
+ }, [le, Ie, me]), xe(() => {
29423
29423
  Gf && (Gf.current.activePanel.params.apiRef = le);
29424
- }, [Gf]), Se(() => {
29424
+ }, [Gf]), xe(() => {
29425
29425
  const W = {};
29426
- Ce !== le && (W.apiRef = le), X !== Oe && (W.pivotEnabled = Oe), ge !== Ie && (W.pivotUi = Ie), Object.keys(W).length > 0 && Ae?.(W);
29426
+ Ce !== le && (W.apiRef = le), X !== Te && (W.pivotEnabled = Te), ge !== Ie && (W.pivotUi = Ie), Object.keys(W).length > 0 && Ae?.(W);
29427
29427
  }, [
29428
29428
  le,
29429
29429
  Ce,
29430
29430
  X,
29431
29431
  ge,
29432
- Oe,
29432
+ Te,
29433
29433
  Ie,
29434
29434
  Ae
29435
29435
  ]);
@@ -29481,9 +29481,9 @@ const Zk = /* @__PURE__ */ s((t) => {
29481
29481
  columns: { columnVisibilityModel: jv = {} },
29482
29482
  ...Gc
29483
29483
  } = g, { columnVisibilityModel: Wv, columnOrder: Hv, columnasConfiguradas: qv } = S.useMemo(() => {
29484
- const W = {}, te = [], Te = [];
29484
+ const W = {}, te = [], Ee = [];
29485
29485
  return Vv.forEach((We) => {
29486
- W[We.field] = We.oculto !== void 0 ? !We.oculto : jv[We.field] ?? !0, te.push(We.field), Te.push({
29486
+ W[We.field] = We.oculto !== void 0 ? !We.oculto : jv[We.field] ?? !0, te.push(We.field), Ee.push({
29487
29487
  ...We,
29488
29488
  width: We.ancho ? parseInt(We.ancho) : We.width
29489
29489
  // Usar el ancho de las configuraciones si está disponible
@@ -29491,7 +29491,7 @@ const Zk = /* @__PURE__ */ s((t) => {
29491
29491
  }), {
29492
29492
  columnVisibilityModel: W,
29493
29493
  columnOrder: te,
29494
- columnasConfiguradas: Te
29494
+ columnasConfiguradas: Ee
29495
29495
  };
29496
29496
  }, [Vv, jv]), Bo = S.useMemo(
29497
29497
  () => ({
@@ -29568,7 +29568,7 @@ const Zk = /* @__PURE__ */ s((t) => {
29568
29568
  hideable: !1,
29569
29569
  renderHeader: /* @__PURE__ */ s(() => /* @__PURE__ */ b(_n, { children: n }), "renderHeader"),
29570
29570
  getActions: /* @__PURE__ */ s((W) => {
29571
- const Te = le.current.getRowNode(W.id)?.children?.[0], We = !!T && typeof Te == "string" && Te.indexOf(`${T}=`) !== -1, lt = !Gg(W.row, a), _e = E && lt, nn = Kv.current, At = (W.row?.id == null || W.row?.id === "") && We ? void 0 : W.row?.id ?? W.id, Ye = e.filter(
29571
+ const Ee = le.current.getRowNode(W.id)?.children?.[0], We = !!T && typeof Ee == "string" && Ee.indexOf(`${T}=`) !== -1, lt = !Gg(W.row, a), _e = E && lt, tn = Kv.current, At = (W.row?.id == null || W.row?.id === "") && We ? void 0 : W.row?.id ?? W.id, Ye = e.filter(
29572
29572
  (rt) => Fc($o, rt.perbot)
29573
29573
  ).filter((rt) => wi.length === 0 ? !0 : !wi.find(
29574
29574
  (It) => It === rt.key
@@ -29586,7 +29586,7 @@ const Zk = /* @__PURE__ */ s((t) => {
29586
29586
  showInMenu: !0,
29587
29587
  onClick: /* @__PURE__ */ s((wr) => typeof $n == "function" ? $n(
29588
29588
  {
29589
- ...nn,
29589
+ ...tn,
29590
29590
  record: W.row
29591
29591
  },
29592
29592
  Nt
@@ -29696,7 +29696,7 @@ const Zk = /* @__PURE__ */ s((t) => {
29696
29696
  icon: /* @__PURE__ */ b(Rc, { color: "primary" }),
29697
29697
  onClick: /* @__PURE__ */ s((rt) => {
29698
29698
  rt && (rt.defaultMuiPrevented = !0, rt.stopPropagation());
29699
- const It = T ? Te?.split(
29699
+ const It = T ? Ee?.split(
29700
29700
  `${T}=`
29701
29701
  )?.[1] : "", $n = String(
29702
29702
  It ?? ""
@@ -29733,20 +29733,20 @@ const Zk = /* @__PURE__ */ s((t) => {
29733
29733
  columns: Yv,
29734
29734
  enabled: !me
29735
29735
  }), _P = S.useCallback(
29736
- (W, te, Te) => {
29737
- Nn.onColumnWidthChange(W), tt?.onColumnWidthChange?.(W, te, Te), Xe?.onColumnWidthChange?.(
29736
+ (W, te, Ee) => {
29737
+ Nn.onColumnWidthChange(W), tt?.onColumnWidthChange?.(W, te, Ee), Xe?.onColumnWidthChange?.(
29738
29738
  W,
29739
29739
  te,
29740
- Te
29740
+ Ee
29741
29741
  );
29742
29742
  },
29743
29743
  [Nn, Xe, tt]
29744
29744
  ), zP = S.useCallback(
29745
- (W, te, Te) => {
29746
- Nn.onColumnOrderChange(W), tt?.onColumnOrderChange?.(W, te, Te), Xe?.onColumnOrderChange?.(
29745
+ (W, te, Ee) => {
29746
+ Nn.onColumnOrderChange(W), tt?.onColumnOrderChange?.(W, te, Ee), Xe?.onColumnOrderChange?.(
29747
29747
  W,
29748
29748
  te,
29749
- Te
29749
+ Ee
29750
29750
  );
29751
29751
  },
29752
29752
  [Nn, Xe, tt]
@@ -29756,8 +29756,8 @@ const Zk = /* @__PURE__ */ s((t) => {
29756
29756
  ) ?? null,
29757
29757
  [Nn.columns]
29758
29758
  ), Jv = S.useCallback((W) => {
29759
- const Te = (W.currentTarget instanceof HTMLDivElement ? W.currentTarget : null)?.getAttribute("data-id");
29760
- return Te || (typeof document > "u" ? null : document.elementsFromPoint(W.clientX, W.clientY).find(
29759
+ const Ee = (W.currentTarget instanceof HTMLDivElement ? W.currentTarget : null)?.getAttribute("data-id");
29760
+ return Ee || (typeof document > "u" ? null : document.elementsFromPoint(W.clientX, W.clientY).find(
29761
29761
  (_e) => _e instanceof Element && _e.matches(ZV)
29762
29762
  )?.getAttribute("data-id") ?? null);
29763
29763
  }, []), Xv = S.useCallback(
@@ -29767,22 +29767,22 @@ const Zk = /* @__PURE__ */ s((t) => {
29767
29767
  const te = Jv(W);
29768
29768
  if (!te)
29769
29769
  return;
29770
- let Te = te;
29771
- if (!le.current?.getRowNode(Te)) {
29770
+ let Ee = te;
29771
+ if (!le.current?.getRowNode(Ee)) {
29772
29772
  const _e = Number(te);
29773
- !Number.isNaN(_e) && le.current?.getRowNode(_e) && (Te = _e);
29773
+ !Number.isNaN(_e) && le.current?.getRowNode(_e) && (Ee = _e);
29774
29774
  }
29775
29775
  let We = null;
29776
29776
  try {
29777
- We = le.current?.getRowParams(Te);
29777
+ We = le.current?.getRowParams(Ee);
29778
29778
  } catch {
29779
29779
  }
29780
29780
  if (!We)
29781
29781
  return;
29782
29782
  const lt = (Yf.getActions(We) || []).filter(
29783
29783
  (_e) => ur(_e) && _e.props?.showInMenu
29784
- ).map((_e, nn) => ({
29785
- key: _e.key ?? `ctx-row-action-${nn}`,
29784
+ ).map((_e, tn) => ({
29785
+ key: _e.key ?? `ctx-row-action-${tn}`,
29786
29786
  label: _e.props?.label,
29787
29787
  icon: _e.props?.icon,
29788
29788
  disabled: _e.props?.disabled,
@@ -29851,14 +29851,14 @@ const Zk = /* @__PURE__ */ s((t) => {
29851
29851
  ), Qf = S.useMemo(() => {
29852
29852
  const W = e1;
29853
29853
  return Xf.map((te) => {
29854
- const Te = te.valueFormatter, We = /* @__PURE__ */ s((_e, nn, Dn, At) => Qc(nn) ? _e ?? "" : Te ? Te(_e, nn, Dn, At) : _e, "safeVF");
29854
+ const Ee = te.valueFormatter, We = /* @__PURE__ */ s((_e, tn, Dn, At) => Qc(tn) ? _e ?? "" : Ee ? Ee(_e, tn, Dn, At) : _e, "safeVF");
29855
29855
  if (te.field !== W)
29856
29856
  return {
29857
29857
  ...te,
29858
29858
  valueFormatter: We,
29859
29859
  align: "left",
29860
29860
  headerAlign: "left",
29861
- colSpan: /* @__PURE__ */ s((_e, nn) => Qc(nn) ? 0 : void 0, "colSpan")
29861
+ colSpan: /* @__PURE__ */ s((_e, tn) => Qc(tn) ? 0 : void 0, "colSpan")
29862
29862
  };
29863
29863
  const lt = te.renderCell;
29864
29864
  return {
@@ -29867,8 +29867,8 @@ const Zk = /* @__PURE__ */ s((t) => {
29867
29867
  align: "left",
29868
29868
  headerAlign: "left",
29869
29869
  cellClassName: /* @__PURE__ */ s((_e) => _e?.rowNode?.type === "group" ? "metiri-group-label" : void 0, "cellClassName"),
29870
- colSpan: /* @__PURE__ */ s((_e, nn) => {
29871
- if (!Qc(nn))
29870
+ colSpan: /* @__PURE__ */ s((_e, tn) => {
29871
+ if (!Qc(tn))
29872
29872
  return;
29873
29873
  const Dn = le.current?.getVisibleColumns?.() ?? [], At = le.current?.state?.pinnedColumns ?? le.current?.state?.columns?.pinnedColumns ?? {
29874
29874
  left: [],
@@ -29940,8 +29940,8 @@ const Zk = /* @__PURE__ */ s((t) => {
29940
29940
  if (!(me && nt))
29941
29941
  if (W.length > 0) {
29942
29942
  const { field: te } = W[0];
29943
- let Te;
29944
- Qe.field === te ? Te = Qe.order === "ASC" ? "DESC" : Qe.order === "DESC" ? "" : "ASC" : Te = "ASC", mn({ field: te, order: Te });
29943
+ let Ee;
29944
+ Qe.field === te ? Ee = Qe.order === "ASC" ? "DESC" : Qe.order === "DESC" ? "" : "ASC" : Ee = "ASC", mn({ field: te, order: Ee });
29945
29945
  } else
29946
29946
  mn({ field: "", order: "" });
29947
29947
  }, "handleSortModelChange"), GP = S.useCallback((W) => {
@@ -29979,8 +29979,8 @@ const Zk = /* @__PURE__ */ s((t) => {
29979
29979
  }
29980
29980
  !W?.id?.startsWith("auto-generated-row") && h && Gg(W.row, a) && Cr({ id: W.id, record: W.row });
29981
29981
  }, "handleRowDoubleClick"), JP = S.useCallback(
29982
- (W, te, Te) => {
29983
- tt?.onCellDoubleClick?.(W, te, Te), Xe?.onCellDoubleClick?.(W, te, Te), me && (te.defaultMuiPrevented = !0);
29982
+ (W, te, Ee) => {
29983
+ tt?.onCellDoubleClick?.(W, te, Ee), Xe?.onCellDoubleClick?.(W, te, Ee), me && (te.defaultMuiPrevented = !0);
29984
29984
  },
29985
29985
  [me, Xe, tt]
29986
29986
  ), XP = S.useCallback(
@@ -29990,8 +29990,8 @@ const Zk = /* @__PURE__ */ s((t) => {
29990
29990
  const te = Xe?.isCellEditable;
29991
29991
  if (typeof te == "function")
29992
29992
  return te(W);
29993
- const Te = tt?.isCellEditable;
29994
- return typeof Te == "function" ? Te(W) : !0;
29993
+ const Ee = tt?.isCellEditable;
29994
+ return typeof Ee == "function" ? Ee(W) : !0;
29995
29995
  },
29996
29996
  [me, Xe, tt]
29997
29997
  ), QP = {
@@ -30139,7 +30139,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30139
30139
  children: [
30140
30140
  (le.current?.state?.rowGrouping?.model || []).map((W) => {
30141
30141
  const te = Yv.find(
30142
- (Te) => Te.field === W
30142
+ (Ee) => Ee.field === W
30143
30143
  )?.headerName ?? W;
30144
30144
  return /* @__PURE__ */ b(
30145
30145
  i1,
@@ -30147,8 +30147,8 @@ const Zk = /* @__PURE__ */ s((t) => {
30147
30147
  size: "small",
30148
30148
  label: te,
30149
30149
  sx: { pointerEvents: "auto" },
30150
- onDelete: /* @__PURE__ */ s((Te) => {
30151
- Te.stopPropagation();
30150
+ onDelete: /* @__PURE__ */ s((Ee) => {
30151
+ Ee.stopPropagation();
30152
30152
  const lt = (le.current?.state?.rowGrouping?.model || []).filter(
30153
30153
  (_e) => _e !== W
30154
30154
  );
@@ -30174,8 +30174,8 @@ const Zk = /* @__PURE__ */ s((t) => {
30174
30174
  W.stopPropagation();
30175
30175
  const te = le.current?.state?.rowGrouping?.model || [];
30176
30176
  le.current?.setRowGroupingModel([]), te.forEach(
30177
- (Te) => le.current?.setColumnVisibility?.(
30178
- Te,
30177
+ (Ee) => le.current?.setColumnVisibility?.(
30178
+ Ee,
30179
30179
  !0
30180
30180
  )
30181
30181
  );
@@ -30234,9 +30234,9 @@ const Zk = /* @__PURE__ */ s((t) => {
30234
30234
  }
30235
30235
  },
30236
30236
  columns: me ? Ns : Qf,
30237
- rows: xe ? [] : at,
30237
+ rows: Se ? [] : at,
30238
30238
  apiRef: le,
30239
- pivotActive: me,
30239
+ pivotActive: Te ? me : void 0,
30240
30240
  groupingColDef: me ? void 0 : $P,
30241
30241
  loading: _t || U.progress.open,
30242
30242
  hideFooterRowCount: !0,
@@ -30276,8 +30276,8 @@ const Zk = /* @__PURE__ */ s((t) => {
30276
30276
  columnGroupingModel: ue?.columnGroupingModel ?? $?.columnGroupingModel,
30277
30277
  columnGroupHeaderHeight: ue?.columnGroupHeaderHeight ?? $?.columnGroupHeaderHeight,
30278
30278
  aggregationFunctions: Ne,
30279
- dataSource: xe ? nt : void 0,
30280
- pivotingColDef: xe ? Rt : void 0,
30279
+ dataSource: Se ? nt : void 0,
30280
+ pivotingColDef: Se ? Rt : void 0,
30281
30281
  showToolbar: !ie
30282
30282
  },
30283
30283
  me ? "grid-pivot" : "grid-standard"
@@ -30314,11 +30314,11 @@ const Zk = /* @__PURE__ */ s((t) => {
30314
30314
  },
30315
30315
  children: Ot.actions.map((W, te) => {
30316
30316
  const {
30317
- key: Te,
30317
+ key: Ee,
30318
30318
  label: We,
30319
30319
  icon: lt,
30320
30320
  disabled: _e,
30321
- className: nn,
30321
+ className: tn,
30322
30322
  sx: Dn,
30323
30323
  closeMenuOnClick: At,
30324
30324
  inert: Ye,
@@ -30328,7 +30328,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30328
30328
  eo,
30329
30329
  {
30330
30330
  disabled: _e,
30331
- className: nn,
30331
+ className: tn,
30332
30332
  sx: Dn,
30333
30333
  disableRipple: !!Ye,
30334
30334
  onClick: /* @__PURE__ */ s((It) => {
@@ -30339,7 +30339,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30339
30339
  /* @__PURE__ */ b(ns, { children: We })
30340
30340
  ]
30341
30341
  },
30342
- Te ?? `ctx-row-action-${te}`
30342
+ Ee ?? `ctx-row-action-${te}`
30343
30343
  );
30344
30344
  })
30345
30345
  }
@@ -30583,8 +30583,8 @@ const Zk = /* @__PURE__ */ s((t) => {
30583
30583
  opacity: 0.6,
30584
30584
  position: "relative"
30585
30585
  }, fj = /* @__PURE__ */ s((t) => {
30586
- const e = en(), n = Ba(), r = vn(Ig("etr")).current, o = Ro(), i = n.open ? pj : dj;
30587
- return Se(
30586
+ const e = fn(), n = Ba(), r = vn(Ig("etr")).current, o = Ro(), i = n.open ? pj : dj;
30587
+ return xe(
30588
30588
  () => () => {
30589
30589
  o(Ag(r));
30590
30590
  },
@@ -30635,7 +30635,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30635
30635
  setOpen: l,
30636
30636
  open: u
30637
30637
  } = t, { dirtyFields: d, isValid: p } = CA(), { fichaProps: { [t.source]: f = {} } = {} } = Mt(), h = Ba(), { onAfterRenderAsistente: m, ...y } = f, g = Fr({ resource: n });
30638
- return Se(() => {
30638
+ return xe(() => {
30639
30639
  u && typeof m == "function" && m({ ...g, form: e }, r);
30640
30640
  }, [u]), /* @__PURE__ */ H(_n, { children: [
30641
30641
  /* @__PURE__ */ b(Nc, { children: /* @__PURE__ */ b(rs, { spacing: 4, children: Hl.map(
@@ -30682,7 +30682,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30682
30682
  onBeforeSubmitAsistente: l = wa,
30683
30683
  onAfterSubmitAsistente: u = wa,
30684
30684
  validateAllowAdd: d
30685
- } = t, [p, f] = S.useState(!1), h = mt(t), m = en(), y = fi(), g = OO({ apiRef: y, source: i, enviarTodo: a }), v = "N", { estado: x } = Mt(), T = Fr(), C = Ut()("ra.action.create");
30685
+ } = t, [p, f] = S.useState(!1), h = mt(t), m = fn(), y = fi(), g = OO({ apiRef: y, source: i, enviarTodo: a }), v = "N", { estado: x } = Mt(), T = Fr(), C = Ut()("ra.action.create");
30686
30686
  return /* @__PURE__ */ H(_n, { children: [
30687
30687
  /* @__PURE__ */ b(
30688
30688
  En,
@@ -30743,7 +30743,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30743
30743
  enviarTodo: l,
30744
30744
  onBeforeSubmitAsistente: u = wa,
30745
30745
  onAfterSubmitAsistente: d = wa
30746
- } = t, p = Ut(), [f, h] = S.useState(!1), m = fi(), y = en(), g = kO({ apiRef: m, source: i, enviarTodo: l }), v = "M", { estado: x } = Mt(), T = Fr(), E = p("ra.action.edit");
30746
+ } = t, p = Ut(), [f, h] = S.useState(!1), m = fi(), y = fn(), g = kO({ apiRef: m, source: i, enviarTodo: l }), v = "M", { estado: x } = Mt(), T = Fr(), E = p("ra.action.edit");
30747
30747
  return /* @__PURE__ */ H(_n, { children: [
30748
30748
  /* @__PURE__ */ b(
30749
30749
  En,
@@ -30802,7 +30802,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30802
30802
  enviarTodo: i,
30803
30803
  onBeforeSubmitAsistente: a = wa,
30804
30804
  onAfterSubmitAsistente: l = wa
30805
- } = t, [u, d] = S.useState(!1), p = fi(), f = en(), h = MO({ apiRef: p, source: o, enviarTodo: i }), { estado: m } = Mt(), y = Fr();
30805
+ } = t, [u, d] = S.useState(!1), p = fi(), f = fn(), h = MO({ apiRef: p, source: o, enviarTodo: i }), { estado: m } = Mt(), y = Fr();
30806
30806
  return /* @__PURE__ */ H(kr, { children: [
30807
30807
  /* @__PURE__ */ b(
30808
30808
  cj,
@@ -30850,7 +30850,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30850
30850
  slotProps: x,
30851
30851
  showToolbar: T,
30852
30852
  ...E
30853
- } = t, [C, w] = S.useState([]), k = gr(t), R = en(), { field: N } = Bp({ defaultValue: "", ...t }), P = u0(), { isActive: D } = _c(), {
30853
+ } = t, [C, w] = S.useState([]), k = gr(t), R = fn(), { field: N } = Bp({ defaultValue: "", ...t }), P = u0(), { isActive: D } = _c(), {
30854
30854
  isLoading: A,
30855
30855
  fichaProps: { [m]: O } = {},
30856
30856
  propsContenidos: { [m]: M = {} } = {}
@@ -30882,7 +30882,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30882
30882
  } = O || {}, X = `${m}_enviartodo`, { field: ge } = QT({
30883
30883
  name: X,
30884
30884
  defaultValue: F ? "true" : void 0
30885
- }), [Ce, ue] = S.useState(r), [{ field: Ae, sort: Oe }] = r, Ie = j || p || U, Fe = _ !== void 0 ? _ : V ? !0 : J !== void 0 ? J : f, fe = M.enableLoad ?? q ?? d, me = oe ?? a, le = ne ?? l, Ot = Q ?? u;
30885
+ }), [Ce, ue] = S.useState(r), [{ field: Ae, sort: Te }] = r, Ie = j || p || U, Fe = _ !== void 0 ? _ : V ? !0 : J !== void 0 ? J : f, fe = M.enableLoad ?? q ?? d, me = oe ?? a, le = ne ?? l, Ot = Q ?? u;
30886
30886
  let Ge = { ...g };
30887
30887
  k && e.split(",").forEach((Ke) => {
30888
30888
  Ke && (Ge[Ke] = [
@@ -30893,13 +30893,13 @@ const Zk = /* @__PURE__ */ s((t) => {
30893
30893
  field: Ke
30894
30894
  }
30895
30895
  ]);
30896
- }), Se(() => {
30896
+ }), xe(() => {
30897
30897
  fe || setTimeout(() => {
30898
30898
  xx(h).length > 0 || R.setValue(m, "");
30899
30899
  }, 1e3);
30900
- }, [h, fe, R, m]), Se(() => {
30900
+ }, [h, fe, R, m]), xe(() => {
30901
30901
  F ? R.setValue(X, "true") : R.unregister(X);
30902
- }, [F, R, X]), Se(() => {
30902
+ }, [F, R, X]), xe(() => {
30903
30903
  h.__setEtrRows = w;
30904
30904
  const Ke = xx(h);
30905
30905
  return Ke.length > 0 && w(Ke), () => {
@@ -30910,7 +30910,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30910
30910
  i,
30911
30911
  {
30912
30912
  pagination: { page: 1, perPage: 200 },
30913
- sort: { field: Ae, order: Oe },
30913
+ sort: { field: Ae, order: Te },
30914
30914
  filter: Ge
30915
30915
  },
30916
30916
  {
@@ -30922,7 +30922,7 @@ const Zk = /* @__PURE__ */ s((t) => {
30922
30922
  }, "onSuccess")
30923
30923
  }
30924
30924
  );
30925
- Se(() => {
30925
+ xe(() => {
30926
30926
  if (!(Array.isArray(C) && C.length > 0) && Array.isArray(Be)) {
30927
30927
  w(Be);
30928
30928
  return;
@@ -31044,7 +31044,7 @@ const Zk = /* @__PURE__ */ s((t) => {
31044
31044
  () => wn.reduce((Ke, In) => Sx(In?.width) ? Ke + In.width : Sx(In?.minWidth) ? Ke + In.minWidth : Ke + 140, 0),
31045
31045
  [wn]
31046
31046
  ), Do = !0;
31047
- return Se(() => {
31047
+ return xe(() => {
31048
31048
  if (!D || !Do)
31049
31049
  return;
31050
31050
  const Ke = /* @__PURE__ */ s(() => {
@@ -31696,8 +31696,8 @@ const Zk = /* @__PURE__ */ s((t) => {
31696
31696
  }, "useFormSubmit");
31697
31697
  let Yg = null;
31698
31698
  const lM = /* @__PURE__ */ s(() => {
31699
- const { reset: t } = en();
31700
- return Se(() => {
31699
+ const { reset: t } = fn();
31700
+ return xe(() => {
31701
31701
  Aj(() => t());
31702
31702
  }, [t]), null;
31703
31703
  }, "FormResetter"), Aj = /* @__PURE__ */ s((t) => {
@@ -31750,7 +31750,7 @@ const lM = /* @__PURE__ */ s(() => {
31750
31750
  g
31751
31751
  ]
31752
31752
  );
31753
- return Se(() => {
31753
+ return xe(() => {
31754
31754
  let R = !0;
31755
31755
  return n ? (l(null), C ? () => {
31756
31756
  R = !1;
@@ -31805,7 +31805,7 @@ const lM = /* @__PURE__ */ s(() => {
31805
31805
  resource: i,
31806
31806
  dockviewTabParent: !0
31807
31807
  }), l = Fp(), u = vn(!1), d = e?.state?._asistentePopup === "router" && typeof n?.show == "function", p = d ? `${i}:create` : null;
31808
- return Se(() => {
31808
+ return xe(() => {
31809
31809
  if (!d || u.current || (u.current = !0, p && (Cu.has(p) || n?.open && n?.props?._popupKey === p) || !p))
31810
31810
  return;
31811
31811
  p && Cu.add(p);
@@ -31977,13 +31977,13 @@ const lM = /* @__PURE__ */ s(() => {
31977
31977
  ), k = vn(null), R = /* @__PURE__ */ s((D) => {
31978
31978
  E(D.target.checked);
31979
31979
  }, "handleChange");
31980
- if (Se(() => {
31980
+ if (xe(() => {
31981
31981
  g.getGrillaConfig(e, y).then((D) => {
31982
31982
  x(D.data);
31983
31983
  }).catch((D) => {
31984
31984
  v === null && x({});
31985
31985
  });
31986
- }, []), Se(() => {
31986
+ }, []), xe(() => {
31987
31987
  const D = k.current;
31988
31988
  if (!D)
31989
31989
  return;
@@ -32116,7 +32116,7 @@ const lM = /* @__PURE__ */ s(() => {
32116
32116
  y
32117
32117
  ]
32118
32118
  );
32119
- return Se(() => {
32119
+ return xe(() => {
32120
32120
  let v = !0;
32121
32121
  return a(null), f ? () => {
32122
32122
  v = !1;
@@ -32166,7 +32166,7 @@ const lM = /* @__PURE__ */ s(() => {
32166
32166
  resource: i,
32167
32167
  dockviewTabParent: !0
32168
32168
  }), l = Fp(), u = KT(), d = vn(!1), p = e?.state?._asistentePopup === "router" && typeof n?.show == "function", f = ql(`/${i}/:id/*`, e.pathname) || ql(`/${i}/:id`, e.pathname), h = t.id ?? u?.id ?? e?.state?.id ?? e?.state?.record?.id ?? t.record?.id ?? f?.params?.id, m = p && !!h, y = m ? `${i}:${h}` : null;
32169
- return Se(() => {
32169
+ return xe(() => {
32170
32170
  if (!m || d.current || (d.current = !0, y && (wu.has(y) || n?.open && n?.props?._popupKey === y) || !y))
32171
32171
  return;
32172
32172
  y && wu.add(y);
@@ -32241,7 +32241,7 @@ const lM = /* @__PURE__ */ s(() => {
32241
32241
  /* @__PURE__ */ H(Da, { resource: f, onSubmit: r, children: [
32242
32242
  /* @__PURE__ */ H(Nc, { dividers: !0, children: [
32243
32243
  /* @__PURE__ */ b(Lb, { children: a }),
32244
- /* @__PURE__ */ b(un, { sx: { mt: 2 }, children: l })
32244
+ /* @__PURE__ */ b(cn, { sx: { mt: 2 }, children: l })
32245
32245
  ] }),
32246
32246
  (u || d) && /* @__PURE__ */ H(Ic, { children: [
32247
32247
  d && /* @__PURE__ */ b(
@@ -32268,9 +32268,9 @@ const lM = /* @__PURE__ */ s(() => {
32268
32268
  );
32269
32269
  }), uM = /* @__PURE__ */ s((t) => {
32270
32270
  const e = mt(t), { estado: n, isLoading: r, initialValues: o, fichaProps: i } = Mt(), a = Fr({ resource: e });
32271
- if (Se(() => {
32271
+ if (xe(() => {
32272
32272
  i.onRenderFicha && i.onRenderFicha(a, n);
32273
- }, []), Se(() => {
32273
+ }, []), xe(() => {
32274
32274
  r || i.onLoadFicha && i.onLoadFicha(a, n, o);
32275
32275
  }, [r]), r)
32276
32276
  return /* @__PURE__ */ b(
@@ -32374,7 +32374,7 @@ const lM = /* @__PURE__ */ s(() => {
32374
32374
  ...l
32375
32375
  } = e;
32376
32376
  return /* @__PURE__ */ H(
32377
- un,
32377
+ cn,
32378
32378
  {
32379
32379
  className: r ? `simple-form ${r}` : "simple-form",
32380
32380
  sx: {
@@ -32389,7 +32389,7 @@ const lM = /* @__PURE__ */ s(() => {
32389
32389
  ...Zj(l),
32390
32390
  children: [
32391
32391
  /* @__PURE__ */ b(
32392
- un,
32392
+ cn,
32393
32393
  {
32394
32394
  sx: {
32395
32395
  flex: 1,
@@ -32405,7 +32405,7 @@ const lM = /* @__PURE__ */ s(() => {
32405
32405
  }
32406
32406
  ),
32407
32407
  a !== !1 ? /* @__PURE__ */ b(
32408
- un,
32408
+ cn,
32409
32409
  {
32410
32410
  sx: /* @__PURE__ */ s((u) => ({
32411
32411
  flexShrink: 0,
@@ -32757,7 +32757,7 @@ const lM = /* @__PURE__ */ s(() => {
32757
32757
  Q,
32758
32758
  V
32759
32759
  ]);
32760
- return Se(() => {
32760
+ return xe(() => {
32761
32761
  v((B) => {
32762
32762
  const ie = { ...B };
32763
32763
  return re.forEach((X) => {
@@ -32958,7 +32958,7 @@ const lM = /* @__PURE__ */ s(() => {
32958
32958
  d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
32959
32959
  }), "Person");
32960
32960
  function u6(t) {
32961
- return Ee("MuiAvatar", t);
32961
+ return Oe("MuiAvatar", t);
32962
32962
  }
32963
32963
  s(u6, "getAvatarUtilityClass");
32964
32964
  Re("MuiAvatar", ["root", "colorDefault", "circular", "rounded", "square", "img", "fallback"]);
@@ -33226,7 +33226,7 @@ process.env.NODE_ENV !== "production" && (f0.propTypes = {
33226
33226
  variant: c.oneOfType([c.oneOf(["circular", "rounded", "square"]), c.string])
33227
33227
  });
33228
33228
  function g6(t) {
33229
- return Ee("MuiCard", t);
33229
+ return Oe("MuiCard", t);
33230
33230
  }
33231
33231
  s(g6, "getCardUtilityClass");
33232
33232
  Re("MuiCard", ["root"]);
@@ -33290,7 +33290,7 @@ process.env.NODE_ENV !== "production" && (hM.propTypes = {
33290
33290
  sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object])
33291
33291
  });
33292
33292
  function v6(t) {
33293
- return Ee("MuiCardActions", t);
33293
+ return Oe("MuiCardActions", t);
33294
33294
  }
33295
33295
  s(v6, "getCardActionsUtilityClass");
33296
33296
  Re("MuiCardActions", ["root", "spacing"]);
@@ -33637,7 +33637,7 @@ const kJ = /* @__PURE__ */ s((t) => {
33637
33637
  }),
33638
33638
  [d, p, n, f, m]
33639
33639
  );
33640
- return Se(() => {
33640
+ return xe(() => {
33641
33641
  let g = !0;
33642
33642
  return i(null), p ? () => {
33643
33643
  g = !1;
@@ -33731,7 +33731,7 @@ const kJ = /* @__PURE__ */ s((t) => {
33731
33731
  }
33732
33732
  return m;
33733
33733
  }, [A, a, P, m]), M = vn(D);
33734
- Se(() => {
33734
+ xe(() => {
33735
33735
  if (M.current === D)
33736
33736
  return;
33737
33737
  const F = w + C, U = A < 0 ? 0 : A;
@@ -33796,7 +33796,7 @@ const kJ = /* @__PURE__ */ s((t) => {
33796
33796
  )
33797
33797
  ] }), "renderTabHeaders");
33798
33798
  return /* @__PURE__ */ H(
33799
- un,
33799
+ cn,
33800
33800
  {
33801
33801
  className: r ? `tabbed-form ${r}` : "tabbed-form",
33802
33802
  sx: /* @__PURE__ */ s((F) => ({
@@ -33837,7 +33837,7 @@ const kJ = /* @__PURE__ */ s((t) => {
33837
33837
  ...P6(p),
33838
33838
  children: [
33839
33839
  /* @__PURE__ */ H(
33840
- un,
33840
+ cn,
33841
33841
  {
33842
33842
  className: Ln.header,
33843
33843
  sx: { flexShrink: 0 },
@@ -33848,7 +33848,7 @@ const kJ = /* @__PURE__ */ s((t) => {
33848
33848
  }
33849
33849
  ),
33850
33850
  /* @__PURE__ */ b(
33851
- un,
33851
+ cn,
33852
33852
  {
33853
33853
  sx: {
33854
33854
  flex: 1,
@@ -33890,7 +33890,7 @@ const kJ = /* @__PURE__ */ s((t) => {
33890
33890
  }
33891
33891
  ),
33892
33892
  u !== !1 ? /* @__PURE__ */ b(
33893
- un,
33893
+ cn,
33894
33894
  {
33895
33895
  sx: /* @__PURE__ */ s((F) => ({
33896
33896
  flexShrink: 0,
@@ -34112,7 +34112,7 @@ const kJ = /* @__PURE__ */ s((t) => {
34112
34112
  d: "M17 4h3c1.1 0 2 .9 2 2v2h-2V6h-3zM4 8V6h3V4H4c-1.1 0-2 .9-2 2v2zm16 8v2h-3v2h3c1.1 0 2-.9 2-2v-2zM7 18H4v-2H2v2c0 1.1.9 2 2 2h3zM18 8H6v8h12z"
34113
34113
  }), "FitScreen");
34114
34114
  function $6(t) {
34115
- return Ee("MuiAppBar", t);
34115
+ return Oe("MuiAppBar", t);
34116
34116
  }
34117
34117
  s($6, "getAppBarUtilityClass");
34118
34118
  Re("MuiAppBar", ["root", "positionFixed", "positionAbsolute", "positionSticky", "positionStatic", "positionRelative", "colorDefault", "colorPrimary", "colorSecondary", "colorInherit", "colorTransparent", "colorError", "colorInfo", "colorSuccess", "colorWarning"]);
@@ -34340,14 +34340,14 @@ const Ax = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
34340
34340
  const { isLoading: e } = t, n = mt(t), r = Po(), o = Je(Ix), i = vn(
34341
34341
  `asistente-host-${Math.random().toString(36).slice(2)}`
34342
34342
  ), a = r?.hostId, l = !a || a === i.current;
34343
- Se(() => {
34343
+ xe(() => {
34344
34344
  if (!(!r?.registerHost || !l))
34345
34345
  return r.registerHost(i.current), () => {
34346
34346
  r.unregisterHost && r.unregisterHost(i.current);
34347
34347
  };
34348
34348
  }, [r, l]);
34349
34349
  const { hide: u, stack: d = [] } = r || {}, p = /* @__PURE__ */ s(({ botonesExtra: y }) => {
34350
- const g = en(), v = /* @__PURE__ */ s((x) => (T) => {
34350
+ const g = fn(), v = /* @__PURE__ */ s((x) => (T) => {
34351
34351
  if (typeof x != "function")
34352
34352
  return;
34353
34353
  const E = g?.getValues ? g.getValues() : void 0;
@@ -34711,7 +34711,7 @@ const Ax = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
34711
34711
  incluyeAcciones: o = !1,
34712
34712
  saveButtonProps: i,
34713
34713
  ...a
34714
- } = t, [l, u] = we(!1), d = Fr(a), p = Sr(), { trigger: f } = en(), { hidden: h } = xO(), m = S.useContext(tr) || {}, y = De(
34714
+ } = t, [l, u] = we(!1), d = Fr(a), p = Sr(), { trigger: f } = fn(), { hidden: h } = xO(), m = S.useContext(tr) || {}, y = De(
34715
34715
  async (g, v, x) => {
34716
34716
  typeof e == "function" ? (x?.skipValidation ? !0 : await f()) ? (u(!0), e(d, v, x?.name, g).finally(
34717
34717
  () => {
@@ -34860,7 +34860,7 @@ if (process.env.NODE_ENV !== "production") {
34860
34860
  const LJ = /* @__PURE__ */ s(({ title: t, children: e, sx: n, source: r, ...o }) => {
34861
34861
  const { hidden: i } = An({ source: r, ...o });
34862
34862
  return i ? null : /* @__PURE__ */ H(
34863
- un,
34863
+ cn,
34864
34864
  {
34865
34865
  sx: {
34866
34866
  width: "auto",
@@ -35037,7 +35037,7 @@ const _J = {
35037
35037
  d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"
35038
35038
  }), "CloudDownload");
35039
35039
  function W6(t) {
35040
- return Ee("MuiLink", t);
35040
+ return Oe("MuiLink", t);
35041
35041
  }
35042
35042
  s(W6, "getLinkUtilityClass");
35043
35043
  const H6 = Re("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlways", "button", "focusVisible"]), q6 = /* @__PURE__ */ s(({
@@ -35310,8 +35310,8 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
35310
35310
  }, "1")], "PhotoCamera"), Y6 = pe(/* @__PURE__ */ b("path", {
35311
35311
  d: "M3 4V1h2v3h3v2H5v3H3V6H0V4zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5m-3.2-5c0 1.77 1.43 3.2 3.2 3.2s3.2-1.43 3.2-3.2-1.43-3.2-3.2-3.2-3.2 1.43-3.2 3.2"
35312
35312
  }), "AddAPhoto"), Dx = /* @__PURE__ */ s((t) => {
35313
- const [e, n] = we(!1), [r, o] = we(!1), i = en(), a = Sr(), l = Ut(), { field: u, sx: d } = t;
35314
- return Se(() => {
35313
+ const [e, n] = we(!1), [r, o] = we(!1), i = fn(), a = Sr(), l = Ut(), { field: u, sx: d } = t;
35314
+ return xe(() => {
35315
35315
  e && (/* @__PURE__ */ s(async () => {
35316
35316
  let f = null;
35317
35317
  try {
@@ -35479,15 +35479,15 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
35479
35479
  code: "file-executable-blocked",
35480
35480
  message: "No se permiten ejecutables (solo .zip)."
35481
35481
  } : null;
35482
- }, "validatorNonImage"), g = Ut(), v = gr(t), [x, T] = we(() => Date.now()), E = Pr((P) => P.breakpoints.down("sm")), C = en(), [w, k] = we(
35482
+ }, "validatorNonImage"), g = Ut(), v = gr(t), [x, T] = we(() => Date.now()), E = Pr((P) => P.breakpoints.down("sm")), C = fn(), [w, k] = we(
35483
35483
  v && u ? Qg(`${u}/${v[h.source]}`, x) : void 0
35484
35484
  );
35485
35485
  if (!C)
35486
35486
  return null;
35487
35487
  const R = C.getValues()[h.source], N = w ?? "#";
35488
- return Se(() => {
35488
+ return xe(() => {
35489
35489
  T(Date.now());
35490
- }, [R]), Se(() => {
35490
+ }, [R]), xe(() => {
35491
35491
  d && R && (R?.src ? k(R.src) : d(R).then((P) => {
35492
35492
  k(Qg(P, x));
35493
35493
  }));
@@ -35549,7 +35549,7 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
35549
35549
  format: /* @__PURE__ */ s((P) => $x(P, u, w, x), "format"),
35550
35550
  placeholder: g("ra.input.file.upload_single"),
35551
35551
  ...m ? { accept: m } : {},
35552
- children: /* @__PURE__ */ H(un, { sx: { display: "inline-block", ml: 1 }, children: [
35552
+ children: /* @__PURE__ */ H(cn, { sx: { display: "inline-block", ml: 1 }, children: [
35553
35553
  /* @__PURE__ */ b(
35554
35554
  Rr,
35555
35555
  {
@@ -35665,7 +35665,7 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
35665
35665
  },
35666
35666
  [i]
35667
35667
  );
35668
- return Se(() => {
35668
+ return xe(() => {
35669
35669
  d || typeof e == "function" && e(Object.values([p]));
35670
35670
  }, [p, e, d]), /* @__PURE__ */ b(Z6, { title: h.current?.value || "", placement: "top", arrow: !0, children: /* @__PURE__ */ b(
35671
35671
  Me,
@@ -35702,7 +35702,7 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
35702
35702
  }
35703
35703
  ) });
35704
35704
  }, "SelectInputEtriek"), nW = /* @__PURE__ */ s((t) => {
35705
- const { propsContenido: e, hidden: n } = An(t), r = Ro(), o = lb(), i = en(), { isLoading: a } = Mt(), { isActive: l } = _c(), {
35705
+ const { propsContenido: e, hidden: n } = An(t), r = Ro(), o = lb(), i = fn(), { isLoading: a } = Mt(), { isActive: l } = _c(), {
35706
35706
  queryOptions: u,
35707
35707
  asistant: d,
35708
35708
  asistantResource: p,
@@ -35755,7 +35755,7 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
35755
35755
  ), D = De((A, O, M) => {
35756
35756
  M === "input" && Array.isArray(v) && v.length > 0 && O !== void 0 && x([]);
35757
35757
  }, [v]);
35758
- return Se(() => {
35758
+ return xe(() => {
35759
35759
  C !== null && (w.current = C, r(rF(m, void 0, E)));
35760
35760
  }, [r, C, E, m]), !n && !a && l ? /* @__PURE__ */ H(
35761
35761
  Me,
@@ -35847,7 +35847,7 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
35847
35847
  const { title: e, source: n, src: r } = t, o = gr(t), i = `${r}/${o[n]}`;
35848
35848
  return /* @__PURE__ */ b(f0, { title: e, src: i });
35849
35849
  }, "ImageField"), Fx = /* @__PURE__ */ s((t, e) => t.filter((n) => !e.includes(n)), "not"), zr = /* @__PURE__ */ s((t, e) => t.filter((n) => e.includes(n)), "intersection"), rW = /* @__PURE__ */ s((t) => {
35850
- const { source: e, record: n, sx: r = {} } = t, { allChoices: o, availableChoices: i } = jT(), [a, l] = S.useState([]), [u, d] = S.useState(null), p = en(), f = wA({ control: p.control, name: e }), h = Array.isArray(f) ? f : n?.[e] || [], [m, y] = S.useState(""), { field: g } = Bp({ defaultValue: "", ...t }), v = S.useMemo(
35850
+ const { source: e, record: n, sx: r = {} } = t, { allChoices: o, availableChoices: i } = jT(), [a, l] = S.useState([]), [u, d] = S.useState(null), p = fn(), f = wA({ control: p.control, name: e }), h = Array.isArray(f) ? f : n?.[e] || [], [m, y] = S.useState(""), { field: g } = Bp({ defaultValue: "", ...t }), v = S.useMemo(
35851
35851
  () => Array.isArray(h) && h.length > 0 ? i?.filter(
35852
35852
  (M) => !h.some((I) => I === M.id)
35853
35853
  ) || [] : i || [],
@@ -36040,7 +36040,7 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
36040
36040
  );
36041
36041
  }, "customList");
36042
36042
  return /* @__PURE__ */ H(
36043
- un,
36043
+ cn,
36044
36044
  {
36045
36045
  sx: /* @__PURE__ */ s((M) => ({
36046
36046
  display: "grid",
@@ -36065,7 +36065,7 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
36065
36065
  }
36066
36066
  ),
36067
36067
  /* @__PURE__ */ H(
36068
- un,
36068
+ cn,
36069
36069
  {
36070
36070
  sx: /* @__PURE__ */ s((M) => ({
36071
36071
  display: "flex",
@@ -36180,7 +36180,7 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
36180
36180
  ]
36181
36181
  }
36182
36182
  ),
36183
- /* @__PURE__ */ b(un, { sx: /* @__PURE__ */ s((M) => ({ minWidth: 0, pt: M.spacing(3) }), "sx"), children: O(E, !1) })
36183
+ /* @__PURE__ */ b(cn, { sx: /* @__PURE__ */ s((M) => ({ minWidth: 0, pt: M.spacing(3) }), "sx"), children: O(E, !1) })
36184
36184
  ]
36185
36185
  }
36186
36186
  );
@@ -36366,8 +36366,8 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
36366
36366
  source: m,
36367
36367
  ...y
36368
36368
  }
36369
- } = An(t), g = en();
36370
- Se(() => {
36369
+ } = An(t), g = fn();
36370
+ xe(() => {
36371
36371
  i.current || (setTimeout(() => {
36372
36372
  g.setValue(m, lW);
36373
36373
  }, 0), i.current = !0);
@@ -36516,9 +36516,9 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
36516
36516
  () => i.map((u) => String(u.id)).join("|"),
36517
36517
  [i]
36518
36518
  ), l = S.useRef(i);
36519
- return Se(() => {
36519
+ return xe(() => {
36520
36520
  l.current = i;
36521
- }, [i]), Se(() => {
36521
+ }, [i]), xe(() => {
36522
36522
  !t || n || r || o || t(l.current);
36523
36523
  }, [t, a, o, r, n]), null;
36524
36524
  }, "ListSelectionBridge"), yW = [
@@ -36693,15 +36693,15 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
36693
36693
  }),
36694
36694
  [n, T]
36695
36695
  );
36696
- Se(() => {
36696
+ xe(() => {
36697
36697
  const z = l.find((_) => _.key === i) || l[0] || ol[0];
36698
36698
  E(z), g(!0);
36699
- }, [l, i]), Se(() => {
36699
+ }, [l, i]), xe(() => {
36700
36700
  o && o({
36701
36701
  filter: u,
36702
36702
  meta: R
36703
36703
  });
36704
- }, [u, R, o]), Se(() => {
36704
+ }, [u, R, o]), xe(() => {
36705
36705
  (/* @__PURE__ */ s(async () => {
36706
36706
  const _ = await D("");
36707
36707
  f(_);
@@ -37157,7 +37157,7 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
37157
37157
  soloActivos: hl(t.soloActivos)
37158
37158
  };
37159
37159
  }, "normalizeFieldValue"), kW = /* @__PURE__ */ s((t) => t, "parse"), JJ = /* @__PURE__ */ s((t) => {
37160
- const { source: e, onChange: n, fullWidth: r = !1 } = t, [o, i] = we(!1), [a, l] = we(null), u = en(), { estado: d, fichaProps: p = {} } = Mt(), f = vn(!1), {
37160
+ const { source: e, onChange: n, fullWidth: r = !1 } = t, [o, i] = we(!1), [a, l] = we(null), u = fn(), { estado: d, fichaProps: p = {} } = Mt(), f = vn(!1), {
37161
37161
  hidden: h,
37162
37162
  propsContenido: {
37163
37163
  readOnly: m,
@@ -37176,9 +37176,9 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
37176
37176
  () => Lh.find((q) => q.value === D) || Lh[0],
37177
37177
  [D]
37178
37178
  );
37179
- Se(() => {
37179
+ xe(() => {
37180
37180
  A(hl(T));
37181
- }, [T]), Se(() => {
37181
+ }, [T]), xe(() => {
37182
37182
  f.current || (setTimeout(() => {
37183
37183
  const q = u.getValues(e);
37184
37184
  (P ? _x(q) : q == null || q === "") && u.setValue(
@@ -37411,12 +37411,12 @@ const K6 = pe([/* @__PURE__ */ b("circle", {
37411
37411
  )
37412
37412
  ] });
37413
37413
  }, "TBSF");
37414
- function on(t) {
37414
+ function rn(t) {
37415
37415
  this.content = t;
37416
37416
  }
37417
- s(on, "OrderedMap");
37418
- on.prototype = {
37419
- constructor: on,
37417
+ s(rn, "OrderedMap");
37418
+ rn.prototype = {
37419
+ constructor: rn,
37420
37420
  find: /* @__PURE__ */ s(function(t) {
37421
37421
  for (var e = 0; e < this.content.length; e += 2)
37422
37422
  if (this.content[e] === t) return e;
@@ -37435,7 +37435,7 @@ on.prototype = {
37435
37435
  // given, the key of the binding will be replaced with that key.
37436
37436
  update: /* @__PURE__ */ s(function(t, e, n) {
37437
37437
  var r = n && n != t ? this.remove(n) : this, o = r.find(t), i = r.content.slice();
37438
- return o == -1 ? i.push(n || t, e) : (i[o + 1] = e, n && (i[o] = n)), new on(i);
37438
+ return o == -1 ? i.push(n || t, e) : (i[o + 1] = e, n && (i[o] = n)), new rn(i);
37439
37439
  }, "update"),
37440
37440
  // :: (string) → OrderedMap
37441
37441
  // Return a map with the given key removed, if it existed.
@@ -37443,25 +37443,25 @@ on.prototype = {
37443
37443
  var e = this.find(t);
37444
37444
  if (e == -1) return this;
37445
37445
  var n = this.content.slice();
37446
- return n.splice(e, 2), new on(n);
37446
+ return n.splice(e, 2), new rn(n);
37447
37447
  }, "remove"),
37448
37448
  // :: (string, any) → OrderedMap
37449
37449
  // Add a new key to the start of the map.
37450
37450
  addToStart: /* @__PURE__ */ s(function(t, e) {
37451
- return new on([t, e].concat(this.remove(t).content));
37451
+ return new rn([t, e].concat(this.remove(t).content));
37452
37452
  }, "addToStart"),
37453
37453
  // :: (string, any) → OrderedMap
37454
37454
  // Add a new key to the end of the map.
37455
37455
  addToEnd: /* @__PURE__ */ s(function(t, e) {
37456
37456
  var n = this.remove(t).content.slice();
37457
- return n.push(t, e), new on(n);
37457
+ return n.push(t, e), new rn(n);
37458
37458
  }, "addToEnd"),
37459
37459
  // :: (string, string, any) → OrderedMap
37460
37460
  // Add a key after the given key. If `place` is not found, the new
37461
37461
  // key is added to the end.
37462
37462
  addBefore: /* @__PURE__ */ s(function(t, e, n) {
37463
37463
  var r = this.remove(e), o = r.content.slice(), i = r.find(t);
37464
- return o.splice(i == -1 ? o.length : i, 0, e, n), new on(o);
37464
+ return o.splice(i == -1 ? o.length : i, 0, e, n), new rn(o);
37465
37465
  }, "addBefore"),
37466
37466
  // :: ((key: string, value: any))
37467
37467
  // Call the given function for each key/value pair in the map, in
@@ -37474,20 +37474,20 @@ on.prototype = {
37474
37474
  // Create a new map by prepending the keys in this map that don't
37475
37475
  // appear in `map` before the keys in `map`.
37476
37476
  prepend: /* @__PURE__ */ s(function(t) {
37477
- return t = on.from(t), t.size ? new on(t.content.concat(this.subtract(t).content)) : this;
37477
+ return t = rn.from(t), t.size ? new rn(t.content.concat(this.subtract(t).content)) : this;
37478
37478
  }, "prepend"),
37479
37479
  // :: (union<Object, OrderedMap>) → OrderedMap
37480
37480
  // Create a new map by appending the keys in this map that don't
37481
37481
  // appear in `map` after the keys in `map`.
37482
37482
  append: /* @__PURE__ */ s(function(t) {
37483
- return t = on.from(t), t.size ? new on(this.subtract(t).content.concat(t.content)) : this;
37483
+ return t = rn.from(t), t.size ? new rn(this.subtract(t).content.concat(t.content)) : this;
37484
37484
  }, "append"),
37485
37485
  // :: (union<Object, OrderedMap>) → OrderedMap
37486
37486
  // Create a map containing all the keys in this map that don't
37487
37487
  // appear in `map`.
37488
37488
  subtract: /* @__PURE__ */ s(function(t) {
37489
37489
  var e = this;
37490
- t = on.from(t);
37490
+ t = rn.from(t);
37491
37491
  for (var n = 0; n < t.content.length; n += 2)
37492
37492
  e = e.remove(t.content[n]);
37493
37493
  return e;
@@ -37506,11 +37506,11 @@ on.prototype = {
37506
37506
  return this.content.length >> 1;
37507
37507
  }
37508
37508
  };
37509
- on.from = function(t) {
37510
- if (t instanceof on) return t;
37509
+ rn.from = function(t) {
37510
+ if (t instanceof rn) return t;
37511
37511
  var e = [];
37512
37512
  if (t) for (var n in t) e.push(n, t[n]);
37513
- return new on(e);
37513
+ return new rn(e);
37514
37514
  };
37515
37515
  function OM(t, e, n) {
37516
37516
  for (let r = 0; ; r++) {
@@ -37563,7 +37563,7 @@ function kM(t, e, n, r) {
37563
37563
  }
37564
37564
  }
37565
37565
  s(kM, "findDiffEnd");
37566
- const rn = class rn {
37566
+ const nn = class nn {
37567
37567
  /**
37568
37568
  @internal
37569
37569
  */
@@ -37618,7 +37618,7 @@ const rn = class rn {
37618
37618
  let n = this.lastChild, r = e.firstChild, o = this.content.slice(), i = 0;
37619
37619
  for (n.isText && n.sameMarkup(r) && (o[o.length - 1] = n.withText(n.text + r.text), i = 1); i < e.content.length; i++)
37620
37620
  o.push(e.content[i]);
37621
- return new rn(o, this.size + e.size);
37621
+ return new nn(o, this.size + e.size);
37622
37622
  }
37623
37623
  /**
37624
37624
  Cut out the sub-fragment between the two given positions.
@@ -37632,13 +37632,13 @@ const rn = class rn {
37632
37632
  let l = this.content[i], u = a + l.nodeSize;
37633
37633
  u > e && ((a < e || u > n) && (l.isText ? l = l.cut(Math.max(0, e - a), Math.min(l.text.length, n - a)) : l = l.cut(Math.max(0, e - a - 1), Math.min(l.content.size, n - a - 1))), r.push(l), o += l.nodeSize), a = u;
37634
37634
  }
37635
- return new rn(r, o);
37635
+ return new nn(r, o);
37636
37636
  }
37637
37637
  /**
37638
37638
  @internal
37639
37639
  */
37640
37640
  cutByIndex(e, n) {
37641
- return e == n ? rn.empty : e == 0 && n == this.content.length ? this : new rn(this.content.slice(e, n));
37641
+ return e == n ? nn.empty : e == 0 && n == this.content.length ? this : new nn(this.content.slice(e, n));
37642
37642
  }
37643
37643
  /**
37644
37644
  Create a new fragment in which the node at the given index is
@@ -37649,21 +37649,21 @@ const rn = class rn {
37649
37649
  if (r == n)
37650
37650
  return this;
37651
37651
  let o = this.content.slice(), i = this.size + n.nodeSize - r.nodeSize;
37652
- return o[e] = n, new rn(o, i);
37652
+ return o[e] = n, new nn(o, i);
37653
37653
  }
37654
37654
  /**
37655
37655
  Create a new fragment by prepending the given node to this
37656
37656
  fragment.
37657
37657
  */
37658
37658
  addToStart(e) {
37659
- return new rn([e].concat(this.content), this.size + e.nodeSize);
37659
+ return new nn([e].concat(this.content), this.size + e.nodeSize);
37660
37660
  }
37661
37661
  /**
37662
37662
  Create a new fragment by appending the given node to this
37663
37663
  fragment.
37664
37664
  */
37665
37665
  addToEnd(e) {
37666
- return new rn(this.content.concat(e), this.size + e.nodeSize);
37666
+ return new nn(this.content.concat(e), this.size + e.nodeSize);
37667
37667
  }
37668
37668
  /**
37669
37669
  Compare this fragment to another one.
@@ -37778,10 +37778,10 @@ const rn = class rn {
37778
37778
  */
37779
37779
  static fromJSON(e, n) {
37780
37780
  if (!n)
37781
- return rn.empty;
37781
+ return nn.empty;
37782
37782
  if (!Array.isArray(n))
37783
37783
  throw new RangeError("Invalid input for Fragment.fromJSON");
37784
- return new rn(n.map(e.nodeFromJSON));
37784
+ return new nn(n.map(e.nodeFromJSON));
37785
37785
  }
37786
37786
  /**
37787
37787
  Build a fragment from an array of nodes. Ensures that adjacent
@@ -37789,13 +37789,13 @@ const rn = class rn {
37789
37789
  */
37790
37790
  static fromArray(e) {
37791
37791
  if (!e.length)
37792
- return rn.empty;
37792
+ return nn.empty;
37793
37793
  let n, r = 0;
37794
37794
  for (let o = 0; o < e.length; o++) {
37795
37795
  let i = e[o];
37796
37796
  r += i.nodeSize, o && i.isText && e[o - 1].sameMarkup(i) ? (n || (n = e.slice(0, o)), n[n.length - 1] = i.withText(n[n.length - 1].text + i.text)) : n && n.push(i);
37797
37797
  }
37798
- return new rn(n || e, r);
37798
+ return new nn(n || e, r);
37799
37799
  }
37800
37800
  /**
37801
37801
  Create a fragment from something that can be interpreted as a
@@ -37805,18 +37805,18 @@ const rn = class rn {
37805
37805
  */
37806
37806
  static from(e) {
37807
37807
  if (!e)
37808
- return rn.empty;
37809
- if (e instanceof rn)
37808
+ return nn.empty;
37809
+ if (e instanceof nn)
37810
37810
  return e;
37811
37811
  if (Array.isArray(e))
37812
37812
  return this.fromArray(e);
37813
37813
  if (e.attrs)
37814
- return new rn([e], e.nodeSize);
37814
+ return new nn([e], e.nodeSize);
37815
37815
  throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
37816
37816
  }
37817
37817
  };
37818
- s(rn, "Fragment");
37819
- let ce = rn;
37818
+ s(nn, "Fragment");
37819
+ let ce = nn;
37820
37820
  ce.empty = new ce([], 0);
37821
37821
  const Fh = { index: 0, offset: 0 };
37822
37822
  function Eu(t, e) {
@@ -39521,7 +39521,7 @@ const nv = class nv {
39521
39521
  let n = this.spec = {};
39522
39522
  for (let o in e)
39523
39523
  n[o] = e[o];
39524
- n.nodes = on.from(e.nodes), n.marks = on.from(e.marks || {}), this.nodes = Hx.compile(this.spec.nodes, this), this.marks = xd.compile(this.spec.marks, this);
39524
+ n.nodes = rn.from(e.nodes), n.marks = rn.from(e.marks || {}), this.nodes = Hx.compile(this.spec.nodes, this), this.marks = xd.compile(this.spec.marks, this);
39525
39525
  let r = /* @__PURE__ */ Object.create(null);
39526
39526
  for (let o in this.nodes) {
39527
39527
  if (o in this.marks)
@@ -40643,7 +40643,7 @@ const _i = class _i {
40643
40643
  }
40644
40644
  };
40645
40645
  s(_i, "StepResult");
40646
- let dn = _i;
40646
+ let un = _i;
40647
40647
  function g0(t, e, n) {
40648
40648
  let r = [];
40649
40649
  for (let o = 0; o < t.childCount; o++) {
@@ -40662,7 +40662,7 @@ const zi = class zi extends Qt {
40662
40662
  }
40663
40663
  apply(e) {
40664
40664
  let n = e.slice(this.from, this.to), r = e.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new be(g0(n.content, (a, l) => !a.isAtom || !l.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), o), n.openStart, n.openEnd);
40665
- return dn.fromReplace(e, this.from, this.to, i);
40665
+ return un.fromReplace(e, this.from, this.to, i);
40666
40666
  }
40667
40667
  invert() {
40668
40668
  return new Cs(this.from, this.to, this.mark);
@@ -40703,7 +40703,7 @@ const Vi = class Vi extends Qt {
40703
40703
  }
40704
40704
  apply(e) {
40705
40705
  let n = e.slice(this.from, this.to), r = new be(g0(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), e), n.openStart, n.openEnd);
40706
- return dn.fromReplace(e, this.from, this.to, r);
40706
+ return un.fromReplace(e, this.from, this.to, r);
40707
40707
  }
40708
40708
  invert() {
40709
40709
  return new sc(this.from, this.to, this.mark);
@@ -40745,9 +40745,9 @@ const ji = class ji extends Qt {
40745
40745
  apply(e) {
40746
40746
  let n = e.nodeAt(this.pos);
40747
40747
  if (!n)
40748
- return dn.fail("No node at mark step's position");
40748
+ return un.fail("No node at mark step's position");
40749
40749
  let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
40750
- return dn.fromReplace(e, this.pos, this.pos + 1, new be(ce.from(r), 0, n.isLeaf ? 0 : 1));
40750
+ return un.fromReplace(e, this.pos, this.pos + 1, new be(ce.from(r), 0, n.isLeaf ? 0 : 1));
40751
40751
  }
40752
40752
  invert(e) {
40753
40753
  let n = e.nodeAt(this.pos);
@@ -40791,9 +40791,9 @@ const Fl = class Fl extends Qt {
40791
40791
  apply(e) {
40792
40792
  let n = e.nodeAt(this.pos);
40793
40793
  if (!n)
40794
- return dn.fail("No node at mark step's position");
40794
+ return un.fail("No node at mark step's position");
40795
40795
  let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
40796
- return dn.fromReplace(e, this.pos, this.pos + 1, new be(ce.from(r), 0, n.isLeaf ? 0 : 1));
40796
+ return un.fromReplace(e, this.pos, this.pos + 1, new be(ce.from(r), 0, n.isLeaf ? 0 : 1));
40797
40797
  }
40798
40798
  invert(e) {
40799
40799
  let n = e.nodeAt(this.pos);
@@ -40832,7 +40832,7 @@ const vo = class vo extends Qt {
40832
40832
  super(), this.from = e, this.to = n, this.slice = r, this.structure = o;
40833
40833
  }
40834
40834
  apply(e) {
40835
- return this.structure && iy(e, this.from, this.to) ? dn.fail("Structure replace would overwrite content") : dn.fromReplace(e, this.from, this.to, this.slice);
40835
+ return this.structure && iy(e, this.from, this.to) ? un.fail("Structure replace would overwrite content") : un.fromReplace(e, this.from, this.to, this.slice);
40836
40836
  }
40837
40837
  getMap() {
40838
40838
  return new Oo([this.from, this.to - this.from, this.slice.size]);
@@ -40884,12 +40884,12 @@ const Qs = class Qs extends Qt {
40884
40884
  }
40885
40885
  apply(e) {
40886
40886
  if (this.structure && (iy(e, this.from, this.gapFrom) || iy(e, this.gapTo, this.to)))
40887
- return dn.fail("Structure gap-replace would overwrite content");
40887
+ return un.fail("Structure gap-replace would overwrite content");
40888
40888
  let n = e.slice(this.gapFrom, this.gapTo);
40889
40889
  if (n.openStart || n.openEnd)
40890
- return dn.fail("Gap is not a flat range");
40890
+ return un.fail("Gap is not a flat range");
40891
40891
  let r = this.slice.insertAt(this.insert, n.content);
40892
- return r ? dn.fromReplace(e, this.from, this.to, r) : dn.fail("Content does not fit in gap");
40892
+ return r ? un.fromReplace(e, this.from, this.to, r) : un.fail("Content does not fit in gap");
40893
40893
  }
40894
40894
  getMap() {
40895
40895
  return new Oo([
@@ -41569,13 +41569,13 @@ const Zs = class Zs extends Qt {
41569
41569
  apply(e) {
41570
41570
  let n = e.nodeAt(this.pos);
41571
41571
  if (!n)
41572
- return dn.fail("No node at attribute step's position");
41572
+ return un.fail("No node at attribute step's position");
41573
41573
  let r = /* @__PURE__ */ Object.create(null);
41574
41574
  for (let i in n.attrs)
41575
41575
  r[i] = n.attrs[i];
41576
41576
  r[this.attr] = this.value;
41577
41577
  let o = n.type.create(r, null, n.marks);
41578
- return dn.fromReplace(e, this.pos, this.pos + 1, new be(ce.from(o), 0, n.isLeaf ? 0 : 1));
41578
+ return un.fromReplace(e, this.pos, this.pos + 1, new be(ce.from(o), 0, n.isLeaf ? 0 : 1));
41579
41579
  }
41580
41580
  getMap() {
41581
41581
  return Oo.empty;
@@ -41612,7 +41612,7 @@ const Bl = class Bl extends Qt {
41612
41612
  n[o] = e.attrs[o];
41613
41613
  n[this.attr] = this.value;
41614
41614
  let r = e.type.create(n, e.content, e.marks);
41615
- return dn.ok(r);
41615
+ return un.ok(r);
41616
41616
  }
41617
41617
  getMap() {
41618
41618
  return Oo.empty;
@@ -42704,7 +42704,7 @@ const mv = class mv {
42704
42704
  };
42705
42705
  s(mv, "PluginKey");
42706
42706
  let kn = mv;
42707
- const an = /* @__PURE__ */ s(function(t) {
42707
+ const sn = /* @__PURE__ */ s(function(t) {
42708
42708
  for (var e = 0; ; e++)
42709
42709
  if (t = t.previousSibling, !t)
42710
42710
  return e;
@@ -42729,7 +42729,7 @@ function iC(t, e, n, r, o) {
42729
42729
  let i = t.parentNode;
42730
42730
  if (!i || i.nodeType != 1 || Hc(t) || bH.test(t.nodeName) || t.contentEditable == "false")
42731
42731
  return !1;
42732
- e = an(t) + (o < 0 ? 0 : 1), t = i;
42732
+ e = sn(t) + (o < 0 ? 0 : 1), t = i;
42733
42733
  } else if (t.nodeType == 1) {
42734
42734
  if (t = t.childNodes[e + (o < 0 ? -1 : 0)], t.contentEditable == "false")
42735
42735
  return !1;
@@ -42752,7 +42752,7 @@ function vH(t, e) {
42752
42752
  return null;
42753
42753
  t = t.childNodes[e - 1], e = cr(t);
42754
42754
  } else if (t.parentNode && !Hc(t))
42755
- e = an(t), t = t.parentNode;
42755
+ e = sn(t), t = t.parentNode;
42756
42756
  else
42757
42757
  return null;
42758
42758
  }
@@ -42767,7 +42767,7 @@ function SH(t, e) {
42767
42767
  return null;
42768
42768
  t = t.childNodes[e], e = 0;
42769
42769
  } else if (t.parentNode && !Hc(t))
42770
- e = an(t) + 1, t = t.parentNode;
42770
+ e = sn(t) + 1, t = t.parentNode;
42771
42771
  else
42772
42772
  return null;
42773
42773
  }
@@ -42777,7 +42777,7 @@ function xH(t, e, n) {
42777
42777
  for (let r = e == 0, o = e == cr(t); r || o; ) {
42778
42778
  if (t == n)
42779
42779
  return !0;
42780
- let i = an(t);
42780
+ let i = sn(t);
42781
42781
  if (t = t.parentNode, !t)
42782
42782
  return !1;
42783
42783
  r = r && i == 0, o = o && i == cr(t);
@@ -43276,7 +43276,7 @@ const fr = 0, pC = 1, Xi = 2, lo = 3, gv = class gv {
43276
43276
  }
43277
43277
  let o;
43278
43278
  if (e == this.dom && this.contentDOM)
43279
- o = n > an(this.contentDOM);
43279
+ o = n > sn(this.contentDOM);
43280
43280
  else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM))
43281
43281
  o = e.compareDocumentPosition(this.contentDOM) & 2;
43282
43282
  else if (this.dom.firstChild) {
@@ -43360,12 +43360,12 @@ const fr = 0, pC = 1, Xi = 2, lo = 3, gv = class gv {
43360
43360
  let i, a = !0;
43361
43361
  for (; i = r ? this.children[r - 1] : null, !(!i || i.dom.parentNode == this.contentDOM); r--, a = !1)
43362
43362
  ;
43363
- return i && n && a && !i.border && !i.domAtom ? i.domFromPos(i.size, n) : { node: this.contentDOM, offset: i ? an(i.dom) + 1 : 0 };
43363
+ return i && n && a && !i.border && !i.domAtom ? i.domFromPos(i.size, n) : { node: this.contentDOM, offset: i ? sn(i.dom) + 1 : 0 };
43364
43364
  } else {
43365
43365
  let i, a = !0;
43366
43366
  for (; i = r < this.children.length ? this.children[r] : null, !(!i || i.dom.parentNode == this.contentDOM); r++, a = !1)
43367
43367
  ;
43368
- return i && a && !i.border && !i.domAtom ? i.domFromPos(0, n) : { node: this.contentDOM, offset: i ? an(i.dom) : this.contentDOM.childNodes.length };
43368
+ return i && a && !i.border && !i.domAtom ? i.domFromPos(0, n) : { node: this.contentDOM, offset: i ? sn(i.dom) : this.contentDOM.childNodes.length };
43369
43369
  }
43370
43370
  }
43371
43371
  // Used to find a DOM range in a single parent for a given changed
@@ -43384,7 +43384,7 @@ const fr = 0, pC = 1, Xi = 2, lo = 3, gv = class gv {
43384
43384
  for (let f = l; f > 0; f--) {
43385
43385
  let h = this.children[f - 1];
43386
43386
  if (h.size && h.dom.parentNode == this.contentDOM && !h.emptyChildAt(1)) {
43387
- o = an(h.dom) + 1;
43387
+ o = sn(h.dom) + 1;
43388
43388
  break;
43389
43389
  }
43390
43390
  e -= h.size;
@@ -43396,7 +43396,7 @@ const fr = 0, pC = 1, Xi = 2, lo = 3, gv = class gv {
43396
43396
  for (let p = l + 1; p < this.children.length; p++) {
43397
43397
  let f = this.children[p];
43398
43398
  if (f.size && f.dom.parentNode == this.contentDOM && !f.emptyChildAt(-1)) {
43399
- i = an(f.dom);
43399
+ i = sn(f.dom);
43400
43400
  break;
43401
43401
  }
43402
43402
  n += f.size;
@@ -43441,7 +43441,7 @@ const fr = 0, pC = 1, Xi = 2, lo = 3, gv = class gv {
43441
43441
  `), p && m == h.nodeValue.length)
43442
43442
  for (let y = h, g; y; y = y.parentNode) {
43443
43443
  if (g = y.nextSibling) {
43444
- g.nodeName == "BR" && (l = u = { node: g.parentNode, offset: an(g) + 1 });
43444
+ g.nodeName == "BR" && (l = u = { node: g.parentNode, offset: sn(g) + 1 });
43445
43445
  break;
43446
43446
  }
43447
43447
  let v = y.pmViewDesc;
@@ -44314,7 +44314,7 @@ function KH(t) {
44314
44314
  if (!e)
44315
44315
  return;
44316
44316
  let r = t.cursorWrapper.dom, o = r.nodeName == "IMG";
44317
- o ? n.setStart(r.parentNode, an(r) + 1) : n.setStart(r, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !o && !t.state.selection.visible && Wn && ri <= 11 && (r.disabled = !0, r.disabled = !1);
44317
+ o ? n.setStart(r.parentNode, sn(r) + 1) : n.setStart(r, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !o && !t.state.selection.visible && Wn && ri <= 11 && (r.disabled = !0, r.disabled = !1);
44318
44318
  }
44319
44319
  s(KH, "selectCursorWrapper");
44320
44320
  function mR(t, e) {
@@ -44430,7 +44430,7 @@ function JH(t) {
44430
44430
  {
44431
44431
  let l = n.previousSibling;
44432
44432
  for (; l && Rl(l, -1); )
44433
- o = n.parentNode, i = an(l), l = l.previousSibling;
44433
+ o = n.parentNode, i = sn(l), l = l.previousSibling;
44434
44434
  if (l)
44435
44435
  n = l, r = $d(n);
44436
44436
  else {
@@ -44463,7 +44463,7 @@ function XH(t) {
44463
44463
  {
44464
44464
  let l = n.nextSibling;
44465
44465
  for (; l && Rl(l, 1); )
44466
- i = l.parentNode, a = an(l) + 1, l = l.nextSibling;
44466
+ i = l.parentNode, a = sn(l) + 1, l = l.nextSibling;
44467
44467
  if (l)
44468
44468
  n = l, r = 0, o = $d(n);
44469
44469
  else {
@@ -44483,7 +44483,7 @@ function yR(t) {
44483
44483
  s(yR, "isBlockNode");
44484
44484
  function QH(t, e) {
44485
44485
  for (; t && e == t.childNodes.length && !Hc(t); )
44486
- e = an(t) + 1, t = t.parentNode;
44486
+ e = sn(t) + 1, t = t.parentNode;
44487
44487
  for (; t && e < t.childNodes.length; ) {
44488
44488
  let n = t.childNodes[e];
44489
44489
  if (n.nodeType == 3)
@@ -44496,7 +44496,7 @@ function QH(t, e) {
44496
44496
  s(QH, "textNodeAfter");
44497
44497
  function ZH(t, e) {
44498
44498
  for (; t && !e && !Hc(t); )
44499
- e = an(t), t = t.parentNode;
44499
+ e = sn(t), t = t.parentNode;
44500
44500
  for (; t && e; ) {
44501
44501
  let n = t.childNodes[e - 1];
44502
44502
  if (n.nodeType == 3)
@@ -45965,7 +45965,7 @@ const Ov = class Ov {
45965
45965
  let { previousSibling: f, nextSibling: h } = e.addedNodes[p];
45966
45966
  (!f || Array.prototype.indexOf.call(e.addedNodes, f) < 0) && (o = f), (!h || Array.prototype.indexOf.call(e.addedNodes, h) < 0) && (i = h);
45967
45967
  }
45968
- let a = o && o.parentNode == e.target ? an(o) + 1 : 0, l = r.localPosFromDOM(e.target, a, -1), u = i && i.parentNode == e.target ? an(i) : e.target.childNodes.length, d = r.localPosFromDOM(e.target, u, 1);
45968
+ let a = o && o.parentNode == e.target ? sn(o) + 1 : 0, l = r.localPosFromDOM(e.target, a, -1), u = i && i.parentNode == e.target ? sn(i) : e.target.childNodes.length, d = r.localPosFromDOM(e.target, u, 1);
45969
45969
  return { from: l, to: d };
45970
45970
  } else return e.type == "attributes" ? { from: r.posAtStart - r.border, to: r.posAtEnd + r.border } : (this.lastChangedTextNode = e.target, {
45971
45971
  from: r.posAtStart,
@@ -46677,10 +46677,10 @@ var ui = {
46677
46677
  221: "}",
46678
46678
  222: '"'
46679
46679
  }, W9 = typeof navigator < "u" && /Mac/.test(navigator.platform), H9 = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
46680
- for (var ln = 0; ln < 10; ln++) ui[48 + ln] = ui[96 + ln] = String(ln);
46681
- for (var ln = 1; ln <= 24; ln++) ui[ln + 111] = "F" + ln;
46682
- for (var ln = 65; ln <= 90; ln++)
46683
- ui[ln] = String.fromCharCode(ln + 32), Vd[ln] = String.fromCharCode(ln);
46680
+ for (var an = 0; an < 10; an++) ui[48 + an] = ui[96 + an] = String(an);
46681
+ for (var an = 1; an <= 24; an++) ui[an + 111] = "F" + an;
46682
+ for (var an = 65; an <= 90; an++)
46683
+ ui[an] = String.fromCharCode(an + 32), Vd[an] = String.fromCharCode(an);
46684
46684
  for (var Kh in ui) Vd.hasOwnProperty(Kh) || (Vd[Kh] = ui[Kh]);
46685
46685
  function q9(t) {
46686
46686
  var e = W9 && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || H9 && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Vd : ui)[t.keyCode] || t.key || "Unidentified";
@@ -51527,7 +51527,7 @@ let Jy = Dv;
51527
51527
  function Qq(t) {
51528
51528
  var e;
51529
51529
  const [n] = we(() => new Jy(t.editor)), r = Xq.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : Kq);
51530
- return Se(() => n.watch(t.editor), [t.editor, n]), xT(r), r;
51530
+ return xe(() => n.watch(t.editor), [t.editor, n]), xT(r), r;
51531
51531
  }
51532
51532
  s(Qq, "useEditorState");
51533
51533
  const iw = process.env.NODE_ENV !== "production", Xy = typeof window > "u", Zq = Xy || !!(typeof window < "u" && window.next), $v = class $v {
@@ -51667,7 +51667,7 @@ function eU(t = {}, e = []) {
51667
51667
  const n = vn(t);
51668
51668
  n.current = t;
51669
51669
  const [r] = we(() => new Qy(n)), o = jf.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
51670
- return xT(o), Se(r.onRender(e)), Qq({
51670
+ return xT(o), xe(r.onRender(e)), Qq({
51671
51671
  editor: o,
51672
51672
  selector: /* @__PURE__ */ s(({ transactionNumber: i }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && i === 0 ? 0 : i + 1, "selector")
51673
51673
  }), o;
@@ -53820,15 +53820,15 @@ const rK = /* @__PURE__ */ s(({ args: t }) => ({
53820
53820
  }), "oneOfTypeMessage");
53821
53821
  Ci((t, e = rK) => (n, r) => !Si(n) && t.indexOf(n) === -1 ? xi(e, { list: t }, n, r) : void 0);
53822
53822
  const oK = /* @__PURE__ */ s((t) => t && t.isRequired ? !0 : Array.isArray(t) ? !!t.find((e) => e.isRequired) : !1, "isRequired"), iK = /* @__PURE__ */ s(({ inputProps: t, isArrayInput: e, fieldArrayInputControl: n }) => {
53823
- const { defaultValue: r, source: o, disabled: i } = t, a = TP(o), l = xP(t), { getValues: u, resetField: d, reset: p, subscribe: f } = en(), h = yl(l, a), m = yl(u(), a), y = vn(void 0);
53824
- Se(() => f({
53823
+ const { defaultValue: r, source: o, disabled: i } = t, a = TP(o), l = xP(t), { getValues: u, resetField: d, reset: p, subscribe: f } = fn(), h = yl(l, a), m = yl(u(), a), y = vn(void 0);
53824
+ xe(() => f({
53825
53825
  // Even though we only need dirtyFields, we subscribe to values as well to
53826
53826
  // ensure we properly receive dirtyFields updates for newly added items in an ArrayInput
53827
53827
  formState: { values: !0, dirtyFields: !0 },
53828
53828
  callback: /* @__PURE__ */ s(({ dirtyFields: g }) => {
53829
53829
  y.current = yl(g ?? {}, a, !1);
53830
53830
  }, "callback")
53831
- }), [a, f]), Se(() => {
53831
+ }), [a, f]), xe(() => {
53832
53832
  if (r == null || m != null || // When the input is disabled, its value may always be undefined, no matter the default value.
53833
53833
  // This prevents from trying to reset the value indefinitely.
53834
53834
  i || // We check strictly for undefined to avoid setting default value
@@ -54580,7 +54580,7 @@ const gK = ST(EP), yK = /* @__PURE__ */ s((t) => {
54580
54580
  return S.createElement(S.Fragment, null, r(n, { _: n }));
54581
54581
  }, "ValidationError"), CK = /* @__PURE__ */ s((t) => t ?? "", "defaultFormat"), wK = /* @__PURE__ */ s((t) => t === "" ? null : t, "defaultParse"), TK = /* @__PURE__ */ s((t) => {
54582
54582
  const { defaultValue: e, format: n = CK, id: r, isRequired: o, name: i, onBlur: a, onChange: l, parse: u = wK, source: d, validate: p, ...f } = t, h = TP(d), m = i || h, y = lK(), g = cK(), v = xP(), x = ag(u), T = s2();
54583
- !m && process.env.NODE_ENV === "development" && console.warn("Input components require either a source or a name prop."), Se(() => {
54583
+ !m && process.env.NODE_ENV === "development" && console.warn("Input components require either a source or a name prop."), xe(() => {
54584
54584
  if (!(!g || y == null))
54585
54585
  return g.registerField(h, y), () => {
54586
54586
  g.unregisterField(h, y);
@@ -54680,7 +54680,7 @@ const Sp = "RaLabeled", xp = {
54680
54680
  d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"
54681
54681
  }), "Code"), kP = Vt(void 0), uo = /* @__PURE__ */ s(() => {
54682
54682
  const [t, e] = we(!1), n = Je(kP);
54683
- return Se(() => {
54683
+ return xe(() => {
54684
54684
  const r = /* @__PURE__ */ s(() => {
54685
54685
  e(!0);
54686
54686
  }, "onReady");
@@ -54700,7 +54700,7 @@ const Sp = "RaLabeled", xp = {
54700
54700
  }), d = n("ra.tiptap.code", {
54701
54701
  _: "Code"
54702
54702
  });
54703
- Se(() => {
54703
+ xe(() => {
54704
54704
  const f = /* @__PURE__ */ s(() => {
54705
54705
  o(() => hT.reduce((h, m) => (e && e.isActive(m) && h.push(m), h), []));
54706
54706
  }, "handleUpdate");
@@ -54718,27 +54718,27 @@ const Sp = "RaLabeled", xp = {
54718
54718
  Lp,
54719
54719
  { ...t, disabled: !e?.isEditable, onChange: p, value: r },
54720
54720
  S.createElement(
54721
- cn,
54721
+ ln,
54722
54722
  { value: "bold", "aria-label": i, title: i },
54723
54723
  S.createElement(MK, { fontSize: "inherit" })
54724
54724
  ),
54725
54725
  S.createElement(
54726
- cn,
54726
+ ln,
54727
54727
  { value: "italic", "aria-label": a, title: a },
54728
54728
  S.createElement(RK, { fontSize: "inherit" })
54729
54729
  ),
54730
54730
  S.createElement(
54731
- cn,
54731
+ ln,
54732
54732
  { value: "underline", "aria-label": l, title: l },
54733
54733
  S.createElement(PK, { fontSize: "inherit" })
54734
54734
  ),
54735
54735
  S.createElement(
54736
- cn,
54736
+ ln,
54737
54737
  { value: "strike", "aria-label": u, title: u },
54738
54738
  S.createElement(AK, { fontSize: "inherit" })
54739
54739
  ),
54740
54740
  S.createElement(
54741
- cn,
54741
+ ln,
54742
54742
  { value: "code", "aria-label": d, title: d },
54743
54743
  S.createElement(IK, { fontSize: "inherit" })
54744
54744
  )
@@ -54768,7 +54768,7 @@ const Sp = "RaLabeled", xp = {
54768
54768
  const p = mT(e);
54769
54769
  p && gT[p](e);
54770
54770
  }, "handleChange");
54771
- return Se(() => {
54771
+ return xe(() => {
54772
54772
  const u = /* @__PURE__ */ s(() => {
54773
54773
  a(e ? mT(e) : void 0);
54774
54774
  }, "handleUpdate");
@@ -54779,12 +54779,12 @@ const Sp = "RaLabeled", xp = {
54779
54779
  Lp,
54780
54780
  { ...t, disabled: !e?.isEditable, exclusive: !0, onChange: l, value: i },
54781
54781
  S.createElement(
54782
- cn,
54782
+ ln,
54783
54783
  { value: "bulletList", "aria-label": r, title: r },
54784
54784
  S.createElement($K, { fontSize: "inherit" })
54785
54785
  ),
54786
54786
  S.createElement(
54787
- cn,
54787
+ ln,
54788
54788
  { value: "orderedList", "aria-label": o, title: o },
54789
54789
  S.createElement(LK, { fontSize: "inherit" })
54790
54790
  )
@@ -54805,7 +54805,7 @@ const Sp = "RaLabeled", xp = {
54805
54805
  d: "M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"
54806
54806
  }), "FormatAlignJustify"), WK = /* @__PURE__ */ s((t) => {
54807
54807
  const e = uo(), n = xr(), [r, o] = we("left"), i = n("ra.tiptap.align_left", { _: "Align left" }), a = n("ra.tiptap.align_right", { _: "Align right" }), l = n("ra.tiptap.align_center", { _: "Center" }), u = n("ra.tiptap.align_justify", { _: "Justify" });
54808
- Se(() => {
54808
+ xe(() => {
54809
54809
  const p = /* @__PURE__ */ s(() => {
54810
54810
  o((f) => HK.reduce((h, m) => e && e.isActive({ textAlign: m }) ? m : h, f));
54811
54811
  }, "handleUpdate");
@@ -54820,22 +54820,22 @@ const Sp = "RaLabeled", xp = {
54820
54820
  Lp,
54821
54821
  { ...t, disabled: !e?.isEditable, exclusive: !0, onChange: d, value: r },
54822
54822
  S.createElement(
54823
- cn,
54823
+ ln,
54824
54824
  { value: "left", "aria-label": i, title: i },
54825
54825
  S.createElement(zK, { fontSize: "inherit" })
54826
54826
  ),
54827
54827
  S.createElement(
54828
- cn,
54828
+ ln,
54829
54829
  { value: "center", "aria-label": l, title: l },
54830
54830
  S.createElement(_K, { fontSize: "inherit" })
54831
54831
  ),
54832
54832
  S.createElement(
54833
- cn,
54833
+ ln,
54834
54834
  { value: "right", "aria-label": a, title: a },
54835
54835
  S.createElement(VK, { fontSize: "inherit" })
54836
54836
  ),
54837
54837
  S.createElement(
54838
- cn,
54838
+ ln,
54839
54839
  { value: "justify", "aria-label": u, title: u },
54840
54840
  S.createElement(jK, { fontSize: "inherit" })
54841
54841
  )
@@ -54849,7 +54849,7 @@ const Sp = "RaLabeled", xp = {
54849
54849
  d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"
54850
54850
  }), "InsertLink"), UK = /* @__PURE__ */ s(() => {
54851
54851
  const t = uo(), [e, n] = we(t ? t.state.doc.textBetween(t.state.selection.from, t.state.selection.to) : null);
54852
- return Se(() => {
54852
+ return xe(() => {
54853
54853
  const r = /* @__PURE__ */ s(() => {
54854
54854
  n(t ? t.state.doc.textBetween(t.state.selection.from, t.state.selection.to) : null);
54855
54855
  }, "handleSelectionChange");
@@ -54867,7 +54867,7 @@ const Sp = "RaLabeled", xp = {
54867
54867
  e.chain().focus().extendMarkRange("link").setLink({ href: a }).run();
54868
54868
  }, "handleClick");
54869
54869
  return S.createElement(
54870
- cn,
54870
+ ln,
54871
54871
  { "aria-label": o, title: o, ...t, disabled: !e?.isEditable || !r, value: "link", onClick: i, selected: e && e.isActive("link") },
54872
54872
  S.createElement(qK, { fontSize: "inherit" })
54873
54873
  );
@@ -54877,7 +54877,7 @@ const Sp = "RaLabeled", xp = {
54877
54877
  const e = uo(), n = xr(), [r, o] = we(!1), i = n("ra.tiptap.blockquote", {
54878
54878
  _: "Blockquote"
54879
54879
  });
54880
- return Se(() => {
54880
+ return xe(() => {
54881
54881
  const a = /* @__PURE__ */ s(() => {
54882
54882
  o(e && e.isActive("blockquote"));
54883
54883
  }, "handleUpdate");
@@ -54885,7 +54885,7 @@ const Sp = "RaLabeled", xp = {
54885
54885
  e && (e.off("update", a), e.off("selectionUpdate", a));
54886
54886
  };
54887
54887
  }, [e]), S.createElement(
54888
- cn,
54888
+ ln,
54889
54889
  { "aria-label": i, title: i, ...t, disabled: !e?.isEditable, onClick: /* @__PURE__ */ s(() => e.chain().focus().toggleBlockquote().run(), "onClick"), selected: r, value: "quote" },
54890
54890
  S.createElement(KK, { fontSize: "inherit" })
54891
54891
  );
@@ -54896,7 +54896,7 @@ const Sp = "RaLabeled", xp = {
54896
54896
  _: "Clear format"
54897
54897
  });
54898
54898
  return S.createElement(
54899
- cn,
54899
+ ln,
54900
54900
  { "aria-label": r, title: r, ...t, disabled: !e?.isEditable, value: "clear", onClick: /* @__PURE__ */ s(() => e.chain().focus().unsetAllMarks().run(), "onClick") },
54901
54901
  S.createElement(JK, { fontSize: "inherit" })
54902
54902
  );
@@ -54910,7 +54910,7 @@ const Sp = "RaLabeled", xp = {
54910
54910
  }, "handleClickListItem"), p = /* @__PURE__ */ s((f) => {
54911
54911
  o(null);
54912
54912
  }, "handleClose");
54913
- return Se(() => {
54913
+ return xe(() => {
54914
54914
  const f = /* @__PURE__ */ s(() => {
54915
54915
  l((h) => $u.reduce((m, y) => n && (y.value === "paragraph" && n.isActive("paragraph") || n.isActive("heading", {
54916
54916
  level: y.level
@@ -55022,7 +55022,7 @@ const Sp = "RaLabeled", xp = {
55022
55022
  i && n.chain().focus().setImage({ src: i }).run();
55023
55023
  }, [n, e]);
55024
55024
  return S.createElement(
55025
- cn,
55025
+ ln,
55026
55026
  { "aria-label": r, title: r, ...t, disabled: !n || !n.isEditable, value: "image", onClick: o },
55027
55027
  S.createElement(eY, { fontSize: "inherit" })
55028
55028
  );
@@ -55044,12 +55044,12 @@ const Sp = "RaLabeled", xp = {
55044
55044
  Lp,
55045
55045
  null,
55046
55046
  S.createElement(
55047
- cn,
55047
+ ln,
55048
55048
  { "aria-label": l, title: l, ...t, disabled: !n || !n.isEditable, value: "color", onClick: /* @__PURE__ */ s(() => d(Cp), "onClick") },
55049
55049
  S.createElement(nY, { fontSize: "inherit" })
55050
55050
  ),
55051
55051
  S.createElement(
55052
- cn,
55052
+ ln,
55053
55053
  { "aria-label": u, title: u, ...t, disabled: !n || !n.isEditable, value: "highlight", onClick: /* @__PURE__ */ s(() => d(oY), "onClick") },
55054
55054
  S.createElement(rY, { fontSize: "inherit" })
55055
55055
  )
@@ -55150,14 +55150,14 @@ const Sp = "RaLabeled", xp = {
55150
55150
  }
55151
55151
  }
55152
55152
  }, [r, o, u, m]), { error: E, invalid: C, isTouched: w } = v;
55153
- return Se(() => {
55153
+ return xe(() => {
55154
55154
  if (!T)
55155
55155
  return;
55156
55156
  const { from: k, to: R } = T.state.selection;
55157
55157
  T.commands.setContent(y.value, !1, {
55158
55158
  preserveWhitespace: !0
55159
55159
  }), T.commands.setTextSelection({ from: k, to: R });
55160
- }, [T, y.value]), Se(() => {
55160
+ }, [T, y.value]), xe(() => {
55161
55161
  if (!T)
55162
55162
  return;
55163
55163
  const k = /* @__PURE__ */ s(() => {
@@ -55509,28 +55509,24 @@ const Sp = "RaLabeled", xp = {
55509
55509
  }
55510
55510
  );
55511
55511
  }, "IntegerInput"), QJ = /* @__PURE__ */ s((t) => {
55512
- const { tipo: e, ...n } = t, { propsContenido: r, hidden: o } = An(n), i = en();
55513
- Se(() => {
55514
- r.value && i.setValue(t.source, r.value);
55515
- }, [r.value]);
55516
- const a = {
55512
+ const { tipo: e, ...n } = t, { propsContenido: r, hidden: o } = An(n), i = {
55517
55513
  ...r
55518
55514
  };
55519
- return o ? null : e === "N" ? /* @__PURE__ */ b(RY, { ...a }) : e === "D" ? /* @__PURE__ */ b(MY, { ...a, totalDigits: a.maxLength }) : e === "F" ? /* @__PURE__ */ b(bY, { ...a }) : e === "Z" ? /* @__PURE__ */ b(wY, { ...a }) : e === "H" ? /* @__PURE__ */ b(to, { ...a, type: "time" }) : e === "TF" ? /* @__PURE__ */ b(
55515
+ return o ? null : e === "N" ? /* @__PURE__ */ b(RY, { ...i }) : e === "D" ? /* @__PURE__ */ b(MY, { ...i, totalDigits: i.maxLength }) : e === "F" ? /* @__PURE__ */ b(bY, { ...i }) : e === "Z" ? /* @__PURE__ */ b(wY, { ...i }) : e === "H" ? /* @__PURE__ */ b(to, { ...i, type: "time" }) : e === "TF" ? /* @__PURE__ */ b(
55520
55516
  to,
55521
55517
  {
55522
- ...a,
55523
- inputProps: { maxLength: a.maxLength || 10 }
55518
+ ...i,
55519
+ inputProps: { maxLength: i.maxLength || 10 }
55524
55520
  }
55525
55521
  ) : /* @__PURE__ */ b(
55526
55522
  to,
55527
55523
  {
55528
- ...a,
55529
- inputProps: { maxLength: a.maxLength }
55524
+ ...i,
55525
+ inputProps: { maxLength: i.maxLength }
55530
55526
  }
55531
55527
  );
55532
55528
  }, "TextBox"), cg = /* @__PURE__ */ s((t) => typeof t == "string" ? t.trimStart() : t, "trimLeading"), ZJ = /* @__PURE__ */ s((t) => {
55533
- const { label: e, sx: n, source: r } = t, o = en(), { estado: i } = Mt(), {
55529
+ const { label: e, sx: n, source: r } = t, o = fn(), { estado: i } = Mt(), {
55534
55530
  hidden: a,
55535
55531
  propsContenido: { helperText: l, sx: u, readOnly: d }
55536
55532
  } = An(t);