@tenorlab/react-dashboard 1.5.24 → 1.5.26

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.
@@ -5,18 +5,18 @@ import { jsxs as $, jsx as n } from "react/jsx-runtime";
5
5
  import ot from "react-dom";
6
6
  const wt = (e) => (i, t, r) => {
7
7
  const a = r.subscribe;
8
- return r.subscribe = ((c, h, C) => {
9
- let v = c;
10
- if (h) {
8
+ return r.subscribe = ((d, f, C) => {
9
+ let v = d;
10
+ if (f) {
11
11
  const m = C?.equalityFn || Object.is;
12
- let d = c(r.getState());
12
+ let c = d(r.getState());
13
13
  v = (y) => {
14
- const p = c(y);
15
- if (!m(d, p)) {
16
- const T = d;
17
- h(d = p, T);
14
+ const p = d(y);
15
+ if (!m(c, p)) {
16
+ const T = c;
17
+ f(c = p, T);
18
18
  }
19
- }, C?.fireImmediately && h(d, d);
19
+ }, C?.fireImmediately && f(c, c);
20
20
  }
21
21
  return a(v);
22
22
  }), e(i, t, r);
@@ -30,7 +30,7 @@ const wt = (e) => (i, t, r) => {
30
30
  const { dashboardConfig: i, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: a } = e;
31
31
  if (r) {
32
32
  if (a && i.childWidgetsConfig.find(
33
- (c) => c.parentWidgetKey === r && c.widgetKey === t
33
+ (d) => d.parentWidgetKey === r && d.widgetKey === t
34
34
  ))
35
35
  return {
36
36
  success: !1,
@@ -70,70 +70,70 @@ const wt = (e) => (i, t, r) => {
70
70
  if (a.length > 0) {
71
71
  const o = e.childWidgetsConfig.filter(
72
72
  (m) => `${m.parentWidgetKey}`.trim().toLowerCase() !== a
73
- ), c = e.childWidgetsConfig.filter(
73
+ ), d = e.childWidgetsConfig.filter(
74
74
  (m) => `${m.parentWidgetKey}`.trim().toLowerCase() === a && `${m.widgetKey}`.trim().toLowerCase() !== r
75
- ), h = [...o, ...c];
75
+ ), f = [...o, ...d];
76
76
  let C = {
77
77
  ...e,
78
- childWidgetsConfig: h
78
+ childWidgetsConfig: f
79
79
  };
80
80
  return r.includes("container") && (C = mt(C)), {
81
81
  success: !0,
82
82
  updatedDashboardConfig: C
83
83
  };
84
84
  } else {
85
- const c = (e.widgets || []).filter(
85
+ const d = (e.widgets || []).filter(
86
86
  (C) => `${C}`.trim().toLowerCase() !== r
87
- ), h = e.childWidgetsConfig.filter(
87
+ ), f = e.childWidgetsConfig.filter(
88
88
  (C) => `${C.parentWidgetKey}`.trim().toLowerCase() !== r
89
89
  );
90
90
  return {
91
91
  success: !0,
92
92
  updatedDashboardConfig: {
93
93
  ...e,
94
- widgets: c,
95
- childWidgetsConfig: h
94
+ widgets: d,
95
+ childWidgetsConfig: f
96
96
  }
97
97
  };
98
98
  }
99
99
  }, _t = (e, i, t, r) => {
100
100
  const a = `${t || ""}`.trim().toLowerCase(), o = `${r || ""}`.trim().toLowerCase();
101
101
  if (o.length > 0) {
102
- const c = e.childWidgetsConfig.filter(
102
+ const d = e.childWidgetsConfig.filter(
103
103
  (p) => `${p.parentWidgetKey}`.trim().toLowerCase() !== o
104
104
  );
105
- let h = e.childWidgetsConfig.filter(
105
+ let f = e.childWidgetsConfig.filter(
106
106
  (p) => `${p.parentWidgetKey}`.trim().toLowerCase() === o
107
107
  );
108
- const C = h.find(
108
+ const C = f.find(
109
109
  (p) => `${p.widgetKey}`.trim().toLowerCase() === a
110
- ), v = h.indexOf(C);
110
+ ), v = f.indexOf(C);
111
111
  let m = v + i;
112
- if (m = Math.max(0, m), m = Math.min(h.length - 1, m), m === v)
112
+ if (m = Math.max(0, m), m = Math.min(f.length - 1, m), m === v)
113
113
  return {
114
114
  success: !1,
115
115
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
116
116
  updatedDashboardConfig: e
117
117
  };
118
- const d = [...h], [y] = d.splice(v, 1);
119
- return d.splice(m, 0, y), {
118
+ const c = [...f], [y] = c.splice(v, 1);
119
+ return c.splice(m, 0, y), {
120
120
  success: !0,
121
121
  updatedDashboardConfig: {
122
122
  ...e,
123
- childWidgetsConfig: [...c, ...d]
123
+ childWidgetsConfig: [...d, ...c]
124
124
  }
125
125
  };
126
126
  } else {
127
- const c = e.widgets || [], C = c.map((y) => `${y}`.trim().toLowerCase()).indexOf(a);
127
+ const d = e.widgets || [], C = d.map((y) => `${y}`.trim().toLowerCase()).indexOf(a);
128
128
  let v = C + i;
129
- if (v = Math.max(0, v), v = Math.min(c.length - 1, v), v === C)
129
+ if (v = Math.max(0, v), v = Math.min(d.length - 1, v), v === C)
130
130
  return {
131
131
  success: !1,
132
132
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
133
133
  updatedDashboardConfig: e
134
134
  };
135
- const m = [...c], [d] = m.splice(C, 1);
136
- return m.splice(v, 0, d), {
135
+ const m = [...d], [c] = m.splice(C, 1);
136
+ return m.splice(v, 0, c), {
137
137
  success: !0,
138
138
  updatedDashboardConfig: {
139
139
  ...e,
@@ -199,7 +199,7 @@ const wt = (e) => (i, t, r) => {
199
199
  ...t
200
200
  }), o = [
201
201
  ...r.allDashboardConfigs.filter(
202
- (c) => c.dashboardId !== a.updatedDashboardConfig.dashboardId
202
+ (d) => d.dashboardId !== a.updatedDashboardConfig.dashboardId
203
203
  ),
204
204
  a.updatedDashboardConfig
205
205
  ];
@@ -212,33 +212,33 @@ const wt = (e) => (i, t, r) => {
212
212
  };
213
213
  },
214
214
  removeWidget: (t, r) => {
215
- const a = i(), o = Et(a.currentDashboardConfig, t, r), c = [
215
+ const a = i(), o = Et(a.currentDashboardConfig, t, r), d = [
216
216
  ...a.allDashboardConfigs.filter(
217
- (h) => h.dashboardId !== o.updatedDashboardConfig.dashboardId
217
+ (f) => f.dashboardId !== o.updatedDashboardConfig.dashboardId
218
218
  ),
219
219
  o.updatedDashboardConfig
220
220
  ];
221
221
  return o.success && e(() => ({
222
- allDashboardConfigs: c,
222
+ allDashboardConfigs: d,
223
223
  currentDashboardConfig: o.updatedDashboardConfig
224
224
  })), {
225
225
  ...o,
226
- allUpdatedDashboardConfigs: c
226
+ allUpdatedDashboardConfigs: d
227
227
  };
228
228
  },
229
229
  moveWidget: (t, r, a) => {
230
- const o = i(), c = _t(o.currentDashboardConfig, t, r, a), h = [
230
+ const o = i(), d = _t(o.currentDashboardConfig, t, r, a), f = [
231
231
  ...o.allDashboardConfigs.filter(
232
- (C) => C.dashboardId !== c.updatedDashboardConfig.dashboardId
232
+ (C) => C.dashboardId !== d.updatedDashboardConfig.dashboardId
233
233
  ),
234
- c.updatedDashboardConfig
234
+ d.updatedDashboardConfig
235
235
  ];
236
- return c.success && e(() => ({
237
- allDashboardConfigs: h,
238
- currentDashboardConfig: c.updatedDashboardConfig
236
+ return d.success && e(() => ({
237
+ allDashboardConfigs: f,
238
+ currentDashboardConfig: d.updatedDashboardConfig
239
239
  })), {
240
- ...c,
241
- allUpdatedDashboardConfigs: h
240
+ ...d,
241
+ allUpdatedDashboardConfigs: f
242
242
  };
243
243
  }
244
244
  }), hn = gt()(
@@ -247,7 +247,7 @@ const wt = (e) => (i, t, r) => {
247
247
  }))
248
248
  ), gn = () => {
249
249
  const [e, i] = ae({}), [t, r] = ae({}), a = ce((m) => {
250
- const d = m.dashboardId;
250
+ const c = m.dashboardId;
251
251
  i((y) => {
252
252
  const p = {
253
253
  undoIndex: 0,
@@ -255,17 +255,17 @@ const wt = (e) => (i, t, r) => {
255
255
  };
256
256
  return r((T) => ({
257
257
  ...T,
258
- [d]: 0
258
+ [c]: 0
259
259
  })), {
260
260
  ...y,
261
- [d]: [p]
261
+ [c]: [p]
262
262
  // Forces a reset to just this one entry
263
263
  };
264
264
  });
265
265
  }, []), o = ce(
266
266
  (m) => {
267
- i((d) => {
268
- const y = m.dashboardId, p = d[y] || [], T = t[y] ?? -1, g = p.slice(0, T + 1), b = {
267
+ i((c) => {
268
+ const y = m.dashboardId, p = c[y] || [], T = t[y] ?? -1, g = p.slice(0, T + 1), b = {
269
269
  undoIndex: g.length,
270
270
  // New index based on trimmed length
271
271
  config: m
@@ -275,27 +275,27 @@ const wt = (e) => (i, t, r) => {
275
275
  [y]: w.length - 1
276
276
  // Index is now the last element's index
277
277
  })), {
278
- ...d,
278
+ ...c,
279
279
  [y]: w
280
280
  };
281
281
  });
282
282
  },
283
283
  [t]
284
- ), c = ce((m) => {
285
- i((d) => {
286
- if (!d[m])
287
- return d;
288
- const { [m]: y, ...p } = d;
284
+ ), d = ce((m) => {
285
+ i((c) => {
286
+ if (!c[m])
287
+ return c;
288
+ const { [m]: y, ...p } = c;
289
289
  return p;
290
- }), r((d) => {
291
- const { [m]: y, ...p } = d;
290
+ }), r((c) => {
291
+ const { [m]: y, ...p } = c;
292
292
  return p;
293
293
  });
294
- }, []), h = ce(
294
+ }, []), f = ce(
295
295
  (m) => {
296
- r((d) => {
297
- const y = d[m] ?? -1, p = Math.max(0, y - 1);
298
- return p !== y ? { ...d, [m]: p } : d;
296
+ r((c) => {
297
+ const y = c[m] ?? -1, p = Math.max(0, y - 1);
298
+ return p !== y ? { ...c, [m]: p } : c;
299
299
  });
300
300
  },
301
301
  [
@@ -303,9 +303,9 @@ const wt = (e) => (i, t, r) => {
303
303
  ]
304
304
  ), C = ce(
305
305
  (m) => {
306
- r((d) => {
307
- const y = e[m]?.length || 0, p = d[m] ?? -1, T = Math.min(y - 1, p + 1);
308
- return T !== p ? { ...d, [m]: T } : d;
306
+ r((c) => {
307
+ const y = e[m]?.length || 0, p = c[m] ?? -1, T = Math.min(y - 1, p + 1);
308
+ return T !== p ? { ...c, [m]: T } : c;
309
309
  });
310
310
  },
311
311
  [
@@ -317,11 +317,11 @@ const wt = (e) => (i, t, r) => {
317
317
  initializeHistoryForDashboard: a,
318
318
  resetAllHistory: () => i({}),
319
319
  addUndoEntry: o,
320
- removeUndoHistoryForDashboard: c,
321
- undo: h,
320
+ removeUndoHistoryForDashboard: d,
321
+ undo: f,
322
322
  redo: C,
323
323
  getUndoStatus: (m) => {
324
- const d = t[m] ?? -1, y = e[m]?.length || 0, p = d <= 0, T = d >= y - 1;
324
+ const c = t[m] ?? -1, y = e[m]?.length || 0, p = c <= 0, T = c >= y - 1;
325
325
  return { isUndoDisabled: p, isRedoDisabled: T };
326
326
  },
327
327
  undoHistory: e,
@@ -492,19 +492,19 @@ function $t({ className: e }) {
492
492
  /* @__PURE__ */ n("path", { d: "M9 17H4v5" })
493
493
  ] });
494
494
  }
495
- function Rt({ className: e }) {
495
+ function It({ className: e }) {
496
496
  return /* @__PURE__ */ $(U, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
497
497
  /* @__PURE__ */ n("path", { d: "M3 7v6h6" }),
498
498
  /* @__PURE__ */ n("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
499
499
  ] });
500
500
  }
501
- function Wt({ className: e }) {
501
+ function Rt({ className: e }) {
502
502
  return /* @__PURE__ */ $(U, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
503
503
  /* @__PURE__ */ n("path", { d: "M21 7v6h-6" }),
504
504
  /* @__PURE__ */ n("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
505
505
  ] });
506
506
  }
507
- function It({ className: e }) {
507
+ function Wt({ className: e }) {
508
508
  return /* @__PURE__ */ $(U, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
509
509
  /* @__PURE__ */ n("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
510
510
  /* @__PURE__ */ n("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
@@ -556,15 +556,15 @@ const lt = ({
556
556
  value: r,
557
557
  onChange: a,
558
558
  onKeyDown: o,
559
- placeholder: c = ""
559
+ placeholder: d = ""
560
560
  }) => {
561
- const h = rt(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), C = G("flex flex-col mb-4", i || ""), m = `${G(`
561
+ const f = rt(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), C = G("flex flex-col mb-4", i || ""), m = `${G(`
562
562
  block w-full rounded-md px-3 py-1.5 text-base
563
563
  bg-formfield content-formfield
564
564
  outline-1 -outline-offset-1 outline-primary
565
565
  placeholder:text-disabled
566
566
  focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
567
- `)} ${h}`;
567
+ `)} ${f}`;
568
568
  return /* @__PURE__ */ $("div", { className: C, children: [
569
569
  /* @__PURE__ */ n("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
570
570
  /* @__PURE__ */ n(
@@ -574,8 +574,8 @@ const lt = ({
574
574
  type: "text",
575
575
  value: r,
576
576
  onChange: a,
577
- onKeyDown: (d) => o && o(d),
578
- placeholder: c,
577
+ onKeyDown: (c) => o && o(c),
578
+ placeholder: d,
579
579
  className: m,
580
580
  "aria-label": e
581
581
  }
@@ -598,16 +598,16 @@ function J(e) {
598
598
  isIconButton: r,
599
599
  className: a,
600
600
  buttonType: o,
601
- category: c,
602
- px: h,
601
+ category: d,
602
+ px: f,
603
603
  py: C,
604
604
  children: v,
605
605
  ...m
606
- } = e, d = () => {
606
+ } = e, c = () => {
607
607
  const p = e.isIconButton || !1, T = e.category || "primary", g = e.buttonType || "normal", b = e.disabled || !1, w = e.className || "", N = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
608
608
  let D = (e.borderColor || "").trim();
609
609
  D = D.length > 0 ? D : "";
610
- const l = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), M = e.shadow || "sm", s = e.shadowHover || "md", f = (e.addCss || "").trim(), u = e.justifyCss || "justify-center";
610
+ const l = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), M = e.shadow || "sm", s = e.shadowHover || "md", h = (e.addCss || "").trim(), u = e.justifyCss || "justify-center";
611
611
  if (p)
612
612
  return G(
613
613
  "flex flex-row items-center",
@@ -625,33 +625,33 @@ function J(e) {
625
625
  g === "ghost" ? _.push("text-disabled border-disabled cursor-not-allowed") : _.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
626
626
  else {
627
627
  _.push("cursor-pointer");
628
- let R = "";
629
- Ce.has(g) ? R = `${Ce.get(g)}` : R = `${Ce.get("normal")}`, S < 1 && (R = R.replace("border-[category]", ""));
630
- const z = R.replace(/\[category\]/g, T).trim();
631
- _.push(z);
628
+ let I = "";
629
+ Ce.has(g) ? I = `${Ce.get(g)}` : I = `${Ce.get("normal")}`, S < 1 && (I = I.replace("border-[category]", ""));
630
+ const H = I.replace(/\[category\]/g, T).trim();
631
+ _.push(H);
632
632
  }
633
- return S > 0 ? (_.push(`border-[${S}px]`), _.push(`border-${D}`)) : (_.push("border-[1px]"), _.push("border-transparent")), l > 0 ? (_.push(`hover:border-[${l}px] group-hover:border-[${l}px]`), _.push(`hover:border-${D} group-hover:border-${D}`)) : _.push("hover:border-[1px] group-hover:border-[1px]"), _.push(`shadow-${M}`), _.push(`hover:shadow-${s} group-hover:shadow-${s}`), f.length > 0 && _.push(f), f.indexOf("hidden") === -1 && _.push("inline-flex"), _.push(u), _.join(" ").trim();
633
+ return S > 0 ? (_.push(`border-[${S}px]`), _.push(`border-${D}`)) : (_.push("border-[1px]"), _.push("border-transparent")), l > 0 ? (_.push(`hover:border-[${l}px] group-hover:border-[${l}px]`), _.push(`hover:border-${D} group-hover:border-${D}`)) : _.push("hover:border-[1px] group-hover:border-[1px]"), _.push(`shadow-${M}`), _.push(`hover:shadow-${s} group-hover:shadow-${s}`), h.length > 0 && _.push(h), h.indexOf("hidden") === -1 && _.push("inline-flex"), _.push(u), _.join(" ").trim();
634
634
  }, y = () => {
635
635
  const p = e.px || 0.7, T = e.py || 0.25;
636
636
  return {
637
637
  padding: r ? 0 : `${T}rem ${p}rem `
638
638
  };
639
639
  };
640
- return /* @__PURE__ */ n("button", { type: "button", disabled: t, className: d(), style: y(), ...m, children: v });
640
+ return /* @__PURE__ */ n("button", { type: "button", disabled: t, className: c(), style: y(), ...m, children: v });
641
641
  }
642
642
  const At = (e) => e.direction === "row" ? G("flex flex-row items-center gap-2", e.classNames || "") : G("flex flex-col gap-2 w-full", e.classNames || "");
643
643
  function Lt(e) {
644
- const { children: i, testId: t, classNames: r, direction: a, ...o } = e, c = At(e);
645
- return /* @__PURE__ */ n("div", { "data-testid": t || "not-set", className: c, ...o, children: i });
644
+ const { children: i, testId: t, classNames: r, direction: a, ...o } = e, d = At(e);
645
+ return /* @__PURE__ */ n("div", { "data-testid": t || "not-set", className: d, ...o, children: i });
646
646
  }
647
647
  const Nn = se(
648
648
  (e, i) => {
649
- const { classNames: t, innerClass: r, ...a } = e, o = G(t || "", "w-full"), c = G(
649
+ const { classNames: t, innerClass: r, ...a } = e, o = G(t || "", "w-full"), d = G(
650
650
  `w-full flex overflow-hidden justify-between items-center gap-0
651
651
  rounded-md border`,
652
652
  r || ""
653
653
  );
654
- return /* @__PURE__ */ n(Lt, { direction: "row", classNames: o, ...a, children: /* @__PURE__ */ n("div", { className: c, children: e.children }) });
654
+ return /* @__PURE__ */ n(Lt, { direction: "row", classNames: o, ...a, children: /* @__PURE__ */ n("div", { className: d, children: e.children }) });
655
655
  }
656
656
  ), En = se((e, i) => /* @__PURE__ */ n(
657
657
  "div",
@@ -693,7 +693,7 @@ var ke;
693
693
  function Kt() {
694
694
  if (ke) return K;
695
695
  ke = 1;
696
- var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, h = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, C = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
696
+ var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, d = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, C = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, c = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
697
697
  function S(l) {
698
698
  if (typeof l == "object" && l !== null) {
699
699
  var M = l.$$typeof;
@@ -705,15 +705,15 @@ function Kt() {
705
705
  case r:
706
706
  case o:
707
707
  case a:
708
- case d:
708
+ case c:
709
709
  return l;
710
710
  default:
711
711
  switch (l = l && l.$$typeof, l) {
712
- case h:
712
+ case f:
713
713
  case m:
714
714
  case T:
715
715
  case p:
716
- case c:
716
+ case d:
717
717
  return l;
718
718
  default:
719
719
  return M;
@@ -727,12 +727,12 @@ function Kt() {
727
727
  function D(l) {
728
728
  return S(l) === v;
729
729
  }
730
- return K.AsyncMode = C, K.ConcurrentMode = v, K.ContextConsumer = h, K.ContextProvider = c, K.Element = i, K.ForwardRef = m, K.Fragment = r, K.Lazy = T, K.Memo = p, K.Portal = t, K.Profiler = o, K.StrictMode = a, K.Suspense = d, K.isAsyncMode = function(l) {
730
+ return K.AsyncMode = C, K.ConcurrentMode = v, K.ContextConsumer = f, K.ContextProvider = d, K.Element = i, K.ForwardRef = m, K.Fragment = r, K.Lazy = T, K.Memo = p, K.Portal = t, K.Profiler = o, K.StrictMode = a, K.Suspense = c, K.isAsyncMode = function(l) {
731
731
  return D(l) || S(l) === C;
732
732
  }, K.isConcurrentMode = D, K.isContextConsumer = function(l) {
733
- return S(l) === h;
733
+ return S(l) === f;
734
734
  }, K.isContextProvider = function(l) {
735
- return S(l) === c;
735
+ return S(l) === d;
736
736
  }, K.isElement = function(l) {
737
737
  return typeof l == "object" && l !== null && l.$$typeof === i;
738
738
  }, K.isForwardRef = function(l) {
@@ -750,19 +750,19 @@ function Kt() {
750
750
  }, K.isStrictMode = function(l) {
751
751
  return S(l) === a;
752
752
  }, K.isSuspense = function(l) {
753
- return S(l) === d;
753
+ return S(l) === c;
754
754
  }, K.isValidElementType = function(l) {
755
- return typeof l == "string" || typeof l == "function" || l === r || l === v || l === o || l === a || l === d || l === y || typeof l == "object" && l !== null && (l.$$typeof === T || l.$$typeof === p || l.$$typeof === c || l.$$typeof === h || l.$$typeof === m || l.$$typeof === b || l.$$typeof === w || l.$$typeof === N || l.$$typeof === g);
755
+ return typeof l == "string" || typeof l == "function" || l === r || l === v || l === o || l === a || l === c || l === y || typeof l == "object" && l !== null && (l.$$typeof === T || l.$$typeof === p || l.$$typeof === d || l.$$typeof === f || l.$$typeof === m || l.$$typeof === b || l.$$typeof === w || l.$$typeof === N || l.$$typeof === g);
756
756
  }, K.typeOf = S, K;
757
757
  }
758
758
  var Y = {};
759
759
  var je;
760
760
  function Yt() {
761
761
  return je || (je = 1, process.env.NODE_ENV !== "production" && (function() {
762
- var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, h = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, C = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
762
+ var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, d = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, C = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, c = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
763
763
  function S(E) {
764
764
  return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
765
- E === r || E === v || E === o || E === a || E === d || E === y || typeof E == "object" && E !== null && (E.$$typeof === T || E.$$typeof === p || E.$$typeof === c || E.$$typeof === h || E.$$typeof === m || E.$$typeof === b || E.$$typeof === w || E.$$typeof === N || E.$$typeof === g);
765
+ E === r || E === v || E === o || E === a || E === c || E === y || typeof E == "object" && E !== null && (E.$$typeof === T || E.$$typeof === p || E.$$typeof === d || E.$$typeof === f || E.$$typeof === m || E.$$typeof === b || E.$$typeof === w || E.$$typeof === N || E.$$typeof === g);
766
766
  }
767
767
  function D(E) {
768
768
  if (typeof E == "object" && E !== null) {
@@ -776,16 +776,16 @@ function Yt() {
776
776
  case r:
777
777
  case o:
778
778
  case a:
779
- case d:
779
+ case c:
780
780
  return fe;
781
781
  default:
782
782
  var Oe = fe && fe.$$typeof;
783
783
  switch (Oe) {
784
- case h:
784
+ case f:
785
785
  case m:
786
786
  case T:
787
787
  case p:
788
- case c:
788
+ case d:
789
789
  return Oe;
790
790
  default:
791
791
  return te;
@@ -796,7 +796,7 @@ function Yt() {
796
796
  }
797
797
  }
798
798
  }
799
- var l = C, M = v, s = h, f = c, u = i, _ = m, R = r, z = T, X = p, V = t, Q = o, H = a, ee = d, ie = !1;
799
+ var l = C, M = v, s = f, h = d, u = i, _ = m, I = r, H = T, X = p, V = t, Q = o, B = a, ee = c, ie = !1;
800
800
  function le(E) {
801
801
  return ie || (ie = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(E) || D(E) === C;
802
802
  }
@@ -804,21 +804,21 @@ function Yt() {
804
804
  return D(E) === v;
805
805
  }
806
806
  function P(E) {
807
- return D(E) === h;
807
+ return D(E) === f;
808
808
  }
809
809
  function j(E) {
810
- return D(E) === c;
810
+ return D(E) === d;
811
811
  }
812
812
  function O(E) {
813
813
  return typeof E == "object" && E !== null && E.$$typeof === i;
814
814
  }
815
- function W(E) {
815
+ function R(E) {
816
816
  return D(E) === m;
817
817
  }
818
818
  function A(E) {
819
819
  return D(E) === r;
820
820
  }
821
- function I(E) {
821
+ function W(E) {
822
822
  return D(E) === T;
823
823
  }
824
824
  function k(E) {
@@ -834,9 +834,9 @@ function Yt() {
834
834
  return D(E) === a;
835
835
  }
836
836
  function Z(E) {
837
- return D(E) === d;
837
+ return D(E) === c;
838
838
  }
839
- Y.AsyncMode = l, Y.ConcurrentMode = M, Y.ContextConsumer = s, Y.ContextProvider = f, Y.Element = u, Y.ForwardRef = _, Y.Fragment = R, Y.Lazy = z, Y.Memo = X, Y.Portal = V, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = le, Y.isConcurrentMode = x, Y.isContextConsumer = P, Y.isContextProvider = j, Y.isElement = O, Y.isForwardRef = W, Y.isFragment = A, Y.isLazy = I, Y.isMemo = k, Y.isPortal = L, Y.isProfiler = F, Y.isStrictMode = q, Y.isSuspense = Z, Y.isValidElementType = S, Y.typeOf = D;
839
+ Y.AsyncMode = l, Y.ConcurrentMode = M, Y.ContextConsumer = s, Y.ContextProvider = h, Y.Element = u, Y.ForwardRef = _, Y.Fragment = I, Y.Lazy = H, Y.Memo = X, Y.Portal = V, Y.Profiler = Q, Y.StrictMode = B, Y.Suspense = ee, Y.isAsyncMode = le, Y.isConcurrentMode = x, Y.isContextConsumer = P, Y.isContextProvider = j, Y.isElement = O, Y.isForwardRef = R, Y.isFragment = A, Y.isLazy = W, Y.isMemo = k, Y.isPortal = L, Y.isProfiler = F, Y.isStrictMode = q, Y.isSuspense = Z, Y.isValidElementType = S, Y.typeOf = D;
840
840
  })()), Y;
841
841
  }
842
842
  var Ae;
@@ -860,10 +860,10 @@ function Ft() {
860
860
  var o = new String("abc");
861
861
  if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
862
862
  return !1;
863
- for (var c = {}, h = 0; h < 10; h++)
864
- c["_" + String.fromCharCode(h)] = h;
865
- var C = Object.getOwnPropertyNames(c).map(function(m) {
866
- return c[m];
863
+ for (var d = {}, f = 0; f < 10; f++)
864
+ d["_" + String.fromCharCode(f)] = f;
865
+ var C = Object.getOwnPropertyNames(d).map(function(m) {
866
+ return d[m];
867
867
  });
868
868
  if (C.join("") !== "0123456789")
869
869
  return !1;
@@ -875,22 +875,22 @@ function Ft() {
875
875
  return !1;
876
876
  }
877
877
  }
878
- return Se = a() ? Object.assign : function(o, c) {
879
- for (var h, C = r(o), v, m = 1; m < arguments.length; m++) {
880
- h = Object(arguments[m]);
881
- for (var d in h)
882
- i.call(h, d) && (C[d] = h[d]);
878
+ return Se = a() ? Object.assign : function(o, d) {
879
+ for (var f, C = r(o), v, m = 1; m < arguments.length; m++) {
880
+ f = Object(arguments[m]);
881
+ for (var c in f)
882
+ i.call(f, c) && (C[c] = f[c]);
883
883
  if (e) {
884
- v = e(h);
884
+ v = e(f);
885
885
  for (var y = 0; y < v.length; y++)
886
- t.call(h, v[y]) && (C[v[y]] = h[v[y]]);
886
+ t.call(f, v[y]) && (C[v[y]] = f[v[y]]);
887
887
  }
888
888
  }
889
889
  return C;
890
890
  }, Se;
891
891
  }
892
892
  var De, qe;
893
- function Re() {
893
+ function Ie() {
894
894
  if (qe) return De;
895
895
  qe = 1;
896
896
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
@@ -907,39 +907,39 @@ function Ut() {
907
907
  var e = function() {
908
908
  };
909
909
  if (process.env.NODE_ENV !== "production") {
910
- var i = /* @__PURE__ */ Re(), t = {}, r = /* @__PURE__ */ dt();
910
+ var i = /* @__PURE__ */ Ie(), t = {}, r = /* @__PURE__ */ dt();
911
911
  e = function(o) {
912
- var c = "Warning: " + o;
913
- typeof console < "u" && console.error(c);
912
+ var d = "Warning: " + o;
913
+ typeof console < "u" && console.error(d);
914
914
  try {
915
- throw new Error(c);
915
+ throw new Error(d);
916
916
  } catch {
917
917
  }
918
918
  };
919
919
  }
920
- function a(o, c, h, C, v) {
920
+ function a(o, d, f, C, v) {
921
921
  if (process.env.NODE_ENV !== "production") {
922
922
  for (var m in o)
923
923
  if (r(o, m)) {
924
- var d;
924
+ var c;
925
925
  try {
926
926
  if (typeof o[m] != "function") {
927
927
  var y = Error(
928
- (C || "React class") + ": " + h + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
928
+ (C || "React class") + ": " + f + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
929
929
  );
930
930
  throw y.name = "Invariant Violation", y;
931
931
  }
932
- d = o[m](c, m, C, h, null, i);
932
+ c = o[m](d, m, C, f, null, i);
933
933
  } catch (T) {
934
- d = T;
934
+ c = T;
935
935
  }
936
- if (d && !(d instanceof Error) && e(
937
- (C || "React class") + ": type specification of " + h + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
938
- ), d instanceof Error && !(d.message in t)) {
939
- t[d.message] = !0;
936
+ if (c && !(c instanceof Error) && e(
937
+ (C || "React class") + ": type specification of " + f + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
938
+ ), c instanceof Error && !(c.message in t)) {
939
+ t[c.message] = !0;
940
940
  var p = v ? v() : "";
941
941
  e(
942
- "Failed " + h + " type: " + d.message + (p ?? "")
942
+ "Failed " + f + " type: " + c.message + (p ?? "")
943
943
  );
944
944
  }
945
945
  }
@@ -950,25 +950,25 @@ function Ut() {
950
950
  }, Ne = a, Ne;
951
951
  }
952
952
  var Ee, Fe;
953
- function Bt() {
953
+ function zt() {
954
954
  if (Fe) return Ee;
955
955
  Fe = 1;
956
- var e = ct(), i = Ft(), t = /* @__PURE__ */ Re(), r = /* @__PURE__ */ dt(), a = /* @__PURE__ */ Ut(), o = function() {
956
+ var e = ct(), i = Ft(), t = /* @__PURE__ */ Ie(), r = /* @__PURE__ */ dt(), a = /* @__PURE__ */ Ut(), o = function() {
957
957
  };
958
- process.env.NODE_ENV !== "production" && (o = function(h) {
959
- var C = "Warning: " + h;
958
+ process.env.NODE_ENV !== "production" && (o = function(f) {
959
+ var C = "Warning: " + f;
960
960
  typeof console < "u" && console.error(C);
961
961
  try {
962
962
  throw new Error(C);
963
963
  } catch {
964
964
  }
965
965
  });
966
- function c() {
966
+ function d() {
967
967
  return null;
968
968
  }
969
- return Ee = function(h, C) {
969
+ return Ee = function(f, C) {
970
970
  var v = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
971
- function d(x) {
971
+ function c(x) {
972
972
  var P = x && (v && x[v] || x[m]);
973
973
  if (typeof P == "function")
974
974
  return P;
@@ -988,10 +988,10 @@ function Bt() {
988
988
  elementType: l(),
989
989
  instanceOf: M,
990
990
  node: _(),
991
- objectOf: f,
991
+ objectOf: h,
992
992
  oneOf: s,
993
993
  oneOfType: u,
994
- shape: z,
994
+ shape: H,
995
995
  exact: X
996
996
  };
997
997
  function T(x, P) {
@@ -1004,7 +1004,7 @@ function Bt() {
1004
1004
  function b(x) {
1005
1005
  if (process.env.NODE_ENV !== "production")
1006
1006
  var P = {}, j = 0;
1007
- function O(A, I, k, L, F, q, Z) {
1007
+ function O(A, W, k, L, F, q, Z) {
1008
1008
  if (L = L || y, q = q || k, Z !== t) {
1009
1009
  if (C) {
1010
1010
  var E = new Error(
@@ -1019,18 +1019,18 @@ function Bt() {
1019
1019
  ), P[te] = !0, j++);
1020
1020
  }
1021
1021
  }
1022
- return I[k] == null ? A ? I[k] === null ? new g("The " + F + " `" + q + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new g("The " + F + " `" + q + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : x(I, k, L, F, q);
1022
+ return W[k] == null ? A ? W[k] === null ? new g("The " + F + " `" + q + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new g("The " + F + " `" + q + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : x(W, k, L, F, q);
1023
1023
  }
1024
- var W = O.bind(null, !1);
1025
- return W.isRequired = O.bind(null, !0), W;
1024
+ var R = O.bind(null, !1);
1025
+ return R.isRequired = O.bind(null, !0), R;
1026
1026
  }
1027
1027
  function w(x) {
1028
- function P(j, O, W, A, I, k) {
1029
- var L = j[O], F = H(L);
1028
+ function P(j, O, R, A, W, k) {
1029
+ var L = j[O], F = B(L);
1030
1030
  if (F !== x) {
1031
1031
  var q = ee(L);
1032
1032
  return new g(
1033
- "Invalid " + A + " `" + I + "` of type " + ("`" + q + "` supplied to `" + W + "`, expected ") + ("`" + x + "`."),
1033
+ "Invalid " + A + " `" + W + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected ") + ("`" + x + "`."),
1034
1034
  { expectedType: x }
1035
1035
  );
1036
1036
  }
@@ -1039,19 +1039,19 @@ function Bt() {
1039
1039
  return b(P);
1040
1040
  }
1041
1041
  function N() {
1042
- return b(c);
1042
+ return b(d);
1043
1043
  }
1044
1044
  function S(x) {
1045
- function P(j, O, W, A, I) {
1045
+ function P(j, O, R, A, W) {
1046
1046
  if (typeof x != "function")
1047
- return new g("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
1047
+ return new g("Property `" + W + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
1048
1048
  var k = j[O];
1049
1049
  if (!Array.isArray(k)) {
1050
- var L = H(k);
1051
- return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an array."));
1050
+ var L = B(k);
1051
+ return new g("Invalid " + A + " `" + W + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected an array."));
1052
1052
  }
1053
1053
  for (var F = 0; F < k.length; F++) {
1054
- var q = x(k, F, W, A, I + "[" + F + "]", t);
1054
+ var q = x(k, F, R, A, W + "[" + F + "]", t);
1055
1055
  if (q instanceof Error)
1056
1056
  return q;
1057
1057
  }
@@ -1060,32 +1060,32 @@ function Bt() {
1060
1060
  return b(P);
1061
1061
  }
1062
1062
  function D() {
1063
- function x(P, j, O, W, A) {
1064
- var I = P[j];
1065
- if (!h(I)) {
1066
- var k = H(I);
1067
- return new g("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
1063
+ function x(P, j, O, R, A) {
1064
+ var W = P[j];
1065
+ if (!f(W)) {
1066
+ var k = B(W);
1067
+ return new g("Invalid " + R + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
1068
1068
  }
1069
1069
  return null;
1070
1070
  }
1071
1071
  return b(x);
1072
1072
  }
1073
1073
  function l() {
1074
- function x(P, j, O, W, A) {
1075
- var I = P[j];
1076
- if (!e.isValidElementType(I)) {
1077
- var k = H(I);
1078
- return new g("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
1074
+ function x(P, j, O, R, A) {
1075
+ var W = P[j];
1076
+ if (!e.isValidElementType(W)) {
1077
+ var k = B(W);
1078
+ return new g("Invalid " + R + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
1079
1079
  }
1080
1080
  return null;
1081
1081
  }
1082
1082
  return b(x);
1083
1083
  }
1084
1084
  function M(x) {
1085
- function P(j, O, W, A, I) {
1085
+ function P(j, O, R, A, W) {
1086
1086
  if (!(j[O] instanceof x)) {
1087
1087
  var k = x.name || y, L = le(j[O]);
1088
- return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected ") + ("instance of `" + k + "`."));
1088
+ return new g("Invalid " + A + " `" + W + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected ") + ("instance of `" + k + "`."));
1089
1089
  }
1090
1090
  return null;
1091
1091
  }
@@ -1095,8 +1095,8 @@ function Bt() {
1095
1095
  if (!Array.isArray(x))
1096
1096
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
1097
1097
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1098
- ) : o("Invalid argument supplied to oneOf, expected an array.")), c;
1099
- function P(j, O, W, A, I) {
1098
+ ) : o("Invalid argument supplied to oneOf, expected an array.")), d;
1099
+ function P(j, O, R, A, W) {
1100
1100
  for (var k = j[O], L = 0; L < x.length; L++)
1101
1101
  if (T(k, x[L]))
1102
1102
  return null;
@@ -1104,20 +1104,20 @@ function Bt() {
1104
1104
  var te = ee(E);
1105
1105
  return te === "symbol" ? String(E) : E;
1106
1106
  });
1107
- return new g("Invalid " + A + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" + W + "`, expected one of " + F + "."));
1107
+ return new g("Invalid " + A + " `" + W + "` of value `" + String(k) + "` " + ("supplied to `" + R + "`, expected one of " + F + "."));
1108
1108
  }
1109
1109
  return b(P);
1110
1110
  }
1111
- function f(x) {
1112
- function P(j, O, W, A, I) {
1111
+ function h(x) {
1112
+ function P(j, O, R, A, W) {
1113
1113
  if (typeof x != "function")
1114
- return new g("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
1115
- var k = j[O], L = H(k);
1114
+ return new g("Property `" + W + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
1115
+ var k = j[O], L = B(k);
1116
1116
  if (L !== "object")
1117
- return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an object."));
1117
+ return new g("Invalid " + A + " `" + W + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected an object."));
1118
1118
  for (var F in k)
1119
1119
  if (r(k, F)) {
1120
- var q = x(k, F, W, A, I + "." + F, t);
1120
+ var q = x(k, F, R, A, W + "." + F, t);
1121
1121
  if (q instanceof Error)
1122
1122
  return q;
1123
1123
  }
@@ -1127,47 +1127,47 @@ function Bt() {
1127
1127
  }
1128
1128
  function u(x) {
1129
1129
  if (!Array.isArray(x))
1130
- return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), c;
1130
+ return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), d;
1131
1131
  for (var P = 0; P < x.length; P++) {
1132
1132
  var j = x[P];
1133
1133
  if (typeof j != "function")
1134
1134
  return o(
1135
1135
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(j) + " at index " + P + "."
1136
- ), c;
1136
+ ), d;
1137
1137
  }
1138
- function O(W, A, I, k, L) {
1138
+ function O(R, A, W, k, L) {
1139
1139
  for (var F = [], q = 0; q < x.length; q++) {
1140
- var Z = x[q], E = Z(W, A, I, k, L, t);
1140
+ var Z = x[q], E = Z(R, A, W, k, L, t);
1141
1141
  if (E == null)
1142
1142
  return null;
1143
1143
  E.data && r(E.data, "expectedType") && F.push(E.data.expectedType);
1144
1144
  }
1145
1145
  var te = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
1146
- return new g("Invalid " + k + " `" + L + "` supplied to " + ("`" + I + "`" + te + "."));
1146
+ return new g("Invalid " + k + " `" + L + "` supplied to " + ("`" + W + "`" + te + "."));
1147
1147
  }
1148
1148
  return b(O);
1149
1149
  }
1150
1150
  function _() {
1151
- function x(P, j, O, W, A) {
1152
- return V(P[j]) ? null : new g("Invalid " + W + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1151
+ function x(P, j, O, R, A) {
1152
+ return V(P[j]) ? null : new g("Invalid " + R + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1153
1153
  }
1154
1154
  return b(x);
1155
1155
  }
1156
- function R(x, P, j, O, W) {
1156
+ function I(x, P, j, O, R) {
1157
1157
  return new g(
1158
- (x || "React class") + ": " + P + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
1158
+ (x || "React class") + ": " + P + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
1159
1159
  );
1160
1160
  }
1161
- function z(x) {
1162
- function P(j, O, W, A, I) {
1163
- var k = j[O], L = H(k);
1161
+ function H(x) {
1162
+ function P(j, O, R, A, W) {
1163
+ var k = j[O], L = B(k);
1164
1164
  if (L !== "object")
1165
- return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
1165
+ return new g("Invalid " + A + " `" + W + "` of type `" + L + "` " + ("supplied to `" + R + "`, expected `object`."));
1166
1166
  for (var F in x) {
1167
1167
  var q = x[F];
1168
1168
  if (typeof q != "function")
1169
- return R(W, A, I, F, ee(q));
1170
- var Z = q(k, F, W, A, I + "." + F, t);
1169
+ return I(R, A, W, F, ee(q));
1170
+ var Z = q(k, F, R, A, W + "." + F, t);
1171
1171
  if (Z)
1172
1172
  return Z;
1173
1173
  }
@@ -1176,21 +1176,21 @@ function Bt() {
1176
1176
  return b(P);
1177
1177
  }
1178
1178
  function X(x) {
1179
- function P(j, O, W, A, I) {
1180
- var k = j[O], L = H(k);
1179
+ function P(j, O, R, A, W) {
1180
+ var k = j[O], L = B(k);
1181
1181
  if (L !== "object")
1182
- return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
1182
+ return new g("Invalid " + A + " `" + W + "` of type `" + L + "` " + ("supplied to `" + R + "`, expected `object`."));
1183
1183
  var F = i({}, j[O], x);
1184
1184
  for (var q in F) {
1185
1185
  var Z = x[q];
1186
1186
  if (r(x, q) && typeof Z != "function")
1187
- return R(W, A, I, q, ee(Z));
1187
+ return I(R, A, W, q, ee(Z));
1188
1188
  if (!Z)
1189
1189
  return new g(
1190
- "Invalid " + A + " `" + I + "` key `" + q + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
1190
+ "Invalid " + A + " `" + W + "` key `" + q + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
1191
1191
  Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1192
1192
  );
1193
- var E = Z(k, q, W, A, I + "." + q, t);
1193
+ var E = Z(k, q, R, A, W + "." + q, t);
1194
1194
  if (E)
1195
1195
  return E;
1196
1196
  }
@@ -1209,9 +1209,9 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1209
1209
  case "object":
1210
1210
  if (Array.isArray(x))
1211
1211
  return x.every(V);
1212
- if (x === null || h(x))
1212
+ if (x === null || f(x))
1213
1213
  return !0;
1214
- var P = d(x);
1214
+ var P = c(x);
1215
1215
  if (P) {
1216
1216
  var j = P.call(x), O;
1217
1217
  if (P !== x.entries) {
@@ -1220,8 +1220,8 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1220
1220
  return !1;
1221
1221
  } else
1222
1222
  for (; !(O = j.next()).done; ) {
1223
- var W = O.value;
1224
- if (W && !V(W[1]))
1223
+ var R = O.value;
1224
+ if (R && !V(R[1]))
1225
1225
  return !1;
1226
1226
  }
1227
1227
  } else
@@ -1234,14 +1234,14 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1234
1234
  function Q(x, P) {
1235
1235
  return x === "symbol" ? !0 : P ? P["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && P instanceof Symbol : !1;
1236
1236
  }
1237
- function H(x) {
1237
+ function B(x) {
1238
1238
  var P = typeof x;
1239
1239
  return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : Q(P, x) ? "symbol" : P;
1240
1240
  }
1241
1241
  function ee(x) {
1242
1242
  if (typeof x > "u" || x === null)
1243
1243
  return "" + x;
1244
- var P = H(x);
1244
+ var P = B(x);
1245
1245
  if (P === "object") {
1246
1246
  if (x instanceof Date)
1247
1247
  return "date";
@@ -1271,17 +1271,17 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1271
1271
  }, Ee;
1272
1272
  }
1273
1273
  var _e, Ue;
1274
- function Ht() {
1274
+ function Bt() {
1275
1275
  if (Ue) return _e;
1276
1276
  Ue = 1;
1277
- var e = /* @__PURE__ */ Re();
1277
+ var e = /* @__PURE__ */ Ie();
1278
1278
  function i() {
1279
1279
  }
1280
1280
  function t() {
1281
1281
  }
1282
1282
  return t.resetWarningCache = i, _e = function() {
1283
- function r(c, h, C, v, m, d) {
1284
- if (d !== e) {
1283
+ function r(d, f, C, v, m, c) {
1284
+ if (c !== e) {
1285
1285
  var y = new Error(
1286
1286
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1287
1287
  );
@@ -1318,44 +1318,44 @@ function Ht() {
1318
1318
  return o.PropTypes = o, o;
1319
1319
  }, _e;
1320
1320
  }
1321
- var Be;
1321
+ var ze;
1322
1322
  function ut() {
1323
- if (Be) return he.exports;
1324
- if (Be = 1, process.env.NODE_ENV !== "production") {
1323
+ if (ze) return he.exports;
1324
+ if (ze = 1, process.env.NODE_ENV !== "production") {
1325
1325
  var e = ct(), i = !0;
1326
- he.exports = /* @__PURE__ */ Bt()(e.isElement, i);
1326
+ he.exports = /* @__PURE__ */ zt()(e.isElement, i);
1327
1327
  } else
1328
- he.exports = /* @__PURE__ */ Ht()();
1328
+ he.exports = /* @__PURE__ */ Bt()();
1329
1329
  return he.exports;
1330
1330
  }
1331
- var me = { exports: {} }, He;
1332
- function zt() {
1333
- if (He) return me.exports;
1334
- He = 1;
1331
+ var me = { exports: {} }, Be;
1332
+ function Ht() {
1333
+ if (Be) return me.exports;
1334
+ Be = 1;
1335
1335
  function e(t) {
1336
1336
  var r, a, o = "";
1337
1337
  if (typeof t == "string" || typeof t == "number") o += t;
1338
1338
  else if (typeof t == "object") if (Array.isArray(t)) {
1339
- var c = t.length;
1340
- for (r = 0; r < c; r++) t[r] && (a = e(t[r])) && (o && (o += " "), o += a);
1339
+ var d = t.length;
1340
+ for (r = 0; r < d; r++) t[r] && (a = e(t[r])) && (o && (o += " "), o += a);
1341
1341
  } else for (a in t) t[a] && (o && (o += " "), o += a);
1342
1342
  return o;
1343
1343
  }
1344
1344
  function i() {
1345
- for (var t, r, a = 0, o = "", c = arguments.length; a < c; a++) (t = arguments[a]) && (r = e(t)) && (o && (o += " "), o += r);
1345
+ for (var t, r, a = 0, o = "", d = arguments.length; a < d; a++) (t = arguments[a]) && (r = e(t)) && (o && (o += " "), o += r);
1346
1346
  return o;
1347
1347
  }
1348
1348
  return me.exports = i, me.exports.clsx = i, me.exports;
1349
1349
  }
1350
- var B = {}, re = {}, ze;
1350
+ var z = {}, re = {}, He;
1351
1351
  function ve() {
1352
- if (ze) return re;
1353
- ze = 1, Object.defineProperty(re, "__esModule", {
1352
+ if (He) return re;
1353
+ He = 1, Object.defineProperty(re, "__esModule", {
1354
1354
  value: !0
1355
1355
  }), re.dontSetMe = a, re.findInArray = e, re.int = r, re.isFunction = i, re.isNum = t;
1356
- function e(o, c) {
1357
- for (let h = 0, C = o.length; h < C; h++)
1358
- if (c.apply(c, [o[h], h, o])) return o[h];
1356
+ function e(o, d) {
1357
+ for (let f = 0, C = o.length; f < C; f++)
1358
+ if (d.apply(d, [o[f], f, o])) return o[f];
1359
1359
  }
1360
1360
  function i(o) {
1361
1361
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
@@ -1366,9 +1366,9 @@ function ve() {
1366
1366
  function r(o) {
1367
1367
  return parseInt(o, 10);
1368
1368
  }
1369
- function a(o, c, h) {
1370
- if (o[c])
1371
- return new Error(`Invalid prop ${c} passed to ${h} - do not set this, set it on the child.`);
1369
+ function a(o, d, f) {
1370
+ if (o[d])
1371
+ return new Error(`Invalid prop ${d} passed to ${f} - do not set this, set it on the child.`);
1372
1372
  }
1373
1373
  return re;
1374
1374
  }
@@ -1382,130 +1382,130 @@ function Xt() {
1382
1382
  function i() {
1383
1383
  let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
1384
1384
  if (typeof window > "u") return "";
1385
- const c = window.document?.documentElement?.style;
1386
- if (!c || o in c) return "";
1387
- for (let h = 0; h < e.length; h++)
1388
- if (t(o, e[h]) in c) return e[h];
1385
+ const d = window.document?.documentElement?.style;
1386
+ if (!d || o in d) return "";
1387
+ for (let f = 0; f < e.length; f++)
1388
+ if (t(o, e[f]) in d) return e[f];
1389
1389
  return "";
1390
1390
  }
1391
- function t(o, c) {
1392
- return c ? `${c}${a(o)}` : o;
1391
+ function t(o, d) {
1392
+ return d ? `${d}${a(o)}` : o;
1393
1393
  }
1394
- function r(o, c) {
1395
- return c ? `-${c.toLowerCase()}-${o}` : o;
1394
+ function r(o, d) {
1395
+ return d ? `-${d.toLowerCase()}-${o}` : o;
1396
1396
  }
1397
1397
  function a(o) {
1398
- let c = "", h = !0;
1398
+ let d = "", f = !0;
1399
1399
  for (let C = 0; C < o.length; C++)
1400
- h ? (c += o[C].toUpperCase(), h = !1) : o[C] === "-" ? h = !0 : c += o[C];
1401
- return c;
1400
+ f ? (d += o[C].toUpperCase(), f = !1) : o[C] === "-" ? f = !0 : d += o[C];
1401
+ return d;
1402
1402
  }
1403
1403
  return oe.default = i(), oe;
1404
1404
  }
1405
1405
  var Ve;
1406
- function We() {
1407
- if (Ve) return B;
1408
- Ve = 1, Object.defineProperty(B, "__esModule", {
1406
+ function Re() {
1407
+ if (Ve) return z;
1408
+ Ve = 1, Object.defineProperty(z, "__esModule", {
1409
1409
  value: !0
1410
- }), B.addClassName = l, B.addEvent = c, B.addUserSelectStyles = N, B.createCSSTransform = p, B.createSVGTransform = T, B.getTouch = b, B.getTouchIdentifier = w, B.getTranslation = g, B.innerHeight = m, B.innerWidth = d, B.matchesSelector = a, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = y, B.outerHeight = C, B.outerWidth = v, B.removeClassName = M, B.removeEvent = h, B.scheduleRemoveUserSelectStyles = S;
1410
+ }), z.addClassName = l, z.addEvent = d, z.addUserSelectStyles = N, z.createCSSTransform = p, z.createSVGTransform = T, z.getTouch = b, z.getTouchIdentifier = w, z.getTranslation = g, z.innerHeight = m, z.innerWidth = c, z.matchesSelector = a, z.matchesSelectorAndParentsTo = o, z.offsetXYFromParent = y, z.outerHeight = C, z.outerWidth = v, z.removeClassName = M, z.removeEvent = f, z.scheduleRemoveUserSelectStyles = S;
1411
1411
  var e = ve(), i = t(Xt());
1412
- function t(s, f) {
1412
+ function t(s, h) {
1413
1413
  if (typeof WeakMap == "function") var u = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
1414
- return (t = function(R, z) {
1415
- if (!z && R && R.__esModule) return R;
1416
- var X, V, Q = { __proto__: null, default: R };
1417
- if (R === null || typeof R != "object" && typeof R != "function") return Q;
1418
- if (X = z ? _ : u) {
1419
- if (X.has(R)) return X.get(R);
1420
- X.set(R, Q);
1414
+ return (t = function(I, H) {
1415
+ if (!H && I && I.__esModule) return I;
1416
+ var X, V, Q = { __proto__: null, default: I };
1417
+ if (I === null || typeof I != "object" && typeof I != "function") return Q;
1418
+ if (X = H ? _ : u) {
1419
+ if (X.has(I)) return X.get(I);
1420
+ X.set(I, Q);
1421
1421
  }
1422
- for (const H in R) H !== "default" && {}.hasOwnProperty.call(R, H) && ((V = (X = Object.defineProperty) && Object.getOwnPropertyDescriptor(R, H)) && (V.get || V.set) ? X(Q, H, V) : Q[H] = R[H]);
1422
+ for (const B in I) B !== "default" && {}.hasOwnProperty.call(I, B) && ((V = (X = Object.defineProperty) && Object.getOwnPropertyDescriptor(I, B)) && (V.get || V.set) ? X(Q, B, V) : Q[B] = I[B]);
1423
1423
  return Q;
1424
- })(s, f);
1424
+ })(s, h);
1425
1425
  }
1426
1426
  let r = "";
1427
- function a(s, f) {
1427
+ function a(s, h) {
1428
1428
  return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(u) {
1429
1429
  return (0, e.isFunction)(s[u]);
1430
- })), (0, e.isFunction)(s[r]) ? s[r](f) : !1;
1430
+ })), (0, e.isFunction)(s[r]) ? s[r](h) : !1;
1431
1431
  }
1432
- function o(s, f, u) {
1432
+ function o(s, h, u) {
1433
1433
  let _ = s;
1434
1434
  do {
1435
- if (a(_, f)) return !0;
1435
+ if (a(_, h)) return !0;
1436
1436
  if (_ === u) return !1;
1437
1437
  _ = _.parentNode;
1438
1438
  } while (_);
1439
1439
  return !1;
1440
1440
  }
1441
- function c(s, f, u, _) {
1441
+ function d(s, h, u, _) {
1442
1442
  if (!s) return;
1443
- const R = {
1443
+ const I = {
1444
1444
  capture: !0,
1445
1445
  ..._
1446
1446
  };
1447
- s.addEventListener ? s.addEventListener(f, u, R) : s.attachEvent ? s.attachEvent("on" + f, u) : s["on" + f] = u;
1447
+ s.addEventListener ? s.addEventListener(h, u, I) : s.attachEvent ? s.attachEvent("on" + h, u) : s["on" + h] = u;
1448
1448
  }
1449
- function h(s, f, u, _) {
1449
+ function f(s, h, u, _) {
1450
1450
  if (!s) return;
1451
- const R = {
1451
+ const I = {
1452
1452
  capture: !0,
1453
1453
  ..._
1454
1454
  };
1455
- s.removeEventListener ? s.removeEventListener(f, u, R) : s.detachEvent ? s.detachEvent("on" + f, u) : s["on" + f] = null;
1455
+ s.removeEventListener ? s.removeEventListener(h, u, I) : s.detachEvent ? s.detachEvent("on" + h, u) : s["on" + h] = null;
1456
1456
  }
1457
1457
  function C(s) {
1458
- let f = s.clientHeight;
1458
+ let h = s.clientHeight;
1459
1459
  const u = s.ownerDocument.defaultView.getComputedStyle(s);
1460
- return f += (0, e.int)(u.borderTopWidth), f += (0, e.int)(u.borderBottomWidth), f;
1460
+ return h += (0, e.int)(u.borderTopWidth), h += (0, e.int)(u.borderBottomWidth), h;
1461
1461
  }
1462
1462
  function v(s) {
1463
- let f = s.clientWidth;
1463
+ let h = s.clientWidth;
1464
1464
  const u = s.ownerDocument.defaultView.getComputedStyle(s);
1465
- return f += (0, e.int)(u.borderLeftWidth), f += (0, e.int)(u.borderRightWidth), f;
1465
+ return h += (0, e.int)(u.borderLeftWidth), h += (0, e.int)(u.borderRightWidth), h;
1466
1466
  }
1467
1467
  function m(s) {
1468
- let f = s.clientHeight;
1468
+ let h = s.clientHeight;
1469
1469
  const u = s.ownerDocument.defaultView.getComputedStyle(s);
1470
- return f -= (0, e.int)(u.paddingTop), f -= (0, e.int)(u.paddingBottom), f;
1470
+ return h -= (0, e.int)(u.paddingTop), h -= (0, e.int)(u.paddingBottom), h;
1471
1471
  }
1472
- function d(s) {
1473
- let f = s.clientWidth;
1472
+ function c(s) {
1473
+ let h = s.clientWidth;
1474
1474
  const u = s.ownerDocument.defaultView.getComputedStyle(s);
1475
- return f -= (0, e.int)(u.paddingLeft), f -= (0, e.int)(u.paddingRight), f;
1475
+ return h -= (0, e.int)(u.paddingLeft), h -= (0, e.int)(u.paddingRight), h;
1476
1476
  }
1477
- function y(s, f, u) {
1478
- const R = f === f.ownerDocument.body ? {
1477
+ function y(s, h, u) {
1478
+ const I = h === h.ownerDocument.body ? {
1479
1479
  left: 0,
1480
1480
  top: 0
1481
- } : f.getBoundingClientRect(), z = (s.clientX + f.scrollLeft - R.left) / u, X = (s.clientY + f.scrollTop - R.top) / u;
1481
+ } : h.getBoundingClientRect(), H = (s.clientX + h.scrollLeft - I.left) / u, X = (s.clientY + h.scrollTop - I.top) / u;
1482
1482
  return {
1483
- x: z,
1483
+ x: H,
1484
1484
  y: X
1485
1485
  };
1486
1486
  }
1487
- function p(s, f) {
1488
- const u = g(s, f, "px");
1487
+ function p(s, h) {
1488
+ const u = g(s, h, "px");
1489
1489
  return {
1490
1490
  [(0, i.browserPrefixToKey)("transform", i.default)]: u
1491
1491
  };
1492
1492
  }
1493
- function T(s, f) {
1494
- return g(s, f, "");
1493
+ function T(s, h) {
1494
+ return g(s, h, "");
1495
1495
  }
1496
- function g(s, f, u) {
1496
+ function g(s, h, u) {
1497
1497
  let {
1498
1498
  x: _,
1499
- y: R
1500
- } = s, z = `translate(${_}${u},${R}${u})`;
1501
- if (f) {
1502
- const X = `${typeof f.x == "string" ? f.x : f.x + u}`, V = `${typeof f.y == "string" ? f.y : f.y + u}`;
1503
- z = `translate(${X}, ${V})` + z;
1499
+ y: I
1500
+ } = s, H = `translate(${_}${u},${I}${u})`;
1501
+ if (h) {
1502
+ const X = `${typeof h.x == "string" ? h.x : h.x + u}`, V = `${typeof h.y == "string" ? h.y : h.y + u}`;
1503
+ H = `translate(${X}, ${V})` + H;
1504
1504
  }
1505
- return z;
1505
+ return H;
1506
1506
  }
1507
- function b(s, f) {
1508
- return s.targetTouches && (0, e.findInArray)(s.targetTouches, (u) => f === u.identifier) || s.changedTouches && (0, e.findInArray)(s.changedTouches, (u) => f === u.identifier);
1507
+ function b(s, h) {
1508
+ return s.targetTouches && (0, e.findInArray)(s.targetTouches, (u) => h === u.identifier) || s.changedTouches && (0, e.findInArray)(s.changedTouches, (u) => h === u.identifier);
1509
1509
  }
1510
1510
  function w(s) {
1511
1511
  if (s.targetTouches && s.targetTouches[0]) return s.targetTouches[0].identifier;
@@ -1513,10 +1513,10 @@ function We() {
1513
1513
  }
1514
1514
  function N(s) {
1515
1515
  if (!s) return;
1516
- let f = s.getElementById("react-draggable-style-el");
1517
- f || (f = s.createElement("style"), f.type = "text/css", f.id = "react-draggable-style-el", f.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1518
- `, f.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
1519
- `, s.getElementsByTagName("head")[0].appendChild(f)), s.body && l(s.body, "react-draggable-transparent-selection");
1516
+ let h = s.getElementById("react-draggable-style-el");
1517
+ h || (h = s.createElement("style"), h.type = "text/css", h.id = "react-draggable-style-el", h.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1518
+ `, h.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
1519
+ `, s.getElementsByTagName("head")[0].appendChild(h)), s.body && l(s.body, "react-draggable-transparent-selection");
1520
1520
  }
1521
1521
  function S(s) {
1522
1522
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
@@ -1529,34 +1529,34 @@ function We() {
1529
1529
  if (s.body && M(s.body, "react-draggable-transparent-selection"), s.selection)
1530
1530
  s.selection.empty();
1531
1531
  else {
1532
- const f = (s.defaultView || window).getSelection();
1533
- f && f.type !== "Caret" && f.removeAllRanges();
1532
+ const h = (s.defaultView || window).getSelection();
1533
+ h && h.type !== "Caret" && h.removeAllRanges();
1534
1534
  }
1535
1535
  } catch {
1536
1536
  }
1537
1537
  }
1538
- function l(s, f) {
1539
- s.classList ? s.classList.add(f) : s.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (s.className += ` ${f}`);
1538
+ function l(s, h) {
1539
+ s.classList ? s.classList.add(h) : s.className.match(new RegExp(`(?:^|\\s)${h}(?!\\S)`)) || (s.className += ` ${h}`);
1540
1540
  }
1541
- function M(s, f) {
1542
- s.classList ? s.classList.remove(f) : s.className = s.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1541
+ function M(s, h) {
1542
+ s.classList ? s.classList.remove(h) : s.className = s.className.replace(new RegExp(`(?:^|\\s)${h}(?!\\S)`, "g"), "");
1543
1543
  }
1544
- return B;
1544
+ return z;
1545
1545
  }
1546
1546
  var ne = {}, Ge;
1547
1547
  function ft() {
1548
1548
  if (Ge) return ne;
1549
1549
  Ge = 1, Object.defineProperty(ne, "__esModule", {
1550
1550
  value: !0
1551
- }), ne.canDragX = a, ne.canDragY = o, ne.createCoreData = h, ne.createDraggableData = C, ne.getBoundPosition = t, ne.getControlPosition = c, ne.snapToGrid = r;
1552
- var e = ve(), i = We();
1553
- function t(d, y, p) {
1554
- if (!d.props.bounds) return [y, p];
1551
+ }), ne.canDragX = a, ne.canDragY = o, ne.createCoreData = f, ne.createDraggableData = C, ne.getBoundPosition = t, ne.getControlPosition = d, ne.snapToGrid = r;
1552
+ var e = ve(), i = Re();
1553
+ function t(c, y, p) {
1554
+ if (!c.props.bounds) return [y, p];
1555
1555
  let {
1556
1556
  bounds: T
1557
- } = d.props;
1557
+ } = c.props;
1558
1558
  T = typeof T == "string" ? T : v(T);
1559
- const g = m(d);
1559
+ const g = m(c);
1560
1560
  if (typeof T == "string") {
1561
1561
  const {
1562
1562
  ownerDocument: b
@@ -1574,24 +1574,24 @@ function ft() {
1574
1574
  }
1575
1575
  return (0, e.isNum)(T.right) && (y = Math.min(y, T.right)), (0, e.isNum)(T.bottom) && (p = Math.min(p, T.bottom)), (0, e.isNum)(T.left) && (y = Math.max(y, T.left)), (0, e.isNum)(T.top) && (p = Math.max(p, T.top)), [y, p];
1576
1576
  }
1577
- function r(d, y, p) {
1578
- const T = Math.round(y / d[0]) * d[0], g = Math.round(p / d[1]) * d[1];
1577
+ function r(c, y, p) {
1578
+ const T = Math.round(y / c[0]) * c[0], g = Math.round(p / c[1]) * c[1];
1579
1579
  return [T, g];
1580
1580
  }
1581
- function a(d) {
1582
- return d.props.axis === "both" || d.props.axis === "x";
1581
+ function a(c) {
1582
+ return c.props.axis === "both" || c.props.axis === "x";
1583
1583
  }
1584
- function o(d) {
1585
- return d.props.axis === "both" || d.props.axis === "y";
1584
+ function o(c) {
1585
+ return c.props.axis === "both" || c.props.axis === "y";
1586
1586
  }
1587
- function c(d, y, p) {
1588
- const T = typeof y == "number" ? (0, i.getTouch)(d, y) : null;
1587
+ function d(c, y, p) {
1588
+ const T = typeof y == "number" ? (0, i.getTouch)(c, y) : null;
1589
1589
  if (typeof y == "number" && !T) return null;
1590
1590
  const g = m(p), b = p.props.offsetParent || g.offsetParent || g.ownerDocument.body;
1591
- return (0, i.offsetXYFromParent)(T || d, b, p.props.scale);
1591
+ return (0, i.offsetXYFromParent)(T || c, b, p.props.scale);
1592
1592
  }
1593
- function h(d, y, p) {
1594
- const T = !(0, e.isNum)(d.lastX), g = m(d);
1593
+ function f(c, y, p) {
1594
+ const T = !(0, e.isNum)(c.lastX), g = m(c);
1595
1595
  return T ? {
1596
1596
  node: g,
1597
1597
  deltaX: 0,
@@ -1602,36 +1602,36 @@ function ft() {
1602
1602
  y: p
1603
1603
  } : {
1604
1604
  node: g,
1605
- deltaX: y - d.lastX,
1606
- deltaY: p - d.lastY,
1607
- lastX: d.lastX,
1608
- lastY: d.lastY,
1605
+ deltaX: y - c.lastX,
1606
+ deltaY: p - c.lastY,
1607
+ lastX: c.lastX,
1608
+ lastY: c.lastY,
1609
1609
  x: y,
1610
1610
  y: p
1611
1611
  };
1612
1612
  }
1613
- function C(d, y) {
1614
- const p = d.props.scale;
1613
+ function C(c, y) {
1614
+ const p = c.props.scale;
1615
1615
  return {
1616
1616
  node: y.node,
1617
- x: d.state.x + y.deltaX / p,
1618
- y: d.state.y + y.deltaY / p,
1617
+ x: c.state.x + y.deltaX / p,
1618
+ y: c.state.y + y.deltaY / p,
1619
1619
  deltaX: y.deltaX / p,
1620
1620
  deltaY: y.deltaY / p,
1621
- lastX: d.state.x,
1622
- lastY: d.state.y
1621
+ lastX: c.state.x,
1622
+ lastY: c.state.y
1623
1623
  };
1624
1624
  }
1625
- function v(d) {
1625
+ function v(c) {
1626
1626
  return {
1627
- left: d.left,
1628
- top: d.top,
1629
- right: d.right,
1630
- bottom: d.bottom
1627
+ left: c.left,
1628
+ top: c.top,
1629
+ right: c.right,
1630
+ bottom: c.bottom
1631
1631
  };
1632
1632
  }
1633
- function m(d) {
1634
- const y = d.findDOMNode();
1633
+ function m(c) {
1634
+ const y = c.findDOMNode();
1635
1635
  if (!y)
1636
1636
  throw new Error("<DraggableCore>: Unmounted during event!");
1637
1637
  return y;
@@ -1654,8 +1654,8 @@ function Vt() {
1654
1654
  Je = 1, Object.defineProperty(ue, "__esModule", {
1655
1655
  value: !0
1656
1656
  }), ue.default = void 0;
1657
- var e = C(be), i = h(/* @__PURE__ */ ut()), t = h(ot), r = We(), a = ft(), o = ve(), c = h(ht());
1658
- function h(g) {
1657
+ var e = C(be), i = f(/* @__PURE__ */ ut()), t = f(ot), r = Re(), a = ft(), o = ve(), d = f(ht());
1658
+ function f(g) {
1659
1659
  return g && g.__esModule ? g : { default: g };
1660
1660
  }
1661
1661
  function C(g, b) {
@@ -1668,7 +1668,7 @@ function Vt() {
1668
1668
  if (l.has(S)) return l.get(S);
1669
1669
  l.set(S, s);
1670
1670
  }
1671
- for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((M = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (M.get || M.set) ? l(s, f, M) : s[f] = S[f]);
1671
+ for (const h in S) h !== "default" && {}.hasOwnProperty.call(S, h) && ((M = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, h)) && (M.get || M.set) ? l(s, h, M) : s[h] = S[h]);
1672
1672
  return s;
1673
1673
  })(g, b);
1674
1674
  }
@@ -1676,10 +1676,10 @@ function Vt() {
1676
1676
  return (b = m(b)) in g ? Object.defineProperty(g, b, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : g[b] = w, g;
1677
1677
  }
1678
1678
  function m(g) {
1679
- var b = d(g, "string");
1679
+ var b = c(g, "string");
1680
1680
  return typeof b == "symbol" ? b : b + "";
1681
1681
  }
1682
- function d(g, b) {
1682
+ function c(g, b) {
1683
1683
  if (typeof g != "object" || !g) return g;
1684
1684
  var w = g[Symbol.toPrimitive];
1685
1685
  if (w !== void 0) {
@@ -1722,7 +1722,7 @@ function Vt() {
1722
1722
  x: l,
1723
1723
  y: M
1724
1724
  } = D, s = (0, a.createCoreData)(this, l, M);
1725
- (0, c.default)("DraggableCore: handleDragStart: %j", s), (0, c.default)("calling", this.props.onStart), !(this.props.onStart(b, s) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(N), this.dragging = !0, this.lastX = l, this.lastY = M, (0, r.addEvent)(N, p.move, this.handleDrag), (0, r.addEvent)(N, p.stop, this.handleDragStop));
1725
+ (0, d.default)("DraggableCore: handleDragStart: %j", s), (0, d.default)("calling", this.props.onStart), !(this.props.onStart(b, s) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(N), this.dragging = !0, this.lastX = l, this.lastY = M, (0, r.addEvent)(N, p.move, this.handleDrag), (0, r.addEvent)(N, p.stop, this.handleDragStop));
1726
1726
  }), v(this, "handleDrag", (b) => {
1727
1727
  const w = (0, a.getControlPosition)(b, this.touchIdentifier, this);
1728
1728
  if (w == null) return;
@@ -1736,7 +1736,7 @@ function Vt() {
1736
1736
  N = this.lastX + M, S = this.lastY + s;
1737
1737
  }
1738
1738
  const D = (0, a.createCoreData)(this, N, S);
1739
- if ((0, c.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
1739
+ if ((0, d.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
1740
1740
  try {
1741
1741
  this.handleDragStop(new MouseEvent("mouseup"));
1742
1742
  } catch {
@@ -1755,13 +1755,13 @@ function Vt() {
1755
1755
  y: S
1756
1756
  } = w;
1757
1757
  if (Array.isArray(this.props.grid)) {
1758
- let s = N - this.lastX || 0, f = S - this.lastY || 0;
1759
- [s, f] = (0, a.snapToGrid)(this.props.grid, s, f), N = this.lastX + s, S = this.lastY + f;
1758
+ let s = N - this.lastX || 0, h = S - this.lastY || 0;
1759
+ [s, h] = (0, a.snapToGrid)(this.props.grid, s, h), N = this.lastX + s, S = this.lastY + h;
1760
1760
  }
1761
1761
  const D = (0, a.createCoreData)(this, N, S);
1762
1762
  if (this.props.onStop(b, D) === !1 || this.mounted === !1) return !1;
1763
1763
  const M = this.findDOMNode();
1764
- M && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(M.ownerDocument), (0, c.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, M && ((0, c.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(M.ownerDocument, p.move, this.handleDrag), (0, r.removeEvent)(M.ownerDocument, p.stop, this.handleDragStop));
1764
+ M && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(M.ownerDocument), (0, d.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, M && ((0, d.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(M.ownerDocument, p.move, this.handleDrag), (0, r.removeEvent)(M.ownerDocument, p.stop, this.handleDragStop));
1765
1765
  }), v(this, "onMouseDown", (b) => (p = y.mouse, this.handleDragStart(b))), v(this, "onMouseUp", (b) => (p = y.mouse, this.handleDragStop(b))), v(this, "onTouchStart", (b) => (p = y.touch, this.handleDragStart(b))), v(this, "onTouchEnd", (b) => (p = y.touch, this.handleDragStop(b)));
1766
1766
  }
1767
1767
  componentDidMount() {
@@ -1959,21 +1959,21 @@ function Gt() {
1959
1959
  return C.default;
1960
1960
  }
1961
1961
  }), e.default = void 0;
1962
- var i = d(be), t = m(/* @__PURE__ */ ut()), r = m(ot), a = zt(), o = We(), c = ft(), h = ve(), C = m(Vt()), v = m(ht());
1962
+ var i = c(be), t = m(/* @__PURE__ */ ut()), r = m(ot), a = Ht(), o = Re(), d = ft(), f = ve(), C = m(Vt()), v = m(ht());
1963
1963
  function m(w) {
1964
1964
  return w && w.__esModule ? w : { default: w };
1965
1965
  }
1966
- function d(w, N) {
1966
+ function c(w, N) {
1967
1967
  if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
1968
- return (d = function(l, M) {
1968
+ return (c = function(l, M) {
1969
1969
  if (!M && l && l.__esModule) return l;
1970
- var s, f, u = { __proto__: null, default: l };
1970
+ var s, h, u = { __proto__: null, default: l };
1971
1971
  if (l === null || typeof l != "object" && typeof l != "function") return u;
1972
1972
  if (s = M ? D : S) {
1973
1973
  if (s.has(l)) return s.get(l);
1974
1974
  s.set(l, u);
1975
1975
  }
1976
- for (const _ in l) _ !== "default" && {}.hasOwnProperty.call(l, _) && ((f = (s = Object.defineProperty) && Object.getOwnPropertyDescriptor(l, _)) && (f.get || f.set) ? s(u, _, f) : u[_] = l[_]);
1976
+ for (const _ in l) _ !== "default" && {}.hasOwnProperty.call(l, _) && ((h = (s = Object.defineProperty) && Object.getOwnPropertyDescriptor(l, _)) && (h.get || h.set) ? s(u, _, h) : u[_] = l[_]);
1977
1977
  return u;
1978
1978
  })(w, N);
1979
1979
  }
@@ -2025,7 +2025,7 @@ function Gt() {
2025
2025
  }
2026
2026
  constructor(N) {
2027
2027
  super(N), p(this, "onDragStart", (S, D) => {
2028
- if ((0, v.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, c.createDraggableData)(this, D)) === !1) return !1;
2028
+ if ((0, v.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, d.createDraggableData)(this, D)) === !1) return !1;
2029
2029
  this.setState({
2030
2030
  dragging: !0,
2031
2031
  dragged: !0
@@ -2033,7 +2033,7 @@ function Gt() {
2033
2033
  }), p(this, "onDrag", (S, D) => {
2034
2034
  if (!this.state.dragging) return !1;
2035
2035
  (0, v.default)("Draggable: onDrag: %j", D);
2036
- const l = (0, c.createDraggableData)(this, D), M = {
2036
+ const l = (0, d.createDraggableData)(this, D), M = {
2037
2037
  x: l.x,
2038
2038
  y: l.y,
2039
2039
  slackX: 0,
@@ -2041,17 +2041,17 @@ function Gt() {
2041
2041
  };
2042
2042
  if (this.props.bounds) {
2043
2043
  const {
2044
- x: f,
2044
+ x: h,
2045
2045
  y: u
2046
2046
  } = M;
2047
2047
  M.x += this.state.slackX, M.y += this.state.slackY;
2048
- const [_, R] = (0, c.getBoundPosition)(this, M.x, M.y);
2049
- M.x = _, M.y = R, M.slackX = this.state.slackX + (f - M.x), M.slackY = this.state.slackY + (u - M.y), l.x = M.x, l.y = M.y, l.deltaX = M.x - this.state.x, l.deltaY = M.y - this.state.y;
2048
+ const [_, I] = (0, d.getBoundPosition)(this, M.x, M.y);
2049
+ M.x = _, M.y = I, M.slackX = this.state.slackX + (h - M.x), M.slackY = this.state.slackY + (u - M.y), l.x = M.x, l.y = M.y, l.deltaX = M.x - this.state.x, l.deltaY = M.y - this.state.y;
2050
2050
  }
2051
2051
  if (this.props.onDrag(S, l) === !1) return !1;
2052
2052
  this.setState(M);
2053
2053
  }), p(this, "onDragStop", (S, D) => {
2054
- if (!this.state.dragging || this.props.onStop(S, (0, c.createDraggableData)(this, D)) === !1) return !1;
2054
+ if (!this.state.dragging || this.props.onStop(S, (0, d.createDraggableData)(this, D)) === !1) return !1;
2055
2055
  (0, v.default)("Draggable: onDragStop: %j", D);
2056
2056
  const M = {
2057
2057
  dragging: !1,
@@ -2060,10 +2060,10 @@ function Gt() {
2060
2060
  };
2061
2061
  if (!!this.props.position) {
2062
2062
  const {
2063
- x: f,
2063
+ x: h,
2064
2064
  y: u
2065
2065
  } = this.props.position;
2066
- M.x = f, M.y = u;
2066
+ M.x = h, M.y = u;
2067
2067
  }
2068
2068
  this.setState(M);
2069
2069
  }), this.state = {
@@ -2107,25 +2107,25 @@ function Gt() {
2107
2107
  defaultPosition: l,
2108
2108
  defaultClassName: M,
2109
2109
  defaultClassNameDragging: s,
2110
- defaultClassNameDragged: f,
2110
+ defaultClassNameDragged: h,
2111
2111
  position: u,
2112
2112
  positionOffset: _,
2113
- scale: R,
2114
- ...z
2113
+ scale: I,
2114
+ ...H
2115
2115
  } = this.props;
2116
2116
  let X = {}, V = null;
2117
- const H = !!!u || this.state.dragging, ee = u || l, ie = {
2117
+ const B = !!!u || this.state.dragging, ee = u || l, ie = {
2118
2118
  // Set left if horizontal drag is enabled
2119
- x: (0, c.canDragX)(this) && H ? this.state.x : ee.x,
2119
+ x: (0, d.canDragX)(this) && B ? this.state.x : ee.x,
2120
2120
  // Set top if vertical drag is enabled
2121
- y: (0, c.canDragY)(this) && H ? this.state.y : ee.y
2121
+ y: (0, d.canDragY)(this) && B ? this.state.y : ee.y
2122
2122
  };
2123
2123
  this.state.isElementSVG ? V = (0, o.createSVGTransform)(ie, _) : X = (0, o.createCSSTransform)(ie, _);
2124
2124
  const le = (0, a.clsx)(D.props.className || "", M, {
2125
2125
  [s]: this.state.dragging,
2126
- [f]: this.state.dragged
2126
+ [h]: this.state.dragged
2127
2127
  });
2128
- return /* @__PURE__ */ i.createElement(C.default, y({}, z, {
2128
+ return /* @__PURE__ */ i.createElement(C.default, y({}, H, {
2129
2129
  onStart: this.onDragStart,
2130
2130
  onDrag: this.onDrag,
2131
2131
  onStop: this.onDragStop
@@ -2243,9 +2243,9 @@ function Gt() {
2243
2243
  /**
2244
2244
  * These properties should be defined on the child, not here.
2245
2245
  */
2246
- className: h.dontSetMe,
2247
- style: h.dontSetMe,
2248
- transform: h.dontSetMe
2246
+ className: f.dontSetMe,
2247
+ style: f.dontSetMe,
2248
+ transform: f.dontSetMe
2249
2249
  }), p(b, "defaultProps", {
2250
2250
  ...C.default.defaultProps,
2251
2251
  axis: "both",
@@ -2273,7 +2273,7 @@ function Zt() {
2273
2273
  }
2274
2274
  var Jt = Zt();
2275
2275
  const Qt = /* @__PURE__ */ qt(Jt), en = se((e, i) => {
2276
- const r = {
2276
+ const a = {
2277
2277
  ...{
2278
2278
  // 1. Take it out of the document flow
2279
2279
  position: "fixed",
@@ -2281,7 +2281,7 @@ const Qt = /* @__PURE__ */ qt(Jt), en = se((e, i) => {
2281
2281
  top: "6rem",
2282
2282
  right: "1rem",
2283
2283
  // 3. Ensure it stacks above other content
2284
- zIndex: 1,
2284
+ zIndex: typeof e.zIndex < "u" ? Number(e.zIndex) : 99999,
2285
2285
  // Add your layout/appearance styles
2286
2286
  width: "360px",
2287
2287
  minHeight: "360px",
@@ -2290,25 +2290,25 @@ const Qt = /* @__PURE__ */ qt(Jt), en = se((e, i) => {
2290
2290
  boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
2291
2291
  },
2292
2292
  ...e.style || {}
2293
- }, a = e.testId || "not-set", o = e.className || "panel", c = vt(null);
2293
+ }, o = e.testId || "not-set", d = e.className || "panel", f = vt(null);
2294
2294
  return (
2295
2295
  // 3. Pass the internal ref to the Draggable component via 'nodeRef'
2296
2296
  /* @__PURE__ */ n(
2297
2297
  Qt,
2298
2298
  {
2299
- nodeRef: c,
2300
- "data-testid": a,
2299
+ nodeRef: f,
2300
+ "data-testid": o,
2301
2301
  axis: "both",
2302
2302
  handle: ".handle",
2303
- onStart: (v, m) => {
2303
+ onStart: (m, c) => {
2304
2304
  e.onDraggingChange?.(!0);
2305
2305
  },
2306
- onStop: (v, m) => {
2306
+ onStop: (m, c) => {
2307
2307
  setTimeout(() => {
2308
2308
  e.onDraggingChange?.(!1);
2309
2309
  }, 100);
2310
2310
  },
2311
- children: /* @__PURE__ */ n("div", { ref: c, className: o, style: r, children: e.children })
2311
+ children: /* @__PURE__ */ n("div", { ref: f, className: d, style: a, children: e.children })
2312
2312
  }
2313
2313
  )
2314
2314
  );
@@ -2329,42 +2329,42 @@ function $n({ children: e, addCssClasses: i }) {
2329
2329
  }
2330
2330
  );
2331
2331
  }
2332
- function Rn({ children: e, addCssClasses: i }) {
2332
+ function In({ children: e, addCssClasses: i }) {
2333
2333
  const t = G(
2334
2334
  "w-full flex flex-col",
2335
2335
  (i || "items-end").trim()
2336
2336
  );
2337
2337
  return /* @__PURE__ */ n("div", { className: t, children: e });
2338
2338
  }
2339
- const Wn = (e) => {
2339
+ const Rn = (e) => {
2340
2340
  console.warn("showToast TODO", e);
2341
- }, tn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, In = se((e, i) => {
2341
+ }, tn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, Wn = se((e, i) => {
2342
2342
  let t = pt(Number(e.zoomScale || 0));
2343
2343
  const r = e.responsiveGrid || !1, a = e.isEditing || !1, o = {
2344
2344
  "--bwj-dashboard-transform-scale": t,
2345
2345
  "--bwj-dashboard-add-cols": tn(t)
2346
- }, c = G(
2346
+ }, d = G(
2347
2347
  "dashboard-main-grid w-full",
2348
2348
  a ? "editing" : "",
2349
2349
  r ? "responsive-grid" : "",
2350
2350
  `border border-dashed ${a ? "border-primary border-opacity-50" : "border-transparent"}`
2351
2351
  );
2352
- return /* @__PURE__ */ n("div", { className: c, style: o, children: e.children });
2352
+ return /* @__PURE__ */ n("div", { className: d, style: o, children: e.children });
2353
2353
  }), Me = "size-5", nn = (e, i) => {
2354
2354
  const t = e.hideTitle && !e.isEditing, r = e.noBorder;
2355
2355
  let a = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2356
2356
  r ? a = `${a} border-transparent border-opacity-0` : (e.borderCssClasses || "").trim().length > 0 ? a = `${a} ${e.borderCssClasses}` : a = `${a} border-card-invert border-opacity-20`, e.noShadow && (a = `${a} no-shadow`), e.noPadding && (a = `${a} no-padding p-0`), (e.backgroundCssClasses || "").trim().length > 0 ? a = `${a} ${e.backgroundCssClasses}` : a = `${a} bg-card content-card`, ["large", "xlarge"].indexOf(e.size || "") > -1 && (a = `${a} ${e.size}-widget`);
2357
2357
  const o = () => {
2358
2358
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
2359
- }, c = (C) => {
2359
+ }, d = (C) => {
2360
2360
  e.onMoveClick && e.widgetKey && e.onMoveClick(C, e.widgetKey, e.parentWidgetKey);
2361
- }, h = G(
2361
+ }, f = G(
2362
2362
  "widget-header",
2363
2363
  t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
2364
2364
  t ? "border-opacity-0" : "border-opacity-20"
2365
2365
  );
2366
2366
  return /* @__PURE__ */ $("div", { className: a, children: [
2367
- /* @__PURE__ */ $("div", { className: h, children: [
2367
+ /* @__PURE__ */ $("div", { className: f, children: [
2368
2368
  /* @__PURE__ */ $("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
2369
2369
  /* @__PURE__ */ $("h2", { className: "widget-title", children: [
2370
2370
  e.title,
@@ -2385,7 +2385,7 @@ const Wn = (e) => {
2385
2385
  placement: "top",
2386
2386
  title: `${e.index < 1 ? "Already at min position" : "Move Widget to the left/up"}`
2387
2387
  },
2388
- onClick: () => c(-1),
2388
+ onClick: () => d(-1),
2389
2389
  children: /* @__PURE__ */ n(it, { className: Me })
2390
2390
  }
2391
2391
  ),
@@ -2399,7 +2399,7 @@ const Wn = (e) => {
2399
2399
  placement: "top",
2400
2400
  title: `${e.index >= e.maxIndex ? "Already at max position" : "Move Widget to the right/down"}`
2401
2401
  },
2402
- onClick: () => c(1),
2402
+ onClick: () => d(1),
2403
2403
  children: /* @__PURE__ */ n(at, { className: Me })
2404
2404
  }
2405
2405
  ),
@@ -2438,15 +2438,15 @@ function an({
2438
2438
  parentWidgetKey: r,
2439
2439
  targetContainerKey: a,
2440
2440
  childWidgetsConfig: o,
2441
- widgetCatalog: c,
2442
- isEditing: h,
2441
+ widgetCatalog: d,
2442
+ isEditing: f,
2443
2443
  // for additional props passed to all widget from the dashboard through the DynamicWidgetLoader:
2444
2444
  extraProps: C,
2445
2445
  onRemoveClick: v,
2446
2446
  onMoveClick: m,
2447
- selectContainer: d
2447
+ selectContainer: c
2448
2448
  }) {
2449
- const y = `${t}`.split("_"), p = y.length > 1, T = p ? y[0] : t, g = c.get(T);
2449
+ const y = `${t}`.split("_"), p = y.length > 1, T = p ? y[0] : t, g = d.get(T);
2450
2450
  if (!g)
2451
2451
  return /* @__PURE__ */ n("div", { className: "flex", children: /* @__PURE__ */ $("p", { children: [
2452
2452
  "Widget not found in catalog: ",
@@ -2458,7 +2458,7 @@ function an({
2458
2458
  maxIndex: i,
2459
2459
  widgetKey: t,
2460
2460
  parentWidgetKey: r,
2461
- isEditing: h,
2461
+ isEditing: f,
2462
2462
  extraProps: C,
2463
2463
  title: p ? S : g.title,
2464
2464
  onRemoveClick: v,
@@ -2466,7 +2466,7 @@ function an({
2466
2466
  };
2467
2467
  if (g.component ? (b = g.component, w = !1) : g.loader && (w = !0, b = rt(() => {
2468
2468
  if (!g) return null;
2469
- const s = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f = g.meta?.externalDependencies || [], u = f.find((_) => _.startsWith("react@"));
2469
+ const s = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", h = g.meta?.externalDependencies || [], u = h.find((_) => _.startsWith("react@"));
2470
2470
  if (u) {
2471
2471
  const _ = u.split("@")[1];
2472
2472
  if (!rn(s, _))
@@ -2497,10 +2497,10 @@ function an({
2497
2497
  ] }),
2498
2498
  /* @__PURE__ */ $("div", { className: "flex flex-col mt-3", children: [
2499
2499
  /* @__PURE__ */ n("h5", { children: "Externals:" }),
2500
- /* @__PURE__ */ n("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((R, z) => /* @__PURE__ */ $("dd", { children: [
2500
+ /* @__PURE__ */ n("dl", { className: "ml-2 flex flex-col text-xs", children: h.map((I, H) => /* @__PURE__ */ $("dd", { children: [
2501
2501
  "- ",
2502
- R
2503
- ] }, z)) })
2502
+ I
2503
+ ] }, H)) })
2504
2504
  ] })
2505
2505
  ] }) })
2506
2506
  }));
@@ -2511,8 +2511,8 @@ function an({
2511
2511
  const _ = async () => {
2512
2512
  try {
2513
2513
  return await g.loader();
2514
- } catch (R) {
2515
- return console.error(`CDN Load Failure for ${t}:`, R), {
2514
+ } catch (I) {
2515
+ return console.error(`CDN Load Failure for ${t}:`, I), {
2516
2516
  default: () => /* @__PURE__ */ n(tt, { ...l, children: /* @__PURE__ */ $("div", { className: "p-4 border border-dashed border-danger", children: [
2517
2517
  /* @__PURE__ */ $("p", { className: "font-bold", children: [
2518
2518
  'Failed to load "',
@@ -2535,36 +2535,36 @@ function an({
2535
2535
  ] }) });
2536
2536
  const M = N ? {
2537
2537
  highlight: a === t,
2538
- selectContainer: d,
2538
+ selectContainer: c,
2539
2539
  // The children prop is the recursive call back to DynamicWidgetLoader
2540
- children: D.map((s, f) => /* @__PURE__ */ n(
2540
+ children: D.map((s, h) => /* @__PURE__ */ n(
2541
2541
  an,
2542
2542
  {
2543
- index: f,
2543
+ index: h,
2544
2544
  maxIndex: D.length - 1,
2545
2545
  widgetKey: s.widgetKey,
2546
2546
  parentWidgetKey: s.parentWidgetKey,
2547
- widgetCatalog: c,
2548
- isEditing: h,
2547
+ widgetCatalog: d,
2548
+ isEditing: f,
2549
2549
  extraProps: C,
2550
2550
  onRemoveClick: v,
2551
2551
  onMoveClick: m
2552
2552
  },
2553
- `${s.widgetKey}_${f}`
2553
+ `${s.widgetKey}_${h}`
2554
2554
  ))
2555
2555
  } : {};
2556
2556
  return w ? /* @__PURE__ */ n(xt, { fallback: /* @__PURE__ */ n(on, { title: `Loading ${g.title}` }), children: /* @__PURE__ */ n(b, { ...l, ...M }) }) : /* @__PURE__ */ n(b, { ...l, ...M });
2557
2557
  }
2558
2558
  const ye = "size-5";
2559
- function Ie(e) {
2559
+ function We(e) {
2560
2560
  const i = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, a = e.isEditing || !1;
2561
- let h = i ? "border-transparent" : a && !r ? "border-card-invert" : "border-transparent";
2561
+ let f = i ? "border-transparent" : a && !r ? "border-card-invert" : "border-transparent";
2562
2562
  const C = ["large", "xlarge"].includes(e.size || "");
2563
2563
  let v = "";
2564
2564
  ["large", "xlarge"].indexOf(e.size || "") > -1 && (v = `${e.size}-widget`);
2565
2565
  let m = "";
2566
2566
  t === "row" && !r ? m = "min-h-48" : t === "column" && !r && (m = "min-h-96");
2567
- let d = G(
2567
+ let c = G(
2568
2568
  "dashboard-widget-container relative ",
2569
2569
  r ? "" : "has-no-children",
2570
2570
  a ? "editing" : "",
@@ -2572,9 +2572,9 @@ function Ie(e) {
2572
2572
  v,
2573
2573
  C ? "widget-container-grid" : "widget-container-flex",
2574
2574
  `direction-${t}`,
2575
- `border ${h}`,
2576
- `${i ? "highlight-container" : ""} ${h}`
2577
- ), y = `widget-container-header direction-${t} flex items-center border-1 ${h}`;
2575
+ `border ${f}`,
2576
+ `${i ? "highlight-container" : ""} ${f}`
2577
+ ), y = `widget-container-header direction-${t} flex items-center border-1 ${f}`;
2578
2578
  const p = () => {
2579
2579
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
2580
2580
  }, T = (b) => {
@@ -2582,7 +2582,7 @@ function Ie(e) {
2582
2582
  }, g = () => {
2583
2583
  e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
2584
2584
  };
2585
- return /* @__PURE__ */ $("div", { "data-testid": `container_${e.widgetKey}`, className: d, children: [
2585
+ return /* @__PURE__ */ $("div", { "data-testid": `container_${e.widgetKey}`, className: c, children: [
2586
2586
  /* @__PURE__ */ $("div", { className: y, children: [
2587
2587
  /* @__PURE__ */ n(
2588
2588
  "div",
@@ -2660,15 +2660,15 @@ function Ie(e) {
2660
2660
  }
2661
2661
  function On(e) {
2662
2662
  const { direction: i, ...t } = e;
2663
- return /* @__PURE__ */ n(Ie, { direction: "column", ...t });
2663
+ return /* @__PURE__ */ n(We, { direction: "column", ...t });
2664
2664
  }
2665
2665
  function kn(e) {
2666
2666
  const { size: i, ...t } = e;
2667
- return /* @__PURE__ */ n(Ie, { size: "large", ...t });
2667
+ return /* @__PURE__ */ n(We, { size: "large", ...t });
2668
2668
  }
2669
2669
  function jn(e) {
2670
2670
  const { direction: i, ...t } = e;
2671
- return /* @__PURE__ */ n(Ie, { direction: "row", ...t });
2671
+ return /* @__PURE__ */ n(We, { direction: "row", ...t });
2672
2672
  }
2673
2673
  function Pe({
2674
2674
  // widgetKey,
@@ -2676,7 +2676,7 @@ function Pe({
2676
2676
  alreadyAdded: i,
2677
2677
  addWidget: t
2678
2678
  }) {
2679
- const [r, a] = ae(!1), o = e.icon || jt, c = e.name || "Unknown", h = e.description || "---", v = (e.noDuplicatedWidgets || !1) && i, m = G(`
2679
+ const [r, a] = ae(!1), o = e.icon || jt, d = e.name || "Unknown", f = e.description || "---", v = (e.noDuplicatedWidgets || !1) && i, m = G(`
2680
2680
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2681
2681
  ${v ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2682
2682
  `);
@@ -2686,11 +2686,11 @@ function Pe({
2686
2686
  /* @__PURE__ */ n(o, { className: "" }),
2687
2687
  /* @__PURE__ */ $("div", { className: "w-full", children: [
2688
2688
  /* @__PURE__ */ $("div", { className: "flex flex-row items-center gap-2 justify-between", children: [
2689
- /* @__PURE__ */ n("span", { className: "font-bold", children: c }),
2689
+ /* @__PURE__ */ n("span", { className: "font-bold", children: d }),
2690
2690
  /* @__PURE__ */ n("div", { className: "text-xs", children: v ? "(Added)" : "" })
2691
2691
  ] }),
2692
2692
  /* @__PURE__ */ $("div", { className: "flex flex-col text-xs", children: [
2693
- /* @__PURE__ */ n("div", { children: h }),
2693
+ /* @__PURE__ */ n("div", { children: f }),
2694
2694
  /* @__PURE__ */ n("div", { className: "mt-3 cursor-pointer", onClick: (p) => {
2695
2695
  p.stopPropagation(), p.preventDefault(), a(!r);
2696
2696
  }, children: "Externals:" }),
@@ -2705,20 +2705,20 @@ function Pe({
2705
2705
  function sn({ item: e, onSettingItemChanged: i }) {
2706
2706
  const t = e.name || "Unknown", r = e.description || "---", a = G(`
2707
2707
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2708
- `), o = (h) => {
2709
- const C = h.key;
2708
+ `), o = (f) => {
2709
+ const C = f.key;
2710
2710
  if (["ArrowUp", "ArrowDown"].includes(C)) {
2711
- h.preventDefault();
2711
+ f.preventDefault();
2712
2712
  const v = bt.incrementOrDecrementValue(
2713
2713
  e,
2714
2714
  C === "ArrowUp" ? 1 : -1
2715
2715
  );
2716
2716
  i(v);
2717
2717
  }
2718
- }, c = (h) => {
2718
+ }, d = (f) => {
2719
2719
  i({
2720
2720
  ...e,
2721
- value: h.target.value || ""
2721
+ value: f.target.value || ""
2722
2722
  });
2723
2723
  };
2724
2724
  return /* @__PURE__ */ n("div", { className: a, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ $("div", { className: "w-full", children: [
@@ -2733,7 +2733,7 @@ function sn({ item: e, onSettingItemChanged: i }) {
2733
2733
  size: "small",
2734
2734
  className: "w-full",
2735
2735
  value: e.value,
2736
- onChange: c,
2736
+ onChange: d,
2737
2737
  onKeyDown: o
2738
2738
  }
2739
2739
  )
@@ -2751,17 +2751,17 @@ function An(e) {
2751
2751
  addContainer: r,
2752
2752
  onResetToDefaultDashboardClick: a,
2753
2753
  onUndoOrRedo: o,
2754
- onDoneClick: c
2755
- } = e, [h, C] = ae("Editing"), [v, m] = ae(0), [d, y] = ae(""), T = Array.from(e.widgetsCatalog.keys()).map((u) => ({
2754
+ onDoneClick: d
2755
+ } = e, [f, C] = ae("Editing"), [v, m] = ae(0), [c, y] = ae(""), T = Array.from(e.widgetsCatalog.keys()).map((u) => ({
2756
2756
  widgetKey: u,
2757
2757
  metaData: yt(u, e.widgetsCatalog)
2758
2758
  })), g = !!e.targetContainerKey, b = (u) => {
2759
2759
  y(u.target.value);
2760
2760
  }, w = (u) => {
2761
- const _ = d.trim().toLowerCase();
2761
+ const _ = c.trim().toLowerCase();
2762
2762
  return _.length < 1 ? !0 : u.name.trim().toLowerCase().includes(_) || u.description.toLowerCase().includes(_);
2763
2763
  }, N = (u) => {
2764
- const _ = d.trim().toLowerCase();
2764
+ const _ = c.trim().toLowerCase();
2765
2765
  return _.length < 1 ? !0 : u.name.trim().toLowerCase().includes(_) || u.description.toLowerCase().includes(_);
2766
2766
  }, S = (u) => G(
2767
2767
  "px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
@@ -2769,9 +2769,9 @@ function An(e) {
2769
2769
  ), D = (u) => {
2770
2770
  g ? e.addWidget(u, e.targetContainerKey) : e.addWidget(u);
2771
2771
  }, l = (u) => {
2772
- const _ = (e.currentDashboardConfig.cssSettings || []).map((R) => R.key === u.key ? u : R);
2772
+ const _ = (e.currentDashboardConfig.cssSettings || []).map((I) => I.key === u.key ? u : I);
2773
2773
  e.onSettingItemsUpdated(_);
2774
- }, [M, s] = ae(!1), f = (u) => {
2774
+ }, [M, s] = ae(!1), h = (u) => {
2775
2775
  s(u);
2776
2776
  };
2777
2777
  return Ct(() => {
@@ -2786,6 +2786,7 @@ function An(e) {
2786
2786
  {
2787
2787
  testId: "dashboard-catalog-flyout",
2788
2788
  className: "bg-body content-body bg-opacity-70 border-2 border-primary",
2789
+ zIndex: e.zIndex,
2789
2790
  style: {
2790
2791
  width: "360px",
2791
2792
  minWidth: "360px",
@@ -2793,17 +2794,17 @@ function An(e) {
2793
2794
  minHeight: "360px",
2794
2795
  backdropFilter: "blur(8px)"
2795
2796
  },
2796
- onDraggingChange: f,
2797
+ onDraggingChange: h,
2797
2798
  children: /* @__PURE__ */ $("div", { className: "flex flex-col gap-2 p-2", children: [
2798
2799
  /* @__PURE__ */ $("div", { className: "flex flex-row gap-2 justify-between", children: [
2799
2800
  /* @__PURE__ */ $("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
2800
- M ? /* @__PURE__ */ n(Ot, { className: "size-5" }) : /* @__PURE__ */ n(It, { className: "size-5" }),
2801
+ M ? /* @__PURE__ */ n(Ot, { className: "size-5" }) : /* @__PURE__ */ n(Wt, { className: "size-5" }),
2801
2802
  /* @__PURE__ */ n(
2802
2803
  "h2",
2803
2804
  {
2804
2805
  className: "flex-1 text-base margin-0 capitalize",
2805
- title: g ? h : `Editing dashboard: ${i.dashboardName}`,
2806
- children: h
2806
+ title: g ? f : `Editing dashboard: ${i.dashboardName}`,
2807
+ children: f
2807
2808
  }
2808
2809
  )
2809
2810
  ] }),
@@ -2819,7 +2820,7 @@ function An(e) {
2819
2820
  },
2820
2821
  disabled: t.isUndoDisabled,
2821
2822
  onClick: () => o("Undo"),
2822
- children: /* @__PURE__ */ n(Rt, { className: "size-5" })
2823
+ children: /* @__PURE__ */ n(It, { className: "size-5" })
2823
2824
  }
2824
2825
  ),
2825
2826
  /* @__PURE__ */ n(
@@ -2833,7 +2834,7 @@ function An(e) {
2833
2834
  },
2834
2835
  disabled: t.isRedoDisabled,
2835
2836
  onClick: () => o("Redo"),
2836
- children: /* @__PURE__ */ n(Wt, { className: "size-5" })
2837
+ children: /* @__PURE__ */ n(Rt, { className: "size-5" })
2837
2838
  }
2838
2839
  ),
2839
2840
  /* @__PURE__ */ n(
@@ -2863,7 +2864,7 @@ function An(e) {
2863
2864
  label: "Filter...",
2864
2865
  size: "small",
2865
2866
  className: "w-full",
2866
- value: d,
2867
+ value: c,
2867
2868
  onChange: b
2868
2869
  }
2869
2870
  ) }),
@@ -2928,7 +2929,7 @@ function An(e) {
2928
2929
  placement: "bottom",
2929
2930
  title: "Click to exit edit mode"
2930
2931
  },
2931
- onClick: c,
2932
+ onClick: d,
2932
2933
  children: "Done"
2933
2934
  }
2934
2935
  ) })
@@ -2941,7 +2942,7 @@ export {
2941
2942
  J as Button,
2942
2943
  jt as CircleQuestionMark,
2943
2944
  kt as CrosshairIcon,
2944
- In as DashboardGrid,
2945
+ Wn as DashboardGrid,
2945
2946
  tt as DashboardWidgetBase,
2946
2947
  pn as DeleteIcon,
2947
2948
  en as DraggablePanel,
@@ -2949,7 +2950,7 @@ export {
2949
2950
  yn as EditIcon,
2950
2951
  vn as GridIcon,
2951
2952
  Ot as HandGrabIcon,
2952
- It as HandIcon,
2953
+ Wt as HandIcon,
2953
2954
  Nn as ListItem,
2954
2955
  En as ListItemLeftChild,
2955
2956
  _n as ListItemMiddleChild,
@@ -2958,7 +2959,7 @@ export {
2958
2959
  Cn as MonitorSmartphoneIcon,
2959
2960
  it as MoveLeftIcon,
2960
2961
  at as MoveRightIcon,
2961
- Wt as RedoIcon,
2962
+ Rt as RedoIcon,
2962
2963
  bn as RenameIcon,
2963
2964
  Pt as SettingsIcon,
2964
2965
  Lt as Stack,
@@ -2967,18 +2968,18 @@ export {
2967
2968
  Tn as TargetIcon,
2968
2969
  lt as TextField,
2969
2970
  $t as TimerResetIcon,
2970
- Rt as UndoIcon,
2971
+ It as UndoIcon,
2971
2972
  On as WidgetContainerColumn,
2972
2973
  kn as WidgetContainerLarge,
2973
2974
  jn as WidgetContainerRow,
2974
2975
  An as WidgetsCatalogFlyout,
2975
2976
  $n as WrapperColumnContent,
2976
- Rn as WrapperColumnContentListItem,
2977
+ In as WrapperColumnContentListItem,
2977
2978
  st as XCircleIcon,
2978
2979
  Sn as ZoomInIcon,
2979
2980
  Dn as ZoomOutIcon,
2980
2981
  rn as _isVersionCompatible,
2981
- Wn as showToast,
2982
+ Rn as showToast,
2982
2983
  hn as useDashboardStore,
2983
2984
  gn as useDashboardUndoService
2984
2985
  };