wcz-test 6.26.0 → 6.27.0

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 (38) hide show
  1. package/dist/DialogsContext-2Yy6yhzQ.js +6 -0
  2. package/dist/DialogsContext-2Yy6yhzQ.js.map +1 -0
  3. package/dist/{DialogsHooks-Dz4ExWPV.js → DialogsHooks-DzqOb2Zx.js} +47 -46
  4. package/dist/{DialogsHooks-Dz4ExWPV.js.map → DialogsHooks-DzqOb2Zx.js.map} +1 -1
  5. package/dist/{FileHooks-T3wXKu_b.js → FileHooks-C8Akmy_o.js} +21 -22
  6. package/dist/{FileHooks-T3wXKu_b.js.map → FileHooks-C8Akmy_o.js.map} +1 -1
  7. package/dist/{RouterListItemButton-Dmqima3h.js → RouterListItemButton-Spme9i4b.js} +2 -2
  8. package/dist/{RouterListItemButton-Dmqima3h.js.map → RouterListItemButton-Spme9i4b.js.map} +1 -1
  9. package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
  10. package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
  11. package/dist/components.js +6 -6
  12. package/dist/hooks.js +3 -3
  13. package/dist/index.d.ts +0 -3
  14. package/dist/index.js +599 -969
  15. package/dist/index.js.map +1 -1
  16. package/dist/queries.js +111 -113
  17. package/dist/queries.js.map +1 -1
  18. package/dist/utils-IWcYo8tM.js +106 -0
  19. package/dist/utils-IWcYo8tM.js.map +1 -0
  20. package/dist/utils.js +5 -5
  21. package/package.json +8 -13
  22. package/dist/DialogsContext-8xfQ3X-k.js +0 -285
  23. package/dist/DialogsContext-8xfQ3X-k.js.map +0 -1
  24. package/dist/_commonjsHelpers-ByX85dGu.js +0 -34
  25. package/dist/_commonjsHelpers-ByX85dGu.js.map +0 -1
  26. package/dist/env-BD4Wc07c.js +0 -76
  27. package/dist/env-BD4Wc07c.js.map +0 -1
  28. package/dist/i18next-Bx3TmZAT.js +0 -1337
  29. package/dist/i18next-Bx3TmZAT.js.map +0 -1
  30. package/dist/queryClient--EvGPhnh.js +0 -6
  31. package/dist/queryClient--EvGPhnh.js.map +0 -1
  32. package/dist/server.d.ts +0 -11
  33. package/dist/server.js +0 -98
  34. package/dist/server.js.map +0 -1
  35. package/dist/session-BCQDwl6n.js +0 -8581
  36. package/dist/session-BCQDwl6n.js.map +0 -1
  37. package/dist/utils-A7xW24zq.js +0 -1850
  38. package/dist/utils-A7xW24zq.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,124 +1,123 @@
1
- import { jsx as a, jsxs as D, Fragment as Mt } from "react/jsx-runtime";
2
- import { c as R } from "react/compiler-runtime";
3
- import { Stack as Ot, Typography as Ct, Chip as _t, Collapse as It, useMediaQuery as Et, useColorScheme as At, ListItemButton as ce, ListItemText as ae, ListItemIcon as de, ListItem as Pt, Avatar as $t, ListSubheader as qe, List as $e, IconButton as ze, Box as Ne, Menu as zt, InitColorSchemeScript as Nt, CssBaseline as jt, AppBar as Ut, Toolbar as Ft, LinearProgress as Yt, ThemeProvider as Bt } from "@mui/material";
4
- import { createServerFn as Ye, createIsomorphicFn as Wt } from "@tanstack/react-start";
5
- import { getCookie as yt } from "@tanstack/react-start/server";
1
+ import { jsx as i, jsxs as L, Fragment as ht } from "react/jsx-runtime";
2
+ import { c as B } from "react/compiler-runtime";
3
+ import { Stack as pt, Typography as gt, Chip as yt, Collapse as Tt, useMediaQuery as xt, useColorScheme as bt, ListItemButton as ie, ListItemText as se, ListItemIcon as ae, ListSubheader as Re, List as Pe, IconButton as Ee, ListItem as St, Box as Ae, Menu as Mt, InitColorSchemeScript as kt, CssBaseline as Lt, AppBar as Dt, Toolbar as _t, LinearProgress as vt, ThemeProvider as Ot } from "@mui/material";
4
+ import { createIsomorphicFn as Ct, createServerFn as wt } from "@tanstack/react-start";
5
+ import { getCookie as at } from "@tanstack/react-start/server";
6
6
  import C from "dayjs";
