bitz-react-admin-ui 2.1.8 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/_virtual/dayjs.min.mjs +2 -5
  2. package/dist/_virtual/index.mjs +2 -2
  3. package/dist/_virtual/index2.mjs +2 -2
  4. package/dist/components/BitzCalendar/index.mjs +1 -1
  5. package/dist/components/BitzDayJs/index.mjs +1 -1
  6. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  7. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  12. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  13. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  14. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +26 -22
  15. package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
  16. package/dist/components/BitzTable/ActionCol/index.mjs +61 -61
  17. package/dist/components/BitzTable/SelectionBar/Button.d.ts +2 -3
  18. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -25
  19. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +24 -21
  20. package/dist/components/BitzTable/Store/index.d.ts +43 -22
  21. package/dist/components/BitzTable/Store/index.mjs +128 -125
  22. package/dist/components/BitzTable/Store/utils/index.d.ts +4 -5
  23. package/dist/components/BitzTable/Store/utils/index.mjs +31 -31
  24. package/dist/components/BitzTable/SubTable/index.d.ts +21 -0
  25. package/dist/components/BitzTable/SubTable/index.mjs +149 -0
  26. package/dist/components/BitzTable/Table/SortTableContext.d.ts +12 -0
  27. package/dist/components/BitzTable/Table/SortTableContext.mjs +25 -0
  28. package/dist/components/BitzTable/Table/SortableRow.d.ts +7 -0
  29. package/dist/components/BitzTable/Table/SortableRow.mjs +54 -0
  30. package/dist/components/BitzTable/Table/index.d.ts +5 -0
  31. package/dist/components/BitzTable/Table/index.mjs +277 -255
  32. package/dist/components/BitzTable/Table/utils.mjs +17 -16
  33. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +1 -0
  34. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +84 -97
  35. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.d.ts +5 -4
  36. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +66 -60
  37. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +78 -72
  38. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +1 -3
  39. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +190 -189
  40. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.d.ts +8 -0
  41. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +94 -0
  42. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.d.ts +10 -0
  43. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +58 -0
  44. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +13 -7
  45. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +119 -80
  46. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +2 -2
  47. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +26 -29
  48. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +3 -1
  49. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +53 -77
  50. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +2 -2
  51. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.d.ts +12 -0
  52. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +61 -0
  53. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +50 -59
  54. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +27 -32
  55. package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +18 -0
  56. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +50 -0
  57. package/dist/components/BitzTable/ToolBar/Modal/style.d.ts +2 -0
  58. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +58 -0
  59. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -20
  60. package/dist/components/BitzTable/ToolBar/index.d.ts +12 -11
  61. package/dist/components/BitzTable/index.d.ts +4 -0
  62. package/dist/components/BitzTable/index.mjs +13 -11
  63. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.mjs +5 -0
  64. package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs +15 -0
  65. package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +1098 -753
  66. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  67. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  68. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  69. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/utils/WithFluent.mjs +16 -12
  72. package/dist/utils/findNode.d.ts +2 -2
  73. package/dist/utils/time.mjs +1 -1
  74. package/package.json +1 -1
  75. package/dist/_virtual/dayjs.min2.mjs +0 -4
  76. package/dist/components/BitzTable/Select/index.mjs +0 -11
  77. package/dist/components/BitzTable/Select/style.mjs +0 -66
  78. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +0 -78
  79. package/dist/components/BitzTable/ToolBar/ExportIcon/styles.mjs +0 -47
