@getsoren/design-system 4.91.0 → 4.91.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/main.cjs +25 -25
  2. package/dist/main.js +431 -428
  3. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -3,7 +3,7 @@ import { Alert as Es, AppBar as Pl, Autocomplete as ws, Avatar as lo, AvatarGrou
3
3
  import HA from "@emotion/styled";
4
4
  import { Global as GA, ThemeContext as XA, createElement as Hu, css as ui, keyframes as Lo } from "@emotion/react";
5
5
  import * as I from "react";
6
- import zr, { Children as Rs, Fragment as ZA, cloneElement as Eo, createContext as pi, forwardRef as Nt, isValidElement as jt, memo as fi, useCallback as Ue, useContext as xr, useEffect as gt, useId as Gu, useImperativeHandle as Xu, useLayoutEffect as rl, useMemo as mr, useRef as Ne, useState as we } from "react";
6
+ import zr, { Children as Rs, Fragment as ZA, cloneElement as Eo, createContext as pi, forwardRef as Nt, isValidElement as jt, memo as fi, useCallback as Ue, useContext as xr, useEffect as gt, useId as Gu, useImperativeHandle as Xu, useLayoutEffect as rl, useMemo as mr, useRef as Ne, useState as Ie } from "react";
7
7
  import * as Kn from "react/jsx-runtime";
8
8
  import { jsx as Q, jsxs as st } from "react/jsx-runtime";
9
9
  import * as JA from "react-dom";
@@ -299,7 +299,7 @@ var g1 = /* @__PURE__ */ Vt((e) => {
299
299
  }
300
300
  }
301
301
  }
302
- var m = u, T = p, M = c, B = s, P = r, O = f, g = a, R = y, F = b, V = n, L = l, H = i, X = v, $ = !1;
302
+ var m = u, T = p, P = c, B = s, M = r, O = f, g = a, R = y, F = b, V = n, L = l, H = i, X = v, $ = !1;
303
303
  function J(D) {
304
304
  return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(D) || w(D) === u;
305
305
  }
