@tenorlab/react-dashboard 1.5.21 → 1.5.24

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 };
@@ -310,7 +329,7 @@ const wt = (e) => {
310
329
  // (Optional: You might expose undoHistory and historyIndex if needed for debugging)
311
330
  };
312
331
  };
313
- function B({
332
+ function U({
314
333
  children: e,
315
334
  className: i
316
335
  }) {
@@ -331,15 +350,15 @@ function B({
331
350
  }
332
351
  );
333
352
  }
334
- function hn({ className: e }) {
335
- return /* @__PURE__ */ $(B, { className: `lucide lucide-circle-plus-icon lucide-circle-plus ${e}`, children: [
353
+ function mn({ className: e }) {
354
+ return /* @__PURE__ */ $(U, { 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 }) {
342
- return /* @__PURE__ */ $(B, { className: `lucide lucide-trash2-icon lucide-trash-2 ${e}`, children: [
360
+ function pn({ className: e }) {
361
+ return /* @__PURE__ */ $(U, { 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" }),
345
364
  /* @__PURE__ */ n("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
@@ -347,14 +366,29 @@ 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 }) {
351
- return /* @__PURE__ */ $(B, { className: `lucide lucide-square-pen-icon lucide-square-pen ${e}`, children: [
369
+ function yn({ className: e }) {
370
+ return /* @__PURE__ */ $(U, { 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 }) {
357
- return /* @__PURE__ */ $(B, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
375
+ function bn({ className: e }) {
376
+ return /* @__PURE__ */ $(
377
+ U,
378
+ {
379
+ className: `lucide lucide-text-cursor-input-icon lucide-text-cursor-input ${e}`,
380
+ children: [
381
+ /* @__PURE__ */ n("path", { d: "M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6" }),
382
+ /* @__PURE__ */ n("path", { d: "M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7" }),
383
+ /* @__PURE__ */ n("path", { d: "M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1" }),
384
+ /* @__PURE__ */ n("path", { d: "M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1" }),
385
+ /* @__PURE__ */ n("path", { d: "M9 6v12" })
386
+ ]
387
+ }
388
+ );
389
+ }
390
+ function vn({ className: e }) {
391
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
358
392
  /* @__PURE__ */ n("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
359
393
  /* @__PURE__ */ n("path", { d: "M3 9h18" }),
360
394
  /* @__PURE__ */ n("path", { d: "M3 15h18" }),
@@ -362,16 +396,16 @@ function pn({ className: e }) {
362
396
  /* @__PURE__ */ n("path", { d: "M15 3v18" })
363
397
  ] });
364
398
  }
365
- function yn({ className: e }) {
366
- return /* @__PURE__ */ $(B, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
399
+ function xn({ className: e }) {
400
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
367
401
  /* @__PURE__ */ n("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
368
402
  /* @__PURE__ */ n("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
369
403
  /* @__PURE__ */ n("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
370
404
  ] });
371
405
  }
372
- function bn({ className: e }) {
406
+ function Cn({ className: e }) {
373
407
  return /* @__PURE__ */ $(
374
- B,
408
+ U,
375
409
  {
376
410
  className: `lucide lucide-monitor-smartphone-icon lucide-monitor-smartphone ${e}`,
377
411
  children: [
@@ -385,7 +419,7 @@ function bn({ className: e }) {
385
419
  }
386
420
  function it({ className: e }) {
387
421
  return /* @__PURE__ */ $(
388
- B,
422
+ U,
389
423
  {
390
424
  className: `lucide lucide-circle-arrow-left-icon lucide-circle-arrow-left ${e}`,
391
425
  children: [
@@ -398,7 +432,7 @@ function it({ className: e }) {
398
432
  }
399
433
  function at({ className: e }) {
400
434
  return /* @__PURE__ */ $(
401
- B,
435
+ U,
402
436
  {
403
437
  className: `lucide lucide-circle-arrow-right-icon lucide-circle-arrow-right ${e}`,
404
438
  children: [
@@ -409,15 +443,15 @@ function at({ className: e }) {
409
443
  }
410
444
  );
411
445
  }
412
- function _t({ className: e }) {
413
- return /* @__PURE__ */ $(B, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
446
+ function Pt({ className: e }) {
447
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
414
448
  /* @__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
449
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "3" })
416
450
  ] });
417
451
  }
418
- function vn({ className: e }) {
452
+ function wn({ className: e }) {
419
453
  return /* @__PURE__ */ $(
420
- B,
454
+ U,
421
455
  {
422
456
  className: `lucide lucide-tablet-smartphone-icon lucide-tablet-smartphone ${e}`,
423
457
  children: [
@@ -429,57 +463,57 @@ function vn({ className: e }) {
429
463
  );
430
464
  }
431
465
  function st({ className: e }) {
432
- return /* @__PURE__ */ $(B, { className: `lucide lucide-circle-x-icon lucide-circle-x ${e}`, children: [
466
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-circle-x-icon lucide-circle-x ${e}`, children: [
433
467
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "10" }),
434
468
  /* @__PURE__ */ n("path", { d: "m15 9-6 6" }),
435
469
  /* @__PURE__ */ n("path", { d: "m9 9 6 6" })
436
470
  ] });
437
471
  }
438
- function xn({ className: e }) {
439
- return /* @__PURE__ */ $(B, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
472
+ function Sn({ className: e }) {
473
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
440
474
  /* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "8" }),
441
475
  /* @__PURE__ */ n("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
442
476
  /* @__PURE__ */ n("line", { x1: "11", x2: "11", y1: "8", y2: "14" }),
443
477
  /* @__PURE__ */ n("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
444
478
  ] });
445
479
  }
446
- function Cn({ className: e }) {
447
- return /* @__PURE__ */ $(B, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
480
+ function Dn({ className: e }) {
481
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
448
482
  /* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "8" }),
449
483
  /* @__PURE__ */ n("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
450
484
  /* @__PURE__ */ n("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
451
485
  ] });
452
486
  }
453
- function Mt({ className: e }) {
454
- return /* @__PURE__ */ $(B, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
487
+ function $t({ className: e }) {
488
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
455
489
  /* @__PURE__ */ n("path", { d: "M10 2h4" }),
456
490
  /* @__PURE__ */ n("path", { d: "M12 14v-4" }),
457
491
  /* @__PURE__ */ n("path", { d: "M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" }),
458
492
  /* @__PURE__ */ n("path", { d: "M9 17H4v5" })
459
493
  ] });
460
494
  }
461
- function Pt({ className: e }) {
462
- return /* @__PURE__ */ $(B, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
495
+ function Rt({ className: e }) {
496
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
463
497
  /* @__PURE__ */ n("path", { d: "M3 7v6h6" }),
464
498
  /* @__PURE__ */ n("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
465
499
  ] });
466
500
  }
467
- function $t({ className: e }) {
468
- return /* @__PURE__ */ $(B, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
501
+ function Wt({ className: e }) {
502
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
469
503
  /* @__PURE__ */ n("path", { d: "M21 7v6h-6" }),
470
504
  /* @__PURE__ */ n("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
471
505
  ] });
472
506
  }
473
- function Rt({ className: e }) {
474
- return /* @__PURE__ */ $(B, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
507
+ function It({ className: e }) {
508
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
475
509
  /* @__PURE__ */ n("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
476
510
  /* @__PURE__ */ n("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
477
511
  /* @__PURE__ */ n("path", { d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" }),
478
512
  /* @__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
513
  ] });
480
514
  }
481
- function Wt({ className: e }) {
482
- return /* @__PURE__ */ $(B, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
515
+ function Ot({ className: e }) {
516
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
483
517
  /* @__PURE__ */ n("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
484
518
  /* @__PURE__ */ n("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
485
519
  /* @__PURE__ */ n("path", { d: "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" }),
@@ -487,24 +521,24 @@ function Wt({ className: e }) {
487
521
  /* @__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
522
  ] });
489
523
  }
490
- function It({ className: e }) {
491
- return /* @__PURE__ */ $(B, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
524
+ function kt({ className: e }) {
525
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
492
526
  /* @__PURE__ */ n("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
493
527
  /* @__PURE__ */ n("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
494
528
  /* @__PURE__ */ n("line", { x1: "12", x2: "12", y1: "6", y2: "2" }),
495
529
  /* @__PURE__ */ n("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
496
530
  ] });
497
531
  }
498
- function wn({ className: e }) {
499
- return /* @__PURE__ */ $(B, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
532
+ function Tn({ className: e }) {
533
+ return /* @__PURE__ */ $(U, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
500
534
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "10" }),
501
535
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "6" }),
502
536
  /* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "2" })
503
537
  ] });
504
538
  }
505
- function Ot({ className: e }) {
539
+ function jt({ className: e }) {
506
540
  return /* @__PURE__ */ $(
507
- B,
541
+ U,
508
542
  {
509
543
  className: `lucide lucide-file-question-mark-icon lucide-file-question-mark ${e}`,
510
544
  children: [
@@ -520,18 +554,18 @@ const lt = ({
520
554
  className: i,
521
555
  size: t = "medium",
522
556
  value: r,
523
- onChange: s,
557
+ onChange: a,
524
558
  onKeyDown: o,
525
559
  placeholder: c = ""
526
560
  }) => {
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(`
561
+ const h = rt(() => t === "small" ? "py-1.5 px-3 text-sm" : "py-2.5 px-4 text-base", [t]), C = G("flex flex-col mb-4", i || ""), m = `${G(`
528
562
  block w-full rounded-md px-3 py-1.5 text-base
529
563
  bg-formfield content-formfield
530
564
  outline-1 -outline-offset-1 outline-primary
531
565
  placeholder:text-disabled
532
566
  focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-200 sm:text-sm/6
533
- `)} ${g}`;
534
- return /* @__PURE__ */ $("div", { className: D, children: [
567
+ `)} ${h}`;
568
+ return /* @__PURE__ */ $("div", { className: C, children: [
535
569
  /* @__PURE__ */ n("label", { htmlFor: e, className: "block text-sm/6 font-medium mb-1.5", children: e }),
536
570
  /* @__PURE__ */ n(
537
571
  "input",
@@ -539,7 +573,7 @@ const lt = ({
539
573
  id: e,
540
574
  type: "text",
541
575
  value: r,
542
- onChange: s,
576
+ onChange: a,
543
577
  onKeyDown: (d) => o && o(d),
544
578
  placeholder: c,
545
579
  className: m,
@@ -562,23 +596,23 @@ function J(e) {
562
596
  tooltip: i,
563
597
  disabled: t,
564
598
  isIconButton: r,
565
- className: s,
599
+ className: a,
566
600
  buttonType: o,
567
601
  category: c,
568
- px: g,
569
- py: D,
602
+ px: h,
603
+ py: C,
570
604
  children: v,
571
605
  ...m
572
606
  } = 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";
607
+ const p = e.isIconButton || !1, T = e.category || "primary", g = e.buttonType || "normal", b = e.disabled || !1, w = e.className || "", N = e.font || "semibold", S = Number((e.border || 0) > 0 ? e.border : 0);
608
+ let D = (e.borderColor || "").trim();
609
+ D = D.length > 0 ? D : "";
610
+ const l = Number((e.borderHover || 0) > 0 ? e.borderHover : 0), M = e.shadow || "sm", s = e.shadowHover || "md", f = (e.addCss || "").trim(), u = e.justifyCss || "justify-center";
577
611
  if (p)
578
612
  return G(
579
613
  "flex flex-row items-center",
580
614
  b ? "text-disabled" : `text-${T} hover:brightness-110 cursor-pointer`,
581
- C || ""
615
+ w || ""
582
616
  );
583
617
  const _ = [
584
618
  "relative cursor-pointer",
@@ -588,15 +622,15 @@ function J(e) {
588
622
  `font-${N}`
589
623
  ];
590
624
  if (b)
591
- h === "ghost" ? _.push("text-disabled border-disabled cursor-not-allowed") : _.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
625
+ g === "ghost" ? _.push("text-disabled border-disabled cursor-not-allowed") : _.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
592
626
  else {
593
627
  _.push("cursor-pointer");
594
628
  let R = "";
595
- Ce.has(h) ? R = `${Ce.get(h)}` : R = `${Ce.get("normal")}`, w < 1 && (R = R.replace("border-[category]", ""));
629
+ Ce.has(g) ? R = `${Ce.get(g)}` : R = `${Ce.get("normal")}`, S < 1 && (R = R.replace("border-[category]", ""));
596
630
  const z = R.replace(/\[category\]/g, T).trim();
597
631
  _.push(z);
598
632
  }
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();
633
+ return S > 0 ? (_.push(`border-[${S}px]`), _.push(`border-${D}`)) : (_.push("border-[1px]"), _.push("border-transparent")), l > 0 ? (_.push(`hover:border-[${l}px] group-hover:border-[${l}px]`), _.push(`hover:border-${D} group-hover:border-${D}`)) : _.push("hover:border-[1px] group-hover:border-[1px]"), _.push(`shadow-${M}`), _.push(`hover:shadow-${s} group-hover:shadow-${s}`), f.length > 0 && _.push(f), f.indexOf("hidden") === -1 && _.push("inline-flex"), _.push(u), _.join(" ").trim();
600
634
  }, y = () => {
601
635
  const p = e.px || 0.7, T = e.py || 0.25;
602
636
  return {
@@ -605,21 +639,21 @@ function J(e) {
605
639
  };
606
640
  return /* @__PURE__ */ n("button", { type: "button", disabled: t, className: d(), style: y(), ...m, children: v });
607
641
  }
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);
642
+ const At = (e) => e.direction === "row" ? G("flex flex-row items-center gap-2", e.classNames || "") : G("flex flex-col gap-2 w-full", e.classNames || "");
643
+ function Lt(e) {
644
+ const { children: i, testId: t, classNames: r, direction: a, ...o } = e, c = At(e);
611
645
  return /* @__PURE__ */ n("div", { "data-testid": t || "not-set", className: c, ...o, children: i });
612
646
  }
613
- const Sn = se(
647
+ const Nn = se(
614
648
  (e, i) => {
615
- const { classNames: t, innerClass: r, ...s } = e, o = G(t || "", "w-full"), c = G(
649
+ const { classNames: t, innerClass: r, ...a } = e, o = G(t || "", "w-full"), c = G(
616
650
  `w-full flex overflow-hidden justify-between items-center gap-0
617
651
  rounded-md border`,
618
652
  r || ""
619
653
  );
620
- return /* @__PURE__ */ n(jt, { direction: "row", classNames: o, ...s, children: /* @__PURE__ */ n("div", { className: c, children: e.children }) });
654
+ return /* @__PURE__ */ n(Lt, { direction: "row", classNames: o, ...a, children: /* @__PURE__ */ n("div", { className: c, children: e.children }) });
621
655
  }
622
- ), Dn = se((e, i) => /* @__PURE__ */ n(
656
+ ), En = se((e, i) => /* @__PURE__ */ n(
623
657
  "div",
624
658
  {
625
659
  "data-testid": e.testId || "not-set",
@@ -630,7 +664,7 @@ const Sn = se(
630
664
  },
631
665
  children: e.children
632
666
  }
633
- )), Tn = se(
667
+ )), _n = se(
634
668
  (e, i) => /* @__PURE__ */ n(
635
669
  "div",
636
670
  {
@@ -639,7 +673,7 @@ const Sn = se(
639
673
  children: e.children
640
674
  }
641
675
  )
642
- ), Nn = se((e, i) => /* @__PURE__ */ n(
676
+ ), Mn = se((e, i) => /* @__PURE__ */ n(
643
677
  "div",
644
678
  {
645
679
  "data-testid": e.testId || "not-set",
@@ -651,31 +685,31 @@ const Sn = se(
651
685
  children: e.children
652
686
  }
653
687
  ));
654
- function At(e) {
688
+ function qt(e) {
655
689
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
656
690
  }
657
691
  var de = { exports: {} }, we = {}, he = { exports: {} }, ge = { exports: {} }, K = {};
658
692
  var ke;
659
- function Lt() {
693
+ function Kt() {
660
694
  if (ke) return K;
661
695
  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) {
696
+ var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, h = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, C = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
697
+ function S(l) {
664
698
  if (typeof l == "object" && l !== null) {
665
699
  var M = l.$$typeof;
666
700
  switch (M) {
667
701
  case i:
668
702
  switch (l = l.type, l) {
669
- case D:
703
+ case C:
670
704
  case v:
671
705
  case r:
672
706
  case o:
673
- case s:
707
+ case a:
674
708
  case d:
675
709
  return l;
676
710
  default:
677
711
  switch (l = l && l.$$typeof, l) {
678
- case g:
712
+ case h:
679
713
  case m:
680
714
  case T:
681
715
  case p:
@@ -690,64 +724,64 @@ function Lt() {
690
724
  }
691
725
  }
692
726
  }
693
- function S(l) {
694
- return w(l) === v;
727
+ function D(l) {
728
+ return S(l) === v;
695
729
  }
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;
730
+ return K.AsyncMode = C, K.ConcurrentMode = v, K.ContextConsumer = h, K.ContextProvider = c, K.Element = i, K.ForwardRef = m, K.Fragment = r, K.Lazy = T, K.Memo = p, K.Portal = t, K.Profiler = o, K.StrictMode = a, K.Suspense = d, K.isAsyncMode = function(l) {
731
+ return D(l) || S(l) === C;
732
+ }, K.isConcurrentMode = D, K.isContextConsumer = function(l) {
733
+ return S(l) === h;
700
734
  }, K.isContextProvider = function(l) {
701
- return w(l) === c;
735
+ return S(l) === c;
702
736
  }, K.isElement = function(l) {
703
737
  return typeof l == "object" && l !== null && l.$$typeof === i;
704
738
  }, K.isForwardRef = function(l) {
705
- return w(l) === m;
739
+ return S(l) === m;
706
740
  }, K.isFragment = function(l) {
707
- return w(l) === r;
741
+ return S(l) === r;
708
742
  }, K.isLazy = function(l) {
709
- return w(l) === T;
743
+ return S(l) === T;
710
744
  }, K.isMemo = function(l) {
711
- return w(l) === p;
745
+ return S(l) === p;
712
746
  }, K.isPortal = function(l) {
713
- return w(l) === t;
747
+ return S(l) === t;
714
748
  }, K.isProfiler = function(l) {
715
- return w(l) === o;
749
+ return S(l) === o;
716
750
  }, K.isStrictMode = function(l) {
717
- return w(l) === s;
751
+ return S(l) === a;
718
752
  }, K.isSuspense = function(l) {
719
- return w(l) === d;
753
+ return S(l) === d;
720
754
  }, 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;
755
+ return typeof l == "string" || typeof l == "function" || l === r || l === v || l === o || l === a || l === d || l === y || typeof l == "object" && l !== null && (l.$$typeof === T || l.$$typeof === p || l.$$typeof === c || l.$$typeof === h || l.$$typeof === m || l.$$typeof === b || l.$$typeof === w || l.$$typeof === N || l.$$typeof === g);
756
+ }, K.typeOf = S, K;
723
757
  }
724
758
  var Y = {};
725
759
  var je;
726
- function qt() {
760
+ function Yt() {
727
761
  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) {
762
+ var e = typeof Symbol == "function" && Symbol.for, i = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, h = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, C = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, p = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, T = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, w = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
763
+ function S(E) {
730
764
  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);
765
+ E === r || E === v || E === o || E === a || E === d || E === y || typeof E == "object" && E !== null && (E.$$typeof === T || E.$$typeof === p || E.$$typeof === c || E.$$typeof === h || E.$$typeof === m || E.$$typeof === b || E.$$typeof === w || E.$$typeof === N || E.$$typeof === g);
732
766
  }
733
- function S(E) {
767
+ function D(E) {
734
768
  if (typeof E == "object" && E !== null) {
735
769
  var te = E.$$typeof;
736
770
  switch (te) {
737
771
  case i:
738
772
  var fe = E.type;
739
773
  switch (fe) {
740
- case D:
774
+ case C:
741
775
  case v:
742
776
  case r:
743
777
  case o:
744
- case s:
778
+ case a:
745
779
  case d:
746
780
  return fe;
747
781
  default:
748
782
  var Oe = fe && fe.$$typeof;
749
783
  switch (Oe) {
750
- case g:
784
+ case h:
751
785
  case m:
752
786
  case T:
753
787
  case p:
@@ -762,55 +796,55 @@ function qt() {
762
796
  }
763
797
  }
764
798
  }
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;
799
+ var l = C, M = v, s = h, f = c, u = i, _ = m, R = r, z = T, X = p, V = t, Q = o, H = a, ee = d, ie = !1;
766
800
  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;
801
+ return ie || (ie = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(E) || D(E) === C;
768
802
  }
769
803
  function x(E) {
770
- return S(E) === v;
804
+ return D(E) === v;
771
805
  }
772
806
  function P(E) {
773
- return S(E) === g;
807
+ return D(E) === h;
774
808
  }
775
809
  function j(E) {
776
- return S(E) === c;
810
+ return D(E) === c;
777
811
  }
778
812
  function O(E) {
779
813
  return typeof E == "object" && E !== null && E.$$typeof === i;
780
814
  }
781
815
  function W(E) {
782
- return S(E) === m;
816
+ return D(E) === m;
783
817
  }
784
818
  function A(E) {
785
- return S(E) === r;
819
+ return D(E) === r;
786
820
  }
787
821
  function I(E) {
788
- return S(E) === T;
822
+ return D(E) === T;
789
823
  }
790
824
  function k(E) {
791
- return S(E) === p;
825
+ return D(E) === p;
792
826
  }
793
827
  function L(E) {
794
- return S(E) === t;
828
+ return D(E) === t;
795
829
  }
796
- function U(E) {
797
- return S(E) === o;
830
+ function F(E) {
831
+ return D(E) === o;
798
832
  }
799
833
  function q(E) {
800
- return S(E) === s;
834
+ return D(E) === a;
801
835
  }
802
836
  function Z(E) {
803
- return S(E) === d;
837
+ return D(E) === d;
804
838
  }
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;
839
+ Y.AsyncMode = l, Y.ConcurrentMode = M, Y.ContextConsumer = s, Y.ContextProvider = f, Y.Element = u, Y.ForwardRef = _, Y.Fragment = R, Y.Lazy = z, Y.Memo = X, Y.Portal = V, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = le, Y.isConcurrentMode = x, Y.isContextConsumer = P, Y.isContextProvider = j, Y.isElement = O, Y.isForwardRef = W, Y.isFragment = A, Y.isLazy = I, Y.isMemo = k, Y.isPortal = L, Y.isProfiler = F, Y.isStrictMode = q, Y.isSuspense = Z, Y.isValidElementType = S, Y.typeOf = D;
806
840
  })()), Y;
807
841
  }
808
842
  var Ae;
809
843
  function ct() {
810
- return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? ge.exports = Lt() : ge.exports = qt()), ge.exports;
844
+ return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? ge.exports = Kt() : ge.exports = Yt()), ge.exports;
811
845
  }
812
846
  var Se, Le;
813
- function Kt() {
847
+ function Ft() {
814
848
  if (Le) return Se;
815
849
  Le = 1;
816
850
  var e = Object.getOwnPropertySymbols, i = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
@@ -819,19 +853,19 @@ function Kt() {
819
853
  throw new TypeError("Object.assign cannot be called with null or undefined");
820
854
  return Object(o);
821
855
  }
822
- function s() {
856
+ function a() {
823
857
  try {
824
858
  if (!Object.assign)
825
859
  return !1;
826
860
  var o = new String("abc");
827
861
  if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
828
862
  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) {
863
+ for (var c = {}, h = 0; h < 10; h++)
864
+ c["_" + String.fromCharCode(h)] = h;
865
+ var C = Object.getOwnPropertyNames(c).map(function(m) {
832
866
  return c[m];
833
867
  });
834
- if (D.join("") !== "0123456789")
868
+ if (C.join("") !== "0123456789")
835
869
  return !1;
836
870
  var v = {};
837
871
  return "abcdefghijklmnopqrst".split("").forEach(function(m) {
@@ -841,18 +875,18 @@ function Kt() {
841
875
  return !1;
842
876
  }
843
877
  }
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]);
878
+ return Se = a() ? Object.assign : function(o, c) {
879
+ for (var h, C = r(o), v, m = 1; m < arguments.length; m++) {
880
+ h = Object(arguments[m]);
881
+ for (var d in h)
882
+ i.call(h, d) && (C[d] = h[d]);
849
883
  if (e) {
850
- v = e(g);
884
+ v = e(h);
851
885
  for (var y = 0; y < v.length; y++)
852
- t.call(g, v[y]) && (D[v[y]] = g[v[y]]);
886
+ t.call(h, v[y]) && (C[v[y]] = h[v[y]]);
853
887
  }
854
888
  }
855
- return D;
889
+ return C;
856
890
  }, Se;
857
891
  }
858
892
  var De, qe;
@@ -867,7 +901,7 @@ function dt() {
867
901
  return Ke || (Ke = 1, Te = Function.call.bind(Object.prototype.hasOwnProperty)), Te;
868
902
  }
869
903
  var Ne, Ye;
870
- function Yt() {
904
+ function Ut() {
871
905
  if (Ye) return Ne;
872
906
  Ye = 1;
873
907
  var e = function() {
@@ -883,7 +917,7 @@ function Yt() {
883
917
  }
884
918
  };
885
919
  }
886
- function s(o, c, g, D, v) {
920
+ function a(o, c, h, C, v) {
887
921
  if (process.env.NODE_ENV !== "production") {
888
922
  for (var m in o)
889
923
  if (r(o, m)) {
@@ -891,48 +925,48 @@ function Yt() {
891
925
  try {
892
926
  if (typeof o[m] != "function") {
893
927
  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`."
928
+ (C || "React class") + ": " + h + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
895
929
  );
896
930
  throw y.name = "Invariant Violation", y;
897
931
  }
898
- d = o[m](c, m, D, g, null, i);
932
+ d = o[m](c, m, C, h, null, i);
899
933
  } catch (T) {
900
934
  d = T;
901
935
  }
902
936
  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)."
937
+ (C || "React class") + ": type specification of " + h + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
904
938
  ), d instanceof Error && !(d.message in t)) {
905
939
  t[d.message] = !0;
906
940
  var p = v ? v() : "";
907
941
  e(
908
- "Failed " + g + " type: " + d.message + (p ?? "")
942
+ "Failed " + h + " type: " + d.message + (p ?? "")
909
943
  );
910
944
  }
911
945
  }
912
946
  }
913
947
  }
914
- return s.resetWarningCache = function() {
948
+ return a.resetWarningCache = function() {
915
949
  process.env.NODE_ENV !== "production" && (t = {});
916
- }, Ne = s, Ne;
950
+ }, Ne = a, Ne;
917
951
  }
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() {
952
+ var Ee, Fe;
953
+ function Bt() {
954
+ if (Fe) return Ee;
955
+ Fe = 1;
956
+ var e = ct(), i = Ft(), t = /* @__PURE__ */ Re(), r = /* @__PURE__ */ dt(), a = /* @__PURE__ */ Ut(), o = function() {
923
957
  };
924
- process.env.NODE_ENV !== "production" && (o = function(g) {
925
- var D = "Warning: " + g;
926
- typeof console < "u" && console.error(D);
958
+ process.env.NODE_ENV !== "production" && (o = function(h) {
959
+ var C = "Warning: " + h;
960
+ typeof console < "u" && console.error(C);
927
961
  try {
928
- throw new Error(D);
962
+ throw new Error(C);
929
963
  } catch {
930
964
  }
931
965
  });
932
966
  function c() {
933
967
  return null;
934
968
  }
935
- return Ee = function(g, D) {
969
+ return Ee = function(h, C) {
936
970
  var v = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
937
971
  function d(x) {
938
972
  var P = x && (v && x[v] || x[m]);
@@ -940,22 +974,22 @@ function Ut() {
940
974
  return P;
941
975
  }
942
976
  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"),
977
+ array: w("array"),
978
+ bigint: w("bigint"),
979
+ bool: w("boolean"),
980
+ func: w("function"),
981
+ number: w("number"),
982
+ object: w("object"),
983
+ string: w("string"),
984
+ symbol: w("symbol"),
951
985
  any: N(),
952
- arrayOf: w,
953
- element: S(),
986
+ arrayOf: S,
987
+ element: D(),
954
988
  elementType: l(),
955
989
  instanceOf: M,
956
990
  node: _(),
957
991
  objectOf: f,
958
- oneOf: a,
992
+ oneOf: s,
959
993
  oneOfType: u,
960
994
  shape: z,
961
995
  exact: X
@@ -963,16 +997,16 @@ function Ut() {
963
997
  function T(x, P) {
964
998
  return x === P ? x !== 0 || 1 / x === 1 / P : x !== x && P !== P;
965
999
  }
966
- function h(x, P) {
1000
+ function g(x, P) {
967
1001
  this.message = x, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
968
1002
  }
969
- h.prototype = Error.prototype;
1003
+ g.prototype = Error.prototype;
970
1004
  function b(x) {
971
1005
  if (process.env.NODE_ENV !== "production")
972
1006
  var P = {}, j = 0;
973
- function O(A, I, k, L, U, q, Z) {
1007
+ function O(A, I, k, L, F, q, Z) {
974
1008
  if (L = L || y, q = q || k, Z !== t) {
975
- if (D) {
1009
+ if (C) {
976
1010
  var E = new Error(
977
1011
  "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
1012
  );
@@ -985,17 +1019,17 @@ function Ut() {
985
1019
  ), P[te] = !0, j++);
986
1020
  }
987
1021
  }
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);
1022
+ return I[k] == null ? A ? I[k] === null ? new g("The " + F + " `" + q + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new g("The " + F + " `" + q + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : x(I, k, L, F, q);
989
1023
  }
990
1024
  var W = O.bind(null, !1);
991
1025
  return W.isRequired = O.bind(null, !0), W;
992
1026
  }
993
- function C(x) {
1027
+ function w(x) {
994
1028
  function P(j, O, W, A, I, k) {
995
- var L = j[O], U = H(L);
996
- if (U !== x) {
1029
+ var L = j[O], F = H(L);
1030
+ if (F !== x) {
997
1031
  var q = ee(L);
998
- return new h(
1032
+ return new g(
999
1033
  "Invalid " + A + " `" + I + "` of type " + ("`" + q + "` supplied to `" + W + "`, expected ") + ("`" + x + "`."),
1000
1034
  { expectedType: x }
1001
1035
  );
@@ -1007,17 +1041,17 @@ function Ut() {
1007
1041
  function N() {
1008
1042
  return b(c);
1009
1043
  }
1010
- function w(x) {
1044
+ function S(x) {
1011
1045
  function P(j, O, W, A, I) {
1012
1046
  if (typeof x != "function")
1013
- return new h("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
1047
+ return new g("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
1014
1048
  var k = j[O];
1015
1049
  if (!Array.isArray(k)) {
1016
1050
  var L = H(k);
1017
- return new h("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an array."));
1051
+ return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an array."));
1018
1052
  }
1019
- for (var U = 0; U < k.length; U++) {
1020
- var q = x(k, U, W, A, I + "[" + U + "]", t);
1053
+ for (var F = 0; F < k.length; F++) {
1054
+ var q = x(k, F, W, A, I + "[" + F + "]", t);
1021
1055
  if (q instanceof Error)
1022
1056
  return q;
1023
1057
  }
@@ -1025,12 +1059,12 @@ function Ut() {
1025
1059
  }
1026
1060
  return b(P);
1027
1061
  }
1028
- function S() {
1062
+ function D() {
1029
1063
  function x(P, j, O, W, A) {
1030
1064
  var I = P[j];
1031
- if (!g(I)) {
1065
+ if (!h(I)) {
1032
1066
  var k = H(I);
1033
- return new h("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
1067
+ return new g("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
1034
1068
  }
1035
1069
  return null;
1036
1070
  }
@@ -1041,7 +1075,7 @@ function Ut() {
1041
1075
  var I = P[j];
1042
1076
  if (!e.isValidElementType(I)) {
1043
1077
  var k = H(I);
1044
- return new h("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
1078
+ return new g("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
1045
1079
  }
1046
1080
  return null;
1047
1081
  }
@@ -1051,13 +1085,13 @@ function Ut() {
1051
1085
  function P(j, O, W, A, I) {
1052
1086
  if (!(j[O] instanceof x)) {
1053
1087
  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 + "`."));
1088
+ return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected ") + ("instance of `" + k + "`."));
1055
1089
  }
1056
1090
  return null;
1057
1091
  }
1058
1092
  return b(P);
1059
1093
  }
1060
- function a(x) {
1094
+ function s(x) {
1061
1095
  if (!Array.isArray(x))
1062
1096
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
1063
1097
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -1066,24 +1100,24 @@ function Ut() {
1066
1100
  for (var k = j[O], L = 0; L < x.length; L++)
1067
1101
  if (T(k, x[L]))
1068
1102
  return null;
1069
- var U = JSON.stringify(x, function(Z, E) {
1103
+ var F = JSON.stringify(x, function(Z, E) {
1070
1104
  var te = ee(E);
1071
1105
  return te === "symbol" ? String(E) : E;
1072
1106
  });
1073
- return new h("Invalid " + A + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" + W + "`, expected one of " + U + "."));
1107
+ return new g("Invalid " + A + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" + W + "`, expected one of " + F + "."));
1074
1108
  }
1075
1109
  return b(P);
1076
1110
  }
1077
1111
  function f(x) {
1078
1112
  function P(j, O, W, A, I) {
1079
1113
  if (typeof x != "function")
1080
- return new h("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
1114
+ return new g("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
1081
1115
  var k = j[O], L = H(k);
1082
1116
  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);
1117
+ return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an object."));
1118
+ for (var F in k)
1119
+ if (r(k, F)) {
1120
+ var q = x(k, F, W, A, I + "." + F, t);
1087
1121
  if (q instanceof Error)
1088
1122
  return q;
1089
1123
  }
@@ -1102,25 +1136,25 @@ function Ut() {
1102
1136
  ), c;
1103
1137
  }
1104
1138
  function O(W, A, I, k, L) {
1105
- for (var U = [], q = 0; q < x.length; q++) {
1139
+ for (var F = [], q = 0; q < x.length; q++) {
1106
1140
  var Z = x[q], E = Z(W, A, I, k, L, t);
1107
1141
  if (E == null)
1108
1142
  return null;
1109
- E.data && r(E.data, "expectedType") && U.push(E.data.expectedType);
1143
+ E.data && r(E.data, "expectedType") && F.push(E.data.expectedType);
1110
1144
  }
1111
- var te = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
1112
- return new h("Invalid " + k + " `" + L + "` supplied to " + ("`" + I + "`" + te + "."));
1145
+ var te = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
1146
+ return new g("Invalid " + k + " `" + L + "` supplied to " + ("`" + I + "`" + te + "."));
1113
1147
  }
1114
1148
  return b(O);
1115
1149
  }
1116
1150
  function _() {
1117
1151
  function x(P, j, O, W, A) {
1118
- return V(P[j]) ? null : new h("Invalid " + W + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1152
+ return V(P[j]) ? null : new g("Invalid " + W + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1119
1153
  }
1120
1154
  return b(x);
1121
1155
  }
1122
1156
  function R(x, P, j, O, W) {
1123
- return new h(
1157
+ return new g(
1124
1158
  (x || "React class") + ": " + P + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
1125
1159
  );
1126
1160
  }
@@ -1128,12 +1162,12 @@ function Ut() {
1128
1162
  function P(j, O, W, A, I) {
1129
1163
  var k = j[O], L = H(k);
1130
1164
  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];
1165
+ return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
1166
+ for (var F in x) {
1167
+ var q = x[F];
1134
1168
  if (typeof q != "function")
1135
- return R(W, A, I, U, ee(q));
1136
- var Z = q(k, U, W, A, I + "." + U, t);
1169
+ return R(W, A, I, F, ee(q));
1170
+ var Z = q(k, F, W, A, I + "." + F, t);
1137
1171
  if (Z)
1138
1172
  return Z;
1139
1173
  }
@@ -1145,14 +1179,14 @@ function Ut() {
1145
1179
  function P(j, O, W, A, I) {
1146
1180
  var k = j[O], L = H(k);
1147
1181
  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) {
1182
+ return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
1183
+ var F = i({}, j[O], x);
1184
+ for (var q in F) {
1151
1185
  var Z = x[q];
1152
1186
  if (r(x, q) && typeof Z != "function")
1153
1187
  return R(W, A, I, q, ee(Z));
1154
1188
  if (!Z)
1155
- return new h(
1189
+ return new g(
1156
1190
  "Invalid " + A + " `" + I + "` key `" + q + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
1157
1191
  Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1158
1192
  );
@@ -1175,7 +1209,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1175
1209
  case "object":
1176
1210
  if (Array.isArray(x))
1177
1211
  return x.every(V);
1178
- if (x === null || g(x))
1212
+ if (x === null || h(x))
1179
1213
  return !0;
1180
1214
  var P = d(x);
1181
1215
  if (P) {
@@ -1233,20 +1267,20 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1233
1267
  function le(x) {
1234
1268
  return !x.constructor || !x.constructor.name ? y : x.constructor.name;
1235
1269
  }
1236
- return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
1270
+ return p.checkPropTypes = a, p.resetWarningCache = a.resetWarningCache, p.PropTypes = p, p;
1237
1271
  }, Ee;
1238
1272
  }
1239
- var _e, Fe;
1240
- function Ft() {
1241
- if (Fe) return _e;
1242
- Fe = 1;
1273
+ var _e, Ue;
1274
+ function Ht() {
1275
+ if (Ue) return _e;
1276
+ Ue = 1;
1243
1277
  var e = /* @__PURE__ */ Re();
1244
1278
  function i() {
1245
1279
  }
1246
1280
  function t() {
1247
1281
  }
1248
1282
  return t.resetWarningCache = i, _e = function() {
1249
- function r(c, g, D, v, m, d) {
1283
+ function r(c, h, C, v, m, d) {
1250
1284
  if (d !== e) {
1251
1285
  var y = new Error(
1252
1286
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -1255,7 +1289,7 @@ function Ft() {
1255
1289
  }
1256
1290
  }
1257
1291
  r.isRequired = r;
1258
- function s() {
1292
+ function a() {
1259
1293
  return r;
1260
1294
  }
1261
1295
  var o = {
@@ -1268,16 +1302,16 @@ function Ft() {
1268
1302
  string: r,
1269
1303
  symbol: r,
1270
1304
  any: r,
1271
- arrayOf: s,
1305
+ arrayOf: a,
1272
1306
  element: r,
1273
1307
  elementType: r,
1274
- instanceOf: s,
1308
+ instanceOf: a,
1275
1309
  node: r,
1276
- objectOf: s,
1277
- oneOf: s,
1278
- oneOfType: s,
1279
- shape: s,
1280
- exact: s,
1310
+ objectOf: a,
1311
+ oneOf: a,
1312
+ oneOfType: a,
1313
+ shape: a,
1314
+ exact: a,
1281
1315
  checkPropTypes: t,
1282
1316
  resetWarningCache: i
1283
1317
  };
@@ -1289,39 +1323,39 @@ function ut() {
1289
1323
  if (Be) return he.exports;
1290
1324
  if (Be = 1, process.env.NODE_ENV !== "production") {
1291
1325
  var e = ct(), i = !0;
1292
- he.exports = /* @__PURE__ */ Ut()(e.isElement, i);
1326
+ he.exports = /* @__PURE__ */ Bt()(e.isElement, i);
1293
1327
  } else
1294
- he.exports = /* @__PURE__ */ Ft()();
1328
+ he.exports = /* @__PURE__ */ Ht()();
1295
1329
  return he.exports;
1296
1330
  }
1297
1331
  var me = { exports: {} }, He;
1298
- function Bt() {
1332
+ function zt() {
1299
1333
  if (He) return me.exports;
1300
1334
  He = 1;
1301
1335
  function e(t) {
1302
- var r, s, o = "";
1336
+ var r, a, o = "";
1303
1337
  if (typeof t == "string" || typeof t == "number") o += t;
1304
1338
  else if (typeof t == "object") if (Array.isArray(t)) {
1305
1339
  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);
1340
+ for (r = 0; r < c; r++) t[r] && (a = e(t[r])) && (o && (o += " "), o += a);
1341
+ } else for (a in t) t[a] && (o && (o += " "), o += a);
1308
1342
  return o;
1309
1343
  }
1310
1344
  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);
1345
+ for (var t, r, a = 0, o = "", c = arguments.length; a < c; a++) (t = arguments[a]) && (r = e(t)) && (o && (o += " "), o += r);
1312
1346
  return o;
1313
1347
  }
1314
1348
  return me.exports = i, me.exports.clsx = i, me.exports;
1315
1349
  }
1316
- var F = {}, re = {}, ze;
1350
+ var B = {}, re = {}, ze;
1317
1351
  function ve() {
1318
1352
  if (ze) return re;
1319
1353
  ze = 1, Object.defineProperty(re, "__esModule", {
1320
1354
  value: !0
1321
- }), re.dontSetMe = s, re.findInArray = e, re.int = r, re.isFunction = i, re.isNum = t;
1355
+ }), re.dontSetMe = a, re.findInArray = e, re.int = r, re.isFunction = i, re.isNum = t;
1322
1356
  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];
1357
+ for (let h = 0, C = o.length; h < C; h++)
1358
+ if (c.apply(c, [o[h], h, o])) return o[h];
1325
1359
  }
1326
1360
  function i(o) {
1327
1361
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Function]";
@@ -1332,14 +1366,14 @@ function ve() {
1332
1366
  function r(o) {
1333
1367
  return parseInt(o, 10);
1334
1368
  }
1335
- function s(o, c, g) {
1369
+ function a(o, c, h) {
1336
1370
  if (o[c])
1337
- return new Error(`Invalid prop ${c} passed to ${g} - do not set this, set it on the child.`);
1371
+ return new Error(`Invalid prop ${c} passed to ${h} - do not set this, set it on the child.`);
1338
1372
  }
1339
1373
  return re;
1340
1374
  }
1341
1375
  var oe = {}, Xe;
1342
- function Ht() {
1376
+ function Xt() {
1343
1377
  if (Xe) return oe;
1344
1378
  Xe = 1, Object.defineProperty(oe, "__esModule", {
1345
1379
  value: !0
@@ -1350,32 +1384,32 @@ function Ht() {
1350
1384
  if (typeof window > "u") return "";
1351
1385
  const c = window.document?.documentElement?.style;
1352
1386
  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];
1387
+ for (let h = 0; h < e.length; h++)
1388
+ if (t(o, e[h]) in c) return e[h];
1355
1389
  return "";
1356
1390
  }
1357
1391
  function t(o, c) {
1358
- return c ? `${c}${s(o)}` : o;
1392
+ return c ? `${c}${a(o)}` : o;
1359
1393
  }
1360
1394
  function r(o, c) {
1361
1395
  return c ? `-${c.toLowerCase()}-${o}` : o;
1362
1396
  }
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];
1397
+ function a(o) {
1398
+ let c = "", h = !0;
1399
+ for (let C = 0; C < o.length; C++)
1400
+ h ? (c += o[C].toUpperCase(), h = !1) : o[C] === "-" ? h = !0 : c += o[C];
1367
1401
  return c;
1368
1402
  }
1369
1403
  return oe.default = i(), oe;
1370
1404
  }
1371
1405
  var Ve;
1372
1406
  function We() {
1373
- if (Ve) return F;
1374
- Ve = 1, Object.defineProperty(F, "__esModule", {
1407
+ if (Ve) return B;
1408
+ Ve = 1, Object.defineProperty(B, "__esModule", {
1375
1409
  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) {
1410
+ }), B.addClassName = l, B.addEvent = c, B.addUserSelectStyles = N, B.createCSSTransform = p, B.createSVGTransform = T, B.getTouch = b, B.getTouchIdentifier = w, B.getTranslation = g, B.innerHeight = m, B.innerWidth = d, B.matchesSelector = a, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = y, B.outerHeight = C, B.outerWidth = v, B.removeClassName = M, B.removeEvent = h, B.scheduleRemoveUserSelectStyles = S;
1411
+ var e = ve(), i = t(Xt());
1412
+ function t(s, f) {
1379
1413
  if (typeof WeakMap == "function") var u = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
1380
1414
  return (t = function(R, z) {
1381
1415
  if (!z && R && R.__esModule) return R;
@@ -1387,134 +1421,134 @@ function We() {
1387
1421
  }
1388
1422
  for (const H in R) H !== "default" && {}.hasOwnProperty.call(R, H) && ((V = (X = Object.defineProperty) && Object.getOwnPropertyDescriptor(R, H)) && (V.get || V.set) ? X(Q, H, V) : Q[H] = R[H]);
1389
1423
  return Q;
1390
- })(a, f);
1424
+ })(s, f);
1391
1425
  }
1392
1426
  let r = "";
1393
- function s(a, f) {
1427
+ function a(s, f) {
1394
1428
  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;
1429
+ return (0, e.isFunction)(s[u]);
1430
+ })), (0, e.isFunction)(s[r]) ? s[r](f) : !1;
1397
1431
  }
1398
- function o(a, f, u) {
1399
- let _ = a;
1432
+ function o(s, f, u) {
1433
+ let _ = s;
1400
1434
  do {
1401
- if (s(_, f)) return !0;
1435
+ if (a(_, f)) return !0;
1402
1436
  if (_ === u) return !1;
1403
1437
  _ = _.parentNode;
1404
1438
  } while (_);
1405
1439
  return !1;
1406
1440
  }
1407
- function c(a, f, u, _) {
1408
- if (!a) return;
1441
+ function c(s, f, u, _) {
1442
+ if (!s) return;
1409
1443
  const R = {
1410
1444
  capture: !0,
1411
1445
  ..._
1412
1446
  };
1413
- a.addEventListener ? a.addEventListener(f, u, R) : a.attachEvent ? a.attachEvent("on" + f, u) : a["on" + f] = u;
1447
+ s.addEventListener ? s.addEventListener(f, u, R) : s.attachEvent ? s.attachEvent("on" + f, u) : s["on" + f] = u;
1414
1448
  }
1415
- function g(a, f, u, _) {
1416
- if (!a) return;
1449
+ function h(s, f, u, _) {
1450
+ if (!s) return;
1417
1451
  const R = {
1418
1452
  capture: !0,
1419
1453
  ..._
1420
1454
  };
1421
- a.removeEventListener ? a.removeEventListener(f, u, R) : a.detachEvent ? a.detachEvent("on" + f, u) : a["on" + f] = null;
1455
+ s.removeEventListener ? s.removeEventListener(f, u, R) : s.detachEvent ? s.detachEvent("on" + f, u) : s["on" + f] = null;
1422
1456
  }
1423
- function D(a) {
1424
- let f = a.clientHeight;
1425
- const u = a.ownerDocument.defaultView.getComputedStyle(a);
1457
+ function C(s) {
1458
+ let f = s.clientHeight;
1459
+ const u = s.ownerDocument.defaultView.getComputedStyle(s);
1426
1460
  return f += (0, e.int)(u.borderTopWidth), f += (0, e.int)(u.borderBottomWidth), f;
1427
1461
  }
1428
- function v(a) {
1429
- let f = a.clientWidth;
1430
- const u = a.ownerDocument.defaultView.getComputedStyle(a);
1462
+ function v(s) {
1463
+ let f = s.clientWidth;
1464
+ const u = s.ownerDocument.defaultView.getComputedStyle(s);
1431
1465
  return f += (0, e.int)(u.borderLeftWidth), f += (0, e.int)(u.borderRightWidth), f;
1432
1466
  }
1433
- function m(a) {
1434
- let f = a.clientHeight;
1435
- const u = a.ownerDocument.defaultView.getComputedStyle(a);
1467
+ function m(s) {
1468
+ let f = s.clientHeight;
1469
+ const u = s.ownerDocument.defaultView.getComputedStyle(s);
1436
1470
  return f -= (0, e.int)(u.paddingTop), f -= (0, e.int)(u.paddingBottom), f;
1437
1471
  }
1438
- function d(a) {
1439
- let f = a.clientWidth;
1440
- const u = a.ownerDocument.defaultView.getComputedStyle(a);
1472
+ function d(s) {
1473
+ let f = s.clientWidth;
1474
+ const u = s.ownerDocument.defaultView.getComputedStyle(s);
1441
1475
  return f -= (0, e.int)(u.paddingLeft), f -= (0, e.int)(u.paddingRight), f;
1442
1476
  }
1443
- function y(a, f, u) {
1477
+ function y(s, f, u) {
1444
1478
  const R = f === f.ownerDocument.body ? {
1445
1479
  left: 0,
1446
1480
  top: 0
1447
- } : f.getBoundingClientRect(), z = (a.clientX + f.scrollLeft - R.left) / u, X = (a.clientY + f.scrollTop - R.top) / u;
1481
+ } : f.getBoundingClientRect(), z = (s.clientX + f.scrollLeft - R.left) / u, X = (s.clientY + f.scrollTop - R.top) / u;
1448
1482
  return {
1449
1483
  x: z,
1450
1484
  y: X
1451
1485
  };
1452
1486
  }
1453
- function p(a, f) {
1454
- const u = h(a, f, "px");
1487
+ function p(s, f) {
1488
+ const u = g(s, f, "px");
1455
1489
  return {
1456
1490
  [(0, i.browserPrefixToKey)("transform", i.default)]: u
1457
1491
  };
1458
1492
  }
1459
- function T(a, f) {
1460
- return h(a, f, "");
1493
+ function T(s, f) {
1494
+ return g(s, f, "");
1461
1495
  }
1462
- function h(a, f, u) {
1496
+ function g(s, f, u) {
1463
1497
  let {
1464
1498
  x: _,
1465
1499
  y: R
1466
- } = a, z = `translate(${_}${u},${R}${u})`;
1500
+ } = s, z = `translate(${_}${u},${R}${u})`;
1467
1501
  if (f) {
1468
1502
  const X = `${typeof f.x == "string" ? f.x : f.x + u}`, V = `${typeof f.y == "string" ? f.y : f.y + u}`;
1469
1503
  z = `translate(${X}, ${V})` + z;
1470
1504
  }
1471
1505
  return z;
1472
1506
  }
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);
1507
+ function b(s, f) {
1508
+ return s.targetTouches && (0, e.findInArray)(s.targetTouches, (u) => f === u.identifier) || s.changedTouches && (0, e.findInArray)(s.changedTouches, (u) => f === u.identifier);
1475
1509
  }
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;
1510
+ function w(s) {
1511
+ if (s.targetTouches && s.targetTouches[0]) return s.targetTouches[0].identifier;
1512
+ if (s.changedTouches && s.changedTouches[0]) return s.changedTouches[0].identifier;
1479
1513
  }
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;}
1514
+ function N(s) {
1515
+ if (!s) return;
1516
+ let f = s.getElementById("react-draggable-style-el");
1517
+ f || (f = s.createElement("style"), f.type = "text/css", f.id = "react-draggable-style-el", f.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
1484
1518
  `, 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");
1519
+ `, s.getElementsByTagName("head")[0].appendChild(f)), s.body && l(s.body, "react-draggable-transparent-selection");
1486
1520
  }
1487
- function w(a) {
1521
+ function S(s) {
1488
1522
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
1489
- S(a);
1490
- }) : S(a);
1523
+ D(s);
1524
+ }) : D(s);
1491
1525
  }
1492
- function S(a) {
1493
- if (a)
1526
+ function D(s) {
1527
+ if (s)
1494
1528
  try {
1495
- if (a.body && M(a.body, "react-draggable-transparent-selection"), a.selection)
1496
- a.selection.empty();
1529
+ if (s.body && M(s.body, "react-draggable-transparent-selection"), s.selection)
1530
+ s.selection.empty();
1497
1531
  else {
1498
- const f = (a.defaultView || window).getSelection();
1532
+ const f = (s.defaultView || window).getSelection();
1499
1533
  f && f.type !== "Caret" && f.removeAllRanges();
1500
1534
  }
1501
1535
  } catch {
1502
1536
  }
1503
1537
  }
1504
- function l(a, f) {
1505
- a.classList ? a.classList.add(f) : a.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (a.className += ` ${f}`);
1538
+ function l(s, f) {
1539
+ s.classList ? s.classList.add(f) : s.className.match(new RegExp(`(?:^|\\s)${f}(?!\\S)`)) || (s.className += ` ${f}`);
1506
1540
  }
1507
- function M(a, f) {
1508
- a.classList ? a.classList.remove(f) : a.className = a.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1541
+ function M(s, f) {
1542
+ s.classList ? s.classList.remove(f) : s.className = s.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
1509
1543
  }
1510
- return F;
1544
+ return B;
1511
1545
  }
1512
1546
  var ne = {}, Ge;
1513
1547
  function ft() {
1514
1548
  if (Ge) return ne;
1515
1549
  Ge = 1, Object.defineProperty(ne, "__esModule", {
1516
1550
  value: !0
1517
- }), ne.canDragX = s, ne.canDragY = o, ne.createCoreData = g, ne.createDraggableData = D, ne.getBoundPosition = t, ne.getControlPosition = c, ne.snapToGrid = r;
1551
+ }), ne.canDragX = a, ne.canDragY = o, ne.createCoreData = h, ne.createDraggableData = C, ne.getBoundPosition = t, ne.getControlPosition = c, ne.snapToGrid = r;
1518
1552
  var e = ve(), i = We();
1519
1553
  function t(d, y, p) {
1520
1554
  if (!d.props.bounds) return [y, p];
@@ -1522,29 +1556,29 @@ function ft() {
1522
1556
  bounds: T
1523
1557
  } = d.props;
1524
1558
  T = typeof T == "string" ? T : v(T);
1525
- const h = m(d);
1559
+ const g = m(d);
1526
1560
  if (typeof T == "string") {
1527
1561
  const {
1528
1562
  ownerDocument: b
1529
- } = h, C = b.defaultView;
1563
+ } = g, w = b.defaultView;
1530
1564
  let N;
1531
- if (T === "parent" ? N = h.parentNode : N = h.getRootNode().querySelector(T), !(N instanceof C.HTMLElement))
1565
+ if (T === "parent" ? N = g.parentNode : N = g.getRootNode().querySelector(T), !(N instanceof w.HTMLElement))
1532
1566
  throw new Error('Bounds selector "' + T + '" could not find an element.');
1533
- const w = N, S = C.getComputedStyle(h), l = C.getComputedStyle(w);
1567
+ const S = N, D = w.getComputedStyle(g), l = w.getComputedStyle(S);
1534
1568
  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)
1569
+ left: -g.offsetLeft + (0, e.int)(l.paddingLeft) + (0, e.int)(D.marginLeft),
1570
+ top: -g.offsetTop + (0, e.int)(l.paddingTop) + (0, e.int)(D.marginTop),
1571
+ right: (0, i.innerWidth)(S) - (0, i.outerWidth)(g) - g.offsetLeft + (0, e.int)(l.paddingRight) - (0, e.int)(D.marginRight),
1572
+ bottom: (0, i.innerHeight)(S) - (0, i.outerHeight)(g) - g.offsetTop + (0, e.int)(l.paddingBottom) - (0, e.int)(D.marginBottom)
1539
1573
  };
1540
1574
  }
1541
1575
  return (0, e.isNum)(T.right) && (y = Math.min(y, T.right)), (0, e.isNum)(T.bottom) && (p = Math.min(p, T.bottom)), (0, e.isNum)(T.left) && (y = Math.max(y, T.left)), (0, e.isNum)(T.top) && (p = Math.max(p, T.top)), [y, p];
1542
1576
  }
1543
1577
  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];
1578
+ const T = Math.round(y / d[0]) * d[0], g = Math.round(p / d[1]) * d[1];
1579
+ return [T, g];
1546
1580
  }
1547
- function s(d) {
1581
+ function a(d) {
1548
1582
  return d.props.axis === "both" || d.props.axis === "x";
1549
1583
  }
1550
1584
  function o(d) {
@@ -1553,13 +1587,13 @@ function ft() {
1553
1587
  function c(d, y, p) {
1554
1588
  const T = typeof y == "number" ? (0, i.getTouch)(d, y) : null;
1555
1589
  if (typeof y == "number" && !T) return null;
1556
- const h = m(p), b = p.props.offsetParent || h.offsetParent || h.ownerDocument.body;
1590
+ const g = m(p), b = p.props.offsetParent || g.offsetParent || g.ownerDocument.body;
1557
1591
  return (0, i.offsetXYFromParent)(T || d, b, p.props.scale);
1558
1592
  }
1559
- function g(d, y, p) {
1560
- const T = !(0, e.isNum)(d.lastX), h = m(d);
1593
+ function h(d, y, p) {
1594
+ const T = !(0, e.isNum)(d.lastX), g = m(d);
1561
1595
  return T ? {
1562
- node: h,
1596
+ node: g,
1563
1597
  deltaX: 0,
1564
1598
  deltaY: 0,
1565
1599
  lastX: y,
@@ -1567,7 +1601,7 @@ function ft() {
1567
1601
  x: y,
1568
1602
  y: p
1569
1603
  } : {
1570
- node: h,
1604
+ node: g,
1571
1605
  deltaX: y - d.lastX,
1572
1606
  deltaY: p - d.lastY,
1573
1607
  lastX: d.lastX,
@@ -1576,7 +1610,7 @@ function ft() {
1576
1610
  y: p
1577
1611
  };
1578
1612
  }
1579
- function D(d, y) {
1613
+ function C(d, y) {
1580
1614
  const p = d.props.scale;
1581
1615
  return {
1582
1616
  node: y.node,
@@ -1615,45 +1649,45 @@ function ht() {
1615
1649
  return pe;
1616
1650
  }
1617
1651
  var Je;
1618
- function zt() {
1652
+ function Vt() {
1619
1653
  if (Je) return ue;
1620
1654
  Je = 1, Object.defineProperty(ue, "__esModule", {
1621
1655
  value: !0
1622
1656
  }), 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 };
1657
+ var e = C(be), i = h(/* @__PURE__ */ ut()), t = h(ot), r = We(), a = ft(), o = ve(), c = h(ht());
1658
+ function h(g) {
1659
+ return g && g.__esModule ? g : { default: g };
1626
1660
  }
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);
1661
+ function C(g, b) {
1662
+ if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
1663
+ return (C = function(S, D) {
1664
+ if (!D && S && S.__esModule) return S;
1665
+ var l, M, s = { __proto__: null, default: S };
1666
+ if (S === null || typeof S != "object" && typeof S != "function") return s;
1667
+ if (l = D ? N : w) {
1668
+ if (l.has(S)) return l.get(S);
1669
+ l.set(S, s);
1636
1670
  }
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);
1671
+ for (const f in S) f !== "default" && {}.hasOwnProperty.call(S, f) && ((M = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(S, f)) && (M.get || M.set) ? l(s, f, M) : s[f] = S[f]);
1672
+ return s;
1673
+ })(g, b);
1640
1674
  }
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;
1675
+ function v(g, b, w) {
1676
+ return (b = m(b)) in g ? Object.defineProperty(g, b, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : g[b] = w, g;
1643
1677
  }
1644
- function m(h) {
1645
- var b = d(h, "string");
1678
+ function m(g) {
1679
+ var b = d(g, "string");
1646
1680
  return typeof b == "symbol" ? b : b + "";
1647
1681
  }
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);
1682
+ function d(g, b) {
1683
+ if (typeof g != "object" || !g) return g;
1684
+ var w = g[Symbol.toPrimitive];
1685
+ if (w !== void 0) {
1686
+ var N = w.call(g, b);
1653
1687
  if (typeof N != "object") return N;
1654
1688
  throw new TypeError("@@toPrimitive must return a primitive value.");
1655
1689
  }
1656
- return (b === "string" ? String : Number)(h);
1690
+ return (b === "string" ? String : Number)(g);
1657
1691
  }
1658
1692
  const y = {
1659
1693
  touch: {
@@ -1671,63 +1705,63 @@ function zt() {
1671
1705
  constructor() {
1672
1706
  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
1707
  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)
1708
+ const w = this.findDOMNode();
1709
+ if (!w || !w.ownerDocument || !w.ownerDocument.body)
1676
1710
  throw new Error("<DraggableCore> not mounted on DragStart!");
1677
1711
  const {
1678
1712
  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))
1713
+ } = w;
1714
+ 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
1715
  return;
1682
1716
  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;
1717
+ const S = (0, r.getTouchIdentifier)(b);
1718
+ this.touchIdentifier = S;
1719
+ const D = (0, a.getControlPosition)(b, S, this);
1720
+ if (D == null) return;
1687
1721
  const {
1688
1722
  x: l,
1689
1723
  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));
1724
+ } = D, s = (0, a.createCoreData)(this, l, M);
1725
+ (0, c.default)("DraggableCore: handleDragStart: %j", s), (0, c.default)("calling", this.props.onStart), !(this.props.onStart(b, s) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, r.addUserSelectStyles)(N), this.dragging = !0, this.lastX = l, this.lastY = M, (0, r.addEvent)(N, p.move, this.handleDrag), (0, r.addEvent)(N, p.stop, this.handleDragStop));
1692
1726
  }), v(this, "handleDrag", (b) => {
1693
- const C = (0, s.getControlPosition)(b, this.touchIdentifier, this);
1694
- if (C == null) return;
1727
+ const w = (0, a.getControlPosition)(b, this.touchIdentifier, this);
1728
+ if (w == null) return;
1695
1729
  let {
1696
1730
  x: N,
1697
- y: w
1698
- } = C;
1731
+ y: S
1732
+ } = w;
1699
1733
  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;
1734
+ let M = N - this.lastX, s = S - this.lastY;
1735
+ if ([M, s] = (0, a.snapToGrid)(this.props.grid, M, s), !M && !s) return;
1736
+ N = this.lastX + M, S = this.lastY + s;
1703
1737
  }
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) {
1738
+ const D = (0, a.createCoreData)(this, N, S);
1739
+ if ((0, c.default)("DraggableCore: handleDrag: %j", D), this.props.onDrag(b, D) === !1 || this.mounted === !1) {
1706
1740
  try {
1707
1741
  this.handleDragStop(new MouseEvent("mouseup"));
1708
1742
  } 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);
1743
+ const s = document.createEvent("MouseEvents");
1744
+ s.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(s);
1711
1745
  }
1712
1746
  return;
1713
1747
  }
1714
- this.lastX = N, this.lastY = w;
1748
+ this.lastX = N, this.lastY = S;
1715
1749
  }), v(this, "handleDragStop", (b) => {
1716
1750
  if (!this.dragging) return;
1717
- const C = (0, s.getControlPosition)(b, this.touchIdentifier, this);
1718
- if (C == null) return;
1751
+ const w = (0, a.getControlPosition)(b, this.touchIdentifier, this);
1752
+ if (w == null) return;
1719
1753
  let {
1720
1754
  x: N,
1721
- y: w
1722
- } = C;
1755
+ y: S
1756
+ } = w;
1723
1757
  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;
1758
+ let s = N - this.lastX || 0, f = S - this.lastY || 0;
1759
+ [s, f] = (0, a.snapToGrid)(this.props.grid, s, f), N = this.lastX + s, S = this.lastY + f;
1726
1760
  }
1727
- const S = (0, s.createCoreData)(this, N, w);
1728
- if (this.props.onStop(b, S) === !1 || this.mounted === !1) return !1;
1761
+ const D = (0, a.createCoreData)(this, N, S);
1762
+ if (this.props.onStop(b, D) === !1 || this.mounted === !1) return !1;
1729
1763
  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));
1764
+ M && this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(M.ownerDocument), (0, c.default)("DraggableCore: handleDragStop: %j", D), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, M && ((0, c.default)("DraggableCore: Removing handlers"), (0, r.removeEvent)(M.ownerDocument, p.move, this.handleDrag), (0, r.removeEvent)(M.ownerDocument, p.stop, this.handleDragStop));
1731
1765
  }), v(this, "onMouseDown", (b) => (p = y.mouse, this.handleDragStart(b))), v(this, "onMouseUp", (b) => (p = y.mouse, this.handleDragStop(b))), v(this, "onTouchStart", (b) => (p = y.touch, this.handleDragStart(b))), v(this, "onTouchEnd", (b) => (p = y.touch, this.handleDragStop(b)));
1732
1766
  }
1733
1767
  componentDidMount() {
@@ -1742,11 +1776,11 @@ function zt() {
1742
1776
  const b = this.findDOMNode();
1743
1777
  if (b) {
1744
1778
  const {
1745
- ownerDocument: C
1779
+ ownerDocument: w
1746
1780
  } = 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, {
1781
+ (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
1782
  passive: !1
1749
- }), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(C);
1783
+ }), this.props.enableUserSelectHack && (0, r.scheduleRemoveUserSelectStyles)(w);
1750
1784
  }
1751
1785
  }
1752
1786
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
@@ -1799,8 +1833,8 @@ function zt() {
1799
1833
  * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
1800
1834
  * instead of using the parent node.
1801
1835
  */
1802
- offsetParent: function(h, b) {
1803
- if (h[b] && h[b].nodeType !== 1)
1836
+ offsetParent: function(g, b) {
1837
+ if (g[b] && g[b].nodeType !== 1)
1804
1838
  throw new Error("Draggable's offsetParent must be a DOM Node.");
1805
1839
  },
1806
1840
  /**
@@ -1915,91 +1949,91 @@ function zt() {
1915
1949
  }), ue;
1916
1950
  }
1917
1951
  var Qe;
1918
- function Xt() {
1952
+ function Gt() {
1919
1953
  return Qe || (Qe = 1, (function(e) {
1920
1954
  Object.defineProperty(e, "__esModule", {
1921
1955
  value: !0
1922
1956
  }), Object.defineProperty(e, "DraggableCore", {
1923
1957
  enumerable: !0,
1924
1958
  get: function() {
1925
- return D.default;
1959
+ return C.default;
1926
1960
  }
1927
1961
  }), 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 };
1962
+ var i = d(be), t = m(/* @__PURE__ */ ut()), r = m(ot), a = zt(), o = We(), c = ft(), h = ve(), C = m(Vt()), v = m(ht());
1963
+ function m(w) {
1964
+ return w && w.__esModule ? w : { default: w };
1931
1965
  }
1932
- function d(C, N) {
1933
- if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
1966
+ function d(w, N) {
1967
+ if (typeof WeakMap == "function") var S = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
1934
1968
  return (d = function(l, M) {
1935
1969
  if (!M && l && l.__esModule) return l;
1936
- var a, f, u = { __proto__: null, default: l };
1970
+ var s, f, u = { __proto__: null, default: l };
1937
1971
  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);
1972
+ if (s = M ? D : S) {
1973
+ if (s.has(l)) return s.get(l);
1974
+ s.set(l, u);
1941
1975
  }
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[_]);
1976
+ for (const _ in l) _ !== "default" && {}.hasOwnProperty.call(l, _) && ((f = (s = Object.defineProperty) && Object.getOwnPropertyDescriptor(l, _)) && (f.get || f.set) ? s(u, _, f) : u[_] = l[_]);
1943
1977
  return u;
1944
- })(C, N);
1978
+ })(w, N);
1945
1979
  }
1946
1980
  function y() {
1947
- return y = Object.assign ? Object.assign.bind() : function(C) {
1981
+ return y = Object.assign ? Object.assign.bind() : function(w) {
1948
1982
  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]);
1983
+ var S = arguments[N];
1984
+ for (var D in S) ({}).hasOwnProperty.call(S, D) && (w[D] = S[D]);
1951
1985
  }
1952
- return C;
1986
+ return w;
1953
1987
  }, y.apply(null, arguments);
1954
1988
  }
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;
1989
+ function p(w, N, S) {
1990
+ return (N = T(N)) in w ? Object.defineProperty(w, N, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : w[N] = S, w;
1957
1991
  }
1958
- function T(C) {
1959
- var N = h(C, "string");
1992
+ function T(w) {
1993
+ var N = g(w, "string");
1960
1994
  return typeof N == "symbol" ? N : N + "";
1961
1995
  }
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;
1996
+ function g(w, N) {
1997
+ if (typeof w != "object" || !w) return w;
1998
+ var S = w[Symbol.toPrimitive];
1999
+ if (S !== void 0) {
2000
+ var D = S.call(w, N);
2001
+ if (typeof D != "object") return D;
1968
2002
  throw new TypeError("@@toPrimitive must return a primitive value.");
1969
2003
  }
1970
- return (N === "string" ? String : Number)(C);
2004
+ return (N === "string" ? String : Number)(w);
1971
2005
  }
1972
2006
  class b extends i.Component {
1973
2007
  // React 16.3+
1974
2008
  // Arity (props, state)
1975
- static getDerivedStateFromProps(N, w) {
2009
+ static getDerivedStateFromProps(N, S) {
1976
2010
  let {
1977
- position: S
2011
+ position: D
1978
2012
  } = N, {
1979
2013
  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,
2014
+ } = S;
2015
+ return D && (!l || D.x !== l.x || D.y !== l.y) ? ((0, v.default)("Draggable: getDerivedStateFromProps %j", {
2016
+ position: D,
1983
2017
  prevPropsPosition: l
1984
2018
  }), {
1985
- x: S.x,
1986
- y: S.y,
2019
+ x: D.x,
2020
+ y: D.y,
1987
2021
  prevPropsPosition: {
1988
- ...S
2022
+ ...D
1989
2023
  }
1990
2024
  }) : null;
1991
2025
  }
1992
2026
  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;
2027
+ super(N), p(this, "onDragStart", (S, D) => {
2028
+ if ((0, v.default)("Draggable: onDragStart: %j", D), this.props.onStart(S, (0, c.createDraggableData)(this, D)) === !1) return !1;
1995
2029
  this.setState({
1996
2030
  dragging: !0,
1997
2031
  dragged: !0
1998
2032
  });
1999
- }), p(this, "onDrag", (w, S) => {
2033
+ }), p(this, "onDrag", (S, D) => {
2000
2034
  if (!this.state.dragging) return !1;
2001
- (0, v.default)("Draggable: onDrag: %j", S);
2002
- const l = (0, c.createDraggableData)(this, S), M = {
2035
+ (0, v.default)("Draggable: onDrag: %j", D);
2036
+ const l = (0, c.createDraggableData)(this, D), M = {
2003
2037
  x: l.x,
2004
2038
  y: l.y,
2005
2039
  slackX: 0,
@@ -2014,11 +2048,11 @@ function Xt() {
2014
2048
  const [_, R] = (0, c.getBoundPosition)(this, M.x, M.y);
2015
2049
  M.x = _, M.y = R, M.slackX = this.state.slackX + (f - M.x), M.slackY = this.state.slackY + (u - M.y), l.x = M.x, l.y = M.y, l.deltaX = M.x - this.state.x, l.deltaY = M.y - this.state.y;
2016
2050
  }
2017
- if (this.props.onDrag(w, l) === !1) return !1;
2051
+ if (this.props.onDrag(S, l) === !1) return !1;
2018
2052
  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);
2053
+ }), p(this, "onDragStop", (S, D) => {
2054
+ if (!this.state.dragging || this.props.onStop(S, (0, c.createDraggableData)(this, D)) === !1) return !1;
2055
+ (0, v.default)("Draggable: onDragStop: %j", D);
2022
2056
  const M = {
2023
2057
  dragging: !1,
2024
2058
  slackX: 0,
@@ -2068,11 +2102,11 @@ function Xt() {
2068
2102
  render() {
2069
2103
  const {
2070
2104
  axis: N,
2071
- bounds: w,
2072
- children: S,
2105
+ bounds: S,
2106
+ children: D,
2073
2107
  defaultPosition: l,
2074
2108
  defaultClassName: M,
2075
- defaultClassNameDragging: a,
2109
+ defaultClassNameDragging: s,
2076
2110
  defaultClassNameDragged: f,
2077
2111
  position: u,
2078
2112
  positionOffset: _,
@@ -2087,18 +2121,18 @@ function Xt() {
2087
2121
  y: (0, c.canDragY)(this) && H ? this.state.y : ee.y
2088
2122
  };
2089
2123
  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,
2124
+ const le = (0, a.clsx)(D.props.className || "", M, {
2125
+ [s]: this.state.dragging,
2092
2126
  [f]: this.state.dragged
2093
2127
  });
2094
- return /* @__PURE__ */ i.createElement(D.default, y({}, z, {
2128
+ return /* @__PURE__ */ i.createElement(C.default, y({}, z, {
2095
2129
  onStart: this.onDragStart,
2096
2130
  onDrag: this.onDrag,
2097
2131
  onStop: this.onDragStop
2098
- }), /* @__PURE__ */ i.cloneElement(i.Children.only(S), {
2132
+ }), /* @__PURE__ */ i.cloneElement(i.Children.only(D), {
2099
2133
  className: le,
2100
2134
  style: {
2101
- ...S.props.style,
2135
+ ...D.props.style,
2102
2136
  ...X
2103
2137
  },
2104
2138
  transform: V
@@ -2107,7 +2141,7 @@ function Xt() {
2107
2141
  }
2108
2142
  e.default = b, p(b, "displayName", "Draggable"), p(b, "propTypes", {
2109
2143
  // Accepts all props <DraggableCore> accepts.
2110
- ...D.default.propTypes,
2144
+ ...C.default.propTypes,
2111
2145
  /**
2112
2146
  * `axis` determines which axis the draggable can move.
2113
2147
  *
@@ -2209,11 +2243,11 @@ function Xt() {
2209
2243
  /**
2210
2244
  * These properties should be defined on the child, not here.
2211
2245
  */
2212
- className: g.dontSetMe,
2213
- style: g.dontSetMe,
2214
- transform: g.dontSetMe
2246
+ className: h.dontSetMe,
2247
+ style: h.dontSetMe,
2248
+ transform: h.dontSetMe
2215
2249
  }), p(b, "defaultProps", {
2216
- ...D.default.defaultProps,
2250
+ ...C.default.defaultProps,
2217
2251
  axis: "both",
2218
2252
  bounds: !1,
2219
2253
  defaultClassName: "react-draggable",
@@ -2228,17 +2262,17 @@ function Xt() {
2228
2262
  })(we)), we;
2229
2263
  }
2230
2264
  var et;
2231
- function Vt() {
2265
+ function Zt() {
2232
2266
  if (et) return de.exports;
2233
2267
  et = 1;
2234
2268
  const {
2235
2269
  default: e,
2236
2270
  DraggableCore: i
2237
- } = Xt();
2271
+ } = Gt();
2238
2272
  return de.exports = e, de.exports.default = e, de.exports.DraggableCore = i, de.exports;
2239
2273
  }
2240
- var Gt = Vt();
2241
- const Zt = /* @__PURE__ */ At(Gt), Jt = se((e, i) => {
2274
+ var Jt = Zt();
2275
+ const Qt = /* @__PURE__ */ qt(Jt), en = se((e, i) => {
2242
2276
  const r = {
2243
2277
  ...{
2244
2278
  // 1. Take it out of the document flow
@@ -2256,14 +2290,14 @@ const Zt = /* @__PURE__ */ At(Gt), Jt = se((e, i) => {
2256
2290
  boxShadow: "rgba(0, 0, 0, 0.5) 7px 7px 10px 0px"
2257
2291
  },
2258
2292
  ...e.style || {}
2259
- }, s = e.testId || "not-set", o = e.className || "panel", c = vt(null);
2293
+ }, a = e.testId || "not-set", o = e.className || "panel", c = vt(null);
2260
2294
  return (
2261
2295
  // 3. Pass the internal ref to the Draggable component via 'nodeRef'
2262
2296
  /* @__PURE__ */ n(
2263
- Zt,
2297
+ Qt,
2264
2298
  {
2265
2299
  nodeRef: c,
2266
- "data-testid": s,
2300
+ "data-testid": a,
2267
2301
  axis: "both",
2268
2302
  handle: ".handle",
2269
2303
  onStart: (v, m) => {
@@ -2279,7 +2313,7 @@ const Zt = /* @__PURE__ */ At(Gt), Jt = se((e, i) => {
2279
2313
  )
2280
2314
  );
2281
2315
  });
2282
- function _n({ children: e, addCssClasses: i }) {
2316
+ function $n({ children: e, addCssClasses: i }) {
2283
2317
  const t = G(
2284
2318
  "w-full h-full flex-1 flex flex-col",
2285
2319
  (i || "gap-2 items-end justify-end content-end").trim()
@@ -2295,42 +2329,42 @@ function _n({ children: e, addCssClasses: i }) {
2295
2329
  }
2296
2330
  );
2297
2331
  }
2298
- function Mn({ children: e, addCssClasses: i }) {
2332
+ function Rn({ children: e, addCssClasses: i }) {
2299
2333
  const t = G(
2300
2334
  "w-full flex flex-col",
2301
2335
  (i || "items-end").trim()
2302
2336
  );
2303
2337
  return /* @__PURE__ */ n("div", { className: t, children: e });
2304
2338
  }
2305
- const Pn = (e) => {
2339
+ const Wn = (e) => {
2306
2340
  console.warn("showToast TODO", e);
2307
- }, Qt = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, $n = se((e, i) => {
2341
+ }, tn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, In = se((e, i) => {
2308
2342
  let t = pt(Number(e.zoomScale || 0));
2309
- const r = e.responsiveGrid || !1, s = e.isEditing || !1, o = {
2343
+ const r = e.responsiveGrid || !1, a = e.isEditing || !1, o = {
2310
2344
  "--bwj-dashboard-transform-scale": t,
2311
- "--bwj-dashboard-add-cols": Qt(t)
2345
+ "--bwj-dashboard-add-cols": tn(t)
2312
2346
  }, c = G(
2313
2347
  "dashboard-main-grid w-full",
2314
- s ? "editing" : "",
2348
+ a ? "editing" : "",
2315
2349
  r ? "responsive-grid" : "",
2316
- `border border-dashed ${s ? "border-primary border-opacity-50" : "border-transparent"}`
2350
+ `border border-dashed ${a ? "border-primary border-opacity-50" : "border-transparent"}`
2317
2351
  );
2318
2352
  return /* @__PURE__ */ n("div", { className: c, style: o, children: e.children });
2319
- }), Me = "size-5", en = (e, i) => {
2353
+ }), Me = "size-5", nn = (e, i) => {
2320
2354
  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`);
2355
+ let a = `dashboard-widget ${e.isEditing ? "editing" : ""} border border-solid`;
2356
+ r ? a = `${a} border-transparent border-opacity-0` : (e.borderCssClasses || "").trim().length > 0 ? a = `${a} ${e.borderCssClasses}` : a = `${a} border-card-invert border-opacity-20`, e.noShadow && (a = `${a} no-shadow`), e.noPadding && (a = `${a} no-padding p-0`), (e.backgroundCssClasses || "").trim().length > 0 ? a = `${a} ${e.backgroundCssClasses}` : a = `${a} bg-card content-card`, ["large", "xlarge"].indexOf(e.size || "") > -1 && (a = `${a} ${e.size}-widget`);
2323
2357
  const o = () => {
2324
2358
  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(
2359
+ }, c = (C) => {
2360
+ e.onMoveClick && e.widgetKey && e.onMoveClick(C, e.widgetKey, e.parentWidgetKey);
2361
+ }, h = G(
2328
2362
  "widget-header",
2329
2363
  t ? "hidden" : "flex items-center justify-between border-b border-solid border-card-invert",
2330
2364
  t ? "border-opacity-0" : "border-opacity-20"
2331
2365
  );
2332
- return /* @__PURE__ */ $("div", { className: s, children: [
2333
- /* @__PURE__ */ $("div", { className: g, children: [
2366
+ return /* @__PURE__ */ $("div", { className: a, children: [
2367
+ /* @__PURE__ */ $("div", { className: h, children: [
2334
2368
  /* @__PURE__ */ $("div", { className: "widget-title-wrapper w-full flex flex-row gap-2 items-center justify-between", children: [
2335
2369
  /* @__PURE__ */ $("h2", { className: "widget-title", children: [
2336
2370
  e.title,
@@ -2387,55 +2421,55 @@ const Pn = (e) => {
2387
2421
  ] }),
2388
2422
  /* @__PURE__ */ n("div", { className: "widget-inner", children: e.children })
2389
2423
  ] });
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]);
2424
+ }, tt = se(nn), rn = (e, i) => {
2425
+ const t = (o) => o.replace(/[^0-9.]/g, ""), r = t(e).split(".").map(Number), a = t(i).split(".").map(Number);
2426
+ return !(r[0] !== a[0] || r[1] < a[1]);
2393
2427
  };
2394
- function nn(e) {
2428
+ function on(e) {
2395
2429
  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
2430
  /* @__PURE__ */ n("div", { className: "w-full absolute opacity-100 text-primary", children: e.title }),
2397
2431
  /* @__PURE__ */ n("div", { className: "animate-ping rounded-full h-32 w-32 border-8 border-white" })
2398
2432
  ] }) });
2399
2433
  }
2400
- function rn({
2434
+ function an({
2401
2435
  index: e,
2402
2436
  maxIndex: i,
2403
2437
  widgetKey: t,
2404
2438
  parentWidgetKey: r,
2405
- targetContainerKey: s,
2439
+ targetContainerKey: a,
2406
2440
  childWidgetsConfig: o,
2407
2441
  widgetCatalog: c,
2408
- isEditing: g,
2442
+ isEditing: h,
2409
2443
  // for additional props passed to all widget from the dashboard through the DynamicWidgetLoader:
2410
- extraProps: D,
2444
+ extraProps: C,
2411
2445
  onRemoveClick: v,
2412
2446
  onMoveClick: m,
2413
2447
  selectContainer: d
2414
2448
  }) {
2415
- const y = `${t}`.split("_"), p = y.length > 1, T = p ? y[0] : t, h = c.get(T);
2416
- if (!h)
2449
+ const y = `${t}`.split("_"), p = y.length > 1, T = p ? y[0] : t, g = c.get(T);
2450
+ if (!g)
2417
2451
  return /* @__PURE__ */ n("div", { className: "flex", children: /* @__PURE__ */ $("p", { children: [
2418
2452
  "Widget not found in catalog: ",
2419
2453
  T
2420
2454
  ] }) });
2421
- let b = null, C = !1;
2422
- const N = !!h.isContainer, w = p ? nt(t) : "", S = N ? (o || []).filter((a) => a.parentWidgetKey === t) : [], l = {
2455
+ let b = null, w = !1;
2456
+ const N = !!g.isContainer, S = p ? nt(t) : "", D = N ? (o || []).filter((s) => s.parentWidgetKey === t) : [], l = {
2423
2457
  index: e,
2424
2458
  maxIndex: i,
2425
2459
  widgetKey: t,
2426
2460
  parentWidgetKey: r,
2427
- isEditing: g,
2428
- extraProps: D,
2429
- title: p ? w : h.title,
2461
+ isEditing: h,
2462
+ extraProps: C,
2463
+ title: p ? S : g.title,
2430
2464
  onRemoveClick: v,
2431
2465
  onMoveClick: m
2432
2466
  };
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@"));
2467
+ if (g.component ? (b = g.component, w = !1) : g.loader && (w = !0, b = rt(() => {
2468
+ if (!g) return null;
2469
+ const s = typeof __HOST_REACT_VERSION__ < "u" ? __HOST_REACT_VERSION__ : "19.2.3", f = g.meta?.externalDependencies || [], u = f.find((_) => _.startsWith("react@"));
2436
2470
  if (u) {
2437
2471
  const _ = u.split("@")[1];
2438
- if (!tn(a, _))
2472
+ if (!rn(s, _))
2439
2473
  return be.lazy(async () => ({
2440
2474
  default: () => /* @__PURE__ */ n(tt, { ...l, children: /* @__PURE__ */ $("div", { className: "p-4 border border-dashed border-danger", children: [
2441
2475
  /* @__PURE__ */ $("p", { className: "font-bold", children: [
@@ -2457,7 +2491,7 @@ function rn({
2457
2491
  ] }),
2458
2492
  ". Host is running",
2459
2493
  " ",
2460
- /* @__PURE__ */ n("strong", { children: a }),
2494
+ /* @__PURE__ */ n("strong", { children: s }),
2461
2495
  "."
2462
2496
  ] })
2463
2497
  ] }),
@@ -2471,12 +2505,12 @@ function rn({
2471
2505
  ] }) })
2472
2506
  }));
2473
2507
  }
2474
- if (h.component)
2475
- return h.component;
2476
- if (h.loader) {
2508
+ if (g.component)
2509
+ return g.component;
2510
+ if (g.loader) {
2477
2511
  const _ = async () => {
2478
2512
  try {
2479
- return await h.loader();
2513
+ return await g.loader();
2480
2514
  } catch (R) {
2481
2515
  return console.error(`CDN Load Failure for ${t}:`, R), {
2482
2516
  default: () => /* @__PURE__ */ n(tt, { ...l, children: /* @__PURE__ */ $("div", { className: "p-4 border border-dashed border-danger", children: [
@@ -2486,7 +2520,7 @@ function rn({
2486
2520
  '"'
2487
2521
  ] }),
2488
2522
  /* @__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) })
2523
+ /* @__PURE__ */ n("pre", { className: "text-xs overflow-hidden", children: JSON.stringify(g.meta || {}, null, 2) })
2490
2524
  ] }) })
2491
2525
  };
2492
2526
  }
@@ -2494,38 +2528,38 @@ function rn({
2494
2528
  return be.lazy(_);
2495
2529
  }
2496
2530
  return null;
2497
- }, [h, t])), !b)
2531
+ }, [g, t])), !b)
2498
2532
  return /* @__PURE__ */ n("div", { className: "flex", children: /* @__PURE__ */ $("p", { children: [
2499
2533
  "Widget definition incomplete: ",
2500
2534
  T
2501
2535
  ] }) });
2502
2536
  const M = N ? {
2503
- highlight: s === t,
2537
+ highlight: a === t,
2504
2538
  selectContainer: d,
2505
2539
  // The children prop is the recursive call back to DynamicWidgetLoader
2506
- children: S.map((a, f) => /* @__PURE__ */ n(
2507
- rn,
2540
+ children: D.map((s, f) => /* @__PURE__ */ n(
2541
+ an,
2508
2542
  {
2509
2543
  index: f,
2510
- maxIndex: S.length - 1,
2511
- widgetKey: a.widgetKey,
2512
- parentWidgetKey: a.parentWidgetKey,
2544
+ maxIndex: D.length - 1,
2545
+ widgetKey: s.widgetKey,
2546
+ parentWidgetKey: s.parentWidgetKey,
2513
2547
  widgetCatalog: c,
2514
- isEditing: g,
2515
- extraProps: D,
2548
+ isEditing: h,
2549
+ extraProps: C,
2516
2550
  onRemoveClick: v,
2517
2551
  onMoveClick: m
2518
2552
  },
2519
- `${a.widgetKey}_${f}`
2553
+ `${s.widgetKey}_${f}`
2520
2554
  ))
2521
2555
  } : {};
2522
- return C ? /* @__PURE__ */ n(xt, { fallback: /* @__PURE__ */ n(nn, { title: `Loading ${h.title}` }), children: /* @__PURE__ */ n(b, { ...l, ...M }) }) : /* @__PURE__ */ n(b, { ...l, ...M });
2556
+ return w ? /* @__PURE__ */ n(xt, { fallback: /* @__PURE__ */ n(on, { title: `Loading ${g.title}` }), children: /* @__PURE__ */ n(b, { ...l, ...M }) }) : /* @__PURE__ */ n(b, { ...l, ...M });
2523
2557
  }
2524
2558
  const ye = "size-5";
2525
2559
  function Ie(e) {
2526
- const i = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, s = e.isEditing || !1;
2527
- let g = i ? "border-transparent" : s && !r ? "border-card-invert" : "border-transparent";
2528
- const D = ["large", "xlarge"].includes(e.size || "");
2560
+ const i = e.highlight || !1, t = e.direction || "column", r = e.children.length > 0, a = e.isEditing || !1;
2561
+ let h = i ? "border-transparent" : a && !r ? "border-card-invert" : "border-transparent";
2562
+ const C = ["large", "xlarge"].includes(e.size || "");
2529
2563
  let v = "";
2530
2564
  ["large", "xlarge"].indexOf(e.size || "") > -1 && (v = `${e.size}-widget`);
2531
2565
  let m = "";
@@ -2533,19 +2567,19 @@ function Ie(e) {
2533
2567
  let d = G(
2534
2568
  "dashboard-widget-container relative ",
2535
2569
  r ? "" : "has-no-children",
2536
- s ? "editing" : "",
2570
+ a ? "editing" : "",
2537
2571
  m,
2538
2572
  v,
2539
- D ? "widget-container-grid" : "widget-container-flex",
2573
+ C ? "widget-container-grid" : "widget-container-flex",
2540
2574
  `direction-${t}`,
2541
- `border ${g}`,
2542
- `${i ? "highlight-container" : ""} ${g}`
2543
- ), y = `widget-container-header direction-${t} flex items-center border-1 ${g}`;
2575
+ `border ${h}`,
2576
+ `${i ? "highlight-container" : ""} ${h}`
2577
+ ), y = `widget-container-header direction-${t} flex items-center border-1 ${h}`;
2544
2578
  const p = () => {
2545
2579
  e.onRemoveClick && e.widgetKey && e.onRemoveClick(e.widgetKey);
2546
2580
  }, T = (b) => {
2547
2581
  e.onMoveClick && e.widgetKey && e.onMoveClick(b, e.widgetKey, e.parentWidgetKey);
2548
- }, h = () => {
2582
+ }, g = () => {
2549
2583
  e.selectContainer && e.widgetKey && e.selectContainer(e.widgetKey);
2550
2584
  };
2551
2585
  return /* @__PURE__ */ $("div", { "data-testid": `container_${e.widgetKey}`, className: d, children: [
@@ -2554,7 +2588,7 @@ function Ie(e) {
2554
2588
  "div",
2555
2589
  {
2556
2590
  className: "widget-title-wrapper w-full flex whitespace-nowrap",
2557
- onClick: h,
2591
+ onClick: g,
2558
2592
  children: /* @__PURE__ */ n("span", { className: "text-sm font-semibold capitalize", children: e.title })
2559
2593
  }
2560
2594
  ),
@@ -2569,9 +2603,9 @@ function Ie(e) {
2569
2603
  placement: "top",
2570
2604
  title: "Target this Container"
2571
2605
  },
2572
- onClick: h,
2606
+ onClick: g,
2573
2607
  children: /* @__PURE__ */ n(
2574
- It,
2608
+ kt,
2575
2609
  {
2576
2610
  className: `${ye} ${i ? "text-success" : "text-disabled"}`
2577
2611
  }
@@ -2624,15 +2658,15 @@ function Ie(e) {
2624
2658
  /* @__PURE__ */ n("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
2625
2659
  ] });
2626
2660
  }
2627
- function Rn(e) {
2661
+ function On(e) {
2628
2662
  const { direction: i, ...t } = e;
2629
2663
  return /* @__PURE__ */ n(Ie, { direction: "column", ...t });
2630
2664
  }
2631
- function Wn(e) {
2665
+ function kn(e) {
2632
2666
  const { size: i, ...t } = e;
2633
2667
  return /* @__PURE__ */ n(Ie, { size: "large", ...t });
2634
2668
  }
2635
- function In(e) {
2669
+ function jn(e) {
2636
2670
  const { direction: i, ...t } = e;
2637
2671
  return /* @__PURE__ */ n(Ie, { direction: "row", ...t });
2638
2672
  }
@@ -2642,7 +2676,7 @@ function Pe({
2642
2676
  alreadyAdded: i,
2643
2677
  addWidget: t
2644
2678
  }) {
2645
- const [r, s] = ae(!1), o = e.icon || Ot, c = e.name || "Unknown", g = e.description || "---", v = (e.noDuplicatedWidgets || !1) && i, m = G(`
2679
+ const [r, a] = ae(!1), o = e.icon || jt, c = e.name || "Unknown", h = e.description || "---", v = (e.noDuplicatedWidgets || !1) && i, m = G(`
2646
2680
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2647
2681
  ${v ? "border-disabled fill-disabled text-disabled" : "cursor-pointer border-primary fill-danger hover:fill-primary content-primary hover:brightness-110"}
2648
2682
  `);
@@ -2656,9 +2690,9 @@ function Pe({
2656
2690
  /* @__PURE__ */ n("div", { className: "text-xs", children: v ? "(Added)" : "" })
2657
2691
  ] }),
2658
2692
  /* @__PURE__ */ $("div", { className: "flex flex-col text-xs", children: [
2659
- /* @__PURE__ */ n("div", { children: g }),
2693
+ /* @__PURE__ */ n("div", { children: h }),
2660
2694
  /* @__PURE__ */ n("div", { className: "mt-3 cursor-pointer", onClick: (p) => {
2661
- p.stopPropagation(), p.preventDefault(), s(!r);
2695
+ p.stopPropagation(), p.preventDefault(), a(!r);
2662
2696
  }, children: "Externals:" }),
2663
2697
  r && /* @__PURE__ */ n("dl", { className: "ml-2 flex flex-col text-xs", children: e.externalDependencies.map((p, T) => /* @__PURE__ */ $("dd", { children: [
2664
2698
  "- ",
@@ -2668,26 +2702,26 @@ function Pe({
2668
2702
  ] })
2669
2703
  ] });
2670
2704
  }
2671
- function on({ item: e, onSettingItemChanged: i }) {
2672
- const t = e.name || "Unknown", r = e.description || "---", s = G(`
2705
+ function sn({ item: e, onSettingItemChanged: i }) {
2706
+ const t = e.name || "Unknown", r = e.description || "---", a = G(`
2673
2707
  flex flex-row gap-2 p-2 rounded-md border text-sm bg-card content-card backdrop-opacity-100
2674
- `), o = (g) => {
2675
- const D = g.key;
2676
- if (["ArrowUp", "ArrowDown"].includes(D)) {
2677
- g.preventDefault();
2708
+ `), o = (h) => {
2709
+ const C = h.key;
2710
+ if (["ArrowUp", "ArrowDown"].includes(C)) {
2711
+ h.preventDefault();
2678
2712
  const v = bt.incrementOrDecrementValue(
2679
2713
  e,
2680
- D === "ArrowUp" ? 1 : -1
2714
+ C === "ArrowUp" ? 1 : -1
2681
2715
  );
2682
2716
  i(v);
2683
2717
  }
2684
- }, c = (g) => {
2718
+ }, c = (h) => {
2685
2719
  i({
2686
2720
  ...e,
2687
- value: g.target.value || ""
2721
+ value: h.target.value || ""
2688
2722
  });
2689
2723
  };
2690
- return /* @__PURE__ */ n("div", { className: s, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ $("div", { className: "w-full", children: [
2724
+ return /* @__PURE__ */ n("div", { className: a, style: { width: "calc(100% - 1rem)" }, children: /* @__PURE__ */ $("div", { className: "w-full", children: [
2691
2725
  /* @__PURE__ */ n("div", { className: "flex flex-row items-center gap-2 justify-between", children: /* @__PURE__ */ n("span", { className: "font-bold", children: t }) }),
2692
2726
  /* @__PURE__ */ n("div", { className: "flex flex-col gap-2 text-xs", children: /* @__PURE__ */ n("div", { children: r }) }),
2693
2727
  /* @__PURE__ */ $("div", { children: [
@@ -2710,45 +2744,45 @@ const $e = (e, i) => [
2710
2744
  ...i.widgets.filter((r) => r.indexOf("Container") === -1),
2711
2745
  ...i.childWidgetsConfig.map((r) => r.widgetKey)
2712
2746
  ].includes(e);
2713
- function On(e) {
2747
+ function An(e) {
2714
2748
  const {
2715
2749
  currentDashboardConfig: i,
2716
2750
  undoStatus: t,
2717
2751
  addContainer: r,
2718
- onResetToDefaultDashboardClick: s,
2752
+ onResetToDefaultDashboardClick: a,
2719
2753
  onUndoOrRedo: o,
2720
2754
  onDoneClick: c
2721
- } = e, [g, D] = ae("Editing"), [v, m] = ae(0), [d, y] = ae(""), T = Array.from(e.widgetsCatalog.keys()).map((u) => ({
2755
+ } = e, [h, C] = ae("Editing"), [v, m] = ae(0), [d, y] = ae(""), T = Array.from(e.widgetsCatalog.keys()).map((u) => ({
2722
2756
  widgetKey: u,
2723
2757
  metaData: yt(u, e.widgetsCatalog)
2724
- })), h = !!e.targetContainerKey, b = (u) => {
2758
+ })), g = !!e.targetContainerKey, b = (u) => {
2725
2759
  y(u.target.value);
2726
- }, C = (u) => {
2760
+ }, w = (u) => {
2727
2761
  const _ = d.trim().toLowerCase();
2728
2762
  return _.length < 1 ? !0 : u.name.trim().toLowerCase().includes(_) || u.description.toLowerCase().includes(_);
2729
2763
  }, N = (u) => {
2730
2764
  const _ = d.trim().toLowerCase();
2731
2765
  return _.length < 1 ? !0 : u.name.trim().toLowerCase().includes(_) || u.description.toLowerCase().includes(_);
2732
- }, w = (u) => G(
2766
+ }, S = (u) => G(
2733
2767
  "px-4 py-2 font-medium cursor-pointer border-b-2 border-transparent hover:border-primary focus:outline-none",
2734
2768
  u === v ? "text-primary border-primary" : ""
2735
- ), S = (u) => {
2736
- h ? e.addWidget(u, e.targetContainerKey) : e.addWidget(u);
2769
+ ), D = (u) => {
2770
+ g ? e.addWidget(u, e.targetContainerKey) : e.addWidget(u);
2737
2771
  }, l = (u) => {
2738
2772
  const _ = (e.currentDashboardConfig.cssSettings || []).map((R) => R.key === u.key ? u : R);
2739
2773
  e.onSettingItemsUpdated(_);
2740
- }, [M, a] = ae(!1), f = (u) => {
2741
- a(u);
2774
+ }, [M, s] = ae(!1), f = (u) => {
2775
+ s(u);
2742
2776
  };
2743
2777
  return Ct(() => {
2744
2778
  if (e.targetContainerKey) {
2745
2779
  m(0);
2746
2780
  const u = nt(e.targetContainerKey);
2747
- D(`Editing ${u}`);
2781
+ C(`Editing ${u}`);
2748
2782
  } else
2749
- D("Editing Dashboard");
2783
+ C("Editing Dashboard");
2750
2784
  }, [e.targetContainerKey]), /* @__PURE__ */ n(
2751
- Jt,
2785
+ en,
2752
2786
  {
2753
2787
  testId: "dashboard-catalog-flyout",
2754
2788
  className: "bg-body content-body bg-opacity-70 border-2 border-primary",
@@ -2763,13 +2797,13 @@ function On(e) {
2763
2797
  children: /* @__PURE__ */ $("div", { className: "flex flex-col gap-2 p-2", children: [
2764
2798
  /* @__PURE__ */ $("div", { className: "flex flex-row gap-2 justify-between", children: [
2765
2799
  /* @__PURE__ */ $("div", { className: "handle flex-1 flex gap-2 w-full hover:text-primary cursor-grab", children: [
2766
- M ? /* @__PURE__ */ n(Wt, { className: "size-5" }) : /* @__PURE__ */ n(Rt, { className: "size-5" }),
2800
+ M ? /* @__PURE__ */ n(Ot, { className: "size-5" }) : /* @__PURE__ */ n(It, { className: "size-5" }),
2767
2801
  /* @__PURE__ */ n(
2768
2802
  "h2",
2769
2803
  {
2770
2804
  className: "flex-1 text-base margin-0 capitalize",
2771
- title: h ? g : `Editing dashboard: ${i.dashboardName}`,
2772
- children: g
2805
+ title: g ? h : `Editing dashboard: ${i.dashboardName}`,
2806
+ children: h
2773
2807
  }
2774
2808
  )
2775
2809
  ] }),
@@ -2785,7 +2819,7 @@ function On(e) {
2785
2819
  },
2786
2820
  disabled: t.isUndoDisabled,
2787
2821
  onClick: () => o("Undo"),
2788
- children: /* @__PURE__ */ n(Pt, { className: "size-5" })
2822
+ children: /* @__PURE__ */ n(Rt, { className: "size-5" })
2789
2823
  }
2790
2824
  ),
2791
2825
  /* @__PURE__ */ n(
@@ -2799,7 +2833,7 @@ function On(e) {
2799
2833
  },
2800
2834
  disabled: t.isRedoDisabled,
2801
2835
  onClick: () => o("Redo"),
2802
- children: /* @__PURE__ */ n($t, { className: "size-5" })
2836
+ children: /* @__PURE__ */ n(Wt, { className: "size-5" })
2803
2837
  }
2804
2838
  ),
2805
2839
  /* @__PURE__ */ n(
@@ -2811,17 +2845,17 @@ function On(e) {
2811
2845
  placement: "bottom",
2812
2846
  title: "Reset this dashboard to the default configuration"
2813
2847
  },
2814
- onClick: s,
2815
- children: /* @__PURE__ */ n(Mt, { className: "size-5" })
2848
+ onClick: a,
2849
+ children: /* @__PURE__ */ n($t, { className: "size-5" })
2816
2850
  }
2817
2851
  )
2818
2852
  ] })
2819
2853
  ] }),
2820
2854
  /* @__PURE__ */ $("div", { className: "flex border-b border-gray-200", children: [
2821
- /* @__PURE__ */ n("button", { onClick: () => m(0), className: w(0), children: "Widgets" }),
2822
- /* @__PURE__ */ n("button", { onClick: () => m(1), className: w(1), children: "Charts" }),
2823
- !h && /* @__PURE__ */ n("button", { onClick: () => m(2), className: w(2), children: "Containers" }),
2824
- !h && /* @__PURE__ */ n("button", { onClick: () => m(3), className: w(3), children: /* @__PURE__ */ n(_t, {}) })
2855
+ /* @__PURE__ */ n("button", { onClick: () => m(0), className: S(0), children: "Widgets" }),
2856
+ /* @__PURE__ */ n("button", { onClick: () => m(1), className: S(1), children: "Charts" }),
2857
+ !g && /* @__PURE__ */ n("button", { onClick: () => m(2), className: S(2), children: "Containers" }),
2858
+ !g && /* @__PURE__ */ n("button", { onClick: () => m(3), className: S(3), children: /* @__PURE__ */ n(Pt, {}) })
2825
2859
  ] }),
2826
2860
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between gap-1 w-full", children: /* @__PURE__ */ n(
2827
2861
  lt,
@@ -2842,30 +2876,30 @@ function On(e) {
2842
2876
  },
2843
2877
  children: [
2844
2878
  v === 0 && T.filter(
2845
- (u) => u.metaData.categories.includes("Widget") && C(u.metaData)
2879
+ (u) => u.metaData.categories.includes("Widget") && w(u.metaData)
2846
2880
  ).map((u) => /* @__PURE__ */ n(
2847
2881
  Pe,
2848
2882
  {
2849
2883
  widgetKey: u.widgetKey,
2850
2884
  metaData: u.metaData,
2851
2885
  alreadyAdded: $e(u.widgetKey, i),
2852
- addWidget: () => S(u.widgetKey)
2886
+ addWidget: () => D(u.widgetKey)
2853
2887
  },
2854
2888
  u.widgetKey
2855
2889
  )),
2856
2890
  v === 1 && T.filter(
2857
- (u) => u.metaData.categories.includes("Chart") && C(u.metaData)
2891
+ (u) => u.metaData.categories.includes("Chart") && w(u.metaData)
2858
2892
  ).map((u) => /* @__PURE__ */ n(
2859
2893
  Pe,
2860
2894
  {
2861
2895
  widgetKey: u.widgetKey,
2862
2896
  metaData: u.metaData,
2863
2897
  alreadyAdded: $e(u.widgetKey, i),
2864
- addWidget: () => S(u.widgetKey)
2898
+ addWidget: () => D(u.widgetKey)
2865
2899
  },
2866
2900
  u.widgetKey
2867
2901
  )),
2868
- !h && v === 2 && T.filter((u) => u.metaData.categories.includes("Container")).map((u) => /* @__PURE__ */ n(
2902
+ !g && v === 2 && T.filter((u) => u.metaData.categories.includes("Container")).map((u) => /* @__PURE__ */ n(
2869
2903
  Pe,
2870
2904
  {
2871
2905
  widgetKey: u.widgetKey,
@@ -2875,8 +2909,8 @@ function On(e) {
2875
2909
  },
2876
2910
  u.widgetKey
2877
2911
  )),
2878
- !h && v === 3 && (i.cssSettings || []).filter(N).map((u) => /* @__PURE__ */ n(
2879
- on,
2912
+ !g && v === 3 && (i.cssSettings || []).filter(N).map((u) => /* @__PURE__ */ n(
2913
+ sn,
2880
2914
  {
2881
2915
  item: u,
2882
2916
  onSettingItemChanged: l
@@ -2903,47 +2937,48 @@ function On(e) {
2903
2937
  );
2904
2938
  }
2905
2939
  export {
2906
- hn as AddIcon,
2940
+ mn as AddIcon,
2907
2941
  J as Button,
2908
- Ot as CircleQuestionMark,
2909
- It as CrosshairIcon,
2910
- $n as DashboardGrid,
2942
+ jt as CircleQuestionMark,
2943
+ kt as CrosshairIcon,
2944
+ In as DashboardGrid,
2911
2945
  tt as DashboardWidgetBase,
2912
- gn as DeleteIcon,
2913
- Jt as DraggablePanel,
2914
- rn as DynamicWidgetLoader,
2915
- mn as EditIcon,
2916
- pn as GridIcon,
2917
- Wt as HandGrabIcon,
2918
- Rt as HandIcon,
2919
- Sn as ListItem,
2920
- Dn as ListItemLeftChild,
2921
- Tn as ListItemMiddleChild,
2922
- Nn as ListItemRightChild,
2923
- yn as MonitorIcon,
2924
- bn as MonitorSmartphoneIcon,
2946
+ pn as DeleteIcon,
2947
+ en as DraggablePanel,
2948
+ an as DynamicWidgetLoader,
2949
+ yn as EditIcon,
2950
+ vn as GridIcon,
2951
+ Ot as HandGrabIcon,
2952
+ It as HandIcon,
2953
+ Nn as ListItem,
2954
+ En as ListItemLeftChild,
2955
+ _n as ListItemMiddleChild,
2956
+ Mn as ListItemRightChild,
2957
+ xn as MonitorIcon,
2958
+ Cn as MonitorSmartphoneIcon,
2925
2959
  it as MoveLeftIcon,
2926
2960
  at as MoveRightIcon,
2927
- $t as RedoIcon,
2928
- _t as SettingsIcon,
2929
- jt as Stack,
2930
- B as SvgBaseWrapper,
2931
- vn as TabletSmartphoneIcon,
2932
- wn as TargetIcon,
2961
+ Wt as RedoIcon,
2962
+ bn as RenameIcon,
2963
+ Pt as SettingsIcon,
2964
+ Lt as Stack,
2965
+ U as SvgBaseWrapper,
2966
+ wn as TabletSmartphoneIcon,
2967
+ Tn as TargetIcon,
2933
2968
  lt as TextField,
2934
- Mt as TimerResetIcon,
2935
- Pt as UndoIcon,
2936
- Rn as WidgetContainerColumn,
2937
- Wn as WidgetContainerLarge,
2938
- In as WidgetContainerRow,
2939
- On as WidgetsCatalogFlyout,
2940
- _n as WrapperColumnContent,
2941
- Mn as WrapperColumnContentListItem,
2969
+ $t as TimerResetIcon,
2970
+ Rt as UndoIcon,
2971
+ On as WidgetContainerColumn,
2972
+ kn as WidgetContainerLarge,
2973
+ jn as WidgetContainerRow,
2974
+ An as WidgetsCatalogFlyout,
2975
+ $n as WrapperColumnContent,
2976
+ Rn as WrapperColumnContentListItem,
2942
2977
  st as XCircleIcon,
2943
- xn as ZoomInIcon,
2944
- Cn as ZoomOutIcon,
2945
- tn as _isVersionCompatible,
2946
- Pn as showToast,
2947
- un as useDashboardStore,
2948
- fn as useDashboardUndoService
2978
+ Sn as ZoomInIcon,
2979
+ Dn as ZoomOutIcon,
2980
+ rn as _isVersionCompatible,
2981
+ Wn as showToast,
2982
+ hn as useDashboardStore,
2983
+ gn as useDashboardUndoService
2949
2984
  };