@@ -1,36 +1,36 @@
1
- import j, { createContext as Me, memo as un, useReducer as ot, useState as V, useRef as I, useMemo as L, useCallback as _, useEffect as E, useContext as he } from "react";
2
- import { unstable_batchedUpdates as De, createPortal as dn } from "react-dom";
3
- import { getWindow as G, useLatestValue as Re, useUniqueId as Ue, getEventCoordinates as Ze, add as fe, useIsomorphicLayoutEffect as se, useInterval as fn, usePrevious as et, useLazyMemo as Ae, subtract as Fe, canUseDOM as it, isHTMLElement as Xe, useNodeRef as Pe, isKeyboardEvent as Ft, findFirstFocusableNode as hn, isWindow as st, isNode as gn, isDocument as Pt, getOwnerDocument as ge, useEvent as $t, isSVGElement as vn } from "../../../../../@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
4
- import { useAnnouncement as pn, HiddenText as bn, LiveRegion as wn } from "../../../../../@dnd-kit_accessibility@3.1.0/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs";
5
- const Wt = /* @__PURE__ */ Me(null);
6
- function yn(e) {
7
- const t = he(Wt);
8
- E(() => {
1
+ import A, { createContext as Oe, memo as yn, useReducer as st, useState as Y, useRef as z, useMemo as L, useCallback as U, useEffect as N, useContext as ae, cloneElement as mn, forwardRef as wn } from "react";
2
+ import { unstable_batchedUpdates as De, createPortal as Dn } from "react-dom";
3
+ import { getWindow as q, useLatestValue as Re, useUniqueId as Ye, getEventCoordinates as Fe, add as he, useIsomorphicLayoutEffect as re, useInterval as xn, usePrevious as $e, useLazyMemo as Ae, subtract as Ke, canUseDOM as at, isHTMLElement as Ue, useNodeRef as Xe, isKeyboardEvent as lt, findFirstFocusableNode as Cn, CSS as nt, useEvent as ct, isWindow as ut, isNode as Sn, isDocument as Yt, getOwnerDocument as ge, isSVGElement as Rn } from "../../../../../@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
4
+ import { useAnnouncement as En, HiddenText as On, LiveRegion as An } from "../../../../../@dnd-kit_accessibility@3.1.0/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs";
5
+ const Ut = /* @__PURE__ */ Oe(null);
6
+ function Nn(e) {
7
+ const t = ae(Ut);
8
+ N(() => {
9
9
  if (!t)
10
10
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
11
11
  return t(e);
12
12
  }, [e, t]);
13
13
  }
14
- function mn() {
15
- const [e] = V(() => /* @__PURE__ */ new Set()), t = _((r) => (e.add(r), () => e.delete(r)), [e]);
16
- return [_((r) => {
14
+ function Mn() {
15
+ const [e] = Y(() => /* @__PURE__ */ new Set()), t = U((r) => (e.add(r), () => e.delete(r)), [e]);
16
+ return [U((r) => {
17
17
  let {
18
18
  type: i,
19
19
  event: o
20
20
  } = r;
21
21
  e.forEach((s) => {
22
- var l;
23
- return (l = s[i]) == null ? void 0 : l.call(s, o);
22
+ var a;
23
+ return (a = s[i]) == null ? void 0 : a.call(s, o);
24
24
  });
25
25
  }, [e]), t];
26
26
  }
27
- const Dn = {
27
+ const Tn = {
28
28
  draggable: `
29
29
  To pick up a draggable item, press the space bar.
30
30
  While dragging, use the arrow keys to move the item.
31
31
  Press space again to drop the item in its new position, or press escape to cancel.
32
32
  `
33
- }, xn = {
33
+ }, Ln = {
34
34
  onDragStart(e) {
35
35
  let {
36
36
  active: t
@@ -58,90 +58,115 @@ const Dn = {
58
58
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
59
59
  }
60
60
  };
61
- function Cn(e) {
61
+ function kn(e) {
62
62
  let {
63
- announcements: t = xn,
63
+ announcements: t = Ln,
64
64
  container: n,
65
65
  hiddenTextDescribedById: r,
66
- screenReaderInstructions: i = Dn
66
+ screenReaderInstructions: i = Tn
67
67
  } = e;
68
68
  const {
69
69
  announce: o,
70
70
  announcement: s
71
- } = pn(), l = Ue("DndLiveRegion"), [a, u] = V(!1);
72
- if (E(() => {
73
- u(!0);
74
- }, []), yn(L(() => ({
75
- onDragStart(c) {
71
+ } = En(), a = Ye("DndLiveRegion"), [l, c] = Y(!1);
72
+ if (N(() => {
73
+ c(!0);
74
+ }, []), Nn(L(() => ({
75
+ onDragStart(u) {
76
76
  let {
77
77
  active: g
78
- } = c;
78
+ } = u;
79
79
  o(t.onDragStart({
80
80
  active: g
81
81
  }));
82
82
  },
83
- onDragMove(c) {
83
+ onDragMove(u) {
84
84
  let {
85
85
  active: g,
86
86
  over: f
87
- } = c;
87
+ } = u;
88
88
  t.onDragMove && o(t.onDragMove({
89
89
  active: g,
90
90
  over: f
91
91
  }));
92
92
  },
93
- onDragOver(c) {
93
+ onDragOver(u) {
94
94
  let {
95
95
  active: g,
96
96
  over: f
97
- } = c;
97
+ } = u;
98
98
  o(t.onDragOver({
99
99
  active: g,
100
100
  over: f
101
101
  }));
102
102
  },
103
- onDragEnd(c) {
103
+ onDragEnd(u) {
104
104
  let {
105
105
  active: g,
106
106
  over: f
107
- } = c;
107
+ } = u;
108
108
  o(t.onDragEnd({
109
109
  active: g,
110
110
  over: f
111
111
  }));
112
112
  },
113
- onDragCancel(c) {
113
+ onDragCancel(u) {
114
114
  let {
115
115
  active: g,
116
116
  over: f
117
- } = c;
117
+ } = u;
118
118
  o(t.onDragCancel({
119
119
  active: g,
120
120
  over: f
121
121
  }));
122
122
  }
123
- }), [o, t])), !a)
123
+ }), [o, t])), !l)
124
124
  return null;
125
- const d = j.createElement(j.Fragment, null, j.createElement(bn, {
125
+ const d = A.createElement(A.Fragment, null, A.createElement(On, {
126
126
  id: r,
127
127
  value: i.draggable
128
- }), j.createElement(wn, {
129
- id: l,
128
+ }), A.createElement(An, {
129
+ id: a,
130
130
  announcement: s
131
131
  }));
132
- return n ? dn(d, n) : d;
132
+ return n ? Dn(d, n) : d;
133
133
  }
134
- var R;
134
+ var O;
135
135
  (function(e) {
136
136
  e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
137
- })(R || (R = {}));
138
- function $e() {
137
+ })(O || (O = {}));
138
+ function je() {
139
139
  }
140
- const K = /* @__PURE__ */ Object.freeze({
140
+ const _ = /* @__PURE__ */ Object.freeze({
141
141
  x: 0,
142
142
  y: 0
143
143
  });
144
- function Sn(e, t) {
144
+ function In(e, t) {
145
+ return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
146
+ }
147
+ function zn(e, t) {
148
+ const n = Fe(e);
149
+ if (!n)
150
+ return "0 0";
151
+ const r = {
152
+ x: (n.x - t.left) / t.width * 100,
153
+ y: (n.y - t.top) / t.height * 100
154
+ };
155
+ return r.x + "% " + r.y + "%";
156
+ }
157
+ function Pn(e, t) {
158
+ let {
159
+ data: {
160
+ value: n
161
+ }
162
+ } = e, {
163
+ data: {
164
+ value: r
165
+ }
166
+ } = t;
167
+ return n - r;
168
+ }
169
+ function Bn(e, t) {
145
170
  let {
146
171
  data: {
147
172
  value: n
@@ -153,21 +178,51 @@ function Sn(e, t) {
153
178
  } = t;
154
179
  return r - n;
155
180
  }
156
- function Rn(e, t) {
181
+ function Fn(e, t) {
157
182
  if (!e || e.length === 0)
158
183
  return null;
159
184
  const [n] = e;
160
185
  return t ? n[t] : n;
161
186
  }
162
- function En(e, t) {
163
- const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), o = Math.min(t.top + t.height, e.top + e.height), s = i - r, l = o - n;
187
+ function kt(e, t, n) {
188
+ return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
189
+ x: t + e.width * 0.5,
190
+ y: n + e.height * 0.5
191
+ };
192
+ }
193
+ const Zr = (e) => {
194
+ let {
195
+ collisionRect: t,
196
+ droppableRects: n,
197
+ droppableContainers: r
198
+ } = e;
199
+ const i = kt(t, t.left, t.top), o = [];
200
+ for (const s of r) {
201
+ const {
202
+ id: a
203
+ } = s, l = n.get(a);
204
+ if (l) {
205
+ const c = In(kt(l), i);
206
+ o.push({
207
+ id: a,
208
+ data: {
209
+ droppableContainer: s,
210
+ value: c
211
+ }
212
+ });
213
+ }
214
+ }
215
+ return o.sort(Pn);
216
+ };
217
+ function $n(e, t) {
218
+ const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), o = Math.min(t.top + t.height, e.top + e.height), s = i - r, a = o - n;
164
219
  if (r < i && n < o) {
165
- const a = t.width * t.height, u = e.width * e.height, d = s * l, c = d / (a + u - d);
166
- return Number(c.toFixed(4));
220
+ const l = t.width * t.height, c = e.width * e.height, d = s * a, u = d / (l + c - d);
221
+ return Number(u.toFixed(4));
167
222
  }
168
223
  return 0;
169
224
  }
170
- const Mn = (e) => {
225
+ const Kn = (e) => {
171
226
  let {
172
227
  collisionRect: t,
173
228
  droppableRects: n,
@@ -177,50 +232,50 @@ const Mn = (e) => {
177
232
  for (const o of r) {
178
233
  const {
179
234
  id: s
180
- } = o, l = n.get(s);
181
- if (l) {
182
- const a = En(l, t);
183
- a > 0 && i.push({
235
+ } = o, a = n.get(s);
236
+ if (a) {
237
+ const l = $n(a, t);
238
+ l > 0 && i.push({
184
239
  id: s,
185
240
  data: {
186
241
  droppableContainer: o,
187
- value: a
242
+ value: l
188
243
  }
189
244
  });
190
245
  }
191
246
  }
192
- return i.sort(Sn);
247
+ return i.sort(Bn);
193
248
  };
194
- function An(e, t, n) {
249
+ function Xn(e, t, n) {
195
250
  return {
196
251
  ...e,
197
252
  scaleX: t && n ? t.width / n.width : 1,
198
253
  scaleY: t && n ? t.height / n.height : 1
199
254
  };
200
255
  }
201
- function Ut(e, t) {
256
+ function _t(e, t) {
202
257
  return e && t ? {
203
258
  x: e.left - t.left,
204
259
  y: e.top - t.top
205
- } : K;
260
+ } : _;
206
261
  }
207
- function On(e) {
262
+ function jn(e) {
208
263
  return function(n) {
209
264
  for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
210
265
  i[o - 1] = arguments[o];
211
- return i.reduce((s, l) => ({
266
+ return i.reduce((s, a) => ({
212
267
  ...s,
213
- top: s.top + e * l.y,
214
- bottom: s.bottom + e * l.y,
215
- left: s.left + e * l.x,
216
- right: s.right + e * l.x
268
+ top: s.top + e * a.y,
269
+ bottom: s.bottom + e * a.y,
270
+ left: s.left + e * a.x,
271
+ right: s.right + e * a.x
217
272
  }), {
218
273
  ...n
219
274
  });
220
275
  };
221
276
  }
222
- const Nn = /* @__PURE__ */ On(1);
223
- function Ln(e) {
277
+ const Wn = /* @__PURE__ */ jn(1);
278
+ function Ht(e) {
224
279
  if (e.startsWith("matrix3d(")) {
225
280
  const t = e.slice(9, -1).split(/, /);
226
281
  return {
@@ -240,61 +295,61 @@ function Ln(e) {
240
295
  }
241
296
  return null;
242
297
  }
243
- function Tn(e, t, n) {
244
- const r = Ln(t);
298
+ function Yn(e, t, n) {
299
+ const r = Ht(t);
245
300
  if (!r)
246
301
  return e;
247
302
  const {
248
303
  scaleX: i,
249
304
  scaleY: o,
250
305
  x: s,
251
- y: l
252
- } = r, a = e.left - s - (1 - i) * parseFloat(n), u = e.top - l - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = i ? e.width / i : e.width, c = o ? e.height / o : e.height;
306
+ y: a
307
+ } = r, l = e.left - s - (1 - i) * parseFloat(n), c = e.top - a - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = i ? e.width / i : e.width, u = o ? e.height / o : e.height;
253
308
  return {
254
309
  width: d,
255
- height: c,
256
- top: u,
257
- right: a + d,
258
- bottom: u + c,
259
- left: a
310
+ height: u,
311
+ top: c,
312
+ right: l + d,
313
+ bottom: c + u,
314
+ left: l
260
315
  };
261
316
  }
262
- const In = {
317
+ const Un = {
263
318
  ignoreTransform: !1
264
319
  };
265
- function Oe(e, t) {
266
- t === void 0 && (t = In);
320
+ function Ne(e, t) {
321
+ t === void 0 && (t = Un);
267
322
  let n = e.getBoundingClientRect();
268
323
  if (t.ignoreTransform) {
269
324
  const {
270
- transform: u,
325
+ transform: c,
271
326
  transformOrigin: d
272
- } = G(e).getComputedStyle(e);
273
- u && (n = Tn(n, u, d));
327
+ } = q(e).getComputedStyle(e);
328
+ c && (n = Yn(n, c, d));
274
329
  }
275
330
  const {
276
331
  top: r,
277
332
  left: i,
278
333
  width: o,
279
334
  height: s,
280
- bottom: l,
281
- right: a
335
+ bottom: a,
336
+ right: l
282
337
  } = n;
283
338
  return {
284
339
  top: r,
285
340
  left: i,
286
341
  width: o,
287
342
  height: s,
288
- bottom: l,
289
- right: a
343
+ bottom: a,
344
+ right: l
290
345
  };
291
346
  }
292
- function At(e) {
293
- return Oe(e, {
347
+ function It(e) {
348
+ return Ne(e, {
294
349
  ignoreTransform: !0
295
350
  });
296
351
  }
297
- function kn(e) {
352
+ function _n(e) {
298
353
  const t = e.innerWidth, n = e.innerHeight;
299
354
  return {
300
355
  top: 0,
@@ -305,62 +360,62 @@ function kn(e) {
305
360
  height: n
306
361
  };
307
362
  }
308
- function zn(e, t) {
309
- return t === void 0 && (t = G(e).getComputedStyle(e)), t.position === "fixed";
363
+ function Hn(e, t) {
364
+ return t === void 0 && (t = q(e).getComputedStyle(e)), t.position === "fixed";
310
365
  }
311
- function Bn(e, t) {
312
- t === void 0 && (t = G(e).getComputedStyle(e));
366
+ function qn(e, t) {
367
+ t === void 0 && (t = q(e).getComputedStyle(e));
313
368
  const n = /(auto|scroll|overlay)/;
314
369
  return ["overflow", "overflowX", "overflowY"].some((i) => {
315
370
  const o = t[i];
316
371
  return typeof o == "string" ? n.test(o) : !1;
317
372
  });
318
373
  }
319
- function lt(e, t) {
374
+ function dt(e, t) {
320
375
  const n = [];
321
376
  function r(i) {
322
377
  if (t != null && n.length >= t || !i)
323
378
  return n;
324
- if (Pt(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
379
+ if (Yt(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
325
380
  return n.push(i.scrollingElement), n;
326
- if (!Xe(i) || vn(i) || n.includes(i))
381
+ if (!Ue(i) || Rn(i) || n.includes(i))
327
382
  return n;
328
- const o = G(e).getComputedStyle(i);
329
- return i !== e && Bn(i, o) && n.push(i), zn(i, o) ? n : r(i.parentNode);
383
+ const o = q(e).getComputedStyle(i);
384
+ return i !== e && qn(i, o) && n.push(i), Hn(i, o) ? n : r(i.parentNode);
330
385
  }
331
386
  return e ? r(e) : n;
332
387
  }
333
- function Xt(e) {
334
- const [t] = lt(e, 1);
388
+ function qt(e) {
389
+ const [t] = dt(e, 1);
335
390
  return t ?? null;
336
391
  }
337
- function Je(e) {
338
- return !it || !e ? null : st(e) ? e : gn(e) ? Pt(e) || e === ge(e).scrollingElement ? window : Xe(e) ? e : null : null;
392
+ function Qe(e) {
393
+ return !at || !e ? null : ut(e) ? e : Sn(e) ? Yt(e) || e === ge(e).scrollingElement ? window : Ue(e) ? e : null : null;
339
394
  }
340
- function _t(e) {
341
- return st(e) ? e.scrollX : e.scrollLeft;
395
+ function Jt(e) {
396
+ return ut(e) ? e.scrollX : e.scrollLeft;
342
397
  }
343
- function Kt(e) {
344
- return st(e) ? e.scrollY : e.scrollTop;
398
+ function Vt(e) {
399
+ return ut(e) ? e.scrollY : e.scrollTop;
345
400
  }
346
- function tt(e) {
401
+ function rt(e) {
347
402
  return {
348
- x: _t(e),
349
- y: Kt(e)
403
+ x: Jt(e),
404
+ y: Vt(e)
350
405
  };
351
406
  }
352
- var O;
407
+ var T;
353
408
  (function(e) {
354
409
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
355
- })(O || (O = {}));
356
- function Yt(e) {
357
- return !it || !e ? !1 : e === document.scrollingElement;
410
+ })(T || (T = {}));
411
+ function Gt(e) {
412
+ return !at || !e ? !1 : e === document.scrollingElement;
358
413
  }
359
- function jt(e) {
414
+ function Qt(e) {
360
415
  const t = {
361
416
  x: 0,
362
417
  y: 0
363
- }, n = Yt(e) ? {
418
+ }, n = Gt(e) ? {
364
419
  height: window.innerHeight,
365
420
  width: window.innerWidth
366
421
  } : {
@@ -369,49 +424,49 @@ function jt(e) {
369
424
  }, r = {
370
425
  x: e.scrollWidth - n.width,
371
426
  y: e.scrollHeight - n.height
372
- }, i = e.scrollTop <= t.y, o = e.scrollLeft <= t.x, s = e.scrollTop >= r.y, l = e.scrollLeft >= r.x;
427
+ }, i = e.scrollTop <= t.y, o = e.scrollLeft <= t.x, s = e.scrollTop >= r.y, a = e.scrollLeft >= r.x;
373
428
  return {
374
429
  isTop: i,
375
430
  isLeft: o,
376
431
  isBottom: s,
377
- isRight: l,
432
+ isRight: a,
378
433
  maxScroll: r,
379
434
  minScroll: t
380
435
  };
381
436
  }
382
- const Fn = {
437
+ const Jn = {
383
438
  x: 0.2,
384
439
  y: 0.2
385
440
  };
386
- function Pn(e, t, n, r, i) {
441
+ function Vn(e, t, n, r, i) {
387
442
  let {
388
443
  top: o,
389
444
  left: s,
390
- right: l,
391
- bottom: a
445
+ right: a,
446
+ bottom: l
392
447
  } = n;
393
- r === void 0 && (r = 10), i === void 0 && (i = Fn);
448
+ r === void 0 && (r = 10), i === void 0 && (i = Jn);
394
449
  const {
395
- isTop: u,
450
+ isTop: c,
396
451
  isBottom: d,
397
- isLeft: c,
452
+ isLeft: u,
398
453
  isRight: g
399
- } = jt(e), f = {
454
+ } = Qt(e), f = {
400
455
  x: 0,
401
456
  y: 0
402
- }, C = {
457
+ }, D = {
403
458
  x: 0,
404
459
  y: 0
405
460
  }, h = {
406
461
  height: t.height * i.y,
407
462
  width: t.width * i.x
408
463
  };
409
- return !u && o <= t.top + h.height ? (f.y = O.Backward, C.y = r * Math.abs((t.top + h.height - o) / h.height)) : !d && a >= t.bottom - h.height && (f.y = O.Forward, C.y = r * Math.abs((t.bottom - h.height - a) / h.height)), !g && l >= t.right - h.width ? (f.x = O.Forward, C.x = r * Math.abs((t.right - h.width - l) / h.width)) : !c && s <= t.left + h.width && (f.x = O.Backward, C.x = r * Math.abs((t.left + h.width - s) / h.width)), {
464
+ return !c && o <= t.top + h.height ? (f.y = T.Backward, D.y = r * Math.abs((t.top + h.height - o) / h.height)) : !d && l >= t.bottom - h.height && (f.y = T.Forward, D.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !g && a >= t.right - h.width ? (f.x = T.Forward, D.x = r * Math.abs((t.right - h.width - a) / h.width)) : !u && s <= t.left + h.width && (f.x = T.Backward, D.x = r * Math.abs((t.left + h.width - s) / h.width)), {
410
465
  direction: f,
411
- speed: C
466
+ speed: D
412
467
  };
413
468
  }
414
- function $n(e) {
469
+ function Gn(e) {
415
470
  if (e === document.scrollingElement) {
416
471
  const {
417
472
  innerWidth: o,
@@ -441,17 +496,17 @@ function $n(e) {
441
496
  height: e.clientHeight
442
497
  };
443
498
  }
444
- function Ht(e) {
445
- return e.reduce((t, n) => fe(t, tt(n)), K);
499
+ function Zt(e) {
500
+ return e.reduce((t, n) => he(t, rt(n)), _);
446
501
  }
447
- function Wn(e) {
448
- return e.reduce((t, n) => t + _t(n), 0);
502
+ function Qn(e) {
503
+ return e.reduce((t, n) => t + Jt(n), 0);
449
504
  }
450
- function Un(e) {
451
- return e.reduce((t, n) => t + Kt(n), 0);
505
+ function Zn(e) {
506
+ return e.reduce((t, n) => t + Vt(n), 0);
452
507
  }
453
- function Xn(e, t) {
454
- if (t === void 0 && (t = Oe), !e)
508
+ function en(e, t) {
509
+ if (t === void 0 && (t = Ne), !e)
455
510
  return;
456
511
  const {
457
512
  top: n,
@@ -459,25 +514,25 @@ function Xn(e, t) {
459
514
  bottom: i,
460
515
  right: o
461
516
  } = t(e);
462
- Xt(e) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
517
+ qt(e) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
463
518
  block: "center",
464
519
  inline: "center"
465
520
  });
466
521
  }
467
- const _n = [["x", ["left", "right"], Wn], ["y", ["top", "bottom"], Un]];
468
- class at {
522
+ const er = [["x", ["left", "right"], Qn], ["y", ["top", "bottom"], Zn]];
523
+ class ft {
469
524
  constructor(t, n) {
470
525
  this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
471
- const r = lt(n), i = Ht(r);
526
+ const r = dt(n), i = Zt(r);
472
527
  this.rect = {
473
528
  ...t
474
529
  }, this.width = t.width, this.height = t.height;
475
- for (const [o, s, l] of _n)
476
- for (const a of s)
477
- Object.defineProperty(this, a, {
530
+ for (const [o, s, a] of er)
531
+ for (const l of s)
532
+ Object.defineProperty(this, l, {
478
533
  get: () => {
479
- const u = l(r), d = i[o] - u;
480
- return this.rect[a] + d;
534
+ const c = a(r), d = i[o] - c;
535
+ return this.rect[l] + d;
481
536
  },
482
537
  enumerable: !0
483
538
  });
@@ -500,62 +555,62 @@ class xe {
500
555
  (i = this.target) == null || i.addEventListener(t, n, r), this.listeners.push([t, n, r]);
501
556
  }
502
557
  }
503
- function Kn(e) {
558
+ function tr(e) {
504
559
  const {
505
560
  EventTarget: t
506
- } = G(e);
561
+ } = q(e);
507
562
  return e instanceof t ? e : ge(e);
508
563
  }
509
- function Ve(e, t) {
564
+ function Ze(e, t) {
510
565
  const n = Math.abs(e.x), r = Math.abs(e.y);
511
566
  return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
512
567
  }
513
- var P;
568
+ var $;
514
569
  (function(e) {
515
570
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
516
- })(P || (P = {}));
517
- function Ot(e) {
571
+ })($ || ($ = {}));
572
+ function zt(e) {
518
573
  e.preventDefault();
519
574
  }
520
- function Yn(e) {
575
+ function nr(e) {
521
576
  e.stopPropagation();
522
577
  }
523
- var m;
578
+ var x;
524
579
  (function(e) {
525
580
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter";
526
- })(m || (m = {}));
527
- const qt = {
528
- start: [m.Space, m.Enter],
529
- cancel: [m.Esc],
530
- end: [m.Space, m.Enter]
531
- }, jn = (e, t) => {
581
+ })(x || (x = {}));
582
+ const tn = {
583
+ start: [x.Space, x.Enter],
584
+ cancel: [x.Esc],
585
+ end: [x.Space, x.Enter]
586
+ }, rr = (e, t) => {
532
587
  let {
533
588
  currentCoordinates: n
534
589
  } = t;
535
590
  switch (e.code) {
536
- case m.Right:
591
+ case x.Right:
537
592
  return {
538
593
  ...n,
539
594
  x: n.x + 25
540
595
  };
541
- case m.Left:
596
+ case x.Left:
542
597
  return {
543
598
  ...n,
544
599
  x: n.x - 25
545
600
  };
546
- case m.Down:
601
+ case x.Down:
547
602
  return {
548
603
  ...n,
549
604
  y: n.y + 25
550
605
  };
551
- case m.Up:
606
+ case x.Up:
552
607
  return {
553
608
  ...n,
554
609
  y: n.y - 25
555
610
  };
556
611
  }
557
612
  };
558
- class Jt {
613
+ class nn {
559
614
  constructor(t) {
560
615
  this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
561
616
  const {
@@ -563,101 +618,101 @@ class Jt {
563
618
  target: n
564
619
  }
565
620
  } = t;
566
- this.props = t, this.listeners = new xe(ge(n)), this.windowListeners = new xe(G(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
621
+ this.props = t, this.listeners = new xe(ge(n)), this.windowListeners = new xe(q(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
567
622
  }
568
623
  attach() {
569
- this.handleStart(), this.windowListeners.add(P.Resize, this.handleCancel), this.windowListeners.add(P.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(P.Keydown, this.handleKeyDown));
624
+ this.handleStart(), this.windowListeners.add($.Resize, this.handleCancel), this.windowListeners.add($.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add($.Keydown, this.handleKeyDown));
570
625
  }
571
626
  handleStart() {
572
627
  const {
573
628
  activeNode: t,
574
629
  onStart: n
575
630
  } = this.props, r = t.node.current;
576
- r && Xn(r), n(K);
631
+ r && en(r), n(_);
577
632
  }
578
633
  handleKeyDown(t) {
579
- if (Ft(t)) {
634
+ if (lt(t)) {
580
635
  const {
581
636
  active: n,
582
637
  context: r,
583
638
  options: i
584
639
  } = this.props, {
585
- keyboardCodes: o = qt,
586
- coordinateGetter: s = jn,
587
- scrollBehavior: l = "smooth"
640
+ keyboardCodes: o = tn,
641
+ coordinateGetter: s = rr,
642
+ scrollBehavior: a = "smooth"
588
643
  } = i, {
589
- code: a
644
+ code: l
590
645
  } = t;
591
- if (o.end.includes(a)) {
646
+ if (o.end.includes(l)) {
592
647
  this.handleEnd(t);
593
648
  return;
594
649
  }
595
- if (o.cancel.includes(a)) {
650
+ if (o.cancel.includes(l)) {
596
651
  this.handleCancel(t);
597
652
  return;
598
653
  }
599
654
  const {
600
- collisionRect: u
601
- } = r.current, d = u ? {
602
- x: u.left,
603
- y: u.top
604
- } : K;
655
+ collisionRect: c
656
+ } = r.current, d = c ? {
657
+ x: c.left,
658
+ y: c.top
659
+ } : _;
605
660
  this.referenceCoordinates || (this.referenceCoordinates = d);
606
- const c = s(t, {
661
+ const u = s(t, {
607
662
  active: n,
608
663
  context: r.current,
609
664
  currentCoordinates: d
610
665
  });
611
- if (c) {
612
- const g = Fe(c, d), f = {
666
+ if (u) {
667
+ const g = Ke(u, d), f = {
613
668
  x: 0,
614
669
  y: 0
615
670
  }, {
616
- scrollableAncestors: C
671
+ scrollableAncestors: D
617
672
  } = r.current;
618
- for (const h of C) {
673
+ for (const h of D) {
619
674
  const v = t.code, {
620
- isTop: y,
621
- isRight: D,
622
- isLeft: b,
623
- isBottom: T,
624
- maxScroll: x,
675
+ isTop: b,
676
+ isRight: w,
677
+ isLeft: y,
678
+ isBottom: M,
679
+ maxScroll: C,
625
680
  minScroll: S
626
- } = jt(h), p = $n(h), w = {
627
- x: Math.min(v === m.Right ? p.right - p.width / 2 : p.right, Math.max(v === m.Right ? p.left : p.left + p.width / 2, c.x)),
628
- y: Math.min(v === m.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(v === m.Down ? p.top : p.top + p.height / 2, c.y))
629
- }, M = v === m.Right && !D || v === m.Left && !b, k = v === m.Down && !T || v === m.Up && !y;
630
- if (M && w.x !== c.x) {
631
- const A = h.scrollLeft + g.x, H = v === m.Right && A <= x.x || v === m.Left && A >= S.x;
632
- if (H && !g.y) {
681
+ } = Qt(h), p = Gn(h), m = {
682
+ x: Math.min(v === x.Right ? p.right - p.width / 2 : p.right, Math.max(v === x.Right ? p.left : p.left + p.width / 2, u.x)),
683
+ y: Math.min(v === x.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(v === x.Down ? p.top : p.top + p.height / 2, u.y))
684
+ }, R = v === x.Right && !w || v === x.Left && !y, k = v === x.Down && !M || v === x.Up && !b;
685
+ if (R && m.x !== u.x) {
686
+ const E = h.scrollLeft + g.x, J = v === x.Right && E <= C.x || v === x.Left && E >= S.x;
687
+ if (J && !g.y) {
633
688
  h.scrollTo({
634
- left: A,
635
- behavior: l
689
+ left: E,
690
+ behavior: a
636
691
  });
637
692
  return;
638
693
  }
639
- H ? f.x = h.scrollLeft - A : f.x = v === m.Right ? h.scrollLeft - x.x : h.scrollLeft - S.x, f.x && h.scrollBy({
694
+ J ? f.x = h.scrollLeft - E : f.x = v === x.Right ? h.scrollLeft - C.x : h.scrollLeft - S.x, f.x && h.scrollBy({
640
695
  left: -f.x,
641
- behavior: l
696
+ behavior: a
642
697
  });
643
698
  break;
644
- } else if (k && w.y !== c.y) {
645
- const A = h.scrollTop + g.y, H = v === m.Down && A <= x.y || v === m.Up && A >= S.y;
646
- if (H && !g.x) {
699
+ } else if (k && m.y !== u.y) {
700
+ const E = h.scrollTop + g.y, J = v === x.Down && E <= C.y || v === x.Up && E >= S.y;
701
+ if (J && !g.x) {
647
702
  h.scrollTo({
648
- top: A,
649
- behavior: l
703
+ top: E,
704
+ behavior: a
650
705
  });
651
706
  return;
652
707
  }
653
- H ? f.y = h.scrollTop - A : f.y = v === m.Down ? h.scrollTop - x.y : h.scrollTop - S.y, f.y && h.scrollBy({
708
+ J ? f.y = h.scrollTop - E : f.y = v === x.Down ? h.scrollTop - C.y : h.scrollTop - S.y, f.y && h.scrollBy({
654
709
  top: -f.y,
655
- behavior: l
710
+ behavior: a
656
711
  });
657
712
  break;
658
713
  }
659
714
  }
660
- this.handleMove(t, fe(Fe(c, this.referenceCoordinates), f));
715
+ this.handleMove(t, he(Ke(u, this.referenceCoordinates), f));
661
716
  }
662
717
  }
663
718
  }
@@ -683,11 +738,11 @@ class Jt {
683
738
  this.listeners.removeAll(), this.windowListeners.removeAll();
684
739
  }
685
740
  }
686
- Jt.activators = [{
741
+ nn.activators = [{
687
742
  eventName: "onKeyDown",
688
743
  handler: (e, t, n) => {
689
744
  let {
690
- keyboardCodes: r = qt,
745
+ keyboardCodes: r = tn,
691
746
  onActivation: i
692
747
  } = t, {
693
748
  active: o
@@ -696,30 +751,30 @@ Jt.activators = [{
696
751
  code: s
697
752
  } = e.nativeEvent;
698
753
  if (r.start.includes(s)) {
699
- const l = o.activatorNode.current;
700
- return l && e.target !== l ? !1 : (e.preventDefault(), i == null || i({
754
+ const a = o.activatorNode.current;
755
+ return a && e.target !== a ? !1 : (e.preventDefault(), i == null || i({
701
756
  event: e.nativeEvent
702
757
  }), !0);
703
758
  }
704
759
  return !1;
705
760
  }
706
761
  }];
707
- function Nt(e) {
762
+ function Pt(e) {
708
763
  return !!(e && "distance" in e);
709
764
  }
710
- function Lt(e) {
765
+ function Bt(e) {
711
766
  return !!(e && "delay" in e);
712
767
  }
713
- class ct {
768
+ class ht {
714
769
  constructor(t, n, r) {
715
770
  var i;
716
- r === void 0 && (r = Kn(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
771
+ r === void 0 && (r = tr(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
717
772
  const {
718
773
  event: o
719
774
  } = t, {
720
775
  target: s
721
776
  } = o;
722
- this.props = t, this.events = n, this.document = ge(s), this.documentListeners = new xe(this.document), this.listeners = new xe(r), this.windowListeners = new xe(G(s)), this.initialCoordinates = (i = Ze(o)) != null ? i : K, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
777
+ this.props = t, this.events = n, this.document = ge(s), this.documentListeners = new xe(this.document), this.listeners = new xe(r), this.windowListeners = new xe(q(s)), this.initialCoordinates = (i = Fe(o)) != null ? i : _, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
723
778
  }
724
779
  attach() {
725
780
  const {
@@ -733,18 +788,18 @@ class ct {
733
788
  } = this;
734
789
  if (this.listeners.add(t.move.name, this.handleMove, {
735
790
  passive: !1
736
- }), this.listeners.add(t.end.name, this.handleEnd), this.windowListeners.add(P.Resize, this.handleCancel), this.windowListeners.add(P.DragStart, Ot), this.windowListeners.add(P.VisibilityChange, this.handleCancel), this.windowListeners.add(P.ContextMenu, Ot), this.documentListeners.add(P.Keydown, this.handleKeydown), n) {
791
+ }), this.listeners.add(t.end.name, this.handleEnd), this.windowListeners.add($.Resize, this.handleCancel), this.windowListeners.add($.DragStart, zt), this.windowListeners.add($.VisibilityChange, this.handleCancel), this.windowListeners.add($.ContextMenu, zt), this.documentListeners.add($.Keydown, this.handleKeydown), n) {
737
792
  if (r != null && r({
738
793
  event: this.props.event,
739
794
  activeNode: this.props.activeNode,
740
795
  options: this.props.options
741
796
  }))
742
797
  return this.handleStart();
743
- if (Lt(n)) {
798
+ if (Bt(n)) {
744
799
  this.timeoutId = setTimeout(this.handleStart, n.delay);
745
800
  return;
746
801
  }
747
- if (Nt(n))
802
+ if (Pt(n))
748
803
  return;
749
804
  }
750
805
  this.handleStart();
@@ -758,9 +813,9 @@ class ct {
758
813
  } = this, {
759
814
  onStart: n
760
815
  } = this.props;
761
- t && (this.activated = !0, this.documentListeners.add(P.Click, Yn, {
816
+ t && (this.activated = !0, this.documentListeners.add($.Click, nr, {
762
817
  capture: !0
763
- }), this.removeTextSelection(), this.documentListeners.add(P.SelectionChange, this.removeTextSelection), n(t));
818
+ }), this.removeTextSelection(), this.documentListeners.add($.SelectionChange, this.removeTextSelection), n(t));
764
819
  }
765
820
  handleMove(t) {
766
821
  var n;
@@ -771,22 +826,22 @@ class ct {
771
826
  } = this, {
772
827
  onMove: s,
773
828
  options: {
774
- activationConstraint: l
829
+ activationConstraint: a
775
830
  }
776
831
  } = o;
777
832
  if (!i)
778
833
  return;
779
- const a = (n = Ze(t)) != null ? n : K, u = Fe(i, a);
780
- if (!r && l) {
781
- if (Nt(l)) {
782
- if (l.tolerance != null && Ve(u, l.tolerance))
834
+ const l = (n = Fe(t)) != null ? n : _, c = Ke(i, l);
835
+ if (!r && a) {
836
+ if (Pt(a)) {
837
+ if (a.tolerance != null && Ze(c, a.tolerance))
783
838
  return this.handleCancel();
784
- if (Ve(u, l.distance))
839
+ if (Ze(c, a.distance))
785
840
  return this.handleStart();
786
841
  }
787
- return Lt(l) && Ve(u, l.tolerance) ? this.handleCancel() : void 0;
842
+ return Bt(a) && Ze(c, a.tolerance) ? this.handleCancel() : void 0;
788
843
  }
789
- t.cancelable && t.preventDefault(), s(a);
844
+ t.cancelable && t.preventDefault(), s(l);
790
845
  }
791
846
  handleEnd() {
792
847
  const {
@@ -801,14 +856,14 @@ class ct {
801
856
  this.detach(), t();
802
857
  }
803
858
  handleKeydown(t) {
804
- t.code === m.Esc && this.handleCancel();
859
+ t.code === x.Esc && this.handleCancel();
805
860
  }
806
861
  removeTextSelection() {
807
862
  var t;
808
863
  (t = this.document.getSelection()) == null || t.removeAllRanges();
809
864
  }
810
865
  }
811
- const Hn = {
866
+ const or = {
812
867
  move: {
813
868
  name: "pointermove"
814
869
  },
@@ -816,15 +871,15 @@ const Hn = {
816
871
  name: "pointerup"
817
872
  }
818
873
  };
819
- class Vt extends ct {
874
+ class rn extends ht {
820
875
  constructor(t) {
821
876
  const {
822
877
  event: n
823
878
  } = t, r = ge(n.target);
824
- super(t, Hn, r);
879
+ super(t, or, r);
825
880
  }
826
881
  }
827
- Vt.activators = [{
882
+ rn.activators = [{
828
883
  eventName: "onPointerDown",
829
884
  handler: (e, t) => {
830
885
  let {
@@ -837,7 +892,7 @@ Vt.activators = [{
837
892
  }), !0);
838
893
  }
839
894
  }];
840
- const qn = {
895
+ const ir = {
841
896
  move: {
842
897
  name: "mousemove"
843
898
  },
@@ -845,16 +900,16 @@ const qn = {
845
900
  name: "mouseup"
846
901
  }
847
902
  };
848
- var nt;
903
+ var ot;
849
904
  (function(e) {
850
905
  e[e.RightClick = 2] = "RightClick";
851
- })(nt || (nt = {}));
852
- class Jn extends ct {
906
+ })(ot || (ot = {}));
907
+ class sr extends ht {
853
908
  constructor(t) {
854
- super(t, qn, ge(t.event.target));
909
+ super(t, ir, ge(t.event.target));
855
910
  }
856
911
  }
857
- Jn.activators = [{
912
+ sr.activators = [{
858
913
  eventName: "onMouseDown",
859
914
  handler: (e, t) => {
860
915
  let {
@@ -862,12 +917,12 @@ Jn.activators = [{
862
917
  } = e, {
863
918
  onActivation: r
864
919
  } = t;
865
- return n.button === nt.RightClick ? !1 : (r == null || r({
920
+ return n.button === ot.RightClick ? !1 : (r == null || r({
866
921
  event: n
867
922
  }), !0);
868
923
  }
869
924
  }];
870
- const Ge = {
925
+ const et = {
871
926
  move: {
872
927
  name: "touchmove"
873
928
  },
@@ -875,22 +930,22 @@ const Ge = {
875
930
  name: "touchend"
876
931
  }
877
932
  };
878
- class Vn extends ct {
933
+ class ar extends ht {
879
934
  constructor(t) {
880
- super(t, Ge);
935
+ super(t, et);
881
936
  }
882
937
  static setup() {
883
- return window.addEventListener(Ge.move.name, t, {
938
+ return window.addEventListener(et.move.name, t, {
884
939
  capture: !1,
885
940
  passive: !1
886
941
  }), function() {
887
- window.removeEventListener(Ge.move.name, t);
942
+ window.removeEventListener(et.move.name, t);
888
943
  };
889
944
  function t() {
890
945
  }
891
946
  }
892
947
  }
893
- Vn.activators = [{
948
+ ar.activators = [{
894
949
  eventName: "onTouchStart",
895
950
  handler: (e, t) => {
896
951
  let {
@@ -914,7 +969,7 @@ var We;
914
969
  (function(e) {
915
970
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
916
971
  })(We || (We = {}));
917
- function Gn(e) {
972
+ function lr(e) {
918
973
  let {
919
974
  acceleration: t,
920
975
  activator: n = Ce.Pointer,
@@ -922,68 +977,68 @@ function Gn(e) {
922
977
  draggingRect: i,
923
978
  enabled: o,
924
979
  interval: s = 5,
925
- order: l = We.TreeOrder,
926
- pointerCoordinates: a,
927
- scrollableAncestors: u,
980
+ order: a = We.TreeOrder,
981
+ pointerCoordinates: l,
982
+ scrollableAncestors: c,
928
983
  scrollableAncestorRects: d,
929
- delta: c,
984
+ delta: u,
930
985
  threshold: g
931
986
  } = e;
932
- const f = Zn({
933
- delta: c,
987
+ const f = ur({
988
+ delta: u,
934
989
  disabled: !o
935
- }), [C, h] = fn(), v = I({
990
+ }), [D, h] = xn(), v = z({
936
991
  x: 0,
937
992
  y: 0
938
- }), y = I({
993
+ }), b = z({
939
994
  x: 0,
940
995
  y: 0
941
- }), D = L(() => {
996
+ }), w = L(() => {
942
997
  switch (n) {
943
998
  case Ce.Pointer:
944
- return a ? {
945
- top: a.y,
946
- bottom: a.y,
947
- left: a.x,
948
- right: a.x
999
+ return l ? {
1000
+ top: l.y,
1001
+ bottom: l.y,
1002
+ left: l.x,
1003
+ right: l.x
949
1004
  } : null;
950
1005
  case Ce.DraggableRect:
951
1006
  return i;
952
1007
  }
953
- }, [n, i, a]), b = I(null), T = _(() => {
954
- const S = b.current;
1008
+ }, [n, i, l]), y = z(null), M = U(() => {
1009
+ const S = y.current;
955
1010
  if (!S)
956
1011
  return;
957
- const p = v.current.x * y.current.x, w = v.current.y * y.current.y;
958
- S.scrollBy(p, w);
959
- }, []), x = L(() => l === We.TreeOrder ? [...u].reverse() : u, [l, u]);
960
- E(
1012
+ const p = v.current.x * b.current.x, m = v.current.y * b.current.y;
1013
+ S.scrollBy(p, m);
1014
+ }, []), C = L(() => a === We.TreeOrder ? [...c].reverse() : c, [a, c]);
1015
+ N(
961
1016
  () => {
962
- if (!o || !u.length || !D) {
1017
+ if (!o || !c.length || !w) {
963
1018
  h();
964
1019
  return;
965
1020
  }
966
- for (const S of x) {
1021
+ for (const S of C) {
967
1022
  if ((r == null ? void 0 : r(S)) === !1)
968
1023
  continue;
969
- const p = u.indexOf(S), w = d[p];
970
- if (!w)
1024
+ const p = c.indexOf(S), m = d[p];
1025
+ if (!m)
971
1026
  continue;
972
1027
  const {
973
- direction: M,
1028
+ direction: R,
974
1029
  speed: k
975
- } = Pn(S, w, D, t, g);
976
- for (const A of ["x", "y"])
977
- f[A][M[A]] || (k[A] = 0, M[A] = 0);
1030
+ } = Vn(S, m, w, t, g);
1031
+ for (const E of ["x", "y"])
1032
+ f[E][R[E]] || (k[E] = 0, R[E] = 0);
978
1033
  if (k.x > 0 || k.y > 0) {
979
- h(), b.current = S, C(T, s), v.current = k, y.current = M;
1034
+ h(), y.current = S, D(M, s), v.current = k, b.current = R;
980
1035
  return;
981
1036
  }
982
1037
  }
983
1038
  v.current = {
984
1039
  x: 0,
985
1040
  y: 0
986
- }, y.current = {
1041
+ }, b.current = {
987
1042
  x: 0,
988
1043
  y: 0
989
1044
  }, h();
@@ -991,67 +1046,67 @@ function Gn(e) {
991
1046
  // eslint-disable-next-line react-hooks/exhaustive-deps
992
1047
  [
993
1048
  t,
994
- T,
1049
+ M,
995
1050
  r,
996
1051
  h,
997
1052
  o,
998
1053
  s,
999
1054
  // eslint-disable-next-line react-hooks/exhaustive-deps
1000
- JSON.stringify(D),
1055
+ JSON.stringify(w),
1001
1056
  // eslint-disable-next-line react-hooks/exhaustive-deps
1002
1057
  JSON.stringify(f),
1058
+ D,
1059
+ c,
1003
1060
  C,
1004
- u,
1005
- x,
1006
1061
  d,
1007
1062
  // eslint-disable-next-line react-hooks/exhaustive-deps
1008
1063
  JSON.stringify(g)
1009
1064
  ]
1010
1065
  );
1011
1066
  }
1012
- const Qn = {
1067
+ const cr = {
1013
1068
  x: {
1014
- [O.Backward]: !1,
1015
- [O.Forward]: !1
1069
+ [T.Backward]: !1,
1070
+ [T.Forward]: !1
1016
1071
  },
1017
1072
  y: {
1018
- [O.Backward]: !1,
1019
- [O.Forward]: !1
1073
+ [T.Backward]: !1,
1074
+ [T.Forward]: !1
1020
1075
  }
1021
1076
  };
1022
- function Zn(e) {
1077
+ function ur(e) {
1023
1078
  let {
1024
1079
  delta: t,
1025
1080
  disabled: n
1026
1081
  } = e;
1027
- const r = et(t);
1082
+ const r = $e(t);
1028
1083
  return Ae((i) => {
1029
1084
  if (n || !r || !i)
1030
- return Qn;
1085
+ return cr;
1031
1086
  const o = {
1032
1087
  x: Math.sign(t.x - r.x),
1033
1088
  y: Math.sign(t.y - r.y)
1034
1089
  };
1035
1090
  return {
1036
1091
  x: {
1037
- [O.Backward]: i.x[O.Backward] || o.x === -1,
1038
- [O.Forward]: i.x[O.Forward] || o.x === 1
1092
+ [T.Backward]: i.x[T.Backward] || o.x === -1,
1093
+ [T.Forward]: i.x[T.Forward] || o.x === 1
1039
1094
  },
1040
1095
  y: {
1041
- [O.Backward]: i.y[O.Backward] || o.y === -1,
1042
- [O.Forward]: i.y[O.Forward] || o.y === 1
1096
+ [T.Backward]: i.y[T.Backward] || o.y === -1,
1097
+ [T.Forward]: i.y[T.Forward] || o.y === 1
1043
1098
  }
1044
1099
  };
1045
1100
  }, [n, t, r]);
1046
1101
  }
1047
- function er(e, t) {
1102
+ function dr(e, t) {
1048
1103
  const n = t !== null ? e.get(t) : void 0, r = n ? n.node.current : null;
1049
1104
  return Ae((i) => {
1050
1105
  var o;
1051
1106
  return t === null ? null : (o = r ?? i) != null ? o : null;
1052
1107
  }, [r, t]);
1053
1108
  }
1054
- function tr(e, t) {
1109
+ function fr(e, t) {
1055
1110
  return L(() => e.reduce((n, r) => {
1056
1111
  const {
1057
1112
  sensor: i
@@ -1066,71 +1121,71 @@ var Ee;
1066
1121
  (function(e) {
1067
1122
  e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
1068
1123
  })(Ee || (Ee = {}));
1069
- var rt;
1124
+ var it;
1070
1125
  (function(e) {
1071
1126
  e.Optimized = "optimized";
1072
- })(rt || (rt = {}));
1073
- const Tt = /* @__PURE__ */ new Map();
1074
- function nr(e, t) {
1127
+ })(it || (it = {}));
1128
+ const Ft = /* @__PURE__ */ new Map();
1129
+ function hr(e, t) {
1075
1130
  let {
1076
1131
  dragging: n,
1077
1132
  dependencies: r,
1078
1133
  config: i
1079
1134
  } = t;
1080
- const [o, s] = V(null), {
1081
- frequency: l,
1082
- measure: a,
1083
- strategy: u
1084
- } = i, d = I(e), c = v(), g = Re(c), f = _(function(y) {
1085
- y === void 0 && (y = []), !g.current && s((D) => D === null ? y : D.concat(y.filter((b) => !D.includes(b))));
1086
- }, [g]), C = I(null), h = Ae((y) => {
1087
- if (c && !n)
1088
- return Tt;
1089
- if (!y || y === Tt || d.current !== e || o != null) {
1090
- const D = /* @__PURE__ */ new Map();
1091
- for (let b of e) {
1092
- if (!b)
1135
+ const [o, s] = Y(null), {
1136
+ frequency: a,
1137
+ measure: l,
1138
+ strategy: c
1139
+ } = i, d = z(e), u = v(), g = Re(u), f = U(function(b) {
1140
+ b === void 0 && (b = []), !g.current && s((w) => w === null ? b : w.concat(b.filter((y) => !w.includes(y))));
1141
+ }, [g]), D = z(null), h = Ae((b) => {
1142
+ if (u && !n)
1143
+ return Ft;
1144
+ if (!b || b === Ft || d.current !== e || o != null) {
1145
+ const w = /* @__PURE__ */ new Map();
1146
+ for (let y of e) {
1147
+ if (!y)
1093
1148
  continue;
1094
- if (o && o.length > 0 && !o.includes(b.id) && b.rect.current) {
1095
- D.set(b.id, b.rect.current);
1149
+ if (o && o.length > 0 && !o.includes(y.id) && y.rect.current) {
1150
+ w.set(y.id, y.rect.current);
1096
1151
  continue;
1097
1152
  }
1098
- const T = b.node.current, x = T ? new at(a(T), T) : null;
1099
- b.rect.current = x, x && D.set(b.id, x);
1153
+ const M = y.node.current, C = M ? new ft(l(M), M) : null;
1154
+ y.rect.current = C, C && w.set(y.id, C);
1100
1155
  }
1101
- return D;
1156
+ return w;
1102
1157
  }
1103
- return y;
1104
- }, [e, o, n, c, a]);
1105
- return E(() => {
1158
+ return b;
1159
+ }, [e, o, n, u, l]);
1160
+ return N(() => {
1106
1161
  d.current = e;
1107
- }, [e]), E(
1162
+ }, [e]), N(
1108
1163
  () => {
1109
- c || f();
1164
+ u || f();
1110
1165
  },
1111
1166
  // eslint-disable-next-line react-hooks/exhaustive-deps
1112
- [n, c]
1113
- ), E(
1167
+ [n, u]
1168
+ ), N(
1114
1169
  () => {
1115
1170
  o && o.length > 0 && s(null);
1116
1171
  },
1117
1172
  //eslint-disable-next-line react-hooks/exhaustive-deps
1118
1173
  [JSON.stringify(o)]
1119
- ), E(
1174
+ ), N(
1120
1175
  () => {
1121
- c || typeof l != "number" || C.current !== null || (C.current = setTimeout(() => {
1122
- f(), C.current = null;
1123
- }, l));
1176
+ u || typeof a != "number" || D.current !== null || (D.current = setTimeout(() => {
1177
+ f(), D.current = null;
1178
+ }, a));
1124
1179
  },
1125
1180
  // eslint-disable-next-line react-hooks/exhaustive-deps
1126
- [l, c, f, ...r]
1181
+ [a, u, f, ...r]
1127
1182
  ), {
1128
1183
  droppableRects: h,
1129
1184
  measureDroppableContainers: f,
1130
1185
  measuringScheduled: o != null
1131
1186
  };
1132
1187
  function v() {
1133
- switch (u) {
1188
+ switch (c) {
1134
1189
  case Ee.Always:
1135
1190
  return !1;
1136
1191
  case Ee.BeforeDragging:
@@ -1140,18 +1195,18 @@ function nr(e, t) {
1140
1195
  }
1141
1196
  }
1142
1197
  }
1143
- function Gt(e, t) {
1198
+ function gt(e, t) {
1144
1199
  return Ae((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
1145
1200
  }
1146
- function rr(e, t) {
1147
- return Gt(e, t);
1201
+ function gr(e, t) {
1202
+ return gt(e, t);
1148
1203
  }
1149
- function or(e) {
1204
+ function vr(e) {
1150
1205
  let {
1151
1206
  callback: t,
1152
1207
  disabled: n
1153
1208
  } = e;
1154
- const r = $t(t), i = L(() => {
1209
+ const r = ct(t), i = L(() => {
1155
1210
  if (n || typeof window > "u" || typeof window.MutationObserver > "u")
1156
1211
  return;
1157
1212
  const {
@@ -1159,14 +1214,14 @@ function or(e) {
1159
1214
  } = window;
1160
1215
  return new o(r);
1161
1216
  }, [r, n]);
1162
- return E(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1217
+ return N(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1163
1218
  }
1164
1219
  function _e(e) {
1165
1220
  let {
1166
1221
  callback: t,
1167
1222
  disabled: n
1168
1223
  } = e;
1169
- const r = $t(t), i = L(
1224
+ const r = ct(t), i = L(
1170
1225
  () => {
1171
1226
  if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
1172
1227
  return;
@@ -1178,22 +1233,22 @@ function _e(e) {
1178
1233
  // eslint-disable-next-line react-hooks/exhaustive-deps
1179
1234
  [n]
1180
1235
  );
1181
- return E(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1236
+ return N(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1182
1237
  }
1183
- function ir(e) {
1184
- return new at(Oe(e), e);
1238
+ function pr(e) {
1239
+ return new ft(Ne(e), e);
1185
1240
  }
1186
- function It(e, t, n) {
1187
- t === void 0 && (t = ir);
1188
- const [r, i] = ot(l, null), o = or({
1189
- callback(a) {
1241
+ function $t(e, t, n) {
1242
+ t === void 0 && (t = pr);
1243
+ const [r, i] = st(a, null), o = vr({
1244
+ callback(l) {
1190
1245
  if (e)
1191
- for (const u of a) {
1246
+ for (const c of l) {
1192
1247
  const {
1193
1248
  type: d,
1194
- target: c
1195
- } = u;
1196
- if (d === "childList" && c instanceof HTMLElement && c.contains(e)) {
1249
+ target: u
1250
+ } = c;
1251
+ if (d === "childList" && u instanceof HTMLElement && u.contains(e)) {
1197
1252
  i();
1198
1253
  break;
1199
1254
  }
@@ -1202,80 +1257,80 @@ function It(e, t, n) {
1202
1257
  }), s = _e({
1203
1258
  callback: i
1204
1259
  });
1205
- return se(() => {
1260
+ return re(() => {
1206
1261
  i(), e ? (s == null || s.observe(e), o == null || o.observe(document.body, {
1207
1262
  childList: !0,
1208
1263
  subtree: !0
1209
1264
  })) : (s == null || s.disconnect(), o == null || o.disconnect());
1210
1265
  }, [e]), r;
1211
- function l(a) {
1266
+ function a(l) {
1212
1267
  if (!e)
1213
1268
  return null;
1214
1269
  if (e.isConnected === !1) {
1215
- var u;
1216
- return (u = a ?? n) != null ? u : null;
1270
+ var c;
1271
+ return (c = l ?? n) != null ? c : null;
1217
1272
  }
1218
1273
  const d = t(e);
1219
- return JSON.stringify(a) === JSON.stringify(d) ? a : d;
1274
+ return JSON.stringify(l) === JSON.stringify(d) ? l : d;
1220
1275
  }
1221
1276
  }
1222
- function sr(e) {
1223
- const t = Gt(e);
1224
- return Ut(e, t);
1277
+ function br(e) {
1278
+ const t = gt(e);
1279
+ return _t(e, t);
1225
1280
  }
1226
- const kt = [];
1227
- function lr(e) {
1228
- const t = I(e), n = Ae((r) => e ? r && r !== kt && e && t.current && e.parentNode === t.current.parentNode ? r : lt(e) : kt, [e]);
1229
- return E(() => {
1281
+ const Kt = [];
1282
+ function yr(e) {
1283
+ const t = z(e), n = Ae((r) => e ? r && r !== Kt && e && t.current && e.parentNode === t.current.parentNode ? r : dt(e) : Kt, [e]);
1284
+ return N(() => {
1230
1285
  t.current = e;
1231
1286
  }, [e]), n;
1232
1287
  }
1233
- function ar(e) {
1234
- const [t, n] = V(null), r = I(e), i = _((o) => {
1235
- const s = Je(o.target);
1236
- s && n((l) => l ? (l.set(s, tt(s)), new Map(l)) : null);
1288
+ function mr(e) {
1289
+ const [t, n] = Y(null), r = z(e), i = U((o) => {
1290
+ const s = Qe(o.target);
1291
+ s && n((a) => a ? (a.set(s, rt(s)), new Map(a)) : null);
1237
1292
  }, []);
1238
- return E(() => {
1293
+ return N(() => {
1239
1294
  const o = r.current;
1240
1295
  if (e !== o) {
1241
1296
  s(o);
1242
- const l = e.map((a) => {
1243
- const u = Je(a);
1244
- return u ? (u.addEventListener("scroll", i, {
1297
+ const a = e.map((l) => {
1298
+ const c = Qe(l);
1299
+ return c ? (c.addEventListener("scroll", i, {
1245
1300
  passive: !0
1246
- }), [u, tt(u)]) : null;
1247
- }).filter((a) => a != null);
1248
- n(l.length ? new Map(l) : null), r.current = e;
1301
+ }), [c, rt(c)]) : null;
1302
+ }).filter((l) => l != null);
1303
+ n(a.length ? new Map(a) : null), r.current = e;
1249
1304
  }
1250
1305
  return () => {
1251
1306
  s(e), s(o);
1252
1307
  };
1253
- function s(l) {
1254
- l.forEach((a) => {
1255
- const u = Je(a);
1256
- u == null || u.removeEventListener("scroll", i);
1308
+ function s(a) {
1309
+ a.forEach((l) => {
1310
+ const c = Qe(l);
1311
+ c == null || c.removeEventListener("scroll", i);
1257
1312
  });
1258
1313
  }
1259
- }, [i, e]), L(() => e.length ? t ? Array.from(t.values()).reduce((o, s) => fe(o, s), K) : Ht(e) : K, [e, t]);
1314
+ }, [i, e]), L(() => e.length ? t ? Array.from(t.values()).reduce((o, s) => he(o, s), _) : Zt(e) : _, [e, t]);
1260
1315
  }
1261
- function zt(e, t) {
1316
+ function Xt(e, t) {
1262
1317
  t === void 0 && (t = []);
1263
- const n = I(null);
1264
- return E(
1318
+ const n = z(null);
1319
+ return N(
1265
1320
  () => {
1266
1321
  n.current = null;
1267
1322
  },
1268
1323
  // eslint-disable-next-line react-hooks/exhaustive-deps
1269
1324
  t
1270
- ), E(() => {
1271
- const r = e !== K;
1325
+ ), N(() => {
1326
+ const r = e !== _;
1272
1327
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
1273
- }, [e]), n.current ? Fe(e, n.current) : K;
1328
+ }, [e]), n.current ? Ke(e, n.current) : _;
1274
1329
  }
1275
- function cr(e) {
1276
- E(
1330
+ function wr(e) {
1331
+ N(
1277
1332
  () => {
1278
- if (!it)
1333
+ if (!at)
1279
1334
  return;
1280
1335
  const t = e.map((n) => {
1281
1336
  let {
@@ -1298,7 +1353,7 @@ function cr(e) {
1298
1353
  })
1299
1354
  );
1300
1355
  }
1301
- function ur(e, t) {
1356
+ function Dr(e, t) {
1302
1357
  return L(() => e.reduce((n, r) => {
1303
1358
  let {
1304
1359
  eventName: i,
@@ -1309,43 +1364,43 @@ function ur(e, t) {
1309
1364
  }, n;
1310
1365
  }, {}), [e, t]);
1311
1366
  }
1312
- function Qt(e) {
1313
- return L(() => e ? kn(e) : null, [e]);
1367
+ function on(e) {
1368
+ return L(() => e ? _n(e) : null, [e]);
1314
1369
  }
1315
- const Qe = [];
1316
- function dr(e, t) {
1317
- t === void 0 && (t = Oe);
1318
- const [n] = e, r = Qt(n ? G(n) : null), [i, o] = ot(l, Qe), s = _e({
1370
+ const tt = [];
1371
+ function xr(e, t) {
1372
+ t === void 0 && (t = Ne);
1373
+ const [n] = e, r = on(n ? q(n) : null), [i, o] = st(a, tt), s = _e({
1319
1374
  callback: o
1320
1375
  });
1321
- return e.length > 0 && i === Qe && o(), se(() => {
1322
- e.length ? e.forEach((a) => s == null ? void 0 : s.observe(a)) : (s == null || s.disconnect(), o());
1376
+ return e.length > 0 && i === tt && o(), re(() => {
1377
+ e.length ? e.forEach((l) => s == null ? void 0 : s.observe(l)) : (s == null || s.disconnect(), o());
1323
1378
  }, [e]), i;
1324
- function l() {
1325
- return e.length ? e.map((a) => Yt(a) ? r : new at(t(a), a)) : Qe;
1379
+ function a() {
1380
+ return e.length ? e.map((l) => Gt(l) ? r : new ft(t(l), l)) : tt;
1326
1381
  }
1327
1382
  }
1328
- function fr(e) {
1383
+ function sn(e) {
1329
1384
  if (!e)
1330
1385
  return null;
1331
1386
  if (e.children.length > 1)
1332
1387
  return e;
1333
1388
  const t = e.children[0];
1334
- return Xe(t) ? t : e;
1389
+ return Ue(t) ? t : e;
1335
1390
  }
1336
- function hr(e) {
1391
+ function Cr(e) {
1337
1392
  let {
1338
1393
  measure: t
1339
1394
  } = e;
1340
- const [n, r] = V(null), i = _((u) => {
1395
+ const [n, r] = Y(null), i = U((c) => {
1341
1396
  for (const {
1342
1397
  target: d
1343
- } of u)
1344
- if (Xe(d)) {
1345
- r((c) => {
1398
+ } of c)
1399
+ if (Ue(d)) {
1400
+ r((u) => {
1346
1401
  const g = t(d);
1347
- return c ? {
1348
- ...c,
1402
+ return u ? {
1403
+ ...u,
1349
1404
  width: g.width,
1350
1405
  height: g.height
1351
1406
  } : g;
@@ -1354,35 +1409,35 @@ function hr(e) {
1354
1409
  }
1355
1410
  }, [t]), o = _e({
1356
1411
  callback: i
1357
- }), s = _((u) => {
1358
- const d = fr(u);
1412
+ }), s = U((c) => {
1413
+ const d = sn(c);
1359
1414
  o == null || o.disconnect(), d && (o == null || o.observe(d)), r(d ? t(d) : null);
1360
- }, [t, o]), [l, a] = Pe(s);
1415
+ }, [t, o]), [a, l] = Xe(s);
1361
1416
  return L(() => ({
1362
- nodeRef: l,
1417
+ nodeRef: a,
1363
1418
  rect: n,
1364
- setRef: a
1365
- }), [n, l, a]);
1419
+ setRef: l
1420
+ }), [n, a, l]);
1366
1421
  }
1367
- const gr = [{
1368
- sensor: Vt,
1422
+ const Sr = [{
1423
+ sensor: rn,
1369
1424
  options: {}
1370
1425
  }, {
1371
- sensor: Jt,
1426
+ sensor: nn,
1372
1427
  options: {}
1373
- }], vr = {
1428
+ }], Rr = {
1374
1429
  current: {}
1375
1430
  }, Be = {
1376
1431
  draggable: {
1377
- measure: At
1432
+ measure: It
1378
1433
  },
1379
1434
  droppable: {
1380
- measure: At,
1435
+ measure: It,
1381
1436
  strategy: Ee.WhileDragging,
1382
- frequency: rt.Optimized
1437
+ frequency: it.Optimized
1383
1438
  },
1384
1439
  dragOverlay: {
1385
- measure: Oe
1440
+ measure: Ne
1386
1441
  }
1387
1442
  };
1388
1443
  class Se extends Map {
@@ -1406,7 +1461,7 @@ class Se extends Map {
1406
1461
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
1407
1462
  }
1408
1463
  }
1409
- const pr = {
1464
+ const Er = {
1410
1465
  activatorEvent: null,
1411
1466
  active: null,
1412
1467
  activeNode: null,
@@ -1422,15 +1477,15 @@ const pr = {
1422
1477
  current: null
1423
1478
  },
1424
1479
  rect: null,
1425
- setRef: $e
1480
+ setRef: je
1426
1481
  },
1427
1482
  scrollableAncestors: [],
1428
1483
  scrollableAncestorRects: [],
1429
1484
  measuringConfiguration: Be,
1430
- measureDroppableContainers: $e,
1485
+ measureDroppableContainers: je,
1431
1486
  windowRect: null,
1432
1487
  measuringScheduled: !1
1433
- }, br = {
1488
+ }, an = {
1434
1489
  activatorEvent: null,
1435
1490
  activators: [],
1436
1491
  active: null,
@@ -1438,12 +1493,12 @@ const pr = {
1438
1493
  ariaDescribedById: {
1439
1494
  draggable: ""
1440
1495
  },
1441
- dispatch: $e,
1496
+ dispatch: je,
1442
1497
  draggableNodes: /* @__PURE__ */ new Map(),
1443
1498
  over: null,
1444
- measureDroppableContainers: $e
1445
- }, Ke = /* @__PURE__ */ Me(br), Zt = /* @__PURE__ */ Me(pr);
1446
- function wr() {
1499
+ measureDroppableContainers: je
1500
+ }, Me = /* @__PURE__ */ Oe(an), ln = /* @__PURE__ */ Oe(Er);
1501
+ function Or() {
1447
1502
  return {
1448
1503
  draggable: {
1449
1504
  active: null,
@@ -1462,9 +1517,9 @@ function wr() {
1462
1517
  }
1463
1518
  };
1464
1519
  }
1465
- function yr(e, t) {
1520
+ function Ar(e, t) {
1466
1521
  switch (t.type) {
1467
- case R.DragStart:
1522
+ case O.DragStart:
1468
1523
  return {
1469
1524
  ...e,
1470
1525
  draggable: {
@@ -1473,7 +1528,7 @@ function yr(e, t) {
1473
1528
  active: t.active
1474
1529
  }
1475
1530
  };
1476
- case R.DragMove:
1531
+ case O.DragMove:
1477
1532
  return e.draggable.active ? {
1478
1533
  ...e,
1479
1534
  draggable: {
@@ -1484,8 +1539,8 @@ function yr(e, t) {
1484
1539
  }
1485
1540
  }
1486
1541
  } : e;
1487
- case R.DragEnd:
1488
- case R.DragCancel:
1542
+ case O.DragEnd:
1543
+ case O.DragCancel:
1489
1544
  return {
1490
1545
  ...e,
1491
1546
  draggable: {
@@ -1501,7 +1556,7 @@ function yr(e, t) {
1501
1556
  }
1502
1557
  }
1503
1558
  };
1504
- case R.RegisterDroppable: {
1559
+ case O.RegisterDroppable: {
1505
1560
  const {
1506
1561
  element: n
1507
1562
  } = t, {
@@ -1515,7 +1570,7 @@ function yr(e, t) {
1515
1570
  }
1516
1571
  };
1517
1572
  }
1518
- case R.SetDroppableDisabled: {
1573
+ case O.SetDroppableDisabled: {
1519
1574
  const {
1520
1575
  id: n,
1521
1576
  key: r,
@@ -1535,7 +1590,7 @@ function yr(e, t) {
1535
1590
  }
1536
1591
  };
1537
1592
  }
1538
- case R.UnregisterDroppable: {
1593
+ case O.UnregisterDroppable: {
1539
1594
  const {
1540
1595
  id: n,
1541
1596
  key: r
@@ -1555,7 +1610,7 @@ function yr(e, t) {
1555
1610
  return e;
1556
1611
  }
1557
1612
  }
1558
- function mr(e) {
1613
+ function Nr(e) {
1559
1614
  let {
1560
1615
  disabled: t
1561
1616
  } = e;
@@ -1563,27 +1618,27 @@ function mr(e) {
1563
1618
  active: n,
1564
1619
  activatorEvent: r,
1565
1620
  draggableNodes: i
1566
- } = he(Ke), o = et(r), s = et(n == null ? void 0 : n.id);
1567
- return E(() => {
1621
+ } = ae(Me), o = $e(r), s = $e(n == null ? void 0 : n.id);
1622
+ return N(() => {
1568
1623
  if (!t && !r && o && s != null) {
1569
- if (!Ft(o) || document.activeElement === o.target)
1624
+ if (!lt(o) || document.activeElement === o.target)
1570
1625
  return;
1571
- const l = i.get(s);
1572
- if (!l)
1626
+ const a = i.get(s);
1627
+ if (!a)
1573
1628
  return;
1574
1629
  const {
1575
- activatorNode: a,
1576
- node: u
1577
- } = l;
1578
- if (!a.current && !u.current)
1630
+ activatorNode: l,
1631
+ node: c
1632
+ } = a;
1633
+ if (!l.current && !c.current)
1579
1634
  return;
1580
1635
  requestAnimationFrame(() => {
1581
- for (const d of [a.current, u.current]) {
1636
+ for (const d of [l.current, c.current]) {
1582
1637
  if (!d)
1583
1638
  continue;
1584
- const c = hn(d);
1585
- if (c) {
1586
- c.focus();
1639
+ const u = Cn(d);
1640
+ if (u) {
1641
+ u.focus();
1587
1642
  break;
1588
1643
  }
1589
1644
  }
@@ -1591,7 +1646,7 @@ function mr(e) {
1591
1646
  }
1592
1647
  }, [r, t, i, s, o]), null;
1593
1648
  }
1594
- function Dr(e, t) {
1649
+ function cn(e, t) {
1595
1650
  let {
1596
1651
  transform: n,
1597
1652
  ...r
@@ -1601,7 +1656,7 @@ function Dr(e, t) {
1601
1656
  ...r
1602
1657
  }), n) : n;
1603
1658
  }
1604
- function xr(e) {
1659
+ function Mr(e) {
1605
1660
  return L(
1606
1661
  () => ({
1607
1662
  draggable: {
@@ -1621,42 +1676,42 @@ function xr(e) {
1621
1676
  [e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
1622
1677
  );
1623
1678
  }
1624
- function Cr(e) {
1679
+ function Tr(e) {
1625
1680
  let {
1626
1681
  activeNode: t,
1627
1682
  measure: n,
1628
1683
  initialRect: r,
1629
1684
  config: i = !0
1630
1685
  } = e;
1631
- const o = I(!1), {
1686
+ const o = z(!1), {
1632
1687
  x: s,
1633
- y: l
1688
+ y: a
1634
1689
  } = typeof i == "boolean" ? {
1635
1690
  x: i,
1636
1691
  y: i
1637
1692
  } : i;
1638
- se(() => {
1639
- if (!s && !l || !t) {
1693
+ re(() => {
1694
+ if (!s && !a || !t) {
1640
1695
  o.current = !1;
1641
1696
  return;
1642
1697
  }
1643
1698
  if (o.current || !r)
1644
1699
  return;
1645
- const u = t == null ? void 0 : t.node.current;
1646
- if (!u || u.isConnected === !1)
1700
+ const c = t == null ? void 0 : t.node.current;
1701
+ if (!c || c.isConnected === !1)
1647
1702
  return;
1648
- const d = n(u), c = Ut(d, r);
1649
- if (s || (c.x = 0), l || (c.y = 0), o.current = !0, Math.abs(c.x) > 0 || Math.abs(c.y) > 0) {
1650
- const g = Xt(u);
1703
+ const d = n(c), u = _t(d, r);
1704
+ if (s || (u.x = 0), a || (u.y = 0), o.current = !0, Math.abs(u.x) > 0 || Math.abs(u.y) > 0) {
1705
+ const g = qt(c);
1651
1706
  g && g.scrollBy({
1652
- top: c.y,
1653
- left: c.x
1707
+ top: u.y,
1708
+ left: u.x
1654
1709
  });
1655
1710
  }
1656
- }, [t, s, l, r, n]);
1711
+ }, [t, s, a, r, n]);
1657
1712
  }
1658
- const en = /* @__PURE__ */ Me({
1659
- ...K,
1713
+ const He = /* @__PURE__ */ Oe({
1714
+ ..._,
1660
1715
  scaleX: 1,
1661
1716
  scaleY: 1
1662
1717
  });
@@ -1664,182 +1719,182 @@ var ne;
1664
1719
  (function(e) {
1665
1720
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
1666
1721
  })(ne || (ne = {}));
1667
- const Tr = /* @__PURE__ */ un(function(t) {
1722
+ const eo = /* @__PURE__ */ yn(function(t) {
1668
1723
  var n, r, i, o;
1669
1724
  let {
1670
1725
  id: s,
1671
- accessibility: l,
1672
- autoScroll: a = !0,
1673
- children: u,
1674
- sensors: d = gr,
1675
- collisionDetection: c = Mn,
1726
+ accessibility: a,
1727
+ autoScroll: l = !0,
1728
+ children: c,
1729
+ sensors: d = Sr,
1730
+ collisionDetection: u = Kn,
1676
1731
  measuring: g,
1677
1732
  modifiers: f,
1678
- ...C
1733
+ ...D
1679
1734
  } = t;
1680
- const h = ot(yr, void 0, wr), [v, y] = h, [D, b] = mn(), [T, x] = V(ne.Uninitialized), S = T === ne.Initialized, {
1735
+ const h = st(Ar, void 0, Or), [v, b] = h, [w, y] = Mn(), [M, C] = Y(ne.Uninitialized), S = M === ne.Initialized, {
1681
1736
  draggable: {
1682
1737
  active: p,
1683
- nodes: w,
1684
- translate: M
1738
+ nodes: m,
1739
+ translate: R
1685
1740
  },
1686
1741
  droppable: {
1687
1742
  containers: k
1688
1743
  }
1689
- } = v, A = p ? w.get(p) : null, H = I({
1744
+ } = v, E = p ? m.get(p) : null, J = z({
1690
1745
  initial: null,
1691
1746
  translated: null
1692
- }), q = L(() => {
1693
- var N;
1747
+ }), V = L(() => {
1748
+ var I;
1694
1749
  return p != null ? {
1695
1750
  id: p,
1696
1751
  // It's possible for the active node to unmount while dragging
1697
- data: (N = A == null ? void 0 : A.data) != null ? N : vr,
1698
- rect: H
1752
+ data: (I = E == null ? void 0 : E.data) != null ? I : Rr,
1753
+ rect: J
1699
1754
  } : null;
1700
- }, [p, A]), Q = I(null), [ut, dt] = V(null), [J, ft] = V(null), ve = Re(C, Object.values(C)), Ye = Ue("DndDescribedBy", s), ht = L(() => k.getEnabled(), [k]), re = xr(g), {
1755
+ }, [p, E]), Q = z(null), [vt, pt] = Y(null), [G, bt] = Y(null), ve = Re(D, Object.values(D)), qe = Ye("DndDescribedBy", s), yt = L(() => k.getEnabled(), [k]), oe = Mr(g), {
1701
1756
  droppableRects: le,
1702
- measureDroppableContainers: Ne,
1703
- measuringScheduled: gt
1704
- } = nr(ht, {
1757
+ measureDroppableContainers: Te,
1758
+ measuringScheduled: mt
1759
+ } = hr(yt, {
1705
1760
  dragging: S,
1706
- dependencies: [M.x, M.y],
1707
- config: re.droppable
1708
- }), $ = er(w, p), vt = L(() => J ? Ze(J) : null, [J]), pt = cn(), bt = rr($, re.draggable.measure);
1709
- Cr({
1710
- activeNode: p ? w.get(p) : null,
1711
- config: pt.layoutShiftCompensation,
1712
- initialRect: bt,
1713
- measure: re.draggable.measure
1761
+ dependencies: [R.x, R.y],
1762
+ config: oe.droppable
1763
+ }), K = dr(m, p), wt = L(() => G ? Fe(G) : null, [G]), Dt = bn(), xt = gr(K, oe.draggable.measure);
1764
+ Tr({
1765
+ activeNode: p ? m.get(p) : null,
1766
+ config: Dt.layoutShiftCompensation,
1767
+ initialRect: xt,
1768
+ measure: oe.draggable.measure
1714
1769
  });
1715
- const W = It($, re.draggable.measure, bt), je = It($ ? $.parentElement : null), oe = I({
1770
+ const X = $t(K, oe.draggable.measure, xt), Je = $t(K ? K.parentElement : null), ie = z({
1716
1771
  activatorEvent: null,
1717
1772
  active: null,
1718
- activeNode: $,
1773
+ activeNode: K,
1719
1774
  collisionRect: null,
1720
1775
  collisions: null,
1721
1776
  droppableRects: le,
1722
- draggableNodes: w,
1777
+ draggableNodes: m,
1723
1778
  draggingNode: null,
1724
1779
  draggingNodeRect: null,
1725
1780
  droppableContainers: k,
1726
1781
  over: null,
1727
1782
  scrollableAncestors: [],
1728
1783
  scrollAdjustedTranslate: null
1729
- }), wt = k.getNodeFor((n = oe.current.over) == null ? void 0 : n.id), ie = hr({
1730
- measure: re.dragOverlay.measure
1731
- }), Le = (r = ie.nodeRef.current) != null ? r : $, ae = S ? (i = ie.rect) != null ? i : W : null, yt = !!(ie.nodeRef.current && ie.rect), mt = sr(yt ? null : W), He = Qt(Le ? G(Le) : null), Z = lr(S ? wt ?? $ : null), Te = dr(Z), Ie = Dr(f, {
1784
+ }), Ct = k.getNodeFor((n = ie.current.over) == null ? void 0 : n.id), se = Cr({
1785
+ measure: oe.dragOverlay.measure
1786
+ }), Le = (r = se.nodeRef.current) != null ? r : K, ce = S ? (i = se.rect) != null ? i : X : null, St = !!(se.nodeRef.current && se.rect), Rt = br(St ? null : X), Ve = on(Le ? q(Le) : null), Z = yr(S ? Ct ?? K : null), ke = xr(Z), Ie = cn(f, {
1732
1787
  transform: {
1733
- x: M.x - mt.x,
1734
- y: M.y - mt.y,
1788
+ x: R.x - Rt.x,
1789
+ y: R.y - Rt.y,
1735
1790
  scaleX: 1,
1736
1791
  scaleY: 1
1737
1792
  },
1738
- activatorEvent: J,
1739
- active: q,
1740
- activeNodeRect: W,
1741
- containerNodeRect: je,
1742
- draggingNodeRect: ae,
1743
- over: oe.current.over,
1744
- overlayNodeRect: ie.rect,
1793
+ activatorEvent: G,
1794
+ active: V,
1795
+ activeNodeRect: X,
1796
+ containerNodeRect: Je,
1797
+ draggingNodeRect: ce,
1798
+ over: ie.current.over,
1799
+ overlayNodeRect: se.rect,
1745
1800
  scrollableAncestors: Z,
1746
- scrollableAncestorRects: Te,
1747
- windowRect: He
1748
- }), Dt = vt ? fe(vt, M) : null, xt = ar(Z), tn = zt(xt), nn = zt(xt, [W]), ce = fe(Ie, tn), ue = ae ? Nn(ae, Ie) : null, pe = q && ue ? c({
1749
- active: q,
1750
- collisionRect: ue,
1801
+ scrollableAncestorRects: ke,
1802
+ windowRect: Ve
1803
+ }), Et = wt ? he(wt, R) : null, Ot = mr(Z), un = Xt(Ot), dn = Xt(Ot, [X]), ue = he(Ie, un), de = ce ? Wn(ce, Ie) : null, pe = V && de ? u({
1804
+ active: V,
1805
+ collisionRect: de,
1751
1806
  droppableRects: le,
1752
- droppableContainers: ht,
1753
- pointerCoordinates: Dt
1754
- }) : null, Ct = Rn(pe, "id"), [ee, St] = V(null), rn = yt ? Ie : fe(Ie, nn), on = An(rn, (o = ee == null ? void 0 : ee.rect) != null ? o : null, W), Rt = _(
1755
- (N, z) => {
1807
+ droppableContainers: yt,
1808
+ pointerCoordinates: Et
1809
+ }) : null, At = Fn(pe, "id"), [ee, Nt] = Y(null), fn = St ? Ie : he(Ie, dn), hn = Xn(fn, (o = ee == null ? void 0 : ee.rect) != null ? o : null, X), Mt = U(
1810
+ (I, P) => {
1756
1811
  let {
1757
1812
  sensor: B,
1758
1813
  options: te
1759
- } = z;
1814
+ } = P;
1760
1815
  if (Q.current == null)
1761
1816
  return;
1762
- const F = w.get(Q.current);
1817
+ const F = m.get(Q.current);
1763
1818
  if (!F)
1764
1819
  return;
1765
- const U = N.nativeEvent, Y = new B({
1820
+ const j = I.nativeEvent, H = new B({
1766
1821
  active: Q.current,
1767
1822
  activeNode: F,
1768
- event: U,
1823
+ event: j,
1769
1824
  options: te,
1770
1825
  // Sensors need to be instantiated with refs for arguments that change over time
1771
1826
  // otherwise they are frozen in time with the stale arguments
1772
- context: oe,
1773
- onStart(X) {
1827
+ context: ie,
1828
+ onStart(W) {
1774
1829
  const be = Q.current;
1775
1830
  if (be == null)
1776
1831
  return;
1777
- const we = w.get(be);
1778
- if (!we)
1832
+ const ye = m.get(be);
1833
+ if (!ye)
1779
1834
  return;
1780
1835
  const {
1781
- onDragStart: ke
1782
- } = ve.current, ze = {
1836
+ onDragStart: ze
1837
+ } = ve.current, Pe = {
1783
1838
  active: {
1784
1839
  id: be,
1785
- data: we.data,
1786
- rect: H
1840
+ data: ye.data,
1841
+ rect: J
1787
1842
  }
1788
1843
  };
1789
1844
  De(() => {
1790
- ke == null || ke(ze), x(ne.Initializing), y({
1791
- type: R.DragStart,
1792
- initialCoordinates: X,
1845
+ ze == null || ze(Pe), C(ne.Initializing), b({
1846
+ type: O.DragStart,
1847
+ initialCoordinates: W,
1793
1848
  active: be
1794
- }), D({
1849
+ }), w({
1795
1850
  type: "onDragStart",
1796
- event: ze
1851
+ event: Pe
1797
1852
  });
1798
1853
  });
1799
1854
  },
1800
- onMove(X) {
1801
- y({
1802
- type: R.DragMove,
1803
- coordinates: X
1855
+ onMove(W) {
1856
+ b({
1857
+ type: O.DragMove,
1858
+ coordinates: W
1804
1859
  });
1805
1860
  },
1806
- onEnd: de(R.DragEnd),
1807
- onCancel: de(R.DragCancel)
1861
+ onEnd: fe(O.DragEnd),
1862
+ onCancel: fe(O.DragCancel)
1808
1863
  });
1809
1864
  De(() => {
1810
- dt(Y), ft(N.nativeEvent);
1865
+ pt(H), bt(I.nativeEvent);
1811
1866
  });
1812
- function de(X) {
1867
+ function fe(W) {
1813
1868
  return async function() {
1814
1869
  const {
1815
- active: we,
1816
- collisions: ke,
1817
- over: ze,
1818
- scrollAdjustedTranslate: Mt
1819
- } = oe.current;
1820
- let ye = null;
1821
- if (we && Mt) {
1870
+ active: ye,
1871
+ collisions: ze,
1872
+ over: Pe,
1873
+ scrollAdjustedTranslate: Lt
1874
+ } = ie.current;
1875
+ let me = null;
1876
+ if (ye && Lt) {
1822
1877
  const {
1823
- cancelDrop: me
1878
+ cancelDrop: we
1824
1879
  } = ve.current;
1825
- ye = {
1826
- activatorEvent: U,
1827
- active: we,
1828
- collisions: ke,
1829
- delta: Mt,
1830
- over: ze
1831
- }, X === R.DragEnd && typeof me == "function" && await Promise.resolve(me(ye)) && (X = R.DragCancel);
1880
+ me = {
1881
+ activatorEvent: j,
1882
+ active: ye,
1883
+ collisions: ze,
1884
+ delta: Lt,
1885
+ over: Pe
1886
+ }, W === O.DragEnd && typeof we == "function" && await Promise.resolve(we(me)) && (W = O.DragCancel);
1832
1887
  }
1833
1888
  Q.current = null, De(() => {
1834
- y({
1835
- type: X
1836
- }), x(ne.Uninitialized), St(null), dt(null), ft(null);
1837
- const me = X === R.DragEnd ? "onDragEnd" : "onDragCancel";
1838
- if (ye) {
1839
- const qe = ve.current[me];
1840
- qe == null || qe(ye), D({
1841
- type: me,
1842
- event: ye
1889
+ b({
1890
+ type: W
1891
+ }), C(ne.Uninitialized), Nt(null), pt(null), bt(null);
1892
+ const we = W === O.DragEnd ? "onDragEnd" : "onDragCancel";
1893
+ if (me) {
1894
+ const Ge = ve.current[we];
1895
+ Ge == null || Ge(me), w({
1896
+ type: we,
1897
+ event: me
1843
1898
  });
1844
1899
  }
1845
1900
  });
@@ -1847,333 +1902,623 @@ const Tr = /* @__PURE__ */ un(function(t) {
1847
1902
  }
1848
1903
  },
1849
1904
  // eslint-disable-next-line react-hooks/exhaustive-deps
1850
- [w]
1851
- ), sn = _((N, z) => (B, te) => {
1852
- const F = B.nativeEvent, U = w.get(te);
1905
+ [m]
1906
+ ), gn = U((I, P) => (B, te) => {
1907
+ const F = B.nativeEvent, j = m.get(te);
1853
1908
  if (
1854
1909
  // Another sensor is already instantiating
1855
1910
  Q.current !== null || // No active draggable
1856
- !U || // Event has already been captured
1911
+ !j || // Event has already been captured
1857
1912
  F.dndKit || F.defaultPrevented
1858
1913
  )
1859
1914
  return;
1860
- const Y = {
1861
- active: U
1915
+ const H = {
1916
+ active: j
1862
1917
  };
1863
- N(B, z.options, Y) === !0 && (F.dndKit = {
1864
- capturedBy: z.sensor
1865
- }, Q.current = te, Rt(B, z));
1866
- }, [w, Rt]), Et = tr(d, sn);
1867
- cr(d), se(() => {
1868
- W && T === ne.Initializing && x(ne.Initialized);
1869
- }, [W, T]), E(
1918
+ I(B, P.options, H) === !0 && (F.dndKit = {
1919
+ capturedBy: P.sensor
1920
+ }, Q.current = te, Mt(B, P));
1921
+ }, [m, Mt]), Tt = fr(d, gn);
1922
+ wr(d), re(() => {
1923
+ X && M === ne.Initializing && C(ne.Initialized);
1924
+ }, [X, M]), N(
1870
1925
  () => {
1871
1926
  const {
1872
- onDragMove: N
1927
+ onDragMove: I
1873
1928
  } = ve.current, {
1874
- active: z,
1929
+ active: P,
1875
1930
  activatorEvent: B,
1876
1931
  collisions: te,
1877
1932
  over: F
1878
- } = oe.current;
1879
- if (!z || !B)
1933
+ } = ie.current;
1934
+ if (!P || !B)
1880
1935
  return;
1881
- const U = {
1882
- active: z,
1936
+ const j = {
1937
+ active: P,
1883
1938
  activatorEvent: B,
1884
1939
  collisions: te,
1885
1940
  delta: {
1886
- x: ce.x,
1887
- y: ce.y
1941
+ x: ue.x,
1942
+ y: ue.y
1888
1943
  },
1889
1944
  over: F
1890
1945
  };
1891
1946
  De(() => {
1892
- N == null || N(U), D({
1947
+ I == null || I(j), w({
1893
1948
  type: "onDragMove",
1894
- event: U
1949
+ event: j
1895
1950
  });
1896
1951
  });
1897
1952
  },
1898
1953
  // eslint-disable-next-line react-hooks/exhaustive-deps
1899
- [ce.x, ce.y]
1900
- ), E(
1954
+ [ue.x, ue.y]
1955
+ ), N(
1901
1956
  () => {
1902
1957
  const {
1903
- active: N,
1904
- activatorEvent: z,
1958
+ active: I,
1959
+ activatorEvent: P,
1905
1960
  collisions: B,
1906
1961
  droppableContainers: te,
1907
1962
  scrollAdjustedTranslate: F
1908
- } = oe.current;
1909
- if (!N || Q.current == null || !z || !F)
1963
+ } = ie.current;
1964
+ if (!I || Q.current == null || !P || !F)
1910
1965
  return;
1911
1966
  const {
1912
- onDragOver: U
1913
- } = ve.current, Y = te.get(Ct), de = Y && Y.rect.current ? {
1914
- id: Y.id,
1915
- rect: Y.rect.current,
1916
- data: Y.data,
1917
- disabled: Y.disabled
1918
- } : null, X = {
1919
- active: N,
1920
- activatorEvent: z,
1967
+ onDragOver: j
1968
+ } = ve.current, H = te.get(At), fe = H && H.rect.current ? {
1969
+ id: H.id,
1970
+ rect: H.rect.current,
1971
+ data: H.data,
1972
+ disabled: H.disabled
1973
+ } : null, W = {
1974
+ active: I,
1975
+ activatorEvent: P,
1921
1976
  collisions: B,
1922
1977
  delta: {
1923
1978
  x: F.x,
1924
1979
  y: F.y
1925
1980
  },
1926
- over: de
1981
+ over: fe
1927
1982
  };
1928
1983
  De(() => {
1929
- St(de), U == null || U(X), D({
1984
+ Nt(fe), j == null || j(W), w({
1930
1985
  type: "onDragOver",
1931
- event: X
1986
+ event: W
1932
1987
  });
1933
1988
  });
1934
1989
  },
1935
1990
  // eslint-disable-next-line react-hooks/exhaustive-deps
1936
- [Ct]
1937
- ), se(() => {
1938
- oe.current = {
1939
- activatorEvent: J,
1940
- active: q,
1941
- activeNode: $,
1942
- collisionRect: ue,
1991
+ [At]
1992
+ ), re(() => {
1993
+ ie.current = {
1994
+ activatorEvent: G,
1995
+ active: V,
1996
+ activeNode: K,
1997
+ collisionRect: de,
1943
1998
  collisions: pe,
1944
1999
  droppableRects: le,
1945
- draggableNodes: w,
2000
+ draggableNodes: m,
1946
2001
  draggingNode: Le,
1947
- draggingNodeRect: ae,
2002
+ draggingNodeRect: ce,
1948
2003
  droppableContainers: k,
1949
2004
  over: ee,
1950
2005
  scrollableAncestors: Z,
1951
- scrollAdjustedTranslate: ce
1952
- }, H.current = {
1953
- initial: ae,
1954
- translated: ue
2006
+ scrollAdjustedTranslate: ue
2007
+ }, J.current = {
2008
+ initial: ce,
2009
+ translated: de
1955
2010
  };
1956
- }, [q, $, pe, ue, w, Le, ae, le, k, ee, Z, ce]), Gn({
1957
- ...pt,
1958
- delta: M,
1959
- draggingRect: ue,
1960
- pointerCoordinates: Dt,
2011
+ }, [V, K, pe, de, m, Le, ce, le, k, ee, Z, ue]), lr({
2012
+ ...Dt,
2013
+ delta: R,
2014
+ draggingRect: de,
2015
+ pointerCoordinates: Et,
1961
2016
  scrollableAncestors: Z,
1962
- scrollableAncestorRects: Te
2017
+ scrollableAncestorRects: ke
1963
2018
  });
1964
- const ln = L(() => ({
1965
- active: q,
1966
- activeNode: $,
1967
- activeNodeRect: W,
1968
- activatorEvent: J,
2019
+ const vn = L(() => ({
2020
+ active: V,
2021
+ activeNode: K,
2022
+ activeNodeRect: X,
2023
+ activatorEvent: G,
1969
2024
  collisions: pe,
1970
- containerNodeRect: je,
1971
- dragOverlay: ie,
1972
- draggableNodes: w,
2025
+ containerNodeRect: Je,
2026
+ dragOverlay: se,
2027
+ draggableNodes: m,
1973
2028
  droppableContainers: k,
1974
2029
  droppableRects: le,
1975
2030
  over: ee,
1976
- measureDroppableContainers: Ne,
2031
+ measureDroppableContainers: Te,
1977
2032
  scrollableAncestors: Z,
1978
- scrollableAncestorRects: Te,
1979
- measuringConfiguration: re,
1980
- measuringScheduled: gt,
1981
- windowRect: He
1982
- }), [q, $, W, J, pe, je, ie, w, k, le, ee, Ne, Z, Te, re, gt, He]), an = L(() => ({
1983
- activatorEvent: J,
1984
- activators: Et,
1985
- active: q,
1986
- activeNodeRect: W,
2033
+ scrollableAncestorRects: ke,
2034
+ measuringConfiguration: oe,
2035
+ measuringScheduled: mt,
2036
+ windowRect: Ve
2037
+ }), [V, K, X, G, pe, Je, se, m, k, le, ee, Te, Z, ke, oe, mt, Ve]), pn = L(() => ({
2038
+ activatorEvent: G,
2039
+ activators: Tt,
2040
+ active: V,
2041
+ activeNodeRect: X,
1987
2042
  ariaDescribedById: {
1988
- draggable: Ye
2043
+ draggable: qe
1989
2044
  },
1990
- dispatch: y,
1991
- draggableNodes: w,
2045
+ dispatch: b,
2046
+ draggableNodes: m,
1992
2047
  over: ee,
1993
- measureDroppableContainers: Ne
1994
- }), [J, Et, q, W, y, Ye, w, ee, Ne]);
1995
- return j.createElement(Wt.Provider, {
1996
- value: b
1997
- }, j.createElement(Ke.Provider, {
1998
- value: an
1999
- }, j.createElement(Zt.Provider, {
2000
- value: ln
2001
- }, j.createElement(en.Provider, {
2002
- value: on
2003
- }, u)), j.createElement(mr, {
2004
- disabled: (l == null ? void 0 : l.restoreFocus) === !1
2005
- })), j.createElement(Cn, {
2006
- ...l,
2007
- hiddenTextDescribedById: Ye
2048
+ measureDroppableContainers: Te
2049
+ }), [G, Tt, V, X, b, qe, m, ee, Te]);
2050
+ return A.createElement(Ut.Provider, {
2051
+ value: y
2052
+ }, A.createElement(Me.Provider, {
2053
+ value: pn
2054
+ }, A.createElement(ln.Provider, {
2055
+ value: vn
2056
+ }, A.createElement(He.Provider, {
2057
+ value: hn
2058
+ }, c)), A.createElement(Nr, {
2059
+ disabled: (a == null ? void 0 : a.restoreFocus) === !1
2060
+ })), A.createElement(kn, {
2061
+ ...a,
2062
+ hiddenTextDescribedById: qe
2008
2063
  }));
2009
- function cn() {
2010
- const N = (ut == null ? void 0 : ut.autoScrollEnabled) === !1, z = typeof a == "object" ? a.enabled === !1 : a === !1, B = S && !N && !z;
2011
- return typeof a == "object" ? {
2012
- ...a,
2064
+ function bn() {
2065
+ const I = (vt == null ? void 0 : vt.autoScrollEnabled) === !1, P = typeof l == "object" ? l.enabled === !1 : l === !1, B = S && !I && !P;
2066
+ return typeof l == "object" ? {
2067
+ ...l,
2013
2068
  enabled: B
2014
2069
  } : {
2015
2070
  enabled: B
2016
2071
  };
2017
2072
  }
2018
- }), Sr = /* @__PURE__ */ Me(null), Bt = "button", Rr = "Droppable";
2019
- function Ir(e) {
2073
+ }), Lr = /* @__PURE__ */ Oe(null), jt = "button", kr = "Droppable";
2074
+ function to(e) {
2020
2075
  let {
2021
2076
  id: t,
2022
2077
  data: n,
2023
2078
  disabled: r = !1,
2024
2079
  attributes: i
2025
2080
  } = e;
2026
- const o = Ue(Rr), {
2081
+ const o = Ye(kr), {
2027
2082
  activators: s,
2028
- activatorEvent: l,
2029
- active: a,
2030
- activeNodeRect: u,
2083
+ activatorEvent: a,
2084
+ active: l,
2085
+ activeNodeRect: c,
2031
2086
  ariaDescribedById: d,
2032
- draggableNodes: c,
2087
+ draggableNodes: u,
2033
2088
  over: g
2034
- } = he(Ke), {
2035
- role: f = Bt,
2036
- roleDescription: C = "draggable",
2089
+ } = ae(Me), {
2090
+ role: f = jt,
2091
+ roleDescription: D = "draggable",
2037
2092
  tabIndex: h = 0
2038
- } = i ?? {}, v = (a == null ? void 0 : a.id) === t, y = he(v ? en : Sr), [D, b] = Pe(), [T, x] = Pe(), S = ur(s, t), p = Re(n);
2039
- se(
2040
- () => (c.set(t, {
2093
+ } = i ?? {}, v = (l == null ? void 0 : l.id) === t, b = ae(v ? He : Lr), [w, y] = Xe(), [M, C] = Xe(), S = Dr(s, t), p = Re(n);
2094
+ re(
2095
+ () => (u.set(t, {
2041
2096
  id: t,
2042
2097
  key: o,
2043
- node: D,
2044
- activatorNode: T,
2098
+ node: w,
2099
+ activatorNode: M,
2045
2100
  data: p
2046
2101
  }), () => {
2047
- const M = c.get(t);
2048
- M && M.key === o && c.delete(t);
2102
+ const R = u.get(t);
2103
+ R && R.key === o && u.delete(t);
2049
2104
  }),
2050
2105
  // eslint-disable-next-line react-hooks/exhaustive-deps
2051
- [c, t]
2106
+ [u, t]
2052
2107
  );
2053
- const w = L(() => ({
2108
+ const m = L(() => ({
2054
2109
  role: f,
2055
2110
  tabIndex: h,
2056
2111
  "aria-disabled": r,
2057
- "aria-pressed": v && f === Bt ? !0 : void 0,
2058
- "aria-roledescription": C,
2112
+ "aria-pressed": v && f === jt ? !0 : void 0,
2113
+ "aria-roledescription": D,
2059
2114
  "aria-describedby": d.draggable
2060
- }), [r, f, h, v, C, d.draggable]);
2115
+ }), [r, f, h, v, D, d.draggable]);
2061
2116
  return {
2062
- active: a,
2063
- activatorEvent: l,
2064
- activeNodeRect: u,
2065
- attributes: w,
2117
+ active: l,
2118
+ activatorEvent: a,
2119
+ activeNodeRect: c,
2120
+ attributes: m,
2066
2121
  isDragging: v,
2067
2122
  listeners: r ? void 0 : S,
2068
- node: D,
2123
+ node: w,
2069
2124
  over: g,
2070
- setNodeRef: b,
2071
- setActivatorNodeRef: x,
2072
- transform: y
2125
+ setNodeRef: y,
2126
+ setActivatorNodeRef: C,
2127
+ transform: b
2073
2128
  };
2074
2129
  }
2075
- function kr() {
2076
- return he(Zt);
2130
+ function Ir() {
2131
+ return ae(ln);
2077
2132
  }
2078
- const Er = "Droppable", Mr = {
2133
+ const zr = "Droppable", Pr = {
2079
2134
  timeout: 25
2080
2135
  };
2081
- function zr(e) {
2136
+ function no(e) {
2082
2137
  let {
2083
2138
  data: t,
2084
2139
  disabled: n = !1,
2085
2140
  id: r,
2086
2141
  resizeObserverConfig: i
2087
2142
  } = e;
2088
- const o = Ue(Er), {
2143
+ const o = Ye(zr), {
2089
2144
  active: s,
2090
- dispatch: l,
2091
- over: a,
2092
- measureDroppableContainers: u
2093
- } = he(Ke), d = I({
2145
+ dispatch: a,
2146
+ over: l,
2147
+ measureDroppableContainers: c
2148
+ } = ae(Me), d = z({
2094
2149
  disabled: n
2095
- }), c = I(!1), g = I(null), f = I(null), {
2096
- disabled: C,
2150
+ }), u = z(!1), g = z(null), f = z(null), {
2151
+ disabled: D,
2097
2152
  updateMeasurementsFor: h,
2098
2153
  timeout: v
2099
2154
  } = {
2100
- ...Mr,
2155
+ ...Pr,
2101
2156
  ...i
2102
- }, y = Re(h ?? r), D = _(
2157
+ }, b = Re(h ?? r), w = U(
2103
2158
  () => {
2104
- if (!c.current) {
2105
- c.current = !0;
2159
+ if (!u.current) {
2160
+ u.current = !0;
2106
2161
  return;
2107
2162
  }
2108
2163
  f.current != null && clearTimeout(f.current), f.current = setTimeout(() => {
2109
- u(Array.isArray(y.current) ? y.current : [y.current]), f.current = null;
2164
+ c(Array.isArray(b.current) ? b.current : [b.current]), f.current = null;
2110
2165
  }, v);
2111
2166
  },
2112
2167
  //eslint-disable-next-line react-hooks/exhaustive-deps
2113
2168
  [v]
2114
- ), b = _e({
2115
- callback: D,
2116
- disabled: C || !s
2117
- }), T = _((w, M) => {
2118
- b && (M && (b.unobserve(M), c.current = !1), w && b.observe(w));
2119
- }, [b]), [x, S] = Pe(T), p = Re(t);
2120
- return E(() => {
2121
- !b || !x.current || (b.disconnect(), c.current = !1, b.observe(x.current));
2122
- }, [x, b]), se(
2123
- () => (l({
2124
- type: R.RegisterDroppable,
2169
+ ), y = _e({
2170
+ callback: w,
2171
+ disabled: D || !s
2172
+ }), M = U((m, R) => {
2173
+ y && (R && (y.unobserve(R), u.current = !1), m && y.observe(m));
2174
+ }, [y]), [C, S] = Xe(M), p = Re(t);
2175
+ return N(() => {
2176
+ !y || !C.current || (y.disconnect(), u.current = !1, y.observe(C.current));
2177
+ }, [C, y]), re(
2178
+ () => (a({
2179
+ type: O.RegisterDroppable,
2125
2180
  element: {
2126
2181
  id: r,
2127
2182
  key: o,
2128
2183
  disabled: n,
2129
- node: x,
2184
+ node: C,
2130
2185
  rect: g,
2131
2186
  data: p
2132
2187
  }
2133
- }), () => l({
2134
- type: R.UnregisterDroppable,
2188
+ }), () => a({
2189
+ type: O.UnregisterDroppable,
2135
2190
  key: o,
2136
2191
  id: r
2137
2192
  })),
2138
2193
  // eslint-disable-next-line react-hooks/exhaustive-deps
2139
2194
  [r]
2140
- ), E(() => {
2141
- n !== d.current.disabled && (l({
2142
- type: R.SetDroppableDisabled,
2195
+ ), N(() => {
2196
+ n !== d.current.disabled && (a({
2197
+ type: O.SetDroppableDisabled,
2143
2198
  id: r,
2144
2199
  key: o,
2145
2200
  disabled: n
2146
2201
  }), d.current.disabled = n);
2147
- }, [r, o, n, l]), {
2202
+ }, [r, o, n, a]), {
2148
2203
  active: s,
2149
2204
  rect: g,
2150
- isOver: (a == null ? void 0 : a.id) === r,
2151
- node: x,
2152
- over: a,
2205
+ isOver: (l == null ? void 0 : l.id) === r,
2206
+ node: C,
2207
+ over: l,
2153
2208
  setNodeRef: S
2154
2209
  };
2155
2210
  }
2211
+ function Br(e) {
2212
+ let {
2213
+ animation: t,
2214
+ children: n
2215
+ } = e;
2216
+ const [r, i] = Y(null), [o, s] = Y(null), a = $e(n);
2217
+ return !n && !r && a && i(a), re(() => {
2218
+ if (!o)
2219
+ return;
2220
+ const l = r == null ? void 0 : r.key, c = r == null ? void 0 : r.props.id;
2221
+ if (l == null || c == null) {
2222
+ i(null);
2223
+ return;
2224
+ }
2225
+ Promise.resolve(t(c, o)).then(() => {
2226
+ i(null);
2227
+ });
2228
+ }, [t, r, o]), A.createElement(A.Fragment, null, n, r ? mn(r, {
2229
+ ref: s
2230
+ }) : null);
2231
+ }
2232
+ const Fr = {
2233
+ x: 0,
2234
+ y: 0,
2235
+ scaleX: 1,
2236
+ scaleY: 1
2237
+ };
2238
+ function $r(e) {
2239
+ let {
2240
+ children: t
2241
+ } = e;
2242
+ return A.createElement(Me.Provider, {
2243
+ value: an
2244
+ }, A.createElement(He.Provider, {
2245
+ value: Fr
2246
+ }, t));
2247
+ }
2248
+ const Kr = {
2249
+ position: "fixed",
2250
+ touchAction: "none"
2251
+ }, Xr = (e) => lt(e) ? "transform 250ms ease" : void 0, jr = /* @__PURE__ */ wn((e, t) => {
2252
+ let {
2253
+ as: n,
2254
+ activatorEvent: r,
2255
+ adjustScale: i,
2256
+ children: o,
2257
+ className: s,
2258
+ rect: a,
2259
+ style: l,
2260
+ transform: c,
2261
+ transition: d = Xr
2262
+ } = e;
2263
+ if (!a)
2264
+ return null;
2265
+ const u = i ? c : {
2266
+ ...c,
2267
+ scaleX: 1,
2268
+ scaleY: 1
2269
+ }, g = {
2270
+ ...Kr,
2271
+ width: a.width,
2272
+ height: a.height,
2273
+ top: a.top,
2274
+ left: a.left,
2275
+ transform: nt.Transform.toString(u),
2276
+ transformOrigin: i && r ? zn(r, a) : void 0,
2277
+ transition: typeof d == "function" ? d(r) : d,
2278
+ ...l
2279
+ };
2280
+ return A.createElement(n, {
2281
+ className: s,
2282
+ style: g,
2283
+ ref: t
2284
+ }, o);
2285
+ }), Wr = (e) => (t) => {
2286
+ let {
2287
+ active: n,
2288
+ dragOverlay: r
2289
+ } = t;
2290
+ const i = {}, {
2291
+ styles: o,
2292
+ className: s
2293
+ } = e;
2294
+ if (o != null && o.active)
2295
+ for (const [a, l] of Object.entries(o.active))
2296
+ l !== void 0 && (i[a] = n.node.style.getPropertyValue(a), n.node.style.setProperty(a, l));
2297
+ if (o != null && o.dragOverlay)
2298
+ for (const [a, l] of Object.entries(o.dragOverlay))
2299
+ l !== void 0 && r.node.style.setProperty(a, l);
2300
+ return s != null && s.active && n.node.classList.add(s.active), s != null && s.dragOverlay && r.node.classList.add(s.dragOverlay), function() {
2301
+ for (const [l, c] of Object.entries(i))
2302
+ n.node.style.setProperty(l, c);
2303
+ s != null && s.active && n.node.classList.remove(s.active);
2304
+ };
2305
+ }, Yr = (e) => {
2306
+ let {
2307
+ transform: {
2308
+ initial: t,
2309
+ final: n
2310
+ }
2311
+ } = e;
2312
+ return [{
2313
+ transform: nt.Transform.toString(t)
2314
+ }, {
2315
+ transform: nt.Transform.toString(n)
2316
+ }];
2317
+ }, Ur = {
2318
+ duration: 250,
2319
+ easing: "ease",
2320
+ keyframes: Yr,
2321
+ sideEffects: /* @__PURE__ */ Wr({
2322
+ styles: {
2323
+ active: {
2324
+ opacity: "0"
2325
+ }
2326
+ }
2327
+ })
2328
+ };
2329
+ function _r(e) {
2330
+ let {
2331
+ config: t,
2332
+ draggableNodes: n,
2333
+ droppableContainers: r,
2334
+ measuringConfiguration: i
2335
+ } = e;
2336
+ return ct((o, s) => {
2337
+ if (t === null)
2338
+ return;
2339
+ const a = n.get(o);
2340
+ if (!a)
2341
+ return;
2342
+ const l = a.node.current;
2343
+ if (!l)
2344
+ return;
2345
+ const c = sn(s);
2346
+ if (!c)
2347
+ return;
2348
+ const {
2349
+ transform: d
2350
+ } = q(s).getComputedStyle(s), u = Ht(d);
2351
+ if (!u)
2352
+ return;
2353
+ const g = typeof t == "function" ? t : Hr(t);
2354
+ return en(l, i.draggable.measure), g({
2355
+ active: {
2356
+ id: o,
2357
+ data: a.data,
2358
+ node: l,
2359
+ rect: i.draggable.measure(l)
2360
+ },
2361
+ draggableNodes: n,
2362
+ dragOverlay: {
2363
+ node: s,
2364
+ rect: i.dragOverlay.measure(c)
2365
+ },
2366
+ droppableContainers: r,
2367
+ measuringConfiguration: i,
2368
+ transform: u
2369
+ });
2370
+ });
2371
+ }
2372
+ function Hr(e) {
2373
+ const {
2374
+ duration: t,
2375
+ easing: n,
2376
+ sideEffects: r,
2377
+ keyframes: i
2378
+ } = {
2379
+ ...Ur,
2380
+ ...e
2381
+ };
2382
+ return (o) => {
2383
+ let {
2384
+ active: s,
2385
+ dragOverlay: a,
2386
+ transform: l,
2387
+ ...c
2388
+ } = o;
2389
+ if (!t)
2390
+ return;
2391
+ const d = {
2392
+ x: a.rect.left - s.rect.left,
2393
+ y: a.rect.top - s.rect.top
2394
+ }, u = {
2395
+ scaleX: l.scaleX !== 1 ? s.rect.width * l.scaleX / a.rect.width : 1,
2396
+ scaleY: l.scaleY !== 1 ? s.rect.height * l.scaleY / a.rect.height : 1
2397
+ }, g = {
2398
+ x: l.x - d.x,
2399
+ y: l.y - d.y,
2400
+ ...u
2401
+ }, f = i({
2402
+ ...c,
2403
+ active: s,
2404
+ dragOverlay: a,
2405
+ transform: {
2406
+ initial: l,
2407
+ final: g
2408
+ }
2409
+ }), [D] = f, h = f[f.length - 1];
2410
+ if (JSON.stringify(D) === JSON.stringify(h))
2411
+ return;
2412
+ const v = r == null ? void 0 : r({
2413
+ active: s,
2414
+ dragOverlay: a,
2415
+ ...c
2416
+ }), b = a.node.animate(f, {
2417
+ duration: t,
2418
+ easing: n,
2419
+ fill: "forwards"
2420
+ });
2421
+ return new Promise((w) => {
2422
+ b.onfinish = () => {
2423
+ v == null || v(), w();
2424
+ };
2425
+ });
2426
+ };
2427
+ }
2428
+ let Wt = 0;
2429
+ function qr(e) {
2430
+ return L(() => {
2431
+ if (e != null)
2432
+ return Wt++, Wt;
2433
+ }, [e]);
2434
+ }
2435
+ const ro = /* @__PURE__ */ A.memo((e) => {
2436
+ let {
2437
+ adjustScale: t = !1,
2438
+ children: n,
2439
+ dropAnimation: r,
2440
+ style: i,
2441
+ transition: o,
2442
+ modifiers: s,
2443
+ wrapperElement: a = "div",
2444
+ className: l,
2445
+ zIndex: c = 999
2446
+ } = e;
2447
+ const {
2448
+ activatorEvent: d,
2449
+ active: u,
2450
+ activeNodeRect: g,
2451
+ containerNodeRect: f,
2452
+ draggableNodes: D,
2453
+ droppableContainers: h,
2454
+ dragOverlay: v,
2455
+ over: b,
2456
+ measuringConfiguration: w,
2457
+ scrollableAncestors: y,
2458
+ scrollableAncestorRects: M,
2459
+ windowRect: C
2460
+ } = Ir(), S = ae(He), p = qr(u == null ? void 0 : u.id), m = cn(s, {
2461
+ activatorEvent: d,
2462
+ active: u,
2463
+ activeNodeRect: g,
2464
+ containerNodeRect: f,
2465
+ draggingNodeRect: v.rect,
2466
+ over: b,
2467
+ overlayNodeRect: v.rect,
2468
+ scrollableAncestors: y,
2469
+ scrollableAncestorRects: M,
2470
+ transform: S,
2471
+ windowRect: C
2472
+ }), R = gt(g), k = _r({
2473
+ config: r,
2474
+ draggableNodes: D,
2475
+ droppableContainers: h,
2476
+ measuringConfiguration: w
2477
+ }), E = R ? v.setRef : void 0;
2478
+ return A.createElement($r, null, A.createElement(Br, {
2479
+ animation: k
2480
+ }, u && p ? A.createElement(jr, {
2481
+ key: p,
2482
+ id: u.id,
2483
+ ref: E,
2484
+ as: a,
2485
+ activatorEvent: d,
2486
+ adjustScale: t,
2487
+ className: l,
2488
+ transition: o,
2489
+ rect: R,
2490
+ style: {
2491
+ zIndex: c,
2492
+ ...i
2493
+ },
2494
+ transform: m
2495
+ }, n) : null));
2496
+ });
2156
2497
  export {
2157
2498
  Ce as AutoScrollActivator,
2158
- Tr as DndContext,
2159
- m as KeyboardCode,
2160
- Jt as KeyboardSensor,
2161
- rt as MeasuringFrequency,
2499
+ eo as DndContext,
2500
+ ro as DragOverlay,
2501
+ x as KeyboardCode,
2502
+ nn as KeyboardSensor,
2503
+ it as MeasuringFrequency,
2162
2504
  Ee as MeasuringStrategy,
2163
- Jn as MouseSensor,
2164
- Vt as PointerSensor,
2165
- Vn as TouchSensor,
2505
+ sr as MouseSensor,
2506
+ rn as PointerSensor,
2507
+ ar as TouchSensor,
2166
2508
  We as TraversalOrder,
2167
- Dr as applyModifiers,
2168
- xn as defaultAnnouncements,
2169
- K as defaultCoordinates,
2170
- Dn as defaultScreenReaderInstructions,
2171
- Oe as getClientRect,
2172
- Rn as getFirstCollision,
2173
- lt as getScrollableAncestors,
2174
- Mn as rectIntersection,
2175
- kr as useDndContext,
2176
- yn as useDndMonitor,
2177
- Ir as useDraggable,
2178
- zr as useDroppable
2509
+ cn as applyModifiers,
2510
+ Zr as closestCenter,
2511
+ Ln as defaultAnnouncements,
2512
+ _ as defaultCoordinates,
2513
+ Ur as defaultDropAnimation,
2514
+ Wr as defaultDropAnimationSideEffects,
2515
+ Tn as defaultScreenReaderInstructions,
2516
+ Ne as getClientRect,
2517
+ Fn as getFirstCollision,
2518
+ dt as getScrollableAncestors,
2519
+ Kn as rectIntersection,
2520
+ Ir as useDndContext,
2521
+ Nn as useDndMonitor,
2522
+ to as useDraggable,
2523
+ no as useDroppable
2179
2524
  };