7
- import { i as W } from "./i18next-Bx3TmZAT.js";
8
- import * as Y from "react";
9
- import { useState as q, useId as Rt, useRef as ot, Fragment as Be, useEffect as xt, Suspense as Ht, useEffectEvent as qt } from "react";
10
- import { resources as it } from "virtual:wcz-layout";
11
- import le from "zod";
12
- import { s as Vt, a as Gt, D as Kt, u as Qt } from "./DialogsContext-8xfQ3X-k.js";
13
- import Xt from "@mui/icons-material/Menu";
14
- import Zt from "@mui/icons-material/MenuOpen";
15
- import { useThemeProps as Jt, styled as Ze, useTheme as en } from "@mui/material/styles";
16
- import { useIsFetching as tn, useIsMutating as nn } from "@tanstack/react-query";
17
- import { a as on } from "./env-BD4Wc07c.js";
18
- import St from "@mui/material/Box";
19
- import rt from "@mui/material/Drawer";
20
- import { useNavigate as rn, useRouterState as sn, Await as st } from "@tanstack/react-router";
21
- import an from "@mui/material/Divider";
22
- import ln from "@mui/material/List";
23
- import cn from "@mui/material/ListSubheader";
24
- import dn from "@mui/icons-material/ExpandMore";
25
- import un from "@mui/material/Avatar";
26
- import fn from "@mui/material/ListItem";
27
- import mn from "@mui/material/ListItemButton";
28
- import hn from "@mui/material/ListItemIcon";
29
- import pn from "@mui/material/ListItemText";
30
- import gn from "@mui/material/Paper";
31
- import yn from "@mui/material/Popper";
32
- import xn from "@mui/material/Typography";
33
- import { P as b, R as Sn } from "./RouterListItemButton-Dmqima3h.js";
34
- import Tn from "@mui/icons-material/AccountCircle";
35
- import at from "@mui/icons-material/ArrowBack";
36
- import bn from "@mui/icons-material/Brightness4";
37
- import lt from "@mui/icons-material/ChevronRight";
38
- import wn from "@mui/icons-material/DarkMode";
39
- import kn from "@mui/icons-material/Done";
40
- import vn from "@mui/icons-material/LightMode";
41
- import Ln from "@mui/icons-material/Logout";
42
- import Dn from "@mui/icons-material/SettingsBrightness";
43
- import Mn from "@mui/icons-material/Translate";
44
- import { a as Je } from "./utils-A7xW24zq.js";
45
- import { W as Ci, b as _i, r as Ii } from "./utils-A7xW24zq.js";
46
- import { q as et } from "./queryClient--EvGPhnh.js";
47
- import { r as On, c as tt } from "./session-BCQDwl6n.js";
48
- import Cn from "dayjs/plugin/weekOfYear.js";
49
- import _n from "dayjs/plugin/customParseFormat.js";
50
- import In from "dayjs/plugin/localizedFormat.js";
51
- import En from "dayjs/plugin/isBetween.js";
52
- import An from "dayjs/plugin/advancedFormat.js";
53
- function Ue() {
54
- return Ue = Object.assign ? Object.assign.bind() : function(t) {
7
+ import R from "i18next";
8
+ import It from "i18next-browser-languagedetector";
9
+ import * as U from "react";
10
+ import { useState as V, useId as Pt, useRef as Ke, Fragment as Ye, useEffect as lt, Suspense as Et, useEffectEvent as At } from "react";
11
+ import { useTranslation as jt, initReactI18next as zt } from "react-i18next";
12
+ import { resources as Je } from "virtual:wcz-layout";
13
+ import ze from "zod";
14
+ import { D as Nt } from "./DialogsContext-2Yy6yhzQ.js";
15
+ import $t from "@mui/icons-material/Menu";
16
+ import Yt from "@mui/icons-material/MenuOpen";
17
+ import { useThemeProps as Wt, styled as Ze, useTheme as Ut } from "@mui/material/styles";
18
+ import { useIsFetching as Ft, useIsMutating as Rt } from "@tanstack/react-query";
19
+ import { c as Bt } from "./utils-IWcYo8tM.js";
20
+ import { W as Vo, a as Go, r as Xo } from "./utils-IWcYo8tM.js";
21
+ import ct from "@mui/material/Box";
22
+ import Qe from "@mui/material/Drawer";
23
+ import { useNavigate as Ht, useRouterState as Vt } from "@tanstack/react-router";
24
+ import Gt from "@mui/material/Divider";
25
+ import Xt from "@mui/material/List";
26
+ import Zt from "@mui/material/ListSubheader";
27
+ import qt from "@mui/icons-material/ExpandMore";
28
+ import Kt from "@mui/material/Avatar";
29
+ import Jt from "@mui/material/ListItem";
30
+ import Qt from "@mui/material/ListItemButton";
31
+ import en from "@mui/material/ListItemIcon";
32
+ import tn from "@mui/material/ListItemText";
33
+ import nn from "@mui/material/Paper";
34
+ import on from "@mui/material/Popper";
35
+ import rn from "@mui/material/Typography";
36
+ import { P as S, R as sn } from "./RouterListItemButton-Spme9i4b.js";
37
+ import et from "@mui/icons-material/AccountCircle";
38
+ import tt from "@mui/icons-material/ArrowBack";
39
+ import an from "@mui/icons-material/Brightness4";
40
+ import nt from "@mui/icons-material/ChevronRight";
41
+ import ln from "@mui/icons-material/DarkMode";
42
+ import cn from "@mui/icons-material/Done";
43
+ import dn from "@mui/icons-material/LightMode";
44
+ import un from "@mui/icons-material/Logout";
45
+ import fn from "@mui/icons-material/SettingsBrightness";
46
+ import mn from "@mui/icons-material/Translate";
47
+ import hn from "dayjs/plugin/weekOfYear.js";
48
+ import pn from "dayjs/plugin/customParseFormat.js";
49
+ import gn from "dayjs/plugin/localizedFormat.js";
50
+ import yn from "dayjs/plugin/isBetween.js";
51
+ import Tn from "dayjs/plugin/advancedFormat.js";
52
+ function Ne() {
53
+ return Ne = Object.assign ? Object.assign.bind() : function(t) {
55
54
  for (var e = 1; e < arguments.length; e++) {
56
55
  var n = arguments[e];
57
- for (var o in n) ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
56
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
58
57
  }
59
58
  return t;
60
- }, Ue.apply(null, arguments);
59
+ }, Ne.apply(null, arguments);
61
60
  }
62
- function Pn(t, e) {
61
+ function xn(t, e) {
63
62
  if (t == null) return {};
64
63
  var n = {};
65
- for (var o in t) if ({}.hasOwnProperty.call(t, o)) {
66
- if (e.indexOf(o) !== -1) continue;
67
- n[o] = t[o];
64
+ for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
65
+ if (e.indexOf(r) !== -1) continue;
66
+ n[r] = t[r];
68
67
  }
69
68
  return n;
70
69
  }
71
- const $n = ["localeText"], Qe = /* @__PURE__ */ Y.createContext(null);
72
- process.env.NODE_ENV !== "production" && (Qe.displayName = "PickerAdapterContext");
73
- const nt = function(e) {
70
+ const bn = ["localeText"], Ge = /* @__PURE__ */ U.createContext(null);
71
+ process.env.NODE_ENV !== "production" && (Ge.displayName = "PickerAdapterContext");
72
+ const qe = function(e) {
74
73
  const {
75
74
  localeText: n
76
- } = e, o = Pn(e, $n), {
77
- adapter: r,
78
- localeText: s
79
- } = Y.useContext(Qe) ?? {
75
+ } = e, r = xn(e, bn), {
76
+ adapter: s,
77
+ localeText: a
78
+ } = U.useContext(Ge) ?? {
80
79
  adapter: void 0,
81
80
  localeText: void 0
82
- }, i = Jt({
81
+ }, o = Wt({
83
82
  // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
84
83
  // We will then merge this theme value with our value manually
85
- props: o,
84
+ props: r,
86
85
  name: "MuiLocalizationProvider"
87
86
  }), {
88
87
  children: l,
89
- dateAdapter: c,
88
+ dateAdapter: d,
90
89
  dateFormats: u,
91
- dateLibInstance: d,
90
+ dateLibInstance: c,
92
91
  adapterLocale: m,
93
92
  localeText: h
94
- } = i, f = Y.useMemo(() => Ue({}, h, s, n), [h, s, n]), p = Y.useMemo(() => {
95
- if (!c)
96
- return r || null;
97
- const w = new c({
93
+ } = o, f = U.useMemo(() => Ne({}, h, a, n), [h, a, n]), p = U.useMemo(() => {
94
+ if (!d)
95
+ return s || null;
96
+ const M = new d({
98
97
  locale: m,
99
98
  formats: u,
100
- instance: d
99
+ instance: c
101
100
  });
102
- if (!w.isMUIAdapter)
101
+ if (!M.isMUIAdapter)
103
102
  throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`", "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", "More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
104
103
  `));
105
- return w;
106
- }, [c, m, u, d, r]), g = Y.useMemo(() => p ? {
104
+ return M;
105
+ }, [d, m, u, c, s]), g = U.useMemo(() => p ? {
107
106
  minDate: p.date("1900-01-01T00:00:00.000"),
108
107
  maxDate: p.date("2099-12-31T00:00:00.000")
109
- } : null, [p]), x = Y.useMemo(() => ({
108
+ } : null, [p]), T = U.useMemo(() => ({
110
109
  utils: p,
111
110
  adapter: p,
112
111
  defaultDates: g,
113
112
  localeText: f
114
113
  }), [g, p, f]);
115
- return /* @__PURE__ */ a(Qe.Provider, {
116
- value: x,
114
+ return /* @__PURE__ */ i(Ge.Provider, {
115
+ value: T,
117
116
  children: l
118
117
  });
119
118
  };
120
- process.env.NODE_ENV !== "production" && (nt.displayName = "LocalizationProvider");
121
- process.env.NODE_ENV !== "production" && (nt.propTypes = {
119
+ process.env.NODE_ENV !== "production" && (qe.displayName = "LocalizationProvider");
120
+ process.env.NODE_ENV !== "production" && (qe.propTypes = {
122
121
  // ----------------------------- Warning --------------------------------
123
122
  // | These PropTypes are generated from the TypeScript type definitions |
124
123
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -126,38 +125,38 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
126
125
  /**
127
126
  * Locale for the date library you are using
128
127
  */
129
- adapterLocale: b.any,
130
- children: b.node,
128
+ adapterLocale: S.any,
129
+ children: S.node,
131
130
  /**
132
131
  * Date library adapter class function.
133
132
  * @see See the localization provider {@link https://mui.com/x/react-date-pickers/quickstart/#integrate-provider-and-adapter date adapter setup section} for more details.
134
133
  */
135
- dateAdapter: b.func,
134
+ dateAdapter: S.func,
136
135
  /**
137
136
  * Formats that are used for any child pickers
138
137
  */
139
- dateFormats: b.shape({
140
- dayOfMonth: b.string,
141
- dayOfMonthFull: b.string,
142
- fullDate: b.string,
143
- fullTime12h: b.string,
144
- fullTime24h: b.string,
145
- hours12h: b.string,
146
- hours24h: b.string,
147
- keyboardDate: b.string,
148
- keyboardDateTime12h: b.string,
149
- keyboardDateTime24h: b.string,
150
- meridiem: b.string,
151
- minutes: b.string,
152
- month: b.string,
153
- monthShort: b.string,
154
- normalDate: b.string,
155
- normalDateWithWeekday: b.string,
156
- seconds: b.string,
157
- shortDate: b.string,
158
- weekday: b.string,
159
- weekdayShort: b.string,
160
- year: b.string
138
+ dateFormats: S.shape({
139
+ dayOfMonth: S.string,
140
+ dayOfMonthFull: S.string,
141
+ fullDate: S.string,
142
+ fullTime12h: S.string,
143
+ fullTime24h: S.string,
144
+ hours12h: S.string,
145
+ hours24h: S.string,
146
+ keyboardDate: S.string,
147
+ keyboardDateTime12h: S.string,
148
+ keyboardDateTime24h: S.string,
149
+ meridiem: S.string,
150
+ minutes: S.string,
151
+ month: S.string,
152
+ monthShort: S.string,
153
+ normalDate: S.string,
154
+ normalDateWithWeekday: S.string,
155
+ seconds: S.string,
156
+ shortDate: S.string,
157
+ weekday: S.string,
158
+ weekdayShort: S.string,
159
+ year: S.string
161
160
  }),
162
161
  /**
163
162
  * Date library instance you are using, if it has some global overrides
@@ -165,35 +164,35 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
165
164
  * dateLibInstance={momentTimeZone}
166
165
  * ```
167
166
  */
168
- dateLibInstance: b.any,
167
+ dateLibInstance: S.any,
169
168
  /**
170
169
  * Locale for components texts
171
170
  */
172
- localeText: b.object
171
+ localeText: S.object
173
172
  });
174
- const zn = typeof window < "u" ? Y.useLayoutEffect : Y.useEffect;
175
- function Ve(t) {
176
- const e = Y.useRef(t);
177
- return zn(() => {
173
+ const Sn = typeof window < "u" ? U.useLayoutEffect : U.useEffect;
174
+ function Be(t) {
175
+ const e = U.useRef(t);
176
+ return Sn(() => {
178
177
  e.current = t;
179
- }), Y.useRef((...n) => (
178
+ }), U.useRef((...n) => (
180
179
  // @ts-expect-error hide `this`
181
180
  (0, e.current)(...n)
182
181
  )).current;
183
182
  }
184
- const ct = /* @__PURE__ */ new Set();
185
- function Nn(t, e = "warning") {
183
+ const ot = /* @__PURE__ */ new Set();
184
+ function Mn(t, e = "warning") {
186
185
  if (process.env.NODE_ENV === "production")
187
186
  return;
188
187
  const n = Array.isArray(t) ? t.join(`
189
188
  `) : t;
190
- ct.has(n) || (ct.add(n), e === "error" ? console.error(n) : console.warn(n));
189
+ ot.has(n) || (ot.add(n), e === "error" ? console.error(n) : console.warn(n));
191
190
  }
192
- C.extend(In);
193
- C.extend(Cn);
194
- C.extend(En);
195
- C.extend(An);
196
- const jn = {
191
+ C.extend(gn);
192
+ C.extend(hn);
193
+ C.extend(yn);
194
+ C.extend(Tn);
195
+ const kn = {
197
196
  // Year
198
197
  YY: "year",
199
198
  YYYY: {
@@ -275,7 +274,7 @@ const jn = {
275
274
  maxLength: 2
276
275
  },
277
276
  ss: "seconds"
278
- }, Un = {
277
+ }, Ln = {
279
278
  year: "YYYY",
280
279
  month: "MMMM",
281
280
  monthShort: "MMM",
@@ -297,10 +296,10 @@ const jn = {
297
296
  fullTime24h: "HH:mm",
298
297
  keyboardDateTime12h: "L hh:mm A",
299
298
  keyboardDateTime24h: "L HH:mm"
300
- }, Ge = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
301
- `), dt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
299
+ }, He = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
300
+ `), rt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
302
301
  `);
303
- class Fn {
302
+ class Dn {
304
303
  isMUIAdapter = !0;
305
304
  isTimezoneCompatible = !0;
306
305
  lib = "dayjs";
@@ -308,12 +307,12 @@ class Fn {
308
307
  start: "[",
309
308
  end: "]"
310
309
  };
311
- formatTokenMap = jn;
310
+ formatTokenMap = kn;
312
311
  constructor({
313
312
  locale: e,
314
313
  formats: n
315
314
  } = {}) {
316
- this.locale = e, this.formats = Ue({}, Un, n), C.extend(_n);
315
+ this.locale = e, this.formats = Ne({}, Ln, n), C.extend(pn);
317
316
  }
318
317
  setLocaleToValue = (e) => {
319
318
  const n = this.getCurrentLocaleCode();
@@ -321,9 +320,9 @@ class Fn {
321
320
  };
322
321
  hasUTCPlugin = () => typeof C.utc < "u";
323
322
  hasTimezonePlugin = () => typeof C.tz < "u";
324
- isSame = (e, n, o) => {
325
- const r = this.setTimezone(n, this.getTimezone(e));
326
- return e.format(o) === r.format(o);
323
+ isSame = (e, n, r) => {
324
+ const s = this.setTimezone(n, this.getTimezone(e));
325
+ return e.format(r) === s.format(r);
327
326
  };
328
327
  /**
329
328
  * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
@@ -341,29 +340,29 @@ class Fn {
341
340
  createSystemDate = (e) => {
342
341
  let n;
343
342
  if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
344
- const o = C.tz.guess();
345
- o === "UTC" ? n = C(e) : n = C.tz(e, o);
343
+ const r = C.tz.guess();
344
+ r === "UTC" ? n = C(e) : n = C.tz(e, r);
346
345
  } else
347
346
  n = C(e);
348
347
  return this.setLocaleToValue(n);
349
348
  };
350
349
  createUTCDate = (e) => {
351
350
  if (!this.hasUTCPlugin())
352
- throw new Error(Ge);
351
+ throw new Error(He);
353
352
  return this.setLocaleToValue(C.utc(e));
354
353
  };
355
354
  createTZDate = (e, n) => {
356
355
  if (!this.hasUTCPlugin())
357
- throw new Error(Ge);
356
+ throw new Error(He);
358
357
  if (!this.hasTimezonePlugin())
359
- throw new Error(dt);
360
- const o = e !== void 0 && !e.endsWith("Z");
361
- return this.setLocaleToValue(C(e).tz(this.cleanTimezone(n), o));
358
+ throw new Error(rt);
359
+ const r = e !== void 0 && !e.endsWith("Z");
360
+ return this.setLocaleToValue(C(e).tz(this.cleanTimezone(n), r));
362
361
  };
363
362
  getLocaleFormats = () => {
364
363
  const e = C.Ls, n = this.locale || "en";
365
- let o = e[n];
366
- return o === void 0 && (process.env.NODE_ENV !== "production" && Nn(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), o = e.en), o.formats;
364
+ let r = e[n];
365
+ return r === void 0 && (process.env.NODE_ENV !== "production" && Mn(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), r = e.en), r.formats;
367
366
  };
368
367
  /**
369
368
  * If the new day does not have the same offset as the old one (when switching to summer day time for example),
@@ -376,10 +375,10 @@ class Fn {
376
375
  return e;
377
376
  const n = this.getTimezone(e);
378
377
  if (n !== "UTC") {
379
- const o = e.tz(this.cleanTimezone(n), !0);
380
- if (o.$offset === (e.$offset ?? 0))
378
+ const r = e.tz(this.cleanTimezone(n), !0);
379
+ if (r.$offset === (e.$offset ?? 0))
381
380
  return e;
382
- e.$offset = o.$offset;
381
+ e.$offset = r.$offset;
383
382
  }
384
383
  return e;
385
384
  };
@@ -398,7 +397,7 @@ class Fn {
398
397
  return e;
399
398
  if (n === "UTC") {
400
399
  if (!this.hasUTCPlugin())
401
- throw new Error(Ge);
400
+ throw new Error(He);
402
401
  return e.utc();
403
402
  }
404
403
  if (n === "system")
@@ -406,7 +405,7 @@ class Fn {
406
405
  if (!this.hasTimezonePlugin()) {
407
406
  if (n === "default")
408
407
  return e;
409
- throw new Error(dt);
408
+ throw new Error(rt);
410
409
  }
411
410
  return this.setLocaleToValue(C.tz(e, this.cleanTimezone(n)));
412
411
  };
@@ -415,10 +414,10 @@ class Fn {
415
414
  getCurrentLocaleCode = () => this.locale || "en";
416
415
  is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
417
416
  expandFormat = (e) => {
418
- const n = this.getLocaleFormats(), o = (r) => r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (s, i, l) => i || l.slice(1));
419
- return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (r, s, i) => {
420
- const l = i && i.toUpperCase();
421
- return s || n[i] || o(n[l]);
417
+ const n = this.getLocaleFormats(), r = (s) => s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (a, o, l) => o || l.slice(1));
418
+ return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (s, a, o) => {
419
+ const l = o && o.toUpperCase();
420
+ return a || n[o] || r(n[l]);
422
421
  });
423
422
  };
424
423
  isValid = (e) => e == null ? !1 : e.isValid();
@@ -436,7 +435,7 @@ class Fn {
436
435
  isBefore = (e, n) => e < n;
437
436
  isBeforeYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() < n.utc() : e.isBefore(n, "year");
438
437
  isBeforeDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() < n.utc() : e.isBefore(n, "day");
439
- isWithinRange = (e, [n, o]) => e >= n && e <= o;
438
+ isWithinRange = (e, [n, r]) => e >= n && e <= r;
440
439
  startOfYear = (e) => this.adjustOffset(e.startOf("year"));
441
440
  startOfMonth = (e) => this.adjustOffset(e.startOf("month"));
442
441
  startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week"));
@@ -468,407 +467,93 @@ class Fn {
468
467
  setMilliseconds = (e, n) => this.adjustOffset(e.set("millisecond", n));
469
468
  getDaysInMonth = (e) => e.daysInMonth();
470
469
  getWeekArray = (e) => {
471
- const n = this.startOfWeek(this.startOfMonth(e)), o = this.endOfWeek(this.endOfMonth(e));
472
- let r = 0, s = n;
473
- const i = [];
474
- for (; s < o; ) {
475
- const l = Math.floor(r / 7);
476
- i[l] = i[l] || [], i[l].push(s), s = this.addDays(s, 1), r += 1;
470
+ const n = this.startOfWeek(this.startOfMonth(e)), r = this.endOfWeek(this.endOfMonth(e));
471
+ let s = 0, a = n;
472
+ const o = [];
473
+ for (; a < r; ) {
474
+ const l = Math.floor(s / 7);
475
+ o[l] = o[l] || [], o[l].push(a), a = this.addDays(a, 1), s += 1;
477
476
  }
478
- return i;
477
+ return o;
479
478
  };
480
479
  getWeekNumber = (e) => e.week();
481
480
  getDayOfWeek(e) {
482
481
  return e.day() + 1;
483
482
  }
484
483
  getYearRange = ([e, n]) => {
485
- const o = this.startOfYear(e), r = this.endOfYear(n), s = [];
486
- let i = o;
487
- for (; this.isBefore(i, r); )
488
- s.push(i), i = this.addYears(i, 1);
489
- return s;
484
+ const r = this.startOfYear(e), s = this.endOfYear(n), a = [];
485
+ let o = r;
486
+ for (; this.isBefore(o, s); )
487
+ a.push(o), o = this.addYears(o, 1);
488
+ return a;
490
489
  };
491
490
  }
492
- const {
493
- slice: Yn,
494
- forEach: Bn
495
- } = [];
496
- function Wn(t) {
497
- return Bn.call(Yn.call(arguments, 1), (e) => {
498
- if (e)
499
- for (const n in e)
500
- t[n] === void 0 && (t[n] = e[n]);
501
- }), t;
502
- }
503
- function Rn(t) {
504
- return typeof t != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((n) => n.test(t));
505
- }
506
- const ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, e) {
507
- const o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
508
- path: "/"
509
- }, r = encodeURIComponent(e);
510
- let s = `${t}=${r}`;
511
- if (o.maxAge > 0) {
512
- const i = o.maxAge - 0;
513
- if (Number.isNaN(i)) throw new Error("maxAge should be a Number");
514
- s += `; Max-Age=${Math.floor(i)}`;
515
- }
516
- if (o.domain) {
517
- if (!ut.test(o.domain))
518
- throw new TypeError("option domain is invalid");
519
- s += `; Domain=${o.domain}`;
520
- }
521
- if (o.path) {
522
- if (!ut.test(o.path))
523
- throw new TypeError("option path is invalid");
524
- s += `; Path=${o.path}`;
525
- }
526
- if (o.expires) {
527
- if (typeof o.expires.toUTCString != "function")
528
- throw new TypeError("option expires is invalid");
529
- s += `; Expires=${o.expires.toUTCString()}`;
530
- }
531
- if (o.httpOnly && (s += "; HttpOnly"), o.secure && (s += "; Secure"), o.sameSite)
532
- switch (typeof o.sameSite == "string" ? o.sameSite.toLowerCase() : o.sameSite) {
533
- case !0:
534
- s += "; SameSite=Strict";
535
- break;
536
- case "lax":
537
- s += "; SameSite=Lax";
538
- break;
539
- case "strict":
540
- s += "; SameSite=Strict";
541
- break;
542
- case "none":
543
- s += "; SameSite=None";
544
- break;
545
- default:
546
- throw new TypeError("option sameSite is invalid");
547
- }
548
- return o.partitioned && (s += "; Partitioned"), s;
549
- }, ft = {
550
- create(t, e, n, o) {
551
- let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
552
- path: "/",
553
- sameSite: "strict"
554
- };
555
- n && (r.expires = /* @__PURE__ */ new Date(), r.expires.setTime(r.expires.getTime() + n * 60 * 1e3)), o && (r.domain = o), document.cookie = Hn(t, e, r);
556
- },
557
- read(t) {
558
- const e = `${t}=`, n = document.cookie.split(";");
559
- for (let o = 0; o < n.length; o++) {
560
- let r = n[o];
561
- for (; r.charAt(0) === " "; ) r = r.substring(1, r.length);
562
- if (r.indexOf(e) === 0) return r.substring(e.length, r.length);
563
- }
564
- return null;
565
- },
566
- remove(t, e) {
567
- this.create(t, "", -1, e);
568
- }
569
- };
570
- var qn = {
571
- name: "cookie",
572
- // Deconstruct the options object and extract the lookupCookie property
573
- lookup(t) {
574
- let {
575
- lookupCookie: e
576
- } = t;
577
- if (e && typeof document < "u")
578
- return ft.read(e) || void 0;
579
- },
580
- // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
581
- cacheUserLanguage(t, e) {
582
- let {
583
- lookupCookie: n,
584
- cookieMinutes: o,
585
- cookieDomain: r,
586
- cookieOptions: s
587
- } = e;
588
- n && typeof document < "u" && ft.create(n, t, o, r, s);
589
- }
590
- }, Vn = {
591
- name: "querystring",
592
- // Deconstruct the options object and extract the lookupQuerystring property
593
- lookup(t) {
594
- let {
595
- lookupQuerystring: e
596
- } = t, n;
597
- if (typeof window < "u") {
598
- let {
599
- search: o
600
- } = window.location;
601
- !window.location.search && window.location.hash?.indexOf("?") > -1 && (o = window.location.hash.substring(window.location.hash.indexOf("?")));
602
- const s = o.substring(1).split("&");
603
- for (let i = 0; i < s.length; i++) {
604
- const l = s[i].indexOf("=");
605
- l > 0 && s[i].substring(0, l) === e && (n = s[i].substring(l + 1));
606
- }
607
- }
608
- return n;
609
- }
610
- }, Gn = {
611
- name: "hash",
612
- // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
613
- lookup(t) {
614
- let {
615
- lookupHash: e,
616
- lookupFromHashIndex: n
617
- } = t, o;
618
- if (typeof window < "u") {
619
- const {
620
- hash: r
621
- } = window.location;
622
- if (r && r.length > 2) {
623
- const s = r.substring(1);
624
- if (e) {
625
- const i = s.split("&");
626
- for (let l = 0; l < i.length; l++) {
627
- const c = i[l].indexOf("=");
628
- c > 0 && i[l].substring(0, c) === e && (o = i[l].substring(c + 1));
629
- }
630
- }
631
- if (o) return o;
632
- if (!o && n > -1) {
633
- const i = r.match(/\/([a-zA-Z-]*)/g);
634
- return Array.isArray(i) ? i[typeof n == "number" ? n : 0]?.replace("/", "") : void 0;
635
- }
636
- }
637
- }
638
- return o;
639
- }
640
- };
641
- let re = null;
642
- const mt = () => {
643
- if (re !== null) return re;
644
- try {
645
- if (re = typeof window < "u" && window.localStorage !== null, !re)
646
- return !1;
647
- const t = "i18next.translate.boo";
648
- window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
649
- } catch {
650
- re = !1;
651
- }
652
- return re;
653
- };
654
- var Kn = {
655
- name: "localStorage",
656
- // Deconstruct the options object and extract the lookupLocalStorage property
657
- lookup(t) {
658
- let {
659
- lookupLocalStorage: e
660
- } = t;
661
- if (e && mt())
662
- return window.localStorage.getItem(e) || void 0;
663
- },
664
- // Deconstruct the options object and extract the lookupLocalStorage property
665
- cacheUserLanguage(t, e) {
666
- let {
667
- lookupLocalStorage: n
668
- } = e;
669
- n && mt() && window.localStorage.setItem(n, t);
670
- }
671
- };
672
- let se = null;
673
- const ht = () => {
674
- if (se !== null) return se;
675
- try {
676
- if (se = typeof window < "u" && window.sessionStorage !== null, !se)
677
- return !1;
678
- const t = "i18next.translate.boo";
679
- window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
680
- } catch {
681
- se = !1;
682
- }
683
- return se;
684
- };
685
- var Qn = {
686
- name: "sessionStorage",
687
- lookup(t) {
688
- let {
689
- lookupSessionStorage: e
690
- } = t;
691
- if (e && ht())
692
- return window.sessionStorage.getItem(e) || void 0;
693
- },
694
- cacheUserLanguage(t, e) {
695
- let {
696
- lookupSessionStorage: n
697
- } = e;
698
- n && ht() && window.sessionStorage.setItem(n, t);
699
- }
700
- }, Xn = {
701
- name: "navigator",
702
- lookup(t) {
703
- const e = [];
704
- if (typeof navigator < "u") {
705
- const {
706
- languages: n,
707
- userLanguage: o,
708
- language: r
709
- } = navigator;
710
- if (n)
711
- for (let s = 0; s < n.length; s++)
712
- e.push(n[s]);
713
- o && e.push(o), r && e.push(r);
714
- }
715
- return e.length > 0 ? e : void 0;
716
- }
717
- }, Zn = {
718
- name: "htmlTag",
719
- // Deconstruct the options object and extract the htmlTag property
720
- lookup(t) {
721
- let {
722
- htmlTag: e
723
- } = t, n;
724
- const o = e || (typeof document < "u" ? document.documentElement : null);
725
- return o && typeof o.getAttribute == "function" && (n = o.getAttribute("lang")), n;
726
- }
727
- }, Jn = {
728
- name: "path",
729
- // Deconstruct the options object and extract the lookupFromPathIndex property
730
- lookup(t) {
731
- let {
732
- lookupFromPathIndex: e
733
- } = t;
734
- if (typeof window > "u") return;
735
- const n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
736
- return Array.isArray(n) ? n[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
737
- }
738
- }, eo = {
739
- name: "subdomain",
740
- lookup(t) {
741
- let {
742
- lookupFromSubdomainIndex: e
743
- } = t;
744
- const n = typeof e == "number" ? e + 1 : 1, o = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
745
- if (o)
746
- return o[n];
747
- }
748
- };
749
- let Tt = !1;
750
- try {
751
- document.cookie, Tt = !0;
752
- } catch {
753
- }
754
- const bt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
755
- Tt || bt.splice(1, 1);
756
- const to = () => ({
757
- order: bt,
758
- lookupQuerystring: "lng",
759
- lookupCookie: "i18next",
760
- lookupLocalStorage: "i18nextLng",
761
- lookupSessionStorage: "i18nextLng",
762
- // cache user language
763
- caches: ["localStorage"],
764
- excludeCacheFor: ["cimode"],
765
- // cookieMinutes: 10,
766
- // cookieDomain: 'myDomain'
767
- convertDetectedLanguage: (t) => t
768
- });
769
- class wt {
770
- constructor(e) {
771
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
772
- this.type = "languageDetector", this.detectors = {}, this.init(e, n);
773
- }
774
- init() {
775
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
776
- languageUtils: {}
777
- }, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
778
- this.services = e, this.options = Wn(n, this.options || {}, to()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (r) => r.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = o, this.addDetector(qn), this.addDetector(Vn), this.addDetector(Kn), this.addDetector(Qn), this.addDetector(Xn), this.addDetector(Zn), this.addDetector(Jn), this.addDetector(eo), this.addDetector(Gn);
779
- }
780
- addDetector(e) {
781
- return this.detectors[e.name] = e, this;
782
- }
783
- detect() {
784
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.order, n = [];
785
- return e.forEach((o) => {
786
- if (this.detectors[o]) {
787
- let r = this.detectors[o].lookup(this.options);
788
- r && typeof r == "string" && (r = [r]), r && (n = n.concat(r));
789
- }
790
- }), n = n.filter((o) => o != null && !Rn(o)).map((o) => this.options.convertDetectedLanguage(o)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? n : n.length > 0 ? n[0] : null;
791
- }
792
- cacheUserLanguage(e) {
793
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
794
- n && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(e) > -1 || n.forEach((o) => {
795
- this.detectors[o] && this.detectors[o].cacheUserLanguage(e, this.options);
796
- }));
797
- }
798
- }
799
- wt.type = "languageDetector";
800
- const no = {
801
- type: "3rdParty",
802
- init(t) {
803
- Vt(t.options.react), Gt(t);
804
- }
805
- };
806
- function oo({
491
+ function _n({
807
492
  children: t
808
493
  }) {
809
- const [e, n] = q([]), o = Rt(), r = ot(0), s = ot(/* @__PURE__ */ new WeakMap()), i = Ve(function(m, h, f = {}) {
494
+ const [e, n] = V([]), r = Pt(), s = Ke(0), a = Ke(/* @__PURE__ */ new WeakMap()), o = Be(function(m, h, f = {}) {
810
495
  const {
811
496
  onClose: p = async () => {
812
497
  }
813
498
  } = f;
814
499
  let g;
815
- const x = new Promise((y) => {
500
+ const T = new Promise((y) => {
816
501
  g = y;
817
- }), w = `${o}-${r.current}`;
818
- r.current += 1;
819
- const S = {
820
- key: w,
502
+ }), M = `${r}-${s.current}`;
503
+ s.current += 1;
504
+ const x = {
505
+ key: M,
821
506
  open: !0,
822
- promise: x,
507
+ promise: T,
823
508
  Component: m,
824
509
  payload: h,
825
510
  onClose: p,
826
511
  resolve: g
827
512
  };
828
- return s.current.set(x, S), n((y) => [...y, S]), x;
829
- }), l = (d) => {
830
- n((m) => m.filter((h) => h.promise !== d)), s.current.delete(d);
831
- }, c = Ve(function(m) {
513
+ return a.current.set(T, x), n((y) => [...y, x]), T;
514
+ }), l = (c) => {
515
+ n((m) => m.filter((h) => h.promise !== c)), a.current.delete(c);
516
+ }, d = Be(function(m) {
832
517
  n((h) => h.map((f) => f.promise === m ? {
833
518
  ...f,
834
519
  open: !1
835
520
  } : f)), setTimeout(() => l(m), 1e3);
836
- }), u = Ve(async function(m, h) {
837
- const f = s.current.get(m);
521
+ }), u = Be(async function(m, h) {
522
+ const f = a.current.get(m);
838
523
  if (!f)
839
524
  throw new Error("Dialog not found in stack");
840
525
  try {
841
526
  await f.onClose(h);
842
527
  } finally {
843
- f.resolve(h), c(m);
528
+ f.resolve(h), d(m);
844
529
  }
845
530
  return m;
846
531
  });
847
- return /* @__PURE__ */ D(Kt.Provider, { value: {
848
- open: i,
532
+ return /* @__PURE__ */ L(Nt.Provider, { value: {
533
+ open: o,
849
534
  close: u
850
535
  }, children: [
851
536
  t,
852
537
  e.map(({
853
- key: d,
538
+ key: c,
854
539
  open: m,
855
540
  Component: h,
856
541
  payload: f,
857
542
  promise: p
858
- }) => /* @__PURE__ */ a(h, { payload: f, open: m, onClose: async (g) => {
543
+ }) => /* @__PURE__ */ i(h, { payload: f, open: m, onClose: async (g) => {
859
544
  await u(p, g);
860
- } }, d))
545
+ } }, c))
861
546
  ] });
862
547
  }
863
- const io = () => {
864
- const t = R(1);
548
+ const vn = () => {
549
+ const t = B(1);
865
550
  let e;
866
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ D(Ot, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
867
- /* @__PURE__ */ a("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
868
- /* @__PURE__ */ a(Ct, { variant: "h6", children: on.VITE_APP_TITLE }),
869
- /* @__PURE__ */ a(_t, { size: "small", label: "TEST", color: "info" })
551
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ L(pt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
552
+ /* @__PURE__ */ i("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
553
+ /* @__PURE__ */ i(gt, { variant: "h6", children: Bt.VITE_APP_TITLE }),
554
+ /* @__PURE__ */ i(yt, { size: "small", label: "TEST", color: "info" })
870
555
  ] }), t[0] = e) : e = t[0], e;
871
- }, Ke = 34, ro = Ze(mn)(({
556
+ }, Ve = 34, On = Ze(Qt)(({
872
557
  theme: t
873
558
  }) => ({
874
559
  borderRadius: 8,
@@ -889,7 +574,7 @@ const io = () => {
889
574
  "& .MuiAvatar-root": {
890
575
  backgroundColor: (t.vars ?? t).palette.action.active
891
576
  }
892
- })), so = Ze(Sn)(({
577
+ })), Cn = Ze(sn)(({
893
578
  theme: t
894
579
  }) => ({
895
580
  borderRadius: 8,
@@ -910,40 +595,40 @@ const io = () => {
910
595
  "& .MuiAvatar-root": {
911
596
  backgroundColor: (t.vars ?? t).palette.action.active
912
597
  }
913
- })), ao = (t) => {
914
- const e = R(17), {
598
+ })), wn = (t) => {
599
+ const e = B(17), {
915
600
  item: n,
916
- collapsed: o
601
+ collapsed: r
917
602
  } = t;
918
- if (n.icon || o) {
919
- let r;
920
- e[0] !== o ? (r = o ? {
603
+ if (n.icon || r) {
604
+ let s;
605
+ e[0] !== r ? (s = r ? {
921
606
  position: "absolute",
922
607
  left: "50%",
923
608
  top: "calc(50% - 6px)",
924
609
  transform: "translate(-50%, -50%)"
925
- } : {}, e[0] = o, e[1] = r) : r = e[1];
926
- let s;
927
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
610
+ } : {}, e[0] = r, e[1] = s) : s = e[1];
611
+ let a;
612
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
928
613
  display: "flex",
929
614
  alignItems: "center",
930
615
  justifyContent: "center",
931
- minWidth: Ke
932
- }, e[2] = s) : s = e[2];
933
- const i = n.icon ?? null;
616
+ minWidth: Ve
617
+ }, e[2] = a) : a = e[2];
618
+ const o = n.icon ?? null;
934
619
  let l;
935
- e[3] !== o || e[4] !== n.icon || e[5] !== n.title ? (l = !n.icon && o ? /* @__PURE__ */ a(un, { sx: {
936
- width: Ke - 7,
937
- height: Ke - 7,
620
+ e[3] !== r || e[4] !== n.icon || e[5] !== n.title ? (l = !n.icon && r ? /* @__PURE__ */ i(Kt, { sx: {
621
+ width: Ve - 7,
622
+ height: Ve - 7,
938
623
  fontSize: 12
939
- }, children: n.title }) : null, e[3] = o, e[4] = n.icon, e[5] = n.title, e[6] = l) : l = e[6];
940
- let c;
941
- e[7] !== i || e[8] !== l ? (c = /* @__PURE__ */ D(hn, { sx: s, children: [
942
- i,
624
+ }, children: n.title }) : null, e[3] = r, e[4] = n.icon, e[5] = n.title, e[6] = l) : l = e[6];
625
+ let d;
626
+ e[7] !== o || e[8] !== l ? (d = /* @__PURE__ */ L(en, { sx: a, children: [
627
+ o,
943
628
  l
944
- ] }), e[7] = i, e[8] = l, e[9] = c) : c = e[9];
629
+ ] }), e[7] = o, e[8] = l, e[9] = d) : d = e[9];
945
630
  let u;
946
- e[10] !== o || e[11] !== n.title ? (u = o ? /* @__PURE__ */ a(xn, { variant: "caption", sx: {
631
+ e[10] !== r || e[11] !== n.title ? (u = r ? /* @__PURE__ */ i(rn, { variant: "caption", sx: {
947
632
  position: "absolute",
948
633
  bottom: -18,
949
634
  left: "50%",
@@ -954,97 +639,97 @@ const io = () => {
954
639
  whiteSpace: "nowrap",
955
640
  overflow: "hidden",
956
641
  textOverflow: "ellipsis",
957
- maxWidth: Fe - 28
958
- }, children: n.title }) : null, e[10] = o, e[11] = n.title, e[12] = u) : u = e[12];
959
- let d;
960
- return e[13] !== r || e[14] !== c || e[15] !== u ? (d = /* @__PURE__ */ D(St, { sx: r, children: [
961
- c,
642
+ maxWidth: $e - 28
643
+ }, children: n.title }) : null, e[10] = r, e[11] = n.title, e[12] = u) : u = e[12];
644
+ let c;
645
+ return e[13] !== s || e[14] !== d || e[15] !== u ? (c = /* @__PURE__ */ L(ct, { sx: s, children: [
646
+ d,
962
647
  u
963
- ] }), e[13] = r, e[14] = c, e[15] = u, e[16] = d) : d = e[16], d;
648
+ ] }), e[13] = s, e[14] = d, e[15] = u, e[16] = c) : c = e[16], c;
964
649
  }
965
650
  return null;
966
- }, lo = (t) => {
967
- const e = R(10), {
651
+ }, In = (t) => {
652
+ const e = B(10), {
968
653
  open: n,
969
- anchorEl: o,
970
- children: r
654
+ anchorEl: r,
655
+ children: s
971
656
  } = t;
972
- let s;
973
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
657
+ let a;
658
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
974
659
  name: "offset",
975
660
  options: {
976
661
  offset: [6, 0]
977
662
  }
978
- }, e[0] = s) : s = e[0];
979
- let i;
980
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
663
+ }, e[0] = a) : a = e[0];
664
+ let o;
665
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
981
666
  name: "preventOverflow",
982
667
  options: {
983
668
  padding: 8
984
669
  }
985
- }, e[1] = i) : i = e[1];
670
+ }, e[1] = o) : o = e[1];
986
671
  let l;
987
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [s, i, {
672
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [a, o, {
988
673
  name: "flip",
989
674
  options: {
990
675
  fallbackPlacements: ["right-end", "left-start"]
991
676
  }
992
677
  }], e[2] = l) : l = e[2];
993
- let c;
994
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
678
+ let d;
679
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
995
680
  pt: 0.5,
996
681
  pb: 0.5,
997
682
  maxHeight: "min(calc(100vh - 100px), 560px)",
998
683
  overflowY: "auto",
999
684
  overscrollBehavior: "contain"
1000
- }, e[3] = c) : c = e[3];
685
+ }, e[3] = d) : d = e[3];
1001
686
  let u;
1002
- e[4] !== r ? (u = /* @__PURE__ */ a(gn, { sx: c, children: r }), e[4] = r, e[5] = u) : u = e[5];
1003
- let d;
1004
- return e[6] !== o || e[7] !== n || e[8] !== u ? (d = /* @__PURE__ */ a(yn, { open: n, anchorEl: o, placement: "right-start", modifiers: l, children: u }), e[6] = o, e[7] = n, e[8] = u, e[9] = d) : d = e[9], d;
1005
- }, co = (t) => {
1006
- const e = R(57), {
687
+ e[4] !== s ? (u = /* @__PURE__ */ i(nn, { sx: d, children: s }), e[4] = s, e[5] = u) : u = e[5];
688
+ let c;
689
+ return e[6] !== r || e[7] !== n || e[8] !== u ? (c = /* @__PURE__ */ i(on, { open: n, anchorEl: r, placement: "right-start", modifiers: l, children: u }), e[6] = r, e[7] = n, e[8] = u, e[9] = c) : c = e[9], c;
690
+ }, Pn = (t) => {
691
+ const e = B(57), {
1007
692
  item: n,
1008
- isOpen: o,
1009
- selected: r,
1010
- disabled: s,
1011
- collapsed: i,
693
+ isOpen: r,
694
+ selected: s,
695
+ disabled: a,
696
+ collapsed: o,
1012
697
  isSidebarFullyExpanded: l,
1013
- isSidebarFullyCollapsed: c,
698
+ isSidebarFullyCollapsed: d,
1014
699
  onClick: u,
1015
- renderNested: d,
700
+ renderNested: c,
1016
701
  onClose: m
1017
- } = t, h = l === void 0 ? !0 : l, [f, p] = q(null), [g, x] = q(null);
1018
- let w;
1019
- e[0] !== i || e[1] !== o || e[2] !== c || e[3] !== h || e[4] !== n.children ? (w = () => i && c && n.children ? {
702
+ } = t, h = l === void 0 ? !0 : l, [f, p] = V(null), [g, T] = V(null);
703
+ let M;
704
+ e[0] !== o || e[1] !== r || e[2] !== d || e[3] !== h || e[4] !== n.children ? (M = () => o && d && n.children ? {
1020
705
  fontSize: 18,
1021
706
  position: "absolute",
1022
707
  top: "41.5%",
1023
708
  right: "2px",
1024
709
  transform: "translateY(-50%) rotate(-90deg)"
1025
- } : !i && h && n.children ? {
710
+ } : !o && h && n.children ? {
1026
711
  ml: 0.5,
1027
- transform: `rotate(${o ? 0 : -90}deg)`
712
+ transform: `rotate(${r ? 0 : -90}deg)`
1028
713
  } : {
1029
714
  display: "none"
1030
- }, e[0] = i, e[1] = o, e[2] = c, e[3] = h, e[4] = n.children, e[5] = w) : w = e[5];
1031
- const S = w, y = n.children && !i, k = i ? 60 : 48;
1032
- let T;
1033
- e[6] !== k ? (T = {
715
+ }, e[0] = o, e[1] = r, e[2] = d, e[3] = h, e[4] = n.children, e[5] = M) : M = e[5];
716
+ const x = M, y = n.children && !o, k = o ? 60 : 48;
717
+ let b;
718
+ e[6] !== k ? (b = {
1034
719
  px: 1.4,
1035
720
  height: k
1036
- }, e[6] = k, e[7] = T) : T = e[7];
1037
- let v;
1038
- e[8] !== s || e[9] !== r || e[10] !== T ? (v = {
1039
- selected: r,
1040
- disabled: s,
1041
- sx: T
1042
- }, e[8] = s, e[9] = r, e[10] = T, e[11] = v) : v = e[11];
1043
- const z = v;
721
+ }, e[6] = k, e[7] = b) : b = e[7];
722
+ let D;
723
+ e[8] !== a || e[9] !== s || e[10] !== b ? (D = {
724
+ selected: s,
725
+ disabled: a,
726
+ sx: b
727
+ }, e[8] = a, e[9] = s, e[10] = b, e[11] = D) : D = e[11];
728
+ const z = D;
1044
729
  let I;
1045
- e[12] !== i || e[13] !== n ? (I = /* @__PURE__ */ a(ao, { item: n, collapsed: i }), e[12] = i, e[13] = n, e[14] = I) : I = e[14];
1046
- let L;
1047
- e[15] !== i || e[16] !== n.title ? (L = !i && /* @__PURE__ */ a(pn, { primary: n.title, slotProps: {
730
+ e[12] !== o || e[13] !== n ? (I = /* @__PURE__ */ i(wn, { item: n, collapsed: o }), e[12] = o, e[13] = n, e[14] = I) : I = e[14];
731
+ let _;
732
+ e[15] !== o || e[16] !== n.title ? (_ = !o && /* @__PURE__ */ i(tn, { primary: n.title, slotProps: {
1048
733
  primary: {
1049
734
  noWrap: !0,
1050
735
  title: n.title
@@ -1058,384 +743,333 @@ const io = () => {
1058
743
  overflow: "hidden",
1059
744
  textOverflow: "ellipsis"
1060
745
  }
1061
- } }), e[15] = i, e[16] = n.title, e[17] = L) : L = e[17];
1062
- let M;
1063
- e[18] !== S || e[19] !== n.children ? (M = n.children ? /* @__PURE__ */ a(dn, { sx: S }) : null, e[18] = S, e[19] = n.children, e[20] = M) : M = e[20];
1064
- let P;
1065
- e[21] !== I || e[22] !== L || e[23] !== M ? (P = /* @__PURE__ */ D(Mt, { children: [
746
+ } }), e[15] = o, e[16] = n.title, e[17] = _) : _ = e[17];
747
+ let v;
748
+ e[18] !== x || e[19] !== n.children ? (v = n.children ? /* @__PURE__ */ i(qt, { sx: x }) : null, e[18] = x, e[19] = n.children, e[20] = v) : v = e[20];
749
+ let A;
750
+ e[21] !== I || e[22] !== _ || e[23] !== v ? (A = /* @__PURE__ */ L(ht, { children: [
1066
751
  I,
1067
- L,
1068
- M
1069
- ] }), e[21] = I, e[22] = L, e[23] = M, e[24] = P) : P = e[24];
1070
- const U = P;
1071
- let $;
1072
- e[25] !== i || e[26] !== n.children || e[27] !== n.title ? ($ = n.children && i ? {
752
+ _,
753
+ v
754
+ ] }), e[21] = I, e[22] = _, e[23] = v, e[24] = A) : A = e[24];
755
+ const Y = A;
756
+ let j;
757
+ e[25] !== o || e[26] !== n.children || e[27] !== n.title ? (j = n.children && o ? {
1073
758
  onMouseEnter: (H) => {
1074
- x(H.currentTarget), p(n.title);
759
+ T(H.currentTarget), p(n.title);
1075
760
  },
1076
761
  onMouseLeave: () => {
1077
762
  p(null);
1078
763
  }
1079
- } : {}, e[25] = i, e[26] = n.children, e[27] = n.title, e[28] = $) : $ = e[28];
1080
- let A;
1081
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
764
+ } : {}, e[25] = o, e[26] = n.children, e[27] = n.title, e[28] = j) : j = e[28];
765
+ let E;
766
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
1082
767
  py: 0,
1083
768
  px: 1,
1084
769
  overflowX: "hidden"
1085
- }, e[29] = A) : A = e[29];
1086
- let _;
1087
- e[30] !== U || e[31] !== z || e[32] !== n || e[33] !== u || e[34] !== m || e[35] !== y ? (_ = y ? /* @__PURE__ */ a(ro, { ...z, onClick: () => u?.(n), children: U }) : /* @__PURE__ */ a(so, { ...z, to: n.to, href: n.href, params: n.params, search: n.search, onClick: m, children: U }), e[30] = U, e[31] = z, e[32] = n, e[33] = u, e[34] = m, e[35] = y, e[36] = _) : _ = e[36];
770
+ }, e[29] = E) : E = e[29];
771
+ let w;
772
+ e[30] !== Y || e[31] !== z || e[32] !== n || e[33] !== u || e[34] !== m || e[35] !== y ? (w = y ? /* @__PURE__ */ i(On, { ...z, onClick: () => u?.(n), children: Y }) : /* @__PURE__ */ i(Cn, { ...z, to: n.to, href: n.href, params: n.params, search: n.search, onClick: m, children: Y }), e[30] = Y, e[31] = z, e[32] = n, e[33] = u, e[34] = m, e[35] = y, e[36] = w) : w = e[36];
1088
773
  let O;
1089
- e[37] !== g || e[38] !== i || e[39] !== f || e[40] !== n.children || e[41] !== n.title || e[42] !== d ? (O = n.children && i ? /* @__PURE__ */ a(lo, { open: n.title === f, anchorEl: g, children: d?.(n.children) }) : null, e[37] = g, e[38] = i, e[39] = f, e[40] = n.children, e[41] = n.title, e[42] = d, e[43] = O) : O = e[43];
1090
- let F;
1091
- e[44] !== $ || e[45] !== _ || e[46] !== O ? (F = /* @__PURE__ */ D(fn, { ...$, sx: A, children: [
1092
- _,
774
+ e[37] !== g || e[38] !== o || e[39] !== f || e[40] !== n.children || e[41] !== n.title || e[42] !== c ? (O = n.children && o ? /* @__PURE__ */ i(In, { open: n.title === f, anchorEl: g, children: c?.(n.children) }) : null, e[37] = g, e[38] = o, e[39] = f, e[40] = n.children, e[41] = n.title, e[42] = c, e[43] = O) : O = e[43];
775
+ let W;
776
+ e[44] !== j || e[45] !== w || e[46] !== O ? (W = /* @__PURE__ */ L(Jt, { ...j, sx: E, children: [
777
+ w,
1093
778
  O
1094
- ] }), e[44] = $, e[45] = _, e[46] = O, e[47] = F) : F = e[47];
1095
- const B = F;
1096
- let E;
1097
- e[48] !== i || e[49] !== o || e[50] !== n.children || e[51] !== d ? (E = n.children && !i ? /* @__PURE__ */ a(It, { in: o, timeout: "auto", unmountOnExit: !0, children: d?.(n.children) }) : null, e[48] = i, e[49] = o, e[50] = n.children, e[51] = d, e[52] = E) : E = e[52];
779
+ ] }), e[44] = j, e[45] = w, e[46] = O, e[47] = W) : W = e[47];
780
+ const F = W;
781
+ let P;
782
+ e[48] !== o || e[49] !== r || e[50] !== n.children || e[51] !== c ? (P = n.children && !o ? /* @__PURE__ */ i(Tt, { in: r, timeout: "auto", unmountOnExit: !0, children: c?.(n.children) }) : null, e[48] = o, e[49] = r, e[50] = n.children, e[51] = c, e[52] = P) : P = e[52];
1098
783
  let N;
1099
- return e[53] !== n.to || e[54] !== B || e[55] !== E ? (N = /* @__PURE__ */ D(Be, { children: [
1100
- B,
1101
- E
1102
- ] }, n.to), e[53] = n.to, e[54] = B, e[55] = E, e[56] = N) : N = e[56], N;
1103
- }, uo = (t) => !("kind" in t), fo = (t) => "kind" in t && t.kind === "divider", Xe = (t) => "kind" in t && t.kind === "header", kt = (t) => {
1104
- const e = R(31), {
784
+ return e[53] !== n.to || e[54] !== F || e[55] !== P ? (N = /* @__PURE__ */ L(Ye, { children: [
785
+ F,
786
+ P
787
+ ] }, n.to), e[53] = n.to, e[54] = F, e[55] = P, e[56] = N) : N = e[56], N;
788
+ }, En = (t) => !("kind" in t), An = (t) => "kind" in t && t.kind === "divider", Xe = (t) => "kind" in t && t.kind === "header", dt = (t) => {
789
+ const e = B(31), {
1105
790
  subNavigation: n,
1106
- depth: o,
1107
- collapsed: r,
1108
- isPopover: s,
1109
- isSidebarFullyExpanded: i,
791
+ depth: r,
792
+ collapsed: s,
793
+ isPopover: a,
794
+ isSidebarFullyExpanded: o,
1110
795
  isSidebarFullyCollapsed: l,
1111
- expandedWidth: c,
796
+ expandedWidth: d,
1112
797
  renderItem: u,
1113
- activePath: d,
798
+ activePath: c,
1114
799
  onNavigate: m,
1115
800
  onClose: h
1116
- } = t, f = o === void 0 ? 0 : o, p = i === void 0 ? !0 : i;
801
+ } = t, f = r === void 0 ? 0 : r, p = o === void 0 ? !0 : o;
1117
802
  let g;
1118
803
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
1119
- const [x, w] = q(g);
1120
- let S, y;
1121
- e[1] !== r ? (S = () => {
1122
- r && w([]);
1123
- }, y = [r], e[1] = r, e[2] = S, e[3] = y) : (S = e[2], y = e[3]), xt(S, y);
804
+ const [T, M] = V(g);
805
+ let x, y;
806
+ e[1] !== s ? (x = () => {
807
+ s && M([]);
808
+ }, y = [s], e[1] = s, e[2] = x, e[3] = y) : (x = e[2], y = e[3]), lt(x, y);
1124
809
  let k;
1125
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (L) => w((M) => M.includes(L) ? M.filter((P) => P !== L) : [...M, L]), e[4] = k) : k = e[4];
1126
- const T = k;
1127
- let v;
1128
- e[5] !== d || e[6] !== r || e[7] !== f || e[8] !== c || e[9] !== h || e[10] !== m ? (v = (L) => /* @__PURE__ */ a(kt, { subNavigation: L, depth: f + 1, isPopover: r, expandedWidth: c, activePath: d, onNavigate: m, onClose: h }), e[5] = d, e[6] = r, e[7] = f, e[8] = c, e[9] = h, e[10] = m, e[11] = v) : v = e[11];
1129
- const z = v;
810
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (_) => M((v) => v.includes(_) ? v.filter((A) => A !== _) : [...v, _]), e[4] = k) : k = e[4];
811
+ const b = k;
812
+ let D;
813
+ e[5] !== c || e[6] !== s || e[7] !== f || e[8] !== d || e[9] !== h || e[10] !== m ? (D = (_) => /* @__PURE__ */ i(dt, { subNavigation: _, depth: f + 1, isPopover: s, expandedWidth: d, activePath: c, onNavigate: m, onClose: h }), e[5] = c, e[6] = s, e[7] = f, e[8] = d, e[9] = h, e[10] = m, e[11] = D) : D = e[11];
814
+ const z = D;
1130
815
  let I;
1131
- if (e[12] !== d || e[13] !== r || e[14] !== f || e[15] !== c || e[16] !== s || e[17] !== l || e[18] !== p || e[19] !== h || e[20] !== x || e[21] !== u || e[22] !== z || e[23] !== n) {
1132
- const L = n.filter(mo), M = s && f === 1 ? 0.5 : 0, P = f === 0 && !s ? 4 : 0.5, U = (s ? 1 : 2) * (s ? f - 1 : f), $ = s && f === 1 ? je : "auto", A = r ? Fe : "auto";
1133
- let _;
1134
- e[25] !== P || e[26] !== U || e[27] !== $ || e[28] !== A || e[29] !== M ? (_ = {
816
+ if (e[12] !== c || e[13] !== s || e[14] !== f || e[15] !== d || e[16] !== a || e[17] !== l || e[18] !== p || e[19] !== h || e[20] !== T || e[21] !== u || e[22] !== z || e[23] !== n) {
817
+ const _ = n.filter(jn), v = a && f === 1 ? 0.5 : 0, A = f === 0 && !a ? 4 : 0.5, Y = (a ? 1 : 2) * (a ? f - 1 : f), j = a && f === 1 ? je : "auto", E = s ? $e : "auto";
818
+ let w;
819
+ e[25] !== A || e[26] !== Y || e[27] !== j || e[28] !== E || e[29] !== v ? (w = {
1135
820
  padding: 0,
1136
- mt: M,
1137
- mb: P,
1138
- pl: U,
1139
- minWidth: $,
1140
- width: A
1141
- }, e[25] = P, e[26] = U, e[27] = $, e[28] = A, e[29] = M, e[30] = _) : _ = e[30], I = /* @__PURE__ */ a(ln, { sx: _, children: L.map((O, F) => {
821
+ mt: v,
822
+ mb: A,
823
+ pl: Y,
824
+ minWidth: j,
825
+ width: E
826
+ }, e[25] = A, e[26] = Y, e[27] = j, e[28] = E, e[29] = v, e[30] = w) : w = e[30], I = /* @__PURE__ */ i(Xt, { sx: w, children: _.map((O, W) => {
1142
827
  if (Xe(O))
1143
- return /* @__PURE__ */ a(cn, { sx: {
828
+ return /* @__PURE__ */ i(Zt, { sx: {
1144
829
  fontSize: 12,
1145
830
  fontWeight: "700",
1146
- height: r ? 0 : 40,
831
+ height: s ? 0 : 40,
1147
832
  px: 2,
1148
- minWidth: c,
833
+ minWidth: d,
1149
834
  overflow: "hidden",
1150
835
  textOverflow: "ellipsis",
1151
836
  whiteSpace: "nowrap",
1152
837
  zIndex: 2,
1153
838
  bgcolor: "transparent",
1154
839
  position: "static"
1155
- }, children: O.title }, `subheader-${f}-${F}`);
1156
- if (fo(O)) {
1157
- const N = L[F + 1];
1158
- return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(an, { sx: {
840
+ }, children: O.title }, `subheader-${f}-${W}`);
841
+ if (An(O)) {
842
+ const N = _[W + 1];
843
+ return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(Gt, { sx: {
1159
844
  mx: 1,
1160
845
  mt: 1,
1161
- mb: Xe(N) && !r ? 0 : 1
1162
- } }) }, `divider-${f}-${F}`);
846
+ mb: Xe(N) && !s ? 0 : 1
847
+ } }) }, `divider-${f}-${W}`);
1163
848
  }
1164
- if (!uo(O))
849
+ if (!En(O))
1165
850
  return null;
1166
- const B = `item-${f}-${F}`, E = `${f}-${F}-${O.title}`;
1167
- return u ? /* @__PURE__ */ a(Be, { children: u(O, {
1168
- collapsed: !!r
1169
- }) }, B) : /* @__PURE__ */ a(co, { item: O, isOpen: x.includes(E), selected: d === O.to, collapsed: r, isSidebarFullyExpanded: p, isSidebarFullyCollapsed: l, onClick: O.children && !r ? () => T(E) : void 0, renderNested: z, onClose: h }, B);
1170
- }) }), e[12] = d, e[13] = r, e[14] = f, e[15] = c, e[16] = s, e[17] = l, e[18] = p, e[19] = h, e[20] = x, e[21] = u, e[22] = z, e[23] = n, e[24] = I;
851
+ const F = `item-${f}-${W}`, P = `${f}-${W}-${O.title}`;
852
+ return u ? /* @__PURE__ */ i(Ye, { children: u(O, {
853
+ collapsed: !!s
854
+ }) }, F) : /* @__PURE__ */ i(Pn, { item: O, isOpen: T.includes(P), selected: c === O.to, collapsed: s, isSidebarFullyExpanded: p, isSidebarFullyCollapsed: l, onClick: O.children && !s ? () => b(P) : void 0, renderNested: z, onClose: h }, F);
855
+ }) }), e[12] = c, e[13] = s, e[14] = f, e[15] = d, e[16] = a, e[17] = l, e[18] = p, e[19] = h, e[20] = T, e[21] = u, e[22] = z, e[23] = n, e[24] = I;
1171
856
  } else
1172
857
  I = e[24];
1173
858
  return I;
1174
859
  };
1175
- function mo(t) {
860
+ function jn(t) {
1176
861
  return !t.hidden;
1177
862
  }
1178
- const Fe = 84, je = 320, pt = 64, ho = (t) => {
1179
- const e = R(29), {
863
+ const $e = 84, je = 320, it = 64, zn = (t) => {
864
+ const e = B(29), {
1180
865
  navigation: n,
1181
- expanded: o,
1182
- setExpanded: r
1183
- } = t, s = rn(), i = sn(), l = en();
1184
- let c;
1185
- e[0] !== l.breakpoints ? (c = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = c) : c = e[1];
1186
- const u = Et(c);
866
+ expanded: r,
867
+ setExpanded: s
868
+ } = t, a = Ht(), o = Vt(), l = Ut();
1187
869
  let d;
1188
- e[2] !== o || e[3] !== s || e[4] !== n || e[5] !== i.location.pathname || e[6] !== r || e[7] !== u ? (d = (x) => /* @__PURE__ */ a(St, { component: "nav", sx: {
870
+ e[0] !== l.breakpoints ? (d = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = d) : d = e[1];
871
+ const u = xt(d);
872
+ let c;
873
+ e[2] !== r || e[3] !== a || e[4] !== n || e[5] !== o.location.pathname || e[6] !== s || e[7] !== u ? (c = (T) => /* @__PURE__ */ i(ct, { component: "nav", sx: {
1189
874
  height: "100%",
1190
875
  display: "flex",
1191
876
  flexDirection: "column",
1192
877
  justifyContent: "space-between",
1193
878
  overflow: "auto",
1194
- scrollbarGutter: x ? "stable" : "auto",
879
+ scrollbarGutter: T ? "stable" : "auto",
1195
880
  overflowX: "hidden",
1196
- pt: n[0] && Xe(n[0]) && !x ? 0 : 2
1197
- }, children: /* @__PURE__ */ a(kt, { subNavigation: n, collapsed: x, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: !o, expandedWidth: je, activePath: i.location.pathname, onNavigate: s, onClose: u ? void 0 : () => r(!1) }) }), e[2] = o, e[3] = s, e[4] = n, e[5] = i.location.pathname, e[6] = r, e[7] = u, e[8] = d) : d = e[8];
1198
- const m = d;
881
+ pt: n[0] && Xe(n[0]) && !T ? 0 : 2
882
+ }, children: /* @__PURE__ */ i(dt, { subNavigation: n, collapsed: T, isSidebarFullyExpanded: r, isSidebarFullyCollapsed: !r, expandedWidth: je, activePath: o.location.pathname, onNavigate: a, onClose: u ? void 0 : () => s(!1) }) }), e[2] = r, e[3] = a, e[4] = n, e[5] = o.location.pathname, e[6] = s, e[7] = u, e[8] = c) : c = e[8];
883
+ const m = c;
1199
884
  if (u) {
1200
- const x = o ? je : Fe, w = o ? je : Fe;
1201
- let S;
1202
- e[9] !== w ? (S = {
885
+ const T = r ? je : $e, M = r ? je : $e;
886
+ let x;
887
+ e[9] !== M ? (x = {
1203
888
  position: "absolute",
1204
- top: `${pt}px`,
1205
- height: `calc(100% - ${pt}px)`,
1206
- width: w,
889
+ top: `${it}px`,
890
+ height: `calc(100% - ${it}px)`,
891
+ width: M,
1207
892
  borderTop: "1px solid",
1208
893
  borderColor: "var(--mui-palette-divider)"
1209
- }, e[9] = w, e[10] = S) : S = e[10];
894
+ }, e[9] = M, e[10] = x) : x = e[10];
1210
895
  let y;
1211
- e[11] !== x || e[12] !== S ? (y = {
1212
- width: x,
1213
- "& .MuiDrawer-paper": S
1214
- }, e[11] = x, e[12] = S, e[13] = y) : y = e[13];
1215
- const k = !o;
1216
- let T;
1217
- e[14] !== m || e[15] !== k ? (T = m(k), e[14] = m, e[15] = k, e[16] = T) : T = e[16];
1218
- let v;
1219
- return e[17] !== y || e[18] !== T ? (v = /* @__PURE__ */ a(rt, { variant: "permanent", sx: y, children: T }), e[17] = y, e[18] = T, e[19] = v) : v = e[19], v;
896
+ e[11] !== T || e[12] !== x ? (y = {
897
+ width: T,
898
+ "& .MuiDrawer-paper": x
899
+ }, e[11] = T, e[12] = x, e[13] = y) : y = e[13];
900
+ const k = !r;
901
+ let b;
902
+ e[14] !== m || e[15] !== k ? (b = m(k), e[14] = m, e[15] = k, e[16] = b) : b = e[16];
903
+ let D;
904
+ return e[17] !== y || e[18] !== b ? (D = /* @__PURE__ */ i(Qe, { variant: "permanent", sx: y, children: b }), e[17] = y, e[18] = b, e[19] = D) : D = e[19], D;
1220
905
  }
1221
906
  let h;
1222
- e[20] !== r ? (h = () => r(!1), e[20] = r, e[21] = h) : h = e[21];
1223
- const f = !o;
907
+ e[20] !== s ? (h = () => s(!1), e[20] = s, e[21] = h) : h = e[21];
908
+ const f = !r;
1224
909
  let p;
1225
910
  e[22] !== m || e[23] !== f ? (p = m(f), e[22] = m, e[23] = f, e[24] = p) : p = e[24];
1226
911
  let g;
1227
- return e[25] !== o || e[26] !== h || e[27] !== p ? (g = /* @__PURE__ */ a(rt, { open: o, onClose: h, children: p }), e[25] = o, e[26] = h, e[27] = p, e[28] = g) : g = e[28], g;
1228
- }, vi = Ye().inputValidator(le.object({
1229
- redirectUri: le.string()
1230
- })).handler(async ({
1231
- data: t
1232
- }) => {
1233
- const e = await On(t.redirectUri), n = await et.fetchQuery({
1234
- queryKey: ["graph", "me", "memberOf"],
1235
- queryFn: async () => Je.request({
1236
- method: "GET",
1237
- url: "https://graph.microsoft.com/v1.0/me/memberOf?$select=displayName",
1238
- headers: {
1239
- Authorization: `Bearer ${await tt()}`
1240
- }
1241
- }).then((o) => o.data.value.map((r) => r.displayName)),
1242
- staleTime: 1 / 0,
1243
- gcTime: 1 / 0
1244
- });
1245
- return {
1246
- ...e.user,
1247
- groups: n
1248
- };
1249
- }), po = Ye({
1250
- method: "GET"
1251
- }).handler(async () => await et.fetchQuery({
1252
- queryKey: ["graph", "me"],
1253
- queryFn: async () => await Je.request({
1254
- method: "GET",
1255
- url: "https://graph.microsoft.com/v1.0/me?$select=id,displayName,jobTitle,mail,mobilePhone",
1256
- headers: {
1257
- Authorization: `Bearer ${await tt()}`
1258
- }
1259
- }).then((t) => t.data),
1260
- staleTime: 1 / 0,
1261
- gcTime: 1 / 0
1262
- })), go = Ye({
1263
- method: "GET"
1264
- }).handler(async () => await et.fetchQuery({
1265
- queryKey: ["graph", "me", "photo"],
1266
- queryFn: async () => {
1267
- const t = await Je.request({
1268
- method: "GET",
1269
- url: "https://graph.microsoft.com/v1.0/me/photo/$value",
1270
- headers: {
1271
- Authorization: `Bearer ${await tt()}`
1272
- },
1273
- responseType: "arraybuffer"
1274
- }), e = t.headers["content-type"] ?? "image/jpeg", n = Buffer.from(t.data).toString("base64");
1275
- return `data:${e};base64,${n}`;
1276
- },
1277
- staleTime: 1 / 0,
1278
- gcTime: 1 / 0
1279
- })), gt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), yo = () => {
1280
- const t = R(105), [e, n] = q(), [o, r] = q("settings"), s = !!e, {
1281
- t: i,
912
+ return e[25] !== r || e[26] !== h || e[27] !== p ? (g = /* @__PURE__ */ i(Qe, { open: r, onClose: h, children: p }), e[25] = r, e[26] = h, e[27] = p, e[28] = g) : g = e[28], g;
913
+ }, st = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Nn = () => {
914
+ const t = B(105), [e, n] = V(), [r, s] = V("settings"), a = !!e, {
915
+ t: o,
1282
916
  i18n: l
1283
- } = Qt(), {
1284
- mode: c,
917
+ } = jt(), {
918
+ mode: d,
1285
919
  setMode: u
1286
- } = At();
1287
- let d, m, h, f, p, g, x;
1288
- if (t[0] !== l || t[1] !== c || t[2] !== u || t[3] !== i) {
1289
- const F = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter(xo), B = new Intl.DisplayNames([l.language], {
920
+ } = bt();
921
+ let c, m, h, f, p, g, T;
922
+ if (t[0] !== l || t[1] !== d || t[2] !== u || t[3] !== o) {
923
+ const W = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter($n), F = new Intl.DisplayNames([l.language], {
1290
924
  type: "language"
1291
925
  });
1292
- let E;
1293
- t[11] !== i ? (E = i("Layout.Light"), t[11] = i, t[12] = E) : E = t[12];
926
+ let P;
927
+ t[11] !== o ? (P = o("Layout.Light"), t[11] = o, t[12] = P) : P = t[12];
1294
928
  let N;
1295
- t[13] !== E ? (N = {
929
+ t[13] !== P ? (N = {
1296
930
  mode: "light",
1297
- icon: vn,
1298
- label: E
1299
- }, t[13] = E, t[14] = N) : N = t[14];
931
+ icon: dn,
932
+ label: P
933
+ }, t[13] = P, t[14] = N) : N = t[14];
1300
934
  let H;
1301
- t[15] !== i ? (H = i("Layout.Dark"), t[15] = i, t[16] = H) : H = t[16];
1302
- let V;
1303
- t[17] !== H ? (V = {
935
+ t[15] !== o ? (H = o("Layout.Dark"), t[15] = o, t[16] = H) : H = t[16];
936
+ let G;
937
+ t[17] !== H ? (G = {
1304
938
  mode: "dark",
1305
- icon: wn,
939
+ icon: ln,
1306
940
  label: H
1307
- }, t[17] = H, t[18] = V) : V = t[18];
1308
- let G;
1309
- t[19] !== i ? (G = i("Layout.System"), t[19] = i, t[20] = G) : G = t[20];
1310
- let K;
1311
- t[21] !== G ? (K = {
941
+ }, t[17] = H, t[18] = G) : G = t[18];
942
+ let X;
943
+ t[19] !== o ? (X = o("Layout.System"), t[19] = o, t[20] = X) : X = t[20];
944
+ let Z;
945
+ t[21] !== X ? (Z = {
1312
946
  mode: "system",
1313
- icon: Dn,
1314
- label: G
1315
- }, t[21] = G, t[22] = K) : K = t[22];
947
+ icon: fn,
948
+ label: X
949
+ }, t[21] = X, t[22] = Z) : Z = t[22];
950
+ let le;
951
+ t[23] !== N || t[24] !== G || t[25] !== Z ? (le = [N, G, Z], t[23] = N, t[24] = G, t[25] = Z, t[26] = le) : le = t[26];
952
+ const ce = le;
953
+ let de;
954
+ t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = ($) => n($.currentTarget), t[27] = de) : de = t[27], h = de;
1316
955
  let ue;
1317
- t[23] !== N || t[24] !== V || t[25] !== K ? (ue = [N, V, K], t[23] = N, t[24] = V, t[25] = K, t[26] = ue) : ue = t[26];
1318
- const fe = ue;
1319
- let me;
1320
- t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = (j) => n(j.currentTarget), t[27] = me) : me = t[27], h = me;
956
+ t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = () => {
957
+ n(void 0), setTimeout(() => s("settings"), 300);
958
+ }, t[28] = ue) : ue = t[28], m = ue;
959
+ let fe;
960
+ t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = ($) => () => s($), t[29] = fe) : fe = t[29];
961
+ const me = fe;
1321
962
  let he;
1322
- t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = () => {
1323
- n(void 0), setTimeout(() => r("settings"), 300);
1324
- }, t[28] = he) : he = t[28], m = he;
1325
- let pe;
1326
- t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = (j) => () => r(j), t[29] = pe) : pe = t[29];
1327
- const ge = pe;
1328
- let ye;
1329
- t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = {
963
+ t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = {
1330
964
  backgroundColor: "transparent"
1331
- }, t[30] = ye) : ye = t[30];
1332
- let Q;
1333
- t[31] !== i ? (Q = i("Layout.Settings"), t[31] = i, t[32] = Q) : Q = t[32];
1334
- let X;
1335
- t[33] !== Q ? (X = /* @__PURE__ */ a(qe, { sx: ye, children: Q }), t[33] = Q, t[34] = X) : X = t[34];
1336
- let xe, Se;
1337
- t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = ge("theme"), Se = {
965
+ }, t[30] = he) : he = t[30];
966
+ let q;
967
+ t[31] !== o ? (q = o("Layout.Settings"), t[31] = o, t[32] = q) : q = t[32];
968
+ let K;
969
+ t[33] !== q ? (K = /* @__PURE__ */ i(Re, { sx: he, children: q }), t[33] = q, t[34] = K) : K = t[34];
970
+ let pe, ge;
971
+ t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = me("theme"), ge = {
1338
972
  py: 0.3
1339
- }, t[35] = xe, t[36] = Se) : (xe = t[35], Se = t[36]);
1340
- let Te;
1341
- t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(bn, {}) }), t[37] = Te) : Te = t[37];
1342
- let Z;
1343
- t[38] !== i ? (Z = i("Layout.Appearance"), t[38] = i, t[39] = Z) : Z = t[39];
1344
- const We = fe.find((j) => j.mode === c)?.label;
973
+ }, t[35] = pe, t[36] = ge) : (pe = t[35], ge = t[36]);
974
+ let ye;
975
+ t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(an, {}) }), t[37] = ye) : ye = t[37];
1345
976
  let J;
1346
- t[40] !== Z || t[41] !== We ? (J = /* @__PURE__ */ a(ae, { primary: Z, secondary: We }), t[40] = Z, t[41] = We, t[42] = J) : J = t[42];
1347
- let be;
1348
- t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ a(lt, {}), t[43] = be) : be = t[43];
977
+ t[38] !== o ? (J = o("Layout.Appearance"), t[38] = o, t[39] = J) : J = t[39];
978
+ const We = ce.find(($) => $.mode === d)?.label;
979
+ let Q;
980
+ t[40] !== J || t[41] !== We ? (Q = /* @__PURE__ */ i(se, { primary: J, secondary: We }), t[40] = J, t[41] = We, t[42] = Q) : Q = t[42];
981
+ let Te;
982
+ t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ i(nt, {}), t[43] = Te) : Te = t[43];
1349
983
  let ee;
1350
- t[44] !== J ? (ee = /* @__PURE__ */ D(ce, { onClick: xe, sx: Se, children: [
1351
- Te,
1352
- J,
1353
- be
1354
- ] }), t[44] = J, t[45] = ee) : ee = t[45];
1355
- let we, ke;
1356
- t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = ge("language"), ke = {
984
+ t[44] !== Q ? (ee = /* @__PURE__ */ L(ie, { onClick: pe, sx: ge, children: [
985
+ ye,
986
+ Q,
987
+ Te
988
+ ] }), t[44] = Q, t[45] = ee) : ee = t[45];
989
+ let xe, be;
990
+ t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = me("language"), be = {
1357
991
  py: 0.3
1358
- }, t[46] = we, t[47] = ke) : (we = t[46], ke = t[47]);
1359
- let ve;
1360
- t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Mn, {}) }), t[48] = ve) : ve = t[48];
1361
- let Le;
1362
- t[49] !== i ? (Le = i("Layout.Language"), t[49] = i, t[50] = Le) : Le = t[50];
1363
- let De;
1364
- t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ a(lt, {}), t[51] = De) : De = t[51];
1365
- const Re = /* @__PURE__ */ D(ce, { onClick: we, sx: ke, children: [
1366
- ve,
1367
- /* @__PURE__ */ a(ae, { primary: Le, secondary: gt(B.of(l.language)) }),
1368
- De
1369
- ] });
992
+ }, t[46] = xe, t[47] = be) : (xe = t[46], be = t[47]);
993
+ let Se;
994
+ t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(mn, {}) }), t[48] = Se) : Se = t[48];
1370
995
  let Me;
1371
- t[52] !== X || t[53] !== ee || t[54] !== Re ? (Me = /* @__PURE__ */ D($e, { component: "nav", subheader: X, children: [
996
+ t[49] !== o ? (Me = o("Layout.Language"), t[49] = o, t[50] = Me) : Me = t[50];
997
+ let ke;
998
+ t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ i(nt, {}), t[51] = ke) : ke = t[51];
999
+ const Ue = /* @__PURE__ */ L(ie, { onClick: xe, sx: be, children: [
1000
+ Se,
1001
+ /* @__PURE__ */ i(se, { primary: Me, secondary: st(F.of(l.language)) }),
1002
+ ke
1003
+ ] });
1004
+ let Le;
1005
+ t[52] !== K || t[53] !== ee || t[54] !== Ue ? (Le = /* @__PURE__ */ L(Pe, { component: "nav", subheader: K, children: [
1372
1006
  ee,
1373
- Re
1374
- ] }), t[52] = X, t[53] = ee, t[54] = Re, t[55] = Me) : Me = t[55], f = Me;
1375
- let Oe, Ce;
1376
- t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = ge("settings"), Ce = {
1007
+ Ue
1008
+ ] }), t[52] = K, t[53] = ee, t[54] = Ue, t[55] = Le) : Le = t[55], f = Le;
1009
+ let De, _e;
1010
+ t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = me("settings"), _e = {
1377
1011
  backgroundColor: "transparent",
1378
1012
  display: "flex",
1379
1013
  alignItems: "center",
1380
1014
  px: 1,
1381
1015
  cursor: "pointer"
1382
- }, t[56] = Oe, t[57] = Ce) : (Oe = t[56], Ce = t[57]);
1383
- let _e;
1384
- t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ a(ze, { size: "small", sx: {
1016
+ }, t[56] = De, t[57] = _e) : (De = t[56], _e = t[57]);
1017
+ let ve;
1018
+ t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ i(Ee, { size: "small", sx: {
1385
1019
  mr: 0.5
1386
- }, children: /* @__PURE__ */ a(at, { fontSize: "small" }) }), t[58] = _e) : _e = t[58];
1020
+ }, children: /* @__PURE__ */ i(tt, { fontSize: "small" }) }), t[58] = ve) : ve = t[58];
1387
1021
  let te;
1388
- t[59] !== i ? (te = i("Layout.Appearance"), t[59] = i, t[60] = te) : te = t[60];
1022
+ t[59] !== o ? (te = o("Layout.Appearance"), t[59] = o, t[60] = te) : te = t[60];
1389
1023
  let ne;
1390
- t[61] !== te ? (ne = /* @__PURE__ */ D(qe, { onClick: Oe, sx: Ce, children: [
1391
- _e,
1024
+ t[61] !== te ? (ne = /* @__PURE__ */ L(Re, { onClick: De, sx: _e, children: [
1025
+ ve,
1392
1026
  " ",
1393
1027
  te
1394
1028
  ] }), t[61] = te, t[62] = ne) : ne = t[62];
1395
1029
  let oe;
1396
- t[63] !== fe || t[64] !== c || t[65] !== u ? (oe = fe.map((j) => {
1030
+ t[63] !== ce || t[64] !== d || t[65] !== u ? (oe = ce.map(($) => {
1397
1031
  const {
1398
- mode: He,
1399
- icon: Lt,
1400
- label: Dt
1401
- } = j;
1402
- return /* @__PURE__ */ D(ce, { onClick: () => {
1403
- u(He), m();
1404
- }, selected: c === He, children: [
1405
- /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Lt, {}) }),
1406
- /* @__PURE__ */ a(ae, { primary: Dt })
1407
- ] }, He);
1408
- }), t[63] = fe, t[64] = c, t[65] = u, t[66] = oe) : oe = t[66];
1409
- let Ie;
1410
- t[67] !== ne || t[68] !== oe ? (Ie = /* @__PURE__ */ a($e, { subheader: ne, children: oe }), t[67] = ne, t[68] = oe, t[69] = Ie) : Ie = t[69], x = Ie, d = $e;
1411
- let Ee, Ae;
1412
- t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ee = ge("settings"), Ae = {
1032
+ mode: Fe,
1033
+ icon: ft,
1034
+ label: mt
1035
+ } = $;
1036
+ return /* @__PURE__ */ L(ie, { onClick: () => {
1037
+ u(Fe), m();
1038
+ }, selected: d === Fe, children: [
1039
+ /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ft, {}) }),
1040
+ /* @__PURE__ */ i(se, { primary: mt })
1041
+ ] }, Fe);
1042
+ }), t[63] = ce, t[64] = d, t[65] = u, t[66] = oe) : oe = t[66];
1043
+ let Oe;
1044
+ t[67] !== ne || t[68] !== oe ? (Oe = /* @__PURE__ */ i(Pe, { subheader: ne, children: oe }), t[67] = ne, t[68] = oe, t[69] = Oe) : Oe = t[69], T = Oe, c = Pe;
1045
+ let Ce, we;
1046
+ t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = me("settings"), we = {
1413
1047
  backgroundColor: "transparent",
1414
1048
  display: "flex",
1415
1049
  alignItems: "center",
1416
1050
  px: 1,
1417
1051
  cursor: "pointer"
1418
- }, t[70] = Ee, t[71] = Ae) : (Ee = t[70], Ae = t[71]);
1419
- let Pe;
1420
- t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ a(ze, { size: "small", sx: {
1052
+ }, t[70] = Ce, t[71] = we) : (Ce = t[70], we = t[71]);
1053
+ let Ie;
1054
+ t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = /* @__PURE__ */ i(Ee, { size: "small", sx: {
1421
1055
  mr: 0.5
1422
- }, children: /* @__PURE__ */ a(at, { fontSize: "small" }) }), t[72] = Pe) : Pe = t[72];
1423
- let ie;
1424
- t[73] !== i ? (ie = i("Layout.Language"), t[73] = i, t[74] = ie) : ie = t[74], t[75] !== ie ? (p = /* @__PURE__ */ D(qe, { onClick: Ee, sx: Ae, children: [
1425
- Pe,
1056
+ }, children: /* @__PURE__ */ i(tt, { fontSize: "small" }) }), t[72] = Ie) : Ie = t[72];
1057
+ let re;
1058
+ t[73] !== o ? (re = o("Layout.Language"), t[73] = o, t[74] = re) : re = t[74], t[75] !== re ? (p = /* @__PURE__ */ L(Re, { onClick: Ce, sx: we, children: [
1059
+ Ie,
1426
1060
  " ",
1427
- ie
1428
- ] }), t[75] = ie, t[76] = p) : p = t[76], g = F.map((j) => /* @__PURE__ */ D(ce, { onClick: () => l.changeLanguage(j).finally(() => m()), selected: l.resolvedLanguage === j, children: [
1429
- /* @__PURE__ */ a(de, { children: l.resolvedLanguage === j && /* @__PURE__ */ a(kn, {}) }),
1430
- /* @__PURE__ */ a(ae, { primary: gt(B.of(j)) })
1431
- ] }, j)), t[0] = l, t[1] = c, t[2] = u, t[3] = i, t[4] = d, t[5] = m, t[6] = h, t[7] = f, t[8] = p, t[9] = g, t[10] = x;
1061
+ re
1062
+ ] }), t[75] = re, t[76] = p) : p = t[76], g = W.map(($) => /* @__PURE__ */ L(ie, { onClick: () => l.changeLanguage($).finally(() => m()), selected: l.resolvedLanguage === $, children: [
1063
+ /* @__PURE__ */ i(ae, { children: l.resolvedLanguage === $ && /* @__PURE__ */ i(cn, {}) }),
1064
+ /* @__PURE__ */ i(se, { primary: st(F.of($)) })
1065
+ ] }, $)), t[0] = l, t[1] = d, t[2] = u, t[3] = o, t[4] = c, t[5] = m, t[6] = h, t[7] = f, t[8] = p, t[9] = g, t[10] = T;
1432
1066
  } else
1433
- d = t[4], m = t[5], h = t[6], f = t[7], p = t[8], g = t[9], x = t[10];
1434
- let w;
1435
- t[77] !== d || t[78] !== p || t[79] !== g ? (w = /* @__PURE__ */ a(d, { subheader: p, children: g }), t[77] = d, t[78] = p, t[79] = g, t[80] = w) : w = t[80];
1436
- const S = w;
1067
+ c = t[4], m = t[5], h = t[6], f = t[7], p = t[8], g = t[9], T = t[10];
1068
+ let M;
1069
+ t[77] !== c || t[78] !== p || t[79] !== g ? (M = /* @__PURE__ */ i(c, { subheader: p, children: g }), t[77] = c, t[78] = p, t[79] = g, t[80] = M) : M = t[80];
1070
+ const x = M;
1437
1071
  let y;
1438
- t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ a(Tn, { sx: {
1072
+ t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ i(et, { sx: {
1439
1073
  width: {
1440
1074
  xs: 32,
1441
1075
  sm: 40
@@ -1446,68 +1080,65 @@ const Fe = 84, je = 320, pt = 64, ho = (t) => {
1446
1080
  }
1447
1081
  } }), t[81] = y) : y = t[81];
1448
1082
  let k;
1449
- t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(Ht, { fallback: y, children: /* @__PURE__ */ a(st, { promise: go(), children: So }) }), t[82] = k) : k = t[82];
1450
- let T;
1451
- t[83] !== h ? (T = /* @__PURE__ */ a(ze, { size: "small", edge: "end", onClick: h, children: k }), t[83] = h, t[84] = T) : T = t[84];
1452
- let v;
1453
- t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
1083
+ t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ i(Et, { fallback: /* @__PURE__ */ i(et, { sx: {
1084
+ width: {
1085
+ xs: 32,
1086
+ sm: 40
1087
+ },
1088
+ height: {
1089
+ xs: 32,
1090
+ sm: 40
1091
+ }
1092
+ } }) }), t[82] = k) : k = t[82];
1093
+ let b;
1094
+ t[83] !== h ? (b = /* @__PURE__ */ L(Ee, { size: "small", edge: "end", onClick: h, children: [
1095
+ y,
1096
+ k
1097
+ ] }), t[83] = h, t[84] = b) : b = t[84];
1098
+ let D;
1099
+ t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
1454
1100
  width: 240
1455
- }, t[85] = v) : v = t[85];
1101
+ }, t[85] = D) : D = t[85];
1456
1102
  let z;
1457
- t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(Pt, { children: /* @__PURE__ */ a(st, { promise: po(), children: To }) }), t[86] = z) : z = t[86];
1103
+ t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ i(St, {}), t[86] = z) : z = t[86];
1458
1104
  let I;
1459
- t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Ln, { color: "error" }) }), t[87] = I) : I = t[87];
1460
- let L;
1461
- t[88] !== i ? (L = i("Layout.Logout"), t[88] = i, t[89] = L) : L = t[89];
1462
- let M;
1463
- t[90] !== L ? (M = /* @__PURE__ */ D($e, { disablePadding: !0, children: [
1105
+ t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(un, { color: "error" }) }), t[87] = I) : I = t[87];
1106
+ let _;
1107
+ t[88] !== o ? (_ = o("Layout.Logout"), t[88] = o, t[89] = _) : _ = t[89];
1108
+ let v;
1109
+ t[90] !== _ ? (v = /* @__PURE__ */ L(Pe, { disablePadding: !0, children: [
1464
1110
  z,
1465
- /* @__PURE__ */ D(ce, { onClick: bo, children: [
1111
+ /* @__PURE__ */ L(ie, { onClick: Yn, children: [
1466
1112
  I,
1467
- /* @__PURE__ */ a(ae, { primary: L })
1113
+ /* @__PURE__ */ i(se, { primary: _ })
1468
1114
  ] })
1469
- ] }), t[90] = L, t[91] = M) : M = t[91];
1470
- const P = o === "settings" && f, U = o === "theme" && x, $ = o === "language" && S;
1471
- let A;
1472
- t[92] !== M || t[93] !== P || t[94] !== U || t[95] !== $ ? (A = /* @__PURE__ */ D(Ne, { sx: v, children: [
1473
- M,
1474
- P,
1475
- U,
1476
- $
1477
- ] }), t[92] = M, t[93] = P, t[94] = U, t[95] = $, t[96] = A) : A = t[96];
1478
- let _;
1479
- t[97] !== e || t[98] !== m || t[99] !== s || t[100] !== A ? (_ = /* @__PURE__ */ a(zt, { anchorEl: e, open: s, onClose: m, children: A }), t[97] = e, t[98] = m, t[99] = s, t[100] = A, t[101] = _) : _ = t[101];
1115
+ ] }), t[90] = _, t[91] = v) : v = t[91];
1116
+ const A = r === "settings" && f, Y = r === "theme" && T, j = r === "language" && x;
1117
+ let E;
1118
+ t[92] !== v || t[93] !== A || t[94] !== Y || t[95] !== j ? (E = /* @__PURE__ */ L(Ae, { sx: D, children: [
1119
+ v,
1120
+ A,
1121
+ Y,
1122
+ j
1123
+ ] }), t[92] = v, t[93] = A, t[94] = Y, t[95] = j, t[96] = E) : E = t[96];
1124
+ let w;
1125
+ t[97] !== e || t[98] !== m || t[99] !== a || t[100] !== E ? (w = /* @__PURE__ */ i(Mt, { anchorEl: e, open: a, onClose: m, children: E }), t[97] = e, t[98] = m, t[99] = a, t[100] = E, t[101] = w) : w = t[101];
1480
1126
  let O;
1481
- return t[102] !== _ || t[103] !== T ? (O = /* @__PURE__ */ D(Be, { children: [
1482
- T,
1483
- _
1484
- ] }), t[102] = _, t[103] = T, t[104] = O) : O = t[104], O;
1127
+ return t[102] !== w || t[103] !== b ? (O = /* @__PURE__ */ L(Ye, { children: [
1128
+ b,
1129
+ w
1130
+ ] }), t[102] = w, t[103] = b, t[104] = O) : O = t[104], O;
1485
1131
  };
1486
- function xo(t) {
1132
+ function $n(t) {
1487
1133
  return t !== "cimode";
1488
1134
  }
1489
- function So(t) {
1490
- return /* @__PURE__ */ a($t, { src: t, sx: {
1491
- width: {
1492
- xs: 32,
1493
- sm: 40
1494
- },
1495
- height: {
1496
- xs: 32,
1497
- sm: 40
1498
- }
1499
- } });
1500
- }
1501
- function To(t) {
1502
- return /* @__PURE__ */ a(ae, { primary: t.displayName.split("/")[0], secondary: t.jobTitle });
1503
- }
1504
- function bo() {
1135
+ function Yn() {
1505
1136
  return console.log("Logout clicked");
1506
1137
  }
1507
- const vt = 3600 * 24 * 365, wo = Wt().server(() => yt("navigationOpen") === "true").client(() => {
1138
+ const ut = 3600 * 24 * 365, Wn = Ct().server(() => at("navigationOpen") === "true").client(() => {
1508
1139
  const t = document.cookie.split("; ").find((e) => e.startsWith("navigationOpen="));
1509
1140
  return t ? t.split("=")[1] === "true" : !1;
1510
- }), ko = Ze("div")(({
1141
+ }), Un = Ze("div")(({
1511
1142
  theme: t
1512
1143
  }) => ({
1513
1144
  display: "flex",
@@ -1515,70 +1146,70 @@ const vt = 3600 * 24 * 365, wo = Wt().server(() => yt("navigationOpen") === "tru
1515
1146
  justifyContent: "flex-end",
1516
1147
  padding: t.spacing(0, 1),
1517
1148
  ...t.mixins.toolbar
1518
- })), vo = (t) => {
1519
- const e = R(29), [n, o] = q(wo), r = !!tn(), s = !!nn();
1520
- let i, l;
1521
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(Nt, {}), l = /* @__PURE__ */ a(jt, {}), e[0] = i, e[1] = l) : (i = e[0], l = e[1]);
1522
- let c;
1523
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
1149
+ })), Fn = (t) => {
1150
+ const e = B(29), [n, r] = V(Wn), s = !!Ft(), a = !!Rt();
1151
+ let o, l;
1152
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i(kt, {}), l = /* @__PURE__ */ i(Lt, {}), e[0] = o, e[1] = l) : (o = e[0], l = e[1]);
1153
+ let d;
1154
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
1524
1155
  display: "flex",
1525
1156
  height: "100dvh",
1526
1157
  maxHeight: "100dvh",
1527
1158
  overflow: "hidden",
1528
1159
  width: "100%"
1529
- }, e[2] = c) : c = e[2];
1160
+ }, e[2] = d) : d = e[2];
1530
1161
  let u;
1531
1162
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
1532
1163
  borderBottom: "1px solid",
1533
1164
  borderColor: "var(--mui-palette-divider)",
1534
1165
  boxShadow: "none"
1535
1166
  }, e[3] = u) : u = e[3];
1536
- let d;
1537
- e[4] !== n || e[5] !== t.navigation ? (d = t.navigation && /* @__PURE__ */ a(ze, { onClick: () => {
1538
- o(Lo);
1167
+ let c;
1168
+ e[4] !== n || e[5] !== t.navigation ? (c = t.navigation && /* @__PURE__ */ i(Ee, { onClick: () => {
1169
+ r(Rn);
1539
1170
  }, sx: {
1540
1171
  marginRight: 2
1541
- }, children: n ? /* @__PURE__ */ a(Zt, {}) : /* @__PURE__ */ a(Xt, {}) }), e[4] = n, e[5] = t.navigation, e[6] = d) : d = e[6];
1172
+ }, children: n ? /* @__PURE__ */ i(Yt, {}) : /* @__PURE__ */ i($t, {}) }), e[4] = n, e[5] = t.navigation, e[6] = c) : c = e[6];
1542
1173
  let m, h;
1543
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(io, {}), h = /* @__PURE__ */ a(yo, {}), e[7] = m, e[8] = h) : (m = e[7], h = e[8]);
1174
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(vn, {}), h = /* @__PURE__ */ i(Nn, {}), e[7] = m, e[8] = h) : (m = e[7], h = e[8]);
1544
1175
  let f;
1545
- e[9] !== d ? (f = /* @__PURE__ */ a(Ut, { color: "transparent", position: "fixed", sx: u, children: /* @__PURE__ */ D(Ft, { children: [
1546
- d,
1176
+ e[9] !== c ? (f = /* @__PURE__ */ i(Dt, { color: "transparent", position: "fixed", sx: u, children: /* @__PURE__ */ L(_t, { children: [
1177
+ c,
1547
1178
  m,
1548
1179
  h
1549
- ] }) }), e[9] = d, e[10] = f) : f = e[10];
1180
+ ] }) }), e[9] = c, e[10] = f) : f = e[10];
1550
1181
  let p;
1551
- e[11] !== n || e[12] !== t.navigation ? (p = t.navigation && /* @__PURE__ */ a(ho, { navigation: t.navigation, expanded: n, setExpanded: (v) => {
1552
- o(v), document.cookie = `navigationOpen=${v}; max-age=${vt}; path=/`;
1182
+ e[11] !== n || e[12] !== t.navigation ? (p = t.navigation && /* @__PURE__ */ i(zn, { navigation: t.navigation, expanded: n, setExpanded: (D) => {
1183
+ r(D), document.cookie = `navigationOpen=${D}; max-age=${ut}; path=/`;
1553
1184
  } }), e[11] = n, e[12] = t.navigation, e[13] = p) : p = e[13];
1554
- let g, x;
1555
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
1185
+ let g, T;
1186
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
1556
1187
  flexGrow: 1,
1557
1188
  display: "flex",
1558
1189
  flexDirection: "column",
1559
1190
  minWidth: 0,
1560
1191
  height: "100%",
1561
1192
  overflow: "hidden"
1562
- }, g = /* @__PURE__ */ a(ko, {}), e[14] = g, e[15] = x) : (g = e[14], x = e[15]);
1563
- let w;
1564
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
1193
+ }, g = /* @__PURE__ */ i(Un, {}), e[14] = g, e[15] = T) : (g = e[14], T = e[15]);
1194
+ let M;
1195
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
1565
1196
  flex: 1,
1566
1197
  overflow: "auto",
1567
1198
  position: "relative"
1568
- }, e[16] = w) : w = e[16];
1569
- let S;
1570
- e[17] !== t.children ? (S = /* @__PURE__ */ D(Ne, { component: "main", sx: x, children: [
1199
+ }, e[16] = M) : M = e[16];
1200
+ let x;
1201
+ e[17] !== t.children ? (x = /* @__PURE__ */ L(Ae, { component: "main", sx: T, children: [
1571
1202
  g,
1572
- /* @__PURE__ */ a(Ne, { sx: w, children: t.children })
1573
- ] }), e[17] = t.children, e[18] = S) : S = e[18];
1203
+ /* @__PURE__ */ i(Ae, { sx: M, children: t.children })
1204
+ ] }), e[17] = t.children, e[18] = x) : x = e[18];
1574
1205
  let y;
1575
- e[19] !== S || e[20] !== f || e[21] !== p ? (y = /* @__PURE__ */ D(Ne, { sx: c, children: [
1206
+ e[19] !== x || e[20] !== f || e[21] !== p ? (y = /* @__PURE__ */ L(Ae, { sx: d, children: [
1576
1207
  f,
1577
1208
  p,
1578
- S
1579
- ] }), e[19] = S, e[20] = f, e[21] = p, e[22] = y) : y = e[22];
1209
+ x
1210
+ ] }), e[19] = x, e[20] = f, e[21] = p, e[22] = y) : y = e[22];
1580
1211
  let k;
1581
- e[23] !== r || e[24] !== s ? (k = (r || s) && /* @__PURE__ */ a(Yt, { sx: {
1212
+ e[23] !== s || e[24] !== a ? (k = (s || a) && /* @__PURE__ */ i(vt, { sx: {
1582
1213
  position: "fixed",
1583
1214
  top: {
1584
1215
  xs: 56,
@@ -1586,61 +1217,60 @@ const vt = 3600 * 24 * 365, wo = Wt().server(() => yt("navigationOpen") === "tru
1586
1217
  },
1587
1218
  left: 0,
1588
1219
  right: 0
1589
- } }), e[23] = r, e[24] = s, e[25] = k) : k = e[25];
1590
- let T;
1591
- return e[26] !== y || e[27] !== k ? (T = /* @__PURE__ */ D(Be, { children: [
1592
- i,
1220
+ } }), e[23] = s, e[24] = a, e[25] = k) : k = e[25];
1221
+ let b;
1222
+ return e[26] !== y || e[27] !== k ? (b = /* @__PURE__ */ L(Ye, { children: [
1223
+ o,
1593
1224
  l,
1594
1225
  y,
1595
1226
  k
1596
- ] }), e[26] = y, e[27] = k, e[28] = T) : T = e[28], T;
1227
+ ] }), e[26] = y, e[27] = k, e[28] = b) : b = e[28], b;
1597
1228
  };
1598
- function Lo(t) {
1229
+ function Rn(t) {
1599
1230
  const e = !t;
1600
- return document.cookie = `navigationOpen=${e}; max-age=${vt}; path=/`, e;
1231
+ return document.cookie = `navigationOpen=${e}; max-age=${ut}; path=/`, e;
1601
1232
  }
1602
- const Do = 1440 * 365;
1603
- W.use(wt).use(no).init({
1604
- resources: it,
1233
+ const Bn = 1440 * 365;
1234
+ R.use(It).use(zt).init({
1235
+ resources: Je,
1605
1236
  fallbackLng: "en",
1606
- supportedLngs: Object.keys(it),
1237
+ supportedLngs: Object.keys(Je),
1607
1238
  detection: {
1608
1239
  caches: ["cookie"],
1609
- cookieMinutes: Do
1240
+ cookieMinutes: Bn
1610
1241
  },
1611
1242
  interpolation: {
1612
1243
  escapeValue: !1
1613
1244
  }
1614
1245
  });
1615
- const Li = (t) => {
1616
- const e = R(9), {
1246
+ const Fo = (t) => {
1247
+ const e = B(9), {
1617
1248
  navigation: n,
1618
- theme: o,
1619
- children: r
1620
- } = t, s = qt(Mo);
1621
- let i;
1622
- e[0] !== s ? (i = () => (s(), W.on("languageChanged", s), () => {
1623
- W.off("languageChanged", s);
1624
- }), e[0] = s, e[1] = i) : i = e[1];
1249
+ theme: r,
1250
+ children: s
1251
+ } = t, a = At(Hn);
1252
+ let o;
1253
+ e[0] !== a ? (o = () => (a(), R.on("languageChanged", a), () => {
1254
+ R.off("languageChanged", a);
1255
+ }), e[0] = a, e[1] = o) : o = e[1];
1625
1256
  let l;
1626
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], xt(i, l);
1627
- let c;
1628
- e[3] !== r || e[4] !== n ? (c = /* @__PURE__ */ a(nt, { dateAdapter: Fn, adapterLocale: W.language, children: /* @__PURE__ */ a(oo, { children: /* @__PURE__ */ a(vo, { navigation: n, children: r }) }) }, W.language), e[3] = r, e[4] = n, e[5] = c) : c = e[5];
1257
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], lt(o, l);
1258
+ let d;
1259
+ e[3] !== s || e[4] !== n ? (d = /* @__PURE__ */ i(qe, { dateAdapter: Dn, adapterLocale: R.language, children: /* @__PURE__ */ i(_n, { children: /* @__PURE__ */ i(Fn, { navigation: n, children: s }) }) }, R.language), e[3] = s, e[4] = n, e[5] = d) : d = e[5];
1629
1260
  let u;
1630
- return e[6] !== c || e[7] !== o ? (u = /* @__PURE__ */ a(Bt, { theme: o, children: c }), e[6] = c, e[7] = o, e[8] = u) : u = e[8], u;
1631
- }, Di = Ye().handler(async () => {
1632
- const t = yt(W.services.languageDetector.options.lookupCookie) || "en";
1633
- le.config(le.core.locales[t]()), C.locale(t), await W.changeLanguage(t);
1261
+ return e[6] !== d || e[7] !== r ? (u = /* @__PURE__ */ i(Ot, { theme: r, children: d }), e[6] = d, e[7] = r, e[8] = u) : u = e[8], u;
1262
+ }, Ro = wt().handler(async () => {
1263
+ const t = at(R.services.languageDetector.options.lookupCookie) || "en";
1264
+ ze.config(ze.core.locales[t]()), C.locale(t), await R.changeLanguage(t);
1634
1265
  });
1635
- function Mo() {
1636
- le.config(le.core.locales[W.language]()), C.locale(W.language);
1266
+ function Hn() {
1267
+ ze.config(ze.core.locales[R.language]()), C.locale(R.language);
1637
1268
  }
1638
1269
  export {
1639
- Li as LayoutProvider,
1640
- Ci as WISTRON_PRIMARY_COLOR,
1641
- _i as WISTRON_SECONDARY_COLOR,
1642
- vi as getSessionUser,
1643
- Ii as rootRouteHead,
1644
- Di as setSSRLanguage
1270
+ Fo as LayoutProvider,
1271
+ Vo as WISTRON_PRIMARY_COLOR,
1272
+ Go as WISTRON_SECONDARY_COLOR,
1273
+ Xo as rootRouteHead,
1274
+ Ro as setSSRLanguage
1645
1275
  };
1646
1276
  //# sourceMappingURL=index.js.map