react-timelane 1.0.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- import { jsx as m, jsxs as $, Fragment as Oe } from "react/jsx-runtime";
2
- import Nt, { useRef as re, useEffect as ne, memo as Jt, useCallback as Ve, useMemo as Zt, PureComponent as er, createContext as tr, useContext as rr, useState as V } from "react";
1
+ import { jsx as m, jsxs as X, Fragment as Oe } from "react/jsx-runtime";
2
+ import Nt, { useRef as re, useEffect as ne, memo as Jt, useCallback as Ve, useMemo as Zt, PureComponent as er, createContext as tr, useContext as rr, useState as Q } from "react";
3
3
  function nr(e) {
4
4
  if (Array.isArray(e)) return e;
5
5
  }
6
6
  function ir(e, t) {
7
7
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
8
8
  if (r != null) {
9
- var n, i, a, u, c = [], o = !0, s = !1;
9
+ var n, i, a, u, c = [], s = !0, o = !1;
10
10
  try {
11
- if (a = (r = r.call(e)).next, t !== 0) for (; !(o = (n = a.call(r)).done) && (c.push(n.value), c.length !== t); o = !0) ;
11
+ if (a = (r = r.call(e)).next, t !== 0) for (; !(s = (n = a.call(r)).done) && (c.push(n.value), c.length !== t); s = !0) ;
12
12
  } catch (f) {
13
- s = !0, i = f;
13
+ o = !0, i = f;
14
14
  } finally {
15
15
  try {
16
- if (!o && r.return != null && (u = r.return(), Object(u) !== u)) return;
16
+ if (!s && r.return != null && (u = r.return(), Object(u) !== u)) return;
17
17
  } finally {
18
- if (s) throw i;
18
+ if (o) throw i;
19
19
  }
20
20
  }
21
21
  return c;
@@ -52,20 +52,20 @@ function _t() {
52
52
  }
53
53
  return se.bind = e, se;
54
54
  }
55
- var G = {}, Je;
55
+ var K = {}, Je;
56
56
  function or() {
57
- if (Je) return G;
57
+ if (Je) return K;
58
58
  Je = 1;
59
- var e = G && G.__assign || function() {
59
+ var e = K && K.__assign || function() {
60
60
  return e = Object.assign || function(a) {
61
- for (var u, c = 1, o = arguments.length; c < o; c++) {
61
+ for (var u, c = 1, s = arguments.length; c < s; c++) {
62
62
  u = arguments[c];
63
- for (var s in u) Object.prototype.hasOwnProperty.call(u, s) && (a[s] = u[s]);
63
+ for (var o in u) Object.prototype.hasOwnProperty.call(u, o) && (a[o] = u[o]);
64
64
  }
65
65
  return a;
66
66
  }, e.apply(this, arguments);
67
67
  };
68
- Object.defineProperty(G, "__esModule", { value: !0 }), G.bindAll = void 0;
68
+ Object.defineProperty(K, "__esModule", { value: !0 }), K.bindAll = void 0;
69
69
  var t = /* @__PURE__ */ _t();
70
70
  function r(a) {
71
71
  if (!(typeof a > "u"))
@@ -80,17 +80,17 @@ function or() {
80
80
  return c;
81
81
  }
82
82
  function i(a, u, c) {
83
- var o = u.map(function(s) {
84
- var f = n(s, c);
83
+ var s = u.map(function(o) {
84
+ var f = n(o, c);
85
85
  return (0, t.bind)(a, f);
86
86
  });
87
87
  return function() {
88
- o.forEach(function(f) {
88
+ s.forEach(function(f) {
89
89
  return f();
90
90
  });
91
91
  };
92
92
  }
93
- return G.bindAll = i, G;
93
+ return K.bindAll = i, K;
94
94
  }
95
95
  var Ze;
96
96
  function sr() {
@@ -272,30 +272,30 @@ function mr(e) {
272
272
  r.remove();
273
273
  return;
274
274
  }
275
- function o() {
276
- s(), r.remove();
275
+ function s() {
276
+ o(), r.remove();
277
277
  }
278
- var s = ie.bindAll(window, [
278
+ var o = ie.bindAll(window, [
279
279
  {
280
280
  type: "pointerdown",
281
- listener: o
281
+ listener: s
282
282
  },
283
283
  {
284
284
  type: "pointermove",
285
- listener: o
285
+ listener: s
286
286
  },
287
287
  {
288
288
  type: "focusin",
289
- listener: o
289
+ listener: s
290
290
  },
291
291
  {
292
292
  type: "focusout",
293
- listener: o
293
+ listener: s
294
294
  },
295
295
  // a 'pointerdown' should happen before 'dragstart', but just being super safe
296
296
  {
297
297
  type: "dragstart",
298
- listener: o
298
+ listener: s
299
299
  },
300
300
  // if the user has dragged something out of the window
301
301
  // and then is dragging something back into the window
@@ -303,11 +303,11 @@ function mr(e) {
303
303
  // So if we see any of these we need to clear the post drag fix.
304
304
  {
305
305
  type: "dragenter",
306
- listener: o
306
+ listener: s
307
307
  },
308
308
  {
309
309
  type: "dragover",
310
- listener: o
310
+ listener: s
311
311
  }
312
312
  // Not adding a "wheel" event listener, as "wheel" by itself does not
313
313
  // resolve the bug.
@@ -340,20 +340,20 @@ function yr() {
340
340
  return function(a) {
341
341
  var u = a.eventName, c = a.payload;
342
342
  if (u === "onDragStart") {
343
- var o = c.location.initial.input, s = e ?? {
344
- x: o.clientX,
345
- y: o.clientY
343
+ var s = c.location.initial.input, o = e ?? {
344
+ x: s.clientX,
345
+ y: s.clientY
346
346
  };
347
347
  n = mr({
348
- initial: s
348
+ initial: o
349
349
  });
350
350
  }
351
351
  if (u === "onDrop") {
352
- var f, l = c.location.current.input;
352
+ var f, d = c.location.current.input;
353
353
  (f = n) === null || f === void 0 || f({
354
354
  current: {
355
- x: l.clientX,
356
- y: l.clientY
355
+ x: d.clientX,
356
+ y: d.clientY
357
357
  }
358
358
  }), n = null, e = null;
359
359
  }
@@ -522,8 +522,8 @@ function de(e) {
522
522
  }
523
523
  var Er = function(t) {
524
524
  var r = [], n = null, i = function() {
525
- for (var u = arguments.length, c = new Array(u), o = 0; o < u; o++)
526
- c[o] = arguments[o];
525
+ for (var u = arguments.length, c = new Array(u), s = 0; s < u; s++)
526
+ c[s] = arguments[s];
527
527
  r = c, !n && (n = requestAnimationFrame(function() {
528
528
  n = null, t.apply(void 0, r);
529
529
  }));
@@ -562,8 +562,8 @@ function Pr(e) {
562
562
  };
563
563
  }
564
564
  var u = {
565
- start: function(o) {
566
- var s = o.nativeSetDragImage, f = {
565
+ start: function(s) {
566
+ var o = s.nativeSetDragImage, f = {
567
567
  current: r,
568
568
  previous: i,
569
569
  initial: r
@@ -573,7 +573,7 @@ function Pr(e) {
573
573
  payload: {
574
574
  source: t,
575
575
  location: f,
576
- nativeSetDragImage: s
576
+ nativeSetDragImage: o
577
577
  }
578
578
  }), me.schedule(function() {
579
579
  a({
@@ -585,8 +585,8 @@ function Pr(e) {
585
585
  });
586
586
  });
587
587
  },
588
- dragUpdate: function(o) {
589
- var s = o.current;
588
+ dragUpdate: function(s) {
589
+ var o = s.current;
590
590
  me.flush(), Pe.cancel(), a({
591
591
  eventName: "onDropTargetChange",
592
592
  payload: {
@@ -594,19 +594,19 @@ function Pr(e) {
594
594
  location: {
595
595
  initial: r,
596
596
  previous: i,
597
- current: s
597
+ current: o
598
598
  }
599
599
  }
600
600
  });
601
601
  },
602
- drag: function(o) {
603
- var s = o.current;
602
+ drag: function(s) {
603
+ var o = s.current;
604
604
  Pe(function() {
605
605
  me.flush();
606
606
  var f = {
607
607
  initial: r,
608
608
  previous: i,
609
- current: s
609
+ current: o
610
610
  };
611
611
  a({
612
612
  eventName: "onDrag",
@@ -617,14 +617,14 @@ function Pr(e) {
617
617
  });
618
618
  });
619
619
  },
620
- drop: function(o) {
621
- var s = o.current, f = o.updatedSourcePayload;
620
+ drop: function(s) {
621
+ var o = s.current, f = s.updatedSourcePayload;
622
622
  me.flush(), Pe.cancel(), a({
623
623
  eventName: "onDrop",
624
624
  payload: {
625
625
  source: f ?? t,
626
626
  location: {
627
- current: s,
627
+ current: o,
628
628
  previous: i,
629
629
  initial: r
630
630
  }
@@ -674,7 +674,7 @@ function Nr(e) {
674
674
  dispatchEvent: i,
675
675
  initial: a
676
676
  });
677
- function o(h) {
677
+ function s(h) {
678
678
  var p = kr({
679
679
  current: u.current.dropTargets,
680
680
  next: h.dropTargets
@@ -683,7 +683,7 @@ function Nr(e) {
683
683
  current: u.current
684
684
  });
685
685
  }
686
- function s(h) {
686
+ function o(h) {
687
687
  var p = de(h), g = Ct(h.target) ? Lt({
688
688
  x: p.clientX,
689
689
  y: p.clientY
@@ -696,24 +696,24 @@ function Nr(e) {
696
696
  y.length && (h.preventDefault(), Re({
697
697
  event: h,
698
698
  current: y
699
- })), o({
699
+ })), s({
700
700
  dropTargets: y,
701
701
  input: p
702
702
  });
703
703
  }
704
704
  function f() {
705
- u.current.dropTargets.length && o({
705
+ u.current.dropTargets.length && s({
706
706
  dropTargets: [],
707
707
  input: u.current.input
708
708
  }), c.drop({
709
709
  current: u.current,
710
710
  updatedSourcePayload: null
711
- }), l();
711
+ }), d();
712
712
  }
713
- function l() {
714
- Ce.isActive = !1, d();
713
+ function d() {
714
+ Ce.isActive = !1, l();
715
715
  }
716
- var d = ie.bindAll(
716
+ var l = ie.bindAll(
717
717
  window,
718
718
  [{
719
719
  // 👋 Note: we are repurposing the `dragover` event as our `drag` event
@@ -724,19 +724,19 @@ function Nr(e) {
724
724
  // 🦊😤
725
725
  type: "dragover",
726
726
  listener: function(p) {
727
- s(p), c.drag({
727
+ o(p), c.drag({
728
728
  current: u.current
729
729
  });
730
730
  }
731
731
  }, {
732
732
  type: "dragenter",
733
- listener: s
733
+ listener: o
734
734
  }, {
735
735
  type: "dragleave",
736
736
  listener: function(p) {
737
737
  Tr({
738
738
  dragLeave: p
739
- }) && (o({
739
+ }) && (s({
740
740
  input: u.current.input,
741
741
  dropTargets: []
742
742
  }), r.startedFrom === "external" && f());
@@ -760,7 +760,7 @@ function Nr(e) {
760
760
  // When dropping something native, we need to extract the latest
761
761
  // `.items` from the "drop" event as it is now accessible
762
762
  updatedSourcePayload: r.type === "external" ? r.getDropPayload(p) : null
763
- }), l();
763
+ }), d();
764
764
  }
765
765
  }, {
766
766
  // "dragend" fires when on the drag source (eg a draggable element)
@@ -860,7 +860,7 @@ function ot(e, t) {
860
860
  }
861
861
  return r;
862
862
  }
863
- function Y(e) {
863
+ function $(e) {
864
864
  for (var t = 1; t < arguments.length; t++) {
865
865
  var r = arguments[t] != null ? arguments[t] : {};
866
866
  t % 2 ? ot(Object(r), !0).forEach(function(n) {
@@ -880,8 +880,8 @@ function ke(e, t) {
880
880
  };
881
881
  return { s: i, n: function() {
882
882
  return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
883
- }, e: function(s) {
884
- throw s;
883
+ }, e: function(o) {
884
+ throw o;
885
885
  }, f: i };
886
886
  }
887
887
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
@@ -891,10 +891,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
891
891
  return { s: function() {
892
892
  r = r.call(e);
893
893
  }, n: function() {
894
- var s = r.next();
895
- return u = s.done, s;
896
- }, e: function(s) {
897
- c = !0, a = s;
894
+ var o = r.next();
895
+ return u = o.done, o;
896
+ }, e: function(o) {
897
+ c = !0, a = o;
898
898
  }, f: function() {
899
899
  try {
900
900
  u || r.return == null || r.return();
@@ -942,56 +942,56 @@ function Cr(e) {
942
942
  }), u(h));
943
943
  return ae(g);
944
944
  }
945
- function o(h) {
945
+ function s(h) {
946
946
  var p, g, y, b, w = h.source, S = h.target, x = h.input, M = h.result, O = M === void 0 ? [] : M;
947
947
  if (S == null)
948
948
  return O;
949
949
  if (!(S instanceof Element))
950
- return S instanceof Node ? o({
950
+ return S instanceof Node ? s({
951
951
  source: w,
952
952
  target: S.parentElement,
953
953
  input: x,
954
954
  result: O
955
955
  }) : O;
956
- var z = S.closest(a);
957
- if (z == null)
956
+ var C = S.closest(a);
957
+ if (C == null)
958
958
  return O;
959
- var E = n.get(z);
959
+ var E = n.get(C);
960
960
  if (E == null)
961
961
  return O;
962
- var v = {
962
+ var N = {
963
963
  input: x,
964
964
  source: w,
965
965
  element: E.element
966
966
  };
967
- if (E.canDrop && !E.canDrop(v))
968
- return o({
967
+ if (E.canDrop && !E.canDrop(N))
968
+ return s({
969
969
  source: w,
970
970
  target: E.element.parentElement,
971
971
  input: x,
972
972
  result: O
973
973
  });
974
- var D = (p = (g = E.getData) === null || g === void 0 ? void 0 : g.call(E, v)) !== null && p !== void 0 ? p : {}, P = (y = (b = E.getDropEffect) === null || b === void 0 ? void 0 : b.call(E, v)) !== null && y !== void 0 ? y : r, R = {
975
- data: D,
974
+ var L = (p = (g = E.getData) === null || g === void 0 ? void 0 : g.call(E, N)) !== null && p !== void 0 ? p : {}, v = (y = (b = E.getDropEffect) === null || b === void 0 ? void 0 : b.call(E, N)) !== null && y !== void 0 ? y : r, D = {
975
+ data: L,
976
976
  element: E.element,
977
- dropEffect: P,
977
+ dropEffect: v,
978
978
  // we are collecting _actual_ drop targets, so these are
979
979
  // being applied _not_ due to stickiness
980
980
  isActiveDueToStickiness: !1
981
981
  };
982
- return o({
982
+ return s({
983
983
  source: w,
984
984
  target: E.element.parentElement,
985
985
  input: x,
986
986
  // Using bubble ordering. Same ordering as `event.getPath()`
987
- result: [].concat(It(O), [R])
987
+ result: [].concat(It(O), [D])
988
988
  });
989
989
  }
990
- function s(h) {
990
+ function o(h) {
991
991
  var p = h.eventName, g = h.payload, y = ke(g.location.current.dropTargets), b;
992
992
  try {
993
993
  for (y.s(); !(b = y.n()).done; ) {
994
- var w, S = b.value, x = n.get(S.element), M = Y(Y({}, g), {}, {
994
+ var w, S = b.value, x = n.get(S.element), M = $($({}, g), {}, {
995
995
  self: S
996
996
  });
997
997
  x == null || (w = x[p]) === null || w === void 0 || w.call(
@@ -1009,54 +1009,54 @@ function Cr(e) {
1009
1009
  }
1010
1010
  }
1011
1011
  var f = {
1012
- onGenerateDragPreview: s,
1013
- onDrag: s,
1014
- onDragStart: s,
1015
- onDrop: s,
1012
+ onGenerateDragPreview: o,
1013
+ onDrag: o,
1014
+ onDragStart: o,
1015
+ onDrop: o,
1016
1016
  onDropTargetChange: function(p) {
1017
- var g = p.payload, y = new Set(g.location.current.dropTargets.map(function(U) {
1018
- return U.element;
1017
+ var g = p.payload, y = new Set(g.location.current.dropTargets.map(function(G) {
1018
+ return G.element;
1019
1019
  })), b = /* @__PURE__ */ new Set(), w = ke(g.location.previous.dropTargets), S;
1020
1020
  try {
1021
1021
  for (w.s(); !(S = w.n()).done; ) {
1022
1022
  var x, M = S.value;
1023
1023
  b.add(M.element);
1024
- var O = n.get(M.element), z = y.has(M.element), E = Y(Y({}, g), {}, {
1024
+ var O = n.get(M.element), C = y.has(M.element), E = $($({}, g), {}, {
1025
1025
  self: M
1026
1026
  });
1027
- if (O == null || (x = O.onDropTargetChange) === null || x === void 0 || x.call(O, E), !z) {
1028
- var v;
1029
- O == null || (v = O.onDragLeave) === null || v === void 0 || v.call(O, E);
1027
+ if (O == null || (x = O.onDropTargetChange) === null || x === void 0 || x.call(O, E), !C) {
1028
+ var N;
1029
+ O == null || (N = O.onDragLeave) === null || N === void 0 || N.call(O, E);
1030
1030
  }
1031
1031
  }
1032
- } catch (U) {
1033
- w.e(U);
1032
+ } catch (G) {
1033
+ w.e(G);
1034
1034
  } finally {
1035
1035
  w.f();
1036
1036
  }
1037
- var D = ke(g.location.current.dropTargets), P;
1037
+ var L = ke(g.location.current.dropTargets), v;
1038
1038
  try {
1039
- for (D.s(); !(P = D.n()).done; ) {
1040
- var R, L, X = P.value;
1041
- if (!b.has(X.element)) {
1042
- var J = Y(Y({}, g), {}, {
1043
- self: X
1044
- }), A = n.get(X.element);
1045
- 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);
1039
+ for (L.s(); !(v = L.n()).done; ) {
1040
+ var D, P, I = v.value;
1041
+ if (!b.has(I.element)) {
1042
+ var Y = $($({}, g), {}, {
1043
+ self: I
1044
+ }), A = n.get(I.element);
1045
+ A == null || (D = A.onDropTargetChange) === null || D === void 0 || D.call(A, Y), A == null || (P = A.onDragEnter) === null || P === void 0 || P.call(A, Y);
1046
1046
  }
1047
1047
  }
1048
- } catch (U) {
1049
- D.e(U);
1048
+ } catch (G) {
1049
+ L.e(G);
1050
1050
  } finally {
1051
- D.f();
1051
+ L.f();
1052
1052
  }
1053
1053
  }
1054
1054
  };
1055
- function l(h) {
1055
+ function d(h) {
1056
1056
  f[h.eventName](h);
1057
1057
  }
1058
- function d(h) {
1059
- var p = h.source, g = h.target, y = h.input, b = h.current, w = o({
1058
+ function l(h) {
1059
+ var p = h.source, g = h.target, y = h.input, b = h.current, w = s({
1060
1060
  source: p,
1061
1061
  target: g,
1062
1062
  input: y
@@ -1064,25 +1064,25 @@ function Cr(e) {
1064
1064
  if (w.length >= b.length)
1065
1065
  return w;
1066
1066
  for (var S = Ne(b), x = Ne(w), M = [], O = 0; O < S.length; O++) {
1067
- var z, E = S[O], v = x[O];
1068
- if (v != null) {
1069
- M.push(v);
1067
+ var C, E = S[O], N = x[O];
1068
+ if (N != null) {
1069
+ M.push(N);
1070
1070
  continue;
1071
1071
  }
1072
- var D = M[O - 1], P = S[O - 1];
1073
- if ((D == null ? void 0 : D.element) !== (P == null ? void 0 : P.element))
1072
+ var L = M[O - 1], v = S[O - 1];
1073
+ if ((L == null ? void 0 : L.element) !== (v == null ? void 0 : v.element))
1074
1074
  break;
1075
- var R = n.get(E.element);
1076
- if (!R)
1075
+ var D = n.get(E.element);
1076
+ if (!D)
1077
1077
  break;
1078
- var L = {
1078
+ var P = {
1079
1079
  input: y,
1080
1080
  source: p,
1081
- element: R.element
1081
+ element: D.element
1082
1082
  };
1083
- if (R.canDrop && !R.canDrop(L) || !((z = R.getIsSticky) !== null && z !== void 0 && z.call(R, L)))
1083
+ if (D.canDrop && !D.canDrop(P) || !((C = D.getIsSticky) !== null && C !== void 0 && C.call(D, P)))
1084
1084
  break;
1085
- M.push(Y(Y({}, E), {}, {
1085
+ M.push($($({}, E), {}, {
1086
1086
  // making it clear to consumers this drop target is active due to stickiness
1087
1087
  isActiveDueToStickiness: !0
1088
1088
  }));
@@ -1091,8 +1091,8 @@ function Cr(e) {
1091
1091
  }
1092
1092
  return {
1093
1093
  dropTargetForConsumers: c,
1094
- getIsOver: d,
1095
- dispatchEvent: l
1094
+ getIsOver: l,
1095
+ dispatchEvent: d
1096
1096
  };
1097
1097
  }
1098
1098
  function Lr(e, t) {
@@ -1104,8 +1104,8 @@ function Lr(e, t) {
1104
1104
  };
1105
1105
  return { s: i, n: function() {
1106
1106
  return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1107
- }, e: function(s) {
1108
- throw s;
1107
+ }, e: function(o) {
1108
+ throw o;
1109
1109
  }, f: i };
1110
1110
  }
1111
1111
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
@@ -1115,10 +1115,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1115
1115
  return { s: function() {
1116
1116
  r = r.call(e);
1117
1117
  }, n: function() {
1118
- var s = r.next();
1119
- return u = s.done, s;
1120
- }, e: function(s) {
1121
- c = !0, a = s;
1118
+ var o = r.next();
1119
+ return u = o.done, o;
1120
+ }, e: function(o) {
1121
+ c = !0, a = o;
1122
1122
  }, f: function() {
1123
1123
  try {
1124
1124
  u || r.return == null || r.return();
@@ -1183,21 +1183,21 @@ function jr() {
1183
1183
  },
1184
1184
  active: /* @__PURE__ */ new Set()
1185
1185
  };
1186
- var o = Lr(e), s;
1186
+ var s = Lr(e), o;
1187
1187
  try {
1188
- for (o.s(); !(s = o.n()).done; ) {
1189
- var f = s.value;
1188
+ for (s.s(); !(o = s.n()).done; ) {
1189
+ var f = o.value;
1190
1190
  r(f);
1191
1191
  }
1192
1192
  } catch (y) {
1193
- o.e(y);
1193
+ s.e(y);
1194
1194
  } finally {
1195
- o.f();
1195
+ s.f();
1196
1196
  }
1197
1197
  }
1198
1198
  if (t) {
1199
- for (var l = Array.from(t.active), d = 0, h = l; d < h.length; d++) {
1200
- var p = h[d];
1199
+ for (var d = Array.from(t.active), l = 0, h = d; l < h.length; l++) {
1200
+ var p = h[l];
1201
1201
  if (t.active.has(p)) {
1202
1202
  var g;
1203
1203
  (g = p[u]) === null || g === void 0 || g.call(p, c);
@@ -1216,29 +1216,29 @@ function Br(e) {
1216
1216
  typeKey: t,
1217
1217
  defaultDropEffect: a
1218
1218
  });
1219
- function o(l) {
1220
- n == null || n(l), c.dispatchEvent(l), u.dispatchEvent(l), i == null || i(l);
1219
+ function s(d) {
1220
+ n == null || n(d), c.dispatchEvent(d), u.dispatchEvent(d), i == null || i(d);
1221
1221
  }
1222
- function s(l) {
1223
- var d = l.event, h = l.dragType;
1222
+ function o(d) {
1223
+ var l = d.event, h = d.dragType;
1224
1224
  at.start({
1225
- event: d,
1225
+ event: l,
1226
1226
  dragType: h,
1227
1227
  getDropTargetsOver: c.getIsOver,
1228
- dispatchEvent: o
1228
+ dispatchEvent: s
1229
1229
  });
1230
1230
  }
1231
1231
  function f() {
1232
- function l() {
1233
- var d = {
1232
+ function d() {
1233
+ var l = {
1234
1234
  canStart: at.canStart,
1235
- start: s
1235
+ start: o
1236
1236
  };
1237
- return r(d);
1237
+ return r(l);
1238
1238
  }
1239
1239
  return _r({
1240
1240
  typeKey: t,
1241
- mount: l
1241
+ mount: d
1242
1242
  });
1243
1243
  }
1244
1244
  return {
@@ -1262,7 +1262,7 @@ var dt = yr(), Fe = Br({
1262
1262
  return Ye(dt.bindEvents(), ie.bind(document, {
1263
1263
  type: "dragstart",
1264
1264
  listener: function(n) {
1265
- var i, a, u, c, o, s;
1265
+ var i, a, u, c, s, o;
1266
1266
  if (t.canStart(n) && !n.defaultPrevented) {
1267
1267
  if (!n.dataTransfer) {
1268
1268
  process.env.NODE_ENV !== "production" && console.warn(`
@@ -1279,25 +1279,25 @@ var dt = yr(), Fe = Br({
1279
1279
  var f = n.target;
1280
1280
  if (!(f instanceof HTMLElement))
1281
1281
  return null;
1282
- var l = ge.get(f);
1283
- if (!l)
1282
+ var d = ge.get(f);
1283
+ if (!d)
1284
1284
  return null;
1285
- var d = de(n), h = {
1286
- element: l.element,
1287
- dragHandle: (i = l.dragHandle) !== null && i !== void 0 ? i : null,
1288
- input: d
1285
+ var l = de(n), h = {
1286
+ element: d.element,
1287
+ dragHandle: (i = d.dragHandle) !== null && i !== void 0 ? i : null,
1288
+ input: l
1289
1289
  };
1290
- if (l.canDrag && !l.canDrag(h))
1290
+ if (d.canDrag && !d.canDrag(h))
1291
1291
  return n.preventDefault(), null;
1292
- if (l.dragHandle) {
1292
+ if (d.dragHandle) {
1293
1293
  var p = Lt({
1294
- x: d.clientX,
1295
- y: d.clientY
1294
+ x: l.clientX,
1295
+ y: l.clientY
1296
1296
  });
1297
- if (!l.dragHandle.contains(p))
1297
+ if (!d.dragHandle.contains(p))
1298
1298
  return n.preventDefault(), null;
1299
1299
  }
1300
- var g = (a = (u = l.getInitialDataForExternal) === null || u === void 0 ? void 0 : u.call(l, h)) !== null && a !== void 0 ? a : null;
1300
+ var g = (a = (u = d.getInitialDataForExternal) === null || u === void 0 ? void 0 : u.call(d, h)) !== null && a !== void 0 ? a : null;
1301
1301
  if (g)
1302
1302
  for (var y = 0, b = Object.entries(g); y < b.length; y++) {
1303
1303
  var w = zt(b[y], 2), S = w[0], x = w[1];
@@ -1305,9 +1305,9 @@ var dt = yr(), Fe = Br({
1305
1305
  }
1306
1306
  Yr() && !n.dataTransfer.types.includes(lt) && !n.dataTransfer.types.includes($r) && n.dataTransfer.setData(lt, Fr), n.dataTransfer.setData(qr, "");
1307
1307
  var M = {
1308
- element: l.element,
1309
- dragHandle: (c = l.dragHandle) !== null && c !== void 0 ? c : null,
1310
- data: (o = (s = l.getInitialData) === null || s === void 0 ? void 0 : s.call(l, h)) !== null && o !== void 0 ? o : {}
1308
+ element: d.element,
1309
+ dragHandle: (c = d.dragHandle) !== null && c !== void 0 ? c : null,
1310
+ data: (s = (o = d.getInitialData) === null || o === void 0 ? void 0 : o.call(d, h)) !== null && s !== void 0 ? s : {}
1311
1311
  }, O = {
1312
1312
  type: "element",
1313
1313
  payload: M,
@@ -1368,41 +1368,41 @@ function Ie(e, t) {
1368
1368
  }
1369
1369
  }
1370
1370
  const Bt = 6048e5, Qr = 864e5, ht = Symbol.for("constructDateFrom");
1371
- function C(e, t) {
1371
+ function W(e, t) {
1372
1372
  return typeof e == "function" ? e(t) : e && typeof e == "object" && ht in e ? e[ht](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1373
1373
  }
1374
- function N(e, t) {
1375
- return C(t || e, e);
1374
+ function k(e, t) {
1375
+ return W(t || e, e);
1376
1376
  }
1377
1377
  function pe(e, t, r) {
1378
- const n = N(e, r == null ? void 0 : r.in);
1379
- return isNaN(t) ? C(e, NaN) : (t && n.setDate(n.getDate() + t), n);
1378
+ const n = k(e, r == null ? void 0 : r.in);
1379
+ return isNaN(t) ? W(e, NaN) : (t && n.setDate(n.getDate() + t), n);
1380
1380
  }
1381
1381
  function Yt(e, t) {
1382
- return N(e, t == null ? void 0 : t.in).getDay() === 0;
1382
+ return k(e, t == null ? void 0 : t.in).getDay() === 0;
1383
1383
  }
1384
1384
  let Jr = {};
1385
1385
  function Me() {
1386
1386
  return Jr;
1387
1387
  }
1388
- function B(e, t) {
1389
- var c, o, s, f;
1390
- const r = Me(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((o = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : o.weekStartsOn) ?? r.weekStartsOn ?? ((f = (s = r.locale) == null ? void 0 : s.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;
1388
+ function F(e, t) {
1389
+ var c, s, o, f;
1390
+ 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 = k(e, t == null ? void 0 : t.in), a = i.getDay(), u = (a < n ? 7 : 0) + a - n;
1391
1391
  return i.setDate(i.getDate() - u), i.setHours(0, 0, 0, 0), i;
1392
1392
  }
1393
1393
  function De(e, t) {
1394
- return B(e, { ...t, weekStartsOn: 1 });
1394
+ return F(e, { ...t, weekStartsOn: 1 });
1395
1395
  }
1396
1396
  function Ft(e, t) {
1397
- const r = N(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = C(r, 0);
1397
+ const r = k(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = W(r, 0);
1398
1398
  i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0);
1399
- const a = De(i), u = C(r, 0);
1399
+ const a = De(i), u = W(r, 0);
1400
1400
  u.setFullYear(n, 0, 4), u.setHours(0, 0, 0, 0);
1401
1401
  const c = De(u);
1402
1402
  return r.getTime() >= a.getTime() ? n + 1 : r.getTime() >= c.getTime() ? n : n - 1;
1403
1403
  }
1404
1404
  function gt(e) {
1405
- const t = N(e), r = new Date(
1405
+ const t = k(e), r = new Date(
1406
1406
  Date.UTC(
1407
1407
  t.getFullYear(),
1408
1408
  t.getMonth(),
@@ -1416,26 +1416,26 @@ function gt(e) {
1416
1416
  return r.setUTCFullYear(t.getFullYear()), +e - +r;
1417
1417
  }
1418
1418
  function $e(e, ...t) {
1419
- const r = C.bind(
1419
+ const r = W.bind(
1420
1420
  null,
1421
1421
  e || t.find((n) => typeof n == "object")
1422
1422
  );
1423
1423
  return t.map(r);
1424
1424
  }
1425
1425
  function Te(e, t) {
1426
- const r = N(e, t == null ? void 0 : t.in);
1426
+ const r = k(e, t == null ? void 0 : t.in);
1427
1427
  return r.setHours(0, 0, 0, 0), r;
1428
1428
  }
1429
- function q(e, t, r) {
1429
+ function U(e, t, r) {
1430
1430
  const [n, i] = $e(
1431
1431
  r == null ? void 0 : r.in,
1432
1432
  e,
1433
1433
  t
1434
- ), a = Te(n), u = Te(i), c = +a - gt(a), o = +u - gt(u);
1435
- return Math.round((c - o) / Qr);
1434
+ ), a = Te(n), u = Te(i), c = +a - gt(a), s = +u - gt(u);
1435
+ return Math.round((c - s) / Qr);
1436
1436
  }
1437
1437
  function Zr(e, t) {
1438
- const r = Ft(e, t), n = C(e, 0);
1438
+ const r = Ft(e, t), n = W(e, 0);
1439
1439
  return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), De(n);
1440
1440
  }
1441
1441
  function en(e, t, r) {
@@ -1444,18 +1444,18 @@ function en(e, t, r) {
1444
1444
  function tn(e, t) {
1445
1445
  let r, n = t == null ? void 0 : t.in;
1446
1446
  return e.forEach((i) => {
1447
- !n && typeof i == "object" && (n = C.bind(null, i));
1448
- const a = N(i, n);
1447
+ !n && typeof i == "object" && (n = W.bind(null, i));
1448
+ const a = k(i, n);
1449
1449
  (!r || r < a || isNaN(+a)) && (r = a);
1450
- }), C(n, r || NaN);
1450
+ }), W(n, r || NaN);
1451
1451
  }
1452
1452
  function rn(e, t) {
1453
1453
  let r, n = t == null ? void 0 : t.in;
1454
1454
  return e.forEach((i) => {
1455
- !n && typeof i == "object" && (n = C.bind(null, i));
1456
- const a = N(i, n);
1455
+ !n && typeof i == "object" && (n = W.bind(null, i));
1456
+ const a = k(i, n);
1457
1457
  (!r || r > a || isNaN(+a)) && (r = a);
1458
- }), C(n, r || NaN);
1458
+ }), W(n, r || NaN);
1459
1459
  }
1460
1460
  function nn(e, t, r) {
1461
1461
  const [n, i] = $e(
@@ -1469,7 +1469,7 @@ function an(e) {
1469
1469
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
1470
1470
  }
1471
1471
  function on(e) {
1472
- return !(!an(e) && typeof e != "number" || isNaN(+N(e)));
1472
+ return !(!an(e) && typeof e != "number" || isNaN(+k(e)));
1473
1473
  }
1474
1474
  function qe(e, t) {
1475
1475
  const [r, n] = $e(e, t.start, t.end);
@@ -1481,10 +1481,10 @@ function $t(e, t) {
1481
1481
  const a = i ? +r : +n, u = i ? n : r;
1482
1482
  u.setHours(0, 0, 0, 0);
1483
1483
  let c = 1;
1484
- const o = [];
1484
+ const s = [];
1485
1485
  for (; +u <= a; )
1486
- o.push(C(r, u)), u.setDate(u.getDate() + c), u.setHours(0, 0, 0, 0);
1487
- return i ? o.reverse() : o;
1486
+ s.push(W(r, u)), u.setDate(u.getDate() + c), u.setHours(0, 0, 0, 0);
1487
+ return i ? s.reverse() : s;
1488
1488
  }
1489
1489
  function sn(e, t) {
1490
1490
  const { start: r, end: n } = qe(t == null ? void 0 : t.in, e);
@@ -1492,27 +1492,27 @@ function sn(e, t) {
1492
1492
  const a = i ? +r : +n, u = i ? n : r;
1493
1493
  u.setHours(0, 0, 0, 0), u.setDate(1);
1494
1494
  let c = 1;
1495
- const o = [];
1495
+ const s = [];
1496
1496
  for (; +u <= a; )
1497
- o.push(C(r, u)), u.setMonth(u.getMonth() + c);
1498
- return i ? o.reverse() : o;
1497
+ s.push(W(r, u)), u.setMonth(u.getMonth() + c);
1498
+ return i ? s.reverse() : s;
1499
1499
  }
1500
1500
  function un(e, t) {
1501
1501
  const { start: r, end: n } = qe(t == null ? void 0 : t.in, e);
1502
1502
  let i = +r > +n;
1503
- const a = B(i ? n : r, t), u = B(i ? r : n, t);
1503
+ const a = F(i ? n : r, t), u = F(i ? r : n, t);
1504
1504
  a.setHours(15), u.setHours(15);
1505
1505
  const c = +u.getTime();
1506
- let o = a, s = (t == null ? void 0 : t.step) ?? 1;
1507
- if (!s) return [];
1508
- s < 0 && (s = -s, i = !i);
1506
+ let s = a, o = (t == null ? void 0 : t.step) ?? 1;
1507
+ if (!o) return [];
1508
+ o < 0 && (o = -o, i = !i);
1509
1509
  const f = [];
1510
- for (; +o <= c; )
1511
- o.setHours(0), f.push(C(r, o)), o = en(o, s), o.setHours(15);
1510
+ for (; +s <= c; )
1511
+ s.setHours(0), f.push(W(r, s)), s = en(s, o), s.setHours(15);
1512
1512
  return i ? f.reverse() : f;
1513
1513
  }
1514
1514
  function cn(e, t) {
1515
- const r = N(e, t == null ? void 0 : t.in);
1515
+ const r = k(e, t == null ? void 0 : t.in);
1516
1516
  return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
1517
1517
  }
1518
1518
  const ln = {
@@ -1795,17 +1795,17 @@ function ce(e) {
1795
1795
  const n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
1796
1796
  if (!a)
1797
1797
  return null;
1798
- const u = a[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], o = Array.isArray(c) ? En(c, (l) => l.test(u)) : (
1798
+ const u = a[0], c = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(c) ? En(c, (d) => d.test(u)) : (
1799
1799
  // [TODO] -- I challenge you to fix the type
1800
- Mn(c, (l) => l.test(u))
1800
+ Mn(c, (d) => d.test(u))
1801
1801
  );
1802
- let s;
1803
- s = e.valueCallback ? e.valueCallback(o) : o, s = r.valueCallback ? (
1802
+ let o;
1803
+ o = e.valueCallback ? e.valueCallback(s) : s, o = r.valueCallback ? (
1804
1804
  // [TODO] -- I challenge you to fix the type
1805
- r.valueCallback(s)
1806
- ) : s;
1805
+ r.valueCallback(o)
1806
+ ) : o;
1807
1807
  const f = t.slice(u.length);
1808
- return { value: s, rest: f };
1808
+ return { value: o, rest: f };
1809
1809
  };
1810
1810
  }
1811
1811
  function Mn(e, t) {
@@ -1947,36 +1947,36 @@ const Rn = /^(\d+)(th|st|nd|rd)?/i, kn = /\d+/i, Nn = {
1947
1947
  }
1948
1948
  };
1949
1949
  function Fn(e, t) {
1950
- const r = N(e, t == null ? void 0 : t.in);
1951
- return q(r, cn(r)) + 1;
1950
+ const r = k(e, t == null ? void 0 : t.in);
1951
+ return U(r, cn(r)) + 1;
1952
1952
  }
1953
1953
  function $n(e, t) {
1954
- const r = N(e, t == null ? void 0 : t.in), n = +De(r) - +Zr(r);
1954
+ const r = k(e, t == null ? void 0 : t.in), n = +De(r) - +Zr(r);
1955
1955
  return Math.round(n / Bt) + 1;
1956
1956
  }
1957
1957
  function qt(e, t) {
1958
- var f, l, d, h;
1959
- 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 = C((t == null ? void 0 : t.in) || e, 0);
1958
+ var f, d, l, h;
1959
+ const r = k(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = Me(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((h = (l = i.locale) == null ? void 0 : l.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, u = W((t == null ? void 0 : t.in) || e, 0);
1960
1960
  u.setFullYear(n + 1, 0, a), u.setHours(0, 0, 0, 0);
1961
- const c = B(u, t), o = C((t == null ? void 0 : t.in) || e, 0);
1962
- o.setFullYear(n, 0, a), o.setHours(0, 0, 0, 0);
1963
- const s = B(o, t);
1964
- return +r >= +c ? n + 1 : +r >= +s ? n : n - 1;
1961
+ const c = F(u, t), s = W((t == null ? void 0 : t.in) || e, 0);
1962
+ s.setFullYear(n, 0, a), s.setHours(0, 0, 0, 0);
1963
+ const o = F(s, t);
1964
+ return +r >= +c ? n + 1 : +r >= +o ? n : n - 1;
1965
1965
  }
1966
1966
  function qn(e, t) {
1967
- var c, o, s, f;
1968
- const r = Me(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((o = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((f = (s = r.locale) == null ? void 0 : s.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = qt(e, t), a = C((t == null ? void 0 : t.in) || e, 0);
1969
- return a.setFullYear(i, 0, n), a.setHours(0, 0, 0, 0), B(a, t);
1967
+ var c, s, o, f;
1968
+ 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 = qt(e, t), a = W((t == null ? void 0 : t.in) || e, 0);
1969
+ return a.setFullYear(i, 0, n), a.setHours(0, 0, 0, 0), F(a, t);
1970
1970
  }
1971
1971
  function Xn(e, t) {
1972
- const r = N(e, t == null ? void 0 : t.in), n = +B(r, t) - +qn(r, t);
1972
+ const r = k(e, t == null ? void 0 : t.in), n = +F(r, t) - +qn(r, t);
1973
1973
  return Math.round(n / Bt) + 1;
1974
1974
  }
1975
1975
  function T(e, t) {
1976
1976
  const r = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(t, "0");
1977
1977
  return r + n;
1978
1978
  }
1979
- const F = {
1979
+ const q = {
1980
1980
  // Year
1981
1981
  y(e, t) {
1982
1982
  const r = e.getFullYear(), n = r > 0 ? r : 1 - r;
@@ -2062,7 +2062,7 @@ const F = {
2062
2062
  const n = e.getFullYear(), i = n > 0 ? n : 1 - n;
2063
2063
  return r.ordinalNumber(i, { unit: "year" });
2064
2064
  }
2065
- return F.y(e, t);
2065
+ return q.y(e, t);
2066
2066
  },
2067
2067
  // Local week-numbering year
2068
2068
  Y: function(e, t, r, n) {
@@ -2165,7 +2165,7 @@ const F = {
2165
2165
  switch (t) {
2166
2166
  case "M":
2167
2167
  case "MM":
2168
- return F.M(e, t);
2168
+ return q.M(e, t);
2169
2169
  // 1st, 2nd, ..., 12th
2170
2170
  case "Mo":
2171
2171
  return r.ordinalNumber(n + 1, { unit: "month" });
@@ -2230,7 +2230,7 @@ const F = {
2230
2230
  },
2231
2231
  // Day of the month
2232
2232
  d: function(e, t, r) {
2233
- return t === "do" ? r.ordinalNumber(e.getDate(), { unit: "date" }) : F.d(e, t);
2233
+ return t === "do" ? r.ordinalNumber(e.getDate(), { unit: "date" }) : q.d(e, t);
2234
2234
  },
2235
2235
  // Day of year
2236
2236
  D: function(e, t, r) {
@@ -2476,11 +2476,11 @@ const F = {
2476
2476
  let n = e.getHours() % 12;
2477
2477
  return n === 0 && (n = 12), r.ordinalNumber(n, { unit: "hour" });
2478
2478
  }
2479
- return F.h(e, t);
2479
+ return q.h(e, t);
2480
2480
  },
2481
2481
  // Hour [0-23]
2482
2482
  H: function(e, t, r) {
2483
- return t === "Ho" ? r.ordinalNumber(e.getHours(), { unit: "hour" }) : F.H(e, t);
2483
+ return t === "Ho" ? r.ordinalNumber(e.getHours(), { unit: "hour" }) : q.H(e, t);
2484
2484
  },
2485
2485
  // Hour [0-11]
2486
2486
  K: function(e, t, r) {
@@ -2494,15 +2494,15 @@ const F = {
2494
2494
  },
2495
2495
  // Minute
2496
2496
  m: function(e, t, r) {
2497
- return t === "mo" ? r.ordinalNumber(e.getMinutes(), { unit: "minute" }) : F.m(e, t);
2497
+ return t === "mo" ? r.ordinalNumber(e.getMinutes(), { unit: "minute" }) : q.m(e, t);
2498
2498
  },
2499
2499
  // Second
2500
2500
  s: function(e, t, r) {
2501
- return t === "so" ? r.ordinalNumber(e.getSeconds(), { unit: "second" }) : F.s(e, t);
2501
+ return t === "so" ? r.ordinalNumber(e.getSeconds(), { unit: "second" }) : q.s(e, t);
2502
2502
  },
2503
2503
  // Fraction of second
2504
2504
  S: function(e, t) {
2505
- return F.S(e, t);
2505
+ return q.S(e, t);
2506
2506
  },
2507
2507
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
2508
2508
  X: function(e, t, r) {
@@ -2518,7 +2518,7 @@ const F = {
2518
2518
  // so this token always has the same output as `XX`
2519
2519
  case "XXXX":
2520
2520
  case "XX":
2521
- return K(n);
2521
+ return V(n);
2522
2522
  // Hours, minutes and optional seconds with `:` delimiter
2523
2523
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2524
2524
  // so this token always has the same output as `XXX`
@@ -2526,7 +2526,7 @@ const F = {
2526
2526
  case "XXX":
2527
2527
  // Hours and minutes with `:` delimiter
2528
2528
  default:
2529
- return K(n, ":");
2529
+ return V(n, ":");
2530
2530
  }
2531
2531
  },
2532
2532
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -2541,7 +2541,7 @@ const F = {
2541
2541
  // so this token always has the same output as `xx`
2542
2542
  case "xxxx":
2543
2543
  case "xx":
2544
- return K(n);
2544
+ return V(n);
2545
2545
  // Hours, minutes and optional seconds with `:` delimiter
2546
2546
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2547
2547
  // so this token always has the same output as `xxx`
@@ -2549,7 +2549,7 @@ const F = {
2549
2549
  case "xxx":
2550
2550
  // Hours and minutes with `:` delimiter
2551
2551
  default:
2552
- return K(n, ":");
2552
+ return V(n, ":");
2553
2553
  }
2554
2554
  },
2555
2555
  // Timezone (GMT)
@@ -2564,7 +2564,7 @@ const F = {
2564
2564
  // Long
2565
2565
  case "OOOO":
2566
2566
  default:
2567
- return "GMT" + K(n, ":");
2567
+ return "GMT" + V(n, ":");
2568
2568
  }
2569
2569
  },
2570
2570
  // Timezone (specific non-location)
@@ -2579,7 +2579,7 @@ const F = {
2579
2579
  // Long
2580
2580
  case "zzzz":
2581
2581
  default:
2582
- return "GMT" + K(n, ":");
2582
+ return "GMT" + V(n, ":");
2583
2583
  }
2584
2584
  },
2585
2585
  // Seconds timestamp
@@ -2597,9 +2597,9 @@ function mt(e, t = "") {
2597
2597
  return a === 0 ? r + String(i) : r + String(i) + t + T(a, 2);
2598
2598
  }
2599
2599
  function yt(e, t) {
2600
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + T(Math.abs(e) / 60, 2) : K(e, t);
2600
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + T(Math.abs(e) / 60, 2) : V(e, t);
2601
2601
  }
2602
- function K(e, t = "") {
2602
+ function V(e, t = "") {
2603
2603
  const r = e > 0 ? "-" : "+", n = Math.abs(e), i = T(Math.trunc(n / 60), 2), a = T(n % 60, 2);
2604
2604
  return r + i + t + a;
2605
2605
  }
@@ -2667,12 +2667,12 @@ function ti(e, t, r) {
2667
2667
  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`;
2668
2668
  }
2669
2669
  const ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ni = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ii = /^'([^]*?)'?$/, ai = /''/g, oi = /[a-zA-Z]/;
2670
- function j(e, t, r) {
2671
- var f, l, d, h;
2672
- const n = Me(), i = n.locale ?? Yn, 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);
2670
+ function B(e, t, r) {
2671
+ var f, d, l, h;
2672
+ const n = Me(), i = n.locale ?? Yn, a = n.firstWeekContainsDate ?? ((d = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, u = n.weekStartsOn ?? ((h = (l = n.locale) == null ? void 0 : l.options) == null ? void 0 : h.weekStartsOn) ?? 0, c = k(e, r == null ? void 0 : r.in);
2673
2673
  if (!on(c))
2674
2674
  throw new RangeError("Invalid time value");
2675
- let o = t.match(ni).map((p) => {
2675
+ let s = t.match(ni).map((p) => {
2676
2676
  const g = p[0];
2677
2677
  if (g === "p" || g === "P") {
2678
2678
  const y = Gn[g];
@@ -2693,18 +2693,18 @@ function j(e, t, r) {
2693
2693
  );
2694
2694
  return { isToken: !1, value: p };
2695
2695
  });
2696
- i.localize.preprocessor && (o = i.localize.preprocessor(c, o));
2697
- const s = {
2696
+ i.localize.preprocessor && (s = i.localize.preprocessor(c, s));
2697
+ const o = {
2698
2698
  firstWeekContainsDate: a,
2699
2699
  weekStartsOn: u,
2700
2700
  locale: i
2701
2701
  };
2702
- return o.map((p) => {
2702
+ return s.map((p) => {
2703
2703
  if (!p.isToken) return p.value;
2704
2704
  const g = p.value;
2705
2705
  (Zn(g) || Jn(g)) && ei(g, t, String(e));
2706
2706
  const y = pt[g[0]];
2707
- return y(c, g, i.localize, s);
2707
+ return y(c, g, i.localize, o);
2708
2708
  }).join("");
2709
2709
  }
2710
2710
  function si(e) {
@@ -2712,11 +2712,11 @@ function si(e) {
2712
2712
  return t ? t[1].replace(ai, "'") : e;
2713
2713
  }
2714
2714
  function ui(e, t) {
2715
- return N(e, t == null ? void 0 : t.in).getDay();
2715
+ return k(e, t == null ? void 0 : t.in).getDay();
2716
2716
  }
2717
2717
  function ci(e, t) {
2718
- const r = N(e, t == null ? void 0 : t.in), n = r.getMonth();
2719
- return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(0, 0, 0, 0), N(r, t == null ? void 0 : t.in);
2718
+ const r = k(e, t == null ? void 0 : t.in), n = r.getMonth();
2719
+ return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(0, 0, 0, 0), k(r, t == null ? void 0 : t.in);
2720
2720
  }
2721
2721
  function li(e, t, r) {
2722
2722
  let n = t - ui(e, r);
@@ -2726,7 +2726,7 @@ function di(e, t) {
2726
2726
  return li(e, 0, t);
2727
2727
  }
2728
2728
  function He(e, t, r) {
2729
- const n = N(e, r == null ? void 0 : r.in);
2729
+ const n = k(e, r == null ? void 0 : r.in);
2730
2730
  return n.setHours(t), n;
2731
2731
  }
2732
2732
  function Xe(e, t, r) {
@@ -2738,7 +2738,7 @@ function fi(e, t) {
2738
2738
  }
2739
2739
  function hi(e, t, r) {
2740
2740
  return Math.abs(
2741
- (q(r.end, r.start) + 1) * t.pixelsPerDay
2741
+ (U(r.end, r.start) + 1) * t.pixelsPerDay
2742
2742
  );
2743
2743
  }
2744
2744
  function Ue(e, t, r, n) {
@@ -2749,11 +2749,11 @@ function Ue(e, t, r, n) {
2749
2749
  };
2750
2750
  }
2751
2751
  function Ut(e, t, r) {
2752
- const n = q(e.end, e.start) * r.pixelsPerDay, i = e.size / t.capacity * r.pixelsPerLane;
2752
+ const n = U(e.end, e.start) * r.pixelsPerDay, i = e.size / t.capacity * r.pixelsPerLane;
2753
2753
  return { width: n, height: i };
2754
2754
  }
2755
2755
  function Ge(e, t, r) {
2756
- return q(e, t) * r.pixelsPerDay + r.pixelsPerDay / 2;
2756
+ return U(e, t) * r.pixelsPerDay + r.pixelsPerDay / 2;
2757
2757
  }
2758
2758
  function gi(e, t, r) {
2759
2759
  return e / t * r.pixelsPerLane;
@@ -2801,36 +2801,36 @@ function Gt(e, t, r, n, i) {
2801
2801
  payload: e.payload
2802
2802
  };
2803
2803
  }
2804
- function mi(e, t, r, n, i, a, u, c, o) {
2804
+ function mi(e, t, r, n, i, a, u, c, s) {
2805
2805
  if (n === null)
2806
2806
  return null;
2807
- const s = Xe(
2807
+ const o = Xe(
2808
2808
  e,
2809
2809
  a,
2810
2810
  c
2811
- ), f = t.filter((d) => d.id !== r.id).map((d) => Ue(d, e, c, a));
2812
- let l = null;
2813
- return l = yi(
2811
+ ), f = t.filter((l) => l.id !== r.id).map((l) => Ue(l, e, c, a));
2812
+ let d = null;
2813
+ return d = yi(
2814
2814
  e,
2815
2815
  r,
2816
2816
  i,
2817
2817
  a,
2818
2818
  n
2819
- ), l = bi(l, u), l = vi(
2820
- l,
2821
- s
2822
- ), l = wi(
2823
- l,
2824
- f,
2825
- s,
2819
+ ), d = bi(d, u), d = vi(
2820
+ d,
2826
2821
  o
2827
- ), l;
2822
+ ), d = wi(
2823
+ d,
2824
+ f,
2825
+ o,
2826
+ s
2827
+ ), d;
2828
2828
  }
2829
2829
  function yi(e, t, r, n, i) {
2830
- const { width: a, height: u } = Ut(t, e, n), c = i.x + a * r.relative.x, o = i.y + u * r.relative.y;
2830
+ const { width: a, height: u } = Ut(t, e, n), c = i.x + a * r.relative.x, s = i.y + u * r.relative.y;
2831
2831
  return {
2832
2832
  x: c,
2833
- y: o,
2833
+ y: s,
2834
2834
  width: a,
2835
2835
  height: u
2836
2836
  };
@@ -2923,10 +2923,10 @@ function Ti(e, t, r, n) {
2923
2923
  (f) => f.offset <= t && f.offset + f.size >= t
2924
2924
  ))
2925
2925
  return null;
2926
- const u = i.filter((f) => f.offset + f.size <= t), c = i.filter((f) => f.offset >= t), o = u.length > 0 ? Math.max(...u.map((f) => f.offset + f.size)) : 0, s = c.length > 0 ? Math.min(...c.map((f) => f.offset)) : r;
2926
+ const u = i.filter((f) => f.offset + f.size <= t), c = i.filter((f) => f.offset >= t), s = u.length > 0 ? Math.max(...u.map((f) => f.offset + f.size)) : 0, o = c.length > 0 ? Math.min(...c.map((f) => f.offset)) : r;
2927
2927
  return {
2928
- lower: o,
2929
- upper: s
2928
+ lower: s,
2929
+ upper: o
2930
2930
  };
2931
2931
  }
2932
2932
  function Mi(e, t, r, n, i) {
@@ -2936,16 +2936,16 @@ function Mi(e, t, r, n, i) {
2936
2936
  offset: i.lower,
2937
2937
  size: i.upper - i.lower
2938
2938
  }, u = n.filter(
2939
- (l) => Si(l, a)
2939
+ (d) => Si(d, a)
2940
2940
  );
2941
2941
  if (u.length === 0)
2942
2942
  return {
2943
2943
  lower: t,
2944
2944
  upper: r
2945
2945
  };
2946
- const c = u.filter((l) => l.end <= e), o = u.filter((l) => l.start >= e), s = c.length > 0 ? tn(c.map((l) => l.end)) : t, f = o.length > 0 ? rn(o.map((l) => l.start)) : r;
2946
+ const c = u.filter((d) => d.end <= e), s = u.filter((d) => d.start >= e), o = c.length > 0 ? tn(c.map((d) => d.end)) : t, f = s.length > 0 ? rn(s.map((d) => d.start)) : r;
2947
2947
  return {
2948
- lower: s,
2948
+ lower: o,
2949
2949
  upper: f
2950
2950
  };
2951
2951
  }
@@ -2968,25 +2968,25 @@ function Ei({
2968
2968
  return Ie(c), Ur({
2969
2969
  element: c,
2970
2970
  getData: () => ({ drop: "drop" }),
2971
- onDragStart: ({ source: o, location: s }) => {
2972
- const f = ye(s), l = te(o, s);
2973
- t(f, l, o.data);
2971
+ onDragStart: ({ source: s, location: o }) => {
2972
+ const f = ye(o), d = te(s, o);
2973
+ t(f, d, s.data);
2974
2974
  },
2975
- onDragEnter: ({ source: o, location: s }) => {
2976
- const f = ye(s), l = te(o, s);
2977
- i(f, l, o.data);
2975
+ onDragEnter: ({ source: s, location: o }) => {
2976
+ const f = ye(o), d = te(s, o);
2977
+ i(f, d, s.data);
2978
2978
  },
2979
- onDrag: ({ source: o, location: s }) => {
2980
- const f = ye(s), l = te(o, s);
2981
- r(f, l, o.data);
2979
+ onDrag: ({ source: s, location: o }) => {
2980
+ const f = ye(o), d = te(s, o);
2981
+ r(f, d, s.data);
2982
2982
  },
2983
- onDrop: ({ source: o, location: s }) => {
2984
- const f = ye(s), l = te(o, s);
2985
- n(f, l, o.data);
2983
+ onDrop: ({ source: s, location: o }) => {
2984
+ const f = ye(o), d = te(s, o);
2985
+ n(f, d, s.data);
2986
2986
  },
2987
- onDragLeave: ({ source: o, location: s }) => {
2988
- const f = te(o, s);
2989
- a(f, o.data);
2987
+ onDragLeave: ({ source: s, location: o }) => {
2988
+ const f = te(s, o);
2989
+ a(f, s.data);
2990
2990
  }
2991
2991
  });
2992
2992
  }, [r, a, t, n, i]), /* @__PURE__ */ m("div", { className: "timelane-drop-target", ref: u, children: e });
@@ -3019,7 +3019,7 @@ function Pi({
3019
3019
  }
3020
3020
  );
3021
3021
  }
3022
- var ve = { exports: {} }, _ = {};
3022
+ var ve = { exports: {} }, z = {};
3023
3023
  /**
3024
3024
  * @license React
3025
3025
  * react-dom.production.js
@@ -3031,17 +3031,17 @@ var ve = { exports: {} }, _ = {};
3031
3031
  */
3032
3032
  var wt;
3033
3033
  function Ri() {
3034
- if (wt) return _;
3034
+ if (wt) return z;
3035
3035
  wt = 1;
3036
3036
  var e = Nt;
3037
- function t(o) {
3038
- var s = "https://react.dev/errors/" + o;
3037
+ function t(s) {
3038
+ var o = "https://react.dev/errors/" + s;
3039
3039
  if (1 < arguments.length) {
3040
- s += "?args[]=" + encodeURIComponent(arguments[1]);
3040
+ o += "?args[]=" + encodeURIComponent(arguments[1]);
3041
3041
  for (var f = 2; f < arguments.length; f++)
3042
- s += "&args[]=" + encodeURIComponent(arguments[f]);
3042
+ o += "&args[]=" + encodeURIComponent(arguments[f]);
3043
3043
  }
3044
- return "Minified React error #" + o + "; visit " + s + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
3044
+ return "Minified React error #" + s + "; visit " + o + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
3045
3045
  }
3046
3046
  function r() {
3047
3047
  }
@@ -3062,107 +3062,107 @@ function Ri() {
3062
3062
  p: 0,
3063
3063
  findDOMNode: null
3064
3064
  }, i = Symbol.for("react.portal");
3065
- function a(o, s, f) {
3066
- var l = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
3065
+ function a(s, o, f) {
3066
+ var d = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
3067
3067
  return {
3068
3068
  $$typeof: i,
3069
- key: l == null ? null : "" + l,
3070
- children: o,
3071
- containerInfo: s,
3069
+ key: d == null ? null : "" + d,
3070
+ children: s,
3071
+ containerInfo: o,
3072
3072
  implementation: f
3073
3073
  };
3074
3074
  }
3075
3075
  var u = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3076
- function c(o, s) {
3077
- if (o === "font") return "";
3078
- if (typeof s == "string")
3079
- return s === "use-credentials" ? s : "";
3076
+ function c(s, o) {
3077
+ if (s === "font") return "";
3078
+ if (typeof o == "string")
3079
+ return o === "use-credentials" ? o : "";
3080
3080
  }
3081
- return _.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, _.createPortal = function(o, s) {
3081
+ return z.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, z.createPortal = function(s, o) {
3082
3082
  var f = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
3083
- if (!s || s.nodeType !== 1 && s.nodeType !== 9 && s.nodeType !== 11)
3083
+ if (!o || o.nodeType !== 1 && o.nodeType !== 9 && o.nodeType !== 11)
3084
3084
  throw Error(t(299));
3085
- return a(o, s, null, f);
3086
- }, _.flushSync = function(o) {
3087
- var s = u.T, f = n.p;
3085
+ return a(s, o, null, f);
3086
+ }, z.flushSync = function(s) {
3087
+ var o = u.T, f = n.p;
3088
3088
  try {
3089
- if (u.T = null, n.p = 2, o) return o();
3089
+ if (u.T = null, n.p = 2, s) return s();
3090
3090
  } finally {
3091
- u.T = s, n.p = f, n.d.f();
3091
+ u.T = o, n.p = f, n.d.f();
3092
3092
  }
3093
- }, _.preconnect = function(o, s) {
3094
- typeof o == "string" && (s ? (s = s.crossOrigin, s = typeof s == "string" ? s === "use-credentials" ? s : "" : void 0) : s = null, n.d.C(o, s));
3095
- }, _.prefetchDNS = function(o) {
3096
- typeof o == "string" && n.d.D(o);
3097
- }, _.preinit = function(o, s) {
3098
- if (typeof o == "string" && s && typeof s.as == "string") {
3099
- var f = s.as, l = c(f, s.crossOrigin), d = typeof s.integrity == "string" ? s.integrity : void 0, h = typeof s.fetchPriority == "string" ? s.fetchPriority : void 0;
3093
+ }, z.preconnect = function(s, o) {
3094
+ typeof s == "string" && (o ? (o = o.crossOrigin, o = typeof o == "string" ? o === "use-credentials" ? o : "" : void 0) : o = null, n.d.C(s, o));
3095
+ }, z.prefetchDNS = function(s) {
3096
+ typeof s == "string" && n.d.D(s);
3097
+ }, z.preinit = function(s, o) {
3098
+ if (typeof s == "string" && o && typeof o.as == "string") {
3099
+ var f = o.as, d = c(f, o.crossOrigin), l = typeof o.integrity == "string" ? o.integrity : void 0, h = typeof o.fetchPriority == "string" ? o.fetchPriority : void 0;
3100
3100
  f === "style" ? n.d.S(
3101
- o,
3102
- typeof s.precedence == "string" ? s.precedence : void 0,
3101
+ s,
3102
+ typeof o.precedence == "string" ? o.precedence : void 0,
3103
3103
  {
3104
- crossOrigin: l,
3105
- integrity: d,
3104
+ crossOrigin: d,
3105
+ integrity: l,
3106
3106
  fetchPriority: h
3107
3107
  }
3108
- ) : f === "script" && n.d.X(o, {
3109
- crossOrigin: l,
3110
- integrity: d,
3108
+ ) : f === "script" && n.d.X(s, {
3109
+ crossOrigin: d,
3110
+ integrity: l,
3111
3111
  fetchPriority: h,
3112
- nonce: typeof s.nonce == "string" ? s.nonce : void 0
3112
+ nonce: typeof o.nonce == "string" ? o.nonce : void 0
3113
3113
  });
3114
3114
  }
3115
- }, _.preinitModule = function(o, s) {
3116
- if (typeof o == "string")
3117
- if (typeof s == "object" && s !== null) {
3118
- if (s.as == null || s.as === "script") {
3115
+ }, z.preinitModule = function(s, o) {
3116
+ if (typeof s == "string")
3117
+ if (typeof o == "object" && o !== null) {
3118
+ if (o.as == null || o.as === "script") {
3119
3119
  var f = c(
3120
- s.as,
3121
- s.crossOrigin
3120
+ o.as,
3121
+ o.crossOrigin
3122
3122
  );
3123
- n.d.M(o, {
3123
+ n.d.M(s, {
3124
3124
  crossOrigin: f,
3125
- integrity: typeof s.integrity == "string" ? s.integrity : void 0,
3126
- nonce: typeof s.nonce == "string" ? s.nonce : void 0
3125
+ integrity: typeof o.integrity == "string" ? o.integrity : void 0,
3126
+ nonce: typeof o.nonce == "string" ? o.nonce : void 0
3127
3127
  });
3128
3128
  }
3129
- } else s == null && n.d.M(o);
3130
- }, _.preload = function(o, s) {
3131
- if (typeof o == "string" && typeof s == "object" && s !== null && typeof s.as == "string") {
3132
- var f = s.as, l = c(f, s.crossOrigin);
3133
- n.d.L(o, f, {
3134
- crossOrigin: l,
3135
- integrity: typeof s.integrity == "string" ? s.integrity : void 0,
3136
- nonce: typeof s.nonce == "string" ? s.nonce : void 0,
3137
- type: typeof s.type == "string" ? s.type : void 0,
3138
- fetchPriority: typeof s.fetchPriority == "string" ? s.fetchPriority : void 0,
3139
- referrerPolicy: typeof s.referrerPolicy == "string" ? s.referrerPolicy : void 0,
3140
- imageSrcSet: typeof s.imageSrcSet == "string" ? s.imageSrcSet : void 0,
3141
- imageSizes: typeof s.imageSizes == "string" ? s.imageSizes : void 0,
3142
- media: typeof s.media == "string" ? s.media : void 0
3129
+ } else o == null && n.d.M(s);
3130
+ }, z.preload = function(s, o) {
3131
+ if (typeof s == "string" && typeof o == "object" && o !== null && typeof o.as == "string") {
3132
+ var f = o.as, d = c(f, o.crossOrigin);
3133
+ n.d.L(s, f, {
3134
+ crossOrigin: d,
3135
+ integrity: typeof o.integrity == "string" ? o.integrity : void 0,
3136
+ nonce: typeof o.nonce == "string" ? o.nonce : void 0,
3137
+ type: typeof o.type == "string" ? o.type : void 0,
3138
+ fetchPriority: typeof o.fetchPriority == "string" ? o.fetchPriority : void 0,
3139
+ referrerPolicy: typeof o.referrerPolicy == "string" ? o.referrerPolicy : void 0,
3140
+ imageSrcSet: typeof o.imageSrcSet == "string" ? o.imageSrcSet : void 0,
3141
+ imageSizes: typeof o.imageSizes == "string" ? o.imageSizes : void 0,
3142
+ media: typeof o.media == "string" ? o.media : void 0
3143
3143
  });
3144
3144
  }
3145
- }, _.preloadModule = function(o, s) {
3146
- if (typeof o == "string")
3147
- if (s) {
3148
- var f = c(s.as, s.crossOrigin);
3149
- n.d.m(o, {
3150
- as: typeof s.as == "string" && s.as !== "script" ? s.as : void 0,
3145
+ }, z.preloadModule = function(s, o) {
3146
+ if (typeof s == "string")
3147
+ if (o) {
3148
+ var f = c(o.as, o.crossOrigin);
3149
+ n.d.m(s, {
3150
+ as: typeof o.as == "string" && o.as !== "script" ? o.as : void 0,
3151
3151
  crossOrigin: f,
3152
- integrity: typeof s.integrity == "string" ? s.integrity : void 0
3152
+ integrity: typeof o.integrity == "string" ? o.integrity : void 0
3153
3153
  });
3154
- } else n.d.m(o);
3155
- }, _.requestFormReset = function(o) {
3156
- n.d.r(o);
3157
- }, _.unstable_batchedUpdates = function(o, s) {
3158
- return o(s);
3159
- }, _.useFormState = function(o, s, f) {
3160
- return u.H.useFormState(o, s, f);
3161
- }, _.useFormStatus = function() {
3154
+ } else n.d.m(s);
3155
+ }, z.requestFormReset = function(s) {
3156
+ n.d.r(s);
3157
+ }, z.unstable_batchedUpdates = function(s, o) {
3158
+ return s(o);
3159
+ }, z.useFormState = function(s, o, f) {
3160
+ return u.H.useFormState(s, o, f);
3161
+ }, z.useFormStatus = function() {
3162
3162
  return u.H.useHostTransitionStatus();
3163
- }, _.version = "19.1.0", _;
3163
+ }, z.version = "19.1.0", z;
3164
3164
  }
3165
- var W = {};
3165
+ var _ = {};
3166
3166
  /**
3167
3167
  * @license React
3168
3168
  * react-dom.development.js
@@ -3177,10 +3177,10 @@ function ki() {
3177
3177
  return xt || (xt = 1, process.env.NODE_ENV !== "production" && function() {
3178
3178
  function e() {
3179
3179
  }
3180
- function t(l) {
3181
- return "" + l;
3180
+ function t(d) {
3181
+ return "" + d;
3182
3182
  }
3183
- function r(l, d, h) {
3183
+ function r(d, l, h) {
3184
3184
  var p = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
3185
3185
  try {
3186
3186
  t(p);
@@ -3192,36 +3192,36 @@ function ki() {
3192
3192
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
3193
3193
  typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object"
3194
3194
  ), t(p)), {
3195
- $$typeof: s,
3195
+ $$typeof: o,
3196
3196
  key: p == null ? null : "" + p,
3197
- children: l,
3198
- containerInfo: d,
3197
+ children: d,
3198
+ containerInfo: l,
3199
3199
  implementation: h
3200
3200
  };
3201
3201
  }
3202
- function n(l, d) {
3203
- if (l === "font") return "";
3204
- if (typeof d == "string")
3205
- return d === "use-credentials" ? d : "";
3202
+ function n(d, l) {
3203
+ if (d === "font") return "";
3204
+ if (typeof l == "string")
3205
+ return l === "use-credentials" ? l : "";
3206
3206
  }
3207
- function i(l) {
3208
- return l === null ? "`null`" : l === void 0 ? "`undefined`" : l === "" ? "an empty string" : 'something with type "' + typeof l + '"';
3207
+ function i(d) {
3208
+ return d === null ? "`null`" : d === void 0 ? "`undefined`" : d === "" ? "an empty string" : 'something with type "' + typeof d + '"';
3209
3209
  }
3210
- function a(l) {
3211
- return l === null ? "`null`" : l === void 0 ? "`undefined`" : l === "" ? "an empty string" : typeof l == "string" ? JSON.stringify(l) : typeof l == "number" ? "`" + l + "`" : 'something with type "' + typeof l + '"';
3210
+ function a(d) {
3211
+ return d === null ? "`null`" : d === void 0 ? "`undefined`" : d === "" ? "an empty string" : typeof d == "string" ? JSON.stringify(d) : typeof d == "number" ? "`" + d + "`" : 'something with type "' + typeof d + '"';
3212
3212
  }
3213
3213
  function u() {
3214
- var l = f.H;
3215
- return l === null && console.error(
3214
+ var d = f.H;
3215
+ return d === null && console.error(
3216
3216
  `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
3217
3217
  1. You might have mismatching versions of React and the renderer (such as React DOM)
3218
3218
  2. You might be breaking the Rules of Hooks
3219
3219
  3. You might have more than one copy of React in the same app
3220
3220
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
3221
- ), l;
3221
+ ), d;
3222
3222
  }
3223
3223
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
3224
- var c = Nt, o = {
3224
+ var c = Nt, s = {
3225
3225
  d: {
3226
3226
  f: e,
3227
3227
  r: function() {
@@ -3239,151 +3239,151 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3239
3239
  },
3240
3240
  p: 0,
3241
3241
  findDOMNode: null
3242
- }, s = Symbol.for("react.portal"), f = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3242
+ }, o = Symbol.for("react.portal"), f = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
3243
3243
  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(
3244
3244
  "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"
3245
- ), W.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = o, W.createPortal = function(l, d) {
3245
+ ), _.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, _.createPortal = function(d, l) {
3246
3246
  var h = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
3247
- if (!d || d.nodeType !== 1 && d.nodeType !== 9 && d.nodeType !== 11)
3247
+ if (!l || l.nodeType !== 1 && l.nodeType !== 9 && l.nodeType !== 11)
3248
3248
  throw Error("Target container is not a DOM element.");
3249
- return r(l, d, null, h);
3250
- }, W.flushSync = function(l) {
3251
- var d = f.T, h = o.p;
3249
+ return r(d, l, null, h);
3250
+ }, _.flushSync = function(d) {
3251
+ var l = f.T, h = s.p;
3252
3252
  try {
3253
- if (f.T = null, o.p = 2, l)
3254
- return l();
3253
+ if (f.T = null, s.p = 2, d)
3254
+ return d();
3255
3255
  } finally {
3256
- f.T = d, o.p = h, o.d.f() && console.error(
3256
+ f.T = l, s.p = h, s.d.f() && console.error(
3257
3257
  "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."
3258
3258
  );
3259
3259
  }
3260
- }, W.preconnect = function(l, d) {
3261
- typeof l == "string" && l ? d != null && typeof d != "object" ? console.error(
3260
+ }, _.preconnect = function(d, l) {
3261
+ typeof d == "string" && d ? l != null && typeof l != "object" ? console.error(
3262
3262
  "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.",
3263
- a(d)
3264
- ) : d != null && typeof d.crossOrigin != "string" && console.error(
3263
+ a(l)
3264
+ ) : l != null && typeof l.crossOrigin != "string" && console.error(
3265
3265
  "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
3266
- i(d.crossOrigin)
3266
+ i(l.crossOrigin)
3267
3267
  ) : console.error(
3268
3268
  "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
3269
- i(l)
3270
- ), typeof l == "string" && (d ? (d = d.crossOrigin, d = typeof d == "string" ? d === "use-credentials" ? d : "" : void 0) : d = null, o.d.C(l, d));
3271
- }, W.prefetchDNS = function(l) {
3272
- if (typeof l != "string" || !l)
3269
+ i(d)
3270
+ ), typeof d == "string" && (l ? (l = l.crossOrigin, l = typeof l == "string" ? l === "use-credentials" ? l : "" : void 0) : l = null, s.d.C(d, l));
3271
+ }, _.prefetchDNS = function(d) {
3272
+ if (typeof d != "string" || !d)
3273
3273
  console.error(
3274
3274
  "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
3275
- i(l)
3275
+ i(d)
3276
3276
  );
3277
3277
  else if (1 < arguments.length) {
3278
- var d = arguments[1];
3279
- typeof d == "object" && d.hasOwnProperty("crossOrigin") ? console.error(
3278
+ var l = arguments[1];
3279
+ typeof l == "object" && l.hasOwnProperty("crossOrigin") ? console.error(
3280
3280
  "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
3281
- a(d)
3281
+ a(l)
3282
3282
  ) : console.error(
3283
3283
  "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
3284
- a(d)
3284
+ a(l)
3285
3285
  );
3286
3286
  }
3287
- typeof l == "string" && o.d.D(l);
3288
- }, W.preinit = function(l, d) {
3289
- if (typeof l == "string" && l ? d == null || typeof d != "object" ? console.error(
3287
+ typeof d == "string" && s.d.D(d);
3288
+ }, _.preinit = function(d, l) {
3289
+ if (typeof d == "string" && d ? l == null || typeof l != "object" ? console.error(
3290
3290
  "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.",
3291
- a(d)
3292
- ) : d.as !== "style" && d.as !== "script" && console.error(
3291
+ a(l)
3292
+ ) : l.as !== "style" && l.as !== "script" && console.error(
3293
3293
  'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
3294
- a(d.as)
3294
+ a(l.as)
3295
3295
  ) : console.error(
3296
3296
  "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
3297
- i(l)
3298
- ), typeof l == "string" && d && typeof d.as == "string") {
3299
- var h = d.as, p = n(h, d.crossOrigin), g = typeof d.integrity == "string" ? d.integrity : void 0, y = typeof d.fetchPriority == "string" ? d.fetchPriority : void 0;
3300
- h === "style" ? o.d.S(
3301
- l,
3302
- typeof d.precedence == "string" ? d.precedence : void 0,
3297
+ i(d)
3298
+ ), typeof d == "string" && l && typeof l.as == "string") {
3299
+ var h = l.as, p = n(h, l.crossOrigin), g = typeof l.integrity == "string" ? l.integrity : void 0, y = typeof l.fetchPriority == "string" ? l.fetchPriority : void 0;
3300
+ h === "style" ? s.d.S(
3301
+ d,
3302
+ typeof l.precedence == "string" ? l.precedence : void 0,
3303
3303
  {
3304
3304
  crossOrigin: p,
3305
3305
  integrity: g,
3306
3306
  fetchPriority: y
3307
3307
  }
3308
- ) : h === "script" && o.d.X(l, {
3308
+ ) : h === "script" && s.d.X(d, {
3309
3309
  crossOrigin: p,
3310
3310
  integrity: g,
3311
3311
  fetchPriority: y,
3312
- nonce: typeof d.nonce == "string" ? d.nonce : void 0
3312
+ nonce: typeof l.nonce == "string" ? l.nonce : void 0
3313
3313
  });
3314
3314
  }
3315
- }, W.preinitModule = function(l, d) {
3315
+ }, _.preinitModule = function(d, l) {
3316
3316
  var h = "";
3317
- 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)
3317
+ if (typeof d == "string" && d || (h += " The `href` argument encountered was " + i(d) + "."), l !== void 0 && typeof l != "object" ? h += " The `options` argument encountered was " + i(l) + "." : l && "as" in l && l.as !== "script" && (h += " The `as` option encountered was " + a(l.as) + "."), h)
3318
3318
  console.error(
3319
3319
  "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
3320
3320
  h
3321
3321
  );
3322
3322
  else
3323
- switch (h = d && typeof d.as == "string" ? d.as : "script", h) {
3323
+ switch (h = l && typeof l.as == "string" ? l.as : "script", h) {
3324
3324
  case "script":
3325
3325
  break;
3326
3326
  default:
3327
3327
  h = a(h), console.error(
3328
3328
  'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
3329
3329
  h,
3330
- l
3330
+ d
3331
3331
  );
3332
3332
  }
3333
- typeof l == "string" && (typeof d == "object" && d !== null ? (d.as == null || d.as === "script") && (h = n(
3334
- d.as,
3335
- d.crossOrigin
3336
- ), o.d.M(l, {
3333
+ typeof d == "string" && (typeof l == "object" && l !== null ? (l.as == null || l.as === "script") && (h = n(
3334
+ l.as,
3335
+ l.crossOrigin
3336
+ ), s.d.M(d, {
3337
3337
  crossOrigin: h,
3338
- integrity: typeof d.integrity == "string" ? d.integrity : void 0,
3339
- nonce: typeof d.nonce == "string" ? d.nonce : void 0
3340
- })) : d == null && o.d.M(l));
3341
- }, W.preload = function(l, d) {
3338
+ integrity: typeof l.integrity == "string" ? l.integrity : void 0,
3339
+ nonce: typeof l.nonce == "string" ? l.nonce : void 0
3340
+ })) : l == null && s.d.M(d));
3341
+ }, _.preload = function(d, l) {
3342
3342
  var h = "";
3343
- 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(
3343
+ if (typeof d == "string" && d || (h += " The `href` argument encountered was " + i(d) + "."), l == null || typeof l != "object" ? h += " The `options` argument encountered was " + i(l) + "." : typeof l.as == "string" && l.as || (h += " The `as` option encountered was " + i(l.as) + "."), h && console.error(
3344
3344
  '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',
3345
3345
  h
3346
- ), typeof l == "string" && typeof d == "object" && d !== null && typeof d.as == "string") {
3347
- h = d.as;
3346
+ ), typeof d == "string" && typeof l == "object" && l !== null && typeof l.as == "string") {
3347
+ h = l.as;
3348
3348
  var p = n(
3349
3349
  h,
3350
- d.crossOrigin
3350
+ l.crossOrigin
3351
3351
  );
3352
- o.d.L(l, h, {
3352
+ s.d.L(d, h, {
3353
3353
  crossOrigin: p,
3354
- integrity: typeof d.integrity == "string" ? d.integrity : void 0,
3355
- nonce: typeof d.nonce == "string" ? d.nonce : void 0,
3356
- type: typeof d.type == "string" ? d.type : void 0,
3357
- fetchPriority: typeof d.fetchPriority == "string" ? d.fetchPriority : void 0,
3358
- referrerPolicy: typeof d.referrerPolicy == "string" ? d.referrerPolicy : void 0,
3359
- imageSrcSet: typeof d.imageSrcSet == "string" ? d.imageSrcSet : void 0,
3360
- imageSizes: typeof d.imageSizes == "string" ? d.imageSizes : void 0,
3361
- media: typeof d.media == "string" ? d.media : void 0
3354
+ integrity: typeof l.integrity == "string" ? l.integrity : void 0,
3355
+ nonce: typeof l.nonce == "string" ? l.nonce : void 0,
3356
+ type: typeof l.type == "string" ? l.type : void 0,
3357
+ fetchPriority: typeof l.fetchPriority == "string" ? l.fetchPriority : void 0,
3358
+ referrerPolicy: typeof l.referrerPolicy == "string" ? l.referrerPolicy : void 0,
3359
+ imageSrcSet: typeof l.imageSrcSet == "string" ? l.imageSrcSet : void 0,
3360
+ imageSizes: typeof l.imageSizes == "string" ? l.imageSizes : void 0,
3361
+ media: typeof l.media == "string" ? l.media : void 0
3362
3362
  });
3363
3363
  }
3364
- }, W.preloadModule = function(l, d) {
3364
+ }, _.preloadModule = function(d, l) {
3365
3365
  var h = "";
3366
- 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(
3366
+ typeof d == "string" && d || (h += " The `href` argument encountered was " + i(d) + "."), l !== void 0 && typeof l != "object" ? h += " The `options` argument encountered was " + i(l) + "." : l && "as" in l && typeof l.as != "string" && (h += " The `as` option encountered was " + i(l.as) + "."), h && console.error(
3367
3367
  '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',
3368
3368
  h
3369
- ), typeof l == "string" && (d ? (h = n(
3370
- d.as,
3371
- d.crossOrigin
3372
- ), o.d.m(l, {
3373
- as: typeof d.as == "string" && d.as !== "script" ? d.as : void 0,
3369
+ ), typeof d == "string" && (l ? (h = n(
3370
+ l.as,
3371
+ l.crossOrigin
3372
+ ), s.d.m(d, {
3373
+ as: typeof l.as == "string" && l.as !== "script" ? l.as : void 0,
3374
3374
  crossOrigin: h,
3375
- integrity: typeof d.integrity == "string" ? d.integrity : void 0
3376
- })) : o.d.m(l));
3377
- }, W.requestFormReset = function(l) {
3378
- o.d.r(l);
3379
- }, W.unstable_batchedUpdates = function(l, d) {
3380
- return l(d);
3381
- }, W.useFormState = function(l, d, h) {
3382
- return u().useFormState(l, d, h);
3383
- }, W.useFormStatus = function() {
3375
+ integrity: typeof l.integrity == "string" ? l.integrity : void 0
3376
+ })) : s.d.m(d));
3377
+ }, _.requestFormReset = function(d) {
3378
+ s.d.r(d);
3379
+ }, _.unstable_batchedUpdates = function(d, l) {
3380
+ return d(l);
3381
+ }, _.useFormState = function(d, l, h) {
3382
+ return u().useFormState(d, l, h);
3383
+ }, _.useFormStatus = function() {
3384
3384
  return u().useHostTransitionStatus();
3385
- }, W.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3386
- }()), W;
3385
+ }, _.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3386
+ }()), _;
3387
3387
  }
3388
3388
  var St;
3389
3389
  function Ni() {
@@ -3402,14 +3402,14 @@ function Ni() {
3402
3402
  }
3403
3403
  return process.env.NODE_ENV === "production" ? (e(), ve.exports = Ri()) : ve.exports = ki(), ve.exports;
3404
3404
  }
3405
- var Ai = Ni(), k = function() {
3406
- return k = Object.assign || function(e) {
3405
+ var Ai = Ni(), R = function() {
3406
+ return R = Object.assign || function(e) {
3407
3407
  for (var t, r = 1, n = arguments.length; r < n; r++) {
3408
3408
  t = arguments[r];
3409
3409
  for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
3410
3410
  }
3411
3411
  return e;
3412
- }, k.apply(this, arguments);
3412
+ }, R.apply(this, arguments);
3413
3413
  }, Ot = {
3414
3414
  width: "100%",
3415
3415
  height: "10px",
@@ -3428,23 +3428,23 @@ var Ai = Ni(), k = function() {
3428
3428
  position: "absolute",
3429
3429
  zIndex: 1
3430
3430
  }, zi = {
3431
- top: k(k({}, Ot), { top: "-5px" }),
3432
- right: k(k({}, Dt), { left: void 0, right: "-5px" }),
3433
- bottom: k(k({}, Ot), { top: void 0, bottom: "-5px" }),
3434
- left: k(k({}, Dt), { left: "-5px" }),
3435
- topRight: k(k({}, be), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
3436
- bottomRight: k(k({}, be), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
3437
- bottomLeft: k(k({}, be), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
3438
- topLeft: k(k({}, be), { left: "-10px", top: "-10px", cursor: "nw-resize" })
3431
+ top: R(R({}, Ot), { top: "-5px" }),
3432
+ right: R(R({}, Dt), { left: void 0, right: "-5px" }),
3433
+ bottom: R(R({}, Ot), { top: void 0, bottom: "-5px" }),
3434
+ left: R(R({}, Dt), { left: "-5px" }),
3435
+ topRight: R(R({}, be), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
3436
+ bottomRight: R(R({}, be), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
3437
+ bottomLeft: R(R({}, be), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
3438
+ topLeft: R(R({}, be), { left: "-10px", top: "-10px", cursor: "nw-resize" })
3439
3439
  }, _i = Jt(function(e) {
3440
- var t = e.onResizeStart, r = e.direction, n = e.children, i = e.replaceStyles, a = e.className, u = Ve(function(s) {
3441
- t(s, r);
3442
- }, [t, r]), c = Ve(function(s) {
3443
- t(s, r);
3444
- }, [t, r]), o = Zt(function() {
3445
- return k(k({ position: "absolute", userSelect: "none" }, zi[r]), i ?? {});
3440
+ var t = e.onResizeStart, r = e.direction, n = e.children, i = e.replaceStyles, a = e.className, u = Ve(function(o) {
3441
+ t(o, r);
3442
+ }, [t, r]), c = Ve(function(o) {
3443
+ t(o, r);
3444
+ }, [t, r]), s = Zt(function() {
3445
+ return R(R({ position: "absolute", userSelect: "none" }, zi[r]), i ?? {});
3446
3446
  }, [i, r]);
3447
- return m("div", { className: a || void 0, style: o, onMouseDown: u, onTouchStart: c, children: n });
3447
+ return m("div", { className: a || void 0, style: s, onMouseDown: u, onTouchStart: c, children: n });
3448
3448
  }), Wi = /* @__PURE__ */ function() {
3449
3449
  var e = function(t, r) {
3450
3450
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
@@ -3462,14 +3462,14 @@ var Ai = Ni(), k = function() {
3462
3462
  }
3463
3463
  t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
3464
3464
  };
3465
- }(), H = function() {
3466
- return H = Object.assign || function(e) {
3465
+ }(), j = function() {
3466
+ return j = Object.assign || function(e) {
3467
3467
  for (var t, r = 1, n = arguments.length; r < n; r++) {
3468
3468
  t = arguments[r];
3469
3469
  for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
3470
3470
  }
3471
3471
  return e;
3472
- }, H.apply(this, arguments);
3472
+ }, j.apply(this, arguments);
3473
3473
  }, Ci = {
3474
3474
  width: "auto",
3475
3475
  height: "auto"
@@ -3563,14 +3563,14 @@ var Ai = Ni(), k = function() {
3563
3563
  }, c.appendBase = function() {
3564
3564
  if (!c.resizable || !c.window)
3565
3565
  return null;
3566
- var o = c.parentNode;
3567
- if (!o)
3568
- return null;
3569
- var s = c.window.document.createElement("div");
3570
- return s.style.width = "100%", s.style.height = "100%", s.style.position = "absolute", s.style.transform = "scale(0, 0)", s.style.left = "0", s.style.flex = "0 0 100%", s.classList ? s.classList.add(Et) : s.className += Et, o.appendChild(s), s;
3571
- }, c.removeBase = function(o) {
3572
3566
  var s = c.parentNode;
3573
- s && s.removeChild(o);
3567
+ if (!s)
3568
+ return null;
3569
+ var o = c.window.document.createElement("div");
3570
+ 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;
3571
+ }, c.removeBase = function(s) {
3572
+ var o = c.parentNode;
3573
+ o && o.removeChild(s);
3574
3574
  }, c.state = {
3575
3575
  isResizing: !1,
3576
3576
  width: (i = (n = c.propsSize) === null || n === void 0 ? void 0 : n.width) !== null && i !== void 0 ? i : "auto",
@@ -3630,14 +3630,14 @@ var Ai = Ni(), k = function() {
3630
3630
  }), Object.defineProperty(t.prototype, "sizeStyle", {
3631
3631
  get: function() {
3632
3632
  var r = this, n = this.props.size, i = function(c) {
3633
- var o;
3633
+ var s;
3634
3634
  if (typeof r.state[c] > "u" || r.state[c] === "auto")
3635
3635
  return "auto";
3636
- if (r.propsSize && r.propsSize[c] && (!((o = r.propsSize[c]) === null || o === void 0) && o.toString().endsWith("%"))) {
3636
+ if (r.propsSize && r.propsSize[c] && (!((s = r.propsSize[c]) === null || s === void 0) && s.toString().endsWith("%"))) {
3637
3637
  if (r.state[c].toString().endsWith("%"))
3638
3638
  return r.state[c].toString();
3639
- var s = r.getParentSize(), f = Number(r.state[c].toString().replace("px", "")), l = f / s[c] * 100;
3640
- return "".concat(l, "%");
3639
+ var o = r.getParentSize(), f = Number(r.state[c].toString().replace("px", "")), d = f / o[c] * 100;
3640
+ return "".concat(d, "%");
3641
3641
  }
3642
3642
  return ze(r.state[c]);
3643
3643
  }, 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");
@@ -3680,22 +3680,22 @@ var Ai = Ni(), k = function() {
3680
3680
  var i = this.propsSize && this.propsSize[n];
3681
3681
  return this.state[n] === "auto" && this.state.original[n] === r && (typeof i > "u" || i === "auto") ? "auto" : r;
3682
3682
  }, t.prototype.calculateNewMaxFromBoundary = function(r, n) {
3683
- var i = this.props.boundsByDirection, a = this.state.direction, u = i && ee("left", a), c = i && ee("top", a), o, s;
3683
+ var i = this.props.boundsByDirection, a = this.state.direction, u = i && ee("left", a), c = i && ee("top", a), s, o;
3684
3684
  if (this.props.bounds === "parent") {
3685
3685
  var f = this.parentNode;
3686
- f && (o = u ? this.resizableRight - this.parentLeft : f.offsetWidth + (this.parentLeft - this.resizableLeft), s = c ? this.resizableBottom - this.parentTop : f.offsetHeight + (this.parentTop - this.resizableTop));
3687
- } else this.props.bounds === "window" ? this.window && (o = u ? this.resizableRight : this.window.innerWidth - this.resizableLeft, s = c ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (o = u ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), s = c ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
3688
- return o && Number.isFinite(o) && (r = r && r < o ? r : o), s && Number.isFinite(s) && (n = n && n < s ? n : s), { maxWidth: r, maxHeight: n };
3686
+ 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));
3687
+ } 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));
3688
+ 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 };
3689
3689
  }, t.prototype.calculateNewSizeFromDirection = function(r, n) {
3690
- var i = this.props.scale || 1, a = Hi(this.props.resizeRatio || 1), u = a[0], c = a[1], o = this.state, s = o.direction, f = o.original, l = this.props, d = l.lockAspectRatio, h = l.lockAspectRatioExtraHeight, p = l.lockAspectRatioExtraWidth, g = f.width, y = f.height, b = h || 0, w = p || 0;
3691
- return ee("right", s) && (g = f.width + (r - f.x) * u / i, d && (y = (g - w) / this.ratio + b)), ee("left", s) && (g = f.width - (r - f.x) * u / i, d && (y = (g - w) / this.ratio + b)), ee("bottom", s) && (y = f.height + (n - f.y) * c / i, d && (g = (y - b) * this.ratio + w)), ee("top", s) && (y = f.height - (n - f.y) * c / i, d && (g = (y - b) * this.ratio + w)), { newWidth: g, newHeight: y };
3690
+ var i = this.props.scale || 1, a = Hi(this.props.resizeRatio || 1), u = a[0], c = a[1], s = this.state, o = s.direction, f = s.original, d = this.props, l = d.lockAspectRatio, h = d.lockAspectRatioExtraHeight, p = d.lockAspectRatioExtraWidth, g = f.width, y = f.height, b = h || 0, w = p || 0;
3691
+ return ee("right", o) && (g = f.width + (r - f.x) * u / i, l && (y = (g - w) / this.ratio + b)), ee("left", o) && (g = f.width - (r - f.x) * u / i, l && (y = (g - w) / this.ratio + b)), ee("bottom", o) && (y = f.height + (n - f.y) * c / i, l && (g = (y - b) * this.ratio + w)), ee("top", o) && (y = f.height - (n - f.y) * c / i, l && (g = (y - b) * this.ratio + w)), { newWidth: g, newHeight: y };
3692
3692
  }, t.prototype.calculateNewSizeFromAspectRatio = function(r, n, i, a) {
3693
- var u = this.props, c = u.lockAspectRatio, o = u.lockAspectRatioExtraHeight, s = 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, p = o || 0, g = s || 0;
3693
+ var u = this.props, c = u.lockAspectRatio, s = u.lockAspectRatioExtraHeight, o = u.lockAspectRatioExtraWidth, f = typeof a.width > "u" ? 10 : a.width, d = typeof i.width > "u" || i.width < 0 ? r : i.width, l = typeof a.height > "u" ? 10 : a.height, h = typeof i.height > "u" || i.height < 0 ? n : i.height, p = s || 0, g = o || 0;
3694
3694
  if (c) {
3695
- var y = (d - p) * this.ratio + g, b = (h - p) * this.ratio + g, w = (f - g) / this.ratio + p, S = (l - g) / this.ratio + p, x = Math.max(f, y), M = Math.min(l, b), O = Math.max(d, w), z = Math.min(h, S);
3696
- r = we(r, x, M), n = we(n, O, z);
3695
+ var y = (l - p) * this.ratio + g, b = (h - p) * this.ratio + g, w = (f - g) / this.ratio + p, S = (d - g) / this.ratio + p, x = Math.max(f, y), M = Math.min(d, b), O = Math.max(l, w), C = Math.min(h, S);
3696
+ r = we(r, x, M), n = we(n, O, C);
3697
3697
  } else
3698
- r = we(r, f, l), n = we(n, d, h);
3698
+ r = we(r, f, d), n = we(n, l, h);
3699
3699
  return { newWidth: r, newHeight: n };
3700
3700
  }, t.prototype.setBoundingClientRect = function() {
3701
3701
  var r = 1 / (this.props.scale || 1);
@@ -3711,8 +3711,8 @@ var Ai = Ni(), k = function() {
3711
3711
  this.targetLeft = a.left * r, this.targetTop = a.top * r;
3712
3712
  }
3713
3713
  if (this.resizable) {
3714
- var u = this.resizable.getBoundingClientRect(), c = u.left, o = u.top, s = u.right, f = u.bottom;
3715
- this.resizableLeft = c * r, this.resizableRight = s * r, this.resizableTop = o * r, this.resizableBottom = f * r;
3714
+ var u = this.resizable.getBoundingClientRect(), c = u.left, s = u.top, o = u.right, f = u.bottom;
3715
+ this.resizableLeft = c * r, this.resizableRight = o * r, this.resizableTop = s * r, this.resizableBottom = f * r;
3716
3716
  }
3717
3717
  }, t.prototype.onResizeStart = function(r, n) {
3718
3718
  if (!(!this.resizable || !this.window)) {
@@ -3723,16 +3723,16 @@ var Ai = Ni(), k = function() {
3723
3723
  return;
3724
3724
  }
3725
3725
  this.props.size && (typeof this.props.size.height < "u" && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), typeof this.props.size.width < "u" && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height;
3726
- var c, o = this.window.getComputedStyle(this.resizable);
3727
- if (o.flexBasis !== "auto") {
3728
- var s = this.parentNode;
3729
- if (s) {
3730
- var f = this.window.getComputedStyle(s).flexDirection;
3731
- this.flexDir = f.startsWith("row") ? "row" : "column", c = o.flexBasis;
3726
+ var c, s = this.window.getComputedStyle(this.resizable);
3727
+ if (s.flexBasis !== "auto") {
3728
+ var o = this.parentNode;
3729
+ if (o) {
3730
+ var f = this.window.getComputedStyle(o).flexDirection;
3731
+ this.flexDir = f.startsWith("row") ? "row" : "column", c = s.flexBasis;
3732
3732
  }
3733
3733
  }
3734
3734
  this.setBoundingClientRect(), this.bindEvents();
3735
- var l = {
3735
+ var d = {
3736
3736
  original: {
3737
3737
  x: i,
3738
3738
  y: a,
@@ -3740,11 +3740,11 @@ var Ai = Ni(), k = function() {
3740
3740
  height: this.size.height
3741
3741
  },
3742
3742
  isResizing: !0,
3743
- backgroundStyle: H(H({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(r.target).cursor || "auto" }),
3743
+ backgroundStyle: j(j({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(r.target).cursor || "auto" }),
3744
3744
  direction: n,
3745
3745
  flexBasis: c
3746
3746
  };
3747
- this.setState(l);
3747
+ this.setState(d);
3748
3748
  }
3749
3749
  }, t.prototype.onMouseMove = function(r) {
3750
3750
  var n = this;
@@ -3754,41 +3754,41 @@ var Ai = Ni(), k = function() {
3754
3754
  r.preventDefault(), r.stopPropagation();
3755
3755
  } catch {
3756
3756
  }
3757
- var i = this.props, a = i.maxWidth, u = i.maxHeight, c = i.minWidth, o = i.minHeight, s = 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, p = l.width, g = l.height, y = this.getParentSize(), b = Ii(y, this.window.innerWidth, this.window.innerHeight, a, u, c, o);
3758
- a = b.maxWidth, u = b.maxHeight, c = b.minWidth, o = b.minHeight;
3759
- var w = this.calculateNewSizeFromDirection(s, f), S = w.newHeight, x = w.newWidth, M = this.calculateNewMaxFromBoundary(a, u);
3757
+ 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, d = this.state, l = d.direction, h = d.original, p = d.width, g = d.height, y = this.getParentSize(), b = Ii(y, this.window.innerWidth, this.window.innerHeight, a, u, c, s);
3758
+ a = b.maxWidth, u = b.maxHeight, c = b.minWidth, s = b.minHeight;
3759
+ var w = this.calculateNewSizeFromDirection(o, f), S = w.newHeight, x = w.newWidth, M = this.calculateNewMaxFromBoundary(a, u);
3760
3760
  this.props.snap && this.props.snap.x && (x = Mt(x, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (S = Mt(S, this.props.snap.y, this.props.snapGap));
3761
- var O = this.calculateNewSizeFromAspectRatio(x, S, { width: M.maxWidth, height: M.maxHeight }, { width: c, height: o });
3761
+ var O = this.calculateNewSizeFromAspectRatio(x, S, { width: M.maxWidth, height: M.maxHeight }, { width: c, height: s });
3762
3762
  if (x = O.newWidth, S = O.newHeight, this.props.grid) {
3763
- var z = Tt(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), E = Tt(S, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), v = this.props.snapGap || 0, D = v === 0 || Math.abs(z - x) <= v ? z : x, P = v === 0 || Math.abs(E - S) <= v ? E : S;
3764
- x = D, S = P;
3763
+ var C = Tt(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), E = Tt(S, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), N = this.props.snapGap || 0, L = N === 0 || Math.abs(C - x) <= N ? C : x, v = N === 0 || Math.abs(E - S) <= N ? E : S;
3764
+ x = L, S = v;
3765
3765
  }
3766
- var R = {
3766
+ var D = {
3767
3767
  width: x - h.width,
3768
3768
  height: S - h.height
3769
3769
  };
3770
- if (this.delta = R, p && typeof p == "string") {
3770
+ if (this.delta = D, p && typeof p == "string") {
3771
3771
  if (p.endsWith("%")) {
3772
- var L = x / y.width * 100;
3773
- x = "".concat(L, "%");
3772
+ var P = x / y.width * 100;
3773
+ x = "".concat(P, "%");
3774
3774
  } else if (p.endsWith("vw")) {
3775
- var X = x / this.window.innerWidth * 100;
3776
- x = "".concat(X, "vw");
3775
+ var I = x / this.window.innerWidth * 100;
3776
+ x = "".concat(I, "vw");
3777
3777
  } else if (p.endsWith("vh")) {
3778
- var J = x / this.window.innerHeight * 100;
3779
- x = "".concat(J, "vh");
3778
+ var Y = x / this.window.innerHeight * 100;
3779
+ x = "".concat(Y, "vh");
3780
3780
  }
3781
3781
  }
3782
3782
  if (g && typeof g == "string") {
3783
3783
  if (g.endsWith("%")) {
3784
- var L = S / y.height * 100;
3785
- S = "".concat(L, "%");
3784
+ var P = S / y.height * 100;
3785
+ S = "".concat(P, "%");
3786
3786
  } else if (g.endsWith("vw")) {
3787
- var X = S / this.window.innerWidth * 100;
3788
- S = "".concat(X, "vw");
3787
+ var I = S / this.window.innerWidth * 100;
3788
+ S = "".concat(I, "vw");
3789
3789
  } else if (g.endsWith("vh")) {
3790
- var J = S / this.window.innerHeight * 100;
3791
- S = "".concat(J, "vh");
3790
+ var Y = S / this.window.innerHeight * 100;
3791
+ S = "".concat(Y, "vh");
3792
3792
  }
3793
3793
  }
3794
3794
  var A = {
@@ -3796,35 +3796,35 @@ var Ai = Ni(), k = function() {
3796
3796
  height: this.createSizeForCssProperty(S, "height")
3797
3797
  };
3798
3798
  this.flexDir === "row" ? A.flexBasis = A.width : this.flexDir === "column" && (A.flexBasis = A.height);
3799
- var U = this.state.width !== A.width, Vt = this.state.height !== A.height, Qt = this.state.flexBasis !== A.flexBasis, Ke = U || Vt || Qt;
3799
+ var G = this.state.width !== A.width, Vt = this.state.height !== A.height, Qt = this.state.flexBasis !== A.flexBasis, Ke = G || Vt || Qt;
3800
3800
  Ke && Ai.flushSync(function() {
3801
3801
  n.setState(A);
3802
- }), this.props.onResize && Ke && this.props.onResize(r, d, this.resizable, R);
3802
+ }), this.props.onResize && Ke && this.props.onResize(r, l, this.resizable, D);
3803
3803
  }
3804
3804
  }, t.prototype.onMouseUp = function(r) {
3805
3805
  var n, i, a = this.state, u = a.isResizing, c = a.direction;
3806
3806
  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({
3807
3807
  isResizing: !1,
3808
- backgroundStyle: H(H({}, this.state.backgroundStyle), { cursor: "auto" })
3808
+ backgroundStyle: j(j({}, this.state.backgroundStyle), { cursor: "auto" })
3809
3809
  }));
3810
3810
  }, t.prototype.updateSize = function(r) {
3811
3811
  var n, i;
3812
3812
  this.setState({ width: (n = r.width) !== null && n !== void 0 ? n : "auto", height: (i = r.height) !== null && i !== void 0 ? i : "auto" });
3813
3813
  }, t.prototype.renderResizer = function() {
3814
- var r = this, n = this.props, i = n.enable, a = n.handleStyles, u = n.handleClasses, c = n.handleWrapperStyle, o = n.handleWrapperClass, s = n.handleComponent;
3814
+ var r = this, n = this.props, i = n.enable, a = n.handleStyles, u = n.handleClasses, c = n.handleWrapperStyle, s = n.handleWrapperClass, o = n.handleComponent;
3815
3815
  if (!i)
3816
3816
  return null;
3817
- var f = Object.keys(i).map(function(l) {
3818
- return i[l] !== !1 ? m(_i, { direction: l, onResizeStart: r.onResizeStart, replaceStyles: a && a[l], className: u && u[l], children: s && s[l] ? s[l] : null }, l) : null;
3817
+ var f = Object.keys(i).map(function(d) {
3818
+ return i[d] !== !1 ? m(_i, { direction: d, onResizeStart: r.onResizeStart, replaceStyles: a && a[d], className: u && u[d], children: o && o[d] ? o[d] : null }, d) : null;
3819
3819
  });
3820
- return m("div", { className: o, style: c, children: f });
3820
+ return m("div", { className: s, style: c, children: f });
3821
3821
  }, t.prototype.render = function() {
3822
3822
  var r = this, n = Object.keys(this.props).reduce(function(u, c) {
3823
3823
  return ji.indexOf(c) !== -1 || (u[c] = r.props[c]), u;
3824
- }, {}), 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 });
3824
+ }, {}), i = j(j(j({ 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 });
3825
3825
  this.state.flexBasis && (i.flexBasis = this.state.flexBasis);
3826
3826
  var a = this.props.as || "div";
3827
- return $(a, H({ style: i, className: this.props.className }, n, {
3827
+ return X(a, j({ style: i, className: this.props.className }, n, {
3828
3828
  // `ref` is after `extendsProps` to ensure this one wins over a version
3829
3829
  // passed in
3830
3830
  ref: function(u) {
@@ -3878,7 +3878,7 @@ const Yi = {
3878
3878
  settings: Yi,
3879
3879
  setSettings: () => {
3880
3880
  }
3881
- }, Kt = tr(Fi), Q = () => rr(Kt);
3881
+ }, Kt = tr(Fi), J = () => rr(Kt);
3882
3882
  function $i({
3883
3883
  item: e,
3884
3884
  rectangle: t,
@@ -3888,14 +3888,14 @@ function $i({
3888
3888
  onDragStart: a,
3889
3889
  onDrop: u,
3890
3890
  onUpdate: c,
3891
- onResizeStart: o
3891
+ onResizeStart: s
3892
3892
  }) {
3893
- const { settings: s } = Q(), f = re(null), l = re(null), [d, h] = V(t);
3893
+ const { settings: o } = J(), f = re(null), d = re(null), [l, h] = Q(t);
3894
3894
  return ne(() => {
3895
3895
  h(t);
3896
- }, [t]), ne(() => (Ie(f.current), Ie(l.current), Kr({
3896
+ }, [t]), ne(() => (Ie(f.current), Ie(d.current), Kr({
3897
3897
  element: f.current,
3898
- dragHandle: l.current,
3898
+ dragHandle: d.current,
3899
3899
  onDragStart: ({ source: p, location: g }) => {
3900
3900
  const y = te(p, g);
3901
3901
  a(y.absolute, y.relative);
@@ -3907,8 +3907,8 @@ function $i({
3907
3907
  u();
3908
3908
  },
3909
3909
  getInitialData: () => ({ ...e }),
3910
- canDrag: () => s.enableItemDragging
3911
- })), [s.enableItemDragging, e, i, a, u]), /* @__PURE__ */ m(
3910
+ canDrag: () => o.enableItemDragging
3911
+ })), [o.enableItemDragging, e, i, a, u]), /* @__PURE__ */ m(
3912
3912
  "div",
3913
3913
  {
3914
3914
  id: `timelane-item-${e.id}`,
@@ -3916,14 +3916,14 @@ function $i({
3916
3916
  "data-timelane-item-id": e.id,
3917
3917
  ref: f,
3918
3918
  style: {
3919
- width: `${d.width}px`,
3920
- height: `${d.height}px`,
3921
- minWidth: `${d.width}px`,
3922
- minHeight: `${d.height}px`,
3923
- maxWidth: `${d.width}px`,
3924
- maxHeight: `${d.height}px`,
3925
- top: `${d.y}px`,
3926
- left: `${d.x}px`
3919
+ width: `${l.width}px`,
3920
+ height: `${l.height}px`,
3921
+ minWidth: `${l.width}px`,
3922
+ minHeight: `${l.height}px`,
3923
+ maxWidth: `${l.width}px`,
3924
+ maxHeight: `${l.height}px`,
3925
+ top: `${l.y}px`,
3926
+ left: `${l.x}px`
3927
3927
  },
3928
3928
  onMouseDown: (p) => {
3929
3929
  p.stopPropagation();
@@ -3934,17 +3934,17 @@ function $i({
3934
3934
  children: /* @__PURE__ */ m(
3935
3935
  Bi,
3936
3936
  {
3937
- enable: s.enableItemResizing === !0 ? void 0 : s.enableItemResizing,
3937
+ enable: o.enableItemResizing === !0 ? void 0 : o.enableItemResizing,
3938
3938
  handleClasses: {
3939
3939
  left: "timelane-item-resize-handle timelane-item-resize-handle-left",
3940
3940
  right: "timelane-item-resize-handle timelane-item-resize-handle-right"
3941
3941
  },
3942
3942
  size: {
3943
- width: d.width,
3944
- height: d.height
3943
+ width: l.width,
3944
+ height: l.height
3945
3945
  },
3946
3946
  onResizeStart: () => {
3947
- o();
3947
+ s();
3948
3948
  },
3949
3949
  onResize: (p, g, y, b) => {
3950
3950
  h((w) => g === "right" ? {
@@ -3988,7 +3988,7 @@ function $i({
3988
3988
  }), c(w);
3989
3989
  },
3990
3990
  style: { overflow: "hidden" },
3991
- children: /* @__PURE__ */ m("div", { className: "timelane-item-drag-handle", ref: l, children: n })
3991
+ children: /* @__PURE__ */ m("div", { className: "timelane-item-drag-handle", ref: d, children: n })
3992
3992
  }
3993
3993
  )
3994
3994
  }
@@ -4003,29 +4003,29 @@ function qi({
4003
4003
  onDrag: a,
4004
4004
  onDrop: u,
4005
4005
  onUpdate: c,
4006
- onResizeStart: o
4006
+ onResizeStart: s
4007
4007
  }) {
4008
- const s = Ue(t, e, r, r), f = Xe(e, r, r);
4008
+ const o = Ue(t, e, r, r), f = Xe(e, r, r);
4009
4009
  return /* @__PURE__ */ m(
4010
4010
  $i,
4011
4011
  {
4012
4012
  item: t,
4013
- rectangle: s,
4013
+ rectangle: o,
4014
4014
  boundingRectangle: f,
4015
4015
  onDrag: a,
4016
4016
  onDragStart: i,
4017
4017
  onDrop: u,
4018
- onUpdate: (l) => {
4019
- const d = Gt(
4018
+ onUpdate: (d) => {
4019
+ const l = Gt(
4020
4020
  t,
4021
4021
  e,
4022
- l,
4022
+ d,
4023
4023
  r,
4024
4024
  r
4025
4025
  );
4026
- c(d);
4026
+ c(l);
4027
4027
  },
4028
- onResizeStart: o,
4028
+ onResizeStart: s,
4029
4029
  children: n
4030
4030
  }
4031
4031
  );
@@ -4051,135 +4051,136 @@ function Pt(e) {
4051
4051
  return "id" in e && "laneId" in e && "start" in e && "end" in e && "size" in e && "offset" in e;
4052
4052
  }
4053
4053
  function Ui({
4054
- lane: e,
4055
- items: t,
4056
- focused: r = !1,
4057
- onItemUpdate: n = () => {
4054
+ id: e,
4055
+ capacity: t = 100,
4056
+ items: r = [],
4057
+ focused: n = !1,
4058
+ onItemUpdate: i = () => {
4058
4059
  },
4059
- onMouseUp: i = () => {
4060
+ onMouseUp: a = () => {
4060
4061
  },
4061
- onClick: a = () => {
4062
+ onClick: u = () => {
4062
4063
  },
4063
- onDoubleClick: u = () => {
4064
+ onDoubleClick: c = () => {
4064
4065
  },
4065
- onContextMenu: c = () => {
4066
+ onContextMenu: s = () => {
4066
4067
  },
4067
4068
  renderItem: o = Gi,
4068
- onResizeStart: s = () => {
4069
+ onResizeStart: f = () => {
4069
4070
  }
4070
4071
  }) {
4071
- const { settings: f } = Q(), l = {
4072
- x: f.pixelsPerDay,
4073
- offsetX: f.pixelsPerDay / 2
4074
- }, d = Xe(e, f, f), [h, p] = V(null), [g, y] = V(
4072
+ const d = { id: e, capacity: t }, { settings: l } = J(), h = {
4073
+ x: l.pixelsPerDay,
4074
+ offsetX: l.pixelsPerDay / 2
4075
+ }, p = Xe(d, l, l), [g, y] = Q(null), [b, w] = Q(
4075
4076
  null
4076
4077
  );
4077
- function b(v) {
4078
+ function S(v) {
4078
4079
  const D = v.currentTarget.getBoundingClientRect();
4079
4080
  return He(
4080
4081
  pe(
4081
- f.start,
4082
- (v.clientX - D.left) / f.pixelsPerDay
4082
+ l.start,
4083
+ (v.clientX - D.left) / l.pixelsPerDay
4083
4084
  ),
4084
4085
  12
4085
4086
  );
4086
4087
  }
4087
- function w(v) {
4088
+ function x(v) {
4088
4089
  const D = v.currentTarget.getBoundingClientRect();
4089
- return (v.pageY - D.top) / D.height * e.capacity;
4090
+ return (v.pageY - D.top) / D.height * t;
4090
4091
  }
4091
- function S(v, D, P) {
4092
+ function M(v, D, P) {
4092
4093
  if (!Pt(P)) return;
4093
- const R = mi(
4094
- e,
4095
- t,
4094
+ const I = mi(
4095
+ d,
4096
+ r,
4096
4097
  P,
4097
4098
  v,
4098
4099
  D,
4099
- f,
4100
4100
  l,
4101
- f,
4102
- f.allowOverlaps
4101
+ h,
4102
+ l,
4103
+ l.allowOverlaps
4103
4104
  );
4104
- y(R);
4105
+ w(I);
4105
4106
  }
4106
- function x(v, D, P) {
4107
- if (!Pt(P) || g === null) return;
4108
- const R = Gt(
4107
+ function O(v, D, P) {
4108
+ if (!Pt(P) || b === null) return;
4109
+ const I = Gt(
4109
4110
  P,
4110
- e,
4111
- g,
4112
- f,
4113
- f
4111
+ d,
4112
+ b,
4113
+ l,
4114
+ l
4114
4115
  );
4115
- n(R), y(null);
4116
+ i(I), w(null);
4116
4117
  }
4117
- function M() {
4118
- y(null);
4118
+ function C() {
4119
+ w(null);
4119
4120
  }
4120
- function O(v, D) {
4121
- const P = b(v), R = w(v), L = Di(
4121
+ function E(v, D) {
4122
+ const P = S(v), I = x(v), Y = Di(
4122
4123
  P,
4123
- R,
4124
- e,
4125
- t,
4126
- f
4124
+ I,
4125
+ d,
4126
+ r,
4127
+ l
4127
4128
  );
4128
- D == "single" ? a(P, L, v) : u(P, L, v);
4129
+ D == "single" ? u(P, Y, v) : c(P, Y, v);
4129
4130
  }
4130
- const z = t.map((v) => ({
4131
+ const N = r.map((v) => ({
4131
4132
  id: v.id,
4132
- ...Ue(v, e, f, f)
4133
- })), E = z.flatMap(
4134
- (v) => z.map((D) => v.id < D.id ? xi(v, D) : null)
4133
+ ...Ue(v, d, l, l)
4134
+ })), L = N.flatMap(
4135
+ (v) => N.map((D) => v.id < D.id ? xi(v, D) : null)
4135
4136
  ).filter((v) => v !== null);
4136
4137
  return /* @__PURE__ */ m(
4137
4138
  "div",
4138
4139
  {
4139
- id: `timelane-lane-${e.id}`,
4140
- className: `timelane-lane ${r ? "timelane-lane-focused" : ""}`,
4141
- "data-timelane-lane-id": e.id,
4142
- style: d,
4143
- onMouseUp: i,
4144
- onClick: (v) => O(v, "single"),
4145
- onDoubleClick: (v) => O(v, "double"),
4140
+ id: `timelane-lane-${e}`,
4141
+ className: `timelane-lane ${n ? "timelane-lane-focused" : ""}`,
4142
+ "data-timelane-lane-id": e,
4143
+ style: p,
4144
+ onMouseUp: a,
4145
+ onClick: (v) => E(v, "single"),
4146
+ onDoubleClick: (v) => E(v, "double"),
4146
4147
  onContextMenu: (v) => {
4147
- c(b(v), v);
4148
+ s(S(v), v);
4148
4149
  },
4149
- children: /* @__PURE__ */ $(
4150
+ children: /* @__PURE__ */ X(
4150
4151
  Ei,
4151
4152
  {
4152
- onDrag: S,
4153
- onDragLeave: M,
4154
- onDrop: x,
4153
+ onDrag: M,
4154
+ onDragLeave: C,
4155
+ onDrop: O,
4155
4156
  children: [
4156
- t.map((v, D) => /* @__PURE__ */ m(
4157
+ r.map((v, D) => /* @__PURE__ */ m(
4157
4158
  qi,
4158
4159
  {
4159
4160
  item: v,
4160
- settings: f,
4161
- lane: e,
4161
+ settings: l,
4162
+ lane: d,
4162
4163
  onDragStart: () => {
4163
- p(v);
4164
+ y(v);
4164
4165
  },
4165
4166
  onDrag: () => {
4166
4167
  },
4167
4168
  onDrop: () => {
4168
- p(null);
4169
+ y(null);
4169
4170
  },
4170
- onUpdate: n,
4171
+ onUpdate: i,
4171
4172
  onResizeStart: () => {
4172
- s(v.payload);
4173
+ f(v.payload);
4173
4174
  },
4174
4175
  children: o(
4175
4176
  v,
4176
- h !== null && h.id === v.id
4177
+ g !== null && g.id === v.id
4177
4178
  )
4178
4179
  },
4179
4180
  D
4180
4181
  )),
4181
- g && /* @__PURE__ */ m(Pi, { ...g }),
4182
- E.map((v, D) => /* @__PURE__ */ m(Xi, { overlap: v }, D))
4182
+ b && /* @__PURE__ */ m(Pi, { ...b }),
4183
+ L.map((v, D) => /* @__PURE__ */ m(Xi, { overlap: v }, D))
4183
4184
  ]
4184
4185
  }
4185
4186
  )
@@ -4187,18 +4188,18 @@ function Ui({
4187
4188
  );
4188
4189
  }
4189
4190
  function Gi(e, t) {
4190
- return /* @__PURE__ */ $("div", { children: [
4191
+ return /* @__PURE__ */ X("div", { children: [
4191
4192
  e.id,
4192
4193
  " (",
4193
- j(e.start, "yyyy-mm-dd"),
4194
+ B(e.start, "yyyy-mm-dd"),
4194
4195
  " -",
4195
4196
  " ",
4196
- j(e.end, "yyyy-mm-dd"),
4197
+ B(e.end, "yyyy-mm-dd"),
4197
4198
  ")",
4198
4199
  t ? "dragging" : ""
4199
4200
  ] });
4200
4201
  }
4201
- function I({ children: e }) {
4202
+ function H({ children: e }) {
4202
4203
  const t = re(null);
4203
4204
  return /* @__PURE__ */ m(
4204
4205
  "div",
@@ -4257,36 +4258,36 @@ function ea({
4257
4258
  }
4258
4259
  return /* @__PURE__ */ m("div", { className: `timelane-layout-corner ${r}`, children: t });
4259
4260
  }
4260
- I.Header = Ki;
4261
- I.Body = Qi;
4262
- I.Background = Vi;
4263
- I.Footer = Ji;
4264
- I.Aside = Zi;
4265
- I.Corner = ea;
4261
+ H.Header = Ki;
4262
+ H.Body = Qi;
4263
+ H.Background = Vi;
4264
+ H.Footer = Ji;
4265
+ H.Aside = Zi;
4266
+ H.Corner = ea;
4266
4267
  function ta({
4267
4268
  children: e,
4268
4269
  onSelect: t
4269
4270
  }) {
4270
- const [r, n] = V([]), i = re(null), [a, u] = V(null), [c, o] = V(null);
4271
+ const [r, n] = Q([]), i = re(null), [a, u] = Q(null), [c, s] = Q(null);
4271
4272
  ne(() => Gr({
4272
- onDragStart: (d) => {
4273
- n([d.source.data.id]);
4273
+ onDragStart: (l) => {
4274
+ n([l.source.data.id]);
4274
4275
  }
4275
4276
  }), []), ne(() => {
4276
4277
  t(r);
4277
4278
  }, [t, r]);
4278
- function s(d) {
4279
- !d.shiftKey && !d.ctrlKey && n([]), u({ x: d.clientX, y: d.clientY });
4279
+ function o(l) {
4280
+ !l.shiftKey && !l.ctrlKey && n([]), u({ x: l.clientX, y: l.clientY });
4280
4281
  }
4281
- function f(d) {
4282
+ function f(l) {
4282
4283
  if (a) {
4283
4284
  const h = {
4284
- x: Math.min(d.clientX, a.x),
4285
- y: Math.min(d.clientY, a.y),
4286
- width: Math.abs(d.clientX - a.x),
4287
- height: Math.abs(d.clientY - a.y)
4288
- }, p = d.currentTarget.getBoundingClientRect();
4289
- o({
4285
+ x: Math.min(l.clientX, a.x),
4286
+ y: Math.min(l.clientY, a.y),
4287
+ width: Math.abs(l.clientX - a.x),
4288
+ height: Math.abs(l.clientY - a.y)
4289
+ }, p = l.currentTarget.getBoundingClientRect();
4290
+ s({
4290
4291
  ...h,
4291
4292
  x: h.x - p.left,
4292
4293
  y: h.y - p.top
@@ -4297,31 +4298,31 @@ function ta({
4297
4298
  }), (h.width > 5 || h.height > 5) && !i.current && (i.current = Rt, window.addEventListener("click", Rt, !0));
4298
4299
  }
4299
4300
  }
4300
- function l(d) {
4301
+ function d(l) {
4301
4302
  if (a && c) {
4302
- d.stopPropagation();
4303
+ l.stopPropagation();
4303
4304
  const h = {
4304
- x: Math.min(d.clientX, a.x),
4305
- y: Math.min(d.clientY, a.y),
4306
- width: Math.abs(d.clientX - a.x),
4307
- height: Math.abs(d.clientY - a.y)
4305
+ x: Math.min(l.clientX, a.x),
4306
+ y: Math.min(l.clientY, a.y),
4307
+ width: Math.abs(l.clientX - a.x),
4308
+ height: Math.abs(l.clientY - a.y)
4308
4309
  }, p = Array.from(
4309
4310
  document.querySelectorAll(".timelane-drop-target")
4310
4311
  ).filter((g) => le(g.getBoundingClientRect(), h)).map((g) => Array.from(g.querySelectorAll(".timelane-item"))).flatMap((g) => g).filter((g) => le(g.getBoundingClientRect(), h)).map((g) => g instanceof HTMLElement ? Number.parseInt(g.dataset.timelaneItemId || "-1") : -1).filter((g) => g > 0);
4311
- p.length > 0 && (d.shiftKey || d.ctrlKey ? n((g) => Array.from(/* @__PURE__ */ new Set([...g, ...p]))) : n(p)), document.querySelectorAll(".timelane-item-marked").forEach((g) => {
4312
+ p.length > 0 && (l.shiftKey || l.ctrlKey ? n((g) => Array.from(/* @__PURE__ */ new Set([...g, ...p]))) : n(p)), document.querySelectorAll(".timelane-item-marked").forEach((g) => {
4312
4313
  g.classList.remove("timelane-item-marked");
4313
4314
  });
4314
4315
  }
4315
- u(null), o(null), requestAnimationFrame(() => {
4316
+ u(null), s(null), requestAnimationFrame(() => {
4316
4317
  i.current && i.current !== null && (window.removeEventListener("click", i.current, !0), i.current = null);
4317
4318
  });
4318
4319
  }
4319
- return /* @__PURE__ */ $(
4320
+ return /* @__PURE__ */ X(
4320
4321
  "div",
4321
4322
  {
4322
- onMouseDown: s,
4323
+ onMouseDown: o,
4323
4324
  onMouseMove: f,
4324
- onMouseUp: l,
4325
+ onMouseUp: d,
4325
4326
  style: {
4326
4327
  position: "relative"
4327
4328
  },
@@ -4357,25 +4358,25 @@ function na({
4357
4358
  },
4358
4359
  children: t
4359
4360
  }) {
4360
- return /* @__PURE__ */ m(I.Body, { children: /* @__PURE__ */ m(ta, { onSelect: e, children: /* @__PURE__ */ m("div", { className: "timelane-body", children: t }) }) });
4361
+ return /* @__PURE__ */ m(H.Body, { children: /* @__PURE__ */ m(ta, { onSelect: e, children: /* @__PURE__ */ m("div", { className: "timelane-body", children: t }) }) });
4361
4362
  }
4362
4363
  function ia(e, t) {
4363
- const r = q(t, e) + 1;
4364
- return /* @__PURE__ */ m(Oe, { children: r > 4 ? j(e, "LLLL yyyy") : /* @__PURE__ */ m(Oe, {}) });
4364
+ const r = U(t, e) + 1;
4365
+ return /* @__PURE__ */ m(Oe, { children: r > 4 ? B(e, "LLLL yyyy") : /* @__PURE__ */ m(Oe, {}) });
4365
4366
  }
4366
4367
  function aa(e, t) {
4367
- const r = q(t, e) + 1, n = `KW ${j(e, "w")} (${j(
4368
+ const r = U(t, e) + 1, n = `KW ${B(e, "w")} (${B(
4368
4369
  e,
4369
4370
  "MM-dd"
4370
- )} - ${j(t, "MM-dd")}`;
4371
- return /* @__PURE__ */ m("div", { title: n, children: r > 2 ? /* @__PURE__ */ $(Oe, { children: [
4371
+ )} - ${B(t, "MM-dd")}`;
4372
+ return /* @__PURE__ */ m("div", { title: n, children: r > 2 ? /* @__PURE__ */ X(Oe, { children: [
4372
4373
  "KW ",
4373
- j(e, "w")
4374
+ B(e, "w")
4374
4375
  ] }) : /* @__PURE__ */ m(Oe, {}) });
4375
4376
  }
4376
4377
  function oa(e) {
4377
- const t = `${j(e, "yyyy-MM-dd")}`;
4378
- return /* @__PURE__ */ m("div", { title: t, children: j(e, "d") });
4378
+ const t = `${B(e, "yyyy-MM-dd")}`;
4379
+ return /* @__PURE__ */ m("div", { title: t, children: B(e, "d") });
4379
4380
  }
4380
4381
  function sa({
4381
4382
  range: e,
@@ -4390,16 +4391,16 @@ function sa({
4390
4391
  a < e.start && (a = e.start);
4391
4392
  let c = ci(a);
4392
4393
  c > e.end && (c = e.end);
4393
- const o = q(c, a) + 1;
4394
+ const s = U(c, a) + 1;
4394
4395
  return /* @__PURE__ */ m(
4395
4396
  "div",
4396
4397
  {
4397
4398
  className: "timelane-header-month-label",
4398
4399
  style: {
4399
- width: `${t.pixelsPerDay * o}px`
4400
+ width: `${t.pixelsPerDay * s}px`
4400
4401
  },
4401
- onClick: (s) => {
4402
- i({ firstDay: a, lastDay: c, e: s }), r(a);
4402
+ onClick: (o) => {
4403
+ i({ firstDay: a, lastDay: c, e: o }), r(a);
4403
4404
  },
4404
4405
  children: n(a, c)
4405
4406
  },
@@ -4420,16 +4421,16 @@ function ua({
4420
4421
  a < e.start && (a = e.start);
4421
4422
  let c = Yt(a) ? a : di(a);
4422
4423
  c > e.end && (c = e.end);
4423
- const o = q(c, a) + 1;
4424
+ const s = U(c, a) + 1;
4424
4425
  return /* @__PURE__ */ m(
4425
4426
  "div",
4426
4427
  {
4427
4428
  className: "timelane-header-week-label",
4428
4429
  style: {
4429
- width: `${t.pixelsPerDay * o}px`
4430
+ width: `${t.pixelsPerDay * s}px`
4430
4431
  },
4431
- onClick: (s) => {
4432
- i({ firstDay: a, lastDay: c, e: s }), r(a);
4432
+ onClick: (o) => {
4433
+ i({ firstDay: a, lastDay: c, e: o }), r(a);
4433
4434
  },
4434
4435
  children: n(a, c)
4435
4436
  },
@@ -4452,8 +4453,8 @@ function ca({
4452
4453
  {
4453
4454
  className: `timelane-header-day-label ${r && nn(r, u) ? "timelane-header-day-label-focused" : ""}`,
4454
4455
  style: { width: `${t.pixelsPerDay}px` },
4455
- onClick: (o) => {
4456
- a({ day: u, e: o }), n(u);
4456
+ onClick: (s) => {
4457
+ a({ day: u, e: s }), n(u);
4457
4458
  },
4458
4459
  children: i(u)
4459
4460
  },
@@ -4471,33 +4472,33 @@ function la({
4471
4472
  onDayClick: u,
4472
4473
  onWeekClick: c
4473
4474
  }) {
4474
- const { settings: o } = Q();
4475
- return /* @__PURE__ */ m(I.Header, { children: /* @__PURE__ */ $("div", { className: "timelane-header", children: [
4476
- o.showMonths && /* @__PURE__ */ m(
4475
+ const { settings: s } = J();
4476
+ return /* @__PURE__ */ m(H.Header, { children: /* @__PURE__ */ X("div", { className: "timelane-header", children: [
4477
+ s.showMonths && /* @__PURE__ */ m(
4477
4478
  sa,
4478
4479
  {
4479
- range: o,
4480
- pixels: o,
4480
+ range: s,
4481
+ pixels: s,
4481
4482
  setFocusedDay: t,
4482
4483
  render: r,
4483
4484
  onMonthClick: a
4484
4485
  }
4485
4486
  ),
4486
- o.showWeeks && /* @__PURE__ */ m(
4487
+ s.showWeeks && /* @__PURE__ */ m(
4487
4488
  ua,
4488
4489
  {
4489
- range: o,
4490
- pixels: o,
4490
+ range: s,
4491
+ pixels: s,
4491
4492
  setFocusedDay: t,
4492
4493
  render: n,
4493
4494
  onWeekClick: c
4494
4495
  }
4495
4496
  ),
4496
- o.showDays && /* @__PURE__ */ m(
4497
+ s.showDays && /* @__PURE__ */ m(
4497
4498
  ca,
4498
4499
  {
4499
- range: o,
4500
- pixels: o,
4500
+ range: s,
4501
+ pixels: s,
4501
4502
  focusedDay: e,
4502
4503
  setFocusedDay: t,
4503
4504
  render: i,
@@ -4507,8 +4508,8 @@ function la({
4507
4508
  ] }) });
4508
4509
  }
4509
4510
  function da({ focusedDay: e }) {
4510
- const { settings: t } = Q();
4511
- return /* @__PURE__ */ m(I.Background, { children: /* @__PURE__ */ m("div", { className: "timelane-background", children: /* @__PURE__ */ $("div", { className: "timelane-background-inner", children: [
4511
+ const { settings: t } = J();
4512
+ return /* @__PURE__ */ m(H.Background, { children: /* @__PURE__ */ m("div", { className: "timelane-background", children: /* @__PURE__ */ X("div", { className: "timelane-background-inner", children: [
4512
4513
  e && /* @__PURE__ */ m(
4513
4514
  "div",
4514
4515
  {
@@ -4536,7 +4537,7 @@ function da({ focusedDay: e }) {
4536
4537
  {
4537
4538
  className: `timelane-background-day-label ${Yt(r) ? "timelane-background-day-label-sunday" : ""} `,
4538
4539
  style: { width: `${t.pixelsPerDay}px` },
4539
- "data-day": j(r, "yyyy-MM-dd")
4540
+ "data-day": B(r, "yyyy-MM-dd")
4540
4541
  },
4541
4542
  n
4542
4543
  ))
@@ -4555,20 +4556,20 @@ function fa({
4555
4556
  },
4556
4557
  renderLaneHeader: u = ga
4557
4558
  }) {
4558
- const { settings: c } = Q();
4559
- return /* @__PURE__ */ m(I.Aside, { children: /* @__PURE__ */ m("div", { className: "timelane-aside", children: e && e.map((o) => /* @__PURE__ */ m(
4559
+ const { settings: c } = J();
4560
+ return /* @__PURE__ */ m(H.Aside, { children: /* @__PURE__ */ m("div", { className: "timelane-aside", children: e && e.map((s) => /* @__PURE__ */ m(
4560
4561
  ha,
4561
4562
  {
4562
4563
  height: c.pixelsPerLane,
4563
- isFocused: t ? t.id === o.id : !1,
4564
- onClick: (s) => {
4565
- r(o), n(o, s);
4564
+ isFocused: t ? t.id === s.id : !1,
4565
+ onClick: (o) => {
4566
+ r(s), n(s, o);
4566
4567
  },
4567
- onDoubleClick: (s) => i(o, s),
4568
- onContextMenu: (s) => a(o, s),
4569
- children: u(o)
4568
+ onDoubleClick: (o) => i(s, o),
4569
+ onContextMenu: (o) => a(s, o),
4570
+ children: u(s)
4570
4571
  },
4571
- o.id
4572
+ s.id
4572
4573
  )) }) });
4573
4574
  }
4574
4575
  function ha({
@@ -4598,7 +4599,7 @@ function pa({
4598
4599
  settings: e,
4599
4600
  children: t
4600
4601
  }) {
4601
- const [r, n] = V(e);
4602
+ const [r, n] = Q(e);
4602
4603
  return ne(() => {
4603
4604
  n((i) => ({ ...i, ...e }));
4604
4605
  }, [e]), /* @__PURE__ */ m(Kt.Provider, { value: { settings: r, setSettings: n }, children: t });
@@ -4612,28 +4613,28 @@ function oe({
4612
4613
  showWeeks: a,
4613
4614
  showDays: u,
4614
4615
  allowOverlaps: c,
4615
- enableItemResizing: o,
4616
- enableItemDragging: s,
4616
+ enableItemResizing: s,
4617
+ enableItemDragging: o,
4617
4618
  children: f
4618
4619
  }) {
4619
- const { settings: l } = Q();
4620
+ const { settings: d } = J();
4620
4621
  return /* @__PURE__ */ m(
4621
4622
  pa,
4622
4623
  {
4623
4624
  settings: {
4624
- ...l,
4625
- start: e || l.start,
4626
- end: t || l.end,
4627
- pixelsPerDay: r || l.pixelsPerDay,
4628
- pixelsPerLane: n || l.pixelsPerLane,
4629
- showMonths: i !== void 0 ? i : l.showMonths,
4630
- showWeeks: a !== void 0 ? a : l.showWeeks,
4631
- showDays: u !== void 0 ? u : l.showDays,
4632
- allowOverlaps: c !== void 0 ? c : l.allowOverlaps,
4633
- enableItemDragging: s !== void 0 ? s : l.enableItemDragging,
4634
- enableItemResizing: o !== void 0 ? o : l.enableItemResizing
4625
+ ...d,
4626
+ start: e || d.start,
4627
+ end: t || d.end,
4628
+ pixelsPerDay: r || d.pixelsPerDay,
4629
+ pixelsPerLane: n || d.pixelsPerLane,
4630
+ showMonths: i !== void 0 ? i : d.showMonths,
4631
+ showWeeks: a !== void 0 ? a : d.showWeeks,
4632
+ showDays: u !== void 0 ? u : d.showDays,
4633
+ allowOverlaps: c !== void 0 ? c : d.allowOverlaps,
4634
+ enableItemDragging: o !== void 0 ? o : d.enableItemDragging,
4635
+ enableItemResizing: s !== void 0 ? s : d.enableItemResizing
4635
4636
  },
4636
- children: /* @__PURE__ */ m("div", { className: "timelane", children: /* @__PURE__ */ m(I, { children: f }) })
4637
+ children: /* @__PURE__ */ m("div", { className: "timelane", children: /* @__PURE__ */ m(H, { children: f }) })
4637
4638
  }
4638
4639
  );
4639
4640
  }
@@ -4642,33 +4643,32 @@ oe.Body = na;
4642
4643
  oe.Background = da;
4643
4644
  oe.Aside = fa;
4644
4645
  oe.Lane = Ui;
4645
- oe.Layout = I;
4646
+ oe.Layout = H;
4646
4647
  const kt = 30;
4647
4648
  function ba({
4648
4649
  name: e,
4649
- description: t,
4650
+ description: t = "",
4650
4651
  isSelected: r = !1,
4651
- isDragged: n = !1,
4652
- onClick: i = () => {
4652
+ onClick: n = () => {
4653
4653
  },
4654
- onContextMenu: a = () => {
4654
+ onContextMenu: i = () => {
4655
4655
  }
4656
4656
  }) {
4657
- const u = re(null);
4658
- let c = 1;
4659
- if (u.current) {
4660
- const o = u.current.getBoundingClientRect().height;
4661
- o > 0 && o < kt && (c = o / kt);
4657
+ const a = re(null);
4658
+ let u = 1;
4659
+ if (a.current) {
4660
+ const c = a.current.getBoundingClientRect().height;
4661
+ c > 0 && c < kt && (u = c / kt);
4662
4662
  }
4663
- return /* @__PURE__ */ $(
4663
+ return /* @__PURE__ */ X(
4664
4664
  "div",
4665
4665
  {
4666
4666
  className: `timelane-allocation ${r ? "timelane-allocation-selected" : ""}`,
4667
- onClick: i,
4668
- onContextMenu: (o) => {
4669
- o.preventDefault(), o.stopPropagation(), a(o);
4667
+ onClick: n,
4668
+ onContextMenu: (c) => {
4669
+ c.preventDefault(), c.stopPropagation(), i(c);
4670
4670
  },
4671
- ref: u,
4671
+ ref: a,
4672
4672
  style: {
4673
4673
  background: "lightblue"
4674
4674
  },
@@ -4678,7 +4678,7 @@ function ba({
4678
4678
  {
4679
4679
  className: "timelane-allocation-title",
4680
4680
  style: {
4681
- transform: `scale(${c})`
4681
+ transform: `scale(${u})`
4682
4682
  },
4683
4683
  children: e
4684
4684
  }
@@ -4689,7 +4689,7 @@ function ba({
4689
4689
  );
4690
4690
  }
4691
4691
  const wa = () => {
4692
- const { settings: e } = Q();
4692
+ const { settings: e } = J();
4693
4693
  function t(a) {
4694
4694
  a instanceof Object ? (a.horz !== void 0 && r(a.horz), a.vert !== void 0 && n(a.vert)) : i(a);
4695
4695
  }
@@ -4740,7 +4740,7 @@ export {
4740
4740
  na as TimelaneBody,
4741
4741
  la as TimelaneHeader,
4742
4742
  Ui as TimelaneLane,
4743
- I as TimelaneLayout,
4743
+ H as TimelaneLayout,
4744
4744
  pa as TimelaneSettingsProvider,
4745
4745
  ua as WeeksHeader,
4746
4746
  Pt as isItem,
@@ -4748,5 +4748,5 @@ export {
4748
4748
  ia as renderMonthHeader,
4749
4749
  aa as renderWeekHeader,
4750
4750
  wa as useScroll,
4751
- Q as useTimelaneContext
4751
+ J as useTimelaneContext
4752
4752
  };