react-timelane 0.0.1 → 0.0.2

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 (33) hide show
  1. package/dist/components/Timelane.d.ts +15 -0
  2. package/dist/components/TimelaneAside.d.ts +13 -0
  3. package/dist/components/TimelaneBackground.d.ts +5 -0
  4. package/dist/components/TimelaneBody.d.ts +6 -0
  5. package/dist/components/{TimelineBody.d.ts → TimelaneBodyInner.d.ts} +5 -2
  6. package/dist/components/{TimelineHeader/TimelineHeader.d.ts → TimelaneHeader/TimelaneHeader.d.ts} +2 -2
  7. package/dist/components/{TimelineHeader → TimelaneHeader}/index.d.ts +1 -1
  8. package/dist/components/TimelaneSelectionLayer.d.ts +6 -0
  9. package/dist/components/TimelaneSettingsContext.d.ts +7 -0
  10. package/dist/components/TimelaneSettingsProvider.d.ts +7 -0
  11. package/dist/components/{TimelineWrapper.d.ts → TimelaneWrapper.d.ts} +5 -2
  12. package/dist/components/core/CoreItem/CoreItemComponent.d.ts +2 -2
  13. package/dist/components/core/CoreSwimlane/CoreSwimlane.d.ts +1 -1
  14. package/dist/components/layout/TimelaneLayout.d.ts +23 -0
  15. package/dist/hooks/useTimelaneContext.d.ts +1 -0
  16. package/dist/index.d.ts +9 -9
  17. package/dist/react-timelane.css +1 -1
  18. package/dist/react-timelane.js +959 -1002
  19. package/dist/types/{TimelineSettings.d.ts → TimelaneSettings.d.ts} +1 -1
  20. package/dist/types/index.d.ts +1 -1
  21. package/package.json +1 -1
  22. package/vite.config.ts +1 -1
  23. package/dist/components/TimelineAside.d.ts +0 -13
  24. package/dist/components/TimelineBackground.d.ts +0 -5
  25. package/dist/components/TimelineSelectionLayer.d.ts +0 -6
  26. package/dist/components/TimelineSettingsContext.d.ts +0 -7
  27. package/dist/components/TimelineSettingsProvider.d.ts +0 -7
  28. package/dist/components/layout/TimelineLayout.d.ts +0 -23
  29. package/dist/hooks/useTimelineContext.d.ts +0 -1
  30. /package/dist/components/{TimelineHeader → TimelaneHeader}/DaysHeader.d.ts +0 -0
  31. /package/dist/components/{TimelineHeader → TimelaneHeader}/MonthsHeader.d.ts +0 -0
  32. /package/dist/components/{TimelineHeader → TimelaneHeader}/WeeksHeader.d.ts +0 -0
  33. /package/dist/components/{TimelineHeader → TimelaneHeader}/renderingUtils.d.ts +0 -0
