@tenorlab/react-dashboard 1.5.2 → 1.5.22

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.
@@ -3,16 +3,33 @@ import { blankDashboardConfig as xe, ensureContainersSequence as mt, getDistinct
3
3
  import be, { useState as ae, useCallback as ce, useMemo as rt, forwardRef as se, useRef as vt, Suspense as xt, useEffect as Ct } from "react";
4
4
  import { jsxs as $, jsx as n } from "react/jsx-runtime";
5
5
  import ot from "react-dom";
6
- const wt = (e) => {
6
+ const wt = (e) => (i, t, r) => {
7
+ const a = r.subscribe;
8
+ return r.subscribe = ((c, h, C) => {
9
+ let v = c;
10
+ if (h) {
11
+ const m = C?.equalityFn || Object.is;
12
+ let d = c(r.getState());
13
+ v = (y) => {
14
+ const p = c(y);
15
+ if (!m(d, p)) {
16
+ const T = d;
17
+ h(d = p, T);
18
+ }
19
+ }, C?.fireImmediately && h(d, d);
20
+ }
21
+ return a(v);
22
+ }), e(i, t, r);
23
+ }, St = wt, Dt = (e) => {
7
24
  const i = e.widgets.filter((r) => r.includes("WidgetContainer")).map((r) => Number(r.split("_")[1].replace("container", "")));
8
25
  return `container${i.length > 0 ? Math.max(...i) + 1 : 1}`;
9
- }, St = (e, i) => {
10
- const t = wt(e);
26
+ }, Tt = (e, i) => {
27
+ const t = Dt(e);
11
28
  return `${i}_${t}`;
12
- }, Dt = (e) => {
13
- const { dashboardConfig: i, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: s } = e;
29
+ }, Nt = (e) => {
30
+ const { dashboardConfig: i, widgetKey: t, parentWidgetKey: r, noDuplicatedWidgets: a } = e;
14
31
  if (r) {
15
- if (s && i.childWidgetsConfig.find(
32
+ if (a && i.childWidgetsConfig.find(
16
33
  (c) => c.parentWidgetKey === r && c.widgetKey === t
17
34
  ))
18
35
  return {
@@ -33,7 +50,7 @@ const wt = (e) => {
33
50
  }
34
51
  };
35
52
  } else {
36
- if (s && i.widgets.includes(t))
53
+ if (a && i.widgets.includes(t))
37
54
  return {
38
55
  success: !1,
39
56
  message: `DashboardStore: addWidget: Widget already added (${t})`,
@@ -48,57 +65,57 @@ const wt = (e) => {
48
65
  }
49
66
  };
50
67
  }
51
- }, Tt = (e, i, t) => {
52
- const r = `${i || ""}`.trim().toLowerCase(), s = `${t || ""}`.trim().toLowerCase();
53
- if (s.length > 0) {
68
+ }, Et = (e, i, t) => {
69
+ const r = `${i || ""}`.trim().toLowerCase(), a = `${t || ""}`.trim().toLowerCase();
70
+ if (a.length > 0) {
54
71
  const o = e.childWidgetsConfig.filter(
55
- (m) => `${m.parentWidgetKey}`.trim().toLowerCase() !== s
72
+ (m) => `${m.parentWidgetKey}`.trim().toLowerCase() !== a
56
73
  ), c = e.childWidgetsConfig.filter(
57
- (m) => `${m.parentWidgetKey}`.trim().toLowerCase() === s && `${m.widgetKey}`.trim().toLowerCase() !== r
58
- ), g = [...o, ...c];
59
- let D = {
74
+ (m) => `${m.parentWidgetKey}`.trim().toLowerCase() === a && `${m.widgetKey}`.trim().toLowerCase() !== r
75
+ ), h = [...o, ...c];
76
+ let C = {
60
77
  ...e,
61
- childWidgetsConfig: g
78
+ childWidgetsConfig: h
62
79
  };
63
- return r.includes("container") && (D = mt(D)), {
80
+ return r.includes("container") && (C = mt(C)), {
64
81
  success: !0,
65
- updatedDashboardConfig: D
82
+ updatedDashboardConfig: C
66
83
  };
67
84
  } else {
68
85
  const c = (e.widgets || []).filter(
69
- (D) => `${D}`.trim().toLowerCase() !== r
70
- ), g = e.childWidgetsConfig.filter(
71
- (D) => `${D.parentWidgetKey}`.trim().toLowerCase() !== r
86
+ (C) => `${C}`.trim().toLowerCase() !== r
87
+ ), h = e.childWidgetsConfig.filter(
88
+ (C) => `${C.parentWidgetKey}`.trim().toLowerCase() !== r
72
89
  );
73
90
  return {
74
91
  success: !0,
75
92
  updatedDashboardConfig: {
76
93
  ...e,
77
94
  widgets: c,
78
- childWidgetsConfig: g
95
+ childWidgetsConfig: h
79
96
  }
80
97
  };
81
98
  }
82
- }, Nt = (e, i, t, r) => {
83
- const s = `${t || ""}`.trim().toLowerCase(), o = `${r || ""}`.trim().toLowerCase();
99
+ }, _t = (e, i, t, r) => {
100
+ const a = `${t || ""}`.trim().toLowerCase(), o = `${r || ""}`.trim().toLowerCase();
84
101
  if (o.length > 0) {
85
102
  const c = e.childWidgetsConfig.filter(
86
103
  (p) => `${p.parentWidgetKey}`.trim().toLowerCase() !== o
87
104
  );
88
- let g = e.childWidgetsConfig.filter(
105
+ let h = e.childWidgetsConfig.filter(
89
106
  (p) => `${p.parentWidgetKey}`.trim().toLowerCase() === o
90
107
  );
91
- const D = g.find(
92
- (p) => `${p.widgetKey}`.trim().toLowerCase() === s
93
- ), v = g.indexOf(D);
108
+ const C = h.find(
109
+ (p) => `${p.widgetKey}`.trim().toLowerCase() === a
110
+ ), v = h.indexOf(C);
94
111
  let m = v + i;
95
- if (m = Math.max(0, m), m = Math.min(g.length - 1, m), m === v)
112
+ if (m = Math.max(0, m), m = Math.min(h.length - 1, m), m === v)
96
113
  return {
97
114
  success: !1,
98
115
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
99
116
  updatedDashboardConfig: e
100
117
  };
101
- const d = [...g], [y] = d.splice(v, 1);
118
+ const d = [...h], [y] = d.splice(v, 1);
102
119
  return d.splice(m, 0, y), {
103
120
  success: !0,
104
121
  updatedDashboardConfig: {
@@ -107,15 +124,15 @@ const wt = (e) => {
107
124
  }
108
125
  };
109
126
  } else {
110
- const c = e.widgets || [], D = c.map((y) => `${y}`.trim().toLowerCase()).indexOf(s);
111
- let v = D + i;
112
- if (v = Math.max(0, v), v = Math.min(c.length - 1, v), v === D)
127
+ const c = e.widgets || [], C = c.map((y) => `${y}`.trim().toLowerCase()).indexOf(a);
128
+ let v = C + i;
129
+ if (v = Math.max(0, v), v = Math.min(c.length - 1, v), v === C)
113
130
  return {
114
131
  success: !1,
115
132
  message: `DashboardStore: moveWidget: Widget already at min/max position (${t})`,
116
133
  updatedDashboardConfig: e
117
134
  };
118
- const m = [...c], [d] = m.splice(D, 1);
135
+ const m = [...c], [d] = m.splice(C, 1);
119
136
  return m.splice(v, 0, d), {
120
137
  success: !0,
121
138
  updatedDashboardConfig: {
@@ -124,13 +141,13 @@ const wt = (e) => {
124
141
  }
125
142
  };
126
143
  }
127
- }, Et = (e, i) => ({
144
+ }, Mt = (e, i) => ({
128
145
  isLoading: !1,
129
146
  isEditing: !1,
130
147
  allDashboardConfigs: [xe],
131
148
  currentDashboardConfig: xe,
132
149
  targetContainerKey: void 0,
133
- getNextContainerKey: (t) => St(i().currentDashboardConfig, t),
150
+ getNextContainerKey: (t) => Tt(i().currentDashboardConfig, t),
134
151
  setIsLoading: (t) => (e(() => ({ isLoading: t })), t),
135
152
  setIsEditing: (t) => {
136
153
  let r = i().targetContainerKey;
@@ -139,65 +156,65 @@ const wt = (e) => {
139
156
  setTargetContainerKey: (t) => (e(() => ({ targetContainerKey: t })), t),
140
157
  setAllDashboardConfigs: (t) => (e(() => ({ allDashboardConfigs: t })), i().allDashboardConfigs),
141
158
  setCurrentDashboardConfig: (t) => {
142
- const r = i(), s = [
159
+ const r = i(), a = [
143
160
  ...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
144
161
  t
145
162
  ];
146
163
  return e(() => ({
147
164
  ...r,
148
- allDashboardConfigs: s,
165
+ allDashboardConfigs: a,
149
166
  currentDashboardConfig: t
150
- })), s;
167
+ })), a;
151
168
  },
152
169
  addDashboardConfig: (t) => {
153
- const r = i(), s = [
170
+ const r = i(), a = [
154
171
  ...r.allDashboardConfigs.filter((o) => o.dashboardId !== t.dashboardId),
155
172
  t
156
173
  ];
157
174
  return e(() => ({
158
175
  ...r,
159
- allDashboardConfigs: s,
176
+ allDashboardConfigs: a,
160
177
  currentDashboardConfig: t
161
- })), s;
178
+ })), a;
162
179
  },
163
180
  deleteDashboardConfigById: (t) => {
164
- const r = i(), s = [...r.allDashboardConfigs.filter((o) => o.dashboardId !== t)];
181
+ const r = i(), a = [...r.allDashboardConfigs.filter((o) => o.dashboardId !== t)];
165
182
  return e(() => ({
166
183
  ...r,
167
- allDashboardConfigs: s,
168
- currentDashboardConfig: s[0] || xe
169
- })), s;
184
+ allDashboardConfigs: a,
185
+ currentDashboardConfig: a[0] || xe
186
+ })), a;
170
187
  },
171
188
  selectDashboardById: (t) => (e(() => {
172
- const r = i(), s = r.allDashboardConfigs.find((o) => o.dashboardId === t);
173
- return s ? {
174
- currentDashboardConfig: s
189
+ const r = i(), a = r.allDashboardConfigs.find((o) => o.dashboardId === t);
190
+ return a ? {
191
+ currentDashboardConfig: a
175
192
  } : {
176
193
  ...r
177
194
  };
178
195
  }), i().currentDashboardConfig),
179
196
  addWidget: (t) => {
180
- const r = i(), s = Dt({
197
+ const r = i(), a = Nt({
181
198
  dashboardConfig: r.currentDashboardConfig,
182
199
  ...t
183
200
  }), o = [
184
201
  ...r.allDashboardConfigs.filter(
185
- (c) => c.dashboardId !== s.updatedDashboardConfig.dashboardId
202
+ (c) => c.dashboardId !== a.updatedDashboardConfig.dashboardId
186
203
  ),
187
- s.updatedDashboardConfig
204
+ a.updatedDashboardConfig
188
205
  ];
189
- return s.success && e(() => ({
206
+ return a.success && e(() => ({
190
207
  allDashboardConfigs: o,
191
- currentDashboardConfig: s.updatedDashboardConfig
208
+ currentDashboardConfig: a.updatedDashboardConfig
192
209
  })), {
193
- ...s,
210
+ ...a,
194
211
  allUpdatedDashboardConfigs: o
195
212
  };
196
213
  },
197
214
  removeWidget: (t, r) => {
198
- const s = i(), o = Tt(s.currentDashboardConfig, t, r), c = [
199
- ...s.allDashboardConfigs.filter(
200
- (g) => g.dashboardId !== o.updatedDashboardConfig.dashboardId
215
+ const a = i(), o = Et(a.currentDashboardConfig, t, r), c = [
216
+ ...a.allDashboardConfigs.filter(
217
+ (h) => h.dashboardId !== o.updatedDashboardConfig.dashboardId
201
218
  ),
202
219
  o.updatedDashboardConfig
203
220
  ];
@@ -209,25 +226,27 @@ const wt = (e) => {
209
226
  allUpdatedDashboardConfigs: c
210
227
  };
211
228
  },
212
- moveWidget: (t, r, s) => {
213
- const o = i(), c = Nt(o.currentDashboardConfig, t, r, s), g = [
229
+ moveWidget: (t, r, a) => {
230
+ const o = i(), c = _t(o.currentDashboardConfig, t, r, a), h = [
214
231
  ...o.allDashboardConfigs.filter(
215
- (D) => D.dashboardId !== c.updatedDashboardConfig.dashboardId
232
+ (C) => C.dashboardId !== c.updatedDashboardConfig.dashboardId
216
233
  ),
217
234
  c.updatedDashboardConfig
218
235
  ];
219
236
  return c.success && e(() => ({
220
- allDashboardConfigs: g,
237
+ allDashboardConfigs: h,
221
238
  currentDashboardConfig: c.updatedDashboardConfig
222
239
  })), {
223
240
  ...c,
224
- allUpdatedDashboardConfigs: g
241
+ allUpdatedDashboardConfigs: h
225
242
  };
226
243
  }
227
- }), un = gt()((...e) => ({
228
- ...Et(...e)
229
- })), fn = () => {
230
- const [e, i] = ae({}), [t, r] = ae({}), s = ce((m) => {
244
+ }), hn = gt()(
245
+ St((...e) => ({
246
+ ...Mt(...e)
247
+ }))
248
+ ), gn = () => {
249
+ const [e, i] = ae({}), [t, r] = ae({}), a = ce((m) => {
231
250
  const d = m.dashboardId;
232
251
  i((y) => {
233
252
  const p = {
@@ -246,18 +265,18 @@ const wt = (e) => {
246
265
  }, []), o = ce(
247
266
  (m) => {
248
267
  i((d) => {
249
- const y = m.dashboardId, p = d[y] || [], T = t[y] ?? -1, h = p.slice(0, T + 1), b = {
250
- undoIndex: h.length,
268
+ const y = m.dashboardId, p = d[y] || [], T = t[y] ?? -1, g = p.slice(0, T + 1), b = {
269
+ undoIndex: g.length,
251
270
  // New index based on trimmed length
252
271
  config: m
253
- }, C = [...h, b];
272
+ }, w = [...g, b];
254
273
  return r((N) => ({
255
274
  ...N,
256
- [y]: C.length - 1
275
+ [y]: w.length - 1
257
276
  // Index is now the last element's index
258
277
  })), {
259
278
  ...d,
260
- [y]: C
279
+ [y]: w
261
280
  };
262
281
  });
263
282
  },
@@ -272,7 +291,7 @@ const wt = (e) => {
272
291
  const { [m]: y, ...p } = d;
273
292
  return p;
274
293
  });
275
- }, []), g = ce(
294
+ }, []), h = ce(
276
295
  (m) => {
277
296
  r((d) => {
278
297
  const y = d[m] ?? -1, p = Math.max(0, y - 1);
@@ -282,7 +301,7 @@ const wt = (e) => {
282
301
  [
283
302
  //loadConfigFromHistory
284
303
  ]
285
- ), D = ce(
304
+ ), C = ce(
286
305
  (m) => {
287
306
  r((d) => {
288
307
  const y = e[m]?.length || 0, p = d[m] ?? -1, T = Math.min(y - 1, p + 1);
@@ -295,12 +314,12 @@ const wt = (e) => {
295
314
  ]
296
315
  );
297
316
  return {
298
- initializeHistoryForDashboard: s,
317
+ initializeHistoryForDashboard: a,
299
318
  resetAllHistory: () => i({}),
300
319
  addUndoEntry: o,
301
320
  removeUndoHistoryForDashboard: c,
302
- undo: g,
303
- redo: D,
321
+ undo: h,
322
+ redo: C,
304
323
  getUndoStatus: (m) => {
305
324
  const d = t[m] ?? -1, y = e[m]?.length || 0, p = d <= 0, T = d >= y - 1;
306
325
  return { isUndoDisabled: p, isRedoDisabled: T };
@@ -331,14 +350,14 @@ function B({
331
350
  }
332
351
  );
333
352
  }
334
- function hn({ className: e }) {
353
+ function mn({ className: e }) {
335
354
  return /* @__PURE__ */ $(B, { className: `lucide lucide-circle-plus-icon lucide-circle-plus ${e}`, children: [
336
355
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "10" }),
337
356
  /* @__PURE__ */ n("path", { d: "M8 12h8" }),
338
357
  /* @__PURE__ */ n("path", { d: "M12 8v8" })
339
358
  ] });
340
359
  }
341
- function gn({ className: e }) {
360
+ function pn({ className: e }) {
342
361
  return /* @__PURE__ */ $(B, { className: `lucide lucide-trash2-icon lucide-trash-2 ${e}`, children: [
343
362
  /* @__PURE__ */ n("path", { d: "M10 11v6" }),
344
363
  /* @__PURE__ */ n("path", { d: "M14 11v6" }),
@@ -347,13 +366,13 @@ function gn({ className: e }) {
347
366
  /* @__PURE__ */ n("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
348
367
  ] });
349
368
  }
350
- function mn({ className: e }) {
369
+ function yn({ className: e }) {
351
370
  return /* @__PURE__ */ $(B, { className: `lucide lucide-square-pen-icon lucide-square-pen ${e}`, children: [
352
371
  /* @__PURE__ */ n("path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
353
372
  /* @__PURE__ */ n("path", { d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" })
354
373
  ] });
355
374
  }
356
- function pn({ className: e }) {
375
+ function bn({ className: e }) {
357
376
  return /* @__PURE__ */ $(B, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
358
377
  /* @__PURE__ */ n("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
359
378
  /* @__PURE__ */ n("path", { d: "M3 9h18" }),
@@ -362,14 +381,14 @@ function pn({ className: e }) {
362
381
  /* @__PURE__ */ n("path", { d: "M15 3v18" })
363
382
  ] });
364
383
  }
365
- function yn({ className: e }) {
384
+ function vn({ className: e }) {
366
385
  return /* @__PURE__ */ $(B, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
367
386
  /* @__PURE__ */ n("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
368
387
  /* @__PURE__ */ n("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
369
388
  /* @__PURE__ */ n("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
370
389
  ] });
371
390
  }
372
- function bn({ className: e }) {
391
+ function xn({ className: e }) {
373
392
  return /* @__PURE__ */ $(
374
393
  B,
375
394
  {
@@ -409,13 +428,13 @@ function at({ className: e }) {
409
428
  }
410
429
  );
411
430
  }
412
- function _t({ className: e }) {
431
+ function Pt({ className: e }) {
413
432
  return /* @__PURE__ */ $(B, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
414
433
  /* @__PURE__ */ n("path", { d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }),
415
434
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "3" })
416
435
  ] });
417
436
  }
418
- function vn({ className: e }) {
437
+ function Cn({ className: e }) {
419
438
  return /* @__PURE__ */ $(
420
439
  B,
421
440
  {
@@ -435,7 +454,7 @@ function st({ className: e }) {
435
454
  /* @__PURE__ */ n("path", { d: "m9 9 6 6" })
436
455
  ] });
437
456
  }
438
- function xn({ className: e }) {
457
+ function wn({ className: e }) {
439
458
  return /* @__PURE__ */ $(B, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
440
459
  /* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "8" }),
441
460
  /* @__PURE__ */ n("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
@@ -443,14 +462,14 @@ function xn({ className: e }) {
443
462
  /* @__PURE__ */ n("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
444
463
  ] });
445
464
  }
446
- function Cn({ className: e }) {
465
+ function Sn({ className: e }) {
447
466
  return /* @__PURE__ */ $(B, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
448
467
  /* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "8" }),
449
468
  /* @__PURE__ */ n("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
450
469
  /* @__PURE__ */ n("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
451
470
  ] });
452
471
  }
453
- function Mt({ className: e }) {
472
+ function $t({ className: e }) {
454
473
  return /* @__PURE__ */ $(B, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
455
474
  /* @__PURE__ */ n("path", { d: "M10 2h4" }),
456
475
  /* @__PURE__ */ n("path", { d: "M12 14v-4" }),
@@ -458,19 +477,19 @@ function Mt({ className: e }) {
458
477
  /* @__PURE__ */ n("path", { d: "M9 17H4v5" })
459
478
  ] });
460
479
  }
461
- function Pt({ className: e }) {
480
+ function Wt({ className: e }) {
462
481
  return /* @__PURE__ */ $(B, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
463
482
  /* @__PURE__ */ n("path", { d: "M3 7v6h6" }),
464
483
  /* @__PURE__ */ n("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
465
484
  ] });
466
485
  }
467
- function $t({ className: e }) {
486
+ function Rt({ className: e }) {
468
487
  return /* @__PURE__ */ $(B, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
469
488
  /* @__PURE__ */ n("path", { d: "M21 7v6h-6" }),
470
489
  /* @__PURE__ */ n("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
471
490
  ] });
472
491
  }
473
- function Rt({ className: e }) {
492
+ function It({ className: e }) {
474
493
  return /* @__PURE__ */ $(B, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
475
494
  /* @__PURE__ */ n("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
476
495
  /* @__PURE__ */ n("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
@@ -478,7 +497,7 @@ function Rt({ className: e }) {
478
497
  /* @__PURE__ */ n("path", { d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15" })
479
498
  ] });
480
499
  }
481
- function Wt({ className: e }) {
500
+ function Ot({ className: e }) {
482
501
  return /* @__PURE__ */ $(B, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
483
502
  /* @__PURE__ */ n("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
484
503
  /* @__PURE__ */ n("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
@@ -487,7 +506,7 @@ function Wt({ className: e }) {
487
506
  /* @__PURE__ */ n("path", { d: "M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0" })
488
507
  ] });
489
508
  }
490
- function It({ className: e }) {
509
+ function kt({ className: e }) {
491
510
  return /* @__PURE__ */ $(B, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
492
511
  /* @__PURE__ */ n("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
493
512
  /* @__PURE__ */ n("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
@@ -495,14 +514,14 @@ function It({ className: e }) {
495
514
  /* @__PURE__ */ n("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
496
515
  ] });
497
516
  }
498
- function wn({ className: e }) {
517
+ function Dn({ className: e }) {
499
518
  return /* @__PURE__ */ $(B, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
500
519
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "10" }),
501
520
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "6" }),
502
521
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "2" })
503
522
  ] });
504
523
  }
505
- function Ot({ className: e }) {
524
+ function jt({ className: e }) {
506
525
  return /* @__PURE__ */ $(
507
526
  B,
508
527
  {
@@ -520,18 +539,18 @@ const lt = ({
520
539
  className: i,
521
540
  size: t = "medium",
522
541
  value: r,
523
- onChange: s,
542
+ onChange: a,
524
543
  onKeyDown: o,
525
544
  placeholder: c = ""
526
545
  }) => {
527
- const g = rt(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), D = G("flex flex-col mb-4", i || ""), m = `${G(`
546
+ 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(`
528
547
  block w-full rounded-md px-3 py-1.5 text-base
529
548
  bg-formfield content-formfield
530
549
  outline-1 -outline-offset-1 outline-primary
531
550
  placeholder:text-disabled
532
551
  focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
533
- `)} ${g}`;
534
- return /* @__PURE__ */ $("div", { className: D, children: [
552
+ `)} ${h}`;
553
+ return /* @__PURE__ */ $("div", { className: C, children: [
535
554
  /* @__PURE__ */ n("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
536
555
  /* @__PURE__ */ n(
537
556
  "input",
@@ -539,7 +558,7 @@ const lt = ({
539
558
  id: e,
540
559
  type: "text",
541
560
  value: r,
542
- onChange: s,
561
+ onChange: a,
543
562
  onKeyDown: (d) => o && o(d),
544
563
  placeholder: c,
545
564
  className: m,
@@ -562,23 +581,23 @@ function J(e) {
562
581
  tooltip: i,
563
582
  disabled: t,
564
583
  isIconButton: r,
565
- className: s,
584
+ className: a,
566
585
  buttonType: o,
567
586
  category: c,
568
- px: g,
569
- py: D,
587
+ px: h,
588
+ py: C,
570
589
  children: v,
571
590
  ...m
572
591
  } = e, d = () => {
573
- const p = e.isIconButton || !1, T = e.category || "primary", h = e.buttonType || "normal", b = e.disabled || !1, C = e.className || "", N = e.font || "semibold", w = Number((e.border || 0) > 0 ? e.border : 0);
574
- let S = (e.borderColor || "").trim();
575
- S = S.length > 0 ? S : "";
576
- const l = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), M = e.shadow || "sm", a = e.shadowHover || "md", f = (e.addCss || "").trim(), u = e.justifyCss || "justify-center";
592
+ 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);
593
+ let D = (e.borderColor || "").trim();
594
+ D = D.length > 0 ? D : "";
595
+ 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";
577
596
  if (p)
578
597
  return G(
579
598
  "flex flex-row items-center",
580
599
  b ? "text-disabled" : `text-${T} hover:brightness-110 cursor-pointer`,
581
- C || ""
600
+ w || ""
582
601
  );
583
602
  const _ = [
584
603
  "relative cursor-pointer",
@@ -588,15 +607,15 @@ function J(e) {
588
607
  `font-${N}`
589
608
  ];
590
609
  if (b)
591
- h === "ghost" ? _.push("text-disabled border-disabled cursor-not-allowed") : _.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
610
+ g === "ghost" ? _.push("text-disabled border-disabled cursor-not-allowed") : _.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
592
611
  else {
593
612
  _.push("cursor-pointer");
594
- let R = "";
595
- Ce.has(h) ? R = `${Ce.get(h)}` : R = `${Ce.get("normal")}`, w < 1 && (R = R.replace("border-[category]", ""));
596
- const z = R.replace(/\[category\]/g, T).trim();
613
+ let W = "";
614
+ Ce.has(g) ? W = `${Ce.get(g)}` : W = `${Ce.get("normal")}`, S < 1 && (W = W.replace("border-[category]", ""));
615
+ const z = W.replace(/\[category\]/g, T).trim();
597
616
  _.push(z);
598
617
  }
599
- return w > 0 ? (_.push(`border-[${w}px]`), _.push(`border-${S}`)) : (_.push("border-[1px]"), _.push("border-transparent")), l > 0 ? (_.push(`hover:border-[${l}px] group-hover:border-[${l}px]`), _.push(`hover:border-${S} group-hover:border-${S}`)) : _.push("hover:border-[1px] group-hover:border-[1px]"), _.push(`shadow-${M}`), _.push(`hover:shadow-${a} group-hover:shadow-${a}`), f.length > 0 && _.push(f), f.indexOf("hidden") === -1 && _.push("inline-flex"), _.push(u), _.join(" ").trim();
618
+ 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();
600
619
  }, y = () => {
601
620
  const p = e.px || 0.7, T = e.py || 0.25;
602
621
  return {
@@ -605,21 +624,21 @@ function J(e) {
605
624
  };
606
625
  return /* @__PURE__ */ n("button", { type: "button", disabled: t, className: d(), style: y(), ...m, children: v });
607
626
  }
608
- const kt = (e) => e.direction === "row" ? G("flex flex-row items-center gap-2", e.classNames || "") : G("flex flex-col gap-2 w-full", e.classNames || "");
609
- function jt(e) {
610
- const { children: i, testId: t, classNames: r, direction: s, ...o } = e, c = kt(e);
627
+ 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 || "");
628
+ function Lt(e) {
629
+ const { children: i, testId: t, classNames: r, direction: a, ...o } = e, c = At(e);
611
630
  return /* @__PURE__ */ n("div", { "data-testid": t || "not-set", className: c, ...o, children: i });
612
631
  }
613
- const Sn = se(
632
+ const Tn = se(
614
633
  (e, i) => {
615
- const { classNames: t, innerClass: r, ...s } = e, o = G(t || "", "w-full"), c = G(
634
+ const { classNames: t, innerClass: r, ...a } = e, o = G(t || "", "w-full"), c = G(
616
635
  `w-full flex overflow-hidden justify-between items-center gap-0
617
636
  rounded-md border`,
618
637
  r || ""
619
638
  );
620
- return /* @__PURE__ */ n(jt, { direction: "row", classNames: o, ...s, children: /* @__PURE__ */ n("div", { className: c, children: e.children }) });
639
+ return /* @__PURE__ */ n(Lt, { direction: "row", classNames: o, ...a, children: /* @__PURE__ */ n("div", { className: c, children: e.children }) });
621
640
  }
622
- ), Dn = se((e, i) => /* @__PURE__ */ n(
641
+ ), Nn = se((e, i) => /* @__PURE__ */ n(
623
642
  "div",
624
643
  {
625
644
  "data-testid": e.testId || "not-set",
@@ -630,7 +649,7 @@ const Sn = se(
630
649
  },
631
650
  children: e.children
632
651
  }
633
- )), Tn = se(
652
+ )), En = se(
634
653
  (e, i) => /* @__PURE__ */ n(
635
654
  "div",
636
655
  {
@@ -639,7 +658,7 @@ const Sn = se(
639
658
  children: e.children
640
659
  }
641
660
  )
642
- ), Nn = se((e, i) => /* @__PURE__ */ n(
661
+ ), _n = se((e, i) => /* @__PURE__ */ n(
643
662
  "div",
644
663
  {
645
664
  "data-testid": e.testId || "not-set",
@@ -651,31 +670,31 @@ const Sn = se(
651
670
  children: e.children
652
671
  }
653
672
  ));
654
- function At(e) {
673
+ function qt(e) {
655
674
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
656
675
  }
657
676
  var de = { exports: {} }, we = {}, he = { exports: {} }, ge = { exports: {} }, K = {};
658
677
  var ke;
659
- function Lt() {
678
+ function Kt() {
660
679
  if (ke) return K;
661
680
  ke = 1;
662
- 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, s = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, g = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, D = 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, h = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
663
- function w(l) {
681
+ 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;
682
+ function S(l) {
664
683
  if (typeof l == "object" && l !== null) {
665
684
  var M = l.$$typeof;
666
685
  switch (M) {
667
686
  case i:
668
687
  switch (l = l.type, l) {
669
- case D:
688
+ case C:
670
689
  case v:
671
690
  case r:
672
691
  case o:
673
- case s:
692
+ case a:
674
693
  case d:
675
694
  return l;
676
695
  default:
677
696
  switch (l = l && l.$$typeof, l) {
678
- case g:
697
+ case h:
679
698
  case m:
680
699
  case T:
681
700
  case p:
@@ -690,64 +709,64 @@ function Lt() {
690
709
  }
691
710
  }
692
711
  }
693
- function S(l) {
694
- return w(l) === v;
712
+ function D(l) {
713
+ return S(l) === v;
695
714
  }
696
- return K.AsyncMode = D, K.ConcurrentMode = v, K.ContextConsumer = g, 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 = s, K.Suspense = d, K.isAsyncMode = function(l) {
697
- return S(l) || w(l) === D;
698
- }, K.isConcurrentMode = S, K.isContextConsumer = function(l) {
699
- return w(l) === g;
715
+ 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) {
716
+ return D(l) || S(l) === C;
717
+ }, K.isConcurrentMode = D, K.isContextConsumer = function(l) {
718
+ return S(l) === h;
700
719
  }, K.isContextProvider = function(l) {
701
- return w(l) === c;
720
+ return S(l) === c;
702
721
  }, K.isElement = function(l) {
703
722
  return typeof l == "object" && l !== null && l.$$typeof === i;
704
723
  }, K.isForwardRef = function(l) {
705
- return w(l) === m;
724
+ return S(l) === m;
706
725
  }, K.isFragment = function(l) {
707
- return w(l) === r;
726
+ return S(l) === r;
708
727
  }, K.isLazy = function(l) {
709
- return w(l) === T;
728
+ return S(l) === T;
710
729
  }, K.isMemo = function(l) {
711
- return w(l) === p;
730
+ return S(l) === p;
712
731
  }, K.isPortal = function(l) {
713
- return w(l) === t;
732
+ return S(l) === t;
714
733
  }, K.isProfiler = function(l) {
715
- return w(l) === o;
734
+ return S(l) === o;
716
735
  }, K.isStrictMode = function(l) {
717
- return w(l) === s;
736
+ return S(l) === a;
718
737
  }, K.isSuspense = function(l) {
719
- return w(l) === d;
738
+ return S(l) === d;
720
739
  }, K.isValidElementType = function(l) {
721
- return typeof l == "string" || typeof l == "function" || l === r || l === v || l === o || l === s || l === d || l === y || typeof l == "object" && l !== null && (l.$$typeof === T || l.$$typeof === p || l.$$typeof === c || l.$$typeof === g || l.$$typeof === m || l.$$typeof === b || l.$$typeof === C || l.$$typeof === N || l.$$typeof === h);
722
- }, K.typeOf = w, K;
740
+ 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);
741
+ }, K.typeOf = S, K;
723
742
  }
724
743
  var Y = {};
725
744
  var je;
726
- function qt() {
745
+ function Yt() {
727
746
  return je || (je = 1, process.env.NODE_ENV !== "production" && (function() {
728
- 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, s = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, g = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, D = 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, h = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
729
- function w(E) {
747
+ 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;
748
+ function S(E) {
730
749
  return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
731
- E === r || E === v || E === o || E === s || E === d || E === y || typeof E == "object" && E !== null && (E.$$typeof === T || E.$$typeof === p || E.$$typeof === c || E.$$typeof === g || E.$$typeof === m || E.$$typeof === b || E.$$typeof === C || E.$$typeof === N || E.$$typeof === h);
750
+ 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);
732
751
  }
733
- function S(E) {
752
+ function D(E) {
734
753
  if (typeof E == "object" && E !== null) {
735
754
  var te = E.$$typeof;
736
755
  switch (te) {
737
756
  case i:
738
757
  var fe = E.type;
739
758
  switch (fe) {
740
- case D:
759
+ case C:
741
760
  case v:
742
761
  case r:
743
762
  case o:
744
- case s:
763
+ case a:
745
764
  case d:
746
765
  return fe;
747
766
  default:
748
767
  var Oe = fe && fe.$$typeof;
749
768
  switch (Oe) {
750
- case g:
769
+ case h:
751
770
  case m:
752
771
  case T:
753
772
  case p:
@@ -762,55 +781,55 @@ function qt() {
762
781
  }
763
782
  }
764
783
  }
765
- var l = D, M = v, a = g, f = c, u = i, _ = m, R = r, z = T, X = p, V = t, Q = o, H = s, ee = d, ie = !1;
784
+ var l = C, M = v, s = h, f = c, u = i, _ = m, W = r, z = T, X = p, V = t, Q = o, H = a, ee = d, ie = !1;
766
785
  function le(E) {
767
- 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) || S(E) === D;
786
+ 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;
768
787
  }
769
788
  function x(E) {
770
- return S(E) === v;
789
+ return D(E) === v;
771
790
  }
772
791
  function P(E) {
773
- return S(E) === g;
792
+ return D(E) === h;
774
793
  }
775
794
  function j(E) {
776
- return S(E) === c;
795
+ return D(E) === c;
777
796
  }
778
797
  function O(E) {
779
798
  return typeof E == "object" && E !== null && E.$$typeof === i;
780
799
  }
781
- function W(E) {
782
- return S(E) === m;
800
+ function R(E) {
801
+ return D(E) === m;
783
802
  }
784
803
  function A(E) {
785
- return S(E) === r;
804
+ return D(E) === r;
786
805
  }
787
806
  function I(E) {
788
- return S(E) === T;
807
+ return D(E) === T;
789
808
  }
790
809
  function k(E) {
791
- return S(E) === p;
810
+ return D(E) === p;
792
811
  }
793
812
  function L(E) {
794
- return S(E) === t;
813
+ return D(E) === t;
795
814
  }
796
- function U(E) {
797
- return S(E) === o;
815
+ function F(E) {
816
+ return D(E) === o;
798
817
  }
799
818
  function q(E) {
800
- return S(E) === s;
819
+ return D(E) === a;
801
820
  }
802
821
  function Z(E) {
803
- return S(E) === d;
822
+ return D(E) === d;
804
823
  }
805
- Y.AsyncMode = l, Y.ConcurrentMode = M, Y.ContextConsumer = a, 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 = U, Y.isStrictMode = q, Y.isSuspense = Z, Y.isValidElementType = w, Y.typeOf = S;
824
+ Y.AsyncMode = l, Y.ConcurrentMode = M, Y.ContextConsumer = s, Y.ContextProvider = f, Y.Element = u, Y.ForwardRef = _, Y.Fragment = W, 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 = R, 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;
806
825
  })()), Y;
807
826
  }
808
827
  var Ae;
809
828
  function ct() {
810
- return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? ge.exports = Lt() : ge.exports = qt()), ge.exports;
829
+ return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? ge.exports = Kt() : ge.exports = Yt()), ge.exports;
811
830
  }
812
831
  var Se, Le;
813
- function Kt() {
832
+ function Ft() {
814
833
  if (Le) return Se;
815
834
  Le = 1;
816
835
  var e = Object.getOwnPropertySymbols, i = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
@@ -819,19 +838,19 @@ function Kt() {
819
838
  throw new TypeError("Object.assign cannot be called with null or undefined");
820
839
  return Object(o);
821
840
  }
822
- function s() {
841
+ function a() {
823
842
  try {
824
843
  if (!Object.assign)
825
844
  return !1;
826
845
  var o = new String("abc");
827
846
  if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
828
847
  return !1;
829
- for (var c = {}, g = 0; g < 10; g++)
830
- c["_" + String.fromCharCode(g)] = g;
831
- var D = Object.getOwnPropertyNames(c).map(function(m) {
848
+ for (var c = {}, h = 0; h < 10; h++)
849
+ c["_" + String.fromCharCode(h)] = h;
850
+ var C = Object.getOwnPropertyNames(c).map(function(m) {
832
851
  return c[m];
833
852
  });
834
- if (D.join("") !== "0123456789")
853
+ if (C.join("") !== "0123456789")
835
854
  return !1;
836
855
  var v = {};
837
856
  return "abcdefghijklmnopqrst".split("").forEach(function(m) {
@@ -841,22 +860,22 @@ function Kt() {
841
860
  return !1;
842
861
  }
843
862
  }
844
- return Se = s() ? Object.assign : function(o, c) {
845
- for (var g, D = r(o), v, m = 1; m < arguments.length; m++) {
846
- g = Object(arguments[m]);
847
- for (var d in g)
848
- i.call(g, d) && (D[d] = g[d]);
863
+ return Se = a() ? Object.assign : function(o, c) {
864
+ for (var h, C = r(o), v, m = 1; m < arguments.length; m++) {
865
+ h = Object(arguments[m]);
866
+ for (var d in h)
867
+ i.call(h, d) && (C[d] = h[d]);
849
868
  if (e) {
850
- v = e(g);
869
+ v = e(h);
851
870
  for (var y = 0; y < v.length; y++)
852
- t.call(g, v[y]) && (D[v[y]] = g[v[y]]);
871
+ t.call(h, v[y]) && (C[v[y]] = h[v[y]]);
853
872
  }
854
873
  }
855
- return D;
874
+ return C;
856
875
  }, Se;
857
876
  }
858
877
  var De, qe;
859
- function Re() {
878
+ function We() {
860
879
  if (qe) return De;
861
880
  qe = 1;
862
881
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
@@ -867,13 +886,13 @@ function dt() {
867
886
  return Ke || (Ke = 1, Te = Function.call.bind(Object.prototype.hasOwnProperty)), Te;
868
887
  }
869
888
  var Ne, Ye;
870
- function Yt() {
889
+ function Ut() {
871
890
  if (Ye) return Ne;
872
891
  Ye = 1;
873
892
  var e = function() {
874
893
  };
875
894
  if (process.env.NODE_ENV !== "production") {
876
- var i = /* @__PURE__ */ Re(), t = {}, r = /* @__PURE__ */ dt();
895
+ var i = /* @__PURE__ */ We(), t = {}, r = /* @__PURE__ */ dt();
877
896
  e = function(o) {
878
897
  var c = "Warning: " + o;
879
898
  typeof console < "u" && console.error(c);
@@ -883,7 +902,7 @@ function Yt() {
883
902
  }
884
903
  };
885
904
  }
886
- function s(o, c, g, D, v) {
905
+ function a(o, c, h, C, v) {
887
906
  if (process.env.NODE_ENV !== "production") {
888
907
  for (var m in o)
889
908
  if (r(o, m)) {
@@ -891,48 +910,48 @@ function Yt() {
891
910
  try {
892
911
  if (typeof o[m] != "function") {
893
912
  var y = Error(
894
- (D || "React class") + ": " + g + " 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`."
913
+ (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`."
895
914
  );
896
915
  throw y.name = "Invariant Violation", y;
897
916
  }
898
- d = o[m](c, m, D, g, null, i);
917
+ d = o[m](c, m, C, h, null, i);
899
918
  } catch (T) {
900
919
  d = T;
901
920
  }
902
921
  if (d && !(d instanceof Error) && e(
903
- (D || "React class") + ": type specification of " + g + " `" + 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)."
922
+ (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)."
904
923
  ), d instanceof Error && !(d.message in t)) {
905
924
  t[d.message] = !0;
906
925
  var p = v ? v() : "";
907
926
  e(
908
- "Failed " + g + " type: " + d.message + (p ?? "")
927
+ "Failed " + h + " type: " + d.message + (p ?? "")
909
928
  );
910
929
  }
911
930
  }
912
931
  }
913
932
  }
914
- return s.resetWarningCache = function() {
933
+ return a.resetWarningCache = function() {
915
934
  process.env.NODE_ENV !== "production" && (t = {});
916
- }, Ne = s, Ne;
935
+ }, Ne = a, Ne;
917
936
  }
918
- var Ee, Ue;
919
- function Ut() {
920
- if (Ue) return Ee;
921
- Ue = 1;
922
- var e = ct(), i = Kt(), t = /* @__PURE__ */ Re(), r = /* @__PURE__ */ dt(), s = /* @__PURE__ */ Yt(), o = function() {
937
+ var Ee, Fe;
938
+ function Bt() {
939
+ if (Fe) return Ee;
940
+ Fe = 1;
941
+ var e = ct(), i = Ft(), t = /* @__PURE__ */ We(), r = /* @__PURE__ */ dt(), a = /* @__PURE__ */ Ut(), o = function() {
923
942
  };
924
- process.env.NODE_ENV !== "production" && (o = function(g) {
925
- var D = "Warning: " + g;
926
- typeof console < "u" && console.error(D);
943
+ process.env.NODE_ENV !== "production" && (o = function(h) {
944
+ var C = "Warning: " + h;
945
+ typeof console < "u" && console.error(C);
927
946
  try {
928
- throw new Error(D);
947
+ throw new Error(C);
929
948
  } catch {
930
949
  }
931
950
  });
932
951
  function c() {
933
952
  return null;
934
953
  }
935
- return Ee = function(g, D) {
954
+ return Ee = function(h, C) {
936
955
  var v = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
937
956
  function d(x) {
938
957
  var P = x && (v && x[v] || x[m]);
@@ -940,22 +959,22 @@ function Ut() {
940
959
  return P;
941
960
  }
942
961
  var y = "<<anonymous>>", p = {
943
- array: C("array"),
944
- bigint: C("bigint"),
945
- bool: C("boolean"),
946
- func: C("function"),
947
- number: C("number"),
948
- object: C("object"),
949
- string: C("string"),
950
- symbol: C("symbol"),
962
+ array: w("array"),
963
+ bigint: w("bigint"),
964
+ bool: w("boolean"),
965
+ func: w("function"),
966
+ number: w("number"),
967
+ object: w("object"),
968
+ string: w("string"),
969
+ symbol: w("symbol"),
951
970
  any: N(),
952
- arrayOf: w,
953
- element: S(),
971
+ arrayOf: S,
972
+ element: D(),
954
973
  elementType: l(),
955
974
  instanceOf: M,
956
975
  node: _(),
957
976
  objectOf: f,
958
- oneOf: a,
977
+ oneOf: s,
959
978
  oneOfType: u,
960
979
  shape: z,
961
980
  exact: X
@@ -963,16 +982,16 @@ function Ut() {
963
982
  function T(x, P) {
964
983
  return x === P ? x !== 0 || 1 / x === 1 / P : x !== x && P !== P;
965
984
  }
966
- function h(x, P) {
985
+ function g(x, P) {
967
986
  this.message = x, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
968
987
  }
969
- h.prototype = Error.prototype;
988
+ g.prototype = Error.prototype;
970
989
  function b(x) {
971
990
  if (process.env.NODE_ENV !== "production")
972
991
  var P = {}, j = 0;
973
- function O(A, I, k, L, U, q, Z) {
992
+ function O(A, I, k, L, F, q, Z) {
974
993
  if (L = L || y, q = q || k, Z !== t) {
975
- if (D) {
994
+ if (C) {
976
995
  var E = new Error(
977
996
  "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"
978
997
  );
@@ -985,18 +1004,18 @@ function Ut() {
985
1004
  ), P[te] = !0, j++);
986
1005
  }
987
1006
  }
988
- return I[k] == null ? A ? I[k] === null ? new h("The " + U + " `" + q + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new h("The " + U + " `" + q + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : x(I, k, L, U, q);
1007
+ 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);
989
1008
  }
990
- var W = O.bind(null, !1);
991
- return W.isRequired = O.bind(null, !0), W;
1009
+ var R = O.bind(null, !1);
1010
+ return R.isRequired = O.bind(null, !0), R;
992
1011
  }
993
- function C(x) {
994
- function P(j, O, W, A, I, k) {
995
- var L = j[O], U = H(L);
996
- if (U !== x) {
1012
+ function w(x) {
1013
+ function P(j, O, R, A, I, k) {
1014
+ var L = j[O], F = H(L);
1015
+ if (F !== x) {
997
1016
  var q = ee(L);
998
- return new h(
999
- "Invalid " + A + " `" + I + "` of type " + ("`" + q + "` supplied to `" + W + "`, expected ") + ("`" + x + "`."),
1017
+ return new g(
1018
+ "Invalid " + A + " `" + I + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected ") + ("`" + x + "`."),
1000
1019
  { expectedType: x }
1001
1020
  );
1002
1021
  }
@@ -1007,17 +1026,17 @@ function Ut() {
1007
1026
  function N() {
1008
1027
  return b(c);
1009
1028
  }
1010
- function w(x) {
1011
- function P(j, O, W, A, I) {
1029
+ function S(x) {
1030
+ function P(j, O, R, A, I) {
1012
1031
  if (typeof x != "function")
1013
- return new h("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
1032
+ return new g("Property `" + I + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
1014
1033
  var k = j[O];
1015
1034
  if (!Array.isArray(k)) {
1016
1035
  var L = H(k);
1017
- return new h("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an array."));
1036
+ return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected an array."));
1018
1037
  }
1019
- for (var U = 0; U < k.length; U++) {
1020
- var q = x(k, U, W, A, I + "[" + U + "]", t);
1038
+ for (var F = 0; F < k.length; F++) {
1039
+ var q = x(k, F, R, A, I + "[" + F + "]", t);
1021
1040
  if (q instanceof Error)
1022
1041
  return q;
1023
1042
  }
@@ -1025,65 +1044,65 @@ function Ut() {
1025
1044
  }
1026
1045
  return b(P);
1027
1046
  }
1028
- function S() {
1029
- function x(P, j, O, W, A) {
1047
+ function D() {
1048
+ function x(P, j, O, R, A) {
1030
1049
  var I = P[j];
1031
- if (!g(I)) {
1050
+ if (!h(I)) {
1032
1051
  var k = H(I);
1033
- return new h("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
1052
+ return new g("Invalid " + R + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
1034
1053
  }
1035
1054
  return null;
1036
1055
  }
1037
1056
  return b(x);
1038
1057
  }
1039
1058
  function l() {
1040
- function x(P, j, O, W, A) {
1059
+ function x(P, j, O, R, A) {
1041
1060
  var I = P[j];
1042
1061
  if (!e.isValidElementType(I)) {
1043
1062
  var k = H(I);
1044
- return new h("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
1063
+ return new g("Invalid " + R + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
1045
1064
  }
1046
1065
  return null;
1047
1066
  }
1048
1067
  return b(x);
1049
1068
  }
1050
1069
  function M(x) {
1051
- function P(j, O, W, A, I) {
1070
+ function P(j, O, R, A, I) {
1052
1071
  if (!(j[O] instanceof x)) {
1053
1072
  var k = x.name || y, L = le(j[O]);
1054
- return new h("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected ") + ("instance of `" + k + "`."));
1073
+ return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected ") + ("instance of `" + k + "`."));
1055
1074
  }
1056
1075
  return null;
1057
1076
  }
1058
1077
  return b(P);
1059
1078
  }
1060
- function a(x) {
1079
+ function s(x) {
1061
1080
  if (!Array.isArray(x))
1062
1081
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
1063
1082
  "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])."
1064
1083
  ) : o("Invalid argument supplied to oneOf, expected an array.")), c;
1065
- function P(j, O, W, A, I) {
1084
+ function P(j, O, R, A, I) {
1066
1085
  for (var k = j[O], L = 0; L < x.length; L++)
1067
1086
  if (T(k, x[L]))
1068
1087
  return null;
1069
- var U = JSON.stringify(x, function(Z, E) {
1088
+ var F = JSON.stringify(x, function(Z, E) {
1070
1089
  var te = ee(E);
1071
1090
  return te === "symbol" ? String(E) : E;
1072
1091
  });
1073
- return new h("Invalid " + A + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" + W + "`, expected one of " + U + "."));
1092
+ return new g("Invalid " + A + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" + R + "`, expected one of " + F + "."));
1074
1093
  }
1075
1094
  return b(P);
1076
1095
  }
1077
1096
  function f(x) {
1078
- function P(j, O, W, A, I) {
1097
+ function P(j, O, R, A, I) {
1079
1098
  if (typeof x != "function")
1080
- return new h("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
1099
+ return new g("Property `" + I + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
1081
1100
  var k = j[O], L = H(k);
1082
1101
  if (L !== "object")
1083
- return new h("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an object."));
1084
- for (var U in k)
1085
- if (r(k, U)) {
1086
- var q = x(k, U, W, A, I + "." + U, t);
1102
+ return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected an object."));
1103
+ for (var F in k)
1104
+ if (r(k, F)) {
1105
+ var q = x(k, F, R, A, I + "." + F, t);
1087
1106
  if (q instanceof Error)
1088
1107
  return q;
1089
1108
  }
@@ -1101,39 +1120,39 @@ function Ut() {
1101
1120
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(j) + " at index " + P + "."
1102
1121
  ), c;
1103
1122
  }
1104
- function O(W, A, I, k, L) {
1105
- for (var U = [], q = 0; q < x.length; q++) {
1106
- var Z = x[q], E = Z(W, A, I, k, L, t);
1123
+ function O(R, A, I, k, L) {
1124
+ for (var F = [], q = 0; q < x.length; q++) {
1125
+ var Z = x[q], E = Z(R, A, I, k, L, t);
1107
1126
  if (E == null)
1108
1127
  return null;
1109
- E.data && r(E.data, "expectedType") && U.push(E.data.expectedType);
1128
+ E.data && r(E.data, "expectedType") && F.push(E.data.expectedType);
1110
1129
  }
1111
- var te = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
1112
- return new h("Invalid " + k + " `" + L + "` supplied to " + ("`" + I + "`" + te + "."));
1130
+ var te = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
1131
+ return new g("Invalid " + k + " `" + L + "` supplied to " + ("`" + I + "`" + te + "."));
1113
1132
  }
1114
1133
  return b(O);
1115
1134
  }
1116
1135
  function _() {
1117
- function x(P, j, O, W, A) {
1118
- return V(P[j]) ? null : new h("Invalid " + W + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1136
+ function x(P, j, O, R, A) {
1137
+ return V(P[j]) ? null : new g("Invalid " + R + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1119
1138
  }
1120
1139
  return b(x);
1121
1140
  }
1122
- function R(x, P, j, O, W) {
1123
- return new h(
1124
- (x || "React class") + ": " + P + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
1141
+ function W(x, P, j, O, R) {
1142
+ return new g(
1143
+ (x || "React class") + ": " + P + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
1125
1144
  );
1126
1145
  }
1127
1146
  function z(x) {
1128
- function P(j, O, W, A, I) {
1147
+ function P(j, O, R, A, I) {
1129
1148
  var k = j[O], L = H(k);
1130
1149
  if (L !== "object")
1131
- return new h("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
1132
- for (var U in x) {
1133
- var q = x[U];
1150
+ return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + R + "`, expected `object`."));
1151
+ for (var F in x) {
1152
+ var q = x[F];
1134
1153
  if (typeof q != "function")
1135
- return R(W, A, I, U, ee(q));
1136
- var Z = q(k, U, W, A, I + "." + U, t);
1154
+ return W(R, A, I, F, ee(q));
1155
+ var Z = q(k, F, R, A, I + "." + F, t);
1137
1156
  if (Z)
1138
1157
  return Z;
1139
1158
  }
@@ -1142,21 +1161,21 @@ function Ut() {
1142
1161
  return b(P);
1143
1162
  }
1144
1163
  function X(x) {
1145
- function P(j, O, W, A, I) {
1164
+ function P(j, O, R, A, I) {
1146
1165
  var k = j[O], L = H(k);
1147
1166
  if (L !== "object")
1148
- return new h("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
1149
- var U = i({}, j[O], x);
1150
- for (var q in U) {
1167
+ return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + R + "`, expected `object`."));
1168
+ var F = i({}, j[O], x);
1169
+ for (var q in F) {
1151
1170
  var Z = x[q];
1152
1171
  if (r(x, q) && typeof Z != "function")
1153
- return R(W, A, I, q, ee(Z));
1172
+ return W(R, A, I, q, ee(Z));
1154
1173
  if (!Z)
1155
- return new h(
1156
- "Invalid " + A + " `" + I + "` key `" + q + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
1174
+ return new g(
1175
+ "Invalid " + A + " `" + I + "` key `" + q + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
1157
1176
  Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1158
1177
  );
1159
- var E = Z(k, q, W, A, I + "." + q, t);
1178
+ var E = Z(k, q, R, A, I + "." + q, t);
1160
1179
  if (E)
1161
1180
  return E;
1162
1181
  }
@@ -1175,7 +1194,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1175
1194
  case "object":
1176
1195
  if (Array.isArray(x))
1177
1196
  return x.every(V);
1178
- if (x === null || g(x))
1197
+ if (x === null || h(x))
1179
1198
  return !0;
1180
1199
  var P = d(x);
1181
1200
  if (P) {
@@ -1186,8 +1205,8 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1186
1205
  return !1;
1187
1206
  } else
1188
1207
  for (; !(O = j.next()).done; ) {
1189
- var W = O.value;
1190
- if (W && !V(W[1]))
1208
+ var R = O.value;
1209
+ if (R && !V(R[1]))
1191
1210
  return !1;
1192
1211
  }
1193
1212
  } else
@@ -1233,20 +1252,20 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1233
1252
  function le(x) {
1234
1253
  return !x.constructor || !x.constructor.name ? y : x.constructor.name;
1235
1254
  }
1236
- return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
1255
+ return p.checkPropTypes = a, p.resetWarningCache = a.resetWarningCache, p.PropTypes = p, p;
1237
1256
  }, Ee;
1238
1257
  }
1239
- var _e, Fe;
1240
- function Ft() {
1241
- if (Fe) return _e;
1242
- Fe = 1;
1243
- var e = /* @__PURE__ */ Re();
1258
+ var _e, Ue;
1259
+ function Ht() {
1260
+ if (Ue) return _e;
1261
+ Ue = 1;
1262
+ var e = /* @__PURE__ */ We();
1244
1263
  function i() {
1245
1264
  }
1246
1265
  function t() {
1247
1266
  }
1248
1267
  return t.resetWarningCache = i, _e = function() {
1249
- function r(c, g, D, v, m, d) {
1268
+ function r(c, h, C, v, m, d) {
1250
1269
  if (d !== e) {
1251
1270
  var y = new Error(
1252
1271
  "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"
@@ -1255,7 +1274,7 @@ function Ft() {
1255
1274
  }
1256
1275
  }
1257
1276
  r.isRequired = r;
1258
- function s() {
1277
+ function a() {
1259
1278
  return r;
1260
1279
  }
1261
1280
  var o = {
@@ -1268,16 +1287,16 @@ function Ft() {
1268
1287
  string: r,
1269
1288
  symbol: r,
1270
1289
  any: r,
1271
- arrayOf: s,
1290
+ arrayOf: a,
1272
1291
  element: r,
1273
1292
  elementType: r,
1274
- instanceOf: s,
1293
+ instanceOf: a,
1275
1294
  node: r,
1276
- objectOf: s,
1277
- oneOf: s,
1278
- oneOfType: s,
1279
- shape: s,
1280
- exact: s,
1295
+ objectOf: a,
1296
+ oneOf: a,
1297
+ oneOfType: a,
1298
+ shape: a,
1299
+ exact: a,
1281
1300
  checkPropTypes: t,
1282
1301
  resetWarningCache: i
1283
1302
  };
@@ -1289,39 +1308,39 @@ function ut() {
1289
1308
  if (Be) return he.exports;
1290
1309
  if (Be = 1, process.env.NODE_ENV !== "production") {
1291
1310
  var e = ct(), i = !0;
1292
- he.exports = /* @__PURE__ */ Ut()(e.isElement, i);
1311
+ he.exports = /* @__PURE__ */ Bt()(e.isElement, i);
1293
1312
  } else
1294
- he.exports = /* @__PURE__ */ Ft()();
1313
+ he.exports = /* @__PURE__ */ Ht()();
1295
1314
  return he.exports;
1296
1315
  }
1297
1316
  var me = { exports: {} }, He;
1298
- function Bt() {
1317
+ function zt() {
1299
1318
  if (He) return me.exports;
1300
1319
  He = 1;
1301
1320
  function e(t) {
1302
- var r, s, o = "";
1321
+ var r, a, o = "";
1303
1322
  if (typeof t == "string" || typeof t == "number") o += t;
1304
1323
  else if (typeof t == "object") if (Array.isArray(t)) {
1305
1324
  var c = t.length;
1306
- for (r = 0; r < c; r++) t[r] && (s = e(t[r])) && (o && (o += " "), o += s);
1307
- } else for (s in t) t[s] && (o && (o += " "), o += s);
1325
+ for (r = 0; r < c; r++) t[r] && (a = e(t[r])) && (o && (o += " "), o += a);
1326
+ } else for (a in t) t[a] && (o && (o += " "), o += a);
1308
1327
  return o;
1309
1328
  }
1310
1329
  function i() {
1311
- for (var t, r, s = 0, o = "", c = arguments.length; s < c; s++) (t = arguments[s]) && (r = e(t)) && (o && (o += " "), o += r);
1330
+ for (var t, r, a = 0, o = "", c = arguments.length; a < c; a++) (t = arguments[a]) && (r = e(t)) && (o && (o += " "), o += r);
1312
1331
  return o;
1313
1332
  }
1314
1333
  return me.exports = i, me.exports.clsx = i, me.exports;
1315
1334
  }
1316
- var F = {}, re = {}, ze;
1335
+ var U = {}, re = {}, ze;
1317
1336
  function ve() {
1318
1337
  if (ze) return re;
1319
1338
  ze = 1, Object.defineProperty(re, "__esModule", {
1320
1339
  value: !0
1321
- }), re.dontSetMe = s, re.findInArray = e, re.int = r, re.isFunction = i, re.isNum = t;
1340
+ }), re.dontSetMe = a, re.findInArray = e, re.int = r, re.isFunction = i, re.isNum = t;
1322
1341
  function e(o, c) {
1323
- for (let g = 0, D = o.length; g < D; g++)
1324
- if (c.apply(c, [o[g], g, o])) return o[g];
1342
+ for (let h = 0, C = o.length; h < C; h++)
1343
+ if (c.apply(c, [o[h], h, o])) return o[h];
1325
1344
  }
1326
1345
  function i(o) {
1327
1346
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
@@ -1332,14 +1351,14 @@ function ve() {
1332
1351
  function r(o) {
1333
1352
  return parseInt(o, 10);
1334
1353
  }
1335
- function s(o, c, g) {
1354
+ function a(o, c, h) {
1336
1355
  if (o[c])
1337
- return new Error(`Invalid prop ${c} passed to ${g} - do not set this, set it on the child.`);
1356
+ return new Error(`Invalid prop ${c} passed to ${h} - do not set this, set it on the child.`);
1338
1357
  }
1339
1358
  return re;
1340
1359
  }
1341
1360
  var oe = {}, Xe;
1342
- function Ht() {
1361
+ function Xt() {
1343
1362
  if (Xe) return oe;
1344
1363
  Xe = 1, Object.defineProperty(oe, "__esModule", {
1345
1364
  value: !0
@@ -1350,201 +1369,201 @@ function Ht() {
1350
1369
  if (typeof window > "u") return "";
1351
1370
  const c = window.document?.documentElement?.style;
1352
1371
  if (!c || o in c) return "";
1353
- for (let g = 0; g < e.length; g++)
1354
- if (t(o, e[g]) in c) return e[g];
1372
+ for (let h = 0; h < e.length; h++)
1373
+ if (t(o, e[h]) in c) return e[h];
1355
1374
  return "";
1356
1375
  }
1357
1376
  function t(o, c) {
1358
- return c ? `${c}${s(o)}` : o;
1377
+ return c ? `${c}${a(o)}` : o;
1359
1378
  }
1360
1379
  function r(o, c) {
1361
1380
  return c ? `-${c.toLowerCase()}-${o}` : o;
1362
1381
  }
1363
- function s(o) {
1364
- let c = "", g = !0;
1365
- for (let D = 0; D < o.length; D++)
1366
- g ? (c += o[D].toUpperCase(), g = !1) : o[D] === "-" ? g = !0 : c += o[D];
1382
+ function a(o) {
1383
+ let c = "", h = !0;
1384
+ for (let C = 0; C < o.length; C++)
1385
+ h ? (c += o[C].toUpperCase(), h = !1) : o[C] === "-" ? h = !0 : c += o[C];
1367
1386
  return c;
1368
1387
  }
1369
1388
  return oe.default = i(), oe;
1370
1389
  }
1371
1390
  var Ve;
1372
- function We() {
1373
- if (Ve) return F;
1374
- Ve = 1, Object.defineProperty(F, "__esModule", {
1391
+ function Re() {
1392
+ if (Ve) return U;
1393
+ Ve = 1, Object.defineProperty(U, "__esModule", {
1375
1394
  value: !0
1376
- }), F.addClassName = l, F.addEvent = c, F.addUserSelectStyles = N, F.createCSSTransform = p, F.createSVGTransform = T, F.getTouch = b, F.getTouchIdentifier = C, F.getTranslation = h, F.innerHeight = m, F.innerWidth = d, F.matchesSelector = s, F.matchesSelectorAndParentsTo = o, F.offsetXYFromParent = y, F.outerHeight = D, F.outerWidth = v, F.removeClassName = M, F.removeEvent = g, F.scheduleRemoveUserSelectStyles = w;
1377
- var e = ve(), i = t(Ht());
1378
- function t(a, f) {
1395
+ }), U.addClassName = l, U.addEvent = c, U.addUserSelectStyles = N, U.createCSSTransform = p, U.createSVGTransform = T, U.getTouch = b, U.getTouchIdentifier = w, U.getTranslation = g, U.innerHeight = m, U.innerWidth = d, U.matchesSelector = a, U.matchesSelectorAndParentsTo = o, U.offsetXYFromParent = y, U.outerHeight = C, U.outerWidth = v, U.removeClassName = M, U.removeEvent = h, U.scheduleRemoveUserSelectStyles = S;
1396
+ var e = ve(), i = t(Xt());
1397
+ function t(s, f) {
1379
1398
  if (typeof WeakMap == "function") var u = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
1380
- return (t = function(R, z) {
1381
- if (!z && R && R.__esModule) return R;
1382
- var X, V, Q = { __proto__: null, default: R };
1383
- if (R === null || typeof R != "object" && typeof R != "function") return Q;
1399
+ return (t = function(W, z) {
1400
+ if (!z && W && W.__esModule) return W;
1401
+ var X, V, Q = { __proto__: null, default: W };
1402
+ if (W === null || typeof W != "object" && typeof W != "function") return Q;
1384
1403
  if (X = z ? _ : u) {
1385
- if (X.has(R)) return X.get(R);
1386
- X.set(R, Q);
1404
+ if (X.has(W)) return X.get(W);
1405
+ X.set(W, Q);
1387
1406
  }
1388
- 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]);
1407
+ for (const H in W) H !== "default" && {}.hasOwnProperty.call(W, H) && ((V = (X = Object.defineProperty) && Object.getOwnPropertyDescriptor(W, H)) && (V.get || V.set) ? X(Q, H, V) : Q[H] = W[H]);
1389
1408
  return Q;
1390
- })(a, f);
1409
+ })(s, f);
1391
1410
  }
1392
1411
  let r = "";
1393
- function s(a, f) {
1412
+ function a(s, f) {
1394
1413
  return r || (r = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(u) {
1395
- return (0, e.isFunction)(a[u]);
1396
- })), (0, e.isFunction)(a[r]) ? a[r](f) : !1;
1414
+ return (0, e.isFunction)(s[u]);
1415
+ })), (0, e.isFunction)(s[r]) ? s[r](f) : !1;
1397
1416
  }
1398
- function o(a, f, u) {
1399
- let _ = a;
1417
+ function o(s, f, u) {
1418
+ let _ = s;
1400
1419
  do {
1401
- if (s(_, f)) return !0;
1420
+ if (a(_, f)) return !0;
1402
1421
  if (_ === u) return !1;
1403
1422
  _ = _.parentNode;
1404
1423
  } while (_);
1405
1424
  return !1;
1406
1425
  }
1407
- function c(a, f, u, _) {
1408
- if (!a) return;
1409
- const R = {
1426
+ function c(s, f, u, _) {
1427
+ if (!s) return;
1428
+ const W = {
1410
1429
  capture: !0,
1411
1430
  ..._
1412
1431
  };
1413
- a.addEventListener ? a.addEventListener(f, u, R) : a.attachEvent ? a.attachEvent("on" + f, u) : a["on" + f] = u;
1432
+ s.addEventListener ? s.addEventListener(f, u, W) : s.attachEvent ? s.attachEvent("on" + f, u) : s["on" + f] = u;
1414
1433
  }
1415
- function g(a, f, u, _) {
1416
- if (!a) return;
1417
- const R = {
1434
+ function h(s, f, u, _) {
1435
+ if (!s) return;
1436
+ const W = {
1418
1437
  capture: !0,
1419
1438
  ..._
1420
1439
  };
1421
- a.removeEventListener ? a.removeEventListener(f, u, R) : a.detachEvent ? a.detachEvent("on" + f, u) : a["on" + f] = null;
1440
+ s.removeEventListener ? s.removeEventListener(f, u, W) : s.detachEvent ? s.detachEvent("on" + f, u) : s["on" + f] = null;
1422
1441
  }
1423
- function D(a) {
1424
- let f = a.clientHeight;
1425
- const u = a.ownerDocument.defaultView.getComputedStyle(a);
1442
+ function C(s) {
1443
+ let f = s.clientHeight;
1444
+ const u = s.ownerDocument.defaultView.getComputedStyle(s);
1426
1445
  return f += (0, e.int)(u.borderTopWidth), f += (0, e.int)(u.borderBottomWidth), f;
1427
1446
  }
1428
- function v(a) {
1429
- let f = a.clientWidth;
1430
- const u = a.ownerDocument.defaultView.getComputedStyle(a);
1447
+ function v(s) {
1448
+ let f = s.clientWidth;
1449
+ const u = s.ownerDocument.defaultView.getComputedStyle(s);
1431
1450
  return f += (0, e.int)(u.borderLeftWidth), f += (0, e.int)(u.borderRightWidth), f;
1432
1451
  }
1433
- function m(a) {
1434
- let f = a.clientHeight;
1435
- const u = a.ownerDocument.defaultView.getComputedStyle(a);
1452
+ function m(s) {
1453
+ let f = s.clientHeight;
1454
+ const u = s.ownerDocument.defaultView.getComputedStyle(s);
1436
1455
  return f -= (0, e.int)(u.paddingTop), f -= (0, e.int)(u.paddingBottom), f;
1437
1456
  }
1438
- function d(a) {
1439
- let f = a.clientWidth;
1440
- const u = a.ownerDocument.defaultView.getComputedStyle(a);
1457
+ function d(s) {
1458
+ let f = s.clientWidth;
1459
+ const u = s.ownerDocument.defaultView.getComputedStyle(s);
1441
1460
  return f -= (0, e.int)(u.paddingLeft), f -= (0, e.int)(u.paddingRight), f;
1442
1461
  }
1443
- function y(a, f, u) {
1444
- const R = f === f.ownerDocument.body ? {
1462
+ function y(s, f, u) {
1463
+ const W = f === f.ownerDocument.body ? {
1445
1464
  left: 0,
1446
1465
  top: 0
1447
- } : f.getBoundingClientRect(), z = (a.clientX + f.scrollLeft - R.left) / u, X = (a.clientY + f.scrollTop - R.top) / u;
1466
+ } : f.getBoundingClientRect(), z = (s.clientX + f.scrollLeft - W.left) / u, X = (s.clientY + f.scrollTop - W.top) / u;
1448
1467
  return {
1449
1468
  x: z,
1450
1469
  y: X
1451
1470
  };
1452
1471
  }
1453
- function p(a, f) {
1454
- const u = h(a, f, "px");
1472
+ function p(s, f) {
1473
+ const u = g(s, f, "px");
1455
1474
  return {
1456
1475
  [(0, i.browserPrefixToKey)("transform", i.default)]: u
1457
1476
  };
1458
1477
  }
1459
- function T(a, f) {
1460
- return h(a, f, "");
1478
+ function T(s, f) {
1479
+ return g(s, f, "");
1461
1480
  }
1462
- function h(a, f, u) {
1481
+ function g(s, f, u) {
1463
1482
  let {
1464
1483
  x: _,
1465
- y: R
1466
- } = a, z = `translate(${_}${u},${R}${u})`;
1484
+ y: W
1485
+ } = s, z = `translate(${_}${u},${W}${u})`;
1467
1486
  if (f) {
1468
1487
  const X = `${typeof f.x == "string" ? f.x : f.x + u}`, V = `${typeof f.y == "string" ? f.y : f.y + u}`;
1469
1488
  z = `translate(${X}, ${V})` + z;
1470
1489
  }
1471
1490
  return z;
1472
1491
  }
1473
- function b(a, f) {
1474
- return a.targetTouches && (0, e.findInArray)(a.targetTouches, (u) => f === u.identifier) || a.changedTouches && (0, e.findInArray)(a.changedTouches, (u) => f === u.identifier);
1492
+ function b(s, f) {
1493
+ return s.targetTouches && (0, e.findInArray)(s.targetTouches, (u) => f === u.identifier) || s.changedTouches && (0, e.findInArray)(s.changedTouches, (u) => f === u.identifier);
1475
1494
  }
1476
- function C(a) {
1477
- if (a.targetTouches && a.targetTouches[0]) return a.targetTouches[0].identifier;
1478
- if (a.changedTouches && a.changedTouches[0]) return a.changedTouches[0].identifier;
1495
+ function w(s) {
1496
+ if (s.targetTouches && s.targetTouches[0]) return s.targetTouches[0].identifier;
1497
+ if (s.changedTouches && s.changedTouches[0]) return s.changedTouches[0].identifier;
1479
1498
  }
1480
- function N(a) {
1481
- if (!a) return;
1482
- let f = a.getElementById("react-draggable-style-el");
1483
- f || (f = a.createElement("style"), f.type = "text/css", f.id = "react-draggable-style-el", f.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1499
+ function N(s) {
1500
+ if (!s) return;
1501
+ let f = s.getElementById("react-draggable-style-el");
1502
+ 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;}
1484
1503
  `, f.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
1485
- `, a.getElementsByTagName("head")[0].appendChild(f)), a.body && l(a.body, "react-draggable-transparent-selection");
1504
+ `, s.getElementsByTagName("head")[0].appendChild(f)), s.body && l(s.body, "react-draggable-transparent-selection");
1486
1505
  }
1487
- function w(a) {
1506
+ function S(s) {
1488
1507
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
1489
- S(a);
1490
- }) : S(a);
1508
+ D(s);
1509
+ }) : D(s);
1491
1510
  }
1492
- function S(a) {
1493
- if (a)
1511
+ function D(s) {
1512
+ if (s)
1494
1513
  try {
1495
- if (a.body && M(a.body, "react-draggable-transparent-selection"), a.selection)
1496
- a.selection.empty();
1514
+ if (s.body && M(s.body, "react-draggable-transparent-selection"), s.selection)
1515
+ s.selection.empty();
1497
1516
  else {
1498
- const f = (a.defaultView || window).getSelection();
1517
+ const f = (s.defaultView || window).getSelection();
1499
1518
  f && f.type !== "Caret" && f.removeAllRanges();
1500
1519
  }
1501
1520
  } catch {
1502
1521
  }
1503
1522
  }
1504
- function l(a, f) {
1505
- a.classList ? a.classList.add(f) : a.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (a.className += ` ${f}`);
1523
+ function l(s, f) {
1524
+ s.classList ? s.classList.add(f) : s.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (s.className += ` ${f}`);
1506
1525
  }
1507
- function M(a, f) {
1508
- a.classList ? a.classList.remove(f) : a.className = a.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1526
+ function M(s, f) {
1527
+ s.classList ? s.classList.remove(f) : s.className = s.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1509
1528
  }
1510
- return F;
1529
+ return U;
1511
1530
  }
1512
1531
  var ne = {}, Ge;
1513
1532
  function ft() {
1514
1533
  if (Ge) return ne;
1515
1534
  Ge = 1, Object.defineProperty(ne, "__esModule", {
1516
1535
  value: !0
1517
- }), ne.canDragX = s, ne.canDragY = o, ne.createCoreData = g, ne.createDraggableData = D, ne.getBoundPosition = t, ne.getControlPosition = c, ne.snapToGrid = r;
1518
- var e = ve(), i = We();
1536
+ }), ne.canDragX = a, ne.canDragY = o, ne.createCoreData = h, ne.createDraggableData = C, ne.getBoundPosition = t, ne.getControlPosition = c, ne.snapToGrid = r;
1537
+ var e = ve(), i = Re();
1519
1538
  function t(d, y, p) {
1520
1539
  if (!d.props.bounds) return [y, p];
1521
1540
  let {
1522
1541
  bounds: T
1523
1542
  } = d.props;
1524
1543
  T = typeof T == "string" ? T : v(T);
1525
- const h = m(d);
1544
+ const g = m(d);
1526
1545
  if (typeof T == "string") {
1527
1546
  const {
1528
1547
  ownerDocument: b
1529
- } = h, C = b.defaultView;
1548
+ } = g, w = b.defaultView;
1530
1549
  let N;
1531
- if (T === "parent" ? N = h.parentNode : N = h.getRootNode().querySelector(T), !(N instanceof C.HTMLElement))
1550
+ if (T === "parent" ? N = g.parentNode : N = g.getRootNode().querySelector(T), !(N instanceof w.HTMLElement))
1532
1551
  throw new Error('Bounds selector "' + T + '" could not find an element.');
1533
- const w = N, S = C.getComputedStyle(h), l = C.getComputedStyle(w);
1552
+ const S = N, D = w.getComputedStyle(g), l = w.getComputedStyle(S);
1534
1553
  T = {
1535
- left: -h.offsetLeft + (0, e.int)(l.paddingLeft) + (0, e.int)(S.marginLeft),
1536
- top: -h.offsetTop + (0, e.int)(l.paddingTop) + (0, e.int)(S.marginTop),
1537
- right: (0, i.innerWidth)(w) - (0, i.outerWidth)(h) - h.offsetLeft + (0, e.int)(l.paddingRight) - (0, e.int)(S.marginRight),
1538
- bottom: (0, i.innerHeight)(w) - (0, i.outerHeight)(h) - h.offsetTop + (0, e.int)(l.paddingBottom) - (0, e.int)(S.marginBottom)
1554
+ left: -g.offsetLeft + (0, e.int)(l.paddingLeft) + (0, e.int)(D.marginLeft),
1555
+ top: -g.offsetTop + (0, e.int)(l.paddingTop) + (0, e.int)(D.marginTop),
1556
+ right: (0, i.innerWidth)(S) - (0, i.outerWidth)(g) - g.offsetLeft + (0, e.int)(l.paddingRight) - (0, e.int)(D.marginRight),
1557
+ bottom: (0, i.innerHeight)(S) - (0, i.outerHeight)(g) - g.offsetTop + (0, e.int)(l.paddingBottom) - (0, e.int)(D.marginBottom)
1539
1558
  };
1540
1559
  }
1541
1560
  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];
1542
1561
  }
1543
1562
  function r(d, y, p) {
1544
- const T = Math.round(y / d[0]) * d[0], h = Math.round(p / d[1]) * d[1];
1545
- return [T, h];
1563
+ const T = Math.round(y / d[0]) * d[0], g = Math.round(p / d[1]) * d[1];
1564
+ return [T, g];
1546
1565
  }
1547
- function s(d) {
1566
+ function a(d) {
1548
1567
  return d.props.axis === "both" || d.props.axis === "x";
1549
1568
  }
1550
1569
  function o(d) {
@@ -1553,13 +1572,13 @@ function ft() {
1553
1572
  function c(d, y, p) {
1554
1573
  const T = typeof y == "number" ? (0, i.getTouch)(d, y) : null;
1555
1574
  if (typeof y == "number" && !T) return null;
1556
- const h = m(p), b = p.props.offsetParent || h.offsetParent || h.ownerDocument.body;
1575
+ const g = m(p), b = p.props.offsetParent || g.offsetParent || g.ownerDocument.body;
1557
1576
  return (0, i.offsetXYFromParent)(T || d, b, p.props.scale);
1558
1577
  }
1559
- function g(d, y, p) {
1560
- const T = !(0, e.isNum)(d.lastX), h = m(d);
1578
+ function h(d, y, p) {
1579
+ const T = !(0, e.isNum)(d.lastX), g = m(d);
1561
1580
  return T ? {
1562
- node: h,
1581
+ node: g,
1563
1582
  deltaX: 0,
1564
1583
  deltaY: 0,
1565
1584
  lastX: y,
@@ -1567,7 +1586,7 @@ function ft() {
1567
1586
  x: y,
1568
1587
  y: p
1569
1588
  } : {
1570
- node: h,
1589
+ node: g,
1571
1590
  deltaX: y - d.lastX,
1572
1591
  deltaY: p - d.lastY,
1573
1592
  lastX: d.lastX,
@@ -1576,7 +1595,7 @@ function ft() {
1576
1595
  y: p
1577
1596
  };
1578
1597
  }
1579
- function D(d, y) {
1598
+ function C(d, y) {
1580
1599
  const p = d.props.scale;
1581
1600
  return {
1582
1601
  node: y.node,
@@ -1615,45 +1634,45 @@ function ht() {
1615
1634
  return pe;
1616
1635
  }
1617
1636
  var Je;
1618
- function zt() {
1637
+ function Vt() {
1619
1638
  if (Je) return ue;
1620
1639
  Je = 1, Object.defineProperty(ue, "__esModule", {
1621
1640
  value: !0
1622
1641
  }), ue.default = void 0;
1623
- var e = D(be), i = g(/* @__PURE__ */ ut()), t = g(ot), r = We(), s = ft(), o = ve(), c = g(ht());
1624
- function g(h) {
1625
- return h && h.__esModule ? h : { default: h };
1642
+ var e = C(be), i = h(/* @__PURE__ */ ut()), t = h(ot), r = Re(), a = ft(), o = ve(), c = h(ht());
1643
+ function h(g) {
1644
+ return g && g.__esModule ? g : { default: g };
1626
1645
  }
1627
- function D(h, b) {
1628
- if (typeof WeakMap == "function") var C = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
1629
- return (D = function(w, S) {
1630
- if (!S && w && w.__esModule) return w;
1631
- var l, M, a = { __proto__: null, default: w };
1632
- if (w === null || typeof w != "object" && typeof w != "function") return a;
1633
- if (l = S ? N : C) {
1634
- if (l.has(w)) return l.get(w);
1635
- l.set(w, a);
1646
+ function C(g, b) {
1647
+ if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
1648
+ return (C = function(S, D) {
1649
+ if (!D && S && S.__esModule) return S;
1650
+ var l, M, s = { __proto__: null, default: S };
1651
+ if (S === null || typeof S != "object" && typeof S != "function") return s;
1652
+ if (l = D ? N : w) {
1653
+ if (l.has(S)) return l.get(S);
1654
+ l.set(S, s);
1636
1655
  }
1637
- for (const f in w) f !== "default" && {}.hasOwnProperty.call(w, f) && ((M = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(w, f)) && (M.get || M.set) ? l(a, f, M) : a[f] = w[f]);
1638
- return a;
1639
- })(h, b);
1656
+ 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]);
1657
+ return s;
1658
+ })(g, b);
1640
1659
  }
1641
- function v(h, b, C) {
1642
- return (b = m(b)) in h ? Object.defineProperty(h, b, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : h[b] = C, h;
1660
+ function v(g, b, w) {
1661
+ return (b = m(b)) in g ? Object.defineProperty(g, b, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : g[b] = w, g;
1643
1662
  }
1644
- function m(h) {
1645
- var b = d(h, "string");
1663
+ function m(g) {
1664
+ var b = d(g, "string");
1646
1665
  return typeof b == "symbol" ? b : b + "";
1647
1666
  }
1648
- function d(h, b) {
1649
- if (typeof h != "object" || !h) return h;
1650
- var C = h[Symbol.toPrimitive];
1651
- if (C !== void 0) {
1652
- var N = C.call(h, b);
1667
+ function d(g, b) {
1668
+ if (typeof g != "object" || !g) return g;
1669
+ var w = g[Symbol.toPrimitive];
1670
+ if (w !== void 0) {
1671
+ var N = w.call(g, b);
1653
1672
  if (typeof N != "object") return N;
1654
1673
  throw new TypeError("@@toPrimitive must return a primitive value.");
1655
1674
  }
1656
- return (b === "string" ? String : Number)(h);
1675
+ return (b === "string" ? String : Number)(g);
1657
1676
  }
1658
1677
  const y = {
1659
1678
  touch: {
@@ -1671,63 +1690,63 @@ function zt() {
1671
1690
  constructor() {
1672
1691
  super(...arguments), v(this, "dragging", !1), v(this, "lastX", NaN), v(this, "lastY", NaN), v(this, "touchIdentifier", null), v(this, "mounted", !1), v(this, "handleDragStart", (b) => {
1673
1692
  if (this.props.onMouseDown(b), !this.props.allowAnyClick && typeof b.button == "number" && b.button !== 0) return !1;
1674
- const C = this.findDOMNode();
1675
- if (!C || !C.ownerDocument || !C.ownerDocument.body)
1693
+ const w = this.findDOMNode();
1694
+ if (!w || !w.ownerDocument || !w.ownerDocument.body)
1676
1695
  throw new Error("<DraggableCore> not mounted on DragStart!");
1677
1696
  const {
1678
1697
  ownerDocument: N
1679
- } = C;
1680
- if (this.props.disabled || !(b.target instanceof N.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(b.target, this.props.handle, C) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(b.target, this.props.cancel, C))
1698
+ } = w;
1699
+ if (this.props.disabled || !(b.target instanceof N.defaultView.Node) || this.props.handle && !(0, r.matchesSelectorAndParentsTo)(b.target, this.props.handle, w) || this.props.cancel && (0, r.matchesSelectorAndParentsTo)(b.target, this.props.cancel, w))
1681
1700
  return;
1682
1701
  b.type === "touchstart" && !this.props.allowMobileScroll && b.preventDefault();
1683
- const w = (0, r.getTouchIdentifier)(b);
1684
- this.touchIdentifier = w;
1685
- const S = (0, s.getControlPosition)(b, w, this);
1686
- if (S == null) return;
1702
+ const S = (0, r.getTouchIdentifier)(b);
1703
+ this.touchIdentifier = S;
1704
+ const D = (0, a.getControlPosition)(b, S, this);
1705
+ if (D == null) return;
1687
1706
  const {
1688
1707
  x: l,
1689
1708
  y: M
1690
- } = S, a = (0, s.createCoreData)(this, l, M);
1691
- (0, c.default)("DraggableCore: handleDragStart: %j", a), (0, c.default)("calling", this.props.onStart), !(this.props.onStart(b, a) === !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));
1709
+ } = D, s = (0, a.createCoreData)(this, l, M);
1710
+ (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));
1692
1711
  }), v(this, "handleDrag", (b) => {
1693
- const C = (0, s.getControlPosition)(b, this.touchIdentifier, this);
1694
- if (C == null) return;
1712
+ const w = (0, a.getControlPosition)(b, this.touchIdentifier, this);
1713
+ if (w == null) return;
1695
1714
  let {
1696
1715
  x: N,
1697
- y: w
1698
- } = C;
1716
+ y: S
1717
+ } = w;
1699
1718
  if (Array.isArray(this.props.grid)) {
1700
- let M = N - this.lastX, a = w - this.lastY;
1701
- if ([M, a] = (0, s.snapToGrid)(this.props.grid, M, a), !M && !a) return;
1702
- N = this.lastX + M, w = this.lastY + a;
1719
+ let M = N - this.lastX, s = S - this.lastY;
1720
+ if ([M, s] = (0, a.snapToGrid)(this.props.grid, M, s), !M && !s) return;
1721
+ N = this.lastX + M, S = this.lastY + s;
1703
1722
  }
1704
- const S = (0, s.createCoreData)(this, N, w);
1705
- if ((0, c.default)("DraggableCore: handleDrag: %j", S), this.props.onDrag(b, S) === !1 || this.mounted === !1) {
1723
+ const D = (0, a.createCoreData)(this, N, S);
1724
+ if ((0, c.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
1706
1725
  try {
1707
1726
  this.handleDragStop(new MouseEvent("mouseup"));
1708
1727
  } catch {
1709
- const a = document.createEvent("MouseEvents");
1710
- a.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(a);
1728
+ const s = document.createEvent("MouseEvents");
1729
+ s.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(s);
1711
1730
  }
1712
1731
  return;
1713
1732
  }
1714
- this.lastX = N, this.lastY = w;
1733
+ this.lastX = N, this.lastY = S;
1715
1734
  }), v(this, "handleDragStop", (b) => {
1716
1735
  if (!this.dragging) return;
1717
- const C = (0, s.getControlPosition)(b, this.touchIdentifier, this);
1718
- if (C == null) return;
1736
+ const w = (0, a.getControlPosition)(b, this.touchIdentifier, this);
1737
+ if (w == null) return;
1719
1738
  let {
1720
1739
  x: N,
1721
- y: w
1722
- } = C;
1740
+ y: S
1741
+ } = w;
1723
1742
  if (Array.isArray(this.props.grid)) {
1724
- let a = N - this.lastX || 0, f = w - this.lastY || 0;
1725
- [a, f] = (0, s.snapToGrid)(this.props.grid, a, f), N = this.lastX + a, w = this.lastY + f;
1743
+ let s = N - this.lastX || 0, f = S - this.lastY || 0;
1744
+ [s, f] = (0, a.snapToGrid)(this.props.grid, s, f), N = this.lastX + s, S = this.lastY + f;
1726
1745
  }
1727
- const S = (0, s.createCoreData)(this, N, w);
1728
- if (this.props.onStop(b, S) === !1 || this.mounted === !1) return !1;
1746
+ const D = (0, a.createCoreData)(this, N, S);
1747
+ if (this.props.onStop(b, D) === !1 || this.mounted === !1) return !1;
1729
1748
  const M = this.findDOMNode();
1730
- M && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(M.ownerDocument), (0, c.default)("DraggableCore: handleDragStop: %j", S), 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));
1749
+ 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));
1731
1750
  }), 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)));
1732
1751
  }
1733
1752
  componentDidMount() {
@@ -1742,11 +1761,11 @@ function zt() {
1742
1761
  const b = this.findDOMNode();
1743
1762
  if (b) {
1744
1763
  const {
1745
- ownerDocument: C
1764
+ ownerDocument: w
1746
1765
  } = b;
1747
- (0, r.removeEvent)(C, y.mouse.move, this.handleDrag), (0, r.removeEvent)(C, y.touch.move, this.handleDrag), (0, r.removeEvent)(C, y.mouse.stop, this.handleDragStop), (0, r.removeEvent)(C, y.touch.stop, this.handleDragStop), (0, r.removeEvent)(b, y.touch.start, this.onTouchStart, {
1766
+ (0, r.removeEvent)(w, y.mouse.move, this.handleDrag), (0, r.removeEvent)(w, y.touch.move, this.handleDrag), (0, r.removeEvent)(w, y.mouse.stop, this.handleDragStop), (0, r.removeEvent)(w, y.touch.stop, this.handleDragStop), (0, r.removeEvent)(b, y.touch.start, this.onTouchStart, {
1748
1767
  passive: !1
1749
- }), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(C);
1768
+ }), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(w);
1750
1769
  }
1751
1770
  }
1752
1771
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
@@ -1799,8 +1818,8 @@ function zt() {
1799
1818
  * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
1800
1819
  * instead of using the parent node.
1801
1820
  */
1802
- offsetParent: function(h, b) {
1803
- if (h[b] && h[b].nodeType !== 1)
1821
+ offsetParent: function(g, b) {
1822
+ if (g[b] && g[b].nodeType !== 1)
1804
1823
  throw new Error("Draggable's offsetParent must be a DOM Node.");
1805
1824
  },
1806
1825
  /**
@@ -1915,91 +1934,91 @@ function zt() {
1915
1934
  }), ue;
1916
1935
  }
1917
1936
  var Qe;
1918
- function Xt() {
1937
+ function Gt() {
1919
1938
  return Qe || (Qe = 1, (function(e) {
1920
1939
  Object.defineProperty(e, "__esModule", {
1921
1940
  value: !0
1922
1941
  }), Object.defineProperty(e, "DraggableCore", {
1923
1942
  enumerable: !0,
1924
1943
  get: function() {
1925
- return D.default;
1944
+ return C.default;
1926
1945
  }
1927
1946
  }), e.default = void 0;
1928
- var i = d(be), t = m(/* @__PURE__ */ ut()), r = m(ot), s = Bt(), o = We(), c = ft(), g = ve(), D = m(zt()), v = m(ht());
1929
- function m(C) {
1930
- return C && C.__esModule ? C : { default: C };
1947
+ var i = d(be), t = m(/* @__PURE__ */ ut()), r = m(ot), a = zt(), o = Re(), c = ft(), h = ve(), C = m(Vt()), v = m(ht());
1948
+ function m(w) {
1949
+ return w && w.__esModule ? w : { default: w };
1931
1950
  }
1932
- function d(C, N) {
1933
- if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
1951
+ function d(w, N) {
1952
+ if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
1934
1953
  return (d = function(l, M) {
1935
1954
  if (!M && l && l.__esModule) return l;
1936
- var a, f, u = { __proto__: null, default: l };
1955
+ var s, f, u = { __proto__: null, default: l };
1937
1956
  if (l === null || typeof l != "object" && typeof l != "function") return u;
1938
- if (a = M ? S : w) {
1939
- if (a.has(l)) return a.get(l);
1940
- a.set(l, u);
1957
+ if (s = M ? D : S) {
1958
+ if (s.has(l)) return s.get(l);
1959
+ s.set(l, u);
1941
1960
  }
1942
- for (const _ in l) _ !== "default" && {}.hasOwnProperty.call(l, _) && ((f = (a = Object.defineProperty) && Object.getOwnPropertyDescriptor(l, _)) && (f.get || f.set) ? a(u, _, f) : u[_] = l[_]);
1961
+ for (const _ in l) _ !== "default" && {}.hasOwnProperty.call(l, _) && ((f = (s = Object.defineProperty) && Object.getOwnPropertyDescriptor(l, _)) && (f.get || f.set) ? s(u, _, f) : u[_] = l[_]);
1943
1962
  return u;
1944
- })(C, N);
1963
+ })(w, N);
1945
1964
  }
1946
1965
  function y() {
1947
- return y = Object.assign ? Object.assign.bind() : function(C) {
1966
+ return y = Object.assign ? Object.assign.bind() : function(w) {
1948
1967
  for (var N = 1; N < arguments.length; N++) {
1949
- var w = arguments[N];
1950
- for (var S in w) ({}).hasOwnProperty.call(w, S) && (C[S] = w[S]);
1968
+ var S = arguments[N];
1969
+ for (var D in S) ({}).hasOwnProperty.call(S, D) && (w[D] = S[D]);
1951
1970
  }
1952
- return C;
1971
+ return w;
1953
1972
  }, y.apply(null, arguments);
1954
1973
  }
1955
- function p(C, N, w) {
1956
- return (N = T(N)) in C ? Object.defineProperty(C, N, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : C[N] = w, C;
1974
+ function p(w, N, S) {
1975
+ return (N = T(N)) in w ? Object.defineProperty(w, N, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : w[N] = S, w;
1957
1976
  }
1958
- function T(C) {
1959
- var N = h(C, "string");
1977
+ function T(w) {
1978
+ var N = g(w, "string");
1960
1979
  return typeof N == "symbol" ? N : N + "";
1961
1980
  }
1962
- function h(C, N) {
1963
- if (typeof C != "object" || !C) return C;
1964
- var w = C[Symbol.toPrimitive];
1965
- if (w !== void 0) {
1966
- var S = w.call(C, N);
1967
- if (typeof S != "object") return S;
1981
+ function g(w, N) {
1982
+ if (typeof w != "object" || !w) return w;
1983
+ var S = w[Symbol.toPrimitive];
1984
+ if (S !== void 0) {
1985
+ var D = S.call(w, N);
1986
+ if (typeof D != "object") return D;
1968
1987
  throw new TypeError("@@toPrimitive must return a primitive value.");
1969
1988
  }
1970
- return (N === "string" ? String : Number)(C);
1989
+ return (N === "string" ? String : Number)(w);
1971
1990
  }
1972
1991
  class b extends i.Component {
1973
1992
  // React 16.3+
1974
1993
  // Arity (props, state)
1975
- static getDerivedStateFromProps(N, w) {
1994
+ static getDerivedStateFromProps(N, S) {
1976
1995
  let {
1977
- position: S
1996
+ position: D
1978
1997
  } = N, {
1979
1998
  prevPropsPosition: l
1980
- } = w;
1981
- return S && (!l || S.x !== l.x || S.y !== l.y) ? ((0, v.default)("Draggable: getDerivedStateFromProps %j", {
1982
- position: S,
1999
+ } = S;
2000
+ return D && (!l || D.x !== l.x || D.y !== l.y) ? ((0, v.default)("Draggable: getDerivedStateFromProps %j", {
2001
+ position: D,
1983
2002
  prevPropsPosition: l
1984
2003
  }), {
1985
- x: S.x,
1986
- y: S.y,
2004
+ x: D.x,
2005
+ y: D.y,
1987
2006
  prevPropsPosition: {
1988
- ...S
2007
+ ...D
1989
2008
  }
1990
2009
  }) : null;
1991
2010
  }
1992
2011
  constructor(N) {
1993
- super(N), p(this, "onDragStart", (w, S) => {
1994
- if ((0, v.default)("Draggable: onDragStart: %j", S), this.props.onStart(w, (0, c.createDraggableData)(this, S)) === !1) return !1;
2012
+ super(N), p(this, "onDragStart", (S, D) => {
2013
+ if ((0, v.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, c.createDraggableData)(this, D)) === !1) return !1;
1995
2014
  this.setState({
1996
2015
  dragging: !0,
1997
2016
  dragged: !0
1998
2017
  });
1999
- }), p(this, "onDrag", (w, S) => {
2018
+ }), p(this, "onDrag", (S, D) => {
2000
2019
  if (!this.state.dragging) return !1;
2001
- (0, v.default)("Draggable: onDrag: %j", S);
2002
- const l = (0, c.createDraggableData)(this, S), M = {
2020
+ (0, v.default)("Draggable: onDrag: %j", D);
2021
+ const l = (0, c.createDraggableData)(this, D), M = {
2003
2022
  x: l.x,
2004
2023
  y: l.y,
2005
2024
  slackX: 0,
@@ -2011,14 +2030,14 @@ function Xt() {
2011
2030
  y: u
2012
2031
  } = M;
2013
2032
  M.x += this.state.slackX, M.y += this.state.slackY;
2014
- const [_, R] = (0, c.getBoundPosition)(this, M.x, M.y);
2015
- 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;
2033
+ const [_, W] = (0, c.getBoundPosition)(this, M.x, M.y);
2034
+ M.x = _, M.y = W, 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;
2016
2035
  }
2017
- if (this.props.onDrag(w, l) === !1) return !1;
2036
+ if (this.props.onDrag(S, l) === !1) return !1;
2018
2037
  this.setState(M);
2019
- }), p(this, "onDragStop", (w, S) => {
2020
- if (!this.state.dragging || this.props.onStop(w, (0, c.createDraggableData)(this, S)) === !1) return !1;
2021
- (0, v.default)("Draggable: onDragStop: %j", S);
2038
+ }), p(this, "onDragStop", (S, D) => {
2039
+ if (!this.state.dragging || this.props.onStop(S, (0, c.createDraggableData)(this, D)) === !1) return !1;
2040
+ (0, v.default)("Draggable: onDragStop: %j", D);
2022
2041
  const M = {
2023
2042
  dragging: !1,
2024
2043
  slackX: 0,
@@ -2068,15 +2087,15 @@ function Xt() {
2068
2087
  render() {
2069
2088
  const {
2070
2089
  axis: N,
2071
- bounds: w,
2072
- children: S,
2090
+ bounds: S,
2091
+ children: D,
2073
2092
  defaultPosition: l,
2074
2093
  defaultClassName: M,
2075
- defaultClassNameDragging: a,
2094
+ defaultClassNameDragging: s,
2076
2095
  defaultClassNameDragged: f,
2077
2096
  position: u,
2078
2097
  positionOffset: _,
2079
- scale: R,
2098
+ scale: W,
2080
2099
  ...z
2081
2100
  } = this.props;
2082
2101
  let X = {}, V = null;
@@ -2087,18 +2106,18 @@ function Xt() {
2087
2106
  y: (0, c.canDragY)(this) && H ? this.state.y : ee.y
2088
2107
  };
2089
2108
  this.state.isElementSVG ? V = (0, o.createSVGTransform)(ie, _) : X = (0, o.createCSSTransform)(ie, _);
2090
- const le = (0, s.clsx)(S.props.className || "", M, {
2091
- [a]: this.state.dragging,
2109
+ const le = (0, a.clsx)(D.props.className || "", M, {
2110
+ [s]: this.state.dragging,
2092
2111
  [f]: this.state.dragged
2093
2112
  });
2094
- return /* @__PURE__ */ i.createElement(D.default, y({}, z, {
2113
+ return /* @__PURE__ */ i.createElement(C.default, y({}, z, {
2095
2114
  onStart: this.onDragStart,
2096
2115
  onDrag: this.onDrag,
2097
2116
  onStop: this.onDragStop
2098
- }), /* @__PURE__ */ i.cloneElement(i.Children.only(S), {
2117
+ }), /* @__PURE__ */ i.cloneElement(i.Children.only(D), {
2099
2118
  className: le,
2100
2119
  style: {
2101
- ...S.props.style,
2120
+ ...D.props.style,
2102
2121
  ...X
2103
2122
  },
2104
2123
  transform: V
@@ -2107,7 +2126,7 @@ function Xt() {
2107
2126
  }
2108
2127
  e.default = b, p(b, "displayName", "Draggable"), p(b, "propTypes", {
2109
2128
  // Accepts all props <DraggableCore> accepts.
2110
- ...D.default.propTypes,
2129
+ ...C.default.propTypes,
2111
2130
  /**
2112
2131
  * `axis` determines which axis the draggable can move.
2113
2132
  *
@@ -2209,11 +2228,11 @@ function Xt() {
2209
2228
  /**
2210
2229
  * These properties should be defined on the child, not here.
2211
2230
  */
2212
- className: g.dontSetMe,
2213
- style: g.dontSetMe,
2214
- transform: g.dontSetMe
2231
+ className: h.dontSetMe,
2232
+ style: h.dontSetMe,
2233
+ transform: h.dontSetMe
2215
2234
  }), p(b, "defaultProps", {
2216
- ...D.default.defaultProps,
2235
+ ...C.default.defaultProps,
2217
2236
  axis: "both",
2218
2237
  bounds: !1,
2219
2238
  defaultClassName: "react-draggable",
@@ -2228,17 +2247,17 @@ function Xt() {
2228
2247
  })(we)), we;
2229
2248
  }
2230
2249
  var et;
2231
- function Vt() {
2250
+ function Zt() {
2232
2251
  if (et) return de.exports;
2233
2252
  et = 1;
2234
2253
  const {
2235
2254
  default: e,
2236
2255
  DraggableCore: i
2237
- } = Xt();
2256
+ } = Gt();
2238
2257
  return de.exports = e, de.exports.default = e, de.exports.DraggableCore = i, de.exports;
2239
2258
  }
2240
- var Gt = Vt();
2241
- const Zt = /* @__PURE__ */ At(Gt), Jt = se((e, i) => {
2259
+ var Jt = Zt();
2260
+ const Qt = /* @__PURE__ */ qt(Jt), en = se((e, i) => {
2242
2261
  const r = {
2243
2262
  ...{
2244
2263
  // 1. Take it out of the document flow
@@ -2256,14 +2275,14 @@ const Zt = /* @__PURE__ */ At(Gt), Jt = se((e, i) => {
2256
2275
  boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
2257
2276
  },
2258
2277
  ...e.style || {}
2259
- }, s = e.testId || "not-set", o = e.className || "panel", c = vt(null);
2278
+ }, a = e.testId || "not-set", o = e.className || "panel", c = vt(null);
2260
2279
  return (
2261
2280
  // 3. Pass the internal ref to the Draggable component via 'nodeRef'
2262
2281
  /* @__PURE__ */ n(
2263
- Zt,
2282
+ Qt,
2264
2283
  {
2265
2284
  nodeRef: c,
2266
- "data-testid": s,
2285
+ "data-testid": a,
2267
2286
  axis: "both",
2268
2287
  handle: ".handle",
2269
2288
  onStart: (v, m) => {
@@ -2279,7 +2298,7 @@ const Zt = /* @__PURE__ */ At(Gt), Jt = se((e, i) => {
2279
2298
  )
2280
2299
  );
2281
2300
  });
2282
- function _n({ children: e, addCssClasses: i }) {
2301
+ function Pn({ children: e, addCssClasses: i }) {
2283
2302
  const t = G(
2284
2303
  "w-full h-full flex-1 flex flex-col",
2285
2304
  (i || "gap-2 items-end justify-end content-end").trim()
@@ -2295,42 +2314,42 @@ function _n({ children: e, addCssClasses: i }) {
2295
2314
  }
2296
2315
  );
2297
2316
  }
2298
- function Mn({ children: e, addCssClasses: i }) {
2317
+ function $n({ children: e, addCssClasses: i }) {
2299
2318
  const t = G(
2300
2319
  "w-full flex flex-col",
2301
2320
  (i || "items-end").trim()
2302
2321
  );
2303
2322
  return /* @__PURE__ */ n("div", { className: t, children: e });
2304
2323
  }
2305
- const Pn = (e) => {
2324
+ const Wn = (e) => {
2306
2325
  console.warn("showToast TODO", e);
2307
- }, Qt = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, $n = se((e, i) => {
2326
+ }, tn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, Rn = se((e, i) => {
2308
2327
  let t = pt(Number(e.zoomScale || 0));
2309
- const r = e.responsiveGrid || !1, s = e.isEditing || !1, o = {
2328
+ const r = e.responsiveGrid || !1, a = e.isEditing || !1, o = {
2310
2329
  "--bwj-dashboard-transform-scale": t,
2311
- "--bwj-dashboard-add-cols": Qt(t)
2330
+ "--bwj-dashboard-add-cols": tn(t)
2312
2331
  }, c = G(
2313
2332
  "dashboard-main-grid w-full",
2314
- s ? "editing" : "",
2333
+ a ? "editing" : "",
2315
2334
  r ? "responsive-grid" : "",
2316
- `border border-dashed ${s ? "border-primary border-opacity-50" : "border-transparent"}`
2335
+ `border border-dashed ${a ? "border-primary border-opacity-50" : "border-transparent"}`
2317
2336
  );
2318
2337
  return /* @__PURE__ */ n("div", { className: c, style: o, children: e.children });
2319
- }), Me = "size-5", en = (e, i) => {
2338
+ }), Me = "size-5", nn = (e, i) => {
2320
2339
  const t = e.hideTitle && !e.isEditing, r = e.noBorder;
2321
- let s = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2322
- r ? s = `${s} border-transparent border-opacity-0` : (e.borderCssClasses || "").trim().length > 0 ? s = `${s} ${e.borderCssClasses}` : s = `${s} border-card-invert border-opacity-20`, e.noShadow && (s = `${s} no-shadow`), e.noPadding && (s = `${s} no-padding p-0`), (e.backgroundCssClasses || "").trim().length > 0 ? s = `${s} ${e.backgroundCssClasses}` : s = `${s} bg-card content-card`, ["large", "xlarge"].indexOf(e.size || "") > -1 && (s = `${s} ${e.size}-widget`);
2340
+ let a = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2341
+ 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`);
2323
2342
  const o = () => {
2324
2343
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey, e.parentWidgetKey);
2325
- }, c = (D) => {
2326
- e.onMoveClick && e.widgetKey && e.onMoveClick(D, e.widgetKey, e.parentWidgetKey);
2327
- }, g = G(
2344
+ }, c = (C) => {
2345
+ e.onMoveClick && e.widgetKey && e.onMoveClick(C, e.widgetKey, e.parentWidgetKey);
2346
+ }, h = G(
2328
2347
  "widget-header",
2329
2348
  t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
2330
2349
  t ? "border-opacity-0" : "border-opacity-20"
2331
2350
  );
2332
- return /* @__PURE__ */ $("div", { className: s, children: [
2333
- /* @__PURE__ */ $("div", { className: g, children: [
2351
+ return /* @__PURE__ */ $("div", { className: a, children: [
2352
+ /* @__PURE__ */ $("div", { className: h, children: [
2334
2353
  /* @__PURE__ */ $("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
2335
2354
  /* @__PURE__ */ $("h2", { className: "widget-title", children: [
2336
2355
  e.title,
@@ -2387,55 +2406,55 @@ const Pn = (e) => {
2387
2406
  ] }),
2388
2407
  /* @__PURE__ */ n("div", { className: "widget-inner", children: e.children })
2389
2408
  ] });
2390
- }, tt = se(en), tn = (e, i) => {
2391
- const t = (o) => o.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), s = t(i).split(".").map(Number);
2392
- return !(r[0] !== s[0] || r[1] < s[1]);
2409
+ }, tt = se(nn), rn = (e, i) => {
2410
+ const t = (o) => o.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), a = t(i).split(".").map(Number);
2411
+ return !(r[0] !== a[0] || r[1] < a[1]);
2393
2412
  };
2394
- function nn(e) {
2413
+ function on(e) {
2395
2414
  return /* @__PURE__ */ n("div", { className: "dashboard-widget", children: /* @__PURE__ */ $("div", { className: "absolute inset-0 bg-black flex flex-col items-center justify-center text-center", children: [
2396
2415
  /* @__PURE__ */ n("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
2397
2416
  /* @__PURE__ */ n("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
2398
2417
  ] }) });
2399
2418
  }
2400
- function rn({
2419
+ function an({
2401
2420
  index: e,
2402
2421
  maxIndex: i,
2403
2422
  widgetKey: t,
2404
2423
  parentWidgetKey: r,
2405
- targetContainerKey: s,
2424
+ targetContainerKey: a,
2406
2425
  childWidgetsConfig: o,
2407
2426
  widgetCatalog: c,
2408
- isEditing: g,
2427
+ isEditing: h,
2409
2428
  // for additional props passed to all widget from the dashboard through the DynamicWidgetLoader:
2410
- extraProps: D,
2429
+ extraProps: C,
2411
2430
  onRemoveClick: v,
2412
2431
  onMoveClick: m,
2413
2432
  selectContainer: d
2414
2433
  }) {
2415
- const y = `${t}`.split("_"), p = y.length > 1, T = p ? y[0] : t, h = c.get(T);
2416
- if (!h)
2434
+ const y = `${t}`.split("_"), p = y.length > 1, T = p ? y[0] : t, g = c.get(T);
2435
+ if (!g)
2417
2436
  return /* @__PURE__ */ n("div", { className: "flex", children: /* @__PURE__ */ $("p", { children: [
2418
2437
  "Widget not found in catalog: ",
2419
2438
  T
2420
2439
  ] }) });
2421
- let b = null, C = !1;
2422
- const N = !!h.isContainer, w = p ? nt(t) : "", S = N ? (o || []).filter((a) => a.parentWidgetKey === t) : [], l = {
2440
+ let b = null, w = !1;
2441
+ const N = !!g.isContainer, S = p ? nt(t) : "", D = N ? (o || []).filter((s) => s.parentWidgetKey === t) : [], l = {
2423
2442
  index: e,
2424
2443
  maxIndex: i,
2425
2444
  widgetKey: t,
2426
2445
  parentWidgetKey: r,
2427
- isEditing: g,
2428
- extraProps: D,
2429
- title: p ? w : h.title,
2446
+ isEditing: h,
2447
+ extraProps: C,
2448
+ title: p ? S : g.title,
2430
2449
  onRemoveClick: v,
2431
2450
  onMoveClick: m
2432
2451
  };
2433
- if (h.component ? (b = h.component, C = !1) : h.loader && (C = !0, b = rt(() => {
2434
- if (!h) return null;
2435
- const a = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f = h.meta?.externalDependencies || [], u = f.find((_) => _.startsWith("react@"));
2452
+ if (g.component ? (b = g.component, w = !1) : g.loader && (w = !0, b = rt(() => {
2453
+ if (!g) return null;
2454
+ const s = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f = g.meta?.externalDependencies || [], u = f.find((_) => _.startsWith("react@"));
2436
2455
  if (u) {
2437
2456
  const _ = u.split("@")[1];
2438
- if (!tn(a, _))
2457
+ if (!rn(s, _))
2439
2458
  return be.lazy(async () => ({
2440
2459
  default: () => /* @__PURE__ */ n(tt, { ...l, children: /* @__PURE__ */ $("div", { className: "p-4 border border-dashed border-danger", children: [
2441
2460
  /* @__PURE__ */ $("p", { className: "font-bold", children: [
@@ -2457,28 +2476,28 @@ function rn({
2457
2476
  ] }),
2458
2477
  ". Host is running",
2459
2478
  " ",
2460
- /* @__PURE__ */ n("strong", { children: a }),
2479
+ /* @__PURE__ */ n("strong", { children: s }),
2461
2480
  "."
2462
2481
  ] })
2463
2482
  ] }),
2464
2483
  /* @__PURE__ */ $("div", { className: "flex flex-col mt-3", children: [
2465
2484
  /* @__PURE__ */ n("h5", { children: "Externals:" }),
2466
- /* @__PURE__ */ n("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((R, z) => /* @__PURE__ */ $("dd", { children: [
2485
+ /* @__PURE__ */ n("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((W, z) => /* @__PURE__ */ $("dd", { children: [
2467
2486
  "- ",
2468
- R
2487
+ W
2469
2488
  ] }, z)) })
2470
2489
  ] })
2471
2490
  ] }) })
2472
2491
  }));
2473
2492
  }
2474
- if (h.component)
2475
- return h.component;
2476
- if (h.loader) {
2493
+ if (g.component)
2494
+ return g.component;
2495
+ if (g.loader) {
2477
2496
  const _ = async () => {
2478
2497
  try {
2479
- return await h.loader();
2480
- } catch (R) {
2481
- return console.error(`CDN Load Failure for ${t}:`, R), {
2498
+ return await g.loader();
2499
+ } catch (W) {
2500
+ return console.error(`CDN Load Failure for ${t}:`, W), {
2482
2501
  default: () => /* @__PURE__ */ n(tt, { ...l, children: /* @__PURE__ */ $("div", { className: "p-4 border border-dashed border-danger", children: [
2483
2502
  /* @__PURE__ */ $("p", { className: "font-bold", children: [
2484
2503
  'Failed to load "',
@@ -2486,7 +2505,7 @@ function rn({
2486
2505
  '"'
2487
2506
  ] }),
2488
2507
  /* @__PURE__ */ n("p", { className: "text-xs italic", children: "The remote plugin is unavailable or incompatible." }),
2489
- /* @__PURE__ */ n("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(h.meta || {}, null, 2) })
2508
+ /* @__PURE__ */ n("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(g.meta || {}, null, 2) })
2490
2509
  ] }) })
2491
2510
  };
2492
2511
  }
@@ -2494,41 +2513,38 @@ function rn({
2494
2513
  return be.lazy(_);
2495
2514
  }
2496
2515
  return null;
2497
- }, [h, t])), !b)
2516
+ }, [g, t])), !b)
2498
2517
  return /* @__PURE__ */ n("div", { className: "flex", children: /* @__PURE__ */ $("p", { children: [
2499
2518
  "Widget definition incomplete: ",
2500
2519
  T
2501
2520
  ] }) });
2502
2521
  const M = N ? {
2503
- highlight: s === t,
2522
+ highlight: a === t,
2504
2523
  selectContainer: d,
2505
2524
  // The children prop is the recursive call back to DynamicWidgetLoader
2506
- children: S.map((a, f) => /* @__PURE__ */ n(
2507
- rn,
2525
+ children: D.map((s, f) => /* @__PURE__ */ n(
2526
+ an,
2508
2527
  {
2509
2528
  index: f,
2510
- maxIndex: S.length - 1,
2511
- widgetKey: a.widgetKey,
2512
- parentWidgetKey: a.parentWidgetKey,
2529
+ maxIndex: D.length - 1,
2530
+ widgetKey: s.widgetKey,
2531
+ parentWidgetKey: s.parentWidgetKey,
2513
2532
  widgetCatalog: c,
2514
- isEditing: g,
2515
- extraProps: D,
2533
+ isEditing: h,
2534
+ extraProps: C,
2516
2535
  onRemoveClick: v,
2517
2536
  onMoveClick: m
2518
2537
  },
2519
- `${a.widgetKey}_${f}`
2538
+ `${s.widgetKey}_${f}`
2520
2539
  ))
2521
2540
  } : {};
2522
- return C ? /* @__PURE__ */ $(xt, { fallback: /* @__PURE__ */ n(nn, { title: `Loading ${h.title}` }), children: [
2523
- "]",
2524
- /* @__PURE__ */ n(b, { ...l, ...M })
2525
- ] }) : /* @__PURE__ */ n(b, { ...l, ...M });
2541
+ return w ? /* @__PURE__ */ n(xt, { fallback: /* @__PURE__ */ n(on, { title: `Loading ${g.title}` }), children: /* @__PURE__ */ n(b, { ...l, ...M }) }) : /* @__PURE__ */ n(b, { ...l, ...M });
2526
2542
  }
2527
2543
  const ye = "size-5";
2528
2544
  function Ie(e) {
2529
- const i = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, s = e.isEditing || !1;
2530
- let g = i ? "border-transparent" : s && !r ? "border-card-invert" : "border-transparent";
2531
- const D = ["large", "xlarge"].includes(e.size || "");
2545
+ const i = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, a = e.isEditing || !1;
2546
+ let h = i ? "border-transparent" : a && !r ? "border-card-invert" : "border-transparent";
2547
+ const C = ["large", "xlarge"].includes(e.size || "");
2532
2548
  let v = "";
2533
2549
  ["large", "xlarge"].indexOf(e.size || "") > -1 && (v = `${e.size}-widget`);
2534
2550
  let m = "";
@@ -2536,19 +2552,19 @@ function Ie(e) {
2536
2552
  let d = G(
2537
2553
  "dashboard-widget-container relative ",
2538
2554
  r ? "" : "has-no-children",
2539
- s ? "editing" : "",
2555
+ a ? "editing" : "",
2540
2556
  m,
2541
2557
  v,
2542
- D ? "widget-container-grid" : "widget-container-flex",
2558
+ C ? "widget-container-grid" : "widget-container-flex",
2543
2559
  `direction-${t}`,
2544
- `border ${g}`,
2545
- `${i ? "highlight-container" : ""} ${g}`
2546
- ), y = `widget-container-header direction-${t} flex items-center border-1 ${g}`;
2560
+ `border ${h}`,
2561
+ `${i ? "highlight-container" : ""} ${h}`
2562
+ ), y = `widget-container-header direction-${t} flex items-center border-1 ${h}`;
2547
2563
  const p = () => {
2548
2564
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
2549
2565
  }, T = (b) => {
2550
2566
  e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
2551
- }, h = () => {
2567
+ }, g = () => {
2552
2568
  e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
2553
2569
  };
2554
2570
  return /* @__PURE__ */ $("div", { "data-testid": `container_${e.widgetKey}`, className: d, children: [
@@ -2557,7 +2573,7 @@ function Ie(e) {
2557
2573
  "div",
2558
2574
  {
2559
2575
  className: "widget-title-wrapper w-full flex whitespace-nowrap",
2560
- onClick: h,
2576
+ onClick: g,
2561
2577
  children: /* @__PURE__ */ n("span", { className: "text-sm font-semibold capitalize", children: e.title })
2562
2578
  }
2563
2579
  ),
@@ -2572,9 +2588,9 @@ function Ie(e) {
2572
2588
  placement: "top",
2573
2589
  title: "Target this Container"
2574
2590
  },
2575
- onClick: h,
2591
+ onClick: g,
2576
2592
  children: /* @__PURE__ */ n(
2577
- It,
2593
+ kt,
2578
2594
  {
2579
2595
  className: `${ye} ${i ? "text-success" : "text-disabled"}`
2580
2596
  }
@@ -2627,15 +2643,15 @@ function Ie(e) {
2627
2643
  /* @__PURE__ */ n("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
2628
2644
  ] });
2629
2645
  }
2630
- function Rn(e) {
2646
+ function In(e) {
2631
2647
  const { direction: i, ...t } = e;
2632
2648
  return /* @__PURE__ */ n(Ie, { direction: "column", ...t });
2633
2649
  }
2634
- function Wn(e) {
2650
+ function On(e) {
2635
2651
  const { size: i, ...t } = e;
2636
2652
  return /* @__PURE__ */ n(Ie, { size: "large", ...t });
2637
2653
  }
2638
- function In(e) {
2654
+ function kn(e) {
2639
2655
  const { direction: i, ...t } = e;
2640
2656
  return /* @__PURE__ */ n(Ie, { direction: "row", ...t });
2641
2657
  }
@@ -2645,7 +2661,7 @@ function Pe({
2645
2661
  alreadyAdded: i,
2646
2662
  addWidget: t
2647
2663
  }) {
2648
- const [r, s] = ae(!1), o = e.icon || Ot, c = e.name || "Unknown", g = e.description || "---", v = (e.noDuplicatedWidgets || !1) && i, m = G(`
2664
+ const [r, a] = ae(!1), o = e.icon || jt, c = e.name || "Unknown", h = e.description || "---", v = (e.noDuplicatedWidgets || !1) && i, m = G(`
2649
2665
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2650
2666
  ${v ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2651
2667
  `);
@@ -2659,9 +2675,9 @@ function Pe({
2659
2675
  /* @__PURE__ */ n("div", { className: "text-xs", children: v ? "(Added)" : "" })
2660
2676
  ] }),
2661
2677
  /* @__PURE__ */ $("div", { className: "flex flex-col text-xs", children: [
2662
- /* @__PURE__ */ n("div", { children: g }),
2678
+ /* @__PURE__ */ n("div", { children: h }),
2663
2679
  /* @__PURE__ */ n("div", { className: "mt-3 cursor-pointer", onClick: (p) => {
2664
- p.stopPropagation(), p.preventDefault(), s(!r);
2680
+ p.stopPropagation(), p.preventDefault(), a(!r);
2665
2681
  }, children: "Externals:" }),
2666
2682
  r && /* @__PURE__ */ n("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((p, T) => /* @__PURE__ */ $("dd", { children: [
2667
2683
  "- ",
@@ -2671,26 +2687,26 @@ function Pe({
2671
2687
  ] })
2672
2688
  ] });
2673
2689
  }
2674
- function on({ item: e, onSettingItemChanged: i }) {
2675
- const t = e.name || "Unknown", r = e.description || "---", s = G(`
2690
+ function sn({ item: e, onSettingItemChanged: i }) {
2691
+ const t = e.name || "Unknown", r = e.description || "---", a = G(`
2676
2692
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2677
- `), o = (g) => {
2678
- const D = g.key;
2679
- if (["ArrowUp", "ArrowDown"].includes(D)) {
2680
- g.preventDefault();
2693
+ `), o = (h) => {
2694
+ const C = h.key;
2695
+ if (["ArrowUp", "ArrowDown"].includes(C)) {
2696
+ h.preventDefault();
2681
2697
  const v = bt.incrementOrDecrementValue(
2682
2698
  e,
2683
- D === "ArrowUp" ? 1 : -1
2699
+ C === "ArrowUp" ? 1 : -1
2684
2700
  );
2685
2701
  i(v);
2686
2702
  }
2687
- }, c = (g) => {
2703
+ }, c = (h) => {
2688
2704
  i({
2689
2705
  ...e,
2690
- value: g.target.value || ""
2706
+ value: h.target.value || ""
2691
2707
  });
2692
2708
  };
2693
- return /* @__PURE__ */ n("div", { className: s, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ $("div", { className: "w-full", children: [
2709
+ return /* @__PURE__ */ n("div", { className: a, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ $("div", { className: "w-full", children: [
2694
2710
  /* @__PURE__ */ n("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ n("span", { className: "font-bold", children: t }) }),
2695
2711
  /* @__PURE__ */ n("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ n("div", { children: r }) }),
2696
2712
  /* @__PURE__ */ $("div", { children: [
@@ -2713,45 +2729,45 @@ const $e = (e, i) => [
2713
2729
  ...i.widgets.filter((r) => r.indexOf("Container") === -1),
2714
2730
  ...i.childWidgetsConfig.map((r) => r.widgetKey)
2715
2731
  ].includes(e);
2716
- function On(e) {
2732
+ function jn(e) {
2717
2733
  const {
2718
2734
  currentDashboardConfig: i,
2719
2735
  undoStatus: t,
2720
2736
  addContainer: r,
2721
- onResetToDefaultDashboardClick: s,
2737
+ onResetToDefaultDashboardClick: a,
2722
2738
  onUndoOrRedo: o,
2723
2739
  onDoneClick: c
2724
- } = e, [g, D] = ae("Editing"), [v, m] = ae(0), [d, y] = ae(""), T = Array.from(e.widgetsCatalog.keys()).map((u) => ({
2740
+ } = e, [h, C] = ae("Editing"), [v, m] = ae(0), [d, y] = ae(""), T = Array.from(e.widgetsCatalog.keys()).map((u) => ({
2725
2741
  widgetKey: u,
2726
2742
  metaData: yt(u, e.widgetsCatalog)
2727
- })), h = !!e.targetContainerKey, b = (u) => {
2743
+ })), g = !!e.targetContainerKey, b = (u) => {
2728
2744
  y(u.target.value);
2729
- }, C = (u) => {
2745
+ }, w = (u) => {
2730
2746
  const _ = d.trim().toLowerCase();
2731
2747
  return _.length < 1 ? !0 : u.name.trim().toLowerCase().includes(_) || u.description.toLowerCase().includes(_);
2732
2748
  }, N = (u) => {
2733
2749
  const _ = d.trim().toLowerCase();
2734
2750
  return _.length < 1 ? !0 : u.name.trim().toLowerCase().includes(_) || u.description.toLowerCase().includes(_);
2735
- }, w = (u) => G(
2751
+ }, S = (u) => G(
2736
2752
  "px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
2737
2753
  u === v ? "text-primary border-primary" : ""
2738
- ), S = (u) => {
2739
- h ? e.addWidget(u, e.targetContainerKey) : e.addWidget(u);
2754
+ ), D = (u) => {
2755
+ g ? e.addWidget(u, e.targetContainerKey) : e.addWidget(u);
2740
2756
  }, l = (u) => {
2741
- const _ = (e.currentDashboardConfig.cssSettings || []).map((R) => R.key === u.key ? u : R);
2757
+ const _ = (e.currentDashboardConfig.cssSettings || []).map((W) => W.key === u.key ? u : W);
2742
2758
  e.onSettingItemsUpdated(_);
2743
- }, [M, a] = ae(!1), f = (u) => {
2744
- a(u);
2759
+ }, [M, s] = ae(!1), f = (u) => {
2760
+ s(u);
2745
2761
  };
2746
2762
  return Ct(() => {
2747
2763
  if (e.targetContainerKey) {
2748
2764
  m(0);
2749
2765
  const u = nt(e.targetContainerKey);
2750
- D(`Editing ${u}`);
2766
+ C(`Editing ${u}`);
2751
2767
  } else
2752
- D("Editing Dashboard");
2768
+ C("Editing Dashboard");
2753
2769
  }, [e.targetContainerKey]), /* @__PURE__ */ n(
2754
- Jt,
2770
+ en,
2755
2771
  {
2756
2772
  testId: "dashboard-catalog-flyout",
2757
2773
  className: "bg-body content-body bg-opacity-70 border-2 border-primary",
@@ -2766,13 +2782,13 @@ function On(e) {
2766
2782
  children: /* @__PURE__ */ $("div", { className: "flex flex-col gap-2 p-2", children: [
2767
2783
  /* @__PURE__ */ $("div", { className: "flex flex-row gap-2 justify-between", children: [
2768
2784
  /* @__PURE__ */ $("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
2769
- M ? /* @__PURE__ */ n(Wt, { className: "size-5" }) : /* @__PURE__ */ n(Rt, { className: "size-5" }),
2785
+ M ? /* @__PURE__ */ n(Ot, { className: "size-5" }) : /* @__PURE__ */ n(It, { className: "size-5" }),
2770
2786
  /* @__PURE__ */ n(
2771
2787
  "h2",
2772
2788
  {
2773
2789
  className: "flex-1 text-base margin-0 capitalize",
2774
- title: h ? g : `Editing dashboard: ${i.dashboardName}`,
2775
- children: g
2790
+ title: g ? h : `Editing dashboard: ${i.dashboardName}`,
2791
+ children: h
2776
2792
  }
2777
2793
  )
2778
2794
  ] }),
@@ -2788,7 +2804,7 @@ function On(e) {
2788
2804
  },
2789
2805
  disabled: t.isUndoDisabled,
2790
2806
  onClick: () => o("Undo"),
2791
- children: /* @__PURE__ */ n(Pt, { className: "size-5" })
2807
+ children: /* @__PURE__ */ n(Wt, { className: "size-5" })
2792
2808
  }
2793
2809
  ),
2794
2810
  /* @__PURE__ */ n(
@@ -2802,7 +2818,7 @@ function On(e) {
2802
2818
  },
2803
2819
  disabled: t.isRedoDisabled,
2804
2820
  onClick: () => o("Redo"),
2805
- children: /* @__PURE__ */ n($t, { className: "size-5" })
2821
+ children: /* @__PURE__ */ n(Rt, { className: "size-5" })
2806
2822
  }
2807
2823
  ),
2808
2824
  /* @__PURE__ */ n(
@@ -2814,17 +2830,17 @@ function On(e) {
2814
2830
  placement: "bottom",
2815
2831
  title: "Reset this dashboard to the default configuration"
2816
2832
  },
2817
- onClick: s,
2818
- children: /* @__PURE__ */ n(Mt, { className: "size-5" })
2833
+ onClick: a,
2834
+ children: /* @__PURE__ */ n($t, { className: "size-5" })
2819
2835
  }
2820
2836
  )
2821
2837
  ] })
2822
2838
  ] }),
2823
2839
  /* @__PURE__ */ $("div", { className: "flex border-b border-gray-200", children: [
2824
- /* @__PURE__ */ n("button", { onClick: () => m(0), className: w(0), children: "Widgets" }),
2825
- /* @__PURE__ */ n("button", { onClick: () => m(1), className: w(1), children: "Charts" }),
2826
- !h && /* @__PURE__ */ n("button", { onClick: () => m(2), className: w(2), children: "Containers" }),
2827
- !h && /* @__PURE__ */ n("button", { onClick: () => m(3), className: w(3), children: /* @__PURE__ */ n(_t, {}) })
2840
+ /* @__PURE__ */ n("button", { onClick: () => m(0), className: S(0), children: "Widgets" }),
2841
+ /* @__PURE__ */ n("button", { onClick: () => m(1), className: S(1), children: "Charts" }),
2842
+ !g && /* @__PURE__ */ n("button", { onClick: () => m(2), className: S(2), children: "Containers" }),
2843
+ !g && /* @__PURE__ */ n("button", { onClick: () => m(3), className: S(3), children: /* @__PURE__ */ n(Pt, {}) })
2828
2844
  ] }),
2829
2845
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ n(
2830
2846
  lt,
@@ -2845,30 +2861,30 @@ function On(e) {
2845
2861
  },
2846
2862
  children: [
2847
2863
  v === 0 && T.filter(
2848
- (u) => u.metaData.categories.includes("Widget") && C(u.metaData)
2864
+ (u) => u.metaData.categories.includes("Widget") && w(u.metaData)
2849
2865
  ).map((u) => /* @__PURE__ */ n(
2850
2866
  Pe,
2851
2867
  {
2852
2868
  widgetKey: u.widgetKey,
2853
2869
  metaData: u.metaData,
2854
2870
  alreadyAdded: $e(u.widgetKey, i),
2855
- addWidget: () => S(u.widgetKey)
2871
+ addWidget: () => D(u.widgetKey)
2856
2872
  },
2857
2873
  u.widgetKey
2858
2874
  )),
2859
2875
  v === 1 && T.filter(
2860
- (u) => u.metaData.categories.includes("Chart") && C(u.metaData)
2876
+ (u) => u.metaData.categories.includes("Chart") && w(u.metaData)
2861
2877
  ).map((u) => /* @__PURE__ */ n(
2862
2878
  Pe,
2863
2879
  {
2864
2880
  widgetKey: u.widgetKey,
2865
2881
  metaData: u.metaData,
2866
2882
  alreadyAdded: $e(u.widgetKey, i),
2867
- addWidget: () => S(u.widgetKey)
2883
+ addWidget: () => D(u.widgetKey)
2868
2884
  },
2869
2885
  u.widgetKey
2870
2886
  )),
2871
- !h && v === 2 && T.filter((u) => u.metaData.categories.includes("Container")).map((u) => /* @__PURE__ */ n(
2887
+ !g && v === 2 && T.filter((u) => u.metaData.categories.includes("Container")).map((u) => /* @__PURE__ */ n(
2872
2888
  Pe,
2873
2889
  {
2874
2890
  widgetKey: u.widgetKey,
@@ -2878,8 +2894,8 @@ function On(e) {
2878
2894
  },
2879
2895
  u.widgetKey
2880
2896
  )),
2881
- !h && v === 3 && (i.cssSettings || []).filter(N).map((u) => /* @__PURE__ */ n(
2882
- on,
2897
+ !g && v === 3 && (i.cssSettings || []).filter(N).map((u) => /* @__PURE__ */ n(
2898
+ sn,
2883
2899
  {
2884
2900
  item: u,
2885
2901
  onSettingItemChanged: l
@@ -2906,47 +2922,47 @@ function On(e) {
2906
2922
  );
2907
2923
  }
2908
2924
  export {
2909
- hn as AddIcon,
2925
+ mn as AddIcon,
2910
2926
  J as Button,
2911
- Ot as CircleQuestionMark,
2912
- It as CrosshairIcon,
2913
- $n as DashboardGrid,
2927
+ jt as CircleQuestionMark,
2928
+ kt as CrosshairIcon,
2929
+ Rn as DashboardGrid,
2914
2930
  tt as DashboardWidgetBase,
2915
- gn as DeleteIcon,
2916
- Jt as DraggablePanel,
2917
- rn as DynamicWidgetLoader,
2918
- mn as EditIcon,
2919
- pn as GridIcon,
2920
- Wt as HandGrabIcon,
2921
- Rt as HandIcon,
2922
- Sn as ListItem,
2923
- Dn as ListItemLeftChild,
2924
- Tn as ListItemMiddleChild,
2925
- Nn as ListItemRightChild,
2926
- yn as MonitorIcon,
2927
- bn as MonitorSmartphoneIcon,
2931
+ pn as DeleteIcon,
2932
+ en as DraggablePanel,
2933
+ an as DynamicWidgetLoader,
2934
+ yn as EditIcon,
2935
+ bn as GridIcon,
2936
+ Ot as HandGrabIcon,
2937
+ It as HandIcon,
2938
+ Tn as ListItem,
2939
+ Nn as ListItemLeftChild,
2940
+ En as ListItemMiddleChild,
2941
+ _n as ListItemRightChild,
2942
+ vn as MonitorIcon,
2943
+ xn as MonitorSmartphoneIcon,
2928
2944
  it as MoveLeftIcon,
2929
2945
  at as MoveRightIcon,
2930
- $t as RedoIcon,
2931
- _t as SettingsIcon,
2932
- jt as Stack,
2946
+ Rt as RedoIcon,
2947
+ Pt as SettingsIcon,
2948
+ Lt as Stack,
2933
2949
  B as SvgBaseWrapper,
2934
- vn as TabletSmartphoneIcon,
2935
- wn as TargetIcon,
2950
+ Cn as TabletSmartphoneIcon,
2951
+ Dn as TargetIcon,
2936
2952
  lt as TextField,
2937
- Mt as TimerResetIcon,
2938
- Pt as UndoIcon,
2939
- Rn as WidgetContainerColumn,
2940
- Wn as WidgetContainerLarge,
2941
- In as WidgetContainerRow,
2942
- On as WidgetsCatalogFlyout,
2943
- _n as WrapperColumnContent,
2944
- Mn as WrapperColumnContentListItem,
2953
+ $t as TimerResetIcon,
2954
+ Wt as UndoIcon,
2955
+ In as WidgetContainerColumn,
2956
+ On as WidgetContainerLarge,
2957
+ kn as WidgetContainerRow,
2958
+ jn as WidgetsCatalogFlyout,
2959
+ Pn as WrapperColumnContent,
2960
+ $n as WrapperColumnContentListItem,
2945
2961
  st as XCircleIcon,
2946
- xn as ZoomInIcon,
2947
- Cn as ZoomOutIcon,
2948
- tn as _isVersionCompatible,
2949
- Pn as showToast,
2950
- un as useDashboardStore,
2951
- fn as useDashboardUndoService
2962
+ wn as ZoomInIcon,
2963
+ Sn as ZoomOutIcon,
2964
+ rn as _isVersionCompatible,
2965
+ Wn as showToast,
2966
+ hn as useDashboardStore,
2967
+ gn as useDashboardUndoService
2952
2968
  };