@@ -339,7 +339,7 @@ var g1 = /* @__PURE__ */ Vt((e) => {
339
339
  function ie(D) {
340
340
  return w(D) === v;
341
341
  }
342
- e.AsyncMode = m, e.ConcurrentMode = T, e.ContextConsumer = M, e.ContextProvider = B, e.Element = P, e.ForwardRef = O, e.Fragment = g, e.Lazy = R, e.Memo = F, e.Portal = V, e.Profiler = L, e.StrictMode = H, e.Suspense = X, e.isAsyncMode = J, e.isConcurrentMode = G, e.isContextConsumer = N, e.isContextProvider = U, e.isElement = ne, e.isForwardRef = Z, e.isFragment = Y, e.isLazy = pe, e.isMemo = ue, e.isPortal = ee, e.isProfiler = oe, e.isStrictMode = re, e.isSuspense = ie, e.isValidElementType = C, e.typeOf = w;
342
+ e.AsyncMode = m, e.ConcurrentMode = T, e.ContextConsumer = P, e.ContextProvider = B, e.Element = M, e.ForwardRef = O, e.Fragment = g, e.Lazy = R, e.Memo = F, e.Portal = V, e.Profiler = L, e.StrictMode = H, e.Suspense = X, e.isAsyncMode = J, e.isConcurrentMode = G, e.isContextConsumer = N, e.isContextProvider = U, e.isElement = ne, e.isForwardRef = Z, e.isFragment = Y, e.isLazy = pe, e.isMemo = ue, e.isPortal = ee, e.isProfiler = oe, e.isStrictMode = re, e.isSuspense = ie, e.isValidElementType = C, e.typeOf = w;
343
343
  }();
344
344
  }), ep = /* @__PURE__ */ Vt((e, t) => {
345
345
  process.env.NODE_ENV === "production" ? t.exports = g1() : t.exports = m1();
@@ -453,9 +453,9 @@ var g1 = /* @__PURE__ */ Vt((e) => {
453
453
  arrayOf: w,
454
454
  element: m(),
455
455
  elementType: T(),
456
- instanceOf: M,
456
+ instanceOf: P,
457
457
  node: g(),
458
- objectOf: P,
458
+ objectOf: M,
459
459
  oneOf: B,
460
460
  oneOfType: O,
461
461
  shape: F,
@@ -538,7 +538,7 @@ var g1 = /* @__PURE__ */ Vt((e) => {
538
538
  }
539
539
  return E(N);
540
540
  }
541
- function M(N) {
541
+ function P(N) {
542
542
  function U(ne, Z, Y, pe, ue) {
543
543
  if (!(ne[Z] instanceof N)) {
544
544
  var ee = N.name || b, oe = G(ne[Z]);
@@ -560,7 +560,7 @@ var g1 = /* @__PURE__ */ Vt((e) => {
560
560
  }
561
561
  return E(U);
562
562
  }
563
- function P(N) {
563
+ function M(N) {
564
564
  function U(ne, Z, Y, pe, ue) {
565
565
  if (typeof N != "function") return new S("Property `" + ue + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
566
566
  var ee = ne[Z], oe = X(ee);
@@ -2319,8 +2319,8 @@ function xp(e = {}) {
2319
2319
  ...b
2320
2320
  }), C = (m) => {
2321
2321
  if (m.__emotion_real === m) return m;
2322
- if (typeof m == "function") return function(M) {
2323
- return Fa(M, m, M.theme.modularCssLayers ? y : void 0);
2322
+ if (typeof m == "function") return function(P) {
2323
+ return Fa(P, m, P.theme.modularCssLayers ? y : void 0);
2324
2324
  };
2325
2325
  if (Br(m)) {
2326
2326
  const T = yp(m);
@@ -2330,7 +2330,7 @@ function xp(e = {}) {
2330
2330
  }
2331
2331
  return m;
2332
2332
  }, w = (...m) => {
2333
- const T = [], M = m.map(C), B = [];
2333
+ const T = [], P = m.map(C), B = [];
2334
2334
  if (T.push(i), u && A && B.push(function(g) {
2335
2335
  const R = g.theme.components?.[u]?.styleOverrides;
2336
2336
  if (!R) return null;
@@ -2340,8 +2340,8 @@ function xp(e = {}) {
2340
2340
  }), u && !h && B.push(function(g) {
2341
2341
  const R = g.theme?.components?.[u]?.variants;
2342
2342
  return R ? Cp(g, R, [], g.theme.modularCssLayers ? "theme" : void 0) : null;
2343
- }), S || B.push(ko), Array.isArray(M[0])) {
2344
- const O = M.shift(), g = new Array(T.length).fill(""), R = new Array(B.length).fill("");
2343
+ }), S || B.push(ko), Array.isArray(P[0])) {
2344
+ const O = P.shift(), g = new Array(T.length).fill(""), R = new Array(B.length).fill("");
2345
2345
  let F;
2346
2346
  F = [
2347
2347
  ...g,
@@ -2353,8 +2353,8 @@ function xp(e = {}) {
2353
2353
  ...R
2354
2354
  ], T.unshift(F);
2355
2355
  }
2356
- const P = x(...T, ...M, ...B);
2357
- return s.muiName && (P.muiName = s.muiName), process.env.NODE_ENV !== "production" && (P.displayName = sh(u, p, s)), P;
2356
+ const M = x(...T, ...P, ...B);
2357
+ return s.muiName && (M.muiName = s.muiName), process.env.NODE_ENV !== "production" && (M.displayName = sh(u, p, s)), M;
2358
2358
  };
2359
2359
  return x.withConfig && (w.withConfig = x.withConfig), w;
2360
2360
  };
@@ -2725,8 +2725,8 @@ function Rh(e, t = {}) {
2725
2725
  let A = v;
2726
2726
  const b = {}, { [c]: y, ...h } = l;
2727
2727
  if (Object.entries(h || {}).forEach(([C, w]) => {
2728
- const { vars: m, css: T, varsWithDefaults: M } = ll(w, t);
2729
- A = Pt(A, M), b[C] = {
2728
+ const { vars: m, css: T, varsWithDefaults: P } = ll(w, t);
2729
+ A = Pt(A, P), b[C] = {
2730
2730
  css: T,
2731
2731
  vars: m
2732
2732
  };
@@ -2757,23 +2757,23 @@ function Rh(e, t = {}) {
2757
2757
  },
2758
2758
  generateStyleSheets: () => {
2759
2759
  const C = [], w = e.defaultColorScheme || "light";
2760
- function m(B, P) {
2761
- Object.keys(P).length && C.push(typeof B == "string" ? { [B]: { ...P } } : B);
2760
+ function m(B, M) {
2761
+ Object.keys(M).length && C.push(typeof B == "string" ? { [B]: { ...M } } : B);
2762
2762
  }
2763
2763
  m(r(void 0, { ...f }), f);
2764
- const { [w]: T, ...M } = b;
2764
+ const { [w]: T, ...P } = b;
2765
2765
  if (T) {
2766
- const { css: B } = T, P = l[w]?.palette?.mode, O = !n && P ? {
2767
- colorScheme: P,
2766
+ const { css: B } = T, M = l[w]?.palette?.mode, O = !n && M ? {
2767
+ colorScheme: M,
2768
2768
  ...B
2769
2769
  } : { ...B };
2770
2770
  m(r(w, { ...O }), O);
2771
2771
  }
2772
- return Object.entries(M).forEach(([B, { css: P }]) => {
2772
+ return Object.entries(P).forEach(([B, { css: M }]) => {
2773
2773
  const O = l[B]?.palette?.mode, g = !n && O ? {
2774
2774
  colorScheme: O,
2775
- ...P
2776
- } : { ...P };
2775
+ ...M
2776
+ } : { ...M };
2777
2777
  m(r(B, { ...g }), g);
2778
2778
  }), i && C.push({ ":root": {
2779
2779
  "--__l-threshold": "0.7",
@@ -3575,10 +3575,10 @@ function gg(e = {}, ...t) {
3575
3575
  shouldSkipGeneratingVar: s,
3576
3576
  getSelector: pg(m),
3577
3577
  enableContrastVars: l
3578
- }, { vars: M, generateThemeVars: B, generateStyleSheets: P } = Rh(m, T);
3579
- return m.vars = M, Object.entries(m.colorSchemes[m.defaultColorScheme]).forEach(([O, g]) => {
3578
+ }, { vars: P, generateThemeVars: B, generateStyleSheets: M } = Rh(m, T);
3579
+ return m.vars = P, Object.entries(m.colorSchemes[m.defaultColorScheme]).forEach(([O, g]) => {
3580
3580
  m[O] = g;
3581
- }), m.generateThemeVars = B, m.generateStyleSheets = P, m.generateSpacing = function() {
3581
+ }), m.generateThemeVars = B, m.generateStyleSheets = M, m.generateSpacing = function() {
3582
3582
  return Ap(p.spacing, xi(this));
3583
3583
  }, m.getColorSchemeSelector = Oh(c), m.spacing = m.generateSpacing(), m.shouldSkipGeneratingVar = s, m.unstable_sxConfig = {
3584
3584
  ...ia,
@@ -3783,7 +3783,7 @@ var Sg = /* @__PURE__ */ Vt((e) => {
3783
3783
  }
3784
3784
  }
3785
3785
  }
3786
- var m = u, T = p, M = c, B = s, P = r, O = f, g = a, R = y, F = b, V = n, L = l, H = i, X = v, $ = !1;
3786
+ var m = u, T = p, P = c, B = s, M = r, O = f, g = a, R = y, F = b, V = n, L = l, H = i, X = v, $ = !1;
3787
3787
  function J(D) {
3788
3788
  return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(D) || w(D) === u;
3789
3789
  }
@@ -3823,7 +3823,7 @@ var Sg = /* @__PURE__ */ Vt((e) => {
3823
3823
  function ie(D) {
3824
3824
  return w(D) === v;
3825
3825
  }
3826
- e.AsyncMode = m, e.ConcurrentMode = T, e.ContextConsumer = M, e.ContextProvider = B, e.Element = P, e.ForwardRef = O, e.Fragment = g, e.Lazy = R, e.Memo = F, e.Portal = V, e.Profiler = L, e.StrictMode = H, e.Suspense = X, e.isAsyncMode = J, e.isConcurrentMode = G, e.isContextConsumer = N, e.isContextProvider = U, e.isElement = ne, e.isForwardRef = Z, e.isFragment = Y, e.isLazy = pe, e.isMemo = ue, e.isPortal = ee, e.isProfiler = oe, e.isStrictMode = re, e.isSuspense = ie, e.isValidElementType = C, e.typeOf = w;
3826
+ e.AsyncMode = m, e.ConcurrentMode = T, e.ContextConsumer = P, e.ContextProvider = B, e.Element = M, e.ForwardRef = O, e.Fragment = g, e.Lazy = R, e.Memo = F, e.Portal = V, e.Profiler = L, e.StrictMode = H, e.Suspense = X, e.isAsyncMode = J, e.isConcurrentMode = G, e.isContextConsumer = N, e.isContextProvider = U, e.isElement = ne, e.isForwardRef = Z, e.isFragment = Y, e.isLazy = pe, e.isMemo = ue, e.isPortal = ee, e.isProfiler = oe, e.isStrictMode = re, e.isSuspense = ie, e.isValidElementType = C, e.typeOf = w;
3827
3827
  }();
3828
3828
  }), wg = /* @__PURE__ */ Vt((e, t) => {
3829
3829
  process.env.NODE_ENV === "production" ? t.exports = Sg() : t.exports = Eg();
@@ -3876,11 +3876,11 @@ var Sg = /* @__PURE__ */ Vt((e) => {
3876
3876
  var C = p(S);
3877
3877
  f && (C = C.concat(f(S)));
3878
3878
  for (var w = c(h), m = c(S), T = 0; T < C.length; ++T) {
3879
- var M = C[T];
3880
- if (!a[M] && !(E && E[M]) && !(m && m[M]) && !(w && w[M])) {
3881
- var B = v(S, M);
3879
+ var P = C[T];
3880
+ if (!a[P] && !(E && E[P]) && !(m && m[P]) && !(w && w[P])) {
3881
+ var B = v(S, P);
3882
3882
  try {
3883
- u(h, M, B);
3883
+ u(h, P, B);
3884
3884
  } catch {
3885
3885
  }
3886
3886
  }
@@ -4888,7 +4888,7 @@ var cm = Lo`
4888
4888
  p.current && (p.current(), p.current = null);
4889
4889
  }, [s]);
4890
4890
  const f = I.useRef(!1), v = Xo(), A = I.useRef(null), b = I.useRef(null), y = I.useCallback((x) => {
4891
- const { pulsate: C, rippleX: w, rippleY: m, rippleSize: T, cb: M } = x;
4891
+ const { pulsate: C, rippleX: w, rippleY: m, rippleSize: T, cb: P } = x;
4892
4892
  c((B) => [...B, /* @__PURE__ */ Q(Am, {
4893
4893
  classes: {
4894
4894
  ripple: ge(a.ripple, ir.ripple),
@@ -4903,16 +4903,16 @@ var cm = Lo`
4903
4903
  rippleX: w,
4904
4904
  rippleY: m,
4905
4905
  rippleSize: T
4906
- }, u.current)]), u.current += 1, p.current = M;
4906
+ }, u.current)]), u.current += 1, p.current = P;
4907
4907
  }, [a]), h = I.useCallback((x = {}, C = {}, w = () => {
4908
4908
  }) => {
4909
- const { pulsate: m = !1, center: T = n || C.pulsate, fakeElement: M = !1 } = C;
4909
+ const { pulsate: m = !1, center: T = n || C.pulsate, fakeElement: P = !1 } = C;
4910
4910
  if (x?.type === "mousedown" && f.current) {
4911
4911
  f.current = !1;
4912
4912
  return;
4913
4913
  }
4914
4914
  x?.type === "touchstart" && (f.current = !0);
4915
- const B = M ? null : b.current, P = B ? B.getBoundingClientRect() : {
4915
+ const B = P ? null : b.current, M = B ? B.getBoundingClientRect() : {
4916
4916
  width: 0,
4917
4917
  height: 0,
4918
4918
  left: 0,
@@ -4920,13 +4920,13 @@ var cm = Lo`
4920
4920
  };
4921
4921
  let O, g, R;
4922
4922
  if (T || x === void 0 || x.clientX === 0 && x.clientY === 0 || !x.clientX && !x.touches)
4923
- O = Math.round(P.width / 2), g = Math.round(P.height / 2);
4923
+ O = Math.round(M.width / 2), g = Math.round(M.height / 2);
4924
4924
  else {
4925
4925
  const { clientX: F, clientY: V } = x.touches && x.touches.length > 0 ? x.touches[0] : x;
4926
- O = Math.round(F - P.left), g = Math.round(V - P.top);
4926
+ O = Math.round(F - M.left), g = Math.round(V - M.top);
4927
4927
  }
4928
4928
  if (T)
4929
- R = Math.sqrt((2 * P.width ** 2 + P.height ** 2) / 3), R % 2 === 0 && (R += 1);
4929
+ R = Math.sqrt((2 * M.width ** 2 + M.height ** 2) / 3), R % 2 === 0 && (R += 1);
4930
4930
  else {
4931
4931
  const F = Math.max(Math.abs((B ? B.clientWidth : 0) - O), O) * 2 + 2, V = Math.max(Math.abs((B ? B.clientHeight : 0) - g), g) * 2 + 2;
4932
4932
  R = Math.sqrt(F ** 2 + V ** 2);
@@ -5034,7 +5034,7 @@ var gm = Pe("MuiButtonBase", [
5034
5034
  const n = Ve({
5035
5035
  props: t,
5036
5036
  name: "MuiButtonBase"
5037
- }), { action: a, centerRipple: i = !1, children: l, className: s, component: c = "button", disabled: u = !1, disableRipple: p = !1, disableTouchRipple: f = !1, focusRipple: v = !1, focusVisibleClassName: A, LinkComponent: b = "a", onBlur: y, onClick: h, onContextMenu: S, onDragLeave: E, onFocus: x, onFocusVisible: C, onKeyDown: w, onKeyUp: m, onMouseDown: T, onMouseLeave: M, onMouseUp: B, onTouchEnd: P, onTouchMove: O, onTouchStart: g, tabIndex: R = 0, TouchRippleProps: F, touchRippleRef: V, type: L, ...H } = n, X = I.useRef(null), $ = $g(), J = er($.ref, V), [G, N] = I.useState(!1);
5037
+ }), { action: a, centerRipple: i = !1, children: l, className: s, component: c = "button", disabled: u = !1, disableRipple: p = !1, disableTouchRipple: f = !1, focusRipple: v = !1, focusVisibleClassName: A, LinkComponent: b = "a", onBlur: y, onClick: h, onContextMenu: S, onDragLeave: E, onFocus: x, onFocusVisible: C, onKeyDown: w, onKeyUp: m, onMouseDown: T, onMouseLeave: P, onMouseUp: B, onTouchEnd: M, onTouchMove: O, onTouchStart: g, tabIndex: R = 0, TouchRippleProps: F, touchRippleRef: V, type: L, ...H } = n, X = I.useRef(null), $ = $g(), J = er($.ref, V), [G, N] = I.useState(!1);
5038
5038
  u && G && N(!1), I.useImperativeHandle(a, () => ({ focusVisible: () => {
5039
5039
  N(!0), X.current.focus();
5040
5040
  } }), []);
@@ -5048,8 +5048,8 @@ var gm = Pe("MuiButtonBase", [
5048
5048
  $
5049
5049
  ]);
5050
5050
  const ne = jr($, "start", T, f), Z = jr($, "stop", S, f), Y = jr($, "stop", E, f), pe = jr($, "stop", B, f), ue = jr($, "stop", (_) => {
5051
- G && _.preventDefault(), M && M(_);
5052
- }, f), ee = jr($, "start", g, f), oe = jr($, "stop", P, f), re = jr($, "stop", O, f), ie = jr($, "stop", (_) => {
5051
+ G && _.preventDefault(), P && P(_);
5052
+ }, f), ee = jr($, "start", g, f), oe = jr($, "stop", M, f), re = jr($, "stop", O, f), ie = jr($, "stop", (_) => {
5053
5053
  an(_.target) || N(!1), y && y(_);
5054
5054
  }, !1), D = tn((_) => {
5055
5055
  X.current || (X.current = _.currentTarget), an(_.target) && (N(!0), C && C(_)), x && x(_);
@@ -5866,7 +5866,7 @@ var Om = (e) => {
5866
5866
  const n = I.useContext(ef), a = I.useContext(tf), i = Ve({
5867
5867
  props: Xn(n, t),
5868
5868
  name: "MuiButton"
5869
- }), { children: l, color: s = "primary", component: c = "button", className: u, disabled: p = !1, disableElevation: f = !1, disableFocusRipple: v = !1, endIcon: A, focusVisibleClassName: b, fullWidth: y = !1, id: h, loading: S = null, loadingIndicator: E, loadingPosition: x = "center", size: C = "medium", startIcon: w, type: m, variant: T = "text", ...M } = i, B = zs(h), P = E ?? /* @__PURE__ */ Q(ln, {
5869
+ }), { children: l, color: s = "primary", component: c = "button", className: u, disabled: p = !1, disableElevation: f = !1, disableFocusRipple: v = !1, endIcon: A, focusVisibleClassName: b, fullWidth: y = !1, id: h, loading: S = null, loadingIndicator: E, loadingPosition: x = "center", size: C = "medium", startIcon: w, type: m, variant: T = "text", ...P } = i, B = zs(h), M = E ?? /* @__PURE__ */ Q(ln, {
5870
5870
  "aria-labelledby": B,
5871
5871
  color: "inherit",
5872
5872
  size: 16
@@ -5879,7 +5879,7 @@ var Om = (e) => {
5879
5879
  disableFocusRipple: v,
5880
5880
  fullWidth: y,
5881
5881
  loading: S,
5882
- loadingIndicator: P,
5882
+ loadingIndicator: M,
5883
5883
  loadingPosition: x,
5884
5884
  size: C,
5885
5885
  type: m,
@@ -5904,7 +5904,7 @@ var Om = (e) => {
5904
5904
  children: S && /* @__PURE__ */ Q(Lm, {
5905
5905
  className: g.loadingIndicator,
5906
5906
  ownerState: O,
5907
- children: P
5907
+ children: M
5908
5908
  })
5909
5909
  }) : null, { root: H, ...X } = g;
5910
5910
  return /* @__PURE__ */ st(Bm, {
@@ -5917,7 +5917,7 @@ var Om = (e) => {
5917
5917
  ref: r,
5918
5918
  type: m,
5919
5919
  id: S ? B : h,
5920
- ...M,
5920
+ ...P,
5921
5921
  classes: X,
5922
5922
  children: [
5923
5923
  R,
@@ -6786,7 +6786,7 @@ var Zm = 16 / 2, Jm = ({ onClick: e, label: t, portrait: r, dataTestId: n = "ass
6786
6786
  function $m(e) {
6787
6787
  return Oe("MuiChip", e);
6788
6788
  }
6789
- var Ge = Pe("MuiChip", [
6789
+ var Xe = Pe("MuiChip", [
6790
6790
  "root",
6791
6791
  "sizeSmall",
6792
6792
  "sizeMedium",
@@ -6954,16 +6954,16 @@ var _m = (e) => {
6954
6954
  overridesResolver: (e, t) => {
6955
6955
  const { ownerState: r } = e, { color: n, iconColor: a, clickable: i, onDelete: l, size: s, variant: c } = r;
6956
6956
  return [
6957
- { [`& .${Ge.avatar}`]: t.avatar },
6958
- { [`& .${Ge.avatar}`]: t[`avatar${le(s)}`] },
6959
- { [`& .${Ge.avatar}`]: t[`avatarColor${le(n)}`] },
6960
- { [`& .${Ge.icon}`]: t.icon },
6961
- { [`& .${Ge.icon}`]: t[`icon${le(s)}`] },
6962
- { [`& .${Ge.icon}`]: t[`iconColor${le(a)}`] },
6963
- { [`& .${Ge.deleteIcon}`]: t.deleteIcon },
6964
- { [`& .${Ge.deleteIcon}`]: t[`deleteIcon${le(s)}`] },
6965
- { [`& .${Ge.deleteIcon}`]: t[`deleteIconColor${le(n)}`] },
6966
- { [`& .${Ge.deleteIcon}`]: t[`deleteIcon${le(c)}Color${le(n)}`] },
6957
+ { [`& .${Xe.avatar}`]: t.avatar },
6958
+ { [`& .${Xe.avatar}`]: t[`avatar${le(s)}`] },
6959
+ { [`& .${Xe.avatar}`]: t[`avatarColor${le(n)}`] },
6960
+ { [`& .${Xe.icon}`]: t.icon },
6961
+ { [`& .${Xe.icon}`]: t[`icon${le(s)}`] },
6962
+ { [`& .${Xe.icon}`]: t[`iconColor${le(a)}`] },
6963
+ { [`& .${Xe.deleteIcon}`]: t.deleteIcon },
6964
+ { [`& .${Xe.deleteIcon}`]: t[`deleteIcon${le(s)}`] },
6965
+ { [`& .${Xe.deleteIcon}`]: t[`deleteIconColor${le(n)}`] },
6966
+ { [`& .${Xe.deleteIcon}`]: t[`deleteIcon${le(c)}Color${le(n)}`] },
6967
6967
  t.root,
6968
6968
  t[`size${le(s)}`],
6969
6969
  t[`color${le(n)}`],
@@ -6998,11 +6998,11 @@ var _m = (e) => {
6998
6998
  padding: 0,
6999
6999
  verticalAlign: "middle",
7000
7000
  boxSizing: "border-box",
7001
- [`&.${Ge.disabled}`]: {
7001
+ [`&.${Xe.disabled}`]: {
7002
7002
  opacity: (e.vars || e).palette.action.disabledOpacity,
7003
7003
  pointerEvents: "none"
7004
7004
  },
7005
- [`& .${Ge.avatar}`]: {
7005
+ [`& .${Xe.avatar}`]: {
7006
7006
  marginLeft: 5,
7007
7007
  marginRight: -6,
7008
7008
  width: 24,
@@ -7010,26 +7010,26 @@ var _m = (e) => {
7010
7010
  color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : t,
7011
7011
  fontSize: e.typography.pxToRem(12)
7012
7012
  },
7013
- [`& .${Ge.avatarColorPrimary}`]: {
7013
+ [`& .${Xe.avatarColorPrimary}`]: {
7014
7014
  color: (e.vars || e).palette.primary.contrastText,
7015
7015
  backgroundColor: (e.vars || e).palette.primary.dark
7016
7016
  },
7017
- [`& .${Ge.avatarColorSecondary}`]: {
7017
+ [`& .${Xe.avatarColorSecondary}`]: {
7018
7018
  color: (e.vars || e).palette.secondary.contrastText,
7019
7019
  backgroundColor: (e.vars || e).palette.secondary.dark
7020
7020
  },
7021
- [`& .${Ge.avatarSmall}`]: {
7021
+ [`& .${Xe.avatarSmall}`]: {
7022
7022
  marginLeft: 4,
7023
7023
  marginRight: -4,
7024
7024
  width: 18,
7025
7025
  height: 18,
7026
7026
  fontSize: e.typography.pxToRem(10)
7027
7027
  },
7028
- [`& .${Ge.icon}`]: {
7028
+ [`& .${Xe.icon}`]: {
7029
7029
  marginLeft: 5,
7030
7030
  marginRight: -6
7031
7031
  },
7032
- [`& .${Ge.deleteIcon}`]: {
7032
+ [`& .${Xe.deleteIcon}`]: {
7033
7033
  WebkitTapHighlightColor: "transparent",
7034
7034
  color: e.alpha((e.vars || e).palette.text.primary, 0.26),
7035
7035
  fontSize: 22,
@@ -7042,12 +7042,12 @@ var _m = (e) => {
7042
7042
  props: { size: "small" },
7043
7043
  style: {
7044
7044
  height: 24,
7045
- [`& .${Ge.icon}`]: {
7045
+ [`& .${Xe.icon}`]: {
7046
7046
  fontSize: 18,
7047
7047
  marginLeft: 4,
7048
7048
  marginRight: -4
7049
7049
  },
7050
- [`& .${Ge.deleteIcon}`]: {
7050
+ [`& .${Xe.deleteIcon}`]: {
7051
7051
  fontSize: 16,
7052
7052
  marginRight: 4,
7053
7053
  marginLeft: -4
@@ -7059,7 +7059,7 @@ var _m = (e) => {
7059
7059
  style: {
7060
7060
  backgroundColor: (e.vars || e).palette[r].main,
7061
7061
  color: (e.vars || e).palette[r].contrastText,
7062
- [`& .${Ge.deleteIcon}`]: {
7062
+ [`& .${Xe.deleteIcon}`]: {
7063
7063
  color: e.alpha((e.vars || e).palette[r].contrastText, 0.7),
7064
7064
  "&:hover, &:active": { color: (e.vars || e).palette[r].contrastText }
7065
7065
  }
@@ -7067,22 +7067,22 @@ var _m = (e) => {
7067
7067
  })),
7068
7068
  {
7069
7069
  props: (r) => r.iconColor === r.color,
7070
- style: { [`& .${Ge.icon}`]: { color: e.vars ? e.vars.palette.Chip.defaultIconColor : t } }
7070
+ style: { [`& .${Xe.icon}`]: { color: e.vars ? e.vars.palette.Chip.defaultIconColor : t } }
7071
7071
  },
7072
7072
  {
7073
7073
  props: (r) => r.iconColor === r.color && r.color !== "default",
7074
- style: { [`& .${Ge.icon}`]: { color: "inherit" } }
7074
+ style: { [`& .${Xe.icon}`]: { color: "inherit" } }
7075
7075
  },
7076
7076
  {
7077
7077
  props: { onDelete: !0 },
7078
- style: { [`&.${Ge.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) } }
7078
+ style: { [`&.${Xe.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) } }
7079
7079
  },
7080
7080
  ...Object.entries(e.palette).filter(Kt(["dark"])).map(([r]) => ({
7081
7081
  props: {
7082
7082
  color: r,
7083
7083
  onDelete: !0
7084
7084
  },
7085
- style: { [`&.${Ge.focusVisible}`]: { background: (e.vars || e).palette[r].dark } }
7085
+ style: { [`&.${Xe.focusVisible}`]: { background: (e.vars || e).palette[r].dark } }
7086
7086
  })),
7087
7087
  {
7088
7088
  props: { clickable: !0 },
@@ -7091,7 +7091,7 @@ var _m = (e) => {
7091
7091
  WebkitTapHighlightColor: "transparent",
7092
7092
  cursor: "pointer",
7093
7093
  "&:hover": { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`) },
7094
- [`&.${Ge.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) },
7094
+ [`&.${Xe.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette.action.selected, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`) },
7095
7095
  "&:active": { boxShadow: (e.vars || e).shadows[1] }
7096
7096
  }
7097
7097
  },
@@ -7100,21 +7100,21 @@ var _m = (e) => {
7100
7100
  color: r,
7101
7101
  clickable: !0
7102
7102
  },
7103
- style: { [`&:hover, &.${Ge.focusVisible}`]: { backgroundColor: (e.vars || e).palette[r].dark } }
7103
+ style: { [`&:hover, &.${Xe.focusVisible}`]: { backgroundColor: (e.vars || e).palette[r].dark } }
7104
7104
  })),
7105
7105
  {
7106
7106
  props: { variant: "outlined" },
7107
7107
  style: {
7108
7108
  backgroundColor: "transparent",
7109
7109
  border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
7110
- [`&.${Ge.clickable}:hover`]: { backgroundColor: (e.vars || e).palette.action.hover },
7111
- [`&.${Ge.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
7112
- [`& .${Ge.avatar}`]: { marginLeft: 4 },
7113
- [`& .${Ge.avatarSmall}`]: { marginLeft: 2 },
7114
- [`& .${Ge.icon}`]: { marginLeft: 4 },
7115
- [`& .${Ge.iconSmall}`]: { marginLeft: 2 },
7116
- [`& .${Ge.deleteIcon}`]: { marginRight: 5 },
7117
- [`& .${Ge.deleteIconSmall}`]: { marginRight: 3 }
7110
+ [`&.${Xe.clickable}:hover`]: { backgroundColor: (e.vars || e).palette.action.hover },
7111
+ [`&.${Xe.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
7112
+ [`& .${Xe.avatar}`]: { marginLeft: 4 },
7113
+ [`& .${Xe.avatarSmall}`]: { marginLeft: 2 },
7114
+ [`& .${Xe.icon}`]: { marginLeft: 4 },
7115
+ [`& .${Xe.iconSmall}`]: { marginLeft: 2 },
7116
+ [`& .${Xe.deleteIcon}`]: { marginRight: 5 },
7117
+ [`& .${Xe.deleteIconSmall}`]: { marginRight: 3 }
7118
7118
  }
7119
7119
  },
7120
7120
  ...Object.entries(e.palette).filter(Kt()).map(([r]) => ({
@@ -7125,9 +7125,9 @@ var _m = (e) => {
7125
7125
  style: {
7126
7126
  color: (e.vars || e).palette[r].main,
7127
7127
  border: `1px solid ${e.alpha((e.vars || e).palette[r].main, 0.7)}`,
7128
- [`&.${Ge.clickable}:hover`]: { backgroundColor: e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.hoverOpacity) },
7129
- [`&.${Ge.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.focusOpacity) },
7130
- [`& .${Ge.deleteIcon}`]: {
7128
+ [`&.${Xe.clickable}:hover`]: { backgroundColor: e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.hoverOpacity) },
7129
+ [`&.${Xe.focusVisible}`]: { backgroundColor: e.alpha((e.vars || e).palette[r].main, (e.vars || e).palette.action.focusOpacity) },
7130
+ [`& .${Xe.deleteIcon}`]: {
7131
7131
  color: e.alpha((e.vars || e).palette[r].main, 0.7),
7132
7132
  "&:hover, &:active": { color: (e.vars || e).palette[r].main }
7133
7133
  }
@@ -7182,9 +7182,9 @@ var Zs = /* @__PURE__ */ I.forwardRef(function(t, r) {
7182
7182
  const n = Ve({
7183
7183
  props: t,
7184
7184
  name: "MuiChip"
7185
- }), { avatar: a, className: i, clickable: l, color: s = "default", component: c, deleteIcon: u, disabled: p = !1, icon: f, label: v, onClick: A, onDelete: b, onKeyDown: y, onKeyUp: h, size: S = "medium", variant: E = "filled", tabIndex: x, skipFocusWhenDisabled: C = !1, slots: w = {}, slotProps: m = {}, ...T } = n, M = er(I.useRef(null), r), B = (Z) => {
7185
+ }), { avatar: a, className: i, clickable: l, color: s = "default", component: c, deleteIcon: u, disabled: p = !1, icon: f, label: v, onClick: A, onDelete: b, onKeyDown: y, onKeyUp: h, size: S = "medium", variant: E = "filled", tabIndex: x, skipFocusWhenDisabled: C = !1, slots: w = {}, slotProps: m = {}, ...T } = n, P = er(I.useRef(null), r), B = (Z) => {
7186
7186
  Z.stopPropagation(), b(Z);
7187
- }, P = (Z) => {
7187
+ }, M = (Z) => {
7188
7188
  Z.currentTarget === Z.target && _d(Z) && Z.preventDefault(), y && y(Z);
7189
7189
  }, O = (Z) => {
7190
7190
  Z.currentTarget === Z.target && b && _d(Z) && b(Z), h && h(Z);
@@ -7226,7 +7226,7 @@ var Zs = /* @__PURE__ */ I.forwardRef(function(t, r) {
7226
7226
  },
7227
7227
  ownerState: F,
7228
7228
  shouldForwardComponentProp: !0,
7229
- ref: M,
7229
+ ref: P,
7230
7230
  className: ge(V.root, i),
7231
7231
  additionalProps: {
7232
7232
  disabled: g && p ? !0 : void 0,
@@ -7239,7 +7239,7 @@ var Zs = /* @__PURE__ */ I.forwardRef(function(t, r) {
7239
7239
  Z.onClick?.(Y), A?.(Y);
7240
7240
  },
7241
7241
  onKeyDown: (Y) => {
7242
- Z.onKeyDown?.(Y), P(Y);
7242
+ Z.onKeyDown?.(Y), M(Y);
7243
7243
  },
7244
7244
  onKeyUp: (Y) => {
7245
7245
  Z.onKeyUp?.(Y), O(Y);
@@ -9408,10 +9408,10 @@ var i2 = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
9408
9408
  })
9409
9409
  })
9410
9410
  }), O2 = ({ size: e = 32, color: t = "text.primary", isWorking: r = !1 }) => {
9411
- const n = Gu(), a = y2("(prefers-reduced-motion: reduce)"), i = Ne(null), l = Ne(null), s = Ne(null), c = Ne(null), [u] = we(() => fl(oc)), [p] = we(() => Pn.map(({ roundMs: C }) => ({
9411
+ const n = Gu(), a = y2("(prefers-reduced-motion: reduce)"), i = Ne(null), l = Ne(null), s = Ne(null), c = Ne(null), [u] = Ie(() => fl(oc)), [p] = Ie(() => Pn.map(({ roundMs: C }) => ({
9412
9412
  across: fl(C),
9413
9413
  upDown: fl(C, C / 4)
9414
- }))), [f, v] = we(!1), [A, b] = we(!1), [y, h] = we(r), S = Ne(!(r || a)), E = R2(e);
9414
+ }))), [f, v] = Ie(!1), [A, b] = Ie(!1), [y, h] = Ie(r), S = Ne(!(r || a)), E = R2(e);
9415
9415
  y !== r && (h(r), b(r), v(!(r || a)));
9416
9416
  const x = (r || f) && !a;
9417
9417
  return rl(() => {
@@ -9437,14 +9437,14 @@ var i2 = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
9437
9437
  duration: nc,
9438
9438
  easing: ac,
9439
9439
  fill: "forwards"
9440
- }), T = [s.current, c.current].map((M) => M?.animate([{ opacity: 1 }, { opacity: 0 }], {
9440
+ }), T = [s.current, c.current].map((P) => P?.animate([{ opacity: 1 }, { opacity: 0 }], {
9441
9441
  duration: nc / 2,
9442
9442
  easing: ac,
9443
9443
  fill: "forwards"
9444
9444
  }));
9445
9445
  return m.onfinish = () => v(!1), () => {
9446
9446
  m.cancel();
9447
- for (const M of T) M?.cancel();
9447
+ for (const P of T) P?.cancel();
9448
9448
  C.style.animation = "";
9449
9449
  };
9450
9450
  }, [f]), /* @__PURE__ */ k(at, {
@@ -9646,7 +9646,7 @@ var M2 = {
9646
9646
  delay: L,
9647
9647
  easing: H
9648
9648
  })].join(","), c && c(R, F);
9649
- }), M = sr(C, u), B = sr(C, A), P = sr(C, (R) => {
9649
+ }), P = sr(C, u), B = sr(C, A), M = sr(C, (R) => {
9650
9650
  const { duration: F, delay: V, easing: L } = Ya({
9651
9651
  style: b,
9652
9652
  timeout: y,
@@ -9669,9 +9669,9 @@ var M2 = {
9669
9669
  in: s,
9670
9670
  nodeRef: C,
9671
9671
  onEnter: T,
9672
- onEntered: M,
9672
+ onEntered: P,
9673
9673
  onEntering: m,
9674
- onExit: P,
9674
+ onExit: M,
9675
9675
  onExited: O,
9676
9676
  onExiting: B,
9677
9677
  addEndListener: (R) => {
@@ -10128,16 +10128,16 @@ function pc(e) {
10128
10128
  A = h.x, y = h.y;
10129
10129
  var S = l.hasOwnProperty("x"), E = l.hasOwnProperty("y"), x = Gr, C = "top", w = window;
10130
10130
  if (u) {
10131
- var m = da(r), T = "clientHeight", M = "clientWidth";
10132
- if (m === tr(r) && (m = go(r), $r(m).position !== "static" && s === "absolute" && (T = "scrollHeight", M = "scrollWidth")), m = m, a === "top" || (a === "left" || a === "right") && i === "end") {
10131
+ var m = da(r), T = "clientHeight", P = "clientWidth";
10132
+ if (m === tr(r) && (m = go(r), $r(m).position !== "static" && s === "absolute" && (T = "scrollHeight", P = "scrollWidth")), m = m, a === "top" || (a === "left" || a === "right") && i === "end") {
10133
10133
  C = Yr;
10134
10134
  var B = f && m === w && w.visualViewport ? w.visualViewport.height : m[T];
10135
10135
  y -= B - n.height, y *= c ? 1 : -1;
10136
10136
  }
10137
10137
  if (a === "left" || (a === "top" || a === "bottom") && i === "end") {
10138
10138
  x = Ao;
10139
- var P = f && m === w && w.visualViewport ? w.visualViewport.width : m[M];
10140
- A -= P - n.width, A *= c ? 1 : -1;
10139
+ var M = f && m === w && w.visualViewport ? w.visualViewport.width : m[P];
10140
+ A -= M - n.width, A *= c ? 1 : -1;
10141
10141
  }
10142
10142
  }
10143
10143
  var O = Object.assign({ position: s }, u && lv), g = p === !0 ? sv({
@@ -10352,7 +10352,7 @@ function ta(e, t) {
10352
10352
  element: x,
10353
10353
  strategy: "absolute",
10354
10354
  placement: a
10355
- }), M = ds(Object.assign({}, x, T)), B = v === "popper" ? M : m, P = {
10355
+ }), P = ds(Object.assign({}, x, T)), B = v === "popper" ? P : m, M = {
10356
10356
  top: w.top - B.top + S.top,
10357
10357
  bottom: B.bottom - w.bottom + S.bottom,
10358
10358
  left: w.left - B.left + S.left,
@@ -10360,12 +10360,12 @@ function ta(e, t) {
10360
10360
  }, O = e.modifiersData.offset;
10361
10361
  if (v === "popper" && O) {
10362
10362
  var g = O[a];
10363
- Object.keys(P).forEach(function(R) {
10363
+ Object.keys(M).forEach(function(R) {
10364
10364
  var F = ["right", "bottom"].indexOf(R) >= 0 ? 1 : -1, V = ["top", "bottom"].indexOf(R) >= 0 ? "y" : "x";
10365
- P[R] += g[V] * F;
10365
+ M[R] += g[V] * F;
10366
10366
  });
10367
10367
  }
10368
- return P;
10368
+ return M;
10369
10369
  }
10370
10370
  function yv(e, t) {
10371
10371
  t === void 0 && (t = {});
@@ -10408,9 +10408,9 @@ function xv(e) {
10408
10408
  flipVariations: b,
10409
10409
  allowedAutoPlacements: y
10410
10410
  }) : U);
10411
- }, []), C = t.rects.reference, w = t.rects.popper, m = /* @__PURE__ */ new Map(), T = !0, M = x[0], B = 0; B < x.length; B++) {
10412
- var P = x[B], O = Pr(P), g = un(P) === Ni, R = ["top", Yr].indexOf(O) >= 0, F = R ? "width" : "height", V = ta(t, {
10413
- placement: P,
10411
+ }, []), C = t.rects.reference, w = t.rects.popper, m = /* @__PURE__ */ new Map(), T = !0, P = x[0], B = 0; B < x.length; B++) {
10412
+ var M = x[B], O = Pr(M), g = un(M) === Ni, R = ["top", Yr].indexOf(O) >= 0, F = R ? "width" : "height", V = ta(t, {
10413
+ placement: M,
10414
10414
  boundary: p,
10415
10415
  rootBoundary: f,
10416
10416
  altBoundary: v,
@@ -10421,10 +10421,10 @@ function xv(e) {
10421
10421
  if (i && X.push(V[O] <= 0), s && X.push(V[L] <= 0, V[H] <= 0), X.every(function(N) {
10422
10422
  return N;
10423
10423
  })) {
10424
- M = P, T = !1;
10424
+ P = M, T = !1;
10425
10425
  break;
10426
10426
  }
10427
- m.set(P, X);
10427
+ m.set(M, X);
10428
10428
  }
10429
10429
  if (T)
10430
10430
  for (var $ = b ? 3 : 1, J = function(U) {
@@ -10435,9 +10435,9 @@ function xv(e) {
10435
10435
  });
10436
10436
  });
10437
10437
  if (ne)
10438
- return M = ne, "break";
10438
+ return P = ne, "break";
10439
10439
  }, G = $; G > 0 && J(G) !== "break"; G--) ;
10440
- t.placement !== M && (t.modifiersData[n]._skip = !0, t.placement = M, t.reset = !0);
10440
+ t.placement !== P && (t.modifiersData[n]._skip = !0, t.placement = P, t.reset = !0);
10441
10441
  }
10442
10442
  }
10443
10443
  var Sv = {
@@ -10536,7 +10536,7 @@ function Mv(e) {
10536
10536
  rootBoundary: u,
10537
10537
  padding: f,
10538
10538
  altBoundary: p
10539
- }), S = Pr(t.placement), E = un(t.placement), x = !E, C = _s(S), w = Bv(C), m = t.modifiersData.popperOffsets, T = t.rects.reference, M = t.rects.popper, B = typeof y == "function" ? y(Object.assign({}, t.rects, { placement: t.placement })) : y, P = typeof B == "number" ? {
10539
+ }), S = Pr(t.placement), E = un(t.placement), x = !E, C = _s(S), w = Bv(C), m = t.modifiersData.popperOffsets, T = t.rects.reference, P = t.rects.popper, B = typeof y == "function" ? y(Object.assign({}, t.rects, { placement: t.placement })) : y, M = typeof B == "number" ? {
10540
10540
  mainAxis: B,
10541
10541
  altAxis: B
10542
10542
  } : Object.assign({
@@ -10548,14 +10548,14 @@ function Mv(e) {
10548
10548
  };
10549
10549
  if (m) {
10550
10550
  if (i) {
10551
- var R, F = C === "y" ? "top" : Gr, V = C === "y" ? Yr : Ao, L = C === "y" ? "height" : "width", H = m[C], X = H + h[F], $ = H - h[V], J = A ? -M[L] / 2 : 0, G = E === "start" ? T[L] : M[L], N = E === "start" ? -M[L] : -T[L], U = t.elements.arrow, ne = A && U ? $s(U) : {
10551
+ var R, F = C === "y" ? "top" : Gr, V = C === "y" ? Yr : Ao, L = C === "y" ? "height" : "width", H = m[C], X = H + h[F], $ = H - h[V], J = A ? -P[L] / 2 : 0, G = E === "start" ? T[L] : P[L], N = E === "start" ? -P[L] : -T[L], U = t.elements.arrow, ne = A && U ? $s(U) : {
10552
10552
  width: 0,
10553
10553
  height: 0
10554
- }, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Cf(), Y = Z[F], pe = Z[V], ue = Nn(0, T[L], ne[L]), ee = x ? T[L] / 2 - J - ue - Y - P.mainAxis : G - ue - Y - P.mainAxis, oe = x ? -T[L] / 2 + J + ue + pe + P.mainAxis : N + ue + pe + P.mainAxis, re = t.elements.arrow && da(t.elements.arrow), ie = re ? C === "y" ? re.clientTop || 0 : re.clientLeft || 0 : 0, D = (R = O?.[C]) != null ? R : 0, j = H + ee - D - ie, se = H + oe - D, ve = Nn(A ? $a(X, j) : X, H, A ? wo($, se) : $);
10554
+ }, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Cf(), Y = Z[F], pe = Z[V], ue = Nn(0, T[L], ne[L]), ee = x ? T[L] / 2 - J - ue - Y - M.mainAxis : G - ue - Y - M.mainAxis, oe = x ? -T[L] / 2 + J + ue + pe + M.mainAxis : N + ue + pe + M.mainAxis, re = t.elements.arrow && da(t.elements.arrow), ie = re ? C === "y" ? re.clientTop || 0 : re.clientLeft || 0 : 0, D = (R = O?.[C]) != null ? R : 0, j = H + ee - D - ie, se = H + oe - D, ve = Nn(A ? $a(X, j) : X, H, A ? wo($, se) : $);
10555
10555
  m[C] = ve, g[C] = ve - H;
10556
10556
  }
10557
10557
  if (s) {
10558
- var de, ke = C === "x" ? "top" : Gr, Re = C === "x" ? Yr : Ao, Qe = m[w], We = w === "y" ? "height" : "width", _ = Qe + h[ke], ct = Qe - h[Re], ye = ["top", Gr].indexOf(S) !== -1, vt = (de = O?.[w]) != null ? de : 0, $e = ye ? _ : Qe - T[We] - M[We] - vt + P.altAxis, ot = ye ? Qe + T[We] + M[We] - vt - P.altAxis : ct, it = A && ye ? rv($e, Qe, ot) : Nn(A ? $e : _, Qe, A ? ot : ct);
10558
+ var de, ke = C === "x" ? "top" : Gr, Re = C === "x" ? Yr : Ao, Qe = m[w], We = w === "y" ? "height" : "width", _ = Qe + h[ke], ct = Qe - h[Re], ye = ["top", Gr].indexOf(S) !== -1, vt = (de = O?.[w]) != null ? de : 0, $e = ye ? _ : Qe - T[We] - P[We] - vt + M.altAxis, ot = ye ? Qe + T[We] + P[We] - vt - M.altAxis : ct, it = A && ye ? rv($e, Qe, ot) : Nn(A ? $e : _, Qe, A ? ot : ct);
10559
10559
  m[w] = it, g[w] = it - Qe;
10560
10560
  }
10561
10561
  t.modifiersData[n] = g;
@@ -10691,18 +10691,18 @@ function qv(e) {
10691
10691
  p.rects = {
10692
10692
  reference: Nv(E, da(x), p.options.strategy === "fixed"),
10693
10693
  popper: $s(x)
10694
- }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(P) {
10695
- return p.modifiersData[P.name] = Object.assign({}, P.data);
10694
+ }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(M) {
10695
+ return p.modifiersData[M.name] = Object.assign({}, M.data);
10696
10696
  });
10697
10697
  for (var C = 0; C < p.orderedModifiers.length; C++) {
10698
10698
  if (p.reset === !0) {
10699
10699
  p.reset = !1, C = -1;
10700
10700
  continue;
10701
10701
  }
10702
- var w = p.orderedModifiers[C], m = w.fn, T = w.options, M = T === void 0 ? {} : T, B = w.name;
10702
+ var w = p.orderedModifiers[C], m = w.fn, T = w.options, P = T === void 0 ? {} : T, B = w.name;
10703
10703
  typeof m == "function" && (p = m({
10704
10704
  state: p,
10705
- options: M,
10705
+ options: P,
10706
10706
  name: B,
10707
10707
  instance: A
10708
10708
  }) || p);
@@ -10837,15 +10837,15 @@ var Zv = (e) => {
10837
10837
  Lr(() => {
10838
10838
  w.current = C;
10839
10839
  }, [C]), I.useImperativeHandle(f, () => x.current, []);
10840
- const m = Gv(u, i), [T, M] = I.useState(m), [B, P] = I.useState(_a(n));
10840
+ const m = Gv(u, i), [T, P] = I.useState(m), [B, M] = I.useState(_a(n));
10841
10841
  I.useEffect(() => {
10842
10842
  x.current && x.current.forceUpdate();
10843
10843
  }), I.useEffect(() => {
10844
- n && P(_a(n));
10844
+ n && M(_a(n));
10845
10845
  }, [n]), Lr(() => {
10846
10846
  if (!B || !c) return;
10847
10847
  const F = (X) => {
10848
- M(X.placement);
10848
+ P(X.placement);
10849
10849
  };
10850
10850
  if (process.env.NODE_ENV !== "production" && B && Ui(B) && B.nodeType === 1) {
10851
10851
  const X = B.getBoundingClientRect();
@@ -10924,10 +10924,10 @@ var Zv = (e) => {
10924
10924
  let T;
10925
10925
  if (i) T = i;
10926
10926
  else if (n) {
10927
- const P = _a(n);
10928
- T = P && Ui(P) ? Fr(P).body : Fr(null).body;
10927
+ const M = _a(n);
10928
+ T = M && Ui(M) ? Fr(M).body : Fr(null).body;
10929
10929
  }
10930
- const M = !p && c && (!y || x) ? "none" : void 0, B = y ? {
10930
+ const P = !p && c && (!y || x) ? "none" : void 0, B = y ? {
10931
10931
  in: p,
10932
10932
  onEnter: w,
10933
10933
  onExited: m
@@ -10952,7 +10952,7 @@ var Zv = (e) => {
10952
10952
  position: "fixed",
10953
10953
  top: 0,
10954
10954
  left: 0,
10955
- display: M,
10955
+ display: P,
10956
10956
  ...b
10957
10957
  },
10958
10958
  TransitionProps: B,
@@ -11407,7 +11407,7 @@ var Io = /* @__PURE__ */ I.forwardRef(function(t, r) {
11407
11407
  const n = Ve({
11408
11408
  props: t,
11409
11409
  name: "MuiTooltip"
11410
- }), { arrow: a = !1, children: i, classes: l, components: s = {}, componentsProps: c = {}, describeChild: u = !1, disableFocusListener: p = !1, disableHoverListener: f = !1, disableInteractive: v = !1, disableTouchListener: A = !1, enterDelay: b = 100, enterNextDelay: y = 0, enterTouchDelay: h = 700, followCursor: S = !1, id: E, leaveDelay: x = 0, leaveTouchDelay: C = 1500, onClose: w, onOpen: m, open: T, placement: M = "bottom", PopperComponent: B, PopperProps: P = {}, slotProps: O = {}, slots: g = {}, title: R, TransitionComponent: F, TransitionProps: V, ...L } = n, H = /* @__PURE__ */ I.isValidElement(i) ? i : /* @__PURE__ */ Q("span", { children: i }), X = gn(), $ = Qs(), [J, G] = I.useState(), [N, U] = I.useState(null), ne = I.useRef(!1), Z = v || S, Y = Xo(), pe = Xo(), ue = Xo(), ee = Xo(), [oe, re] = Xl({
11410
+ }), { arrow: a = !1, children: i, classes: l, components: s = {}, componentsProps: c = {}, describeChild: u = !1, disableFocusListener: p = !1, disableHoverListener: f = !1, disableInteractive: v = !1, disableTouchListener: A = !1, enterDelay: b = 100, enterNextDelay: y = 0, enterTouchDelay: h = 700, followCursor: S = !1, id: E, leaveDelay: x = 0, leaveTouchDelay: C = 1500, onClose: w, onOpen: m, open: T, placement: P = "bottom", PopperComponent: B, PopperProps: M = {}, slotProps: O = {}, slots: g = {}, title: R, TransitionComponent: F, TransitionProps: V, ...L } = n, H = /* @__PURE__ */ I.isValidElement(i) ? i : /* @__PURE__ */ Q("span", { children: i }), X = gn(), $ = Qs(), [J, G] = I.useState(), [N, U] = I.useState(null), ne = I.useRef(!1), Z = v || S, Y = Xo(), pe = Xo(), ue = Xo(), ee = Xo(), [oe, re] = Xl({
11411
11411
  controlled: T,
11412
11412
  default: !1,
11413
11413
  name: "Tooltip",
@@ -11513,7 +11513,7 @@ var Io = /* @__PURE__ */ I.forwardRef(function(t, r) {
11513
11513
  isRtl: $,
11514
11514
  arrow: a,
11515
11515
  disableInteractive: Z,
11516
- placement: M,
11516
+ placement: P,
11517
11517
  PopperComponentProp: B,
11518
11518
  touch: ne.current
11519
11519
  }, De = typeof O.popper == "function" ? O.popper(Je) : O.popper, Be = I.useMemo(() => {
@@ -11525,16 +11525,16 @@ var Io = /* @__PURE__ */ I.forwardRef(function(t, r) {
11525
11525
  padding: 4
11526
11526
  }
11527
11527
  }];
11528
- return P.popperOptions?.modifiers && (xe = xe.concat(P.popperOptions.modifiers)), De?.popperOptions?.modifiers && (xe = xe.concat(De.popperOptions.modifiers)), {
11529
- ...P.popperOptions,
11528
+ return M.popperOptions?.modifiers && (xe = xe.concat(M.popperOptions.modifiers)), De?.popperOptions?.modifiers && (xe = xe.concat(De.popperOptions.modifiers)), {
11529
+ ...M.popperOptions,
11530
11530
  ...De?.popperOptions,
11531
11531
  modifiers: xe
11532
11532
  };
11533
11533
  }, [
11534
11534
  N,
11535
- P.popperOptions,
11535
+ M.popperOptions,
11536
11536
  De?.popperOptions
11537
- ]), lt = tb(Je), rr = typeof O.transition == "function" ? O.transition(Je) : O.transition, Xe = {
11537
+ ]), lt = tb(Je), rr = typeof O.transition == "function" ? O.transition(Je) : O.transition, Ze = {
11538
11538
  slots: {
11539
11539
  popper: s.Popper,
11540
11540
  transition: s.Transition ?? F,
@@ -11545,7 +11545,7 @@ var Io = /* @__PURE__ */ I.forwardRef(function(t, r) {
11545
11545
  slotProps: {
11546
11546
  arrow: O.arrow ?? c.arrow,
11547
11547
  popper: {
11548
- ...P,
11548
+ ...M,
11549
11549
  ...De ?? c.popper
11550
11550
  },
11551
11551
  tooltip: O.tooltip ?? c.tooltip,
@@ -11556,28 +11556,28 @@ var Io = /* @__PURE__ */ I.forwardRef(function(t, r) {
11556
11556
  }
11557
11557
  }, [At, me] = Ke("popper", {
11558
11558
  elementType: rb,
11559
- externalForwardedProps: Xe,
11559
+ externalForwardedProps: Ze,
11560
11560
  ownerState: Je,
11561
- className: ge(lt.popper, P?.className)
11561
+ className: ge(lt.popper, M?.className)
11562
11562
  }), [Ee, Ce] = Ke("transition", {
11563
11563
  elementType: Oo,
11564
- externalForwardedProps: Xe,
11564
+ externalForwardedProps: Ze,
11565
11565
  ownerState: Je
11566
- }), [Ie, Ze] = Ke("tooltip", {
11566
+ }), [we, Ge] = Ke("tooltip", {
11567
11567
  elementType: ob,
11568
11568
  className: lt.tooltip,
11569
- externalForwardedProps: Xe,
11569
+ externalForwardedProps: Ze,
11570
11570
  ownerState: Je
11571
11571
  }), [nt, Qt] = Ke("arrow", {
11572
11572
  elementType: nb,
11573
11573
  className: lt.arrow,
11574
- externalForwardedProps: Xe,
11574
+ externalForwardedProps: Ze,
11575
11575
  ownerState: Je,
11576
11576
  ref: U
11577
11577
  });
11578
11578
  return /* @__PURE__ */ st(I.Fragment, { children: [/* @__PURE__ */ I.cloneElement(H, fe), /* @__PURE__ */ Q(At, {
11579
11579
  as: B ?? ca,
11580
- placement: M,
11580
+ placement: P,
11581
11581
  anchorEl: S ? { getBoundingClientRect: () => ({
11582
11582
  top: wn.y,
11583
11583
  left: wn.x,
@@ -11597,8 +11597,8 @@ var Io = /* @__PURE__ */ I.forwardRef(function(t, r) {
11597
11597
  timeout: X.transitions.duration.shorter,
11598
11598
  ...xe,
11599
11599
  ...Ce,
11600
- children: /* @__PURE__ */ st(Ie, {
11601
- ...Ze,
11600
+ children: /* @__PURE__ */ st(we, {
11601
+ ...Ge,
11602
11602
  children: [R, a ? /* @__PURE__ */ Q(nt, { ...Qt }) : null]
11603
11603
  })
11604
11604
  })
@@ -11744,7 +11744,7 @@ var ab = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
11744
11744
  slot: "downVoteButton",
11745
11745
  value: "down"
11746
11746
  }], cb = ({ content: e, onVote: t, labels: r, slotProps: n, vote: a = null, dataTestId: i = "assistantReplyActions" }) => {
11747
- const { t: l } = kt(), [s, c] = we(!1), u = r?.copy ?? l("copy"), p = async () => {
11747
+ const { t: l } = kt(), [s, c] = Ie(!1), u = r?.copy ?? l("copy"), p = async () => {
11748
11748
  try {
11749
11749
  await navigator.clipboard.writeText(e), c(!0);
11750
11750
  } catch {
@@ -11806,7 +11806,7 @@ var ab = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
11806
11806
  36,
11807
11807
  0.22
11808
11808
  ]], Cc = "#FFC9A8", Al = (e, t) => t.map(([r, n, a]) => `0 0 ${r}px ${n}px ${zt(e, a)}`).join(", "), fb = ({ anchor: e, blocking: t = !1, onWindowClick: r, dataTestId: n = "assistantSpotlight" }) => {
11809
- const [a, i] = we(() => e.getBoundingClientRect()), l = Ue(() => i(e.getBoundingClientRect()), [e]);
11809
+ const [a, i] = Ie(() => e.getBoundingClientRect()), l = Ue(() => i(e.getBoundingClientRect()), [e]);
11810
11810
  return gt(() => {
11811
11811
  l();
11812
11812
  const s = window.setInterval(l, ub);
@@ -12181,7 +12181,7 @@ var yb = (e, t) => {
12181
12181
  height: t,
12182
12182
  sx: r
12183
12183
  }), xb = ({ src: e, isLoading: t, secondarySrc: r, secondaryAvatarProps: n, sx: a, secondaryTitle: i, width: l = 64, height: s = 64, alt: c = "Article" }) => {
12184
- const [u, p] = we(!1), [f, v] = we(!1), { borderRadius: A, padding: b } = yb(l, s), y = {
12184
+ const [u, p] = Ie(!1), [f, v] = Ie(!1), { borderRadius: A, padding: b } = yb(l, s), y = {
12185
12185
  borderRadius: A,
12186
12186
  flexShrink: 0
12187
12187
  }, h = e && !u && !f || t, S = !e || f && !t, E = e?.endsWith(".png") || e?.endsWith(".svg") || e?.endsWith(".gif") || e?.endsWith(".webp"), x = () => {
@@ -12442,7 +12442,7 @@ var yb = (e, t) => {
12442
12442
  ...e,
12443
12443
  children: /* @__PURE__ */ d("path", { d: "M9.29 15.88 13.17 12 9.29 8.12a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42" })
12444
12444
  }), Mb = ({ text: e, children: t }) => {
12445
- const [r, n] = we("");
12445
+ const [r, n] = Ie("");
12446
12446
  return /* @__PURE__ */ d(Mt, {
12447
12447
  title: r,
12448
12448
  children: /* @__PURE__ */ d(W, {
@@ -13306,7 +13306,7 @@ var Of = /* @__PURE__ */ I.forwardRef(function(t, r) {
13306
13306
  ...y
13307
13307
  },
13308
13308
  ownerState: S
13309
- }), [M, B] = Ke("img", {
13309
+ }), [P, B] = Ke("img", {
13310
13310
  className: w.img,
13311
13311
  elementType: Yb,
13312
13312
  externalForwardedProps: {
@@ -13323,7 +13323,7 @@ var Of = /* @__PURE__ */ I.forwardRef(function(t, r) {
13323
13323
  sizes: f
13324
13324
  },
13325
13325
  ownerState: S
13326
- }), [P, O] = Ke("fallback", {
13326
+ }), [M, O] = Ke("fallback", {
13327
13327
  className: w.fallback,
13328
13328
  elementType: $b,
13329
13329
  externalForwardedProps: {
@@ -13333,7 +13333,7 @@ var Of = /* @__PURE__ */ I.forwardRef(function(t, r) {
13333
13333
  shouldForwardComponentProp: !0,
13334
13334
  ownerState: S
13335
13335
  });
13336
- return C ? h = /* @__PURE__ */ Q(M, { ...B }) : i || i === 0 ? h = i : x && a ? h = a[0] : h = /* @__PURE__ */ Q(P, { ...O }), /* @__PURE__ */ Q(m, {
13336
+ return C ? h = /* @__PURE__ */ Q(P, { ...B }) : i || i === 0 ? h = i : x && a ? h = a[0] : h = /* @__PURE__ */ Q(M, { ...O }), /* @__PURE__ */ Q(m, {
13337
13337
  ...T,
13338
13338
  children: h
13339
13339
  });
@@ -13414,9 +13414,9 @@ var t3 = Pe("MuiAvatarGroup", ["root", "avatar"]), gl = {
13414
13414
  `)), /* @__PURE__ */ I.isValidElement(O))), C = A || x.length;
13415
13415
  C === h && (h += 1), h = Math.min(C + 1, h);
13416
13416
  const w = Math.min(x.length, h - 1), m = Math.max(C - h, C - w, 0), T = u ? u(m) : `+${m}`;
13417
- let M;
13418
- S.spacing && gl[S.spacing] !== void 0 ? M = gl[S.spacing] : S.spacing === 0 ? M = 0 : M = -S.spacing || gl.medium;
13419
- const [B, P] = Ke("surplus", {
13417
+ let P;
13418
+ S.spacing && gl[S.spacing] !== void 0 ? P = gl[S.spacing] : S.spacing === 0 ? P = 0 : P = -S.spacing || gl.medium;
13419
+ const [B, M] = Ke("surplus", {
13420
13420
  elementType: Of,
13421
13421
  externalForwardedProps: {
13422
13422
  slots: f,
@@ -13437,11 +13437,11 @@ var t3 = Pe("MuiAvatarGroup", ["root", "avatar"]), gl = {
13437
13437
  ref: r,
13438
13438
  ...y,
13439
13439
  style: {
13440
- "--AvatarGroup-spacing": `${M}px`,
13440
+ "--AvatarGroup-spacing": `${P}px`,
13441
13441
  ...y.style
13442
13442
  },
13443
13443
  children: [m ? /* @__PURE__ */ Q(B, {
13444
- ...P,
13444
+ ...M,
13445
13445
  children: T
13446
13446
  }) : null, x.slice(0, w).reverse().map((O) => /* @__PURE__ */ I.cloneElement(O, {
13447
13447
  className: ge(O.props.className, E.avatar),
@@ -13686,10 +13686,10 @@ var Ff = /* @__PURE__ */ I.forwardRef(function(t, r) {
13686
13686
  else if (w === "End")
13687
13687
  x.preventDefault(), In(C, null, u, c, kc);
13688
13688
  else if (w.length === 1) {
13689
- const T = b.current, M = w.toLowerCase(), B = performance.now();
13690
- T.keys.length > 0 && (B - T.lastTime > 500 ? (T.keys = [], T.repeating = !0, T.previousKeyMatched = !0) : T.repeating && M !== T.keys[0] && (T.repeating = !1)), T.lastTime = B, T.keys.push(M);
13691
- const P = m && !T.repeating && Lf(m, T);
13692
- T.previousKeyMatched && (P || In(C, m, !1, c, ml, T)) ? x.preventDefault() : T.previousKeyMatched = !1;
13689
+ const T = b.current, P = w.toLowerCase(), B = performance.now();
13690
+ T.keys.length > 0 && (B - T.lastTime > 500 ? (T.keys = [], T.repeating = !0, T.previousKeyMatched = !0) : T.repeating && P !== T.keys[0] && (T.repeating = !1)), T.lastTime = B, T.keys.push(P);
13691
+ const M = m && !T.repeating && Lf(m, T);
13692
+ T.previousKeyMatched && (M || In(C, m, !1, c, ml, T)) ? x.preventDefault() : T.previousKeyMatched = !1;
13693
13693
  }
13694
13694
  p && p(x);
13695
13695
  }, h = er(A, r);
@@ -13935,19 +13935,19 @@ function ri(e) {
13935
13935
  }, w = () => {
13936
13936
  const T = b.current;
13937
13937
  if (T === null) return;
13938
- const M = Zo(x);
13938
+ const P = Zo(x);
13939
13939
  if (!x.hasFocus() || !l() || c.current) {
13940
13940
  c.current = !1;
13941
13941
  return;
13942
13942
  }
13943
- if (Bc(T, M) || n && M !== u.current && M !== p.current) return;
13944
- if (M !== v.current) v.current = null;
13943
+ if (Bc(T, P) || n && P !== u.current && P !== p.current) return;
13944
+ if (P !== v.current) v.current = null;
13945
13945
  else if (v.current !== null) return;
13946
13946
  if (!A.current) return;
13947
13947
  let B = [];
13948
- if ((M === u.current || M === p.current) && (B = i(b.current)), B.length > 0) {
13949
- const P = !!(h.current?.shiftKey && h.current?.key === "Tab"), O = B[0], g = B[B.length - 1];
13950
- typeof O != "string" && typeof g != "string" && (P ? g.focus() : O.focus());
13948
+ if ((P === u.current || P === p.current) && (B = i(b.current)), B.length > 0) {
13949
+ const M = !!(h.current?.shiftKey && h.current?.key === "Tab"), O = B[0], g = B[B.length - 1];
13950
+ typeof O != "string" && typeof g != "string" && (M ? g.focus() : O.focus());
13951
13951
  } else T.focus();
13952
13952
  };
13953
13953
  x.addEventListener("focusin", w), x.addEventListener("keydown", C, !0);
@@ -14022,14 +14022,14 @@ var E3 = {
14022
14022
  easing: c
14023
14023
  }, { mode: "enter" });
14024
14024
  g.style.transition = n.transitions.create("opacity", F), p && p(g, R);
14025
- }), T = sr(x, f), M = sr(x, y), B = sr(x, (g) => {
14025
+ }), T = sr(x, f), P = sr(x, y), B = sr(x, (g) => {
14026
14026
  const R = Ya({
14027
14027
  style: h,
14028
14028
  timeout: S,
14029
14029
  easing: c
14030
14030
  }, { mode: "exit" });
14031
14031
  g.style.transition = n.transitions.create("opacity", R), A && A(g);
14032
- }), P = sr(x, (g) => {
14032
+ }), M = sr(x, (g) => {
14033
14033
  g.style.transition = "", b && b(g);
14034
14034
  });
14035
14035
  return /* @__PURE__ */ Q(Vr, {
@@ -14040,8 +14040,8 @@ var E3 = {
14040
14040
  onEntered: T,
14041
14041
  onEntering: w,
14042
14042
  onExit: B,
14043
- onExited: P,
14044
- onExiting: M,
14043
+ onExited: M,
14044
+ onExiting: P,
14045
14045
  addEndListener: (g) => {
14046
14046
  i && i(x.current, g);
14047
14047
  },
@@ -14199,7 +14199,7 @@ function B3(e) {
14199
14199
  }, m = Or(() => {
14200
14200
  const V = R3(t) || x().body;
14201
14201
  Ia.add(C(), V), A.current && w();
14202
- }), T = () => Ia.isTopModal(C()), M = Or((V) => {
14202
+ }), T = () => Ia.isTopModal(C()), P = Or((V) => {
14203
14203
  v.current = V, V && (u && T() ? w() : A.current && Qn(A.current, E));
14204
14204
  }), B = I.useCallback(() => {
14205
14205
  Ia.remove(C(), E);
@@ -14215,7 +14215,7 @@ function B3(e) {
14215
14215
  a,
14216
14216
  m
14217
14217
  ]);
14218
- const P = (V) => (L) => {
14218
+ const M = (V) => (L) => {
14219
14219
  V.onKeyDown?.(L), !(L.key !== "Escape" || L.which === 229 || !T()) && (r || (L.stopPropagation(), c && c(L, "escapeKeyDown")));
14220
14220
  }, O = (V) => (L) => {
14221
14221
  V.onClick?.(L), L.target === L.currentTarget && c && c(L, "backdropClick");
@@ -14231,7 +14231,7 @@ function B3(e) {
14231
14231
  return {
14232
14232
  role: "presentation",
14233
14233
  ...H,
14234
- onKeyDown: P(H),
14234
+ onKeyDown: M(H),
14235
14235
  ref: b
14236
14236
  };
14237
14237
  },
@@ -14256,7 +14256,7 @@ function B3(e) {
14256
14256
  };
14257
14257
  },
14258
14258
  rootRef: b,
14259
- portalRef: M,
14259
+ portalRef: P,
14260
14260
  isTopModal: T,
14261
14261
  exited: y,
14262
14262
  hasTransition: S
@@ -14300,7 +14300,7 @@ var r9 = Pe("MuiModal", [
14300
14300
  const n = Ve({
14301
14301
  name: "MuiModal",
14302
14302
  props: t
14303
- }), { BackdropComponent: a = F3, BackdropProps: i, classes: l, className: s, closeAfterTransition: c = !1, children: u, container: p, component: f, components: v = {}, componentsProps: A = {}, disableAutoFocus: b = !1, disableEnforceFocus: y = !1, disableEscapeKeyDown: h = !1, disablePortal: S = !1, disableRestoreFocus: E = !1, disableScrollLock: x = !1, hideBackdrop: C = !1, keepMounted: w = !1, onClose: m, onTransitionEnter: T, onTransitionExited: M, open: B, slotProps: P = {}, slots: O = {}, theme: g, ...R } = n, F = {
14303
+ }), { BackdropComponent: a = F3, BackdropProps: i, classes: l, className: s, closeAfterTransition: c = !1, children: u, container: p, component: f, components: v = {}, componentsProps: A = {}, disableAutoFocus: b = !1, disableEnforceFocus: y = !1, disableEscapeKeyDown: h = !1, disablePortal: S = !1, disableRestoreFocus: E = !1, disableScrollLock: x = !1, hideBackdrop: C = !1, keepMounted: w = !1, onClose: m, onTransitionEnter: T, onTransitionExited: P, open: B, slotProps: M = {}, slots: O = {}, theme: g, ...R } = n, F = {
14304
14304
  ...n,
14305
14305
  closeAfterTransition: c,
14306
14306
  disableAutoFocus: b,
@@ -14330,7 +14330,7 @@ var r9 = Pe("MuiModal", [
14330
14330
  },
14331
14331
  slotProps: {
14332
14332
  ...A,
14333
- ...P
14333
+ ...M
14334
14334
  }
14335
14335
  }, [Y, pe] = Ke("root", {
14336
14336
  ref: r,
@@ -14471,7 +14471,7 @@ var N3 = (e) => {
14471
14471
  }, anchorPosition: s, anchorReference: c = "anchorEl", children: u, className: p, container: f, elevation: v = 8, marginThreshold: A = 16, open: b, PaperProps: y = {}, slots: h = {}, slotProps: S = {}, transformOrigin: E = {
14472
14472
  vertical: "top",
14473
14473
  horizontal: "left"
14474
- }, TransitionComponent: x, transitionDuration: C = "auto", TransitionProps: w = {}, disableScrollLock: m = !1, ...T } = n, M = I.useRef(), B = {
14474
+ }, TransitionComponent: x, transitionDuration: C = "auto", TransitionProps: w = {}, disableScrollLock: m = !1, ...T } = n, P = I.useRef(), B = {
14475
14475
  ...n,
14476
14476
  anchorOrigin: l,
14477
14477
  anchorReference: c,
@@ -14481,10 +14481,10 @@ var N3 = (e) => {
14481
14481
  TransitionComponent: x,
14482
14482
  transitionDuration: C,
14483
14483
  TransitionProps: w
14484
- }, P = N3(B), O = I.useCallback(() => {
14484
+ }, M = N3(B), O = I.useCallback(() => {
14485
14485
  if (c === "anchorPosition")
14486
14486
  return process.env.NODE_ENV !== "production" && (s || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), s;
14487
- const oe = Ln(i), re = oe && oe.nodeType === 1 ? oe : $n(M.current).body, ie = re.getBoundingClientRect();
14487
+ const oe = Ln(i), re = oe && oe.nodeType === 1 ? oe : $n(P.current).body, ie = re.getBoundingClientRect();
14488
14488
  if (process.env.NODE_ENV !== "production") {
14489
14489
  const D = re.getBoundingClientRect();
14490
14490
  Qi() && D.top === 0 && D.left === 0 && D.right === 0 && D.bottom === 0 && console.warn([
@@ -14551,7 +14551,7 @@ var N3 = (e) => {
14551
14551
  g,
14552
14552
  A
14553
14553
  ]), [F, V] = I.useState(b), L = I.useCallback(() => {
14554
- const oe = M.current;
14554
+ const oe = P.current;
14555
14555
  if (!oe) return;
14556
14556
  const re = R(oe);
14557
14557
  re.top !== null && oe.style.setProperty("top", re.top), re.left !== null && (oe.style.left = re.left), oe.style.transformOrigin = re.transformOrigin, V(!0);
@@ -14628,10 +14628,10 @@ var N3 = (e) => {
14628
14628
  open: b
14629
14629
  },
14630
14630
  ownerState: B,
14631
- className: ge(P.root, p)
14631
+ className: ge(M.root, p)
14632
14632
  }), [ue, ee] = Ke("paper", {
14633
- ref: M,
14634
- className: P.paper,
14633
+ ref: P,
14634
+ className: M.paper,
14635
14635
  elementType: Nf,
14636
14636
  externalForwardedProps: J,
14637
14637
  shouldForwardComponentProp: !0,
@@ -14802,9 +14802,9 @@ var n9 = Pe("MuiMenu", [
14802
14802
  transitionDuration: A,
14803
14803
  TransitionProps: y,
14804
14804
  variant: h
14805
- }, m = q3(w), T = a && !s && p, M = I.useRef(null), B = ($, J) => {
14806
- M.current && M.current.adjustStyleForScrollbar($, { direction: C ? "rtl" : "ltr" }), b && b($, J);
14807
- }, P = ($) => {
14805
+ }, m = q3(w), T = a && !s && p, P = I.useRef(null), B = ($, J) => {
14806
+ P.current && P.current.adjustStyleForScrollbar($, { direction: C ? "rtl" : "ltr" }), b && b($, J);
14807
+ }, M = ($) => {
14808
14808
  $.key === "Tab" && ($.preventDefault(), u && u($, "tabKeyDown"));
14809
14809
  };
14810
14810
  let O = -1;
@@ -14839,7 +14839,7 @@ var n9 = Pe("MuiMenu", [
14839
14839
  getSlotProps: ($) => ({
14840
14840
  ...$,
14841
14841
  onKeyDown: (J) => {
14842
- P(J), $.onKeyDown?.(J);
14842
+ M(J), $.onKeyDown?.(J);
14843
14843
  }
14844
14844
  }),
14845
14845
  ownerState: w
@@ -14875,7 +14875,7 @@ var n9 = Pe("MuiMenu", [
14875
14875
  ...x,
14876
14876
  classes: v,
14877
14877
  children: /* @__PURE__ */ Q(L, {
14878
- actions: M,
14878
+ actions: P,
14879
14879
  autoFocus: a && (O === -1 || s),
14880
14880
  autoFocusItem: T,
14881
14881
  variant: h,
@@ -15013,12 +15013,12 @@ var Yo = Pe("MuiListItemText", [
15013
15013
  },
15014
15014
  ownerState: E,
15015
15015
  ref: r
15016
- }), [T, M] = Ke("primary", {
15016
+ }), [T, P] = Ke("primary", {
15017
15017
  className: x.primary,
15018
15018
  elementType: qe,
15019
15019
  externalForwardedProps: C,
15020
15020
  ownerState: E
15021
- }), [B, P] = Ke("secondary", {
15021
+ }), [B, M] = Ke("secondary", {
15022
15022
  className: x.secondary,
15023
15023
  elementType: qe,
15024
15024
  externalForwardedProps: C,
@@ -15026,13 +15026,13 @@ var Yo = Pe("MuiListItemText", [
15026
15026
  });
15027
15027
  return h != null && h.type !== qe && !l && (h = /* @__PURE__ */ Q(T, {
15028
15028
  variant: y ? "body2" : "body1",
15029
- component: M?.variant ? void 0 : "span",
15030
- ...M,
15029
+ component: P?.variant ? void 0 : "span",
15030
+ ...P,
15031
15031
  children: h
15032
15032
  })), S != null && S.type !== qe && !l && (S = /* @__PURE__ */ Q(B, {
15033
15033
  variant: "body2",
15034
15034
  color: "textSecondary",
15035
- ...P,
15035
+ ...M,
15036
15036
  children: S
15037
15037
  })), /* @__PURE__ */ st(w, {
15038
15038
  ...m,
@@ -15332,7 +15332,7 @@ var ny = sd.Provider, Vc, ay = ae(Qf, {
15332
15332
  nativeInput: ["nativeInput"]
15333
15333
  }, qf, t);
15334
15334
  }, jf = /* @__PURE__ */ I.forwardRef(function(t, r) {
15335
- const { "aria-describedby": n, "aria-label": a, autoFocus: i, autoWidth: l, children: s, className: c, defaultOpen: u, defaultValue: p, disabled: f, displayEmpty: v, error: A = !1, IconComponent: b, inputRef: y, labelId: h, MenuProps: S = {}, multiple: E, name: x, onBlur: C, onChange: w, onClose: m, onFocus: T, onKeyDown: M, onMouseDown: B, onOpen: P, open: O, readOnly: g, renderValue: R, required: F, SelectDisplayProps: V = {}, tabIndex: L, type: H, value: X, variant: $ = "standard", ...J } = t, [G, N] = Xl({
15335
+ const { "aria-describedby": n, "aria-label": a, autoFocus: i, autoWidth: l, children: s, className: c, defaultOpen: u, defaultValue: p, disabled: f, displayEmpty: v, error: A = !1, IconComponent: b, inputRef: y, labelId: h, MenuProps: S = {}, multiple: E, name: x, onBlur: C, onChange: w, onClose: m, onFocus: T, onKeyDown: P, onMouseDown: B, onOpen: M, open: O, readOnly: g, renderValue: R, required: F, SelectDisplayProps: V = {}, tabIndex: L, type: H, value: X, variant: $ = "standard", ...J } = t, [G, N] = Xl({
15336
15336
  controlled: X,
15337
15337
  default: p,
15338
15338
  name: "Select"
@@ -15380,7 +15380,7 @@ var ny = sd.Provider, Vc, ay = ae(Qf, {
15380
15380
  }
15381
15381
  }, [h]);
15382
15382
  const ke = (me, Ee) => {
15383
- me ? (D(ty(Ee)), P && P(Ee)) : (D(null), m && m(Ee)), ee || (re(l ? null : ve.clientWidth), ne(me));
15383
+ me ? (D(ty(Ee)), M && M(Ee)) : (D(null), m && m(Ee)), ee || (re(l ? null : ve.clientWidth), ne(me));
15384
15384
  }, Re = (me) => {
15385
15385
  B?.(me), me.button === 0 && (me.preventDefault(), Y.current.focus(), ke(!0, me));
15386
15386
  }, Qe = (me) => {
@@ -15393,18 +15393,18 @@ var ny = sd.Provider, Vc, ay = ae(Qf, {
15393
15393
  if (Ee.currentTarget.hasAttribute("tabindex")) {
15394
15394
  if (E) {
15395
15395
  Ce = Array.isArray(G) ? G.slice() : [];
15396
- const Ie = G.indexOf(me.props.value);
15397
- Ie === -1 ? Ce.push(me.props.value) : Ce.splice(Ie, 1);
15396
+ const we = G.indexOf(me.props.value);
15397
+ we === -1 ? Ce.push(me.props.value) : Ce.splice(we, 1);
15398
15398
  } else Ce = me.props.value;
15399
15399
  if (me.props.onClick && me.props.onClick(Ee), G !== Ce && (N(Ce), w)) {
15400
- const Ie = Ee.nativeEvent || Ee, Ze = new Ie.constructor(Ie.type, Ie);
15401
- Object.defineProperty(Ze, "target", {
15400
+ const we = Ee.nativeEvent || Ee, Ge = new we.constructor(we.type, we);
15401
+ Object.defineProperty(Ge, "target", {
15402
15402
  writable: !0,
15403
15403
  value: {
15404
15404
  value: Ce,
15405
15405
  name: x
15406
15406
  }
15407
- }), w(Ze, me);
15407
+ }), w(Ge, me);
15408
15408
  }
15409
15409
  E || ke(!1, Ee);
15410
15410
  }
@@ -15414,7 +15414,7 @@ var ny = sd.Provider, Vc, ay = ae(Qf, {
15414
15414
  "ArrowUp",
15415
15415
  "ArrowDown",
15416
15416
  "Enter"
15417
- ].includes(me.key) && (me.preventDefault(), ke(!0, me)), M?.(me));
15417
+ ].includes(me.key) && (me.preventDefault(), ke(!0, me)), P?.(me));
15418
15418
  }, vt = (me) => {
15419
15419
  !de && C && (Object.defineProperty(me, "target", {
15420
15420
  writable: !0,
@@ -15481,7 +15481,7 @@ var ny = sd.Provider, Vc, ay = ae(Qf, {
15481
15481
  }, lt = sy(Be), rr = {
15482
15482
  ...S.PaperProps,
15483
15483
  ...typeof S.slotProps?.paper == "function" ? S.slotProps.paper(Be) : S.slotProps?.paper
15484
- }, Xe = {
15484
+ }, Ze = {
15485
15485
  ...S.MenuListProps,
15486
15486
  ...typeof S.slotProps?.list == "function" ? S.slotProps.list(Be) : S.slotProps?.list
15487
15487
  }, At = la();
@@ -15558,7 +15558,7 @@ var ny = sd.Provider, Vc, ay = ae(Qf, {
15558
15558
  "aria-multiselectable": E ? "true" : void 0,
15559
15559
  disableListWrap: !0,
15560
15560
  id: At,
15561
- ...Xe
15561
+ ...Ze
15562
15562
  },
15563
15563
  paper: {
15564
15564
  ...rr,
@@ -15650,12 +15650,12 @@ var zf = /* @__PURE__ */ I.forwardRef(function(t, r) {
15650
15650
  };
15651
15651
  C.style.width = w.width, C.value = x.value || t.placeholder || "x", C.value.slice(-1) === `
15652
15652
  ` && (C.value += " ");
15653
- const m = w.boxSizing, T = Ta(w.paddingBottom) + Ta(w.paddingTop), M = Ta(w.borderBottomWidth) + Ta(w.borderTopWidth), B = C.scrollHeight;
15653
+ const m = w.boxSizing, T = Ta(w.paddingBottom) + Ta(w.paddingTop), P = Ta(w.borderBottomWidth) + Ta(w.borderTopWidth), B = C.scrollHeight;
15654
15654
  C.value = "x";
15655
- const P = C.scrollHeight;
15655
+ const M = C.scrollHeight;
15656
15656
  let O = B;
15657
- return i && (O = Math.max(Number(i) * P, O)), a && (O = Math.min(Number(a) * P, O)), O = Math.max(O, P), {
15658
- outerHeightStyle: O + (m === "border-box" ? T + M : 0),
15657
+ return i && (O = Math.max(Number(i) * M, O)), a && (O = Math.min(Number(a) * M, O)), O = Math.max(O, M), {
15658
+ outerHeightStyle: O + (m === "border-box" ? T + P : 0),
15659
15659
  overflowing: Math.abs(O - B) <= 1
15660
15660
  };
15661
15661
  }, [
@@ -15923,7 +15923,7 @@ var Jt = Pe("MuiInputBase", [
15923
15923
  const n = Ve({
15924
15924
  props: t,
15925
15925
  name: "MuiInputBase"
15926
- }), { "aria-describedby": a, autoComplete: i, autoFocus: l, className: s, color: c, components: u = {}, componentsProps: p = {}, defaultValue: f, disabled: v, disableInjectingGlobalStyles: A, endAdornment: b, error: y, fullWidth: h = !1, id: S, inputComponent: E = "input", inputProps: x = {}, inputRef: C, margin: w, maxRows: m, minRows: T, multiline: M = !1, name: B, onBlur: P, onChange: O, onClick: g, onFocus: R, onKeyDown: F, onKeyUp: V, placeholder: L, readOnly: H, renderSuffix: X, rows: $, size: J, slotProps: G = {}, slots: N = {}, startAdornment: U, type: ne = "text", value: Z, ...Y } = n, pe = x.value != null ? x.value : Z, { current: ue } = I.useRef(pe != null), ee = I.useRef(), oe = I.useCallback((fe) => {
15926
+ }), { "aria-describedby": a, autoComplete: i, autoFocus: l, className: s, color: c, components: u = {}, componentsProps: p = {}, defaultValue: f, disabled: v, disableInjectingGlobalStyles: A, endAdornment: b, error: y, fullWidth: h = !1, id: S, inputComponent: E = "input", inputProps: x = {}, inputRef: C, margin: w, maxRows: m, minRows: T, multiline: P = !1, name: B, onBlur: M, onChange: O, onClick: g, onFocus: R, onKeyDown: F, onKeyUp: V, placeholder: L, readOnly: H, renderSuffix: X, rows: $, size: J, slotProps: G = {}, slots: N = {}, startAdornment: U, type: ne = "text", value: Z, ...Y } = n, pe = x.value != null ? x.value : Z, { current: ue } = I.useRef(pe != null), ee = I.useRef(), oe = I.useCallback((fe) => {
15927
15927
  process.env.NODE_ENV !== "production" && fe && fe.nodeName !== "INPUT" && !fe.focus && console.error([
15928
15928
  "MUI: You have provided a `inputComponent` to the input component",
15929
15929
  "that does not correctly handle the `ref` prop.",
@@ -15948,12 +15948,12 @@ var Jt = Pe("MuiInputBase", [
15948
15948
  ]
15949
15949
  });
15950
15950
  se.focused = j ? j.focused : ie, I.useEffect(() => {
15951
- !j && v && ie && (D(!1), P && P());
15951
+ !j && v && ie && (D(!1), M && M());
15952
15952
  }, [
15953
15953
  j,
15954
15954
  v,
15955
15955
  ie,
15956
- P
15956
+ M
15957
15957
  ]);
15958
15958
  const ve = j && j.onFilled, de = j && j.onEmpty, ke = I.useCallback((fe) => {
15959
15959
  ni(fe) ? ve && ve() : de && de();
@@ -15974,7 +15974,7 @@ var Jt = Pe("MuiInputBase", [
15974
15974
  const Re = (fe) => {
15975
15975
  R && R(fe), x.onFocus && x.onFocus(fe), j && j.onFocus ? j.onFocus(fe) : D(!0);
15976
15976
  }, Qe = (fe) => {
15977
- P && P(fe), x.onBlur && x.onBlur(fe), j && j.onBlur ? j.onBlur(fe) : D(!1);
15977
+ M && M(fe), x.onBlur && x.onBlur(fe), j && j.onBlur ? j.onBlur(fe) : D(!1);
15978
15978
  }, We = (fe, ...Fe) => {
15979
15979
  if (!ue) {
15980
15980
  const Je = fe.target || ee.current;
@@ -15990,7 +15990,7 @@ var Jt = Pe("MuiInputBase", [
15990
15990
  ee.current && fe.currentTarget === fe.target && ee.current.focus(), g && g(fe);
15991
15991
  };
15992
15992
  let ct = E, ye = x;
15993
- M && ct === "input" && ($ ? (process.env.NODE_ENV !== "production" && (T || m) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), ye = {
15993
+ P && ct === "input" && ($ ? (process.env.NODE_ENV !== "production" && (T || m) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), ye = {
15994
15994
  type: void 0,
15995
15995
  minRows: $,
15996
15996
  maxRows: $,
@@ -16017,7 +16017,7 @@ var Jt = Pe("MuiInputBase", [
16017
16017
  formControl: j,
16018
16018
  fullWidth: h,
16019
16019
  hiddenLabel: se.hiddenLabel,
16020
- multiline: M,
16020
+ multiline: P,
16021
16021
  size: se.size,
16022
16022
  startAdornment: U,
16023
16023
  type: ne
@@ -16937,11 +16937,11 @@ var ky = (e) => {
16937
16937
  const n = Ve({
16938
16938
  name: "MuiSelect",
16939
16939
  props: t
16940
- }), { autoWidth: a = !1, children: i, classes: l = {}, className: s, defaultOpen: c = !1, displayEmpty: u = !1, IconComponent: p = Kf, id: f, input: v, inputProps: A, label: b, labelId: y, MenuProps: h, multiple: S = !1, native: E = !1, onClose: x, onOpen: C, open: w, renderValue: m, SelectDisplayProps: T, variant: M = "outlined", ...B } = n, P = E ? Wf : jf, O = bn({
16940
+ }), { autoWidth: a = !1, children: i, classes: l = {}, className: s, defaultOpen: c = !1, displayEmpty: u = !1, IconComponent: p = Kf, id: f, input: v, inputProps: A, label: b, labelId: y, MenuProps: h, multiple: S = !1, native: E = !1, onClose: x, onOpen: C, open: w, renderValue: m, SelectDisplayProps: T, variant: P = "outlined", ...B } = n, M = E ? Wf : jf, O = bn({
16941
16941
  props: n,
16942
16942
  muiFormControl: Fo(),
16943
16943
  states: ["variant", "error"]
16944
- }), g = O.variant || M, R = {
16944
+ }), g = O.variant || P, R = {
16945
16945
  ...n,
16946
16946
  variant: g,
16947
16947
  classes: l
@@ -16954,7 +16954,7 @@ var ky = (e) => {
16954
16954
  filled: /* @__PURE__ */ Q(By, { ownerState: R })
16955
16955
  }[g], X = er(r, vn(H));
16956
16956
  return /* @__PURE__ */ Q(I.Fragment, { children: /* @__PURE__ */ I.cloneElement(H, {
16957
- inputComponent: P,
16957
+ inputComponent: M,
16958
16958
  inputProps: {
16959
16959
  children: i,
16960
16960
  error: O.error,
@@ -17352,7 +17352,7 @@ var Ny = ae(nd, {
17352
17352
  }), a = gn(), i = {
17353
17353
  enter: a.transitions.duration.enteringScreen,
17354
17354
  exit: a.transitions.duration.leavingScreen
17355
- }, { "aria-describedby": l, "aria-labelledby": s, "aria-modal": c = !0, BackdropComponent: u, BackdropProps: p, children: f, className: v, disableEscapeKeyDown: A = !1, fullScreen: b = !1, fullWidth: y = !1, maxWidth: h = "sm", onClick: S, onClose: E, open: x, PaperComponent: C = Qr, PaperProps: w = {}, role: m = "dialog", scroll: T = "paper", slots: M = {}, slotProps: B = {}, TransitionComponent: P = oi, transitionDuration: O = i, TransitionProps: g, ...R } = n, F = {
17355
+ }, { "aria-describedby": l, "aria-labelledby": s, "aria-modal": c = !0, BackdropComponent: u, BackdropProps: p, children: f, className: v, disableEscapeKeyDown: A = !1, fullScreen: b = !1, fullWidth: y = !1, maxWidth: h = "sm", onClick: S, onClose: E, open: x, PaperComponent: C = Qr, PaperProps: w = {}, role: m = "dialog", scroll: T = "paper", slots: P = {}, slotProps: B = {}, TransitionComponent: M = oi, transitionDuration: O = i, TransitionProps: g, ...R } = n, F = {
17356
17356
  ...n,
17357
17357
  disableEscapeKeyDown: A,
17358
17358
  fullScreen: b,
@@ -17365,8 +17365,8 @@ var Ny = ae(nd, {
17365
17365
  S && S(ie), L.current && (L.current = null, E && E(ie, "backdropClick"));
17366
17366
  }, $ = la(s), J = I.useMemo(() => ({ titleId: $ }), [$]), G = {
17367
17367
  slots: {
17368
- transition: P,
17369
- ...M
17368
+ transition: M,
17369
+ ...P
17370
17370
  },
17371
17371
  slotProps: {
17372
17372
  transition: g,
@@ -17699,7 +17699,7 @@ function Hc(e, t, r, n) {
17699
17699
  return typeof a == "string" ? a : "";
17700
17700
  }
17701
17701
  function a6(e) {
17702
- const { unstable_isActiveElementInListbox: t = o6, unstable_classNamePrefix: r = "Mui", autoComplete: n = !1, autoHighlight: a = !1, autoSelect: i = !1, blurOnSelect: l = !1, clearOnBlur: s = !e.freeSolo, clearOnEscape: c = !1, componentName: u = "useAutocomplete", defaultValue: p = e.multiple ? n6 : null, disableClearable: f = !1, disableCloseOnSelect: v = !1, disabled: A, disabledItemsFocusable: b = !1, disableListWrap: y = !1, filterOptions: h = t6, filterSelectedOptions: S = !1, freeSolo: E = !1, getOptionDisabled: x, getOptionKey: C, getOptionLabel: w = (q) => q.label ?? q, groupBy: m, handleHomeEndKeys: T = !e.freeSolo, id: M, includeInputInList: B = !1, inputValue: P, isOptionEqualToValue: O = zc, multiple: g = !1, onChange: R, onClose: F, onHighlightChange: V, onInputChange: L, onOpen: H, open: X, openOnFocus: $ = !1, options: J, readOnly: G = !1, renderValue: N, selectOnFocus: U = !e.freeSolo, value: ne } = e, Z = la(M);
17702
+ const { unstable_isActiveElementInListbox: t = o6, unstable_classNamePrefix: r = "Mui", autoComplete: n = !1, autoHighlight: a = !1, autoSelect: i = !1, blurOnSelect: l = !1, clearOnBlur: s = !e.freeSolo, clearOnEscape: c = !1, componentName: u = "useAutocomplete", defaultValue: p = e.multiple ? n6 : null, disableClearable: f = !1, disableCloseOnSelect: v = !1, disabled: A, disabledItemsFocusable: b = !1, disableListWrap: y = !1, filterOptions: h = t6, filterSelectedOptions: S = !1, freeSolo: E = !1, getOptionDisabled: x, getOptionKey: C, getOptionLabel: w = (q) => q.label ?? q, groupBy: m, handleHomeEndKeys: T = !e.freeSolo, id: P, includeInputInList: B = !1, inputValue: M, isOptionEqualToValue: O = zc, multiple: g = !1, onChange: R, onClose: F, onHighlightChange: V, onInputChange: L, onOpen: H, open: X, openOnFocus: $ = !1, options: J, readOnly: G = !1, renderValue: N, selectOnFocus: U = !e.freeSolo, value: ne } = e, Z = la(P);
17703
17703
  let Y = w;
17704
17704
  Y = (q) => {
17705
17705
  const K = w(q);
@@ -17717,7 +17717,7 @@ function a6(e) {
17717
17717
  default: p,
17718
17718
  name: u
17719
17719
  }), [ye, vt] = Da({
17720
- controlled: P,
17720
+ controlled: M,
17721
17721
  default: We,
17722
17722
  name: u,
17723
17723
  state: "inputValue"
@@ -17743,11 +17743,11 @@ function a6(e) {
17743
17743
  O,
17744
17744
  Be,
17745
17745
  lt
17746
- ]), Xe = De ? h(J.filter((q) => !(S && rr(q))), {
17746
+ ]), Ze = De ? h(J.filter((q) => !(S && rr(q))), {
17747
17747
  inputValue: Je && fe ? "" : ye,
17748
17748
  getOptionLabel: Y
17749
17749
  }) : [], At = _y({
17750
- filteredOptions: Xe,
17750
+ filteredOptions: Ze,
17751
17751
  value: _,
17752
17752
  inputValue: ye
17753
17753
  });
@@ -17761,7 +17761,7 @@ function a6(e) {
17761
17761
  At.value,
17762
17762
  E
17763
17763
  ]);
17764
- const me = Ae && Xe.length > 0 && !G, Ee = Or((q) => {
17764
+ const me = Ae && Ze.length > 0 && !G, Ee = Or((q) => {
17765
17765
  if (q === -1) ee.current.focus();
17766
17766
  else {
17767
17767
  const K = N ? "data-item-index" : "data-tag-index";
@@ -17777,15 +17777,15 @@ function a6(e) {
17777
17777
  Ee
17778
17778
  ]);
17779
17779
  function Ce(q, K) {
17780
- if (!oe.current || q < 0 || q >= Xe.length) return -1;
17780
+ if (!oe.current || q < 0 || q >= Ze.length) return -1;
17781
17781
  let ce = q;
17782
17782
  for (; ; ) {
17783
17783
  const Me = oe.current.querySelector(`[data-option-index="${ce}"]`), ze = b ? !1 : !Me || Me.disabled || Me.getAttribute("aria-disabled") === "true";
17784
17784
  if (Me && Me.hasAttribute("tabindex") && !ze) return ce;
17785
- if (K === "next" ? ce = (ce + 1) % Xe.length : ce = (ce - 1 + Xe.length) % Xe.length, ce === q) return -1;
17785
+ if (K === "next" ? ce = (ce + 1) % Ze.length : ce = (ce - 1 + Ze.length) % Ze.length, ce === q) return -1;
17786
17786
  }
17787
17787
  }
17788
- const Ie = Or(({ index: q, reason: K, preserveScroll: ce = !1 }) => {
17788
+ const we = Or(({ index: q, reason: K, preserveScroll: ce = !1 }) => {
17789
17789
  if (q === -1 ? ee.current.removeAttribute("aria-activedescendant") : ee.current.setAttribute("aria-activedescendant", `${Z}-option-${q}`), !oe.current) return;
17790
17790
  const Me = oe.current.querySelector(`[role="option"].${r}-focused`);
17791
17791
  Me && (Me.classList.remove(`${r}-focused`), Me.classList.remove(`${r}-focusVisible`));
@@ -17800,18 +17800,18 @@ function a6(e) {
17800
17800
  const pt = bt, St = ze.clientHeight + ze.scrollTop, fr = pt.offsetTop + pt.offsetHeight;
17801
17801
  fr > St ? ze.scrollTop = fr - ze.clientHeight : pt.offsetTop - pt.offsetHeight * (m ? 1.3 : 0) < ze.scrollTop && (ze.scrollTop = pt.offsetTop - pt.offsetHeight * (m ? 1.3 : 0));
17802
17802
  }
17803
- }), Ze = Or(({ event: q, index: K, reason: ce, preserveScroll: Me = !1 }) => {
17803
+ }), Ge = Or(({ event: q, index: K, reason: ce, preserveScroll: Me = !1 }) => {
17804
17804
  de.current = K, ke.current = ce ?? null, V && [
17805
17805
  "mouse",
17806
17806
  "keyboard",
17807
17807
  "touch"
17808
- ].includes(ce) && V(q, K === -1 ? null : Xe[K], ce), Ie({
17808
+ ].includes(ce) && V(q, K === -1 ? null : Ze[K], ce), we({
17809
17809
  index: K,
17810
17810
  reason: ce,
17811
17811
  preserveScroll: Me
17812
17812
  });
17813
17813
  }), nt = Or(({ index: q }) => {
17814
- de.current = q, Ie({
17814
+ de.current = q, we({
17815
17815
  index: q,
17816
17816
  reason: ke.current
17817
17817
  });
@@ -17819,36 +17819,36 @@ function a6(e) {
17819
17819
  if (!De) return;
17820
17820
  Me === "keyboard" && (Re.current = !1, Qe.current = !1);
17821
17821
  const pt = Ce((() => {
17822
- const St = Xe.length - 1;
17822
+ const St = Ze.length - 1;
17823
17823
  if (K === "reset") return ve;
17824
17824
  if (K === "start") return 0;
17825
17825
  if (K === "end") return St;
17826
17826
  const fr = de.current + K;
17827
17827
  return fr < 0 ? fr === -1 && B ? -1 : y && de.current !== -1 || Math.abs(K) > 1 ? 0 : St : fr > St ? fr === St + 1 && B ? -1 : y || Math.abs(K) > 1 ? St : 0 : fr;
17828
17828
  })(), ce);
17829
- if (Ze({
17829
+ if (Ge({
17830
17830
  index: pt,
17831
17831
  reason: Me,
17832
17832
  event: q,
17833
17833
  preserveScroll: ze
17834
17834
  }), n && K !== "reset") if (pt === -1) ee.current.value = ye;
17835
17835
  else {
17836
- const St = Y(Xe[pt]);
17836
+ const St = Y(Ze[pt]);
17837
17837
  ee.current.value = St, St.toLowerCase().indexOf(ye.toLowerCase()) === 0 && ye.length > 0 && ee.current.setSelectionRange(ye.length, St.length);
17838
17838
  }
17839
17839
  }), xe = !jc({
17840
17840
  array1: At.filteredOptions,
17841
- array2: Xe,
17841
+ array2: Ze,
17842
17842
  parser: Y
17843
17843
  }), ut = () => {
17844
17844
  const q = (K, ce) => (K ? Y(K) : "") === (ce ? Y(ce) : "");
17845
17845
  if (de.current !== -1 && !jc({
17846
17846
  array1: At.filteredOptions,
17847
- array2: Xe,
17847
+ array2: Ze,
17848
17848
  parser: Y
17849
17849
  }) && At.inputValue === ye && (g ? _.length === At.value.length && At.value.every((K, ce) => Y(_[ce]) === Y(K)) : q(At.value, _))) {
17850
17850
  const K = At.filteredOptions[de.current];
17851
- if (K) return Xe.findIndex((ce) => Y(ce) === Y(K));
17851
+ if (K) return Ze.findIndex((ce) => Y(ce) === Y(K));
17852
17852
  }
17853
17853
  return -1;
17854
17854
  }, Ur = I.useCallback(() => {
@@ -17859,35 +17859,35 @@ function a6(e) {
17859
17859
  return;
17860
17860
  }
17861
17861
  const K = g ? _[0] : _;
17862
- if (Xe.length === 0 || K == null) {
17862
+ if (Ze.length === 0 || K == null) {
17863
17863
  Qt({
17864
17864
  diff: "reset",
17865
- preserveScroll: xe && At.inputValue === ye && At.filteredOptions?.length > 0 && Xe.length > At.filteredOptions.length && At.filteredOptions.every((ce, Me) => Y(ce) === Y(Xe[Me]))
17865
+ preserveScroll: xe && At.inputValue === ye && At.filteredOptions?.length > 0 && Ze.length > At.filteredOptions.length && At.filteredOptions.every((ce, Me) => Y(ce) === Y(Ze[Me]))
17866
17866
  });
17867
17867
  return;
17868
17868
  }
17869
17869
  if (oe.current) {
17870
17870
  if (K != null) {
17871
- const ce = Xe[de.current];
17871
+ const ce = Ze[de.current];
17872
17872
  if (g && ce && _.findIndex((ze) => O(ce, ze)) !== -1 && At.filteredOptions?.length > 0) {
17873
17873
  nt({ index: de.current });
17874
17874
  return;
17875
17875
  }
17876
- const Me = Xe.findIndex((ze) => O(ze, K));
17877
- Me === -1 ? Qt({ diff: "reset" }) : Ze({ index: Me });
17876
+ const Me = Ze.findIndex((ze) => O(ze, K));
17877
+ Me === -1 ? Qt({ diff: "reset" }) : Ge({ index: Me });
17878
17878
  return;
17879
17879
  }
17880
- if (de.current >= Xe.length - 1) {
17881
- Ze({ index: Xe.length - 1 });
17880
+ if (de.current >= Ze.length - 1) {
17881
+ Ge({ index: Ze.length - 1 });
17882
17882
  return;
17883
17883
  }
17884
- Ze({ index: de.current });
17884
+ Ge({ index: de.current });
17885
17885
  }
17886
17886
  }, [
17887
- Xe.length,
17887
+ Ze.length,
17888
17888
  g ? !1 : _,
17889
17889
  Qt,
17890
- Ze,
17890
+ Ge,
17891
17891
  nt,
17892
17892
  De,
17893
17893
  ye,
@@ -18027,7 +18027,7 @@ function a6(e) {
18027
18027
  case "Enter": {
18028
18028
  const ce = !E || fe || ke.current !== null;
18029
18029
  if (de.current !== -1 && De && ce && !Re.current) {
18030
- const Me = Xe[de.current], ze = x ? x(Me) : !1;
18030
+ const Me = Ze[de.current], ze = x ? x(Me) : !1;
18031
18031
  if (K.preventDefault(), ze) return;
18032
18032
  ro(K, Me, "selectOption"), n && ee.current.setSelectionRange(ee.current.value.length, ee.current.value.length);
18033
18033
  } else E && ye !== "" && Je === !1 ? (g && K.preventDefault(), ro(K, ye, "createOption", "freeSolo")) : De && Re.current && (K.preventDefault(), Wr(K, "escape"));
@@ -18063,25 +18063,25 @@ function a6(e) {
18063
18063
  ee.current.focus();
18064
18064
  return;
18065
18065
  }
18066
- ot(!1), ue.current = !0, pe.current = !1, i && de.current !== -1 && De && ke.current !== "mouse" && ke.current !== "touch" ? ro(q, Xe[de.current], "blur") : i && E && ye !== "" ? ro(q, ye, "blur", "freeSolo") : s && it(q, _, "blur"), Wr(q, "blur");
18066
+ ot(!1), ue.current = !0, pe.current = !1, i && de.current !== -1 && De && ke.current !== "mouse" && ke.current !== "touch" ? ro(q, Ze[de.current], "blur") : i && E && ye !== "" ? ro(q, ye, "blur", "freeSolo") : s && it(q, _, "blur"), Wr(q, "blur");
18067
18067
  }, gd = (q) => {
18068
18068
  const K = q.target.value, ce = ye !== K;
18069
18069
  ce && (vt(K), Re.current = !1, L && L(q, K, "input")), K === "" ? !f && !g && !N && Zt(q, null, "clear") : or(q), ce && Fe(!1);
18070
18070
  }, yn = (q) => {
18071
18071
  const K = Number(q.currentTarget.getAttribute("data-option-index"));
18072
- de.current !== K ? Ze({
18072
+ de.current !== K ? Ge({
18073
18073
  event: q,
18074
18074
  index: K,
18075
18075
  reason: "mouse"
18076
18076
  }) : ke.current = "mouse", Qe.current || (Re.current = !1);
18077
18077
  }, Ot = (q) => {
18078
- Re.current = !1, Ze({
18078
+ Re.current = !1, Ge({
18079
18079
  event: q,
18080
18080
  index: Number(q.currentTarget.getAttribute("data-option-index")),
18081
18081
  reason: "touch"
18082
18082
  }), Qe.current = !0;
18083
18083
  }, Bt = (q) => {
18084
- ro(q, Xe[Number(q.currentTarget.getAttribute("data-option-index"))], "selectOption"), Qe.current = !1;
18084
+ ro(q, Ze[Number(q.currentTarget.getAttribute("data-option-index"))], "selectOption"), Qe.current = !1;
18085
18085
  }, Er = (q) => (K) => {
18086
18086
  const ce = _.slice();
18087
18087
  ce.splice(q, 1), Zt(K, ce, "removeOption", { option: _[q] });
@@ -18098,11 +18098,11 @@ function a6(e) {
18098
18098
  };
18099
18099
  let Cn = E && ye.length > 0;
18100
18100
  Cn = Cn || (g ? _.length > 0 : _ !== null);
18101
- let ga = Xe;
18101
+ let ga = Ze;
18102
18102
  if (m) {
18103
18103
  const q = /* @__PURE__ */ new Map();
18104
18104
  let K = !1;
18105
- ga = Xe.reduce((ce, Me, ze) => {
18105
+ ga = Ze.reduce((ce, Me, ze) => {
18106
18106
  const bt = m(Me);
18107
18107
  return ce.length > 0 && ce[ce.length - 1].group === bt ? ce[ce.length - 1].options.push(Me) : (process.env.NODE_ENV !== "production" && (q.get(bt) && !K && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), K = !0), q.set(bt, !0)), ce.push({
18108
18108
  key: ze,
@@ -18600,7 +18600,7 @@ var je = Pe("MuiAutocomplete", [
18600
18600
  const n = Ve({
18601
18601
  props: t,
18602
18602
  name: "MuiAutocomplete"
18603
- }), { autoComplete: a = !1, autoHighlight: i = !1, autoSelect: l = !1, blurOnSelect: s = !1, ChipProps: c, className: u, clearIcon: p = Gc || (Gc = /* @__PURE__ */ Q(d6, { fontSize: "small" })), clearOnBlur: f = !n.freeSolo, clearOnEscape: v = !1, clearText: A = "Clear", closeText: b = "Close", componentsProps: y, defaultValue: h = n.multiple ? [] : null, disableClearable: S = !1, disableCloseOnSelect: E = !1, disabled: x = !1, disabledItemsFocusable: C = !1, disableListWrap: w = !1, disablePortal: m = !1, filterOptions: T, filterSelectedOptions: M = !1, forcePopupIcon: B = "auto", freeSolo: P = !1, fullWidth: O = !1, getLimitTagsText: g = (Ye) => `+${Ye}`, getOptionDisabled: R, getOptionKey: F, getOptionLabel: V, isOptionEqualToValue: L, groupBy: H, handleHomeEndKeys: X = !n.freeSolo, id: $, includeInputInList: J = !1, inputValue: G, limitTags: N = -1, ListboxComponent: U, ListboxProps: ne, loading: Z = !1, loadingText: Y = "Loading…", multiple: pe = !1, noOptionsText: ue = "No options", onChange: ee, onClose: oe, onHighlightChange: re, onInputChange: ie, onOpen: D, open: j, openOnFocus: se = !1, openText: ve = "Open", options: de, PaperComponent: ke, PopperComponent: Re, popupIcon: Qe = Xc || (Xc = /* @__PURE__ */ Q(Kf, {})), readOnly: We = !1, renderGroup: _, renderInput: ct, renderOption: ye, renderTags: vt, renderValue: $e, selectOnFocus: ot = !n.freeSolo, size: it = "medium", slots: Ae = {}, slotProps: be = {}, value: fe, ...Fe } = n, { getRootProps: Je, getInputProps: De, getInputLabelProps: Be, getPopupIndicatorProps: lt, getClearProps: rr, getItemProps: Xe, getListboxProps: At, getOptionProps: me, value: Ee, dirty: Ce, expanded: Ie, id: Ze, popupOpen: nt, focused: Qt, focusedItem: xe, anchorEl: ut, setAnchorEl: Ur, inputValue: Zi, groupedOptions: or } = a6({
18603
+ }), { autoComplete: a = !1, autoHighlight: i = !1, autoSelect: l = !1, blurOnSelect: s = !1, ChipProps: c, className: u, clearIcon: p = Gc || (Gc = /* @__PURE__ */ Q(d6, { fontSize: "small" })), clearOnBlur: f = !n.freeSolo, clearOnEscape: v = !1, clearText: A = "Clear", closeText: b = "Close", componentsProps: y, defaultValue: h = n.multiple ? [] : null, disableClearable: S = !1, disableCloseOnSelect: E = !1, disabled: x = !1, disabledItemsFocusable: C = !1, disableListWrap: w = !1, disablePortal: m = !1, filterOptions: T, filterSelectedOptions: P = !1, forcePopupIcon: B = "auto", freeSolo: M = !1, fullWidth: O = !1, getLimitTagsText: g = (Ye) => `+${Ye}`, getOptionDisabled: R, getOptionKey: F, getOptionLabel: V, isOptionEqualToValue: L, groupBy: H, handleHomeEndKeys: X = !n.freeSolo, id: $, includeInputInList: J = !1, inputValue: G, limitTags: N = -1, ListboxComponent: U, ListboxProps: ne, loading: Z = !1, loadingText: Y = "Loading…", multiple: pe = !1, noOptionsText: ue = "No options", onChange: ee, onClose: oe, onHighlightChange: re, onInputChange: ie, onOpen: D, open: j, openOnFocus: se = !1, openText: ve = "Open", options: de, PaperComponent: ke, PopperComponent: Re, popupIcon: Qe = Xc || (Xc = /* @__PURE__ */ Q(Kf, {})), readOnly: We = !1, renderGroup: _, renderInput: ct, renderOption: ye, renderTags: vt, renderValue: $e, selectOnFocus: ot = !n.freeSolo, size: it = "medium", slots: Ae = {}, slotProps: be = {}, value: fe, ...Fe } = n, { getRootProps: Je, getInputProps: De, getInputLabelProps: Be, getPopupIndicatorProps: lt, getClearProps: rr, getItemProps: Ze, getListboxProps: At, getOptionProps: me, value: Ee, dirty: Ce, expanded: we, id: Ge, popupOpen: nt, focused: Qt, focusedItem: xe, anchorEl: ut, setAnchorEl: Ur, inputValue: Zi, groupedOptions: or } = a6({
18604
18604
  ...n,
18605
18605
  componentName: "Autocomplete"
18606
18606
  }), Wr = $y();
@@ -18623,10 +18623,10 @@ var je = Pe("MuiAutocomplete", [
18623
18623
  Lr(() => {
18624
18624
  nt && !ro.current && (Zt.current = []), ro.current = nt, nt && or.length > 0 && (Zt.current = or);
18625
18625
  }, [nt, or]);
18626
- const Do = !S && !x && Ce && !We, No = (!P || B === !0) && B !== !1, { onMouseDown: Ji } = De(), { ref: Yi, ...Aa } = At(), yn = V || ((Ye) => Ye.label ?? Ye), Ot = {
18626
+ const Do = !S && !x && Ce && !We, No = (!M || B === !0) && B !== !1, { onMouseDown: Ji } = De(), { ref: Yi, ...Aa } = At(), yn = V || ((Ye) => Ye.label ?? Ye), Ot = {
18627
18627
  ...n,
18628
18628
  disablePortal: m,
18629
- expanded: Ie,
18629
+ expanded: we,
18630
18630
  focused: Qt,
18631
18631
  fullWidth: O,
18632
18632
  getOptionLabel: yn,
@@ -18684,7 +18684,7 @@ var je = Pe("MuiAutocomplete", [
18684
18684
  anchorEl: ut,
18685
18685
  open: nt
18686
18686
  }
18687
- }), K = vo.length > 0 || Z || !P || q.keepMounted === !0, [ce, Me] = Ke("clearIndicator", {
18687
+ }), K = vo.length > 0 || Z || !M || q.keepMounted === !0, [ce, Me] = Ke("clearIndicator", {
18688
18688
  elementType: A6,
18689
18689
  externalForwardedProps: Er,
18690
18690
  ownerState: Ot,
@@ -18712,7 +18712,7 @@ var je = Pe("MuiAutocomplete", [
18712
18712
  const St = (Ye) => ({
18713
18713
  className: Bt.tag,
18714
18714
  disabled: x,
18715
- ...Xe(Ye)
18715
+ ...Ze(Ye)
18716
18716
  });
18717
18717
  if (pe ? Ee.length > 0 && (vt ? pt = vt(Ee, St, Ot) : $e ? pt = $e(Ee, St, Ot) : pt = Ee.map((Ye, Ar) => {
18718
18718
  const { key: hr, ...xn } = St({ index: Ar });
@@ -18761,7 +18761,7 @@ var je = Pe("MuiAutocomplete", [
18761
18761
  return /* @__PURE__ */ st(I.Fragment, { children: [/* @__PURE__ */ Q($i, {
18762
18762
  ...ha,
18763
18763
  children: ct({
18764
- id: Ze,
18764
+ id: Ge,
18765
18765
  disabled: x,
18766
18766
  fullWidth: n.fullWidth ?? !0,
18767
18767
  size: it === "small" ? "small" : void 0,
@@ -18804,7 +18804,7 @@ var je = Pe("MuiAutocomplete", [
18804
18804
  ownerState: Ot,
18805
18805
  children: Y
18806
18806
  }) : null,
18807
- vo.length === 0 && !P && !Z ? /* @__PURE__ */ Q(b6, {
18807
+ vo.length === 0 && !M && !Z ? /* @__PURE__ */ Q(b6, {
18808
18808
  className: Bt.noOptions,
18809
18809
  ownerState: Ot,
18810
18810
  role: "presentation",
@@ -19347,9 +19347,9 @@ var d9 = Pe("MuiFormControl", [
19347
19347
  return a && I.Children.forEach(a, (H) => {
19348
19348
  dl(H, ["Input", "Select"]) && (ni(H.props, !0) || ni(H.props.inputProps, !0)) && (L = !0);
19349
19349
  }), L;
19350
- }), [M, B] = I.useState(!1);
19351
- c && M && B(!1);
19352
- const P = p !== void 0 && !c ? p : M;
19350
+ }), [P, B] = I.useState(!1);
19351
+ c && P && B(!1);
19352
+ const M = p !== void 0 && !c ? p : P;
19353
19353
  let O;
19354
19354
  const g = I.useRef(!1);
19355
19355
  process.env.NODE_ENV !== "production" && (O = () => (g.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
@@ -19367,7 +19367,7 @@ var d9 = Pe("MuiFormControl", [
19367
19367
  disabled: c,
19368
19368
  error: u,
19369
19369
  filled: m,
19370
- focused: P,
19370
+ focused: M,
19371
19371
  fullWidth: f,
19372
19372
  hiddenLabel: v,
19373
19373
  size: y,
@@ -19388,7 +19388,7 @@ var d9 = Pe("MuiFormControl", [
19388
19388
  c,
19389
19389
  u,
19390
19390
  m,
19391
- P,
19391
+ M,
19392
19392
  f,
19393
19393
  v,
19394
19394
  O,
@@ -19591,7 +19591,7 @@ var c9 = Pe("MuiTextField", ["root"]), N6 = {
19591
19591
  const n = Ve({
19592
19592
  props: t,
19593
19593
  name: "MuiTextField"
19594
- }), { autoComplete: a, autoFocus: i = !1, children: l, className: s, color: c = "primary", defaultValue: u, disabled: p = !1, error: f = !1, FormHelperTextProps: v, fullWidth: A = !1, helperText: b, id: y, InputLabelProps: h, inputProps: S, InputProps: E, inputRef: x, label: C, maxRows: w, minRows: m, multiline: T = !1, name: M, onBlur: B, onChange: P, onFocus: O, placeholder: g, required: R = !1, rows: F, select: V = !1, SelectProps: L, slots: H = {}, slotProps: X = {}, type: $, value: J, variant: G = "outlined", ...N } = n, U = {
19594
+ }), { autoComplete: a, autoFocus: i = !1, children: l, className: s, color: c = "primary", defaultValue: u, disabled: p = !1, error: f = !1, FormHelperTextProps: v, fullWidth: A = !1, helperText: b, id: y, InputLabelProps: h, inputProps: S, InputProps: E, inputRef: x, label: C, maxRows: w, minRows: m, multiline: T = !1, name: P, onBlur: B, onChange: M, onFocus: O, placeholder: g, required: R = !1, rows: F, select: V = !1, SelectProps: L, slots: H = {}, slotProps: X = {}, type: $, value: J, variant: G = "outlined", ...N } = n, U = {
19595
19595
  ...n,
19596
19596
  autoFocus: i,
19597
19597
  color: c,
@@ -19662,7 +19662,7 @@ var c9 = Pe("MuiTextField", ["root"]), N6 = {
19662
19662
  defaultValue: u,
19663
19663
  fullWidth: A,
19664
19664
  multiline: T,
19665
- name: M,
19665
+ name: P,
19666
19666
  rows: F,
19667
19667
  maxRows: w,
19668
19668
  minRows: m,
@@ -19671,7 +19671,7 @@ var c9 = Pe("MuiTextField", ["root"]), N6 = {
19671
19671
  id: Z,
19672
19672
  inputRef: x,
19673
19673
  onBlur: B,
19674
- onChange: P,
19674
+ onChange: M,
19675
19675
  onFocus: O,
19676
19676
  placeholder: g,
19677
19677
  inputProps: Re,
@@ -19878,7 +19878,7 @@ var ka = (e) => `${e.firstName} ${e.lastName}`, U6 = ({ ref: e, value: t, onChan
19878
19878
  }, ...Array.isArray(r) ? r : [r]],
19879
19879
  children: /* @__PURE__ */ d(cr, { fontSize: "small" })
19880
19880
  }), nA = ({ open: e, onClose: t, onConfirm: r, onSearch: n, searchResults: a, isSearchLoading: i, isConfirmLoading: l, avatarSrcResolver: s, labels: c, slotProps: u }) => {
19881
- const { t: p } = kt(), [f, v] = we([]), [A, b] = we(!1), y = Ne(null), h = async () => {
19881
+ const { t: p } = kt(), [f, v] = Ie([]), [A, b] = Ie(!1), y = Ne(null), h = async () => {
19882
19882
  if (!f.length || A) return;
19883
19883
  const S = r(f);
19884
19884
  if (S instanceof Promise) {
@@ -20038,7 +20038,7 @@ var ka = (e) => `${e.firstName} ${e.lastName}`, U6 = ({ ref: e, value: t, onChan
20038
20038
  })
20039
20039
  ]
20040
20040
  }), pd = () => {
20041
- const [e, t] = we(null), r = !!e;
20041
+ const [e, t] = Ie(null), r = !!e;
20042
20042
  return {
20043
20043
  anchorMenu: e,
20044
20044
  closeMenu: Ue(() => {
@@ -20050,7 +20050,7 @@ var ka = (e) => `${e.firstName} ${e.lastName}`, U6 = ({ ref: e, value: t, onChan
20050
20050
  }, [])
20051
20051
  };
20052
20052
  }, z6 = ({ threadId: e, participants: t, onDeleteConversation: r, onAddParticipants: n, onSearchParticipants: a, searchResults: i, isSearchingParticipants: l, avatarSrcResolver: s, labels: c, formatParticipantName: u, headerAction: p, onAddParticipantDialogOpenChange: f, slotProps: v, onBack: A }) => {
20053
- const { t: b } = kt(), { isMenuOpen: y, anchorMenu: h, closeMenu: S, openMenu: E } = pd(), [x, C] = we(!1), w = gs(t, u), m = () => {
20053
+ const { t: b } = kt(), { isMenuOpen: y, anchorMenu: h, closeMenu: S, openMenu: E } = pd(), [x, C] = Ie(!1), w = gs(t, u), m = () => {
20054
20054
  S(), r(e);
20055
20055
  }, T = () => {
20056
20056
  S(), C(!0), f?.(!0);
@@ -20060,7 +20060,7 @@ var ka = (e) => `${e.firstName} ${e.lastName}`, U6 = ({ ref: e, value: t, onChan
20060
20060
  alignItems: "center",
20061
20061
  justifyContent: "space-between",
20062
20062
  sx: {
20063
- borderBottom: ({ palette: M }) => `1px solid ${M.divider}`,
20063
+ borderBottom: ({ palette: P }) => `1px solid ${P.divider}`,
20064
20064
  px: 3,
20065
20065
  py: 1.5
20066
20066
  },
@@ -20082,14 +20082,14 @@ var ka = (e) => `${e.firstName} ${e.lastName}`, U6 = ({ ref: e, value: t, onChan
20082
20082
  }),
20083
20083
  /* @__PURE__ */ d(Bf, {
20084
20084
  max: 3,
20085
- children: t?.map(({ userId: M, avatar: B, firstName: P, lastName: O }) => /* @__PURE__ */ d(to, {
20085
+ children: t?.map(({ userId: P, avatar: B, firstName: M, lastName: O }) => /* @__PURE__ */ d(to, {
20086
20086
  src: s?.(B),
20087
20087
  sx: { backgroundColor: ({ palette: g }) => g.mode === "dark" ? "grey.500" : "grey.100" },
20088
20088
  children: Ai({
20089
- firstName: P,
20089
+ firstName: M,
20090
20090
  lastName: O
20091
20091
  }, !0)
20092
- }, M))
20092
+ }, P))
20093
20093
  }),
20094
20094
  /* @__PURE__ */ d(qe, {
20095
20095
  variant: "subtitle2",
@@ -20112,8 +20112,8 @@ var ka = (e) => `${e.firstName} ${e.lastName}`, U6 = ({ ref: e, value: t, onChan
20112
20112
  "aria-label": c?.addParticipant ?? b("addParticipant"),
20113
20113
  onClick: T,
20114
20114
  sx: {
20115
- "&:hover": { backgroundColor: ({ palette: M }) => M.mode === "dark" ? "grey.400" : "grey.200" },
20116
- backgroundColor: ({ palette: M }) => M.mode === "dark" ? "grey.500" : "grey.100",
20115
+ "&:hover": { backgroundColor: ({ palette: P }) => P.mode === "dark" ? "grey.400" : "grey.200" },
20116
+ backgroundColor: ({ palette: P }) => P.mode === "dark" ? "grey.500" : "grey.100",
20117
20117
  color: "text.primary"
20118
20118
  },
20119
20119
  children: /* @__PURE__ */ d(K6, { fontSize: "small" })
@@ -20531,7 +20531,7 @@ var fn = (e) => e.endsWith("Z") || /[+-]\d{2}:\d{2}$/.test(e) ? e : `${e}Z`, Y6
20531
20531
  strokeLinejoin: "round"
20532
20532
  })
20533
20533
  }), Ra = 15, tu = 40, sA = ({ onSend: e, labels: t, autoFocusKey: r, isSending: n, defaultMessage: a, startActions: i, slotProps: l, maxLength: s = 1e4, footnote: c, variant: u = "outlined" }) => {
20534
- const { t: p } = kt(), [f, v] = we(""), A = Ne(null), b = () => {
20534
+ const { t: p } = kt(), [f, v] = Ie(""), A = Ne(null), b = () => {
20535
20535
  !f.trim() || n || (e(f.trim()), v(""));
20536
20536
  }, y = (E) => {
20537
20537
  E.key === "Enter" && !E.shiftKey && (E.preventDefault(), b());
@@ -20753,11 +20753,11 @@ var fn = (e) => e.endsWith("Z") || /[+-]\d{2}:\d{2}$/.test(e) ? e : `${e}Z`, Y6
20753
20753
  const r = new Date(fn(e)), n = new Date(fn(t));
20754
20754
  return r.getFullYear() === n.getFullYear() && r.getMonth() === n.getMonth() && r.getDate() === n.getDate();
20755
20755
  }, nC = ({ threadId: e, participants: t, isLoading: r, messages: n, currentUserId: a, onDeleteConversation: i, onNewConversation: l, onSendMessage: s, onAddParticipants: c, onSearchParticipants: u, searchResults: p, isSearchingParticipants: f, avatarSrcResolver: v, renderAfterBubble: A, labels: b, formatDayLabel: y, isSending: h, formatParticipantName: S, headerAction: E, defaultMessage: x, onAddParticipantDialogOpenChange: C, messageMaxLength: w, slotProps: m, onBack: T }) => {
20756
- const { t: M } = kt(), B = Ne(null), P = Ne(void 0), O = y ?? rC;
20756
+ const { t: P } = kt(), B = Ne(null), M = Ne(void 0), O = y ?? rC;
20757
20757
  return gt(() => {
20758
20758
  if (!n || r) return;
20759
- const g = P.current !== e;
20760
- P.current = e, B.current?.scrollTo({
20759
+ const g = M.current !== e;
20760
+ M.current = e, B.current?.scrollTo({
20761
20761
  behavior: g ? "instant" : "smooth",
20762
20762
  top: B.current.scrollHeight
20763
20763
  });
@@ -20908,13 +20908,13 @@ var fn = (e) => e.endsWith("Z") || /[+-]\d{2}:\d{2}$/.test(e) ? e : `${e}Z`, Y6
20908
20908
  /* @__PURE__ */ d(qe, {
20909
20909
  variant: "body1",
20910
20910
  color: "text.secondary",
20911
- children: b?.createYourFirstConversation ?? M("createYourFirstConversation")
20911
+ children: b?.createYourFirstConversation ?? P("createYourFirstConversation")
20912
20912
  }),
20913
20913
  /* @__PURE__ */ d(Cr, {
20914
20914
  ...m?.newConversationButton,
20915
20915
  variant: "contained",
20916
20916
  onClick: l,
20917
- children: b?.newConversation ?? M("newConversation")
20917
+ children: b?.newConversation ?? P("newConversation")
20918
20918
  })
20919
20919
  ]
20920
20920
  });
@@ -21296,7 +21296,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21296
21296
  year: "numeric"
21297
21297
  });
21298
21298
  }, bC = ({ threads: e, isLoading: t, selectedThreadId: r, onSelectThread: n, onNewConversation: a, avatarSrcResolver: i, labels: l, formatDate: s, formatParticipantName: c, onLoadMore: u, hasMore: p, slotProps: f }) => {
21299
- const { t: v } = kt(), [A, b] = we(""), y = s ?? vC, h = Ne(null), S = Ne(null), E = p ?? !!u;
21299
+ const { t: v } = kt(), [A, b] = Ie(""), y = s ?? vC, h = Ne(null), S = Ne(null), E = p ?? !!u;
21300
21300
  gt(() => {
21301
21301
  const C = h.current, w = S.current;
21302
21302
  if (!(C && w && u && E) || t) return;
@@ -21522,16 +21522,16 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21522
21522
  "audio/webm",
21523
21523
  "audio/mp4"
21524
21524
  ].find((e) => typeof MediaRecorder < "u" && MediaRecorder.isTypeSupported(e)), EC = (e) => `${String(Math.floor(e / 60)).padStart(2, "0")}:${String(e % 60).padStart(2, "0")}`, wC = ({ onRecorded: e, onError: t, labels: r, isProcessing: n = !1, disabled: a = !1, isHighlighted: i = !1, startLabel: l, autoSubmitOnSilence: s = !1, maxDurationMs: c = 12e4, silenceTimeoutMs: u = 2500 }) => {
21525
- const { t: p } = kt(), [f, v] = we(!1), [A, b] = we(0), [y, h] = we(() => Array(au).fill(0)), S = Ne(null), E = Ne(null), x = Ne([]), C = Ne(!1), w = Ne(null), m = Ne(null), T = () => {
21525
+ const { t: p } = kt(), [f, v] = Ie(!1), [A, b] = Ie(0), [y, h] = Ie(() => Array(au).fill(0)), S = Ne(null), E = Ne(null), x = Ne([]), C = Ne(!1), w = Ne(null), m = Ne(null), T = () => {
21526
21526
  m.current !== null && (cancelAnimationFrame(m.current), m.current = null), w.current?.close().catch(() => {
21527
21527
  }), w.current = null;
21528
- }, M = () => {
21528
+ }, P = () => {
21529
21529
  T(), E.current?.getTracks().forEach((g) => {
21530
21530
  g.stop();
21531
21531
  }), E.current = null, S.current = null, v(!1);
21532
21532
  }, B = (g) => {
21533
21533
  C.current = g, S.current?.stop();
21534
- }, P = (g) => {
21534
+ }, M = (g) => {
21535
21535
  const R = window.AudioContext ?? window.webkitAudioContext;
21536
21536
  if (!R) return;
21537
21537
  const F = s && !!u, V = new R(), L = V.createAnalyser();
@@ -21560,10 +21560,10 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21560
21560
  V.data.size && x.current.push(V.data);
21561
21561
  }, F.onstop = () => {
21562
21562
  const V = x.current;
21563
- x.current = [], !C.current && V.length && e(new Blob(V, { type: F.mimeType || "audio/webm" })), M();
21564
- }, E.current = g, S.current = F, F.start(), P(g), b(0), h(Array(au).fill(0)), v(!0);
21563
+ x.current = [], !C.current && V.length && e(new Blob(V, { type: F.mimeType || "audio/webm" })), P();
21564
+ }, E.current = g, S.current = F, F.start(), M(g), b(0), h(Array(au).fill(0)), v(!0);
21565
21565
  } catch (g) {
21566
- t?.(g), M();
21566
+ t?.(g), P();
21567
21567
  }
21568
21568
  };
21569
21569
  if (gt(() => {
@@ -21732,7 +21732,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21732
21732
  }
21733
21733
  return r ? MC : t ? RC : i || a || void 0;
21734
21734
  }, bs = ({ children: e, open: t, onClose: r, src: n, ...a }) => {
21735
- const [i, l] = we(!1), s = () => {
21735
+ const [i, l] = Ie(!1), s = () => {
21736
21736
  l(!0);
21737
21737
  }, c = (u, p) => (u && (r?.(u, p), l(!1)), (f) => {
21738
21738
  r?.(f, p), l(!1);
@@ -21840,7 +21840,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21840
21840
  return !1;
21841
21841
  }
21842
21842
  }, li = ({ src: e, srcThumb: t, fileName: r, children: n, sx: a, disableLightbox: i, disableThumb: l, open: s, onClose: c, onClickThumb: u, variant: p, iconOnly: f = !1, height: v = 152, width: A = 220 }) => {
21843
- const [b, y] = we(!1), [h, S] = we(!1), [E, x] = we(!0), C = uA() === cA.Firefox, w = e?.toLowerCase(), m = !(w?.endsWith(".pdf") || w?.startsWith("blob:") || w?.endsWith(".eml")), T = w?.endsWith(".pdf"), M = l ? !0 : !E, B = ys(e) || ys(t), P = T && C, O = i ? 1 : 0.8, g = (m || T) && !B && M && !h && !i && e && !P, R = e?.split(".").pop()?.toLowerCase() || "", F = r || e?.split("/").pop()?.split("?")[0] || "", V = PC(f, h, B, R, e || "", t || ""), L = () => {
21843
+ const [b, y] = Ie(!1), [h, S] = Ie(!1), [E, x] = Ie(!0), C = uA() === cA.Firefox, w = e?.toLowerCase(), m = !(w?.endsWith(".pdf") || w?.startsWith("blob:") || w?.endsWith(".eml")), T = w?.endsWith(".pdf"), P = l ? !0 : !E, B = ys(e) || ys(t), M = T && C, O = i ? 1 : 0.8, g = (m || T) && !B && P && !h && !i && e && !M, R = e?.split(".").pop()?.toLowerCase() || "", F = r || e?.split("/").pop()?.split("?")[0] || "", V = PC(f, h, B, R, e || "", t || ""), L = () => {
21844
21844
  y((G) => !G);
21845
21845
  }, H = () => {
21846
21846
  y(!1), c?.();
@@ -21858,7 +21858,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
21858
21858
  width: A,
21859
21859
  height: v,
21860
21860
  onClick: () => {
21861
- (P || B) && e && TC(e, F), u?.(), L();
21861
+ (M || B) && e && TC(e, F), u?.(), L();
21862
21862
  },
21863
21863
  sx: {
21864
21864
  ":hover": { opacity: O },
@@ -22075,7 +22075,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22075
22075
  flex: 1,
22076
22076
  children: f
22077
22077
  }), v]
22078
- }), M = /* @__PURE__ */ d(ua, {
22078
+ }), P = /* @__PURE__ */ d(ua, {
22079
22079
  label: c,
22080
22080
  variant: "rounded",
22081
22081
  color: "default",
@@ -22118,7 +22118,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22118
22118
  sx: w,
22119
22119
  children: i
22120
22120
  })
22121
- }), M]
22121
+ }), P]
22122
22122
  }),
22123
22123
  l && xl(l, 0)
22124
22124
  ]
@@ -22127,7 +22127,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22127
22127
  spacing: 0.5,
22128
22128
  children: [s?.map((g, R) => xl(g, R)), T]
22129
22129
  })] })] });
22130
- }, P = () => {
22130
+ }, M = () => {
22131
22131
  const O = s?.map((g, R) => xl(g, R));
22132
22132
  return h ? /* @__PURE__ */ d(te, {
22133
22133
  direction: "row",
@@ -22153,7 +22153,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22153
22153
  textOverflow: "ellipsis",
22154
22154
  children: h
22155
22155
  })
22156
- }), M]
22156
+ }), P]
22157
22157
  }), /* @__PURE__ */ k(te, {
22158
22158
  direction: "row",
22159
22159
  spacing: 1,
@@ -22217,7 +22217,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22217
22217
  children: i
22218
22218
  })
22219
22219
  })
22220
- }), M]
22220
+ }), P]
22221
22221
  }),
22222
22222
  O,
22223
22223
  T
@@ -22247,7 +22247,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22247
22247
  p: 1.5,
22248
22248
  textDecoration: "none"
22249
22249
  },
22250
- children: a === "secondary" ? P() : B()
22250
+ children: a === "secondary" ? M() : B()
22251
22251
  })
22252
22252
  });
22253
22253
  }), AA = {
@@ -22282,20 +22282,20 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22282
22282
  } : void 0
22283
22283
  });
22284
22284
  }, Sl = 165, su = 3, NC = fi(({ name: e, label: t, count: r, items: n, isFetching: a, isLoading: i, gutterSize: l, itemPerPage: s, listWidth: c, disableCount: u, loadMoreItems: p, activeItemId: f, onClickItem: v, onInView: A, chipColumVariant: b, chipColumDot: y, chipStatus: h, headerColumnChip: S, variant: E }) => {
22285
- const x = Ne([]), C = Ne(-1), w = Ne(null), m = Ne(null), T = t1(w), M = r !== void 0 && n.length < r, B = Zu({
22286
- count: M || a ? n.length + su : n.length,
22285
+ const x = Ne([]), C = Ne(-1), w = Ne(null), m = Ne(null), T = t1(w), P = r !== void 0 && n.length < r, B = Zu({
22286
+ count: P || a ? n.length + su : n.length,
22287
22287
  estimateSize: () => Sl + l,
22288
22288
  getScrollElement: () => m.current,
22289
22289
  overscan: 5
22290
- }), P = u ? void 0 : r ?? n.length, O = (() => {
22290
+ }), M = u ? void 0 : r ?? n.length, O = (() => {
22291
22291
  const g = S ?? AA, { color: R } = h && g[h] || g[e] || { color: "default" };
22292
22292
  return !R || R === "default" ? "text.secondary" : `${R}.dark`;
22293
22293
  })();
22294
22294
  return gt(() => {
22295
22295
  const [g] = [...B.getVirtualItems()].reverse();
22296
- !g || i || a || g.index >= n.length - 1 && M && C.current !== n.length && (C.current = n.length, p?.(n.length, n.length + (s || 0), e));
22296
+ !g || i || a || g.index >= n.length - 1 && P && C.current !== n.length && (C.current = n.length, p?.(n.length, n.length + (s || 0), e));
22297
22297
  }, [
22298
- M,
22298
+ P,
22299
22299
  a,
22300
22300
  i,
22301
22301
  n.length,
@@ -22351,13 +22351,13 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22351
22351
  headerColumnChip: S,
22352
22352
  sx: { ".MuiChip-label": { fontWeight: 500 } }
22353
22353
  }),
22354
- !!P && /* @__PURE__ */ d(he, {
22354
+ !!M && /* @__PURE__ */ d(he, {
22355
22355
  sx: {
22356
22356
  color: O,
22357
22357
  fontWeight: 500
22358
22358
  },
22359
22359
  variant: "body2",
22360
- children: P
22360
+ children: M
22361
22361
  }),
22362
22362
  a && /* @__PURE__ */ d(ci, {
22363
22363
  size: 16,
@@ -22480,16 +22480,16 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22480
22480
  willChange: "scroll-position"
22481
22481
  },
22482
22482
  children: e.map((m, T) => {
22483
- const { name: M, label: B, count: P, items: O, isFetching: g, isLoading: R } = m, F = `${M}-${T}`;
22483
+ const { name: P, label: B, count: M, items: O, isFetching: g, isLoading: R } = m, F = `${P}-${T}`;
22484
22484
  return /* @__PURE__ */ d(NC, {
22485
22485
  listWidth: A,
22486
22486
  disableCount: r,
22487
22487
  loadMoreItems: b,
22488
22488
  activeItemId: c,
22489
22489
  onClickItem: t,
22490
- name: M,
22490
+ name: P,
22491
22491
  label: B,
22492
- count: P,
22492
+ count: M,
22493
22493
  items: O,
22494
22494
  isLoading: R,
22495
22495
  isFetching: g,
@@ -22523,7 +22523,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22523
22523
  padding: 0.5
22524
22524
  }
22525
22525
  }, QC = (e) => typeof e == "string", UC = ({ Avatar: e, id: t, title: r, subtitle: n, image: a, thumbnail: i, thumbnailSecondary: l, icon: s, chipLabel: c, chipColor: u, secondaryAction: p, persistentSecondaryAction: f, alwaysDisplaySecondaryAction: v, divider: A, sx: b, onClick: y, index: h, listAlwaysDisplaySecondaryAction: S, listItemBaseSx: E, disableLightbox: x, isFirefox: C, openElement: w, setOpenElement: m }) => {
22526
- const T = `key-${h}-${r}-${t}`, M = !!a?.toLowerCase()?.endsWith(".pdf"), B = du(a), P = du(i), O = ys(a), g = y ? "none" : void 0, R = x || !!s || !B || O, F = !!y || !!(!(y || x) && a), V = w === T, L = (P ? i : "") || (B ? a : "") || "", H = !!f, X = f && p ? /* @__PURE__ */ k(te, {
22526
+ const T = `key-${h}-${r}-${t}`, P = !!a?.toLowerCase()?.endsWith(".pdf"), B = du(a), M = du(i), O = ys(a), g = y ? "none" : void 0, R = x || !!s || !B || O, F = !!y || !!(!(y || x) && a), V = w === T, L = (M ? i : "") || (B ? a : "") || "", H = !!f, X = f && p ? /* @__PURE__ */ k(te, {
22527
22527
  direction: "row",
22528
22528
  alignItems: "center",
22529
22529
  children: [/* @__PURE__ */ d(W, {
@@ -22548,7 +22548,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22548
22548
  ...i && { thumbnail: i },
22549
22549
  ...r && { thumbnail: i },
22550
22550
  isFile: O,
22551
- isPdf: M
22551
+ isPdf: P
22552
22552
  }), F && !V && !y && m(T);
22553
22553
  },
22554
22554
  sx: {
@@ -22578,7 +22578,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22578
22578
  marginRight: Wn,
22579
22579
  children: e
22580
22580
  }),
22581
- !e && M && /* @__PURE__ */ d(li, {
22581
+ !e && P && /* @__PURE__ */ d(li, {
22582
22582
  iconOnly: C,
22583
22583
  src: a,
22584
22584
  srcThumb: i,
@@ -22592,7 +22592,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22592
22592
  open: V,
22593
22593
  onClose: () => m("")
22594
22594
  }),
22595
- !(e || M) && /* @__PURE__ */ d(li, {
22595
+ !(e || P) && /* @__PURE__ */ d(li, {
22596
22596
  disableThumb: !0,
22597
22597
  src: a,
22598
22598
  srcThumb: i,
@@ -22639,7 +22639,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22639
22639
  ]
22640
22640
  }, T);
22641
22641
  }, h9 = ({ Empty: e, action: t, items: r, fullWidth: n, sx: a, alwaysDisplaySecondaryAction: i, isLoading: l, disableLightbox: s, numberLoadingItems: c = 3, density: u = "standard", ...p }) => {
22642
- const [f, v] = we(""), A = uA() === cA.Firefox, b = {
22642
+ const [f, v] = Ie(""), A = uA() === cA.Firefox, b = {
22643
22643
  ...El.listItem,
22644
22644
  ...u === "comfortable" && {
22645
22645
  "&:last-of-type": { marginBottom: 0 },
@@ -22796,13 +22796,13 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22796
22796
  getTextColor: t
22797
22797
  };
22798
22798
  }, e4 = ({ brand: e = "tracktor", colorShape: t, shapeBackgroundColor: r, color: n, height: a, width: i, withoutText: l, mode: s, sx: c, variant: u = "default", component: p = "img" }, f) => {
22799
- const [v, A] = we(""), { palette: b } = Ft(), { getTextColor: y, getImageModule: h, getSize: S, getShapeColor: E, getShapeBackgroundColor: x } = _C(), { height: C, width: w } = S({
22799
+ const [v, A] = Ie(""), { palette: b } = Ft(), { getTextColor: y, getImageModule: h, getSize: S, getShapeColor: E, getShapeBackgroundColor: x } = _C(), { height: C, width: w } = S({
22800
22800
  brand: e,
22801
22801
  height: a,
22802
22802
  variant: u,
22803
22803
  width: i,
22804
22804
  withoutText: l
22805
- }), m = y(n), T = E(t), M = x(r);
22805
+ }), m = y(n), T = E(t), P = x(r);
22806
22806
  if (gt(() => {
22807
22807
  p !== "svg" && (async () => {
22808
22808
  const B = await h(e, u, s || b.mode, l);
@@ -22837,13 +22837,13 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22837
22837
  }
22838
22838
  });
22839
22839
  if (e === "soren") {
22840
- const B = t || (l ? b.secondary.main : m), P = l ? is : x2;
22840
+ const B = t || (l ? b.secondary.main : m), M = l ? is : x2;
22841
22841
  return /* @__PURE__ */ d(W, {
22842
22842
  component: "svg",
22843
22843
  ref: f,
22844
22844
  role: "img",
22845
22845
  "aria-label": "Soren",
22846
- viewBox: `0 0 ${P.width} ${P.height}`,
22846
+ viewBox: `0 0 ${M.width} ${M.height}`,
22847
22847
  sx: {
22848
22848
  height: C,
22849
22849
  width: w,
@@ -22993,7 +22993,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
22993
22993
  children: [
22994
22994
  /* @__PURE__ */ d("path", {
22995
22995
  d: "M0 3C0 1.34315 1.34315 0 3 0H21C22.6569 0 24 1.34315 24 3V21C24 22.6569 22.6569 24 21 24H3C1.34315 24 0 22.6569 0 21V3Z",
22996
- fill: M
22996
+ fill: P
22997
22997
  }),
22998
22998
  /* @__PURE__ */ k("g", {
22999
22999
  clipPath: "url(#clip0_14141_226706)",
@@ -23083,7 +23083,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23083
23083
  children: [
23084
23084
  /* @__PURE__ */ d("path", {
23085
23085
  d: "M0 3C0 1.34315 1.34315 0 3 0H21C22.6569 0 24 1.34315 24 3V21C24 22.6569 22.6569 24 21 24H3C1.34315 24 0 22.6569 0 21V3Z",
23086
- fill: M
23086
+ fill: P
23087
23087
  }),
23088
23088
  /* @__PURE__ */ k("g", {
23089
23089
  clipPath: "url(#clip0_14141_226601)",
@@ -23223,7 +23223,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23223
23223
  ...e,
23224
23224
  children: [/* @__PURE__ */ d("path", { d: "M5.7 6.71c-.39.39-.39 1.02 0 1.41L9.58 12 5.7 15.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L7.12 6.71c-.39-.39-1.03-.39-1.42 0" }), /* @__PURE__ */ d("path", { d: "M12.29 6.71c-.39.39-.39 1.02 0 1.41L16.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L13.7 6.7c-.38-.38-1.02-.38-1.41.01" })]
23225
23225
  }), n4 = ({ onCommit: e, disabled: t }) => {
23226
- const [r, n] = we(0), [a, i] = we(!1), l = Ne(0), s = Ue((p) => {
23226
+ const [r, n] = Ie(0), [a, i] = Ie(!1), l = Ne(0), s = Ue((p) => {
23227
23227
  t || (p.stopPropagation(), p.preventDefault(), l.current = p.clientX, i(!0), p.currentTarget.setPointerCapture(p.pointerId));
23228
23228
  }, [t]), c = Ue((p) => {
23229
23229
  a && n(p.clientX - l.current);
@@ -23361,12 +23361,12 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23361
23361
  return;
23362
23362
  }
23363
23363
  i?.(e);
23364
- }, E = Math.max(Il, v + b), x = e.statusColor ?? "default", C = x === "default", w = C ? u.grey[600] : u[x].dark, m = C ? u.getContrastText(u.grey[600]) : u[x].contrastText, T = e.overdue && e.plannedEnd ? t.dateToX(e.plannedEnd) - f : null, M = /* @__PURE__ */ new Set();
23364
+ }, E = Math.max(Il, v + b), x = e.statusColor ?? "default", C = x === "default", w = C ? u.grey[600] : u[x].dark, m = C ? u.getContrastText(u.grey[600]) : u[x].contrastText, T = e.overdue && e.plannedEnd ? t.dateToX(e.plannedEnd) - f : null, P = /* @__PURE__ */ new Set();
23365
23365
  e.incidents?.forEach((O) => {
23366
23366
  const g = a4(O.incidentDate);
23367
- Number.isNaN(g.getTime()) || M.add(si(g).getTime());
23367
+ Number.isNaN(g.getTime()) || P.add(si(g).getTime());
23368
23368
  });
23369
- const B = Math.max(t.pxPerDay, 6), P = [...M].map((O) => {
23369
+ const B = Math.max(t.pxPerDay, 6), M = [...P].map((O) => {
23370
23370
  const g = Math.max(0, t.dateToX(O) - f);
23371
23371
  return {
23372
23372
  left: g,
@@ -23415,7 +23415,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23415
23415
  top: 0,
23416
23416
  zIndex: 1
23417
23417
  } }),
23418
- P.map((O) => /* @__PURE__ */ d(W, { sx: {
23418
+ M.map((O) => /* @__PURE__ */ d(W, { sx: {
23419
23419
  backgroundImage: `repeating-linear-gradient(135deg, ${u.error.main}, ${u.error.main} 4px, ${u.error.dark} 4px, ${u.error.dark} 8px)`,
23420
23420
  bottom: 0,
23421
23421
  left: O.left,
@@ -23539,7 +23539,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23539
23539
  return null;
23540
23540
  }
23541
23541
  }, b9 = ({ groups: e, resources: t, tasks: r, isLoading: n, onTaskClick: a, onResourceClick: i, onGroupClick: l, onBarResize: s, renderGroup: c, renderResource: u, renderBar: p, renderTooltip: f, isTaskSelected: v, recenterKey: A, toolbarActions: b, toolbarLeadingActions: y, sidebarTitle: h, locale: S, labels: E, localStorageKeys: x, defaultViewMode: C = "day", sidebarWidth: w = 300, rowHeight: m = 36 }) => {
23542
- const T = x?.viewMode ?? b4.viewMode, [M, B] = we(() => y4(T) ?? C), [P, O] = we(() => /* @__PURE__ */ new Date()), { breakpoints: g, palette: R, shape: F, typography: V } = Ft(), L = uo(g.down("sm"), { noSsr: !0 }), H = L ? Math.min(w, v4) : w, [X, $] = we(L), { t: J } = kt(), G = Ne(!1), N = Ne(M), U = Ne(A), ne = Ne(null), Z = Ne(null), Y = Ne({
23542
+ const T = x?.viewMode ?? b4.viewMode, [P, B] = Ie(() => y4(T) ?? C), [M, O] = Ie(() => /* @__PURE__ */ new Date()), { breakpoints: g, palette: R, shape: F, typography: V } = Ft(), L = uo(g.down("sm"), { noSsr: !0 }), H = L ? Math.min(w, v4) : w, [X, $] = Ie(L), { t: J } = kt(), G = Ne(!1), N = Ne(P), U = Ne(A), ne = Ne(null), Z = Ne(null), Y = Ne({
23543
23543
  delta: 0,
23544
23544
  lastEventAt: 0,
23545
23545
  used: !1
@@ -23577,9 +23577,9 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23577
23577
  pe,
23578
23578
  ue,
23579
23579
  ee
23580
- ]), D = mr(() => p4(ee, M, S), [
23580
+ ]), D = mr(() => p4(ee, P, S), [
23581
23581
  ee,
23582
- M,
23582
+ P,
23583
23583
  S
23584
23584
  ]), j = X ? 0 : H, se = Zu({
23585
23585
  count: ie.length,
@@ -23598,7 +23598,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23598
23598
  const Ae = /* @__PURE__ */ new Date();
23599
23599
  O(Ae), ve(Ae);
23600
23600
  }, Re = (Ae) => {
23601
- const be = l4(P, Ae === "prev" ? -1 : 1, M);
23601
+ const be = l4(M, Ae === "prev" ? -1 : 1, P);
23602
23602
  O(be), ve(be);
23603
23603
  }, Qe = Ue((Ae) => i?.(Ae), [i]), We = Ue((Ae) => l?.(Ae), [l]), _ = Ue((Ae, be) => c ? c(Ae, be) : /* @__PURE__ */ k(te, {
23604
23604
  alignItems: "center",
@@ -23668,20 +23668,20 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23668
23668
  }) : null, [p, V.fontWeightMedium]);
23669
23669
  if (gt(() => {
23670
23670
  if (!ne.current || D.width === 0) return;
23671
- const Ae = N.current !== M, be = U.current !== A;
23671
+ const Ae = N.current !== P, be = U.current !== A;
23672
23672
  if (G.current && !Ae && !be) return;
23673
- G.current = !0, N.current = M, U.current = A;
23673
+ G.current = !0, N.current = P, U.current = A;
23674
23674
  const fe = Z.current;
23675
23675
  if (Z.current = null, fe && !be) {
23676
23676
  ne.current.scrollLeft = Math.max(0, D.dateToX(fe.date) + j - fe.viewportX);
23677
23677
  return;
23678
23678
  }
23679
- const Fe = be ? /* @__PURE__ */ new Date() : P;
23679
+ const Fe = be ? /* @__PURE__ */ new Date() : M;
23680
23680
  be && O(Fe), ve(Fe);
23681
23681
  }, [
23682
23682
  D,
23683
- M,
23684
23683
  P,
23684
+ M,
23685
23685
  A,
23686
23686
  ve,
23687
23687
  j
@@ -23695,7 +23695,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23695
23695
  if (fe.timeStamp - Fe.lastEventAt > g4 && (Fe.delta = 0, Fe.used = !1), Fe.lastEventAt = fe.timeStamp, Fe.used || (Fe.delta += fe.deltaY, Math.abs(Fe.delta) < m4)) return;
23696
23696
  const Je = Fe.delta > 0 ? 1 : -1;
23697
23697
  Fe.delta = 0;
23698
- const De = Wa.indexOf(M) + Je;
23698
+ const De = Wa.indexOf(P) + Je;
23699
23699
  if (De < 0 || De >= Wa.length) return;
23700
23700
  Fe.used = !0;
23701
23701
  const Be = fe.clientX - Ae.getBoundingClientRect().left, lt = D.xToDate(Math.max(0, Be + Ae.scrollLeft - j));
@@ -23708,19 +23708,19 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23708
23708
  }, [
23709
23709
  n,
23710
23710
  D,
23711
- M,
23711
+ P,
23712
23712
  j
23713
23713
  ]), gt(() => {
23714
23714
  try {
23715
- globalThis.localStorage?.setItem(T, M);
23715
+ globalThis.localStorage?.setItem(T, P);
23716
23716
  } catch {
23717
23717
  }
23718
- }, [M, T]), n) return /* @__PURE__ */ d(Rt, {
23718
+ }, [P, T]), n) return /* @__PURE__ */ d(Rt, {
23719
23719
  variant: "rounded",
23720
23720
  height: "100%",
23721
23721
  sx: { minHeight: 360 }
23722
23722
  });
23723
- const vt = s4(P, M, S), $e = j + D.width, ot = D.dateToX(Date.now()), it = D.ticks.minor.find((Ae) => ot >= Ae.x && ot < Ae.x + Ae.width);
23723
+ const vt = s4(M, P, S), $e = j + D.width, ot = D.dateToX(Date.now()), it = D.ticks.minor.find((Ae) => ot >= Ae.x && ot < Ae.x + Ae.width);
23724
23724
  return /* @__PURE__ */ k(W, {
23725
23725
  sx: {
23726
23726
  display: "flex",
@@ -23821,7 +23821,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23821
23821
  sx: { minWidth: 0 },
23822
23822
  children: [b, /* @__PURE__ */ k(jA, {
23823
23823
  exclusive: !0,
23824
- value: M,
23824
+ value: P,
23825
23825
  size: "small",
23826
23826
  onChange: de,
23827
23827
  children: [
@@ -23908,7 +23908,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
23908
23908
  children: /* @__PURE__ */ d(h4, {
23909
23909
  scale: D,
23910
23910
  height: mu,
23911
- selectedDate: P
23911
+ selectedDate: M
23912
23912
  })
23913
23913
  })]
23914
23914
  }), /* @__PURE__ */ k(W, {
@@ -24175,7 +24175,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24175
24175
  fillOpacity: "0.54"
24176
24176
  })
24177
24177
  }), Ho = 64, yu = 1e3, w4 = ({ title: e, subtitle: t, isLastElement: r, active: n, onClick: a, variant: i, tag: l, collapseItems: s, collapseDefaultOpen: c, Action: u, Icon: p, Footer: f, Collapse: v }) => {
24178
- const [A, b] = we(!1), y = v || !!s?.length;
24178
+ const [A, b] = Ie(!1), y = v || !!s?.length;
24179
24179
  return gt(() => {
24180
24180
  c && b(!0);
24181
24181
  }, [c]), /* @__PURE__ */ k(te, {
@@ -24381,7 +24381,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24381
24381
  },
24382
24382
  children: /* @__PURE__ */ d(Qu, { children: e })
24383
24383
  }), C9 = ({ items: e, isLoading: t, emptyMessage: r, containerStyle: n, variant: a, "data-test": i, "data-testid": l }) => {
24384
- const [s, c] = we("");
24384
+ const [s, c] = Ie("");
24385
24385
  return t ? /* @__PURE__ */ d(Tl, {
24386
24386
  sx: n,
24387
24387
  "data-test": i,
@@ -24822,8 +24822,8 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24822
24822
  color: "inherit",
24823
24823
  size: 20
24824
24824
  })
24825
- }) : t?.endAdornment !== void 0 ? t?.endAdornment : r, k9 = ({ actionEndOption: e, actionStartOption: t, popupIcon: r, blurOnSelect: n, label: a, placeholder: i, name: l, slotProps: s, disableClearable: c, setSelectedValue: u, useQuery: p, noOptionsText: f, renderOption: v, getOptionLabel: A, keyOptionLabel: b, queryParams: y, openOnFocus: h, autoHighlight: S, queryParamsOnFocus: E, queryOptions: x, required: C, helperMessage: w, error: m, disabled: T, defaultValue: M, onFocus: B, onBlur: P, onChange: O, sx: g, renderInput: R, variant: F, InputProps: V, size: L, shrink: H, getOptionKey: X, width: $, limitTags: J, groupBy: G, disableCloseOnSelect: N, renderGroup: U, value: ne, PopperComponent: Z, ListboxProps: Y, multiple: pe, filterSelectedOptions: ue, autoFocus: ee, onKeyDown: oe, onNoResults: re, endAdornment: ie, inputSlotProps: D, inputRef: j, open: se, onOpen: ve, onClose: de, searchKey: ke = "q", disableInputLoader: Re = !1, fetchOnFocus: Qe = !1, filterOptions: We = (ct) => ct, getOptionImageSrc: _ = (ct) => ct || void 0 }) => {
24826
- const [ct, ye] = we(""), [vt, $e] = we(""), ot = e1(ct, 300), it = se === void 0 ? void 0 : Qe || ct ? se : !1, Ae = ot ? y : E ?? y, be = se ?? !0, { data: fe, isFetching: Fe, refetch: Je } = p({
24825
+ }) : t?.endAdornment !== void 0 ? t?.endAdornment : r, k9 = ({ actionEndOption: e, actionStartOption: t, popupIcon: r, blurOnSelect: n, label: a, placeholder: i, name: l, slotProps: s, disableClearable: c, setSelectedValue: u, useQuery: p, noOptionsText: f, renderOption: v, getOptionLabel: A, keyOptionLabel: b, queryParams: y, openOnFocus: h, autoHighlight: S, queryParamsOnFocus: E, queryOptions: x, required: C, helperMessage: w, error: m, disabled: T, defaultValue: P, onFocus: B, onBlur: M, onChange: O, sx: g, renderInput: R, variant: F, InputProps: V, size: L, shrink: H, getOptionKey: X, width: $, limitTags: J, groupBy: G, disableCloseOnSelect: N, renderGroup: U, value: ne, PopperComponent: Z, ListboxProps: Y, multiple: pe, filterSelectedOptions: ue, autoFocus: ee, onKeyDown: oe, onNoResults: re, endAdornment: ie, inputSlotProps: D, inputRef: j, open: se, onOpen: ve, onClose: de, searchKey: ke = "q", disableInputLoader: Re = !1, fetchOnFocus: Qe = !1, filterOptions: We = (ct) => ct, getOptionImageSrc: _ = (ct) => ct || void 0 }) => {
24826
+ const [ct, ye] = Ie(""), [vt, $e] = Ie(""), ot = e1(ct, 300), it = se === void 0 ? void 0 : Qe || ct ? se : !1, Ae = ot ? y : E ?? y, be = se ?? !0, { data: fe, isFetching: Fe, refetch: Je } = p({
24827
24827
  [ke]: ot || void 0,
24828
24828
  ...Ae
24829
24829
  }, { query: {
@@ -24845,38 +24845,40 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24845
24845
  label: e?.label
24846
24846
  }] : []
24847
24847
  ];
24848
- const Ce = !fe?.some((Ie) => Array.isArray(ne) ? ne.some((Ze) => Ie.id === Ze.id) : ne && typeof ne == "object" && "id" in ne ? Ie.id === ne.id : !0);
24848
+ const Ce = !fe?.some((we) => Array.isArray(ne) ? ne.some((Ge) => we.id === Ge.id) : ne && typeof ne == "object" && "id" in ne ? we.id === ne.id : !0);
24849
24849
  return ne && Ce ? [ne, ...fe || []] : fe || [];
24850
24850
  }, [
24851
24851
  fe,
24852
24852
  e,
24853
24853
  t,
24854
24854
  ne
24855
- ]), Be = Ue((Ce, Ie, Ze) => {
24856
- if (Array.isArray(Ie) && Ie.some((nt) => nt?.isActionOption)) {
24857
- $e(""), (Ie.some((nt) => nt?.isActionStartOption) ? t : e)?.onClick?.();
24858
- return;
24859
- }
24860
- if (Array.isArray(Ie)) {
24861
- u?.(Ie), O?.(Ce, Ie, Ze);
24862
- return;
24863
- }
24864
- if (Ie?.isActionOption) {
24865
- $e(""), (Ie.isActionStartOption ? t : e)?.onClick?.();
24866
- return;
24867
- }
24868
- if (Ze === "clear") {
24869
- u?.(null), O?.(Ce, Ie, Ze);
24870
- return;
24855
+ ]), Be = Ue((Ce, we, Ge) => {
24856
+ if (!(Ge === "selectOption" && !we)) {
24857
+ if (Array.isArray(we) && we.some((nt) => nt?.isActionOption)) {
24858
+ $e(""), (we.some((nt) => nt?.isActionStartOption) ? t : e)?.onClick?.();
24859
+ return;
24860
+ }
24861
+ if (Array.isArray(we)) {
24862
+ u?.(we), O?.(Ce, we, Ge);
24863
+ return;
24864
+ }
24865
+ if (we?.isActionOption) {
24866
+ $e(""), (we.isActionStartOption ? t : e)?.onClick?.();
24867
+ return;
24868
+ }
24869
+ if (Ge === "clear") {
24870
+ u?.(null), O?.(Ce, we, Ge);
24871
+ return;
24872
+ }
24873
+ we && u?.(we), O?.(Ce, we, Ge);
24871
24874
  }
24872
- Ie && u?.(Ie), O?.(Ce, Ie, Ze);
24873
24875
  }, [
24874
24876
  e,
24875
24877
  t,
24876
24878
  O,
24877
24879
  u
24878
- ]), lt = Ue((Ce, Ie, Ze) => {
24879
- $e(Ie), Ze === "input" && ye(Ie);
24880
+ ]), lt = Ue((Ce, we, Ge) => {
24881
+ $e(we), Ge === "input" && ye(we);
24880
24882
  }, []), rr = Ue(async () => {
24881
24883
  Qe && !ne && await Je({
24882
24884
  [ke]: ot,
@@ -24890,9 +24892,9 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24890
24892
  Je,
24891
24893
  ke,
24892
24894
  ne
24893
- ]), Xe = Ue(() => {
24894
- ye(""), P?.();
24895
- }, [P]), At = Ue((Ce) => Array.isArray(Ce) ? Ce.map((Ie) => Ie?.isActionOption ? Ie.label : typeof b == "string" ? Ie?.[b] : b.map((Ze) => Ie[Ze]).join(" ")).join(", ") : typeof b == "string" ? Ce?.[b] : b.map((Ie) => Ce[Ie]).join(" "), [b]), me = Ue((Ce) => A && !Array.isArray(Ce) && !Ce?.isActionOption ? A(Ce) : At(Ce), [A, At]), Ee = Ue((Ce, Ie) => Array.isArray(Ie) ? Ie.some((Ze) => Ce && Ze ? typeof b == "string" ? Ce[b] === Ze[b] : b.map((nt) => Ce?.[nt]).join(" ") === b.map((nt) => Ze?.[nt]).join(" ") : !1) : typeof b == "string" ? Ce[b] === Ie[b] : b.map((Ze) => Ce?.[Ze]).join(" ") === b.map((Ze) => Ie[Ze]).join(" "), [b]);
24895
+ ]), Ze = Ue(() => {
24896
+ ye(""), M?.();
24897
+ }, [M]), At = Ue((Ce) => Array.isArray(Ce) ? Ce.map((we) => we?.isActionOption ? we.label : typeof b == "string" ? we?.[b] : b.map((Ge) => we[Ge]).join(" ")).join(", ") : typeof b == "string" ? Ce?.[b] : b.map((we) => Ce[we]).join(" "), [b]), me = Ue((Ce) => A && !Array.isArray(Ce) && !Ce?.isActionOption ? A(Ce) : At(Ce), [A, At]), Ee = Ue((Ce, we) => Array.isArray(we) ? we.some((Ge) => Ce && Ge ? typeof b == "string" ? Ce[b] === Ge[b] : b.map((nt) => Ce?.[nt]).join(" ") === b.map((nt) => Ge?.[nt]).join(" ") : !1) : typeof b == "string" ? Ce[b] === we[b] : b.map((Ge) => Ce?.[Ge]).join(" ") === b.map((Ge) => we[Ge]).join(" "), [b]);
24896
24898
  return gt(() => {
24897
24899
  !re || Fe || !ot || fe === void 0 || fe.length === 0 && re(ot);
24898
24900
  }, [
@@ -24912,7 +24914,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24912
24914
  groupBy: G,
24913
24915
  disableCloseOnSelect: N,
24914
24916
  disableClearable: c,
24915
- defaultValue: M,
24917
+ defaultValue: P,
24916
24918
  value: ne,
24917
24919
  disabled: T,
24918
24920
  filterOptions: We,
@@ -24927,7 +24929,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24927
24929
  loading: Fe,
24928
24930
  inputValue: vt,
24929
24931
  options: De,
24930
- onBlur: Xe,
24932
+ onBlur: Ze,
24931
24933
  onFocus: rr,
24932
24934
  onChange: Be,
24933
24935
  onInputChange: lt,
@@ -24938,8 +24940,8 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24938
24940
  listbox: Y,
24939
24941
  ...s
24940
24942
  },
24941
- renderOption: v || ((Ce, Ie) => {
24942
- const { key: Ze, ...nt } = Ce, Qt = Ie && typeof Ie == "object" && "image" in Ie ? Ie.image : "", xe = me(Ie);
24943
+ renderOption: v || ((Ce, we) => {
24944
+ const { key: Ge, ...nt } = Ce, Qt = we && typeof we == "object" && "image" in we ? we.image : "", xe = me(we);
24943
24945
  return /* @__PURE__ */ d(Mt, {
24944
24946
  title: xe,
24945
24947
  placement: "right",
@@ -24956,8 +24958,8 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
24956
24958
  textOverflow: "ellipsis",
24957
24959
  children: xe
24958
24960
  })]
24959
- }, Ze)
24960
- }, Ze);
24961
+ }, Ge)
24962
+ }, Ge);
24961
24963
  }),
24962
24964
  renderInput: R || ((Ce) => /* @__PURE__ */ d(eo, {
24963
24965
  ...Ce,
@@ -25146,8 +25148,8 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
25146
25148
  popperRef: i,
25147
25149
  sx: [({ zIndex: l }) => ({ zIndex: l.modal }), ...Array.isArray(r) ? r : [r]]
25148
25150
  });
25149
- }, N4 = ({ variant: e, onChange: t, disableCheckbox: r, placeholder: n, label: a, localeText: i, disableReset: l, disableSelectAll: s, value: c, onFocus: u, onBlur: p, open: f, getOptionLabel: v, onInputChange: A, inputValue: b, disableClearable: y, loading: h, resetInputValueOnSelectOption: S, renderOption: E, renderValue: x, width: C, sx: w, slotProps: m, tooltip: T, tooltipProps: M, size: B = "small", disableCloseOnSelect: P = !0, multiple: O = !0, options: g = [], ...R }, F) => {
25150
- const { t: V } = kt(), [L, H] = we(!1), [X, $] = we(""), J = b || X, G = e === "chip", N = e === "filled", U = Array.isArray(c) ? !!c.length : c != null, ne = P4(c, O), Z = a ?? n, Y = !!Z, pe = L && !!J, ue = (!!J || U) && !y, ee = Y && U && !pe, oe = Y && !ee, re = U && (O || ee) && !L, D = /* @__PURE__ */ d(ws, {
25151
+ }, N4 = ({ variant: e, onChange: t, disableCheckbox: r, placeholder: n, label: a, localeText: i, disableReset: l, disableSelectAll: s, value: c, onFocus: u, onBlur: p, open: f, getOptionLabel: v, onInputChange: A, inputValue: b, disableClearable: y, loading: h, resetInputValueOnSelectOption: S, renderOption: E, renderValue: x, width: C, sx: w, slotProps: m, tooltip: T, tooltipProps: P, size: B = "small", disableCloseOnSelect: M = !0, multiple: O = !0, options: g = [], ...R }, F) => {
25152
+ const { t: V } = kt(), [L, H] = Ie(!1), [X, $] = Ie(""), J = b || X, G = e === "chip", N = e === "filled", U = Array.isArray(c) ? !!c.length : c != null, ne = P4(c, O), Z = a ?? n, Y = !!Z, pe = L && !!J, ue = (!!J || U) && !y, ee = Y && U && !pe, oe = Y && !ee, re = U && (O || ee) && !L, D = /* @__PURE__ */ d(ws, {
25151
25153
  freeSolo: !1,
25152
25154
  multiple: O,
25153
25155
  disableClearable: y,
@@ -25156,13 +25158,13 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
25156
25158
  loading: h,
25157
25159
  ref: F,
25158
25160
  size: B,
25159
- disableCloseOnSelect: P,
25161
+ disableCloseOnSelect: M,
25160
25162
  onChange: (j, se, ve, de) => {
25161
25163
  if (se === null) {
25162
25164
  t?.(j, O ? [] : null, ve, de);
25163
25165
  return;
25164
25166
  }
25165
- t?.(j, se, ve, de), P && O || H(!1);
25167
+ t?.(j, se, ve, de), M && O || H(!1);
25166
25168
  },
25167
25169
  getLimitTagsText: L4(e),
25168
25170
  inputValue: J,
@@ -25484,7 +25486,7 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
25484
25486
  });
25485
25487
  return T ? /* @__PURE__ */ d(Mt, {
25486
25488
  title: T,
25487
- ...M,
25489
+ ...P,
25488
25490
  children: D
25489
25491
  }) : D;
25490
25492
  }, R9 = Nt(N4), V4 = {
@@ -25701,10 +25703,10 @@ var gC = (e) => /* @__PURE__ */ k(mt, {
25701
25703
  children: e
25702
25704
  });
25703
25705
  function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, options: i, variant: l, disabled: s, labelMenu: c, labelOnlyAfterSelection: u, applyOnSelect: p, hideMenuHeader: f, denseMenu: v, menuProps: A, separatorBetweenLabelAndOptionSelected: b = ":", multiple: y = !1, size: h = "medium" }) {
25704
- const S = n !== void 0, [E, x] = we(() => S ? n : y ? t || [] : t), C = S ? n : y ? t?.length > 0 : t != null, { anchorMenu: w, openMenu: m, isMenuOpen: T, closeMenu: M } = pd(), { t: B } = kt(), P = Array.isArray(i), O = i !== void 0, g = (J) => {
25706
+ const S = n !== void 0, [E, x] = Ie(() => S ? n : y ? t || [] : t), C = S ? n : y ? t?.length > 0 : t != null, { anchorMenu: w, openMenu: m, isMenuOpen: T, closeMenu: P } = pd(), { t: B } = kt(), M = Array.isArray(i), O = i !== void 0, g = (J) => {
25705
25707
  S ? a?.(J) : r?.(J);
25706
25708
  }, R = () => {
25707
- g(E), M();
25709
+ g(E), P();
25708
25710
  }, F = () => {
25709
25711
  if (S)
25710
25712
  x(!1), a?.(!1);
@@ -25713,17 +25715,17 @@ function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, o
25713
25715
  x(J), r?.(J);
25714
25716
  } else
25715
25717
  x(void 0), r?.(void 0);
25716
- M();
25718
+ P();
25717
25719
  }, V = (J) => {
25718
25720
  if (S && !O) {
25719
25721
  a?.(!n);
25720
25722
  return;
25721
25723
  }
25722
- if (O && P) {
25724
+ if (O && M) {
25723
25725
  m(J);
25724
25726
  return;
25725
25727
  }
25726
- if (O && !P) if (S) a?.(!n);
25728
+ if (O && !M) if (S) a?.(!n);
25727
25729
  else {
25728
25730
  const G = t != null ? void 0 : i?.value;
25729
25731
  r?.(y ? G === void 0 ? [] : [G] : G);
@@ -25737,8 +25739,8 @@ function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, o
25737
25739
  G = N.includes(J) ? N.filter((U) => U !== J) : [...N, J], x(G);
25738
25740
  } else
25739
25741
  G = J, x(G);
25740
- p && (g(G), y || S || M());
25741
- }, H = (J) => S ? n : y ? E?.includes(J) : E === J, X = (J) => P ? `${c ? `${c} ${b} ` : ""}${i.find((G) => G.value === J)?.label || ""}` : i?.label, $ = () => {
25742
+ p && (g(G), y || S || P());
25743
+ }, H = (J) => S ? n : y ? E?.includes(J) : E === J, X = (J) => M ? `${c ? `${c} ${b} ` : ""}${i.find((G) => G.value === J)?.label || ""}` : i?.label, $ = () => {
25742
25744
  if (S)
25743
25745
  return e;
25744
25746
  if (u && C) {
@@ -25753,7 +25755,7 @@ function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, o
25753
25755
  return `${N || String(J[0])}... (+${U})`;
25754
25756
  }
25755
25757
  }
25756
- return !(y || S) && t !== void 0 && t !== null && P && X(t) || e;
25758
+ return !(y || S) && t !== void 0 && t !== null && M && X(t) || e;
25757
25759
  };
25758
25760
  return gt(() => {
25759
25761
  x(S ? n : y ? t || [] : t);
@@ -25767,7 +25769,7 @@ function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, o
25767
25769
  size: h,
25768
25770
  label: $(),
25769
25771
  variant: l,
25770
- deleteIcon: O && P ? /* @__PURE__ */ k(U4, { children: [/* @__PURE__ */ d(oa, {
25772
+ deleteIcon: O && M ? /* @__PURE__ */ k(U4, { children: [/* @__PURE__ */ d(oa, {
25771
25773
  fontSize: "small",
25772
25774
  sx: {
25773
25775
  transform: T ? "rotate(180deg)" : "rotate(0deg)",
@@ -25793,15 +25795,15 @@ function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, o
25793
25795
  children: /* @__PURE__ */ d(cr, { sx: { fontSize: He(16) } })
25794
25796
  })] }) : void 0,
25795
25797
  onClick: V,
25796
- onDelete: O && P ? () => {
25798
+ onDelete: O && M ? () => {
25797
25799
  } : void 0,
25798
25800
  color: C ? "active" : "default"
25799
- }), O && P && /* @__PURE__ */ k(ju, {
25801
+ }), O && M && /* @__PURE__ */ k(ju, {
25800
25802
  slotProps: { paper: { sx: { minWidth: 350 } } },
25801
25803
  ...A,
25802
25804
  anchorEl: w,
25803
25805
  open: T,
25804
- onClose: M,
25806
+ onClose: P,
25805
25807
  children: [
25806
25808
  !f && /* @__PURE__ */ k(te, {
25807
25809
  component: "li",
@@ -25809,7 +25811,7 @@ function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, o
25809
25811
  paddingLeft: 2,
25810
25812
  marginBottom: 1,
25811
25813
  children: [/* @__PURE__ */ d(co, { children: c }), /* @__PURE__ */ d(ft, {
25812
- onClick: M,
25814
+ onClick: P,
25813
25815
  children: /* @__PURE__ */ d(cr, { fontSize: "small" })
25814
25816
  })]
25815
25817
  }),
@@ -25872,7 +25874,7 @@ function B9({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, o
25872
25874
  })] });
25873
25875
  }
25874
25876
  var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
25875
- const [a, i] = we(!1), [l, s] = we(String(e)), c = () => {
25877
+ const [a, i] = Ie(!1), [l, s] = Ie(String(e)), c = () => {
25876
25878
  i(!1);
25877
25879
  const f = parseInt(l, 10);
25878
25880
  !Number.isNaN(f) && f > 0 && f !== e ? n(f) : s(String(e));
@@ -26091,11 +26093,11 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26091
26093
  }).join(" • ");
26092
26094
  return e.length > Iu ? `${r} + ${e.length - Iu}` : r;
26093
26095
  }, F9 = Nt(({ accept: e, name: t, disabled: r, required: n, error: a, localeText: i, multiple: l, id: s, size: c, helperText: u, fullWidth: p, icon: f, onChange: v, label: A, pattern: b, title: y, value: h, variant: S = "vertical" }, E) => {
26094
- const [x, C] = we(null), { t: w } = kt(), { palette: m } = Ft(), T = S === "vertical", M = s || t, B = Ne(null), P = Ne(null), O = h === void 0 ? x : h, g = K4(O);
26096
+ const [x, C] = Ie(null), { t: w } = kt(), { palette: m } = Ft(), T = S === "vertical", P = s || t, B = Ne(null), M = Ne(null), O = h === void 0 ? x : h, g = K4(O);
26095
26097
  Xu(E, () => {
26096
- const L = P.current;
26098
+ const L = M.current;
26097
26099
  return L.reset = () => {
26098
- C(null), P.current && (P.current.value = "");
26100
+ C(null), M.current && (M.current.value = "");
26099
26101
  }, L;
26100
26102
  });
26101
26103
  const R = (L) => {
@@ -26103,13 +26105,13 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26103
26105
  };
26104
26106
  return /* @__PURE__ */ k(LA, {
26105
26107
  ref: B,
26106
- htmlFor: M,
26108
+ htmlFor: P,
26107
26109
  onDragOver: (L) => {
26108
26110
  L.preventDefault();
26109
26111
  },
26110
26112
  onDrop: (L) => {
26111
26113
  if (L.preventDefault(), L.dataTransfer.files.length > 0) {
26112
- const H = P.current, X = L.dataTransfer.files;
26114
+ const H = M.current, X = L.dataTransfer.files;
26113
26115
  C(X);
26114
26116
  const $ = new DataTransfer();
26115
26117
  Array.from(X).forEach((J) => {
@@ -26181,8 +26183,8 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26181
26183
  })
26182
26184
  ]
26183
26185
  }), /* @__PURE__ */ d("input", {
26184
- id: M,
26185
- ref: P,
26186
+ id: P,
26187
+ ref: M,
26186
26188
  type: "file",
26187
26189
  title: y,
26188
26190
  disabled: r,
@@ -26392,7 +26394,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26392
26394
  const c = t?.toString() || r?.toString() || n?.toString() || " ", u = s.measureText(c).width, p = parseFloat(i.paddingLeft), f = parseFloat(i.paddingRight);
26393
26395
  return u + p + f + a;
26394
26396
  }, Q9 = Nt(({ sx: e, maxWidth: t, minWidth: r, ...n }, a) => {
26395
- const i = Ne(null), [l, s] = we(null), c = Ne(void 0), { size: u } = n, p = u === "tiny", f = p ? 27 : 50, v = n?.slotProps?.input, A = !!v?.startAdornment || !!n?.InputProps?.startAdornment, b = !!v?.endAdornment || !!n?.InputProps?.endAdornment, y = (A ? f : 0) + (b ? f : 0), h = Ue(() => {
26397
+ const i = Ne(null), [l, s] = Ie(null), c = Ne(void 0), { size: u } = n, p = u === "tiny", f = p ? 27 : 50, v = n?.slotProps?.input, A = !!v?.startAdornment || !!n?.InputProps?.startAdornment, b = !!v?.endAdornment || !!n?.InputProps?.endAdornment, y = (A ? f : 0) + (b ? f : 0), h = Ue(() => {
26396
26398
  const E = Z4(i.current, n.value, n.defaultValue, n.placeholder, y);
26397
26399
  E !== null && s(Math.min(Math.max(E, r ?? 0), t ?? 1 / 0));
26398
26400
  }, [
@@ -26525,7 +26527,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26525
26527
  fill: r
26526
26528
  })
26527
26529
  }), W9 = ({ slotProps: e, ...t }) => {
26528
- const [r, n] = we(!1), a = () => {
26530
+ const [r, n] = Ie(!1), a = () => {
26529
26531
  n((s) => !s);
26530
26532
  }, i = (s) => {
26531
26533
  s.preventDefault();
@@ -26654,7 +26656,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
26654
26656
  color: "textSecondary",
26655
26657
  children: t
26656
26658
  })] }), K9 = ({ compactTitle: e, fullTitle: t, actions: r, compactActions: n, variant: a = "preview", onClose: i, onOpenFullPage: l, dense: s = !1, backLabel: c, onBack: u, labels: p, maxWidth: f = "lg" }) => {
26657
- const [v, A] = we(!1), { t: b } = kt(), { breakpoints: y } = Ft(), h = uo(y.down("sm")), S = uo(y.up("lg")), E = Ne(null), x = YA() ? "⌘+↵" : "Ctrl+↵", C = typeof f == "number" ? {
26659
+ const [v, A] = Ie(!1), { t: b } = kt(), { breakpoints: y } = Ft(), h = uo(y.down("sm")), S = uo(y.up("lg")), E = Ne(null), x = YA() ? "⌘+↵" : "Ctrl+↵", C = typeof f == "number" ? {
26658
26660
  maxWidth: !1,
26659
26661
  sx: { maxWidth: f }
26660
26662
  } : { maxWidth: f }, w = Ue((m) => p?.[m] ?? b(m), [p, b]);
@@ -27028,7 +27030,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27028
27030
  })
27029
27031
  })
27030
27032
  }), Mu = ({ children: e, ...t }) => {
27031
- const { hideSearchDesktop: r, closeDrawerMenu: n, disableResponsive: a, isMobile: i, isTablet: l, isDrawerOpen: s, isCollapsed: c, toggleCollapse: u, sideBarWidth: p, bottomLink: f, NavLink: v, Footer: A, Search: b = t.Search, Logo: y = t.Logo, density: h } = xr(mo), S = i5[h], { collapseButtonPaddingY: E, searchPaddingY: x } = Mo[h], { palette: C } = Ft(), { t: w } = kt(), m = i && s ? "none" : `solid 1px ${C.divider}`, T = !(i || l), M = !(T || a), B = i && M ? "100vw" : p || "auto", P = r ? !T : !0, O = (Array.isArray(f) ? f : f ? [f] : []).filter((g) => !g.hidden);
27033
+ const { hideSearchDesktop: r, closeDrawerMenu: n, disableResponsive: a, isMobile: i, isTablet: l, isDrawerOpen: s, isCollapsed: c, toggleCollapse: u, sideBarWidth: p, bottomLink: f, NavLink: v, Footer: A, Search: b = t.Search, Logo: y = t.Logo, density: h } = xr(mo), S = i5[h], { collapseButtonPaddingY: E, searchPaddingY: x } = Mo[h], { palette: C } = Ft(), { t: w } = kt(), m = i && s ? "none" : `solid 1px ${C.divider}`, T = !(i || l), P = !(T || a), B = i && P ? "100vw" : p || "auto", M = r ? !T : !0, O = (Array.isArray(f) ? f : f ? [f] : []).filter((g) => !g.hidden);
27032
27034
  return /* @__PURE__ */ k(W, {
27033
27035
  component: "aside",
27034
27036
  sx: {
@@ -27050,7 +27052,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27050
27052
  alignItems: "center",
27051
27053
  spacing: 3,
27052
27054
  children: [/* @__PURE__ */ d(W, {
27053
- onClick: M ? (g) => {
27055
+ onClick: P ? (g) => {
27054
27056
  g.target.closest("a, button") && n();
27055
27057
  } : void 0,
27056
27058
  sx: {
@@ -27069,7 +27071,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27069
27071
  children: /* @__PURE__ */ d(cr, { color: C.text.primary })
27070
27072
  })]
27071
27073
  }),
27072
- b && P && /* @__PURE__ */ d(W, {
27074
+ b && M && /* @__PURE__ */ d(W, {
27073
27075
  paddingX: 2,
27074
27076
  paddingY: x,
27075
27077
  children: b
@@ -27089,8 +27091,8 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27089
27091
  sx: S
27090
27092
  }, g.url ? `${g.url}-${R}` : R))
27091
27093
  }),
27092
- !M && /* @__PURE__ */ d(Po, {}),
27093
- !M && /* @__PURE__ */ d(W, {
27094
+ !P && /* @__PURE__ */ d(Po, {}),
27095
+ !P && /* @__PURE__ */ d(W, {
27094
27096
  display: "flex",
27095
27097
  justifyContent: "flex-end",
27096
27098
  children: /* @__PURE__ */ d(ft, {
@@ -27262,7 +27264,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27262
27264
  })
27263
27265
  });
27264
27266
  }, c5 = ({ group: e }) => {
27265
- const { density: t, isMobile: r, isCollapsed: n } = xr(mo), { listItemPaddingY: a } = Mo[t], { groupLabel: i, items: l, collapsible: s = !1, defaultExpanded: c = !0 } = e, [u, p] = we(c), f = hd[t], v = l.filter((h) => !bA(h, r));
27267
+ const { density: t, isMobile: r, isCollapsed: n } = xr(mo), { listItemPaddingY: a } = Mo[t], { groupLabel: i, items: l, collapsible: s = !1, defaultExpanded: c = !0 } = e, [u, p] = Ie(c), f = hd[t], v = l.filter((h) => !bA(h, r));
27266
27268
  if (!v.length) return null;
27267
27269
  const A = n || !s || u, b = () => s && p((h) => !h), y = (h) => {
27268
27270
  s && (h.key === "Enter" || h.key === " ") && (h.preventDefault(), b());
@@ -27360,11 +27362,11 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27360
27362
  children: /* @__PURE__ */ d(Fu, { items: e })
27361
27363
  });
27362
27364
  }, A5 = ({ AppBar: e, NavLink: t, Search: r, Logo: n, Footer: a, items: i, enableSearchFocusShortcut: l, disableResponsive: s, hideSearchDesktop: c, bottomLink: u, sideBarWidth: p = 260, storageKey: f = u5, density: v = "standard", makeRoom: A = !1 }) => {
27363
- const [b, y] = we(CA.isDrawerOpen), [h, S] = we(() => p5(f)), [E, x] = we(!1), { breakpoints: C } = Ft(), w = uo(C.down("sm")), m = uo(C.between("sm", "md")), T = !((w || m) && !s) && (A ? !E : h), M = Ue(() => {
27365
+ const [b, y] = Ie(CA.isDrawerOpen), [h, S] = Ie(() => p5(f)), [E, x] = Ie(!1), { breakpoints: C } = Ft(), w = uo(C.down("sm")), m = uo(C.between("sm", "md")), T = !((w || m) && !s) && (A ? !E : h), P = Ue(() => {
27364
27366
  y(!1);
27365
27367
  }, []), B = Ue(() => {
27366
27368
  y(!0);
27367
- }, []), P = Ue(() => {
27369
+ }, []), M = Ue(() => {
27368
27370
  if (A) {
27369
27371
  x((g) => !g);
27370
27372
  return;
@@ -27382,7 +27384,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27382
27384
  const O = mr(() => ({
27383
27385
  AppBar: e,
27384
27386
  bottomLink: u,
27385
- closeDrawerMenu: M,
27387
+ closeDrawerMenu: P,
27386
27388
  density: v,
27387
27389
  disableResponsive: s,
27388
27390
  enableSearchFocusShortcut: l,
@@ -27398,9 +27400,9 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27398
27400
  openDrawerMenu: B,
27399
27401
  Search: r,
27400
27402
  sideBarWidth: p,
27401
- toggleCollapse: P
27403
+ toggleCollapse: M
27402
27404
  }), [
27403
- M,
27405
+ P,
27404
27406
  v,
27405
27407
  s,
27406
27408
  b,
@@ -27418,7 +27420,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27418
27420
  e,
27419
27421
  a,
27420
27422
  T,
27421
- P
27423
+ M
27422
27424
  ]);
27423
27425
  return /* @__PURE__ */ d(mo.Provider, {
27424
27426
  value: O,
@@ -27442,7 +27444,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27442
27444
  onClick: (r) => r.preventDefault(),
27443
27445
  ...t
27444
27446
  }), Du = "appBarAvatarMenu", Z9 = ({ Avatar: e, Search: t, Action: r, Logo: n, NavLink: a, avatarProps: i, searchProps: l, actionProps: s, logoProps: c, children: u, onClickBurger: p, sx: f, position: v = "static", elevation: A = 0 }) => {
27445
- const { breakpoints: b } = Ft(), { closeMenu: y, isMenuOpen: h, anchorMenu: S, openMenu: E } = pd(), { menuItems: x, onClick: C, ...w } = i || {}, m = uo(b.down("sm")), T = uo(b.between("sm", "md")), M = m || T, B = {
27447
+ const { breakpoints: b } = Ft(), { closeMenu: y, isMenuOpen: h, anchorMenu: S, openMenu: E } = pd(), { menuItems: x, onClick: C, ...w } = i || {}, m = uo(b.down("sm")), T = uo(b.between("sm", "md")), P = m || T, B = {
27446
27448
  logoContainer: {
27447
27449
  a: { display: "flex" },
27448
27450
  alignItems: "center",
@@ -27458,8 +27460,8 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27458
27460
  textDecoration: "none",
27459
27461
  width: "100%"
27460
27462
  },
27461
- "& > a.active": { backgroundColor: ({ palette: P }) => Wt(P.primary.main, P.action.selectedOpacity) },
27462
- "& > a.active:hover": { backgroundColor: ({ palette: P }) => Wt(P.primary.main, P.action.selectedOpacity + P.action.hoverOpacity) },
27463
+ "& > a.active": { backgroundColor: ({ palette: M }) => Wt(M.primary.main, M.action.selectedOpacity) },
27464
+ "& > a.active:hover": { backgroundColor: ({ palette: M }) => Wt(M.primary.main, M.action.selectedOpacity + M.action.hoverOpacity) },
27463
27465
  overflow: "hidden",
27464
27466
  padding: "0 !important"
27465
27467
  },
@@ -27484,14 +27486,14 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27484
27486
  },
27485
27487
  spacing: 1,
27486
27488
  children: [
27487
- M && /* @__PURE__ */ d(ft, {
27489
+ P && /* @__PURE__ */ d(ft, {
27488
27490
  onClick: p,
27489
27491
  edge: "end",
27490
27492
  color: "inherit",
27491
27493
  "aria-label": "menu",
27492
27494
  children: /* @__PURE__ */ d(mA, {})
27493
27495
  }),
27494
- M || n === null ? null : /* @__PURE__ */ d(W, {
27496
+ P || n === null ? null : /* @__PURE__ */ d(W, {
27495
27497
  sx: {
27496
27498
  ...B.logoContainer,
27497
27499
  flex: "1 1 0",
@@ -27531,8 +27533,8 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27531
27533
  "aria-haspopup": x ? "menu" : void 0,
27532
27534
  "aria-controls": x && h ? Du : void 0,
27533
27535
  "aria-expanded": x ? h : void 0,
27534
- onClick: (P) => {
27535
- E(P), C?.(P);
27536
+ onClick: (M) => {
27537
+ E(M), C?.(M);
27536
27538
  },
27537
27539
  children: /* @__PURE__ */ d(Sb, { ...w })
27538
27540
  })]
@@ -27544,6 +27546,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27544
27546
  anchorEl: S,
27545
27547
  open: h,
27546
27548
  onClose: y,
27549
+ sx: { zIndex: ({ zIndex: M }) => M.snackbar + 1 },
27547
27550
  anchorOrigin: {
27548
27551
  horizontal: "right",
27549
27552
  vertical: "bottom"
@@ -27553,11 +27556,11 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27553
27556
  list: { onClick: y },
27554
27557
  paper: { sx: { minWidth: 260 } }
27555
27558
  },
27556
- children: x?.map((P, O) => {
27557
- if (jt(P))
27558
- return P.key ? P : Eo(P, { key: `${x}-${O}` });
27559
- if (P && typeof P == "object" && "url" in P) {
27560
- const { url: g, label: R, icon: F, active: V, end: L, state: H } = P, X = `${g}-${R}-${O}`;
27559
+ children: x?.map((M, O) => {
27560
+ if (jt(M))
27561
+ return M.key ? M : Eo(M, { key: `${x}-${O}` });
27562
+ if (M && typeof M == "object" && "url" in M) {
27563
+ const { url: g, label: R, icon: F, active: V, end: L, state: H } = M, X = `${g}-${R}-${O}`;
27561
27564
  return /* @__PURE__ */ d(Ku, {
27562
27565
  sx: B.menuItem,
27563
27566
  onClick: y,
@@ -27646,7 +27649,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27646
27649
  const { hasPermission: i } = b5(), l = i(r, n, a);
27647
27650
  return l ? e : !l && t ? t : null;
27648
27651
  }, e8 = ({ children: e, permissions: t, disabledPermissions: r }) => {
27649
- const [n, a] = we(), i = mr(() => ({
27652
+ const [n, a] = Ie(), i = mr(() => ({
27650
27653
  disabledPermissions: r,
27651
27654
  permissions: n,
27652
27655
  setPermissions: a
@@ -27673,7 +27676,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27673
27676
  horizontal: "center",
27674
27677
  vertical: "bottom"
27675
27678
  } }) => {
27676
- const [n, a] = we(y5), i = Ue((c) => {
27679
+ const [n, a] = Ie(y5), i = Ue((c) => {
27677
27680
  a({
27678
27681
  component: c?.component,
27679
27682
  isOpen: !0,
@@ -27710,7 +27713,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27710
27713
  }, n.message), e]
27711
27714
  });
27712
27715
  }, Nu = 24, r8 = () => {
27713
- const [e, t] = we({
27716
+ const [e, t] = Ie({
27714
27717
  left: !1,
27715
27718
  right: !1
27716
27719
  }), r = Ne(null), n = Ne(null), a = Ue(() => {
@@ -27743,7 +27746,7 @@ var M9 = ({ quantity: e, unit: t, disabled: r, onChange: n }) => {
27743
27746
  openSnackbar: n
27744
27747
  };
27745
27748
  }, n8 = () => {
27746
- const [e, t] = we(0);
27749
+ const [e, t] = Ie(0);
27747
27750
  return {
27748
27751
  handleChange: Ue((r, n) => {
27749
27752
  t(n);