@@ -1,71 +1,71 @@
1
- import { jsx as v, jsxs as K, Fragment as Se } from "react/jsx-runtime";
2
- import Rt, { useRef as ce, createContext as Vt, useContext as Qt, useState as G, useEffect as ee, memo as Jt, useCallback as Ke, useMemo as Zt, PureComponent as er } from "react";
3
- function re({ children: e }) {
4
- const t = ce(null);
5
- return /* @__PURE__ */ v(
1
+ import { jsx as y, jsxs as Q, Fragment as Oe } from "react/jsx-runtime";
2
+ import kt, { useRef as le, createContext as Qt, useContext as Jt, useEffect as re, memo as Zt, useCallback as Ve, useMemo as er, PureComponent as tr, useState as V } from "react";
3
+ function H({ children: e }) {
4
+ const t = le(null);
5
+ return /* @__PURE__ */ y(
6
6
  "div",
7
7
  {
8
- className: "timeline-layout",
8
+ className: "timelane-layout",
9
9
  onWheel: (r) => {
10
10
  t.current && (r.ctrlKey || r.shiftKey) && (t.current.scrollLeft += r.deltaY, r.preventDefault());
11
11
  },
12
12
  ref: t,
13
- children: /* @__PURE__ */ v("div", { className: "timeline-layout-inner", children: e })
13
+ children: /* @__PURE__ */ y("div", { className: "timelane-layout-inner", children: e })
14
14
  }
15
15
  );
16
16
  }
17
- function tr({ children: e }) {
18
- return /* @__PURE__ */ v("div", { className: "timeline-layout-header", children: e });
19
- }
20
17
  function rr({ children: e }) {
21
- return /* @__PURE__ */ v("div", { className: "timeline-layout-background", children: e });
18
+ return /* @__PURE__ */ y("div", { className: "timelane-layout-header", children: e });
22
19
  }
23
20
  function nr({ children: e }) {
24
- return /* @__PURE__ */ v("div", { className: "timeline-layout-body", children: e });
21
+ return /* @__PURE__ */ y("div", { className: "timelane-layout-background", children: e });
25
22
  }
26
23
  function ir({ children: e }) {
27
- return /* @__PURE__ */ v("div", { className: "timeline-layout-footer", children: e });
24
+ return /* @__PURE__ */ y("div", { className: "timelane-layout-body", children: e });
25
+ }
26
+ function ar({ children: e }) {
27
+ return /* @__PURE__ */ y("div", { className: "timelane-layout-footer", children: e });
28
28
  }
29
- function ar({
29
+ function or({
30
30
  side: e = "left",
31
31
  children: t
32
32
  }) {
33
- return /* @__PURE__ */ v(
33
+ return /* @__PURE__ */ y(
34
34
  "div",
35
35
  {
36
- className: `timeline-layout-aside ${e == "left" ? "timeline-layout-aside-left" : "timeline-layout-aside-right"}`,
36
+ className: `timelane-layout-aside ${e == "left" ? "timelane-layout-aside-left" : "timelane-layout-aside-right"}`,
37
37
  children: t
38
38
  }
39
39
  );
40
40
  }
41
- function or({
41
+ function sr({
42
42
  corner: e = "top left",
43
43
  children: t
44
44
  }) {
45
45
  let r = "";
46
46
  switch (e) {
47
47
  case "top left":
48
- r = "timeline-layout-corner-top-left";
48
+ r = "timelane-layout-corner-top-left";
49
49
  break;
50
50
  case "top right":
51
- r = "timeline-layout-corner-top-right";
51
+ r = "timelane-layout-corner-top-right";
52
52
  break;
53
53
  case "bottom left":
54
- r = "timeline-layout-corner-bottom-left";
54
+ r = "timelane-layout-corner-bottom-left";
55
55
  break;
56
56
  case "bottom right":
57
- r = "timeline-layout-corner-bottom-right";
57
+ r = "timelane-layout-corner-bottom-right";
58
58
  break;
59
59
  }
60
- return /* @__PURE__ */ v("div", { className: `timeline-layout-corner ${r}`, children: t });
61
- }
62
- re.Header = tr;
63
- re.Body = nr;
64
- re.Background = rr;
65
- re.Footer = ir;
66
- re.Aside = ar;
67
- re.Corner = or;
68
- const sr = {
60
+ return /* @__PURE__ */ y("div", { className: `timelane-layout-corner ${r}`, children: t });
61
+ }
62
+ H.Header = rr;
63
+ H.Body = ir;
64
+ H.Background = nr;
65
+ H.Footer = ar;
66
+ H.Aside = or;
67
+ H.Corner = sr;
68
+ const ur = {
69
69
  start: new Date(2025, 1, 1),
70
70
  end: new Date(2025, 5, 1),
71
71
  pixelsPerDay: 30,
@@ -75,27 +75,27 @@ const sr = {
75
75
  showDays: !0,
76
76
  allowOverlaps: !0,
77
77
  focusedDate: null
78
- }, ur = {
79
- settings: sr,
78
+ }, cr = {
79
+ settings: ur,
80
80
  setSettings: () => {
81
81
  }
82
- }, kt = Vt(ur), ge = () => Qt(kt);
83
- function fa({
84
- swimlanes: e,
85
- focusedSwimlane: t,
86
- setFocusedSwimlane: r = () => {
82
+ }, Nt = Qt(cr), pe = () => Jt(Nt);
83
+ function lr({
84
+ lanes: e,
85
+ focusedLane: t,
86
+ setFocusedLane: r = () => {
87
87
  },
88
- onSwimlaneHeaderClick: n = () => {
88
+ onLaneHeaderClick: n = () => {
89
89
  },
90
- onSwimlaneHeaderDoubleClick: i = () => {
90
+ onLaneHeaderDoubleClick: i = () => {
91
91
  },
92
- onSwimlaneHeaderContextMenu: a = () => {
92
+ onLaneHeaderContextMenu: a = () => {
93
93
  },
94
- renderSwimlaneHeader: u = lr
94
+ renderLaneHeader: u = fr
95
95
  }) {
96
- const { settings: c } = ge();
97
- return /* @__PURE__ */ v("div", { className: "timeline-aside", children: e && e.map((s) => /* @__PURE__ */ v(
98
- cr,
96
+ const { settings: c } = pe();
97
+ return /* @__PURE__ */ y(H.Aside, { children: /* @__PURE__ */ y("div", { className: "timelane-aside", children: e && e.map((s) => /* @__PURE__ */ y(
98
+ dr,
99
99
  {
100
100
  height: c.pixelsPerResource,
101
101
  isFocused: t ? t.id === s.id : !1,
@@ -107,9 +107,9 @@ function fa({
107
107
  children: u(s)
108
108
  },
109
109
  s.id
110
- )) });
110
+ )) }) });
111
111
  }
112
- function cr({
112
+ function dr({
113
113
  height: e,
114
114
  isFocused: t,
115
115
  onClick: r,
@@ -117,10 +117,10 @@ function cr({
117
117
  onContextMenu: i,
118
118
  children: a
119
119
  }) {
120
- return /* @__PURE__ */ v(
120
+ return /* @__PURE__ */ y(
121
121
  "div",
122
122
  {
123
- className: `timeline-aside-swimlane-header ${t ? "timeline-aside-swimlane-header-focused" : ""}`,
123
+ className: `timelane-aside-swimlane-header ${t ? "timelane-aside-swimlane-header-focused" : ""}`,
124
124
  style: { height: `${e}px` },
125
125
  onClick: r,
126
126
  onDoubleClick: n,
@@ -129,44 +129,44 @@ function cr({
129
129
  }
130
130
  );
131
131
  }
132
- function lr(e) {
133
- return /* @__PURE__ */ v("div", { children: e.id });
132
+ function fr(e) {
133
+ return /* @__PURE__ */ y("div", { children: e.id });
134
134
  }
135
- const Nt = 6048e5, dr = 864e5, Ve = Symbol.for("constructDateFrom");
135
+ const At = 6048e5, hr = 864e5, Qe = Symbol.for("constructDateFrom");
136
136
  function W(e, t) {
137
- return typeof e == "function" ? e(t) : e && typeof e == "object" && Ve in e ? e[Ve](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
137
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && Qe in e ? e[Qe](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
138
138
  }
139
139
  function N(e, t) {
140
140
  return W(t || e, e);
141
141
  }
142
- function le(e, t, r) {
142
+ function de(e, t, r) {
143
143
  const n = N(e, r == null ? void 0 : r.in);
144
144
  return isNaN(t) ? W(e, NaN) : (t && n.setDate(n.getDate() + t), n);
145
145
  }
146
- function At(e, t) {
146
+ function zt(e, t) {
147
147
  return N(e, t == null ? void 0 : t.in).getDay() === 0;
148
148
  }
149
- let fr = {};
150
- function Te() {
151
- return fr;
149
+ let gr = {};
150
+ function Me() {
151
+ return gr;
152
152
  }
153
- function j(e, t) {
153
+ function B(e, t) {
154
154
  var c, s, o, f;
155
- const r = Te(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.weekStartsOn) ?? r.weekStartsOn ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = N(e, t == null ? void 0 : t.in), a = i.getDay(), u = (a < n ? 7 : 0) + a - n;
155
+ const r = Me(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.weekStartsOn) ?? r.weekStartsOn ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = N(e, t == null ? void 0 : t.in), a = i.getDay(), u = (a < n ? 7 : 0) + a - n;
156
156
  return i.setDate(i.getDate() - u), i.setHours(0, 0, 0, 0), i;
157
157
  }
158
- function Oe(e, t) {
159
- return j(e, { ...t, weekStartsOn: 1 });
158
+ function De(e, t) {
159
+ return B(e, { ...t, weekStartsOn: 1 });
160
160
  }
161
- function zt(e, t) {
161
+ function _t(e, t) {
162
162
  const r = N(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = W(r, 0);
163
163
  i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0);
164
- const a = Oe(i), u = W(r, 0);
164
+ const a = De(i), u = W(r, 0);
165
165
  u.setFullYear(n, 0, 4), u.setHours(0, 0, 0, 0);
166
- const c = Oe(u);
166
+ const c = De(u);
167
167
  return r.getTime() >= a.getTime() ? n + 1 : r.getTime() >= c.getTime() ? n : n - 1;
168
168
  }
169
- function Qe(e) {
169
+ function Je(e) {
170
170
  const t = N(e), r = new Date(
171
171
  Date.UTC(
172
172
  t.getFullYear(),
@@ -180,33 +180,33 @@ function Qe(e) {
180
180
  );
181
181
  return r.setUTCFullYear(t.getFullYear()), +e - +r;
182
182
  }
183
- function Ie(e, ...t) {
183
+ function je(e, ...t) {
184
184
  const r = W.bind(
185
185
  null,
186
186
  e || t.find((n) => typeof n == "object")
187
187
  );
188
188
  return t.map(r);
189
189
  }
190
- function De(e, t) {
190
+ function Te(e, t) {
191
191
  const r = N(e, t == null ? void 0 : t.in);
192
192
  return r.setHours(0, 0, 0, 0), r;
193
193
  }
194
- function B(e, t, r) {
195
- const [n, i] = Ie(
194
+ function q(e, t, r) {
195
+ const [n, i] = je(
196
196
  r == null ? void 0 : r.in,
197
197
  e,
198
198
  t
199
- ), a = De(n), u = De(i), c = +a - Qe(a), s = +u - Qe(u);
200
- return Math.round((c - s) / dr);
199
+ ), a = Te(n), u = Te(i), c = +a - Je(a), s = +u - Je(u);
200
+ return Math.round((c - s) / hr);
201
201
  }
202
- function hr(e, t) {
203
- const r = zt(e, t), n = W(e, 0);
204
- return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), Oe(n);
202
+ function pr(e, t) {
203
+ const r = _t(e, t), n = W(e, 0);
204
+ return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), De(n);
205
205
  }
206
- function gr(e, t, r) {
207
- return le(e, t * 7, r);
206
+ function mr(e, t, r) {
207
+ return de(e, t * 7, r);
208
208
  }
209
- function pr(e, t) {
209
+ function yr(e, t) {
210
210
  let r, n = t == null ? void 0 : t.in;
211
211
  return e.forEach((i) => {
212
212
  !n && typeof i == "object" && (n = W.bind(null, i));
@@ -214,7 +214,7 @@ function pr(e, t) {
214
214
  (!r || r < a || isNaN(+a)) && (r = a);
215
215
  }), W(n, r || NaN);
216
216
  }
217
- function mr(e, t) {
217
+ function vr(e, t) {
218
218
  let r, n = t == null ? void 0 : t.in;
219
219
  return e.forEach((i) => {
220
220
  !n && typeof i == "object" && (n = W.bind(null, i));
@@ -222,26 +222,26 @@ function mr(e, t) {
222
222
  (!r || r > a || isNaN(+a)) && (r = a);
223
223
  }), W(n, r || NaN);
224
224
  }
225
- function yr(e, t, r) {
226
- const [n, i] = Ie(
225
+ function br(e, t, r) {
226
+ const [n, i] = je(
227
227
  r == null ? void 0 : r.in,
228
228
  e,
229
229
  t
230
230
  );
231
- return +De(n) == +De(i);
231
+ return +Te(n) == +Te(i);
232
232
  }
233
- function vr(e) {
233
+ function wr(e) {
234
234
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
235
235
  }
236
- function br(e) {
237
- return !(!vr(e) && typeof e != "number" || isNaN(+N(e)));
236
+ function xr(e) {
237
+ return !(!wr(e) && typeof e != "number" || isNaN(+N(e)));
238
238
  }
239
- function je(e, t) {
240
- const [r, n] = Ie(e, t.start, t.end);
239
+ function Be(e, t) {
240
+ const [r, n] = je(e, t.start, t.end);
241
241
  return { start: r, end: n };
242
242
  }
243
243
  function Ct(e, t) {
244
- const { start: r, end: n } = je(t == null ? void 0 : t.in, e);
244
+ const { start: r, end: n } = Be(t == null ? void 0 : t.in, e);
245
245
  let i = +r > +n;
246
246
  const a = i ? +r : +n, u = i ? n : r;
247
247
  u.setHours(0, 0, 0, 0);
@@ -251,8 +251,8 @@ function Ct(e, t) {
251
251
  s.push(W(r, u)), u.setDate(u.getDate() + c), u.setHours(0, 0, 0, 0);
252
252
  return i ? s.reverse() : s;
253
253
  }
254
- function wr(e, t) {
255
- const { start: r, end: n } = je(t == null ? void 0 : t.in, e);
254
+ function Sr(e, t) {
255
+ const { start: r, end: n } = Be(t == null ? void 0 : t.in, e);
256
256
  let i = +r > +n;
257
257
  const a = i ? +r : +n, u = i ? n : r;
258
258
  u.setHours(0, 0, 0, 0), u.setDate(1);
@@ -262,10 +262,10 @@ function wr(e, t) {
262
262
  s.push(W(r, u)), u.setMonth(u.getMonth() + c);
263
263
  return i ? s.reverse() : s;
264
264
  }
265
- function xr(e, t) {
266
- const { start: r, end: n } = je(t == null ? void 0 : t.in, e);
265
+ function Or(e, t) {
266
+ const { start: r, end: n } = Be(t == null ? void 0 : t.in, e);
267
267
  let i = +r > +n;
268
- const a = j(i ? n : r, t), u = j(i ? r : n, t);
268
+ const a = B(i ? n : r, t), u = B(i ? r : n, t);
269
269
  a.setHours(15), u.setHours(15);
270
270
  const c = +u.getTime();
271
271
  let s = a, o = (t == null ? void 0 : t.step) ?? 1;
@@ -273,14 +273,14 @@ function xr(e, t) {
273
273
  o < 0 && (o = -o, i = !i);
274
274
  const f = [];
275
275
  for (; +s <= c; )
276
- s.setHours(0), f.push(W(r, s)), s = gr(s, o), s.setHours(15);
276
+ s.setHours(0), f.push(W(r, s)), s = mr(s, o), s.setHours(15);
277
277
  return i ? f.reverse() : f;
278
278
  }
279
- function Sr(e, t) {
279
+ function Dr(e, t) {
280
280
  const r = N(e, t == null ? void 0 : t.in);
281
281
  return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
282
282
  }
283
- const Or = {
283
+ const Tr = {
284
284
  lessThanXSeconds: {
285
285
  one: "less than a second",
286
286
  other: "less than {{count}} seconds"
@@ -342,54 +342,54 @@ const Or = {
342
342
  one: "almost 1 year",
343
343
  other: "almost {{count}} years"
344
344
  }
345
- }, Dr = (e, t, r) => {
345
+ }, Mr = (e, t, r) => {
346
346
  let n;
347
- const i = Or[e];
347
+ const i = Tr[e];
348
348
  return typeof i == "string" ? n = i : t === 1 ? n = i.one : n = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
349
349
  };
350
- function Me(e) {
350
+ function Ee(e) {
351
351
  return (t = {}) => {
352
352
  const r = t.width ? String(t.width) : e.defaultWidth;
353
353
  return e.formats[r] || e.formats[e.defaultWidth];
354
354
  };
355
355
  }
356
- const Tr = {
356
+ const Er = {
357
357
  full: "EEEE, MMMM do, y",
358
358
  long: "MMMM do, y",
359
359
  medium: "MMM d, y",
360
360
  short: "MM/dd/yyyy"
361
- }, Mr = {
361
+ }, Pr = {
362
362
  full: "h:mm:ss a zzzz",
363
363
  long: "h:mm:ss a z",
364
364
  medium: "h:mm:ss a",
365
365
  short: "h:mm a"
366
- }, Er = {
366
+ }, Rr = {
367
367
  full: "{{date}} 'at' {{time}}",
368
368
  long: "{{date}} 'at' {{time}}",
369
369
  medium: "{{date}}, {{time}}",
370
370
  short: "{{date}}, {{time}}"
371
- }, Pr = {
372
- date: Me({
373
- formats: Tr,
371
+ }, kr = {
372
+ date: Ee({
373
+ formats: Er,
374
374
  defaultWidth: "full"
375
375
  }),
376
- time: Me({
377
- formats: Mr,
376
+ time: Ee({
377
+ formats: Pr,
378
378
  defaultWidth: "full"
379
379
  }),
380
- dateTime: Me({
381
- formats: Er,
380
+ dateTime: Ee({
381
+ formats: Rr,
382
382
  defaultWidth: "full"
383
383
  })
384
- }, Rr = {
384
+ }, Nr = {
385
385
  lastWeek: "'last' eeee 'at' p",
386
386
  yesterday: "'yesterday at' p",
387
387
  today: "'today at' p",
388
388
  tomorrow: "'tomorrow at' p",
389
389
  nextWeek: "eeee 'at' p",
390
390
  other: "P"
391
- }, kr = (e, t, r, n) => Rr[e];
392
- function ie(e) {
391
+ }, Ar = (e, t, r, n) => Nr[e];
392
+ function ae(e) {
393
393
  return (t, r) => {
394
394
  const n = r != null && r.context ? String(r.context) : "standalone";
395
395
  let i;
@@ -404,15 +404,15 @@ function ie(e) {
404
404
  return i[a];
405
405
  };
406
406
  }
407
- const Nr = {
407
+ const zr = {
408
408
  narrow: ["B", "A"],
409
409
  abbreviated: ["BC", "AD"],
410
410
  wide: ["Before Christ", "Anno Domini"]
411
- }, Ar = {
411
+ }, _r = {
412
412
  narrow: ["1", "2", "3", "4"],
413
413
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
414
414
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
415
- }, zr = {
415
+ }, Cr = {
416
416
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
417
417
  abbreviated: [
418
418
  "Jan",
@@ -442,7 +442,7 @@ const Nr = {
442
442
  "November",
443
443
  "December"
444
444
  ]
445
- }, Cr = {
445
+ }, Wr = {
446
446
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
447
447
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
448
448
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -455,7 +455,7 @@ const Nr = {
455
455
  "Friday",
456
456
  "Saturday"
457
457
  ]
458
- }, _r = {
458
+ }, Lr = {
459
459
  narrow: {
460
460
  am: "a",
461
461
  pm: "p",
@@ -486,7 +486,7 @@ const Nr = {
486
486
  evening: "evening",
487
487
  night: "night"
488
488
  }
489
- }, Wr = {
489
+ }, Hr = {
490
490
  narrow: {
491
491
  am: "a",
492
492
  pm: "p",
@@ -517,7 +517,7 @@ const Nr = {
517
517
  evening: "in the evening",
518
518
  night: "at night"
519
519
  }
520
- }, Lr = (e, t) => {
520
+ }, Ir = (e, t) => {
521
521
  const r = Number(e), n = r % 100;
522
522
  if (n > 20 || n < 10)
523
523
  switch (n % 10) {
@@ -529,40 +529,40 @@ const Nr = {
529
529
  return r + "rd";
530
530
  }
531
531
  return r + "th";
532
- }, Hr = {
533
- ordinalNumber: Lr,
534
- era: ie({
535
- values: Nr,
532
+ }, jr = {
533
+ ordinalNumber: Ir,
534
+ era: ae({
535
+ values: zr,
536
536
  defaultWidth: "wide"
537
537
  }),
538
- quarter: ie({
539
- values: Ar,
538
+ quarter: ae({
539
+ values: _r,
540
540
  defaultWidth: "wide",
541
541
  argumentCallback: (e) => e - 1
542
542
  }),
543
- month: ie({
544
- values: zr,
543
+ month: ae({
544
+ values: Cr,
545
545
  defaultWidth: "wide"
546
546
  }),
547
- day: ie({
548
- values: Cr,
547
+ day: ae({
548
+ values: Wr,
549
549
  defaultWidth: "wide"
550
550
  }),
551
- dayPeriod: ie({
552
- values: _r,
551
+ dayPeriod: ae({
552
+ values: Lr,
553
553
  defaultWidth: "wide",
554
- formattingValues: Wr,
554
+ formattingValues: Hr,
555
555
  defaultFormattingWidth: "wide"
556
556
  })
557
557
  };
558
- function ae(e) {
558
+ function oe(e) {
559
559
  return (t, r = {}) => {
560
560
  const n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
561
561
  if (!a)
562
562
  return null;
563
- const u = a[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(c) ? jr(c, (l) => l.test(u)) : (
563
+ const u = a[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(c) ? Yr(c, (l) => l.test(u)) : (
564
564
  // [TODO] -- I challenge you to fix the type
565
- Ir(c, (l) => l.test(u))
565
+ Br(c, (l) => l.test(u))
566
566
  );
567
567
  let o;
568
568
  o = e.valueCallback ? e.valueCallback(s) : s, o = r.valueCallback ? (
@@ -573,17 +573,17 @@ function ae(e) {
573
573
  return { value: o, rest: f };
574
574
  };
575
575
  }
576
- function Ir(e, t) {
576
+ function Br(e, t) {
577
577
  for (const r in e)
578
578
  if (Object.prototype.hasOwnProperty.call(e, r) && t(e[r]))
579
579
  return r;
580
580
  }
581
- function jr(e, t) {
581
+ function Yr(e, t) {
582
582
  for (let r = 0; r < e.length; r++)
583
583
  if (t(e[r]))
584
584
  return r;
585
585
  }
586
- function Yr(e) {
586
+ function Fr(e) {
587
587
  return (t, r = {}) => {
588
588
  const n = t.match(e.matchPattern);
589
589
  if (!n) return null;
@@ -595,23 +595,23 @@ function Yr(e) {
595
595
  return { value: u, rest: c };
596
596
  };
597
597
  }
598
- const Fr = /^(\d+)(th|st|nd|rd)?/i, Br = /\d+/i, $r = {
598
+ const $r = /^(\d+)(th|st|nd|rd)?/i, qr = /\d+/i, Xr = {
599
599
  narrow: /^(b|a)/i,
600
600
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
601
601
  wide: /^(before christ|before common era|anno domini|common era)/i
602
- }, qr = {
602
+ }, Ur = {
603
603
  any: [/^b/i, /^(a|c)/i]
604
- }, Xr = {
604
+ }, Gr = {
605
605
  narrow: /^[1234]/i,
606
606
  abbreviated: /^q[1234]/i,
607
607
  wide: /^[1234](th|st|nd|rd)? quarter/i
608
- }, Ur = {
608
+ }, Kr = {
609
609
  any: [/1/i, /2/i, /3/i, /4/i]
610
- }, Gr = {
610
+ }, Vr = {
611
611
  narrow: /^[jfmasond]/i,
612
612
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
613
613
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
614
- }, Kr = {
614
+ }, Qr = {
615
615
  narrow: [
616
616
  /^j/i,
617
617
  /^f/i,
@@ -640,18 +640,18 @@ const Fr = /^(\d+)(th|st|nd|rd)?/i, Br = /\d+/i, $r = {
640
640
  /^n/i,
641
641
  /^d/i
642
642
  ]
643
- }, Vr = {
643
+ }, Jr = {
644
644
  narrow: /^[smtwf]/i,
645
645
  short: /^(su|mo|tu|we|th|fr|sa)/i,
646
646
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
647
647
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
648
- }, Qr = {
648
+ }, Zr = {
649
649
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
650
650
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
651
- }, Jr = {
651
+ }, en = {
652
652
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
653
653
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
654
- }, Zr = {
654
+ }, tn = {
655
655
  any: {
656
656
  am: /^a/i,
657
657
  pm: /^p/i,
@@ -662,80 +662,80 @@ const Fr = /^(\d+)(th|st|nd|rd)?/i, Br = /\d+/i, $r = {
662
662
  evening: /evening/i,
663
663
  night: /night/i
664
664
  }
665
- }, en = {
666
- ordinalNumber: Yr({
667
- matchPattern: Fr,
668
- parsePattern: Br,
665
+ }, rn = {
666
+ ordinalNumber: Fr({
667
+ matchPattern: $r,
668
+ parsePattern: qr,
669
669
  valueCallback: (e) => parseInt(e, 10)
670
670
  }),
671
- era: ae({
672
- matchPatterns: $r,
673
- defaultMatchWidth: "wide",
674
- parsePatterns: qr,
675
- defaultParseWidth: "any"
676
- }),
677
- quarter: ae({
671
+ era: oe({
678
672
  matchPatterns: Xr,
679
673
  defaultMatchWidth: "wide",
680
674
  parsePatterns: Ur,
681
- defaultParseWidth: "any",
682
- valueCallback: (e) => e + 1
675
+ defaultParseWidth: "any"
683
676
  }),
684
- month: ae({
677
+ quarter: oe({
685
678
  matchPatterns: Gr,
686
679
  defaultMatchWidth: "wide",
687
680
  parsePatterns: Kr,
688
- defaultParseWidth: "any"
681
+ defaultParseWidth: "any",
682
+ valueCallback: (e) => e + 1
689
683
  }),
690
- day: ae({
684
+ month: oe({
691
685
  matchPatterns: Vr,
692
686
  defaultMatchWidth: "wide",
693
687
  parsePatterns: Qr,
694
688
  defaultParseWidth: "any"
695
689
  }),
696
- dayPeriod: ae({
690
+ day: oe({
697
691
  matchPatterns: Jr,
698
- defaultMatchWidth: "any",
692
+ defaultMatchWidth: "wide",
699
693
  parsePatterns: Zr,
700
694
  defaultParseWidth: "any"
695
+ }),
696
+ dayPeriod: oe({
697
+ matchPatterns: en,
698
+ defaultMatchWidth: "any",
699
+ parsePatterns: tn,
700
+ defaultParseWidth: "any"
701
701
  })
702
- }, tn = {
702
+ }, nn = {
703
703
  code: "en-US",
704
- formatDistance: Dr,
705
- formatLong: Pr,
706
- formatRelative: kr,
707
- localize: Hr,
708
- match: en,
704
+ formatDistance: Mr,
705
+ formatLong: kr,
706
+ formatRelative: Ar,
707
+ localize: jr,
708
+ match: rn,
709
709
  options: {
710
710
  weekStartsOn: 0,
711
711
  firstWeekContainsDate: 1
712
712
  }
713
713
  };
714
- function rn(e, t) {
714
+ function an(e, t) {
715
715
  const r = N(e, t == null ? void 0 : t.in);
716
- return B(r, Sr(r)) + 1;
716
+ return q(r, Dr(r)) + 1;
717
717
  }
718
- function nn(e, t) {
719
- const r = N(e, t == null ? void 0 : t.in), n = +Oe(r) - +hr(r);
720
- return Math.round(n / Nt) + 1;
718
+ function on(e, t) {
719
+ const r = N(e, t == null ? void 0 : t.in), n = +De(r) - +pr(r);
720
+ return Math.round(n / At) + 1;
721
721
  }
722
- function _t(e, t) {
722
+ function Wt(e, t) {
723
723
  var f, l, d, h;
724
- const r = N(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = Te(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : l.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((h = (d = i.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, u = W((t == null ? void 0 : t.in) || e, 0);
724
+ const r = N(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = Me(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : l.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((h = (d = i.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, u = W((t == null ? void 0 : t.in) || e, 0);
725
725
  u.setFullYear(n + 1, 0, a), u.setHours(0, 0, 0, 0);
726
- const c = j(u, t), s = W((t == null ? void 0 : t.in) || e, 0);
726
+ const c = B(u, t), s = W((t == null ? void 0 : t.in) || e, 0);
727
727
  s.setFullYear(n, 0, a), s.setHours(0, 0, 0, 0);
728
- const o = j(s, t);
728
+ const o = B(s, t);
729
729
  return +r >= +c ? n + 1 : +r >= +o ? n : n - 1;
730
730
  }
731
- function an(e, t) {
731
+ function sn(e, t) {
732
732
  var c, s, o, f;
733
- const r = Te(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = _t(e, t), a = W((t == null ? void 0 : t.in) || e, 0);
734
- return a.setFullYear(i, 0, n), a.setHours(0, 0, 0, 0), j(a, t);
733
+ const r = Me(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = Wt(e, t), a = W((t == null ? void 0 : t.in) || e, 0);
734
+ return a.setFullYear(i, 0, n), a.setHours(0, 0, 0, 0), B(a, t);
735
735
  }
736
- function on(e, t) {
737
- const r = N(e, t == null ? void 0 : t.in), n = +j(r, t) - +an(r, t);
738
- return Math.round(n / Nt) + 1;
736
+ function un(e, t) {
737
+ const r = N(e, t == null ? void 0 : t.in), n = +B(r, t) - +sn(r, t);
738
+ return Math.round(n / At) + 1;
739
739
  }
740
740
  function T(e, t) {
741
741
  const r = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(t, "0");
@@ -795,14 +795,14 @@ const Y = {
795
795
  );
796
796
  return T(i, t.length);
797
797
  }
798
- }, Q = {
798
+ }, Z = {
799
799
  midnight: "midnight",
800
800
  noon: "noon",
801
801
  morning: "morning",
802
802
  afternoon: "afternoon",
803
803
  evening: "evening",
804
804
  night: "night"
805
- }, Je = {
805
+ }, Ze = {
806
806
  // Era
807
807
  G: function(e, t, r) {
808
808
  const n = e.getFullYear() > 0 ? 1 : 0;
@@ -831,7 +831,7 @@ const Y = {
831
831
  },
832
832
  // Local week-numbering year
833
833
  Y: function(e, t, r, n) {
834
- const i = _t(e, n), a = i > 0 ? i : 1 - i;
834
+ const i = Wt(e, n), a = i > 0 ? i : 1 - i;
835
835
  if (t === "YY") {
836
836
  const u = a % 100;
837
837
  return T(u, 2);
@@ -840,7 +840,7 @@ const Y = {
840
840
  },
841
841
  // ISO week-numbering year
842
842
  R: function(e, t) {
843
- const r = zt(e);
843
+ const r = _t(e);
844
844
  return T(r, t.length);
845
845
  },
846
846
  // Extended year. This is a single number designating the year of this calendar system.
@@ -985,12 +985,12 @@ const Y = {
985
985
  },
986
986
  // Local week of year
987
987
  w: function(e, t, r, n) {
988
- const i = on(e, n);
988
+ const i = un(e, n);
989
989
  return t === "wo" ? r.ordinalNumber(i, { unit: "week" }) : T(i, t.length);
990
990
  },
991
991
  // ISO week of year
992
992
  I: function(e, t, r) {
993
- const n = nn(e);
993
+ const n = on(e);
994
994
  return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) : T(n, t.length);
995
995
  },
996
996
  // Day of the month
@@ -999,7 +999,7 @@ const Y = {
999
999
  },
1000
1000
  // Day of year
1001
1001
  D: function(e, t, r) {
1002
- const n = rn(e);
1002
+ const n = an(e);
1003
1003
  return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : T(n, t.length);
1004
1004
  },
1005
1005
  // Day of week
@@ -1185,7 +1185,7 @@ const Y = {
1185
1185
  b: function(e, t, r) {
1186
1186
  const n = e.getHours();
1187
1187
  let i;
1188
- switch (n === 12 ? i = Q.noon : n === 0 ? i = Q.midnight : i = n / 12 >= 1 ? "pm" : "am", t) {
1188
+ switch (n === 12 ? i = Z.noon : n === 0 ? i = Z.midnight : i = n / 12 >= 1 ? "pm" : "am", t) {
1189
1189
  case "b":
1190
1190
  case "bb":
1191
1191
  return r.dayPeriod(i, {
@@ -1214,7 +1214,7 @@ const Y = {
1214
1214
  B: function(e, t, r) {
1215
1215
  const n = e.getHours();
1216
1216
  let i;
1217
- switch (n >= 17 ? i = Q.evening : n >= 12 ? i = Q.afternoon : n >= 4 ? i = Q.morning : i = Q.night, t) {
1217
+ switch (n >= 17 ? i = Z.evening : n >= 12 ? i = Z.afternoon : n >= 4 ? i = Z.morning : i = Z.night, t) {
1218
1218
  case "B":
1219
1219
  case "BB":
1220
1220
  case "BBB":
@@ -1277,13 +1277,13 @@ const Y = {
1277
1277
  switch (t) {
1278
1278
  // Hours and optional minutes
1279
1279
  case "X":
1280
- return et(n);
1280
+ return tt(n);
1281
1281
  // Hours, minutes and optional seconds without `:` delimiter
1282
1282
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1283
1283
  // so this token always has the same output as `XX`
1284
1284
  case "XXXX":
1285
1285
  case "XX":
1286
- return U(n);
1286
+ return K(n);
1287
1287
  // Hours, minutes and optional seconds with `:` delimiter
1288
1288
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1289
1289
  // so this token always has the same output as `XXX`
@@ -1291,7 +1291,7 @@ const Y = {
1291
1291
  case "XXX":
1292
1292
  // Hours and minutes with `:` delimiter
1293
1293
  default:
1294
- return U(n, ":");
1294
+ return K(n, ":");
1295
1295
  }
1296
1296
  },
1297
1297
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -1300,13 +1300,13 @@ const Y = {
1300
1300
  switch (t) {
1301
1301
  // Hours and optional minutes
1302
1302
  case "x":
1303
- return et(n);
1303
+ return tt(n);
1304
1304
  // Hours, minutes and optional seconds without `:` delimiter
1305
1305
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1306
1306
  // so this token always has the same output as `xx`
1307
1307
  case "xxxx":
1308
1308
  case "xx":
1309
- return U(n);
1309
+ return K(n);
1310
1310
  // Hours, minutes and optional seconds with `:` delimiter
1311
1311
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1312
1312
  // so this token always has the same output as `xxx`
@@ -1314,7 +1314,7 @@ const Y = {
1314
1314
  case "xxx":
1315
1315
  // Hours and minutes with `:` delimiter
1316
1316
  default:
1317
- return U(n, ":");
1317
+ return K(n, ":");
1318
1318
  }
1319
1319
  },
1320
1320
  // Timezone (GMT)
@@ -1325,11 +1325,11 @@ const Y = {
1325
1325
  case "O":
1326
1326
  case "OO":
1327
1327
  case "OOO":
1328
- return "GMT" + Ze(n, ":");
1328
+ return "GMT" + et(n, ":");
1329
1329
  // Long
1330
1330
  case "OOOO":
1331
1331
  default:
1332
- return "GMT" + U(n, ":");
1332
+ return "GMT" + K(n, ":");
1333
1333
  }
1334
1334
  },
1335
1335
  // Timezone (specific non-location)
@@ -1340,11 +1340,11 @@ const Y = {
1340
1340
  case "z":
1341
1341
  case "zz":
1342
1342
  case "zzz":
1343
- return "GMT" + Ze(n, ":");
1343
+ return "GMT" + et(n, ":");
1344
1344
  // Long
1345
1345
  case "zzzz":
1346
1346
  default:
1347
- return "GMT" + U(n, ":");
1347
+ return "GMT" + K(n, ":");
1348
1348
  }
1349
1349
  },
1350
1350
  // Seconds timestamp
@@ -1357,18 +1357,18 @@ const Y = {
1357
1357
  return T(+e, t.length);
1358
1358
  }
1359
1359
  };
1360
- function Ze(e, t = "") {
1360
+ function et(e, t = "") {
1361
1361
  const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60), a = n % 60;
1362
1362
  return a === 0 ? r + String(i) : r + String(i) + t + T(a, 2);
1363
1363
  }
1364
- function et(e, t) {
1365
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + T(Math.abs(e) / 60, 2) : U(e, t);
1364
+ function tt(e, t) {
1365
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + T(Math.abs(e) / 60, 2) : K(e, t);
1366
1366
  }
1367
- function U(e, t = "") {
1367
+ function K(e, t = "") {
1368
1368
  const r = e > 0 ? "-" : "+", n = Math.abs(e), i = T(Math.trunc(n / 60), 2), a = T(n % 60, 2);
1369
1369
  return r + i + t + a;
1370
1370
  }
1371
- const tt = (e, t) => {
1371
+ const rt = (e, t) => {
1372
1372
  switch (e) {
1373
1373
  case "P":
1374
1374
  return t.date({ width: "short" });
@@ -1380,7 +1380,7 @@ const tt = (e, t) => {
1380
1380
  default:
1381
1381
  return t.date({ width: "full" });
1382
1382
  }
1383
- }, Wt = (e, t) => {
1383
+ }, Lt = (e, t) => {
1384
1384
  switch (e) {
1385
1385
  case "p":
1386
1386
  return t.time({ width: "short" });
@@ -1392,10 +1392,10 @@ const tt = (e, t) => {
1392
1392
  default:
1393
1393
  return t.time({ width: "full" });
1394
1394
  }
1395
- }, sn = (e, t) => {
1395
+ }, cn = (e, t) => {
1396
1396
  const r = e.match(/(P+)(p+)?/) || [], n = r[1], i = r[2];
1397
1397
  if (!i)
1398
- return tt(e, t);
1398
+ return rt(e, t);
1399
1399
  let a;
1400
1400
  switch (n) {
1401
1401
  case "P":
@@ -1412,47 +1412,47 @@ const tt = (e, t) => {
1412
1412
  a = t.dateTime({ width: "full" });
1413
1413
  break;
1414
1414
  }
1415
- return a.replace("{{date}}", tt(n, t)).replace("{{time}}", Wt(i, t));
1416
- }, un = {
1417
- p: Wt,
1418
- P: sn
1419
- }, cn = /^D+$/, ln = /^Y+$/, dn = ["D", "DD", "YY", "YYYY"];
1420
- function fn(e) {
1421
- return cn.test(e);
1422
- }
1423
- function hn(e) {
1424
- return ln.test(e);
1425
- }
1426
- function gn(e, t, r) {
1427
- const n = pn(e, t, r);
1428
- if (console.warn(n), dn.includes(e)) throw new RangeError(n);
1429
- }
1430
- function pn(e, t, r) {
1415
+ return a.replace("{{date}}", rt(n, t)).replace("{{time}}", Lt(i, t));
1416
+ }, ln = {
1417
+ p: Lt,
1418
+ P: cn
1419
+ }, dn = /^D+$/, fn = /^Y+$/, hn = ["D", "DD", "YY", "YYYY"];
1420
+ function gn(e) {
1421
+ return dn.test(e);
1422
+ }
1423
+ function pn(e) {
1424
+ return fn.test(e);
1425
+ }
1426
+ function mn(e, t, r) {
1427
+ const n = yn(e, t, r);
1428
+ if (console.warn(n), hn.includes(e)) throw new RangeError(n);
1429
+ }
1430
+ function yn(e, t, r) {
1431
1431
  const n = e[0] === "Y" ? "years" : "days of the month";
1432
1432
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1433
1433
  }
1434
- const mn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, yn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, vn = /^'([^]*?)'?$/, bn = /''/g, wn = /[a-zA-Z]/;
1435
- function I(e, t, r) {
1434
+ const vn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, bn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, wn = /^'([^]*?)'?$/, xn = /''/g, Sn = /[a-zA-Z]/;
1435
+ function j(e, t, r) {
1436
1436
  var f, l, d, h;
1437
- const n = Te(), i = n.locale ?? tn, a = n.firstWeekContainsDate ?? ((l = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, u = n.weekStartsOn ?? ((h = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? 0, c = N(e, r == null ? void 0 : r.in);
1438
- if (!br(c))
1437
+ const n = Me(), i = n.locale ?? nn, a = n.firstWeekContainsDate ?? ((l = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, u = n.weekStartsOn ?? ((h = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? 0, c = N(e, r == null ? void 0 : r.in);
1438
+ if (!xr(c))
1439
1439
  throw new RangeError("Invalid time value");
1440
- let s = t.match(yn).map((g) => {
1440
+ let s = t.match(bn).map((g) => {
1441
1441
  const p = g[0];
1442
1442
  if (p === "p" || p === "P") {
1443
- const m = un[p];
1443
+ const m = ln[p];
1444
1444
  return m(g, i.formatLong);
1445
1445
  }
1446
1446
  return g;
1447
- }).join("").match(mn).map((g) => {
1447
+ }).join("").match(vn).map((g) => {
1448
1448
  if (g === "''")
1449
1449
  return { isToken: !1, value: "'" };
1450
1450
  const p = g[0];
1451
1451
  if (p === "'")
1452
- return { isToken: !1, value: xn(g) };
1453
- if (Je[p])
1452
+ return { isToken: !1, value: On(g) };
1453
+ if (Ze[p])
1454
1454
  return { isToken: !0, value: g };
1455
- if (p.match(wn))
1455
+ if (p.match(Sn))
1456
1456
  throw new RangeError(
1457
1457
  "Format string contains an unescaped latin alphabet character `" + p + "`"
1458
1458
  );
@@ -1467,67 +1467,67 @@ function I(e, t, r) {
1467
1467
  return s.map((g) => {
1468
1468
  if (!g.isToken) return g.value;
1469
1469
  const p = g.value;
1470
- (hn(p) || fn(p)) && gn(p, t, String(e));
1471
- const m = Je[p[0]];
1470
+ (pn(p) || gn(p)) && mn(p, t, String(e));
1471
+ const m = Ze[p[0]];
1472
1472
  return m(c, p, i.localize, o);
1473
1473
  }).join("");
1474
1474
  }
1475
- function xn(e) {
1476
- const t = e.match(vn);
1477
- return t ? t[1].replace(bn, "'") : e;
1475
+ function On(e) {
1476
+ const t = e.match(wn);
1477
+ return t ? t[1].replace(xn, "'") : e;
1478
1478
  }
1479
- function Sn(e, t) {
1479
+ function Dn(e, t) {
1480
1480
  return N(e, t == null ? void 0 : t.in).getDay();
1481
1481
  }
1482
- function On(e, t) {
1482
+ function Tn(e, t) {
1483
1483
  const r = N(e, t == null ? void 0 : t.in), n = r.getMonth();
1484
1484
  return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(0, 0, 0, 0), N(r, t == null ? void 0 : t.in);
1485
1485
  }
1486
- function Dn(e, t, r) {
1487
- let n = t - Sn(e, r);
1488
- return n <= 0 && (n += 7), le(e, n, r);
1486
+ function Mn(e, t, r) {
1487
+ let n = t - Dn(e, r);
1488
+ return n <= 0 && (n += 7), de(e, n, r);
1489
1489
  }
1490
- function Tn(e, t) {
1491
- return Dn(e, 0, t);
1490
+ function En(e, t) {
1491
+ return Mn(e, 0, t);
1492
1492
  }
1493
- function ze(e, t, r) {
1493
+ function _e(e, t, r) {
1494
1494
  const n = N(e, r == null ? void 0 : r.in);
1495
1495
  return n.setHours(t), n;
1496
1496
  }
1497
1497
  function Ye(e, t, r) {
1498
- const n = En(e, t, r), i = Mn(e, t);
1498
+ const n = Rn(e, t, r), i = Pn(e, t);
1499
1499
  return { width: n, height: i };
1500
1500
  }
1501
- function Mn(e, t) {
1501
+ function Pn(e, t) {
1502
1502
  return t.pixelsPerResource;
1503
1503
  }
1504
- function En(e, t, r) {
1504
+ function Rn(e, t, r) {
1505
1505
  return Math.abs(
1506
- (B(r.end, r.start) + 1) * t.pixelsPerDay
1506
+ (q(r.end, r.start) + 1) * t.pixelsPerDay
1507
1507
  );
1508
1508
  }
1509
1509
  function Fe(e, t, r, n) {
1510
- const i = Lt(e, t, n), a = Rn(e, t, r.start, n);
1510
+ const i = Ht(e, t, n), a = Nn(e, t, r.start, n);
1511
1511
  return {
1512
1512
  ...i,
1513
1513
  ...a
1514
1514
  };
1515
1515
  }
1516
- function Lt(e, t, r) {
1517
- const n = B(e.end, e.start) * r.pixelsPerDay, i = e.size / t.capacity * r.pixelsPerResource;
1516
+ function Ht(e, t, r) {
1517
+ const n = q(e.end, e.start) * r.pixelsPerDay, i = e.size / t.capacity * r.pixelsPerResource;
1518
1518
  return { width: n, height: i };
1519
1519
  }
1520
- function Be(e, t, r) {
1521
- return B(e, t) * r.pixelsPerDay + r.pixelsPerDay / 2;
1520
+ function $e(e, t, r) {
1521
+ return q(e, t) * r.pixelsPerDay + r.pixelsPerDay / 2;
1522
1522
  }
1523
- function Pn(e, t, r) {
1523
+ function kn(e, t, r) {
1524
1524
  return e / t * r.pixelsPerResource;
1525
1525
  }
1526
- function Rn(e, t, r, n) {
1527
- const i = Be(e.start, r, n), a = Pn(e.offset, t.capacity, n);
1526
+ function Nn(e, t, r, n) {
1527
+ const i = $e(e.start, r, n), a = kn(e.offset, t.capacity, n);
1528
1528
  return { x: i, y: a };
1529
1529
  }
1530
- function Z(e, t) {
1530
+ function te(e, t) {
1531
1531
  const r = e.element.getBoundingClientRect(), n = {
1532
1532
  x: r.x - t.initial.input.pageX,
1533
1533
  y: r.y - t.initial.input.pageY
@@ -1540,16 +1540,16 @@ function Z(e, t) {
1540
1540
  relative: i
1541
1541
  };
1542
1542
  }
1543
- function Ht(e, t, r, n, i) {
1543
+ function It(e, t, r, n, i) {
1544
1544
  return {
1545
1545
  id: e.id,
1546
1546
  swimlaneId: t.id,
1547
- start: ze(
1548
- le(i.start, Math.floor(r.x / n.pixelsPerDay)),
1547
+ start: _e(
1548
+ de(i.start, Math.floor(r.x / n.pixelsPerDay)),
1549
1549
  12
1550
1550
  ),
1551
- end: ze(
1552
- le(
1551
+ end: _e(
1552
+ de(
1553
1553
  i.start,
1554
1554
  Math.floor(
1555
1555
  (r.x + r.width) / n.pixelsPerDay
@@ -1566,25 +1566,23 @@ function Ht(e, t, r, n, i) {
1566
1566
  payload: e.payload
1567
1567
  };
1568
1568
  }
1569
- function ha({
1570
- focusedDay: e
1571
- }) {
1572
- const { settings: t } = ge();
1573
- return /* @__PURE__ */ v("div", { className: "timeline-background", children: /* @__PURE__ */ K("div", { className: "timeline-background-inner", children: [
1574
- e && /* @__PURE__ */ v(
1569
+ function An({ focusedDay: e }) {
1570
+ const { settings: t } = pe();
1571
+ return /* @__PURE__ */ y(H.Background, { children: /* @__PURE__ */ y("div", { className: "timelane-background", children: /* @__PURE__ */ Q("div", { className: "timelane-background-inner", children: [
1572
+ e && /* @__PURE__ */ y(
1575
1573
  "div",
1576
1574
  {
1577
- className: "timeline-background-focused-day-position",
1575
+ className: "timelane-background-focused-day-position",
1578
1576
  style: {
1579
1577
  width: `${t.pixelsPerDay}px`,
1580
- marginLeft: `${Be(e, t.start, t) - t.pixelsPerDay / 2}px`
1578
+ marginLeft: `${$e(e, t.start, t) - t.pixelsPerDay / 2}px`
1581
1579
  }
1582
1580
  }
1583
1581
  ),
1584
- /* @__PURE__ */ v(
1582
+ /* @__PURE__ */ y(
1585
1583
  "div",
1586
1584
  {
1587
- id: "timeline-background-date-anchor",
1585
+ id: "timelane-background-date-anchor",
1588
1586
  style: {
1589
1587
  position: "absolute",
1590
1588
  top: 0,
@@ -1593,207 +1591,21 @@ function ha({
1593
1591
  }
1594
1592
  }
1595
1593
  ),
1596
- Ct(t).map((r, n) => /* @__PURE__ */ v(
1594
+ Ct(t).map((r, n) => /* @__PURE__ */ y(
1597
1595
  "div",
1598
1596
  {
1599
- className: `timeline-background-day-label ${At(r) ? "timeline-background-day-label-sunday" : ""} `,
1597
+ className: `timelane-background-day-label ${zt(r) ? "timelane-background-day-label-sunday" : ""} `,
1600
1598
  style: { width: `${t.pixelsPerDay}px` },
1601
- "data-day": I(r, "yyyy-MM-dd")
1599
+ "data-day": j(r, "yyyy-MM-dd")
1602
1600
  },
1603
1601
  n
1604
1602
  ))
1605
- ] }) });
1606
- }
1607
- function kn(e, t) {
1608
- const r = B(t, e) + 1;
1609
- return /* @__PURE__ */ v(Se, { children: r > 4 ? I(e, "LLLL yyyy") : /* @__PURE__ */ v(Se, {}) });
1603
+ ] }) }) });
1610
1604
  }
1611
- function Nn(e, t) {
1612
- const r = B(t, e) + 1, n = `KW ${I(e, "w")} (${I(
1613
- e,
1614
- "MM-dd"
1615
- )} - ${I(t, "MM-dd")}`;
1616
- return /* @__PURE__ */ v("div", { title: n, children: r > 2 ? /* @__PURE__ */ K(Se, { children: [
1617
- "KW ",
1618
- I(e, "w")
1619
- ] }) : /* @__PURE__ */ v(Se, {}) });
1620
- }
1621
- function An(e) {
1622
- const t = `${I(e, "yyyy-MM-dd")}`;
1623
- return /* @__PURE__ */ v("div", { title: t, children: I(e, "d") });
1624
- }
1625
- function zn({
1626
- range: e,
1627
- pixels: t,
1628
- focusedDay: r,
1629
- setFocusedDay: n = () => {
1630
- },
1631
- render: i = An,
1632
- onDayClick: a = () => {
1633
- }
1634
- }) {
1635
- return /* @__PURE__ */ v("div", { className: "timeline-header-days", children: Ct(e).map((u, c) => /* @__PURE__ */ v(
1636
- "div",
1637
- {
1638
- className: `timeline-header-day-label ${r && yr(r, u) ? "timeline-header-day-label-focused" : ""}`,
1639
- style: { width: `${t.pixelsPerDay}px` },
1640
- onClick: (s) => {
1641
- a({ day: u, e: s }), n(u);
1642
- },
1643
- children: i(u)
1644
- },
1645
- c
1646
- )) });
1647
- }
1648
- function Cn({
1649
- range: e,
1650
- pixels: t,
1651
- setFocusedDay: r = () => {
1652
- },
1653
- render: n = Nn,
1654
- onWeekClick: i = () => {
1655
- }
1656
- }) {
1657
- return /* @__PURE__ */ v("div", { className: "timeline-header-weeks", children: xr(e, { weekStartsOn: 1 }).map((a, u) => {
1658
- a < e.start && (a = e.start);
1659
- let c = At(a) ? a : Tn(a);
1660
- c > e.end && (c = e.end);
1661
- const s = B(c, a) + 1;
1662
- return /* @__PURE__ */ v(
1663
- "div",
1664
- {
1665
- className: "timeline-header-week-label",
1666
- style: {
1667
- width: `${t.pixelsPerDay * s}px`
1668
- },
1669
- onClick: (o) => {
1670
- i({ firstDay: a, lastDay: c, e: o }), r(a);
1671
- },
1672
- children: n(a, c)
1673
- },
1674
- u
1675
- );
1676
- }) });
1677
- }
1678
- function _n({
1679
- range: e,
1680
- pixels: t,
1681
- setFocusedDay: r = () => {
1682
- },
1683
- render: n = kn,
1684
- onMonthClick: i = () => {
1685
- }
1686
- }) {
1687
- return /* @__PURE__ */ v("div", { className: "timeline-header-months", children: wr(e).map((a, u) => {
1688
- a < e.start && (a = e.start);
1689
- let c = On(a);
1690
- c > e.end && (c = e.end);
1691
- const s = B(c, a) + 1;
1692
- return /* @__PURE__ */ v(
1693
- "div",
1694
- {
1695
- className: "timeline-header-month-label",
1696
- style: {
1697
- width: `${t.pixelsPerDay * s}px`
1698
- },
1699
- onClick: (o) => {
1700
- i({ firstDay: a, lastDay: c, e: o }), r(a);
1701
- },
1702
- children: n(a, c)
1703
- },
1704
- u
1705
- );
1706
- }) });
1707
- }
1708
- function ga({
1709
- focusedDay: e,
1710
- setFocusedDay: t = () => {
1711
- },
1712
- renderMonthHeader: r,
1713
- renderWeekHeader: n,
1714
- renderDayHeader: i,
1715
- onMonthClick: a,
1716
- onDayClick: u,
1717
- onWeekClick: c
1718
- }) {
1719
- const { settings: s } = ge();
1720
- return /* @__PURE__ */ K("div", { className: "timeline-header", children: [
1721
- s.showMonths && /* @__PURE__ */ v(
1722
- _n,
1723
- {
1724
- range: s,
1725
- pixels: s,
1726
- setFocusedDay: t,
1727
- render: r,
1728
- onMonthClick: a
1729
- }
1730
- ),
1731
- s.showWeeks && /* @__PURE__ */ v(
1732
- Cn,
1733
- {
1734
- range: s,
1735
- pixels: s,
1736
- setFocusedDay: t,
1737
- render: n,
1738
- onWeekClick: c
1739
- }
1740
- ),
1741
- s.showDays && /* @__PURE__ */ v(
1742
- zn,
1743
- {
1744
- range: s,
1745
- pixels: s,
1746
- focusedDay: e,
1747
- setFocusedDay: t,
1748
- render: i,
1749
- onDayClick: u
1750
- }
1751
- )
1752
- ] });
1753
- }
1754
- const Wn = ({
1755
- settings: e,
1756
- children: t
1757
- }) => {
1758
- const [r, n] = G(e);
1759
- return ee(() => {
1760
- n((i) => ({ ...i, _settings: e }));
1761
- }, [e]), /* @__PURE__ */ v(kt.Provider, { value: { settings: r, setSettings: n }, children: t });
1762
- };
1763
- function pa({
1764
- children: e,
1765
- start: t = new Date(2025, 1, 1),
1766
- end: r = new Date(2025, 5, 1),
1767
- pixelsPerDay: n = 30,
1768
- pixelsPerResource: i = 100,
1769
- showMonths: a = !0,
1770
- showWeeks: u = !0,
1771
- showDays: c = !0,
1772
- allowOverlaps: s = !0,
1773
- focusedDate: o = null
1774
- }) {
1775
- return /* @__PURE__ */ v("div", { className: "timeline", children: /* @__PURE__ */ v(
1776
- Wn,
1777
- {
1778
- settings: {
1779
- start: t,
1780
- end: r,
1781
- pixelsPerDay: n,
1782
- pixelsPerResource: i,
1783
- showDays: c,
1784
- showMonths: a,
1785
- showWeeks: u,
1786
- allowOverlaps: s,
1787
- focusedDate: o
1788
- },
1789
- children: e
1790
- }
1791
- ) });
1792
- }
1793
- function Ln(e) {
1605
+ function zn(e) {
1794
1606
  if (Array.isArray(e)) return e;
1795
1607
  }
1796
- function Hn(e, t) {
1608
+ function _n(e, t) {
1797
1609
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1798
1610
  if (r != null) {
1799
1611
  var n, i, a, u, c = [], s = !0, o = !1;
@@ -1816,37 +1628,37 @@ function Ce(e, t) {
1816
1628
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1817
1629
  return n;
1818
1630
  }
1819
- function It(e, t) {
1631
+ function jt(e, t) {
1820
1632
  if (e) {
1821
1633
  if (typeof e == "string") return Ce(e, t);
1822
1634
  var r = {}.toString.call(e).slice(8, -1);
1823
1635
  return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ce(e, t) : void 0;
1824
1636
  }
1825
1637
  }
1826
- function In() {
1638
+ function Cn() {
1827
1639
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1828
1640
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1829
1641
  }
1830
- function jt(e, t) {
1831
- return Ln(e) || Hn(e, t) || It(e, t) || In();
1642
+ function Bt(e, t) {
1643
+ return zn(e) || _n(e, t) || jt(e, t) || Cn();
1832
1644
  }
1833
- var Ee = {}, oe = {}, rt;
1645
+ var Pe = {}, se = {}, nt;
1834
1646
  function Yt() {
1835
- if (rt) return oe;
1836
- rt = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.bind = void 0;
1647
+ if (nt) return se;
1648
+ nt = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.bind = void 0;
1837
1649
  function e(t, r) {
1838
1650
  var n = r.type, i = r.listener, a = r.options;
1839
1651
  return t.addEventListener(n, i, a), function() {
1840
1652
  t.removeEventListener(n, i, a);
1841
1653
  };
1842
1654
  }
1843
- return oe.bind = e, oe;
1655
+ return se.bind = e, se;
1844
1656
  }
1845
- var X = {}, nt;
1846
- function jn() {
1847
- if (nt) return X;
1848
- nt = 1;
1849
- var e = X && X.__assign || function() {
1657
+ var G = {}, it;
1658
+ function Wn() {
1659
+ if (it) return G;
1660
+ it = 1;
1661
+ var e = G && G.__assign || function() {
1850
1662
  return e = Object.assign || function(a) {
1851
1663
  for (var u, c = 1, s = arguments.length; c < s; c++) {
1852
1664
  u = arguments[c];
@@ -1855,7 +1667,7 @@ function jn() {
1855
1667
  return a;
1856
1668
  }, e.apply(this, arguments);
1857
1669
  };
1858
- Object.defineProperty(X, "__esModule", { value: !0 }), X.bindAll = void 0;
1670
+ Object.defineProperty(G, "__esModule", { value: !0 }), G.bindAll = void 0;
1859
1671
  var t = /* @__PURE__ */ Yt();
1860
1672
  function r(a) {
1861
1673
  if (!(typeof a > "u"))
@@ -1880,62 +1692,62 @@ function jn() {
1880
1692
  });
1881
1693
  };
1882
1694
  }
1883
- return X.bindAll = i, X;
1695
+ return G.bindAll = i, G;
1884
1696
  }
1885
- var it;
1886
- function Yn() {
1887
- return it || (it = 1, function(e) {
1697
+ var at;
1698
+ function Ln() {
1699
+ return at || (at = 1, function(e) {
1888
1700
  Object.defineProperty(e, "__esModule", { value: !0 }), e.bindAll = e.bind = void 0;
1889
1701
  var t = /* @__PURE__ */ Yt();
1890
1702
  Object.defineProperty(e, "bind", { enumerable: !0, get: function() {
1891
1703
  return t.bind;
1892
1704
  } });
1893
- var r = /* @__PURE__ */ jn();
1705
+ var r = /* @__PURE__ */ Wn();
1894
1706
  Object.defineProperty(e, "bindAll", { enumerable: !0, get: function() {
1895
1707
  return r.bindAll;
1896
1708
  } });
1897
- }(Ee)), Ee;
1709
+ }(Pe)), Pe;
1898
1710
  }
1899
- var te = /* @__PURE__ */ Yn(), Ft = "data-pdnd-honey-pot";
1900
- function Bt(e) {
1711
+ var ne = /* @__PURE__ */ Ln(), Ft = "data-pdnd-honey-pot";
1712
+ function $t(e) {
1901
1713
  return e instanceof Element && e.hasAttribute(Ft);
1902
1714
  }
1903
- function $t(e) {
1904
- var t = document.elementsFromPoint(e.x, e.y), r = jt(t, 2), n = r[0], i = r[1];
1905
- return n ? Bt(n) ? i ?? null : n : null;
1715
+ function qt(e) {
1716
+ var t = document.elementsFromPoint(e.x, e.y), r = Bt(t, 2), n = r[0], i = r[1];
1717
+ return n ? $t(n) ? i ?? null : n : null;
1906
1718
  }
1907
- function de(e) {
1719
+ function fe(e) {
1908
1720
  "@babel/helpers - typeof";
1909
- return de = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1721
+ return fe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1910
1722
  return typeof t;
1911
1723
  } : function(t) {
1912
1724
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1913
- }, de(e);
1725
+ }, fe(e);
1914
1726
  }
1915
- function Fn(e, t) {
1916
- if (de(e) != "object" || !e) return e;
1727
+ function Hn(e, t) {
1728
+ if (fe(e) != "object" || !e) return e;
1917
1729
  var r = e[Symbol.toPrimitive];
1918
1730
  if (r !== void 0) {
1919
1731
  var n = r.call(e, t);
1920
- if (de(n) != "object") return n;
1732
+ if (fe(n) != "object") return n;
1921
1733
  throw new TypeError("@@toPrimitive must return a primitive value.");
1922
1734
  }
1923
1735
  return (t === "string" ? String : Number)(e);
1924
1736
  }
1925
- function Bn(e) {
1926
- var t = Fn(e, "string");
1927
- return de(t) == "symbol" ? t : t + "";
1737
+ function In(e) {
1738
+ var t = Hn(e, "string");
1739
+ return fe(t) == "symbol" ? t : t + "";
1928
1740
  }
1929
- function $e(e, t, r) {
1930
- return (t = Bn(t)) in e ? Object.defineProperty(e, t, {
1741
+ function qe(e, t, r) {
1742
+ return (t = In(t)) in e ? Object.defineProperty(e, t, {
1931
1743
  value: r,
1932
1744
  enumerable: !0,
1933
1745
  configurable: !0,
1934
1746
  writable: !0
1935
1747
  }) : e[t] = r, e;
1936
1748
  }
1937
- var $n = 2147483647;
1938
- function at(e, t) {
1749
+ var jn = 2147483647;
1750
+ function ot(e, t) {
1939
1751
  var r = Object.keys(e);
1940
1752
  if (Object.getOwnPropertySymbols) {
1941
1753
  var n = Object.getOwnPropertySymbols(e);
@@ -1945,52 +1757,52 @@ function at(e, t) {
1945
1757
  }
1946
1758
  return r;
1947
1759
  }
1948
- function ot(e) {
1760
+ function st(e) {
1949
1761
  for (var t = 1; t < arguments.length; t++) {
1950
1762
  var r = arguments[t] != null ? arguments[t] : {};
1951
- t % 2 ? at(Object(r), !0).forEach(function(n) {
1952
- $e(e, n, r[n]);
1953
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : at(Object(r)).forEach(function(n) {
1763
+ t % 2 ? ot(Object(r), !0).forEach(function(n) {
1764
+ qe(e, n, r[n]);
1765
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ot(Object(r)).forEach(function(n) {
1954
1766
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1955
1767
  });
1956
1768
  }
1957
1769
  return e;
1958
1770
  }
1959
- var fe = 2, st = fe / 2;
1960
- function qn(e) {
1771
+ var he = 2, ut = he / 2;
1772
+ function Bn(e) {
1961
1773
  return {
1962
1774
  x: Math.floor(e.x),
1963
1775
  y: Math.floor(e.y)
1964
1776
  };
1965
1777
  }
1966
- function Xn(e) {
1778
+ function Yn(e) {
1967
1779
  return {
1968
- x: e.x - st,
1969
- y: e.y - st
1780
+ x: e.x - ut,
1781
+ y: e.y - ut
1970
1782
  };
1971
1783
  }
1972
- function Un(e) {
1784
+ function Fn(e) {
1973
1785
  return {
1974
1786
  x: Math.max(e.x, 0),
1975
1787
  y: Math.max(e.y, 0)
1976
1788
  };
1977
1789
  }
1978
- function Gn(e) {
1790
+ function $n(e) {
1979
1791
  return {
1980
- x: Math.min(e.x, window.innerWidth - fe),
1981
- y: Math.min(e.y, window.innerHeight - fe)
1792
+ x: Math.min(e.x, window.innerWidth - he),
1793
+ y: Math.min(e.y, window.innerHeight - he)
1982
1794
  };
1983
1795
  }
1984
- function ut(e) {
1985
- var t = e.client, r = Gn(Un(Xn(qn(t))));
1796
+ function ct(e) {
1797
+ var t = e.client, r = $n(Fn(Yn(Bn(t))));
1986
1798
  return DOMRect.fromRect({
1987
1799
  x: r.x,
1988
1800
  y: r.y,
1989
- width: fe,
1990
- height: fe
1801
+ width: he,
1802
+ height: he
1991
1803
  });
1992
1804
  }
1993
- function ct(e) {
1805
+ function lt(e) {
1994
1806
  var t = e.clientRect;
1995
1807
  return {
1996
1808
  left: "".concat(t.left, "px"),
@@ -1999,7 +1811,7 @@ function ct(e) {
1999
1811
  height: "".concat(t.height, "px")
2000
1812
  };
2001
1813
  }
2002
- function Kn(e) {
1814
+ function qn(e) {
2003
1815
  var t = e.client, r = e.clientRect;
2004
1816
  return (
2005
1817
  // is within horizontal bounds
@@ -2007,13 +1819,13 @@ function Kn(e) {
2007
1819
  t.y >= r.y && t.y <= r.y + r.height
2008
1820
  );
2009
1821
  }
2010
- function Vn(e) {
1822
+ function Xn(e) {
2011
1823
  var t = e.initial, r = document.createElement("div");
2012
1824
  r.setAttribute(Ft, "true");
2013
- var n = ut({
1825
+ var n = ct({
2014
1826
  client: t
2015
1827
  });
2016
- Object.assign(r.style, ot(ot({
1828
+ Object.assign(r.style, st(st({
2017
1829
  // Setting a background color explicitly to avoid any inherited styles.
2018
1830
  // Looks like this could be `opacity: 0`, but worried that _might_
2019
1831
  // cause the element to be ignored on some platforms.
@@ -2024,7 +1836,7 @@ function Vn(e) {
2024
1836
  padding: 0,
2025
1837
  margin: 0,
2026
1838
  boxSizing: "border-box"
2027
- }, ct({
1839
+ }, lt({
2028
1840
  clientRect: n
2029
1841
  })), {}, {
2030
1842
  // We want this element to absorb pointer events,
@@ -2033,18 +1845,18 @@ function Vn(e) {
2033
1845
  // Want to make sure the honey pot is top of everything else.
2034
1846
  // Don't need to worry about native drag previews, as they will
2035
1847
  // have been rendered (and removed) before the honey pot is rendered
2036
- zIndex: $n
1848
+ zIndex: jn
2037
1849
  })), document.body.appendChild(r);
2038
- var i = te.bind(window, {
1850
+ var i = ne.bind(window, {
2039
1851
  type: "pointermove",
2040
1852
  listener: function(u) {
2041
1853
  var c = {
2042
1854
  x: u.clientX,
2043
1855
  y: u.clientY
2044
1856
  };
2045
- n = ut({
1857
+ n = ct({
2046
1858
  client: c
2047
- }), Object.assign(r.style, ct({
1859
+ }), Object.assign(r.style, lt({
2048
1860
  clientRect: n
2049
1861
  }));
2050
1862
  },
@@ -2055,7 +1867,7 @@ function Vn(e) {
2055
1867
  });
2056
1868
  return function(u) {
2057
1869
  var c = u.current;
2058
- if (i(), Kn({
1870
+ if (i(), qn({
2059
1871
  client: c,
2060
1872
  clientRect: n
2061
1873
  })) {
@@ -2065,7 +1877,7 @@ function Vn(e) {
2065
1877
  function s() {
2066
1878
  o(), r.remove();
2067
1879
  }
2068
- var o = te.bindAll(window, [
1880
+ var o = ne.bindAll(window, [
2069
1881
  {
2070
1882
  type: "pointerdown",
2071
1883
  listener: s
@@ -2107,10 +1919,10 @@ function Vn(e) {
2107
1919
  });
2108
1920
  };
2109
1921
  }
2110
- function Qn() {
1922
+ function Un() {
2111
1923
  var e = null;
2112
1924
  function t() {
2113
- return e = null, te.bind(window, {
1925
+ return e = null, ne.bind(window, {
2114
1926
  type: "pointermove",
2115
1927
  listener: function(i) {
2116
1928
  e = {
@@ -2134,7 +1946,7 @@ function Qn() {
2134
1946
  x: s.clientX,
2135
1947
  y: s.clientY
2136
1948
  };
2137
- n = Vn({
1949
+ n = Xn({
2138
1950
  initial: o
2139
1951
  });
2140
1952
  }
@@ -2154,20 +1966,20 @@ function Qn() {
2154
1966
  getOnPostDispatch: r
2155
1967
  };
2156
1968
  }
2157
- function Jn(e) {
1969
+ function Gn(e) {
2158
1970
  if (Array.isArray(e)) return Ce(e);
2159
1971
  }
2160
- function Zn(e) {
1972
+ function Kn(e) {
2161
1973
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
2162
1974
  }
2163
- function ei() {
1975
+ function Vn() {
2164
1976
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
2165
1977
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2166
1978
  }
2167
- function qt(e) {
2168
- return Jn(e) || Zn(e) || It(e) || ei();
1979
+ function Xt(e) {
1980
+ return Gn(e) || Kn(e) || jt(e) || Vn();
2169
1981
  }
2170
- function ne(e) {
1982
+ function ie(e) {
2171
1983
  var t = null;
2172
1984
  return function() {
2173
1985
  if (!t) {
@@ -2181,23 +1993,23 @@ function ne(e) {
2181
1993
  return t.result;
2182
1994
  };
2183
1995
  }
2184
- var ti = ne(function() {
1996
+ var Qn = ie(function() {
2185
1997
  return process.env.NODE_ENV === "test" ? !1 : navigator.userAgent.includes("Firefox");
2186
- }), qe = ne(function() {
1998
+ }), Xe = ie(function() {
2187
1999
  if (process.env.NODE_ENV === "test")
2188
2000
  return !1;
2189
2001
  var t = navigator, r = t.userAgent;
2190
2002
  return r.includes("AppleWebKit") && !r.includes("Chrome");
2191
- }), _e = {
2003
+ }), We = {
2192
2004
  isLeavingWindow: Symbol("leaving"),
2193
2005
  isEnteringWindow: Symbol("entering")
2194
2006
  };
2195
- function ri(e) {
2007
+ function Jn(e) {
2196
2008
  var t = e.dragLeave;
2197
- return qe() ? t.hasOwnProperty(_e.isLeavingWindow) : !1;
2009
+ return Xe() ? t.hasOwnProperty(We.isLeavingWindow) : !1;
2198
2010
  }
2199
2011
  (function() {
2200
- if (typeof window > "u" || process.env.NODE_ENV === "test" || !qe())
2012
+ if (typeof window > "u" || process.env.NODE_ENV === "test" || !Xe())
2201
2013
  return;
2202
2014
  function t() {
2203
2015
  return {
@@ -2209,7 +2021,7 @@ function ri(e) {
2209
2021
  function n() {
2210
2022
  r = t();
2211
2023
  }
2212
- te.bindAll(
2024
+ ne.bindAll(
2213
2025
  window,
2214
2026
  [{
2215
2027
  type: "dragstart",
@@ -2225,12 +2037,12 @@ function ri(e) {
2225
2037
  }, {
2226
2038
  type: "dragenter",
2227
2039
  listener: function(a) {
2228
- !r.isOverWindow && r.enterCount === 0 && (a[_e.isEnteringWindow] = !0), r.isOverWindow = !0, r.enterCount++;
2040
+ !r.isOverWindow && r.enterCount === 0 && (a[We.isEnteringWindow] = !0), r.isOverWindow = !0, r.enterCount++;
2229
2041
  }
2230
2042
  }, {
2231
2043
  type: "dragleave",
2232
2044
  listener: function(a) {
2233
- r.enterCount--, r.isOverWindow && r.enterCount === 0 && (a[_e.isLeavingWindow] = !0, r.isOverWindow = !1);
2045
+ r.enterCount--, r.isOverWindow && r.enterCount === 0 && (a[We.isLeavingWindow] = !0, r.isOverWindow = !1);
2234
2046
  }
2235
2047
  }],
2236
2048
  // using `capture: true` so that adding event listeners
@@ -2240,19 +2052,19 @@ function ri(e) {
2240
2052
  }
2241
2053
  );
2242
2054
  })();
2243
- function ni(e) {
2055
+ function Zn(e) {
2244
2056
  return "nodeName" in e;
2245
2057
  }
2246
- function ii(e) {
2247
- return ni(e) && e.ownerDocument !== document;
2058
+ function ei(e) {
2059
+ return Zn(e) && e.ownerDocument !== document;
2248
2060
  }
2249
- function ai(e) {
2061
+ function ti(e) {
2250
2062
  var t = e.dragLeave, r = t.type, n = t.relatedTarget;
2251
- return r !== "dragleave" ? !1 : qe() ? ri({
2063
+ return r !== "dragleave" ? !1 : Xe() ? Jn({
2252
2064
  dragLeave: t
2253
- }) : n == null ? !0 : ti() ? ii(n) : n instanceof HTMLIFrameElement;
2065
+ }) : n == null ? !0 : Qn() ? ei(n) : n instanceof HTMLIFrameElement;
2254
2066
  }
2255
- function oi(e) {
2067
+ function ri(e) {
2256
2068
  var t = e.onDragEnd;
2257
2069
  return [
2258
2070
  // ## Detecting drag ending for removed draggables
@@ -2296,7 +2108,7 @@ function oi(e) {
2296
2108
  }
2297
2109
  ];
2298
2110
  }
2299
- function ue(e) {
2111
+ function ce(e) {
2300
2112
  return {
2301
2113
  altKey: e.altKey,
2302
2114
  button: e.button,
@@ -2310,7 +2122,7 @@ function ue(e) {
2310
2122
  pageY: e.pageY
2311
2123
  };
2312
2124
  }
2313
- var si = function(t) {
2125
+ var ni = function(t) {
2314
2126
  var r = [], n = null, i = function() {
2315
2127
  for (var u = arguments.length, c = new Array(u), s = 0; s < u; s++)
2316
2128
  c[s] = arguments[s];
@@ -2321,9 +2133,9 @@ var si = function(t) {
2321
2133
  return i.cancel = function() {
2322
2134
  n && (cancelAnimationFrame(n), n = null);
2323
2135
  }, i;
2324
- }, Pe = si(function(e) {
2136
+ }, Re = ni(function(e) {
2325
2137
  return e();
2326
- }), pe = /* @__PURE__ */ function() {
2138
+ }), me = /* @__PURE__ */ function() {
2327
2139
  var e = null;
2328
2140
  function t(n) {
2329
2141
  var i = requestAnimationFrame(function() {
@@ -2342,7 +2154,7 @@ var si = function(t) {
2342
2154
  flush: r
2343
2155
  };
2344
2156
  }();
2345
- function ui(e) {
2157
+ function ii(e) {
2346
2158
  var t = e.source, r = e.initial, n = e.dispatchEvent, i = {
2347
2159
  dropTargets: []
2348
2160
  };
@@ -2365,7 +2177,7 @@ function ui(e) {
2365
2177
  location: f,
2366
2178
  nativeSetDragImage: o
2367
2179
  }
2368
- }), pe.schedule(function() {
2180
+ }), me.schedule(function() {
2369
2181
  a({
2370
2182
  eventName: "onDragStart",
2371
2183
  payload: {
@@ -2377,7 +2189,7 @@ function ui(e) {
2377
2189
  },
2378
2190
  dragUpdate: function(s) {
2379
2191
  var o = s.current;
2380
- pe.flush(), Pe.cancel(), a({
2192
+ me.flush(), Re.cancel(), a({
2381
2193
  eventName: "onDropTargetChange",
2382
2194
  payload: {
2383
2195
  source: t,
@@ -2391,8 +2203,8 @@ function ui(e) {
2391
2203
  },
2392
2204
  drag: function(s) {
2393
2205
  var o = s.current;
2394
- Pe(function() {
2395
- pe.flush();
2206
+ Re(function() {
2207
+ me.flush();
2396
2208
  var f = {
2397
2209
  initial: r,
2398
2210
  previous: i,
@@ -2409,7 +2221,7 @@ function ui(e) {
2409
2221
  },
2410
2222
  drop: function(s) {
2411
2223
  var o = s.current, f = s.updatedSourcePayload;
2412
- pe.flush(), Pe.cancel(), a({
2224
+ me.flush(), Re.cancel(), a({
2413
2225
  eventName: "onDrop",
2414
2226
  payload: {
2415
2227
  source: f ?? t,
@@ -2424,16 +2236,16 @@ function ui(e) {
2424
2236
  };
2425
2237
  return u;
2426
2238
  }
2427
- var We = {
2239
+ var Le = {
2428
2240
  isActive: !1
2429
2241
  };
2430
- function Xt() {
2431
- return !We.isActive;
2242
+ function Ut() {
2243
+ return !Le.isActive;
2432
2244
  }
2433
- function ci(e) {
2245
+ function ai(e) {
2434
2246
  return e.dataTransfer ? e.dataTransfer.setDragImage.bind(e.dataTransfer) : null;
2435
2247
  }
2436
- function li(e) {
2248
+ function oi(e) {
2437
2249
  var t = e.current, r = e.next;
2438
2250
  if (t.length !== r.length)
2439
2251
  return !0;
@@ -2442,30 +2254,30 @@ function li(e) {
2442
2254
  return !0;
2443
2255
  return !1;
2444
2256
  }
2445
- function di(e) {
2257
+ function si(e) {
2446
2258
  var t = e.event, r = e.dragType, n = e.getDropTargetsOver, i = e.dispatchEvent;
2447
- if (!Xt())
2259
+ if (!Ut())
2448
2260
  return;
2449
- var a = fi({
2261
+ var a = ui({
2450
2262
  event: t,
2451
2263
  dragType: r,
2452
2264
  getDropTargetsOver: n
2453
2265
  });
2454
- We.isActive = !0;
2266
+ Le.isActive = !0;
2455
2267
  var u = {
2456
2268
  current: a
2457
2269
  };
2458
- Re({
2270
+ ke({
2459
2271
  event: t,
2460
2272
  current: a.dropTargets
2461
2273
  });
2462
- var c = ui({
2274
+ var c = ii({
2463
2275
  source: r.payload,
2464
2276
  dispatchEvent: i,
2465
2277
  initial: a
2466
2278
  });
2467
2279
  function s(h) {
2468
- var g = li({
2280
+ var g = oi({
2469
2281
  current: u.current.dropTargets,
2470
2282
  next: h.dropTargets
2471
2283
  });
@@ -2474,7 +2286,7 @@ function di(e) {
2474
2286
  });
2475
2287
  }
2476
2288
  function o(h) {
2477
- var g = ue(h), p = Bt(h.target) ? $t({
2289
+ var g = ce(h), p = $t(h.target) ? qt({
2478
2290
  x: g.clientX,
2479
2291
  y: g.clientY
2480
2292
  }) : h.target, m = n({
@@ -2483,7 +2295,7 @@ function di(e) {
2483
2295
  source: r.payload,
2484
2296
  current: u.current.dropTargets
2485
2297
  });
2486
- m.length && (h.preventDefault(), Re({
2298
+ m.length && (h.preventDefault(), ke({
2487
2299
  event: h,
2488
2300
  current: m
2489
2301
  })), s({
@@ -2501,9 +2313,9 @@ function di(e) {
2501
2313
  }), l();
2502
2314
  }
2503
2315
  function l() {
2504
- We.isActive = !1, d();
2316
+ Le.isActive = !1, d();
2505
2317
  }
2506
- var d = te.bindAll(
2318
+ var d = ne.bindAll(
2507
2319
  window,
2508
2320
  [{
2509
2321
  // 👋 Note: we are repurposing the `dragover` event as our `drag` event
@@ -2524,7 +2336,7 @@ function di(e) {
2524
2336
  }, {
2525
2337
  type: "dragleave",
2526
2338
  listener: function(g) {
2527
- ai({
2339
+ ti({
2528
2340
  dragLeave: g
2529
2341
  }) && (s({
2530
2342
  input: u.current.input,
@@ -2537,12 +2349,12 @@ function di(e) {
2537
2349
  listener: function(g) {
2538
2350
  if (u.current = {
2539
2351
  dropTargets: u.current.dropTargets,
2540
- input: ue(g)
2352
+ input: ce(g)
2541
2353
  }, !u.current.dropTargets.length) {
2542
2354
  f();
2543
2355
  return;
2544
2356
  }
2545
- g.preventDefault(), Re({
2357
+ g.preventDefault(), ke({
2546
2358
  event: g,
2547
2359
  current: u.current.dropTargets
2548
2360
  }), c.drop({
@@ -2564,10 +2376,10 @@ function di(e) {
2564
2376
  listener: function(g) {
2565
2377
  u.current = {
2566
2378
  dropTargets: u.current.dropTargets,
2567
- input: ue(g)
2379
+ input: ce(g)
2568
2380
  }, f();
2569
2381
  }
2570
- }].concat(qt(oi({
2382
+ }].concat(Xt(ri({
2571
2383
  onDragEnd: f
2572
2384
  }))),
2573
2385
  // Once we have started a managed drag operation it is important that we see / own all drag events
@@ -2579,15 +2391,15 @@ function di(e) {
2579
2391
  }
2580
2392
  );
2581
2393
  c.start({
2582
- nativeSetDragImage: ci(t)
2394
+ nativeSetDragImage: ai(t)
2583
2395
  });
2584
2396
  }
2585
- function Re(e) {
2397
+ function ke(e) {
2586
2398
  var t, r = e.event, n = e.current, i = (t = n[0]) === null || t === void 0 ? void 0 : t.dropEffect;
2587
2399
  i != null && r.dataTransfer && (r.dataTransfer.dropEffect = i);
2588
2400
  }
2589
- function fi(e) {
2590
- var t = e.event, r = e.dragType, n = e.getDropTargetsOver, i = ue(t);
2401
+ function ui(e) {
2402
+ var t = e.event, r = e.dragType, n = e.getDropTargetsOver, i = ce(t);
2591
2403
  if (r.startedFrom === "external")
2592
2404
  return {
2593
2405
  input: i,
@@ -2604,12 +2416,12 @@ function fi(e) {
2604
2416
  dropTargets: a
2605
2417
  };
2606
2418
  }
2607
- var lt = {
2608
- canStart: Xt,
2609
- start: di
2610
- }, Le = /* @__PURE__ */ new Map();
2611
- function hi(e) {
2612
- var t = e.typeKey, r = e.mount, n = Le.get(t);
2419
+ var dt = {
2420
+ canStart: Ut,
2421
+ start: si
2422
+ }, He = /* @__PURE__ */ new Map();
2423
+ function ci(e) {
2424
+ var t = e.typeKey, r = e.mount, n = He.get(t);
2613
2425
  if (n)
2614
2426
  return n.usageCount++, n;
2615
2427
  var i = {
@@ -2617,15 +2429,15 @@ function hi(e) {
2617
2429
  unmount: r(),
2618
2430
  usageCount: 1
2619
2431
  };
2620
- return Le.set(t, i), i;
2432
+ return He.set(t, i), i;
2621
2433
  }
2622
- function gi(e) {
2623
- var t = hi(e);
2434
+ function li(e) {
2435
+ var t = ci(e);
2624
2436
  return function() {
2625
- t.usageCount--, !(t.usageCount > 0) && (t.unmount(), Le.delete(e.typeKey));
2437
+ t.usageCount--, !(t.usageCount > 0) && (t.unmount(), He.delete(e.typeKey));
2626
2438
  };
2627
2439
  }
2628
- function Xe() {
2440
+ function Ue() {
2629
2441
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
2630
2442
  t[r] = arguments[r];
2631
2443
  return function() {
@@ -2634,13 +2446,13 @@ function Xe() {
2634
2446
  });
2635
2447
  };
2636
2448
  }
2637
- function Ut(e, t) {
2449
+ function Gt(e, t) {
2638
2450
  var r = t.attribute, n = t.value;
2639
2451
  return e.setAttribute(r, n), function() {
2640
2452
  return e.removeAttribute(r);
2641
2453
  };
2642
2454
  }
2643
- function dt(e, t) {
2455
+ function ft(e, t) {
2644
2456
  var r = Object.keys(e);
2645
2457
  if (Object.getOwnPropertySymbols) {
2646
2458
  var n = Object.getOwnPropertySymbols(e);
@@ -2653,18 +2465,18 @@ function dt(e, t) {
2653
2465
  function F(e) {
2654
2466
  for (var t = 1; t < arguments.length; t++) {
2655
2467
  var r = arguments[t] != null ? arguments[t] : {};
2656
- t % 2 ? dt(Object(r), !0).forEach(function(n) {
2657
- $e(e, n, r[n]);
2658
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : dt(Object(r)).forEach(function(n) {
2468
+ t % 2 ? ft(Object(r), !0).forEach(function(n) {
2469
+ qe(e, n, r[n]);
2470
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ft(Object(r)).forEach(function(n) {
2659
2471
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
2660
2472
  });
2661
2473
  }
2662
2474
  return e;
2663
2475
  }
2664
- function ke(e, t) {
2476
+ function Ne(e, t) {
2665
2477
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2666
2478
  if (!r) {
2667
- if (Array.isArray(e) || (r = pi(e)) || t) {
2479
+ if (Array.isArray(e) || (r = di(e)) || t) {
2668
2480
  r && (e = r);
2669
2481
  var n = 0, i = function() {
2670
2482
  };
@@ -2693,22 +2505,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2693
2505
  }
2694
2506
  } };
2695
2507
  }
2696
- function pi(e, t) {
2508
+ function di(e, t) {
2697
2509
  if (e) {
2698
- if (typeof e == "string") return ft(e, t);
2510
+ if (typeof e == "string") return ht(e, t);
2699
2511
  var r = {}.toString.call(e).slice(8, -1);
2700
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ft(e, t) : void 0;
2512
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ht(e, t) : void 0;
2701
2513
  }
2702
2514
  }
2703
- function ft(e, t) {
2515
+ function ht(e, t) {
2704
2516
  (t == null || t > e.length) && (t = e.length);
2705
2517
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2706
2518
  return n;
2707
2519
  }
2708
- function Ne(e) {
2520
+ function Ae(e) {
2709
2521
  return e.slice(0).reverse();
2710
2522
  }
2711
- function mi(e) {
2523
+ function fi(e) {
2712
2524
  var t = e.typeKey, r = e.defaultDropEffect, n = /* @__PURE__ */ new WeakMap(), i = "data-drop-target-for-".concat(t), a = "[".concat(i, "]");
2713
2525
  function u(h) {
2714
2526
  return n.set(h.element, h), function() {
@@ -2726,11 +2538,11 @@ function mi(e) {
2726
2538
  as it can result in some strange browser event ordering.
2727
2539
  `.replace(/\s{2,}/g, " ").trim());
2728
2540
  }
2729
- var p = Xe(Ut(h.element, {
2541
+ var p = Ue(Gt(h.element, {
2730
2542
  attribute: i,
2731
2543
  value: "true"
2732
2544
  }), u(h));
2733
- return ne(p);
2545
+ return ie(p);
2734
2546
  }
2735
2547
  function s(h) {
2736
2548
  var g, p, m, b, O = h.source, x = h.target, w = h.input, M = h.result, S = M === void 0 ? [] : M;
@@ -2749,19 +2561,19 @@ function mi(e) {
2749
2561
  var E = n.get(z);
2750
2562
  if (E == null)
2751
2563
  return S;
2752
- var y = {
2564
+ var v = {
2753
2565
  input: w,
2754
2566
  source: O,
2755
2567
  element: E.element
2756
2568
  };
2757
- if (E.canDrop && !E.canDrop(y))
2569
+ if (E.canDrop && !E.canDrop(v))
2758
2570
  return s({
2759
2571
  source: O,
2760
2572
  target: E.element.parentElement,
2761
2573
  input: w,
2762
2574
  result: S
2763
2575
  });
2764
- var D = (g = (p = E.getData) === null || p === void 0 ? void 0 : p.call(E, y)) !== null && g !== void 0 ? g : {}, P = (m = (b = E.getDropEffect) === null || b === void 0 ? void 0 : b.call(E, y)) !== null && m !== void 0 ? m : r, R = {
2576
+ var D = (g = (p = E.getData) === null || p === void 0 ? void 0 : p.call(E, v)) !== null && g !== void 0 ? g : {}, P = (m = (b = E.getDropEffect) === null || b === void 0 ? void 0 : b.call(E, v)) !== null && m !== void 0 ? m : r, R = {
2765
2577
  data: D,
2766
2578
  element: E.element,
2767
2579
  dropEffect: P,
@@ -2774,11 +2586,11 @@ function mi(e) {
2774
2586
  target: E.element.parentElement,
2775
2587
  input: w,
2776
2588
  // Using bubble ordering. Same ordering as `event.getPath()`
2777
- result: [].concat(qt(S), [R])
2589
+ result: [].concat(Xt(S), [R])
2778
2590
  });
2779
2591
  }
2780
2592
  function o(h) {
2781
- var g = h.eventName, p = h.payload, m = ke(p.location.current.dropTargets), b;
2593
+ var g = h.eventName, p = h.payload, m = Ne(p.location.current.dropTargets), b;
2782
2594
  try {
2783
2595
  for (m.s(); !(b = m.n()).done; ) {
2784
2596
  var O, x = b.value, w = n.get(x.element), M = F(F({}, p), {}, {
@@ -2804,9 +2616,9 @@ function mi(e) {
2804
2616
  onDragStart: o,
2805
2617
  onDrop: o,
2806
2618
  onDropTargetChange: function(g) {
2807
- var p = g.payload, m = new Set(p.location.current.dropTargets.map(function(q) {
2808
- return q.element;
2809
- })), b = /* @__PURE__ */ new Set(), O = ke(p.location.previous.dropTargets), x;
2619
+ var p = g.payload, m = new Set(p.location.current.dropTargets.map(function(U) {
2620
+ return U.element;
2621
+ })), b = /* @__PURE__ */ new Set(), O = Ne(p.location.previous.dropTargets), x;
2810
2622
  try {
2811
2623
  for (O.s(); !(x = O.n()).done; ) {
2812
2624
  var w, M = x.value;
@@ -2815,28 +2627,28 @@ function mi(e) {
2815
2627
  self: M
2816
2628
  });
2817
2629
  if (S == null || (w = S.onDropTargetChange) === null || w === void 0 || w.call(S, E), !z) {
2818
- var y;
2819
- S == null || (y = S.onDragLeave) === null || y === void 0 || y.call(S, E);
2630
+ var v;
2631
+ S == null || (v = S.onDragLeave) === null || v === void 0 || v.call(S, E);
2820
2632
  }
2821
2633
  }
2822
- } catch (q) {
2823
- O.e(q);
2634
+ } catch (U) {
2635
+ O.e(U);
2824
2636
  } finally {
2825
2637
  O.f();
2826
2638
  }
2827
- var D = ke(p.location.current.dropTargets), P;
2639
+ var D = Ne(p.location.current.dropTargets), P;
2828
2640
  try {
2829
2641
  for (D.s(); !(P = D.n()).done; ) {
2830
- var R, L, $ = P.value;
2831
- if (!b.has($.element)) {
2832
- var V = F(F({}, p), {}, {
2833
- self: $
2834
- }), A = n.get($.element);
2835
- A == null || (R = A.onDropTargetChange) === null || R === void 0 || R.call(A, V), A == null || (L = A.onDragEnter) === null || L === void 0 || L.call(A, V);
2642
+ var R, L, X = P.value;
2643
+ if (!b.has(X.element)) {
2644
+ var J = F(F({}, p), {}, {
2645
+ self: X
2646
+ }), A = n.get(X.element);
2647
+ A == null || (R = A.onDropTargetChange) === null || R === void 0 || R.call(A, J), A == null || (L = A.onDragEnter) === null || L === void 0 || L.call(A, J);
2836
2648
  }
2837
2649
  }
2838
- } catch (q) {
2839
- D.e(q);
2650
+ } catch (U) {
2651
+ D.e(U);
2840
2652
  } finally {
2841
2653
  D.f();
2842
2654
  }
@@ -2853,10 +2665,10 @@ function mi(e) {
2853
2665
  });
2854
2666
  if (O.length >= b.length)
2855
2667
  return O;
2856
- for (var x = Ne(b), w = Ne(O), M = [], S = 0; S < x.length; S++) {
2857
- var z, E = x[S], y = w[S];
2858
- if (y != null) {
2859
- M.push(y);
2668
+ for (var x = Ae(b), w = Ae(O), M = [], S = 0; S < x.length; S++) {
2669
+ var z, E = x[S], v = w[S];
2670
+ if (v != null) {
2671
+ M.push(v);
2860
2672
  continue;
2861
2673
  }
2862
2674
  var D = M[S - 1], P = x[S - 1];
@@ -2877,7 +2689,7 @@ function mi(e) {
2877
2689
  isActiveDueToStickiness: !0
2878
2690
  }));
2879
2691
  }
2880
- return Ne(M);
2692
+ return Ae(M);
2881
2693
  }
2882
2694
  return {
2883
2695
  dropTargetForConsumers: c,
@@ -2885,10 +2697,10 @@ function mi(e) {
2885
2697
  dispatchEvent: l
2886
2698
  };
2887
2699
  }
2888
- function yi(e, t) {
2700
+ function hi(e, t) {
2889
2701
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2890
2702
  if (!r) {
2891
- if (Array.isArray(e) || (r = vi(e)) || t) {
2703
+ if (Array.isArray(e) || (r = gi(e)) || t) {
2892
2704
  r && (e = r);
2893
2705
  var n = 0, i = function() {
2894
2706
  };
@@ -2917,19 +2729,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2917
2729
  }
2918
2730
  } };
2919
2731
  }
2920
- function vi(e, t) {
2732
+ function gi(e, t) {
2921
2733
  if (e) {
2922
- if (typeof e == "string") return ht(e, t);
2734
+ if (typeof e == "string") return gt(e, t);
2923
2735
  var r = {}.toString.call(e).slice(8, -1);
2924
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ht(e, t) : void 0;
2736
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? gt(e, t) : void 0;
2925
2737
  }
2926
2738
  }
2927
- function ht(e, t) {
2739
+ function gt(e, t) {
2928
2740
  (t == null || t > e.length) && (t = e.length);
2929
2741
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2930
2742
  return n;
2931
2743
  }
2932
- function gt(e, t) {
2744
+ function pt(e, t) {
2933
2745
  var r = Object.keys(e);
2934
2746
  if (Object.getOwnPropertySymbols) {
2935
2747
  var n = Object.getOwnPropertySymbols(e);
@@ -2939,29 +2751,29 @@ function gt(e, t) {
2939
2751
  }
2940
2752
  return r;
2941
2753
  }
2942
- function bi(e) {
2754
+ function pi(e) {
2943
2755
  for (var t = 1; t < arguments.length; t++) {
2944
2756
  var r = arguments[t] != null ? arguments[t] : {};
2945
- t % 2 ? gt(Object(r), !0).forEach(function(n) {
2946
- $e(e, n, r[n]);
2947
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : gt(Object(r)).forEach(function(n) {
2757
+ t % 2 ? pt(Object(r), !0).forEach(function(n) {
2758
+ qe(e, n, r[n]);
2759
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pt(Object(r)).forEach(function(n) {
2948
2760
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
2949
2761
  });
2950
2762
  }
2951
2763
  return e;
2952
2764
  }
2953
- function wi() {
2765
+ function mi() {
2954
2766
  var e = /* @__PURE__ */ new Set(), t = null;
2955
2767
  function r(a) {
2956
2768
  t && (!a.canMonitor || a.canMonitor(t.canMonitorArgs)) && t.active.add(a);
2957
2769
  }
2958
2770
  function n(a) {
2959
- var u = bi({}, a);
2771
+ var u = pi({}, a);
2960
2772
  e.add(u), r(u);
2961
2773
  function c() {
2962
2774
  e.delete(u), t && t.active.delete(u);
2963
2775
  }
2964
- return ne(c);
2776
+ return ie(c);
2965
2777
  }
2966
2778
  function i(a) {
2967
2779
  var u = a.eventName, c = a.payload;
@@ -2973,7 +2785,7 @@ function wi() {
2973
2785
  },
2974
2786
  active: /* @__PURE__ */ new Set()
2975
2787
  };
2976
- var s = yi(e), o;
2788
+ var s = hi(e), o;
2977
2789
  try {
2978
2790
  for (s.s(); !(o = s.n()).done; ) {
2979
2791
  var f = o.value;
@@ -3001,8 +2813,8 @@ function wi() {
3001
2813
  monitorForConsumers: n
3002
2814
  };
3003
2815
  }
3004
- function xi(e) {
3005
- var t = e.typeKey, r = e.mount, n = e.dispatchEventToSource, i = e.onPostDispatch, a = e.defaultDropEffect, u = wi(), c = mi({
2816
+ function yi(e) {
2817
+ var t = e.typeKey, r = e.mount, n = e.dispatchEventToSource, i = e.onPostDispatch, a = e.defaultDropEffect, u = mi(), c = fi({
3006
2818
  typeKey: t,
3007
2819
  defaultDropEffect: a
3008
2820
  });
@@ -3011,7 +2823,7 @@ function xi(e) {
3011
2823
  }
3012
2824
  function o(l) {
3013
2825
  var d = l.event, h = l.dragType;
3014
- lt.start({
2826
+ dt.start({
3015
2827
  event: d,
3016
2828
  dragType: h,
3017
2829
  getDropTargetsOver: c.getIsOver,
@@ -3021,12 +2833,12 @@ function xi(e) {
3021
2833
  function f() {
3022
2834
  function l() {
3023
2835
  var d = {
3024
- canStart: lt.canStart,
2836
+ canStart: dt.canStart,
3025
2837
  start: o
3026
2838
  };
3027
2839
  return r(d);
3028
2840
  }
3029
- return gi({
2841
+ return li({
3030
2842
  typeKey: t,
3031
2843
  mount: l
3032
2844
  });
@@ -3037,19 +2849,19 @@ function xi(e) {
3037
2849
  monitor: u.monitorForConsumers
3038
2850
  };
3039
2851
  }
3040
- var Si = ne(function() {
2852
+ var vi = ie(function() {
3041
2853
  return navigator.userAgent.toLocaleLowerCase().includes("android");
3042
- }), Oi = "pdnd:android-fallback", pt = "text/plain", Di = "text/uri-list", Ti = "application/vnd.pdnd", he = /* @__PURE__ */ new WeakMap();
3043
- function Mi(e) {
3044
- return he.set(e.element, e), function() {
3045
- he.delete(e.element);
2854
+ }), bi = "pdnd:android-fallback", mt = "text/plain", wi = "text/uri-list", xi = "application/vnd.pdnd", ge = /* @__PURE__ */ new WeakMap();
2855
+ function Si(e) {
2856
+ return ge.set(e.element, e), function() {
2857
+ ge.delete(e.element);
3046
2858
  };
3047
2859
  }
3048
- var mt = Qn(), Ue = xi({
2860
+ var yt = Un(), Ge = yi({
3049
2861
  typeKey: "element",
3050
2862
  defaultDropEffect: "move",
3051
2863
  mount: function(t) {
3052
- return Xe(mt.bindEvents(), te.bind(document, {
2864
+ return Ue(yt.bindEvents(), ne.bind(document, {
3053
2865
  type: "dragstart",
3054
2866
  listener: function(n) {
3055
2867
  var i, a, u, c, s, o;
@@ -3069,10 +2881,10 @@ var mt = Qn(), Ue = xi({
3069
2881
  var f = n.target;
3070
2882
  if (!(f instanceof HTMLElement))
3071
2883
  return null;
3072
- var l = he.get(f);
2884
+ var l = ge.get(f);
3073
2885
  if (!l)
3074
2886
  return null;
3075
- var d = ue(n), h = {
2887
+ var d = ce(n), h = {
3076
2888
  element: l.element,
3077
2889
  dragHandle: (i = l.dragHandle) !== null && i !== void 0 ? i : null,
3078
2890
  input: d
@@ -3080,7 +2892,7 @@ var mt = Qn(), Ue = xi({
3080
2892
  if (l.canDrag && !l.canDrag(h))
3081
2893
  return n.preventDefault(), null;
3082
2894
  if (l.dragHandle) {
3083
- var g = $t({
2895
+ var g = qt({
3084
2896
  x: d.clientX,
3085
2897
  y: d.clientY
3086
2898
  });
@@ -3090,10 +2902,10 @@ var mt = Qn(), Ue = xi({
3090
2902
  var p = (a = (u = l.getInitialDataForExternal) === null || u === void 0 ? void 0 : u.call(l, h)) !== null && a !== void 0 ? a : null;
3091
2903
  if (p)
3092
2904
  for (var m = 0, b = Object.entries(p); m < b.length; m++) {
3093
- var O = jt(b[m], 2), x = O[0], w = O[1];
2905
+ var O = Bt(b[m], 2), x = O[0], w = O[1];
3094
2906
  n.dataTransfer.setData(x, w ?? "");
3095
2907
  }
3096
- Si() && !n.dataTransfer.types.includes(pt) && !n.dataTransfer.types.includes(Di) && n.dataTransfer.setData(pt, Oi), n.dataTransfer.setData(Ti, "");
2908
+ vi() && !n.dataTransfer.types.includes(mt) && !n.dataTransfer.types.includes(wi) && n.dataTransfer.setData(mt, bi), n.dataTransfer.setData(xi, "");
3097
2909
  var M = {
3098
2910
  element: l.element,
3099
2911
  dragHandle: (c = l.dragHandle) !== null && c !== void 0 ? c : null,
@@ -3113,7 +2925,7 @@ var mt = Qn(), Ue = xi({
3113
2925
  },
3114
2926
  dispatchEventToSource: function(t) {
3115
2927
  var r, n, i = t.eventName, a = t.payload;
3116
- (r = he.get(a.source.element)) === null || r === void 0 || (n = r[i]) === null || n === void 0 || n.call(
2928
+ (r = ge.get(a.source.element)) === null || r === void 0 || (n = r[i]) === null || n === void 0 || n.call(
3117
2929
  r,
3118
2930
  // I cannot seem to get the types right here.
3119
2931
  // TS doesn't seem to like that one event can need `nativeSetDragImage`
@@ -3121,43 +2933,43 @@ var mt = Qn(), Ue = xi({
3121
2933
  a
3122
2934
  );
3123
2935
  },
3124
- onPostDispatch: mt.getOnPostDispatch()
3125
- }), Ei = Ue.dropTarget, Pi = Ue.monitor;
3126
- function Ri(e) {
2936
+ onPostDispatch: yt.getOnPostDispatch()
2937
+ }), Oi = Ge.dropTarget, Di = Ge.monitor;
2938
+ function Ti(e) {
3127
2939
  if (process.env.NODE_ENV !== "production" && e.dragHandle && !e.element.contains(e.dragHandle) && console.warn("Drag handle element must be contained in draggable element", {
3128
2940
  element: e.element,
3129
2941
  dragHandle: e.dragHandle
3130
2942
  }), process.env.NODE_ENV !== "production") {
3131
- var t = he.get(e.element);
2943
+ var t = ge.get(e.element);
3132
2944
  t && console.warn("You have already registered a `draggable` on the same element", {
3133
2945
  existing: t,
3134
2946
  proposed: e
3135
2947
  });
3136
2948
  }
3137
- var r = Xe(
2949
+ var r = Ue(
3138
2950
  // making the draggable register the adapter rather than drop targets
3139
2951
  // this is because you *must* have a draggable element to start a drag
3140
2952
  // but you _might_ not have any drop targets immediately
3141
2953
  // (You might create drop targets async)
3142
- Ue.registerUsage(),
3143
- Mi(e),
3144
- Ut(e.element, {
2954
+ Ge.registerUsage(),
2955
+ Si(e),
2956
+ Gt(e.element, {
3145
2957
  attribute: "draggable",
3146
2958
  value: "true"
3147
2959
  })
3148
2960
  );
3149
- return ne(r);
2961
+ return ie(r);
3150
2962
  }
3151
- var ki = process.env.NODE_ENV === "production", yt = "Invariant failed";
3152
- function He(e, t) {
2963
+ var Mi = process.env.NODE_ENV === "production", vt = "Invariant failed";
2964
+ function Ie(e, t) {
3153
2965
  if (!e) {
3154
- if (ki)
3155
- throw new Error(yt);
3156
- var r = yt;
2966
+ if (Mi)
2967
+ throw new Error(vt);
2968
+ var r = vt;
3157
2969
  throw new Error(r);
3158
2970
  }
3159
2971
  }
3160
- function Ni({
2972
+ function Ei({
3161
2973
  children: e,
3162
2974
  onDragStart: t = () => {
3163
2975
  },
@@ -3170,53 +2982,53 @@ function Ni({
3170
2982
  onDragLeave: a = () => {
3171
2983
  }
3172
2984
  }) {
3173
- const u = ce(null);
3174
- return ee(() => {
2985
+ const u = le(null);
2986
+ return re(() => {
3175
2987
  const c = u.current;
3176
- return He(c), Ei({
2988
+ return Ie(c), Oi({
3177
2989
  element: c,
3178
2990
  getData: () => ({ drop: "drop" }),
3179
2991
  onDragStart: ({ source: s, location: o }) => {
3180
- const f = me(o), l = Z(s, o);
2992
+ const f = ye(o), l = te(s, o);
3181
2993
  t(f, l, s.data);
3182
2994
  },
3183
2995
  onDragEnter: ({ source: s, location: o }) => {
3184
- const f = me(o), l = Z(s, o);
2996
+ const f = ye(o), l = te(s, o);
3185
2997
  i(f, l, s.data);
3186
2998
  },
3187
2999
  onDrag: ({ source: s, location: o }) => {
3188
- const f = me(o), l = Z(s, o);
3000
+ const f = ye(o), l = te(s, o);
3189
3001
  r(f, l, s.data);
3190
3002
  },
3191
3003
  onDrop: ({ source: s, location: o }) => {
3192
- const f = me(o), l = Z(s, o);
3004
+ const f = ye(o), l = te(s, o);
3193
3005
  n(f, l, s.data);
3194
3006
  },
3195
3007
  onDragLeave: ({ source: s, location: o }) => {
3196
- const f = Z(s, o);
3008
+ const f = te(s, o);
3197
3009
  a(f, s.data);
3198
3010
  }
3199
3011
  });
3200
- }, [r, a, t, n, i]), /* @__PURE__ */ v("div", { className: "timeline-drop-target", ref: u, children: e });
3012
+ }, [r, a, t, n, i]), /* @__PURE__ */ y("div", { className: "timelane-drop-target", ref: u, children: e });
3201
3013
  }
3202
- function me(e) {
3014
+ function ye(e) {
3203
3015
  const t = e.current.dropTargets[0].element.getBoundingClientRect();
3204
3016
  return {
3205
3017
  x: e.current.input.pageX - t.x,
3206
3018
  y: e.current.input.pageY - t.y
3207
3019
  };
3208
3020
  }
3209
- function Ai({
3021
+ function Pi({
3210
3022
  x: e,
3211
3023
  y: t,
3212
3024
  width: r,
3213
3025
  height: n,
3214
3026
  children: i
3215
3027
  }) {
3216
- return /* @__PURE__ */ v(
3028
+ return /* @__PURE__ */ y(
3217
3029
  "div",
3218
3030
  {
3219
- className: "timeline-drop-preview",
3031
+ className: "timelane-drop-preview",
3220
3032
  style: {
3221
3033
  left: `${e}px`,
3222
3034
  top: `${t}px`,
@@ -3227,7 +3039,7 @@ function Ai({
3227
3039
  }
3228
3040
  );
3229
3041
  }
3230
- function zi(e, t, r, n, i, a, u, c, s) {
3042
+ function Ri(e, t, r, n, i, a, u, c, s) {
3231
3043
  if (n === null)
3232
3044
  return null;
3233
3045
  const o = Ye(
@@ -3236,24 +3048,24 @@ function zi(e, t, r, n, i, a, u, c, s) {
3236
3048
  c
3237
3049
  ), f = t.filter((d) => d.id !== r.id).map((d) => Fe(d, e, c, a));
3238
3050
  let l = null;
3239
- return l = Ci(
3051
+ return l = ki(
3240
3052
  e,
3241
3053
  r,
3242
3054
  i,
3243
3055
  a,
3244
3056
  n
3245
- ), l = Wi(l, u), l = _i(
3057
+ ), l = Ai(l, u), l = Ni(
3246
3058
  l,
3247
3059
  o
3248
- ), l = Li(
3060
+ ), l = zi(
3249
3061
  l,
3250
3062
  f,
3251
3063
  o,
3252
3064
  s
3253
3065
  ), l;
3254
3066
  }
3255
- function Ci(e, t, r, n, i) {
3256
- const { width: a, height: u } = Lt(t, e, n), c = i.x + a * r.relative.x, s = i.y + u * r.relative.y;
3067
+ function ki(e, t, r, n, i) {
3068
+ const { width: a, height: u } = Ht(t, e, n), c = i.x + a * r.relative.x, s = i.y + u * r.relative.y;
3257
3069
  return {
3258
3070
  x: c,
3259
3071
  y: s,
@@ -3261,7 +3073,7 @@ function Ci(e, t, r, n, i) {
3261
3073
  height: u
3262
3074
  };
3263
3075
  }
3264
- function _i(e, t) {
3076
+ function Ni(e, t) {
3265
3077
  const r = Math.max(
3266
3078
  0,
3267
3079
  Math.min(e.x, t.width - e.width)
@@ -3275,35 +3087,35 @@ function _i(e, t) {
3275
3087
  y: n
3276
3088
  };
3277
3089
  }
3278
- function Wi(e, t) {
3090
+ function Ai(e, t) {
3279
3091
  const r = {
3280
3092
  ...e
3281
3093
  };
3282
- return t && t.x && (r.x = vt(r.x, t.x, t.offsetX || 0)), t && t.y && (r.y = vt(r.y, t.y, t.offsetY || 0)), r;
3094
+ return t && t.x && (r.x = bt(r.x, t.x, t.offsetX || 0)), t && t.y && (r.y = bt(r.y, t.y, t.offsetY || 0)), r;
3283
3095
  }
3284
- function vt(e, t, r) {
3096
+ function bt(e, t, r) {
3285
3097
  return Math.max(
3286
3098
  r,
3287
3099
  r + Math.round((e - r) / t) * t
3288
3100
  );
3289
3101
  }
3290
- function Li(e, t, r, n) {
3102
+ function zi(e, t, r, n) {
3291
3103
  const i = {
3292
3104
  ...e
3293
3105
  };
3294
3106
  if (!n) {
3295
3107
  let a = !0;
3296
3108
  for (; a; ) {
3297
- const u = t.find((c) => se(i, c));
3109
+ const u = t.find((c) => ue(i, c));
3298
3110
  u !== void 0 ? i.y = u.y + u.height : a = !1;
3299
3111
  }
3300
3112
  }
3301
- return ji(i, r) ? i : null;
3113
+ return Wi(i, r) ? i : null;
3302
3114
  }
3303
- function se(e, t) {
3115
+ function ue(e, t) {
3304
3116
  return !(e.x >= t.x + t.width || t.x >= e.x + e.width || e.y >= t.y + t.height || t.y >= e.y + e.height);
3305
3117
  }
3306
- function Hi(e, t) {
3118
+ function _i(e, t) {
3307
3119
  const r = Math.max(e.x, t.x), n = Math.max(e.y, t.y), i = Math.min(e.x + e.width, t.x + t.width), a = Math.min(e.y + e.height, t.y + t.height);
3308
3120
  return r < i && n < a ? {
3309
3121
  x: r,
@@ -3312,21 +3124,21 @@ function Hi(e, t) {
3312
3124
  height: a - n
3313
3125
  } : null;
3314
3126
  }
3315
- function Ii(e, t) {
3127
+ function Ci(e, t) {
3316
3128
  return !(e.start >= t.end || t.start >= e.end || e.offset >= t.offset + t.size || t.offset >= e.offset + e.size);
3317
3129
  }
3318
- function ji(e, t) {
3130
+ function Wi(e, t) {
3319
3131
  return e.x >= 0 && e.y >= 0 && e.x + e.width <= t.width && e.y + e.height <= t.height;
3320
3132
  }
3321
- function Yi(e, t, r, n, i) {
3322
- const a = Fi(
3133
+ function Li(e, t, r, n, i) {
3134
+ const a = Hi(
3323
3135
  e,
3324
3136
  t,
3325
3137
  r.capacity,
3326
3138
  n
3327
3139
  );
3328
3140
  if (a) {
3329
- const u = Bi(
3141
+ const u = Ii(
3330
3142
  e,
3331
3143
  i.start,
3332
3144
  i.end,
@@ -3343,7 +3155,7 @@ function Yi(e, t, r, n, i) {
3343
3155
  }
3344
3156
  return null;
3345
3157
  }
3346
- function Fi(e, t, r, n) {
3158
+ function Hi(e, t, r, n) {
3347
3159
  const i = n.filter((f) => f.start <= e && f.end >= e);
3348
3160
  if (i.find(
3349
3161
  (f) => f.offset <= t && f.offset + f.size >= t
@@ -3355,27 +3167,27 @@ function Fi(e, t, r, n) {
3355
3167
  upper: o
3356
3168
  };
3357
3169
  }
3358
- function Bi(e, t, r, n, i) {
3170
+ function Ii(e, t, r, n, i) {
3359
3171
  const a = {
3360
3172
  start: t,
3361
3173
  end: r,
3362
3174
  offset: i.lower,
3363
3175
  size: i.upper - i.lower
3364
3176
  }, u = n.filter(
3365
- (l) => Ii(l, a)
3177
+ (l) => Ci(l, a)
3366
3178
  );
3367
3179
  if (u.length === 0)
3368
3180
  return {
3369
3181
  lower: t,
3370
3182
  upper: r
3371
3183
  };
3372
- const c = u.filter((l) => l.end <= e), s = u.filter((l) => l.start >= e), o = c.length > 0 ? pr(c.map((l) => l.end)) : t, f = s.length > 0 ? mr(s.map((l) => l.start)) : r;
3184
+ const c = u.filter((l) => l.end <= e), s = u.filter((l) => l.start >= e), o = c.length > 0 ? yr(c.map((l) => l.end)) : t, f = s.length > 0 ? vr(s.map((l) => l.start)) : r;
3373
3185
  return {
3374
3186
  lower: o,
3375
3187
  upper: f
3376
3188
  };
3377
3189
  }
3378
- var ye = { exports: {} }, C = {};
3190
+ var ve = { exports: {} }, _ = {};
3379
3191
  /**
3380
3192
  * @license React
3381
3193
  * react-dom.production.js
@@ -3385,11 +3197,11 @@ var ye = { exports: {} }, C = {};
3385
3197
  * This source code is licensed under the MIT license found in the
3386
3198
  * LICENSE file in the root directory of this source tree.
3387
3199
  */
3388
- var bt;
3389
- function $i() {
3390
- if (bt) return C;
3391
- bt = 1;
3392
- var e = Rt;
3200
+ var wt;
3201
+ function ji() {
3202
+ if (wt) return _;
3203
+ wt = 1;
3204
+ var e = kt;
3393
3205
  function t(s) {
3394
3206
  var o = "https://react.dev/errors/" + s;
3395
3207
  if (1 < arguments.length) {
@@ -3434,23 +3246,23 @@ function $i() {
3434
3246
  if (typeof o == "string")
3435
3247
  return o === "use-credentials" ? o : "";
3436
3248
  }
3437
- return C.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, C.createPortal = function(s, o) {
3249
+ return _.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, _.createPortal = function(s, o) {
3438
3250
  var f = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
3439
3251
  if (!o || o.nodeType !== 1 && o.nodeType !== 9 && o.nodeType !== 11)
3440
3252
  throw Error(t(299));
3441
3253
  return a(s, o, null, f);
3442
- }, C.flushSync = function(s) {
3254
+ }, _.flushSync = function(s) {
3443
3255
  var o = u.T, f = n.p;
3444
3256
  try {
3445
3257
  if (u.T = null, n.p = 2, s) return s();
3446
3258
  } finally {
3447
3259
  u.T = o, n.p = f, n.d.f();
3448
3260
  }
3449
- }, C.preconnect = function(s, o) {
3261
+ }, _.preconnect = function(s, o) {
3450
3262
  typeof s == "string" && (o ? (o = o.crossOrigin, o = typeof o == "string" ? o === "use-credentials" ? o : "" : void 0) : o = null, n.d.C(s, o));
3451
- }, C.prefetchDNS = function(s) {
3263
+ }, _.prefetchDNS = function(s) {
3452
3264
  typeof s == "string" && n.d.D(s);
3453
- }, C.preinit = function(s, o) {
3265
+ }, _.preinit = function(s, o) {
3454
3266
  if (typeof s == "string" && o && typeof o.as == "string") {
3455
3267
  var f = o.as, l = c(f, o.crossOrigin), d = typeof o.integrity == "string" ? o.integrity : void 0, h = typeof o.fetchPriority == "string" ? o.fetchPriority : void 0;
3456
3268
  f === "style" ? n.d.S(
@@ -3468,7 +3280,7 @@ function $i() {
3468
3280
  nonce: typeof o.nonce == "string" ? o.nonce : void 0
3469
3281
  });
3470
3282
  }
3471
- }, C.preinitModule = function(s, o) {
3283
+ }, _.preinitModule = function(s, o) {
3472
3284
  if (typeof s == "string")
3473
3285
  if (typeof o == "object" && o !== null) {
3474
3286
  if (o.as == null || o.as === "script") {
@@ -3483,7 +3295,7 @@ function $i() {
3483
3295
  });
3484
3296
  }
3485
3297
  } else o == null && n.d.M(s);
3486
- }, C.preload = function(s, o) {
3298
+ }, _.preload = function(s, o) {
3487
3299
  if (typeof s == "string" && typeof o == "object" && o !== null && typeof o.as == "string") {
3488
3300
  var f = o.as, l = c(f, o.crossOrigin);
3489
3301
  n.d.L(s, f, {
@@ -3498,7 +3310,7 @@ function $i() {
3498
3310
  media: typeof o.media == "string" ? o.media : void 0
3499
3311
  });
3500
3312
  }
3501
- }, C.preloadModule = function(s, o) {
3313
+ }, _.preloadModule = function(s, o) {
3502
3314
  if (typeof s == "string")
3503
3315
  if (o) {
3504
3316
  var f = c(o.as, o.crossOrigin);
@@ -3508,17 +3320,17 @@ function $i() {
3508
3320
  integrity: typeof o.integrity == "string" ? o.integrity : void 0
3509
3321
  });
3510
3322
  } else n.d.m(s);
3511
- }, C.requestFormReset = function(s) {
3323
+ }, _.requestFormReset = function(s) {
3512
3324
  n.d.r(s);
3513
- }, C.unstable_batchedUpdates = function(s, o) {
3325
+ }, _.unstable_batchedUpdates = function(s, o) {
3514
3326
  return s(o);
3515
- }, C.useFormState = function(s, o, f) {
3327
+ }, _.useFormState = function(s, o, f) {
3516
3328
  return u.H.useFormState(s, o, f);
3517
- }, C.useFormStatus = function() {
3329
+ }, _.useFormStatus = function() {
3518
3330
  return u.H.useHostTransitionStatus();
3519
- }, C.version = "19.1.0", C;
3331
+ }, _.version = "19.1.0", _;
3520
3332
  }
3521
- var _ = {};
3333
+ var C = {};
3522
3334
  /**
3523
3335
  * @license React
3524
3336
  * react-dom.development.js
@@ -3528,9 +3340,9 @@ var _ = {};
3528
3340
  * This source code is licensed under the MIT license found in the
3529
3341
  * LICENSE file in the root directory of this source tree.
3530
3342
  */
3531
- var wt;
3532
- function qi() {
3533
- return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
3343
+ var xt;
3344
+ function Bi() {
3345
+ return xt || (xt = 1, process.env.NODE_ENV !== "production" && function() {
3534
3346
  function e() {
3535
3347
  }
3536
3348
  function t(l) {
@@ -3577,7 +3389,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3577
3389
  ), l;
3578
3390
  }
3579
3391
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
3580
- var c = Rt, s = {
3392
+ var c = kt, s = {
3581
3393
  d: {
3582
3394
  f: e,
3583
3395
  r: function() {
@@ -3598,12 +3410,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3598
3410
  }, o = Symbol.for("react.portal"), f = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3599
3411
  typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
3600
3412
  "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
3601
- ), _.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, _.createPortal = function(l, d) {
3413
+ ), C.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, C.createPortal = function(l, d) {
3602
3414
  var h = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
3603
3415
  if (!d || d.nodeType !== 1 && d.nodeType !== 9 && d.nodeType !== 11)
3604
3416
  throw Error("Target container is not a DOM element.");
3605
3417
  return r(l, d, null, h);
3606
- }, _.flushSync = function(l) {
3418
+ }, C.flushSync = function(l) {
3607
3419
  var d = f.T, h = s.p;
3608
3420
  try {
3609
3421
  if (f.T = null, s.p = 2, l)
@@ -3613,7 +3425,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3613
3425
  "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
3614
3426
  );
3615
3427
  }
3616
- }, _.preconnect = function(l, d) {
3428
+ }, C.preconnect = function(l, d) {
3617
3429
  typeof l == "string" && l ? d != null && typeof d != "object" ? console.error(
3618
3430
  "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
3619
3431
  a(d)
@@ -3624,7 +3436,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3624
3436
  "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
3625
3437
  i(l)
3626
3438
  ), typeof l == "string" && (d ? (d = d.crossOrigin, d = typeof d == "string" ? d === "use-credentials" ? d : "" : void 0) : d = null, s.d.C(l, d));
3627
- }, _.prefetchDNS = function(l) {
3439
+ }, C.prefetchDNS = function(l) {
3628
3440
  if (typeof l != "string" || !l)
3629
3441
  console.error(
3630
3442
  "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
@@ -3641,7 +3453,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3641
3453
  );
3642
3454
  }
3643
3455
  typeof l == "string" && s.d.D(l);
3644
- }, _.preinit = function(l, d) {
3456
+ }, C.preinit = function(l, d) {
3645
3457
  if (typeof l == "string" && l ? d == null || typeof d != "object" ? console.error(
3646
3458
  "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
3647
3459
  a(d)
@@ -3668,7 +3480,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3668
3480
  nonce: typeof d.nonce == "string" ? d.nonce : void 0
3669
3481
  });
3670
3482
  }
3671
- }, _.preinitModule = function(l, d) {
3483
+ }, C.preinitModule = function(l, d) {
3672
3484
  var h = "";
3673
3485
  if (typeof l == "string" && l || (h += " The `href` argument encountered was " + i(l) + "."), d !== void 0 && typeof d != "object" ? h += " The `options` argument encountered was " + i(d) + "." : d && "as" in d && d.as !== "script" && (h += " The `as` option encountered was " + a(d.as) + "."), h)
3674
3486
  console.error(
@@ -3694,7 +3506,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3694
3506
  integrity: typeof d.integrity == "string" ? d.integrity : void 0,
3695
3507
  nonce: typeof d.nonce == "string" ? d.nonce : void 0
3696
3508
  })) : d == null && s.d.M(l));
3697
- }, _.preload = function(l, d) {
3509
+ }, C.preload = function(l, d) {
3698
3510
  var h = "";
3699
3511
  if (typeof l == "string" && l || (h += " The `href` argument encountered was " + i(l) + "."), d == null || typeof d != "object" ? h += " The `options` argument encountered was " + i(d) + "." : typeof d.as == "string" && d.as || (h += " The `as` option encountered was " + i(d.as) + "."), h && console.error(
3700
3512
  'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
@@ -3717,7 +3529,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3717
3529
  media: typeof d.media == "string" ? d.media : void 0
3718
3530
  });
3719
3531
  }
3720
- }, _.preloadModule = function(l, d) {
3532
+ }, C.preloadModule = function(l, d) {
3721
3533
  var h = "";
3722
3534
  typeof l == "string" && l || (h += " The `href` argument encountered was " + i(l) + "."), d !== void 0 && typeof d != "object" ? h += " The `options` argument encountered was " + i(d) + "." : d && "as" in d && typeof d.as != "string" && (h += " The `as` option encountered was " + i(d.as) + "."), h && console.error(
3723
3535
  'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
@@ -3730,21 +3542,21 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3730
3542
  crossOrigin: h,
3731
3543
  integrity: typeof d.integrity == "string" ? d.integrity : void 0
3732
3544
  })) : s.d.m(l));
3733
- }, _.requestFormReset = function(l) {
3545
+ }, C.requestFormReset = function(l) {
3734
3546
  s.d.r(l);
3735
- }, _.unstable_batchedUpdates = function(l, d) {
3547
+ }, C.unstable_batchedUpdates = function(l, d) {
3736
3548
  return l(d);
3737
- }, _.useFormState = function(l, d, h) {
3549
+ }, C.useFormState = function(l, d, h) {
3738
3550
  return u().useFormState(l, d, h);
3739
- }, _.useFormStatus = function() {
3551
+ }, C.useFormStatus = function() {
3740
3552
  return u().useHostTransitionStatus();
3741
- }, _.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3742
- }()), _;
3553
+ }, C.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3554
+ }()), C;
3743
3555
  }
3744
- var xt;
3745
- function Xi() {
3746
- if (xt) return ye.exports;
3747
- xt = 1;
3556
+ var St;
3557
+ function Yi() {
3558
+ if (St) return ve.exports;
3559
+ St = 1;
3748
3560
  function e() {
3749
3561
  if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
3750
3562
  if (process.env.NODE_ENV !== "production")
@@ -3756,9 +3568,9 @@ function Xi() {
3756
3568
  }
3757
3569
  }
3758
3570
  }
3759
- return process.env.NODE_ENV === "production" ? (e(), ye.exports = $i()) : ye.exports = qi(), ye.exports;
3571
+ return process.env.NODE_ENV === "production" ? (e(), ve.exports = ji()) : ve.exports = Bi(), ve.exports;
3760
3572
  }
3761
- var Ui = Xi(), k = function() {
3573
+ var Fi = Yi(), k = function() {
3762
3574
  return k = Object.assign || function(e) {
3763
3575
  for (var t, r = 1, n = arguments.length; r < n; r++) {
3764
3576
  t = arguments[r];
@@ -3766,42 +3578,42 @@ var Ui = Xi(), k = function() {
3766
3578
  }
3767
3579
  return e;
3768
3580
  }, k.apply(this, arguments);
3769
- }, St = {
3581
+ }, Ot = {
3770
3582
  width: "100%",
3771
3583
  height: "10px",
3772
3584
  top: "0px",
3773
3585
  left: "0px",
3774
3586
  cursor: "row-resize"
3775
- }, Ot = {
3587
+ }, Dt = {
3776
3588
  width: "10px",
3777
3589
  height: "100%",
3778
3590
  top: "0px",
3779
3591
  left: "0px",
3780
3592
  cursor: "col-resize"
3781
- }, ve = {
3593
+ }, be = {
3782
3594
  width: "20px",
3783
3595
  height: "20px",
3784
3596
  position: "absolute",
3785
3597
  zIndex: 1
3786
- }, Gi = {
3787
- top: k(k({}, St), { top: "-5px" }),
3788
- right: k(k({}, Ot), { left: void 0, right: "-5px" }),
3789
- bottom: k(k({}, St), { top: void 0, bottom: "-5px" }),
3790
- left: k(k({}, Ot), { left: "-5px" }),
3791
- topRight: k(k({}, ve), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
3792
- bottomRight: k(k({}, ve), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
3793
- bottomLeft: k(k({}, ve), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
3794
- topLeft: k(k({}, ve), { left: "-10px", top: "-10px", cursor: "nw-resize" })
3795
- }, Ki = Jt(function(e) {
3796
- var t = e.onResizeStart, r = e.direction, n = e.children, i = e.replaceStyles, a = e.className, u = Ke(function(o) {
3598
+ }, $i = {
3599
+ top: k(k({}, Ot), { top: "-5px" }),
3600
+ right: k(k({}, Dt), { left: void 0, right: "-5px" }),
3601
+ bottom: k(k({}, Ot), { top: void 0, bottom: "-5px" }),
3602
+ left: k(k({}, Dt), { left: "-5px" }),
3603
+ topRight: k(k({}, be), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
3604
+ bottomRight: k(k({}, be), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
3605
+ bottomLeft: k(k({}, be), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
3606
+ topLeft: k(k({}, be), { left: "-10px", top: "-10px", cursor: "nw-resize" })
3607
+ }, qi = Zt(function(e) {
3608
+ var t = e.onResizeStart, r = e.direction, n = e.children, i = e.replaceStyles, a = e.className, u = Ve(function(o) {
3797
3609
  t(o, r);
3798
- }, [t, r]), c = Ke(function(o) {
3610
+ }, [t, r]), c = Ve(function(o) {
3799
3611
  t(o, r);
3800
- }, [t, r]), s = Zt(function() {
3801
- return k(k({ position: "absolute", userSelect: "none" }, Gi[r]), i ?? {});
3612
+ }, [t, r]), s = er(function() {
3613
+ return k(k({ position: "absolute", userSelect: "none" }, $i[r]), i ?? {});
3802
3614
  }, [i, r]);
3803
- return v("div", { className: a || void 0, style: s, onMouseDown: u, onTouchStart: c, children: n });
3804
- }), Vi = /* @__PURE__ */ function() {
3615
+ return y("div", { className: a || void 0, style: s, onMouseDown: u, onTouchStart: c, children: n });
3616
+ }), Xi = /* @__PURE__ */ function() {
3805
3617
  var e = function(t, r) {
3806
3618
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
3807
3619
  n.__proto__ = i;
@@ -3818,37 +3630,37 @@ var Ui = Xi(), k = function() {
3818
3630
  }
3819
3631
  t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
3820
3632
  };
3821
- }(), H = function() {
3822
- return H = Object.assign || function(e) {
3633
+ }(), I = function() {
3634
+ return I = Object.assign || function(e) {
3823
3635
  for (var t, r = 1, n = arguments.length; r < n; r++) {
3824
3636
  t = arguments[r];
3825
3637
  for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
3826
3638
  }
3827
3639
  return e;
3828
- }, H.apply(this, arguments);
3829
- }, Qi = {
3640
+ }, I.apply(this, arguments);
3641
+ }, Ui = {
3830
3642
  width: "auto",
3831
3643
  height: "auto"
3832
- }, be = function(e, t, r) {
3644
+ }, we = function(e, t, r) {
3833
3645
  return Math.max(Math.min(e, r), t);
3834
- }, Dt = function(e, t, r) {
3646
+ }, Tt = function(e, t, r) {
3835
3647
  var n = Math.round(e / t);
3836
3648
  return n * t + r * (n - 1);
3837
- }, J = function(e, t) {
3649
+ }, ee = function(e, t) {
3838
3650
  return new RegExp(e, "i").test(t);
3839
- }, we = function(e) {
3651
+ }, xe = function(e) {
3840
3652
  return !!(e.touches && e.touches.length);
3841
- }, Ji = function(e) {
3653
+ }, Gi = function(e) {
3842
3654
  return !!((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0));
3843
- }, Tt = function(e, t, r) {
3655
+ }, Mt = function(e, t, r) {
3844
3656
  r === void 0 && (r = 0);
3845
3657
  var n = t.reduce(function(a, u, c) {
3846
3658
  return Math.abs(u - e) < Math.abs(t[a] - e) ? c : a;
3847
3659
  }, 0), i = Math.abs(t[n] - e);
3848
3660
  return r === 0 || i < r ? t[n] : e;
3849
- }, Ae = function(e) {
3661
+ }, ze = function(e) {
3850
3662
  return e = e.toString(), e === "auto" || e.endsWith("px") || e.endsWith("%") || e.endsWith("vh") || e.endsWith("vw") || e.endsWith("vmax") || e.endsWith("vmin") ? e : "".concat(e, "px");
3851
- }, xe = function(e, t, r, n) {
3663
+ }, Se = function(e, t, r, n) {
3852
3664
  if (e && typeof e == "string") {
3853
3665
  if (e.endsWith("px"))
3854
3666
  return Number(e.replace("px", ""));
@@ -3866,16 +3678,16 @@ var Ui = Xi(), k = function() {
3866
3678
  }
3867
3679
  }
3868
3680
  return e;
3869
- }, Zi = function(e, t, r, n, i, a, u) {
3870
- return n = xe(n, e.width, t, r), i = xe(i, e.height, t, r), a = xe(a, e.width, t, r), u = xe(u, e.height, t, r), {
3681
+ }, Ki = function(e, t, r, n, i, a, u) {
3682
+ return n = Se(n, e.width, t, r), i = Se(i, e.height, t, r), a = Se(a, e.width, t, r), u = Se(u, e.height, t, r), {
3871
3683
  maxWidth: typeof n > "u" ? void 0 : Number(n),
3872
3684
  maxHeight: typeof i > "u" ? void 0 : Number(i),
3873
3685
  minWidth: typeof a > "u" ? void 0 : Number(a),
3874
3686
  minHeight: typeof u > "u" ? void 0 : Number(u)
3875
3687
  };
3876
- }, ea = function(e) {
3688
+ }, Vi = function(e) {
3877
3689
  return Array.isArray(e) ? e : [e, e];
3878
- }, ta = [
3690
+ }, Qi = [
3879
3691
  "as",
3880
3692
  "ref",
3881
3693
  "style",
@@ -3907,10 +3719,10 @@ var Ui = Xi(), k = function() {
3907
3719
  "scale",
3908
3720
  "resizeRatio",
3909
3721
  "snapGap"
3910
- ], Mt = "__resizable_base__", ra = (
3722
+ ], Et = "__resizable_base__", Ji = (
3911
3723
  /** @class */
3912
3724
  function(e) {
3913
- Vi(t, e);
3725
+ Xi(t, e);
3914
3726
  function t(r) {
3915
3727
  var n, i, a, u, c = e.call(this, r) || this;
3916
3728
  return c.ratio = 1, c.resizable = null, c.parentLeft = 0, c.parentTop = 0, c.resizableLeft = 0, c.resizableRight = 0, c.resizableTop = 0, c.resizableBottom = 0, c.targetLeft = 0, c.targetTop = 0, c.delta = {
@@ -3923,7 +3735,7 @@ var Ui = Xi(), k = function() {
3923
3735
  if (!s)
3924
3736
  return null;
3925
3737
  var o = c.window.document.createElement("div");
3926
- return o.style.width = "100%", o.style.height = "100%", o.style.position = "absolute", o.style.transform = "scale(0, 0)", o.style.left = "0", o.style.flex = "0 0 100%", o.classList ? o.classList.add(Mt) : o.className += Mt, s.appendChild(o), o;
3738
+ return o.style.width = "100%", o.style.height = "100%", o.style.position = "absolute", o.style.transform = "scale(0, 0)", o.style.left = "0", o.style.flex = "0 0 100%", o.classList ? o.classList.add(Et) : o.className += Et, s.appendChild(o), o;
3927
3739
  }, c.removeBase = function(s) {
3928
3740
  var o = c.parentNode;
3929
3741
  o && o.removeChild(s);
@@ -3968,7 +3780,7 @@ var Ui = Xi(), k = function() {
3968
3780
  configurable: !0
3969
3781
  }), Object.defineProperty(t.prototype, "propsSize", {
3970
3782
  get: function() {
3971
- return this.props.size || this.props.defaultSize || Qi;
3783
+ return this.props.size || this.props.defaultSize || Ui;
3972
3784
  },
3973
3785
  enumerable: !1,
3974
3786
  configurable: !0
@@ -3995,8 +3807,8 @@ var Ui = Xi(), k = function() {
3995
3807
  var o = r.getParentSize(), f = Number(r.state[c].toString().replace("px", "")), l = f / o[c] * 100;
3996
3808
  return "".concat(l, "%");
3997
3809
  }
3998
- return Ae(r.state[c]);
3999
- }, a = n && typeof n.width < "u" && !this.state.isResizing ? Ae(n.width) : i("width"), u = n && typeof n.height < "u" && !this.state.isResizing ? Ae(n.height) : i("height");
3810
+ return ze(r.state[c]);
3811
+ }, a = n && typeof n.width < "u" && !this.state.isResizing ? ze(n.width) : i("width"), u = n && typeof n.height < "u" && !this.state.isResizing ? ze(n.height) : i("height");
4000
3812
  return { width: a, height: u };
4001
3813
  },
4002
3814
  enumerable: !1,
@@ -4036,22 +3848,22 @@ var Ui = Xi(), k = function() {
4036
3848
  var i = this.propsSize && this.propsSize[n];
4037
3849
  return this.state[n] === "auto" && this.state.original[n] === r && (typeof i > "u" || i === "auto") ? "auto" : r;
4038
3850
  }, t.prototype.calculateNewMaxFromBoundary = function(r, n) {
4039
- var i = this.props.boundsByDirection, a = this.state.direction, u = i && J("left", a), c = i && J("top", a), s, o;
3851
+ var i = this.props.boundsByDirection, a = this.state.direction, u = i && ee("left", a), c = i && ee("top", a), s, o;
4040
3852
  if (this.props.bounds === "parent") {
4041
3853
  var f = this.parentNode;
4042
3854
  f && (s = u ? this.resizableRight - this.parentLeft : f.offsetWidth + (this.parentLeft - this.resizableLeft), o = c ? this.resizableBottom - this.parentTop : f.offsetHeight + (this.parentTop - this.resizableTop));
4043
3855
  } else this.props.bounds === "window" ? this.window && (s = u ? this.resizableRight : this.window.innerWidth - this.resizableLeft, o = c ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (s = u ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), o = c ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
4044
3856
  return s && Number.isFinite(s) && (r = r && r < s ? r : s), o && Number.isFinite(o) && (n = n && n < o ? n : o), { maxWidth: r, maxHeight: n };
4045
3857
  }, t.prototype.calculateNewSizeFromDirection = function(r, n) {
4046
- var i = this.props.scale || 1, a = ea(this.props.resizeRatio || 1), u = a[0], c = a[1], s = this.state, o = s.direction, f = s.original, l = this.props, d = l.lockAspectRatio, h = l.lockAspectRatioExtraHeight, g = l.lockAspectRatioExtraWidth, p = f.width, m = f.height, b = h || 0, O = g || 0;
4047
- return J("right", o) && (p = f.width + (r - f.x) * u / i, d && (m = (p - O) / this.ratio + b)), J("left", o) && (p = f.width - (r - f.x) * u / i, d && (m = (p - O) / this.ratio + b)), J("bottom", o) && (m = f.height + (n - f.y) * c / i, d && (p = (m - b) * this.ratio + O)), J("top", o) && (m = f.height - (n - f.y) * c / i, d && (p = (m - b) * this.ratio + O)), { newWidth: p, newHeight: m };
3858
+ var i = this.props.scale || 1, a = Vi(this.props.resizeRatio || 1), u = a[0], c = a[1], s = this.state, o = s.direction, f = s.original, l = this.props, d = l.lockAspectRatio, h = l.lockAspectRatioExtraHeight, g = l.lockAspectRatioExtraWidth, p = f.width, m = f.height, b = h || 0, O = g || 0;
3859
+ return ee("right", o) && (p = f.width + (r - f.x) * u / i, d && (m = (p - O) / this.ratio + b)), ee("left", o) && (p = f.width - (r - f.x) * u / i, d && (m = (p - O) / this.ratio + b)), ee("bottom", o) && (m = f.height + (n - f.y) * c / i, d && (p = (m - b) * this.ratio + O)), ee("top", o) && (m = f.height - (n - f.y) * c / i, d && (p = (m - b) * this.ratio + O)), { newWidth: p, newHeight: m };
4048
3860
  }, t.prototype.calculateNewSizeFromAspectRatio = function(r, n, i, a) {
4049
3861
  var u = this.props, c = u.lockAspectRatio, s = u.lockAspectRatioExtraHeight, o = u.lockAspectRatioExtraWidth, f = typeof a.width > "u" ? 10 : a.width, l = typeof i.width > "u" || i.width < 0 ? r : i.width, d = typeof a.height > "u" ? 10 : a.height, h = typeof i.height > "u" || i.height < 0 ? n : i.height, g = s || 0, p = o || 0;
4050
3862
  if (c) {
4051
3863
  var m = (d - g) * this.ratio + p, b = (h - g) * this.ratio + p, O = (f - p) / this.ratio + g, x = (l - p) / this.ratio + g, w = Math.max(f, m), M = Math.min(l, b), S = Math.max(d, O), z = Math.min(h, x);
4052
- r = be(r, w, M), n = be(n, S, z);
3864
+ r = we(r, w, M), n = we(n, S, z);
4053
3865
  } else
4054
- r = be(r, f, l), n = be(n, d, h);
3866
+ r = we(r, f, l), n = we(n, d, h);
4055
3867
  return { newWidth: r, newHeight: n };
4056
3868
  }, t.prototype.setBoundingClientRect = function() {
4057
3869
  var r = 1 / (this.props.scale || 1);
@@ -4073,7 +3885,7 @@ var Ui = Xi(), k = function() {
4073
3885
  }, t.prototype.onResizeStart = function(r, n) {
4074
3886
  if (!(!this.resizable || !this.window)) {
4075
3887
  var i = 0, a = 0;
4076
- if (r.nativeEvent && Ji(r.nativeEvent) ? (i = r.nativeEvent.clientX, a = r.nativeEvent.clientY) : r.nativeEvent && we(r.nativeEvent) && (i = r.nativeEvent.touches[0].clientX, a = r.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
3888
+ if (r.nativeEvent && Gi(r.nativeEvent) ? (i = r.nativeEvent.clientX, a = r.nativeEvent.clientY) : r.nativeEvent && xe(r.nativeEvent) && (i = r.nativeEvent.touches[0].clientX, a = r.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
4077
3889
  var u = this.props.onResizeStart(r, n, this.resizable);
4078
3890
  if (u === !1)
4079
3891
  return;
@@ -4096,7 +3908,7 @@ var Ui = Xi(), k = function() {
4096
3908
  height: this.size.height
4097
3909
  },
4098
3910
  isResizing: !0,
4099
- backgroundStyle: H(H({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(r.target).cursor || "auto" }),
3911
+ backgroundStyle: I(I({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(r.target).cursor || "auto" }),
4100
3912
  direction: n,
4101
3913
  flexBasis: c
4102
3914
  };
@@ -4105,18 +3917,18 @@ var Ui = Xi(), k = function() {
4105
3917
  }, t.prototype.onMouseMove = function(r) {
4106
3918
  var n = this;
4107
3919
  if (!(!this.state.isResizing || !this.resizable || !this.window)) {
4108
- if (this.window.TouchEvent && we(r))
3920
+ if (this.window.TouchEvent && xe(r))
4109
3921
  try {
4110
3922
  r.preventDefault(), r.stopPropagation();
4111
3923
  } catch {
4112
3924
  }
4113
- var i = this.props, a = i.maxWidth, u = i.maxHeight, c = i.minWidth, s = i.minHeight, o = we(r) ? r.touches[0].clientX : r.clientX, f = we(r) ? r.touches[0].clientY : r.clientY, l = this.state, d = l.direction, h = l.original, g = l.width, p = l.height, m = this.getParentSize(), b = Zi(m, this.window.innerWidth, this.window.innerHeight, a, u, c, s);
3925
+ var i = this.props, a = i.maxWidth, u = i.maxHeight, c = i.minWidth, s = i.minHeight, o = xe(r) ? r.touches[0].clientX : r.clientX, f = xe(r) ? r.touches[0].clientY : r.clientY, l = this.state, d = l.direction, h = l.original, g = l.width, p = l.height, m = this.getParentSize(), b = Ki(m, this.window.innerWidth, this.window.innerHeight, a, u, c, s);
4114
3926
  a = b.maxWidth, u = b.maxHeight, c = b.minWidth, s = b.minHeight;
4115
3927
  var O = this.calculateNewSizeFromDirection(o, f), x = O.newHeight, w = O.newWidth, M = this.calculateNewMaxFromBoundary(a, u);
4116
- this.props.snap && this.props.snap.x && (w = Tt(w, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (x = Tt(x, this.props.snap.y, this.props.snapGap));
3928
+ this.props.snap && this.props.snap.x && (w = Mt(w, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (x = Mt(x, this.props.snap.y, this.props.snapGap));
4117
3929
  var S = this.calculateNewSizeFromAspectRatio(w, x, { width: M.maxWidth, height: M.maxHeight }, { width: c, height: s });
4118
3930
  if (w = S.newWidth, x = S.newHeight, this.props.grid) {
4119
- var z = Dt(w, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), E = Dt(x, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), y = this.props.snapGap || 0, D = y === 0 || Math.abs(z - w) <= y ? z : w, P = y === 0 || Math.abs(E - x) <= y ? E : x;
3931
+ var z = Tt(w, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), E = Tt(x, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), v = this.props.snapGap || 0, D = v === 0 || Math.abs(z - w) <= v ? z : w, P = v === 0 || Math.abs(E - x) <= v ? E : x;
4120
3932
  w = D, x = P;
4121
3933
  }
4122
3934
  var R = {
@@ -4128,11 +3940,11 @@ var Ui = Xi(), k = function() {
4128
3940
  var L = w / m.width * 100;
4129
3941
  w = "".concat(L, "%");
4130
3942
  } else if (g.endsWith("vw")) {
4131
- var $ = w / this.window.innerWidth * 100;
4132
- w = "".concat($, "vw");
3943
+ var X = w / this.window.innerWidth * 100;
3944
+ w = "".concat(X, "vw");
4133
3945
  } else if (g.endsWith("vh")) {
4134
- var V = w / this.window.innerHeight * 100;
4135
- w = "".concat(V, "vh");
3946
+ var J = w / this.window.innerHeight * 100;
3947
+ w = "".concat(J, "vh");
4136
3948
  }
4137
3949
  }
4138
3950
  if (p && typeof p == "string") {
@@ -4140,11 +3952,11 @@ var Ui = Xi(), k = function() {
4140
3952
  var L = x / m.height * 100;
4141
3953
  x = "".concat(L, "%");
4142
3954
  } else if (p.endsWith("vw")) {
4143
- var $ = x / this.window.innerWidth * 100;
4144
- x = "".concat($, "vw");
3955
+ var X = x / this.window.innerWidth * 100;
3956
+ x = "".concat(X, "vw");
4145
3957
  } else if (p.endsWith("vh")) {
4146
- var V = x / this.window.innerHeight * 100;
4147
- x = "".concat(V, "vh");
3958
+ var J = x / this.window.innerHeight * 100;
3959
+ x = "".concat(J, "vh");
4148
3960
  }
4149
3961
  }
4150
3962
  var A = {
@@ -4152,16 +3964,16 @@ var Ui = Xi(), k = function() {
4152
3964
  height: this.createSizeForCssProperty(x, "height")
4153
3965
  };
4154
3966
  this.flexDir === "row" ? A.flexBasis = A.width : this.flexDir === "column" && (A.flexBasis = A.height);
4155
- var q = this.state.width !== A.width, Gt = this.state.height !== A.height, Kt = this.state.flexBasis !== A.flexBasis, Ge = q || Gt || Kt;
4156
- Ge && Ui.flushSync(function() {
3967
+ var U = this.state.width !== A.width, Kt = this.state.height !== A.height, Vt = this.state.flexBasis !== A.flexBasis, Ke = U || Kt || Vt;
3968
+ Ke && Fi.flushSync(function() {
4157
3969
  n.setState(A);
4158
- }), this.props.onResize && Ge && this.props.onResize(r, d, this.resizable, R);
3970
+ }), this.props.onResize && Ke && this.props.onResize(r, d, this.resizable, R);
4159
3971
  }
4160
3972
  }, t.prototype.onMouseUp = function(r) {
4161
3973
  var n, i, a = this.state, u = a.isResizing, c = a.direction;
4162
3974
  a.original, !(!u || !this.resizable) && (this.props.onResizeStop && this.props.onResizeStop(r, c, this.resizable, this.delta), this.props.size && this.setState({ width: (n = this.props.size.width) !== null && n !== void 0 ? n : "auto", height: (i = this.props.size.height) !== null && i !== void 0 ? i : "auto" }), this.unbindEvents(), this.setState({
4163
3975
  isResizing: !1,
4164
- backgroundStyle: H(H({}, this.state.backgroundStyle), { cursor: "auto" })
3976
+ backgroundStyle: I(I({}, this.state.backgroundStyle), { cursor: "auto" })
4165
3977
  }));
4166
3978
  }, t.prototype.updateSize = function(r) {
4167
3979
  var n, i;
@@ -4171,22 +3983,22 @@ var Ui = Xi(), k = function() {
4171
3983
  if (!i)
4172
3984
  return null;
4173
3985
  var f = Object.keys(i).map(function(l) {
4174
- return i[l] !== !1 ? v(Ki, { direction: l, onResizeStart: r.onResizeStart, replaceStyles: a && a[l], className: u && u[l], children: o && o[l] ? o[l] : null }, l) : null;
3986
+ return i[l] !== !1 ? y(qi, { direction: l, onResizeStart: r.onResizeStart, replaceStyles: a && a[l], className: u && u[l], children: o && o[l] ? o[l] : null }, l) : null;
4175
3987
  });
4176
- return v("div", { className: s, style: c, children: f });
3988
+ return y("div", { className: s, style: c, children: f });
4177
3989
  }, t.prototype.render = function() {
4178
3990
  var r = this, n = Object.keys(this.props).reduce(function(u, c) {
4179
- return ta.indexOf(c) !== -1 || (u[c] = r.props[c]), u;
4180
- }, {}), i = H(H(H({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
3991
+ return Qi.indexOf(c) !== -1 || (u[c] = r.props[c]), u;
3992
+ }, {}), i = I(I(I({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
4181
3993
  this.state.flexBasis && (i.flexBasis = this.state.flexBasis);
4182
3994
  var a = this.props.as || "div";
4183
- return K(a, H({ style: i, className: this.props.className }, n, {
3995
+ return Q(a, I({ style: i, className: this.props.className }, n, {
4184
3996
  // `ref` is after `extendsProps` to ensure this one wins over a version
4185
3997
  // passed in
4186
3998
  ref: function(u) {
4187
3999
  u && (r.resizable = u);
4188
4000
  },
4189
- children: [this.state.isResizing && v("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()]
4001
+ children: [this.state.isResizing && y("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()]
4190
4002
  }));
4191
4003
  }, t.defaultProps = {
4192
4004
  as: "div",
@@ -4216,9 +4028,9 @@ var Ui = Xi(), k = function() {
4216
4028
  resizeRatio: 1,
4217
4029
  snapGap: 0
4218
4030
  }, t;
4219
- }(er)
4031
+ }(tr)
4220
4032
  );
4221
- function na({
4033
+ function Zi({
4222
4034
  item: e,
4223
4035
  rectangle: t,
4224
4036
  boundingRectangle: r,
@@ -4229,14 +4041,14 @@ function na({
4229
4041
  onUpdate: c,
4230
4042
  onResizeStart: s
4231
4043
  }) {
4232
- const o = ce(null), f = ce(null), [l, d] = G(t);
4233
- return ee(() => {
4044
+ const o = le(null), f = le(null), [l, d] = V(t);
4045
+ return re(() => {
4234
4046
  d(t);
4235
- }, [t]), ee(() => (He(o.current), He(f.current), Ri({
4047
+ }, [t]), re(() => (Ie(o.current), Ie(f.current), Ti({
4236
4048
  element: o.current,
4237
4049
  dragHandle: f.current,
4238
4050
  onDragStart: ({ source: h, location: g }) => {
4239
- const p = Z(h, g);
4051
+ const p = te(h, g);
4240
4052
  a(p.absolute, p.relative);
4241
4053
  },
4242
4054
  onDrag: () => {
@@ -4246,12 +4058,12 @@ function na({
4246
4058
  u();
4247
4059
  },
4248
4060
  getInitialData: () => ({ ...e })
4249
- })), [e, i, a, u]), /* @__PURE__ */ v(
4061
+ })), [e, i, a, u]), /* @__PURE__ */ y(
4250
4062
  "div",
4251
4063
  {
4252
- id: `timeline-item-${e.id}`,
4253
- className: "timeline-item",
4254
- "data-timeline-item-id": e.id,
4064
+ id: `timelane-item-${e.id}`,
4065
+ className: "timelane-item",
4066
+ "data-timelane-item-id": e.id,
4255
4067
  ref: o,
4256
4068
  style: {
4257
4069
  width: `${l.width}px`,
@@ -4269,8 +4081,8 @@ function na({
4269
4081
  onClick: (h) => {
4270
4082
  h.stopPropagation();
4271
4083
  },
4272
- children: /* @__PURE__ */ v(
4273
- ra,
4084
+ children: /* @__PURE__ */ y(
4085
+ Ji,
4274
4086
  {
4275
4087
  enable: {
4276
4088
  right: !0,
@@ -4279,8 +4091,8 @@ function na({
4279
4091
  bottom: !0
4280
4092
  },
4281
4093
  handleClasses: {
4282
- left: "timeline-item-resize-handle timeline-item-resize-handle-left",
4283
- right: "timeline-item-resize-handle timeline-item-resize-handle-right"
4094
+ left: "timelane-item-resize-handle timelane-item-resize-handle-left",
4095
+ right: "timelane-item-resize-handle timelane-item-resize-handle-right"
4284
4096
  },
4285
4097
  size: {
4286
4098
  width: l.width,
@@ -4331,13 +4143,13 @@ function na({
4331
4143
  }), c(b);
4332
4144
  },
4333
4145
  style: { overflow: "hidden" },
4334
- children: /* @__PURE__ */ v("div", { className: "timeline-item-drag-handle", ref: f, children: n })
4146
+ children: /* @__PURE__ */ y("div", { className: "timelane-item-drag-handle", ref: f, children: n })
4335
4147
  }
4336
4148
  )
4337
4149
  }
4338
4150
  );
4339
4151
  }
4340
- function ia({
4152
+ function ea({
4341
4153
  swimlane: e,
4342
4154
  item: t,
4343
4155
  settings: r,
@@ -4353,8 +4165,8 @@ function ia({
4353
4165
  r,
4354
4166
  r
4355
4167
  );
4356
- return /* @__PURE__ */ v(
4357
- na,
4168
+ return /* @__PURE__ */ y(
4169
+ Zi,
4358
4170
  {
4359
4171
  item: t,
4360
4172
  rectangle: o,
@@ -4363,7 +4175,7 @@ function ia({
4363
4175
  onDragStart: i,
4364
4176
  onDrop: u,
4365
4177
  onUpdate: (l) => {
4366
- const d = Ht(
4178
+ const d = It(
4367
4179
  t,
4368
4180
  e,
4369
4181
  l,
@@ -4377,8 +4189,8 @@ function ia({
4377
4189
  }
4378
4190
  );
4379
4191
  }
4380
- function aa({ overlap: e }) {
4381
- return /* @__PURE__ */ v(
4192
+ function ta({ overlap: e }) {
4193
+ return /* @__PURE__ */ y(
4382
4194
  "div",
4383
4195
  {
4384
4196
  style: {
@@ -4394,10 +4206,10 @@ function aa({ overlap: e }) {
4394
4206
  }
4395
4207
  );
4396
4208
  }
4397
- function Et(e) {
4209
+ function Pt(e) {
4398
4210
  return "id" in e && "swimlaneId" in e && "start" in e && "end" in e && "size" in e && "offset" in e;
4399
4211
  }
4400
- function oa({
4212
+ function ra({
4401
4213
  swimlane: e,
4402
4214
  items: t,
4403
4215
  focused: r = !1,
@@ -4411,41 +4223,41 @@ function oa({
4411
4223
  },
4412
4224
  onContextMenu: c = () => {
4413
4225
  },
4414
- renderItem: s = sa,
4226
+ renderItem: s = na,
4415
4227
  onResizeStart: o = () => {
4416
4228
  }
4417
4229
  }) {
4418
- const { settings: f } = ge(), l = {
4230
+ const { settings: f } = pe(), l = {
4419
4231
  x: f.pixelsPerDay,
4420
4232
  offsetX: f.pixelsPerDay / 2
4421
4233
  }, d = Ye(
4422
4234
  e,
4423
4235
  f,
4424
4236
  f
4425
- ), [h, g] = G(null), [p, m] = G(
4237
+ ), [h, g] = V(null), [p, m] = V(
4426
4238
  null
4427
4239
  );
4428
- function b(y) {
4429
- const D = y.currentTarget.getBoundingClientRect();
4430
- return ze(
4431
- le(
4240
+ function b(v) {
4241
+ const D = v.currentTarget.getBoundingClientRect();
4242
+ return _e(
4243
+ de(
4432
4244
  f.start,
4433
- (y.clientX - D.left) / f.pixelsPerDay
4245
+ (v.clientX - D.left) / f.pixelsPerDay
4434
4246
  ),
4435
4247
  12
4436
4248
  );
4437
4249
  }
4438
- function O(y) {
4439
- const D = y.currentTarget.getBoundingClientRect();
4440
- return (y.pageY - D.top) / D.height * e.capacity;
4250
+ function O(v) {
4251
+ const D = v.currentTarget.getBoundingClientRect();
4252
+ return (v.pageY - D.top) / D.height * e.capacity;
4441
4253
  }
4442
- function x(y, D, P) {
4443
- if (!Et(P)) return;
4444
- const R = zi(
4254
+ function x(v, D, P) {
4255
+ if (!Pt(P)) return;
4256
+ const R = Ri(
4445
4257
  e,
4446
4258
  t,
4447
4259
  P,
4448
- y,
4260
+ v,
4449
4261
  D,
4450
4262
  f,
4451
4263
  l,
@@ -4454,9 +4266,9 @@ function oa({
4454
4266
  );
4455
4267
  m(R);
4456
4268
  }
4457
- function w(y, D, P) {
4458
- if (!Et(P) || p === null) return;
4459
- const R = Ht(
4269
+ function w(v, D, P) {
4270
+ if (!Pt(P) || p === null) return;
4271
+ const R = It(
4460
4272
  P,
4461
4273
  e,
4462
4274
  p,
@@ -4468,50 +4280,50 @@ function oa({
4468
4280
  function M() {
4469
4281
  m(null);
4470
4282
  }
4471
- function S(y, D) {
4472
- const P = b(y), R = O(y), L = Yi(
4283
+ function S(v, D) {
4284
+ const P = b(v), R = O(v), L = Li(
4473
4285
  P,
4474
4286
  R,
4475
4287
  e,
4476
4288
  t,
4477
4289
  f
4478
4290
  );
4479
- D == "single" ? a(P, L, y) : u(P, L, y);
4291
+ D == "single" ? a(P, L, v) : u(P, L, v);
4480
4292
  }
4481
- const z = t.map((y) => ({
4482
- id: y.id,
4483
- ...Fe(y, e, f, f)
4293
+ const z = t.map((v) => ({
4294
+ id: v.id,
4295
+ ...Fe(v, e, f, f)
4484
4296
  })), E = z.flatMap(
4485
- (y) => z.map((D) => y.id < D.id ? Hi(y, D) : null)
4486
- ).filter((y) => y !== null);
4487
- return /* @__PURE__ */ v(
4297
+ (v) => z.map((D) => v.id < D.id ? _i(v, D) : null)
4298
+ ).filter((v) => v !== null);
4299
+ return /* @__PURE__ */ y(
4488
4300
  "div",
4489
4301
  {
4490
- id: `timeline-swimlane-${e.id}`,
4491
- className: `timeline-swimlane ${r ? "timeline-swimlane-focused" : ""}`,
4492
- "data-timeline-swimlane-id": e.id,
4302
+ id: `timelane-swimlane-${e.id}`,
4303
+ className: `timelane-swimlane ${r ? "timelane-swimlane-focused" : ""}`,
4304
+ "data-timelane-swimlane-id": e.id,
4493
4305
  style: d,
4494
4306
  onMouseUp: i,
4495
- onClick: (y) => S(y, "single"),
4496
- onDoubleClick: (y) => S(y, "double"),
4497
- onContextMenu: (y) => {
4498
- c(b(y), y);
4307
+ onClick: (v) => S(v, "single"),
4308
+ onDoubleClick: (v) => S(v, "double"),
4309
+ onContextMenu: (v) => {
4310
+ c(b(v), v);
4499
4311
  },
4500
- children: /* @__PURE__ */ K(
4501
- Ni,
4312
+ children: /* @__PURE__ */ Q(
4313
+ Ei,
4502
4314
  {
4503
4315
  onDrag: x,
4504
4316
  onDragLeave: M,
4505
4317
  onDrop: w,
4506
4318
  children: [
4507
- t.map((y, D) => /* @__PURE__ */ v(
4508
- ia,
4319
+ t.map((v, D) => /* @__PURE__ */ y(
4320
+ ea,
4509
4321
  {
4510
- item: y,
4322
+ item: v,
4511
4323
  settings: f,
4512
4324
  swimlane: e,
4513
4325
  onDragStart: () => {
4514
- g(y);
4326
+ g(v);
4515
4327
  },
4516
4328
  onDrag: () => {
4517
4329
  },
@@ -4520,72 +4332,45 @@ function oa({
4520
4332
  },
4521
4333
  onUpdate: n,
4522
4334
  onResizeStart: () => {
4523
- o(y.payload);
4335
+ o(v.payload);
4524
4336
  },
4525
4337
  children: s(
4526
- y,
4527
- h !== null && h.id === y.id
4338
+ v,
4339
+ h !== null && h.id === v.id
4528
4340
  )
4529
4341
  },
4530
4342
  D
4531
4343
  )),
4532
- p && /* @__PURE__ */ v(Ai, { ...p }),
4533
- E.map((y, D) => /* @__PURE__ */ v(aa, { overlap: y }, D))
4344
+ p && /* @__PURE__ */ y(Pi, { ...p }),
4345
+ E.map((v, D) => /* @__PURE__ */ y(ta, { overlap: v }, D))
4534
4346
  ]
4535
4347
  }
4536
4348
  )
4537
4349
  }
4538
4350
  );
4539
4351
  }
4540
- function sa(e, t) {
4541
- return /* @__PURE__ */ K("div", { children: [
4352
+ function na(e, t) {
4353
+ return /* @__PURE__ */ Q("div", { children: [
4542
4354
  e.id,
4543
4355
  " (",
4544
- I(e.start, "yyyy-mm-dd"),
4356
+ j(e.start, "yyyy-mm-dd"),
4545
4357
  " -",
4546
4358
  " ",
4547
- I(e.end, "yyyy-mm-dd"),
4359
+ j(e.end, "yyyy-mm-dd"),
4548
4360
  ")",
4549
4361
  t ? "dragging" : ""
4550
4362
  ] });
4551
4363
  }
4552
- function ma({
4553
- lanes: e,
4554
- items: t,
4555
- renderItem: r,
4556
- onItemUpdate: n = () => {
4557
- },
4558
- onLaneClick: i = () => {
4559
- },
4560
- onLaneDoubleClick: a = () => {
4561
- },
4562
- onLaneContextMenu: u = () => {
4563
- }
4564
- }) {
4565
- return /* @__PURE__ */ v("div", { className: "timeline-body", children: e.map((c) => /* @__PURE__ */ v(
4566
- oa,
4567
- {
4568
- swimlane: c,
4569
- items: t.filter((s) => s.swimlaneId === c.id),
4570
- renderItem: r,
4571
- onItemUpdate: n,
4572
- onClick: (s, o, f) => i(c, s, o, f),
4573
- onDoubleClick: (s, o, f) => a(c, s, o, f),
4574
- onContextMenu: (s, o) => u(c, s, o)
4575
- },
4576
- c.id
4577
- )) });
4578
- }
4579
- function ya({
4364
+ function ia({
4580
4365
  children: e,
4581
4366
  onSelect: t
4582
4367
  }) {
4583
- const [r, n] = G([]), i = ce(null), [a, u] = G(null), [c, s] = G(null);
4584
- ee(() => Pi({
4368
+ const [r, n] = V([]), i = le(null), [a, u] = V(null), [c, s] = V(null);
4369
+ re(() => Di({
4585
4370
  onDragStart: (d) => {
4586
4371
  n([d.source.data.id]);
4587
4372
  }
4588
- }), []), ee(() => {
4373
+ }), []), re(() => {
4589
4374
  t(r);
4590
4375
  }, [t, r]);
4591
4376
  function o(d) {
@@ -4603,11 +4388,11 @@ function ya({
4603
4388
  ...h,
4604
4389
  x: h.x - g.left,
4605
4390
  y: h.y - g.top
4606
- }), document.querySelectorAll(".timeline-drop-target").forEach((p) => {
4607
- se(p.getBoundingClientRect(), h) && p.querySelectorAll(".timeline-item").forEach((m) => {
4608
- se(m.getBoundingClientRect(), h) ? m.classList.add("timeline-item-marked") : m.classList.remove("timeline-item-marked");
4391
+ }), document.querySelectorAll(".timelane-drop-target").forEach((p) => {
4392
+ ue(p.getBoundingClientRect(), h) && p.querySelectorAll(".timelane-item").forEach((m) => {
4393
+ ue(m.getBoundingClientRect(), h) ? m.classList.add("timelane-item-marked") : m.classList.remove("timelane-item-marked");
4609
4394
  });
4610
- }), (h.width > 5 || h.height > 5) && !i.current && (i.current = Pt, window.addEventListener("click", Pt, !0));
4395
+ }), (h.width > 5 || h.height > 5) && !i.current && (i.current = Rt, window.addEventListener("click", Rt, !0));
4611
4396
  }
4612
4397
  }
4613
4398
  function l(d) {
@@ -4619,17 +4404,17 @@ function ya({
4619
4404
  width: Math.abs(d.clientX - a.x),
4620
4405
  height: Math.abs(d.clientY - a.y)
4621
4406
  }, g = Array.from(
4622
- document.querySelectorAll(".timeline-drop-target")
4623
- ).filter((p) => se(p.getBoundingClientRect(), h)).map((p) => Array.from(p.querySelectorAll(".timeline-item"))).flatMap((p) => p).filter((p) => se(p.getBoundingClientRect(), h)).map((p) => p instanceof HTMLElement ? Number.parseInt(p.dataset.timelineItemId || "-1") : -1).filter((p) => p > 0);
4624
- g.length > 0 && (d.shiftKey || d.ctrlKey ? n((p) => Array.from(/* @__PURE__ */ new Set([...p, ...g]))) : n(g)), document.querySelectorAll(".timeline-item-marked").forEach((p) => {
4625
- p.classList.remove("timeline-item-marked");
4407
+ document.querySelectorAll(".timelane-drop-target")
4408
+ ).filter((p) => ue(p.getBoundingClientRect(), h)).map((p) => Array.from(p.querySelectorAll(".timelane-item"))).flatMap((p) => p).filter((p) => ue(p.getBoundingClientRect(), h)).map((p) => p instanceof HTMLElement ? Number.parseInt(p.dataset.timelaneItemId || "-1") : -1).filter((p) => p > 0);
4409
+ g.length > 0 && (d.shiftKey || d.ctrlKey ? n((p) => Array.from(/* @__PURE__ */ new Set([...p, ...g]))) : n(g)), document.querySelectorAll(".timelane-item-marked").forEach((p) => {
4410
+ p.classList.remove("timelane-item-marked");
4626
4411
  });
4627
4412
  }
4628
4413
  u(null), s(null), requestAnimationFrame(() => {
4629
4414
  i.current && i.current !== null && (window.removeEventListener("click", i.current, !0), i.current = null);
4630
4415
  });
4631
4416
  }
4632
- return /* @__PURE__ */ K(
4417
+ return /* @__PURE__ */ Q(
4633
4418
  "div",
4634
4419
  {
4635
4420
  onMouseDown: o,
@@ -4639,17 +4424,17 @@ function ya({
4639
4424
  position: "relative"
4640
4425
  },
4641
4426
  children: [
4642
- c && /* @__PURE__ */ v(ua, { rect: c }),
4427
+ c && /* @__PURE__ */ y(aa, { rect: c }),
4643
4428
  e
4644
4429
  ]
4645
4430
  }
4646
4431
  );
4647
4432
  }
4648
- const Pt = (e) => {
4433
+ const Rt = (e) => {
4649
4434
  e.preventDefault(), e.stopPropagation();
4650
4435
  };
4651
- function ua({ rect: e }) {
4652
- return /* @__PURE__ */ v(
4436
+ function aa({ rect: e }) {
4437
+ return /* @__PURE__ */ y(
4653
4438
  "div",
4654
4439
  {
4655
4440
  id: "mouse-selection-indicator",
@@ -4665,18 +4450,190 @@ function ua({ rect: e }) {
4665
4450
  }
4666
4451
  );
4667
4452
  }
4668
- const va = () => {
4669
- const { settings: e } = ge();
4453
+ function oa({
4454
+ onSelect: e = () => {
4455
+ },
4456
+ children: t
4457
+ }) {
4458
+ return /* @__PURE__ */ y(H.Body, { children: /* @__PURE__ */ y(ia, { onSelect: e, children: /* @__PURE__ */ y("div", { className: "timelane-body", children: t }) }) });
4459
+ }
4460
+ function sa(e, t) {
4461
+ const r = q(t, e) + 1;
4462
+ return /* @__PURE__ */ y(Oe, { children: r > 4 ? j(e, "LLLL yyyy") : /* @__PURE__ */ y(Oe, {}) });
4463
+ }
4464
+ function ua(e, t) {
4465
+ const r = q(t, e) + 1, n = `KW ${j(e, "w")} (${j(
4466
+ e,
4467
+ "MM-dd"
4468
+ )} - ${j(t, "MM-dd")}`;
4469
+ return /* @__PURE__ */ y("div", { title: n, children: r > 2 ? /* @__PURE__ */ Q(Oe, { children: [
4470
+ "KW ",
4471
+ j(e, "w")
4472
+ ] }) : /* @__PURE__ */ y(Oe, {}) });
4473
+ }
4474
+ function ca(e) {
4475
+ const t = `${j(e, "yyyy-MM-dd")}`;
4476
+ return /* @__PURE__ */ y("div", { title: t, children: j(e, "d") });
4477
+ }
4478
+ function la({
4479
+ range: e,
4480
+ pixels: t,
4481
+ setFocusedDay: r = () => {
4482
+ },
4483
+ render: n = sa,
4484
+ onMonthClick: i = () => {
4485
+ }
4486
+ }) {
4487
+ return /* @__PURE__ */ y("div", { className: "timelane-header-months", children: Sr(e).map((a, u) => {
4488
+ a < e.start && (a = e.start);
4489
+ let c = Tn(a);
4490
+ c > e.end && (c = e.end);
4491
+ const s = q(c, a) + 1;
4492
+ return /* @__PURE__ */ y(
4493
+ "div",
4494
+ {
4495
+ className: "timelane-header-month-label",
4496
+ style: {
4497
+ width: `${t.pixelsPerDay * s}px`
4498
+ },
4499
+ onClick: (o) => {
4500
+ i({ firstDay: a, lastDay: c, e: o }), r(a);
4501
+ },
4502
+ children: n(a, c)
4503
+ },
4504
+ u
4505
+ );
4506
+ }) });
4507
+ }
4508
+ function da({
4509
+ range: e,
4510
+ pixels: t,
4511
+ setFocusedDay: r = () => {
4512
+ },
4513
+ render: n = ua,
4514
+ onWeekClick: i = () => {
4515
+ }
4516
+ }) {
4517
+ return /* @__PURE__ */ y("div", { className: "timelane-header-weeks", children: Or(e, { weekStartsOn: 1 }).map((a, u) => {
4518
+ a < e.start && (a = e.start);
4519
+ let c = zt(a) ? a : En(a);
4520
+ c > e.end && (c = e.end);
4521
+ const s = q(c, a) + 1;
4522
+ return /* @__PURE__ */ y(
4523
+ "div",
4524
+ {
4525
+ className: "timelane-header-week-label",
4526
+ style: {
4527
+ width: `${t.pixelsPerDay * s}px`
4528
+ },
4529
+ onClick: (o) => {
4530
+ i({ firstDay: a, lastDay: c, e: o }), r(a);
4531
+ },
4532
+ children: n(a, c)
4533
+ },
4534
+ u
4535
+ );
4536
+ }) });
4537
+ }
4538
+ function fa({
4539
+ range: e,
4540
+ pixels: t,
4541
+ focusedDay: r,
4542
+ setFocusedDay: n = () => {
4543
+ },
4544
+ render: i = ca,
4545
+ onDayClick: a = () => {
4546
+ }
4547
+ }) {
4548
+ return /* @__PURE__ */ y("div", { className: "timelane-header-days", children: Ct(e).map((u, c) => /* @__PURE__ */ y(
4549
+ "div",
4550
+ {
4551
+ className: `timelane-header-day-label ${r && br(r, u) ? "timelane-header-day-label-focused" : ""}`,
4552
+ style: { width: `${t.pixelsPerDay}px` },
4553
+ onClick: (s) => {
4554
+ a({ day: u, e: s }), n(u);
4555
+ },
4556
+ children: i(u)
4557
+ },
4558
+ c
4559
+ )) });
4560
+ }
4561
+ function ha({
4562
+ focusedDay: e,
4563
+ setFocusedDay: t = () => {
4564
+ },
4565
+ renderMonthHeader: r,
4566
+ renderWeekHeader: n,
4567
+ renderDayHeader: i,
4568
+ onMonthClick: a,
4569
+ onDayClick: u,
4570
+ onWeekClick: c
4571
+ }) {
4572
+ const { settings: s } = pe();
4573
+ return /* @__PURE__ */ y(H.Header, { children: /* @__PURE__ */ Q("div", { className: "timelane-header", children: [
4574
+ s.showMonths && /* @__PURE__ */ y(
4575
+ la,
4576
+ {
4577
+ range: s,
4578
+ pixels: s,
4579
+ setFocusedDay: t,
4580
+ render: r,
4581
+ onMonthClick: a
4582
+ }
4583
+ ),
4584
+ s.showWeeks && /* @__PURE__ */ y(
4585
+ da,
4586
+ {
4587
+ range: s,
4588
+ pixels: s,
4589
+ setFocusedDay: t,
4590
+ render: n,
4591
+ onWeekClick: c
4592
+ }
4593
+ ),
4594
+ s.showDays && /* @__PURE__ */ y(
4595
+ fa,
4596
+ {
4597
+ range: s,
4598
+ pixels: s,
4599
+ focusedDay: e,
4600
+ setFocusedDay: t,
4601
+ render: i,
4602
+ onDayClick: u
4603
+ }
4604
+ )
4605
+ ] }) });
4606
+ }
4607
+ function $({ children: e }) {
4608
+ return /* @__PURE__ */ y("div", { className: "timelane", children: /* @__PURE__ */ y(H, { children: e }) });
4609
+ }
4610
+ $.Container = $;
4611
+ $.Header = ha;
4612
+ $.Body = oa;
4613
+ $.Background = An;
4614
+ $.Aside = lr;
4615
+ $.Lane = ra;
4616
+ $.Layout = H;
4617
+ const ya = ({
4618
+ settings: e,
4619
+ children: t
4620
+ }) => {
4621
+ const [r, n] = V(e);
4622
+ return re(() => {
4623
+ n((i) => ({ ...i, _settings: e }));
4624
+ }, [e]), /* @__PURE__ */ y(Nt.Provider, { value: { settings: r, setSettings: n }, children: t });
4625
+ }, va = () => {
4626
+ const { settings: e } = pe();
4670
4627
  function t(a) {
4671
4628
  a instanceof Object ? (a.horz !== void 0 && r(a.horz), a.vert !== void 0 && n(a.vert)) : i(a);
4672
4629
  }
4673
4630
  function r(a) {
4674
4631
  window.requestAnimationFrame(() => {
4675
4632
  const u = document.getElementById(
4676
- "timeline-background-date-anchor"
4633
+ "timelane-background-date-anchor"
4677
4634
  );
4678
4635
  if (u) {
4679
- const c = Be(a, e.start, e);
4636
+ const c = $e(a, e.start, e);
4680
4637
  u.style.setProperty("left", `${c}px`), u.scrollIntoView({
4681
4638
  block: "nearest",
4682
4639
  inline: "center",
@@ -4688,7 +4645,7 @@ const va = () => {
4688
4645
  function n(a) {
4689
4646
  window.requestAnimationFrame(() => {
4690
4647
  const u = document.getElementById(
4691
- `timeline-swimlane-${a}`
4648
+ `timelane-swimlane-${a}`
4692
4649
  );
4693
4650
  u && u.scrollIntoView({ block: "center", behavior: "smooth" });
4694
4651
  });
@@ -4696,7 +4653,7 @@ const va = () => {
4696
4653
  function i(a) {
4697
4654
  window.requestAnimationFrame(() => {
4698
4655
  const u = document.getElementById(
4699
- `timeline-item-${a}`
4656
+ `timelane-item-${a}`
4700
4657
  );
4701
4658
  u && u.scrollIntoView({
4702
4659
  block: "center",
@@ -4708,37 +4665,37 @@ const va = () => {
4708
4665
  return { scrollTo: t, scrollToDate: r, scrollToItem: i, scrollToLane: n };
4709
4666
  };
4710
4667
  export {
4711
- oa as CoreSwimlane,
4712
- zn as DaysHeader,
4713
- _n as MonthsHeader,
4714
- fa as TimelineAside,
4715
- ha as TimelineBackground,
4716
- ma as TimelineBody,
4717
- ga as TimelineHeader,
4718
- re as TimelineLayout,
4719
- ya as TimelineSelectionLayer,
4720
- pa as TimelineWrapper,
4721
- Cn as WeeksHeader,
4722
- Be as dateToPixel,
4723
- se as doOverlap,
4724
- Yi as getAvailableSpace,
4725
- zi as getDropPreviewRectangle,
4668
+ ra as CoreSwimlane,
4669
+ fa as DaysHeader,
4670
+ la as MonthsHeader,
4671
+ $ as Timelane,
4672
+ lr as TimelaneAside,
4673
+ An as TimelaneBackground,
4674
+ oa as TimelaneBody,
4675
+ ha as TimelaneHeader,
4676
+ H as TimelaneLayout,
4677
+ ya as TimelaneSettingsProvider,
4678
+ da as WeeksHeader,
4679
+ $e as dateToPixel,
4680
+ ue as doOverlap,
4681
+ Li as getAvailableSpace,
4682
+ Ri as getDropPreviewRectangle,
4726
4683
  Ye as getDropTargetDimensions,
4727
- Mn as getDropTargetHeight,
4728
- En as getDropTargetWidth,
4729
- Z as getGrabPosition,
4730
- Lt as getItemDimensions,
4731
- Rn as getItemPosition,
4684
+ Pn as getDropTargetHeight,
4685
+ Rn as getDropTargetWidth,
4686
+ te as getGrabPosition,
4687
+ Ht as getItemDimensions,
4688
+ Nn as getItemPosition,
4732
4689
  Fe as getItemRectangle,
4733
- Hi as getOverlap,
4734
- Ht as getUpdatedItem,
4735
- Et as isCoreItem,
4736
- ji as isWithinTargetDimensions,
4737
- Ii as itemsDoOverlap,
4738
- Pn as offsetToPixel,
4739
- An as renderDayHeader,
4740
- kn as renderMonthHeader,
4741
- Nn as renderWeekHeader,
4690
+ _i as getOverlap,
4691
+ It as getUpdatedItem,
4692
+ Pt as isCoreItem,
4693
+ Wi as isWithinTargetDimensions,
4694
+ Ci as itemsDoOverlap,
4695
+ kn as offsetToPixel,
4696
+ ca as renderDayHeader,
4697
+ sa as renderMonthHeader,
4698
+ ua as renderWeekHeader,
4742
4699
  va as useScroll,
4743
- ge as useTimelineContext
4700
+ pe as useTimelaneContext
4744
4701
  };