react-timelane 1.0.1 → 1.1.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.
@@ -6,16 +6,16 @@ function nr(e) {
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;
@@ -58,9 +58,9 @@ function or() {
58
58
  Je = 1;
59
59
  var e = G && G.__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);
@@ -80,12 +80,12 @@ 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
  };
@@ -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,12 +340,12 @@ 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") {
@@ -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,13 +696,13 @@ 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({
@@ -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());
@@ -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,12 +942,12 @@ 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,
@@ -965,7 +965,7 @@ function Cr(e) {
965
965
  element: E.element
966
966
  };
967
967
  if (E.canDrop && !E.canDrop(v))
968
- return o({
968
+ return s({
969
969
  source: w,
970
970
  target: E.element.parentElement,
971
971
  input: x,
@@ -979,7 +979,7 @@ function Cr(e) {
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,
@@ -987,7 +987,7 @@ function Cr(e) {
987
987
  result: [].concat(It(O), [R])
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; ) {
@@ -1009,10 +1009,10 @@ 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
1017
  var g = p.payload, y = new Set(g.location.current.dropTargets.map(function(U) {
1018
1018
  return U.element;
@@ -1056,7 +1056,7 @@ function Cr(e) {
1056
1056
  f[h.eventName](h);
1057
1057
  }
1058
1058
  function d(h) {
1059
- var p = h.source, g = h.target, y = h.input, b = h.current, w = o({
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
@@ -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,16 +1183,16 @@ 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) {
@@ -1216,23 +1216,23 @@ function Br(e) {
1216
1216
  typeKey: t,
1217
1217
  defaultDropEffect: a
1218
1218
  });
1219
- function o(l) {
1219
+ function s(l) {
1220
1220
  n == null || n(l), c.dispatchEvent(l), u.dispatchEvent(l), i == null || i(l);
1221
1221
  }
1222
- function s(l) {
1222
+ function o(l) {
1223
1223
  var d = l.event, h = l.dragType;
1224
1224
  at.start({
1225
1225
  event: d,
1226
1226
  dragType: h,
1227
1227
  getDropTargetsOver: c.getIsOver,
1228
- dispatchEvent: o
1228
+ dispatchEvent: s
1229
1229
  });
1230
1230
  }
1231
1231
  function f() {
1232
1232
  function l() {
1233
1233
  var d = {
1234
1234
  canStart: at.canStart,
1235
- start: s
1235
+ start: o
1236
1236
  };
1237
1237
  return r(d);
1238
1238
  }
@@ -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(`
@@ -1307,7 +1307,7 @@ var dt = yr(), Fe = Br({
1307
1307
  var M = {
1308
1308
  element: l.element,
1309
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 : {}
1310
+ data: (s = (o = l.getInitialData) === null || o === void 0 ? void 0 : o.call(l, h)) !== null && s !== void 0 ? s : {}
1311
1311
  }, O = {
1312
1312
  type: "element",
1313
1313
  payload: M,
@@ -1386,8 +1386,8 @@ function Me() {
1386
1386
  return Jr;
1387
1387
  }
1388
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;
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 = N(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) {
@@ -1431,8 +1431,8 @@ function q(e, t, r) {
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
1438
  const r = Ft(e, t), n = C(e, 0);
@@ -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(C(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,10 +1492,10 @@ 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(C(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);
@@ -1503,12 +1503,12 @@ function un(e, t) {
1503
1503
  const a = B(i ? n : r, t), u = B(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(C(r, s)), s = en(s, o), s.setHours(15);
1512
1512
  return i ? f.reverse() : f;
1513
1513
  }
1514
1514
  function cn(e, t) {
@@ -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, (l) => l.test(u)) : (
1799
1799
  // [TODO] -- I challenge you to fix the type
1800
1800
  Mn(c, (l) => l.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) {
@@ -1958,14 +1958,14 @@ function qt(e, t) {
1958
1958
  var f, l, d, h;
1959
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);
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 = B(u, t), s = C((t == null ? void 0 : t.in) || e, 0);
1962
+ s.setFullYear(n, 0, a), s.setHours(0, 0, 0, 0);
1963
+ const o = B(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);
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 = C((t == null ? void 0 : t.in) || e, 0);
1969
1969
  return a.setFullYear(i, 0, n), a.setHours(0, 0, 0, 0), B(a, t);
1970
1970
  }
1971
1971
  function Xn(e, t) {
@@ -2672,7 +2672,7 @@ function j(e, t, r) {
2672
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);
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) {
@@ -2801,10 +2801,10 @@ 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
@@ -2818,19 +2818,19 @@ function mi(e, t, r, n, i, a, u, c, o) {
2818
2818
  n
2819
2819
  ), l = bi(l, u), l = vi(
2820
2820
  l,
2821
- s
2821
+ o
2822
2822
  ), l = wi(
2823
2823
  l,
2824
2824
  f,
2825
- s,
2826
- o
2825
+ o,
2826
+ s
2827
2827
  ), l;
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) {
@@ -2943,9 +2943,9 @@ function Mi(e, t, r, n, i) {
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((l) => l.end <= e), s = u.filter((l) => l.start >= e), o = c.length > 0 ? tn(c.map((l) => l.end)) : t, f = s.length > 0 ? rn(s.map((l) => l.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), l = te(s, o);
2973
+ t(f, l, 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), l = te(s, o);
2977
+ i(f, l, 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), l = te(s, o);
2981
+ r(f, l, 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), l = te(s, o);
2985
+ n(f, l, 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 });
@@ -3034,14 +3034,14 @@ function Ri() {
3034
3034
  if (wt) return _;
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,102 +3062,102 @@ function Ri() {
3062
3062
  p: 0,
3063
3063
  findDOMNode: null
3064
3064
  }, i = Symbol.for("react.portal");
3065
- function a(o, s, f) {
3065
+ function a(s, o, f) {
3066
3066
  var l = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
3067
3067
  return {
3068
3068
  $$typeof: i,
3069
3069
  key: l == null ? null : "" + l,
3070
- children: o,
3071
- containerInfo: s,
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 _.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, _.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
+ }, _.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
+ }, _.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
+ }, _.prefetchDNS = function(s) {
3096
+ typeof s == "string" && n.d.D(s);
3097
+ }, _.preinit = function(s, o) {
3098
+ if (typeof s == "string" && o && typeof o.as == "string") {
3099
+ var f = o.as, l = c(f, o.crossOrigin), d = typeof o.integrity == "string" ? o.integrity : void 0, h = typeof o.fetchPriority == "string" ? o.fetchPriority : void 0;
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
3104
  crossOrigin: l,
3105
3105
  integrity: d,
3106
3106
  fetchPriority: h
3107
3107
  }
3108
- ) : f === "script" && n.d.X(o, {
3108
+ ) : f === "script" && n.d.X(s, {
3109
3109
  crossOrigin: l,
3110
3110
  integrity: d,
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
+ }, _.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, {
3129
+ } else o == null && n.d.M(s);
3130
+ }, _.preload = function(s, o) {
3131
+ if (typeof s == "string" && typeof o == "object" && o !== null && typeof o.as == "string") {
3132
+ var f = o.as, l = c(f, o.crossOrigin);
3133
+ n.d.L(s, f, {
3134
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
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
+ }, _.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);
3154
+ } else n.d.m(s);
3155
+ }, _.requestFormReset = function(s) {
3156
+ n.d.r(s);
3157
+ }, _.unstable_batchedUpdates = function(s, o) {
3158
+ return s(o);
3159
+ }, _.useFormState = function(s, o, f) {
3160
+ return u.H.useFormState(s, o, f);
3161
3161
  }, _.useFormStatus = function() {
3162
3162
  return u.H.useHostTransitionStatus();
3163
3163
  }, _.version = "19.1.0", _;
@@ -3192,7 +3192,7 @@ 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
3197
  children: l,
3198
3198
  containerInfo: d,
@@ -3221,7 +3221,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3221
3221
  ), l;
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,21 +3239,21 @@ 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
+ ), W.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, W.createPortal = function(l, d) {
3246
3246
  var h = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
3247
3247
  if (!d || d.nodeType !== 1 && d.nodeType !== 9 && d.nodeType !== 11)
3248
3248
  throw Error("Target container is not a DOM element.");
3249
3249
  return r(l, d, null, h);
3250
3250
  }, W.flushSync = function(l) {
3251
- var d = f.T, h = o.p;
3251
+ var d = f.T, h = s.p;
3252
3252
  try {
3253
- if (f.T = null, o.p = 2, l)
3253
+ if (f.T = null, s.p = 2, l)
3254
3254
  return l();
3255
3255
  } finally {
3256
- f.T = d, o.p = h, o.d.f() && console.error(
3256
+ f.T = d, 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
  }
@@ -3267,7 +3267,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3267
3267
  ) : console.error(
3268
3268
  "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
3269
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));
3270
+ ), typeof l == "string" && (d ? (d = d.crossOrigin, d = typeof d == "string" ? d === "use-credentials" ? d : "" : void 0) : d = null, s.d.C(l, d));
3271
3271
  }, W.prefetchDNS = function(l) {
3272
3272
  if (typeof l != "string" || !l)
3273
3273
  console.error(
@@ -3284,7 +3284,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3284
3284
  a(d)
3285
3285
  );
3286
3286
  }
3287
- typeof l == "string" && o.d.D(l);
3287
+ typeof l == "string" && s.d.D(l);
3288
3288
  }, W.preinit = function(l, d) {
3289
3289
  if (typeof l == "string" && l ? d == null || typeof d != "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.",
@@ -3297,7 +3297,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3297
3297
  i(l)
3298
3298
  ), typeof l == "string" && d && typeof d.as == "string") {
3299
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(
3300
+ h === "style" ? s.d.S(
3301
3301
  l,
3302
3302
  typeof d.precedence == "string" ? d.precedence : void 0,
3303
3303
  {
@@ -3305,7 +3305,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3305
3305
  integrity: g,
3306
3306
  fetchPriority: y
3307
3307
  }
3308
- ) : h === "script" && o.d.X(l, {
3308
+ ) : h === "script" && s.d.X(l, {
3309
3309
  crossOrigin: p,
3310
3310
  integrity: g,
3311
3311
  fetchPriority: y,
@@ -3333,11 +3333,11 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3333
3333
  typeof l == "string" && (typeof d == "object" && d !== null ? (d.as == null || d.as === "script") && (h = n(
3334
3334
  d.as,
3335
3335
  d.crossOrigin
3336
- ), o.d.M(l, {
3336
+ ), s.d.M(l, {
3337
3337
  crossOrigin: h,
3338
3338
  integrity: typeof d.integrity == "string" ? d.integrity : void 0,
3339
3339
  nonce: typeof d.nonce == "string" ? d.nonce : void 0
3340
- })) : d == null && o.d.M(l));
3340
+ })) : d == null && s.d.M(l));
3341
3341
  }, W.preload = function(l, d) {
3342
3342
  var h = "";
3343
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(
@@ -3349,7 +3349,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3349
3349
  h,
3350
3350
  d.crossOrigin
3351
3351
  );
3352
- o.d.L(l, h, {
3352
+ s.d.L(l, h, {
3353
3353
  crossOrigin: p,
3354
3354
  integrity: typeof d.integrity == "string" ? d.integrity : void 0,
3355
3355
  nonce: typeof d.nonce == "string" ? d.nonce : void 0,
@@ -3369,13 +3369,13 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
3369
3369
  ), typeof l == "string" && (d ? (h = n(
3370
3370
  d.as,
3371
3371
  d.crossOrigin
3372
- ), o.d.m(l, {
3372
+ ), s.d.m(l, {
3373
3373
  as: typeof d.as == "string" && d.as !== "script" ? d.as : void 0,
3374
3374
  crossOrigin: h,
3375
3375
  integrity: typeof d.integrity == "string" ? d.integrity : void 0
3376
- })) : o.d.m(l));
3376
+ })) : s.d.m(l));
3377
3377
  }, W.requestFormReset = function(l) {
3378
- o.d.r(l);
3378
+ s.d.r(l);
3379
3379
  }, W.unstable_batchedUpdates = function(l, d) {
3380
3380
  return l(d);
3381
3381
  }, W.useFormState = function(l, d, h) {
@@ -3437,14 +3437,14 @@ var Ai = Ni(), k = function() {
3437
3437
  bottomLeft: k(k({}, be), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
3438
3438
  topLeft: k(k({}, 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() {
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
3445
  return k(k({ 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) {
@@ -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,13 +3630,13 @@ 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;
3639
+ var o = r.getParentSize(), f = Number(r.state[c].toString().replace("px", "")), l = f / o[c] * 100;
3640
3640
  return "".concat(l, "%");
3641
3641
  }
3642
3642
  return ze(r.state[c]);
@@ -3680,17 +3680,17 @@ 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, 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", o) && (g = f.width + (r - f.x) * u / i, d && (y = (g - w) / this.ratio + b)), ee("left", o) && (g = f.width - (r - f.x) * u / i, d && (y = (g - w) / this.ratio + b)), ee("bottom", o) && (y = f.height + (n - f.y) * c / i, d && (g = (y - b) * this.ratio + w)), ee("top", o) && (y = f.height - (n - f.y) * c / i, d && (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, 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 = s || 0, g = o || 0;
3694
3694
  if (c) {
3695
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
3696
  r = we(r, x, M), n = we(n, O, z);
@@ -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,12 +3723,12 @@ 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();
@@ -3754,11 +3754,11 @@ 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, 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, 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
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
3764
  x = D, S = P;
@@ -3811,13 +3811,13 @@ var Ai = Ni(), k = function() {
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
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;
3818
+ return i[l] !== !1 ? m(_i, { direction: l, onResizeStart: r.onResizeStart, replaceStyles: a && a[l], className: u && u[l], children: o && o[l] ? o[l] : null }, l) : 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;
@@ -3888,9 +3888,9 @@ 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 } = Q(), f = re(null), l = re(null), [d, h] = V(t);
3894
3894
  return ne(() => {
3895
3895
  h(t);
3896
3896
  }, [t]), ne(() => (Ie(f.current), Ie(l.current), Kr({
@@ -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}`,
@@ -3934,7 +3934,7 @@ 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"
@@ -3944,7 +3944,7 @@ function $i({
3944
3944
  height: d.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" ? {
@@ -4003,14 +4003,14 @@ 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,
@@ -4025,7 +4025,7 @@ function qi({
4025
4025
  );
4026
4026
  c(d);
4027
4027
  },
4028
- onResizeStart: o,
4028
+ onResizeStart: s,
4029
4029
  children: n
4030
4030
  }
4031
4031
  );
@@ -4064,8 +4064,8 @@ function Ui({
4064
4064
  },
4065
4065
  onContextMenu: c = () => {
4066
4066
  },
4067
- renderItem: o = Gi,
4068
- onResizeStart: s = () => {
4067
+ renderItem: s = Gi,
4068
+ onResizeStart: o = () => {
4069
4069
  }
4070
4070
  }) {
4071
4071
  const { settings: f } = Q(), l = {
@@ -4169,9 +4169,9 @@ function Ui({
4169
4169
  },
4170
4170
  onUpdate: n,
4171
4171
  onResizeStart: () => {
4172
- s(v.payload);
4172
+ o(v.payload);
4173
4173
  },
4174
- children: o(
4174
+ children: s(
4175
4175
  v,
4176
4176
  h !== null && h.id === v.id
4177
4177
  )
@@ -4267,7 +4267,7 @@ function ta({
4267
4267
  children: e,
4268
4268
  onSelect: t
4269
4269
  }) {
4270
- const [r, n] = V([]), i = re(null), [a, u] = V(null), [c, o] = V(null);
4270
+ const [r, n] = V([]), i = re(null), [a, u] = V(null), [c, s] = V(null);
4271
4271
  ne(() => Gr({
4272
4272
  onDragStart: (d) => {
4273
4273
  n([d.source.data.id]);
@@ -4275,7 +4275,7 @@ function ta({
4275
4275
  }), []), ne(() => {
4276
4276
  t(r);
4277
4277
  }, [t, r]);
4278
- function s(d) {
4278
+ function o(d) {
4279
4279
  !d.shiftKey && !d.ctrlKey && n([]), u({ x: d.clientX, y: d.clientY });
4280
4280
  }
4281
4281
  function f(d) {
@@ -4286,7 +4286,7 @@ function ta({
4286
4286
  width: Math.abs(d.clientX - a.x),
4287
4287
  height: Math.abs(d.clientY - a.y)
4288
4288
  }, p = d.currentTarget.getBoundingClientRect();
4289
- o({
4289
+ s({
4290
4290
  ...h,
4291
4291
  x: h.x - p.left,
4292
4292
  y: h.y - p.top
@@ -4312,14 +4312,14 @@ function ta({
4312
4312
  g.classList.remove("timelane-item-marked");
4313
4313
  });
4314
4314
  }
4315
- u(null), o(null), requestAnimationFrame(() => {
4315
+ u(null), s(null), requestAnimationFrame(() => {
4316
4316
  i.current && i.current !== null && (window.removeEventListener("click", i.current, !0), i.current = null);
4317
4317
  });
4318
4318
  }
4319
4319
  return /* @__PURE__ */ $(
4320
4320
  "div",
4321
4321
  {
4322
- onMouseDown: s,
4322
+ onMouseDown: o,
4323
4323
  onMouseMove: f,
4324
4324
  onMouseUp: l,
4325
4325
  style: {
@@ -4390,16 +4390,16 @@ function sa({
4390
4390
  a < e.start && (a = e.start);
4391
4391
  let c = ci(a);
4392
4392
  c > e.end && (c = e.end);
4393
- const o = q(c, a) + 1;
4393
+ const s = q(c, a) + 1;
4394
4394
  return /* @__PURE__ */ m(
4395
4395
  "div",
4396
4396
  {
4397
4397
  className: "timelane-header-month-label",
4398
4398
  style: {
4399
- width: `${t.pixelsPerDay * o}px`
4399
+ width: `${t.pixelsPerDay * s}px`
4400
4400
  },
4401
- onClick: (s) => {
4402
- i({ firstDay: a, lastDay: c, e: s }), r(a);
4401
+ onClick: (o) => {
4402
+ i({ firstDay: a, lastDay: c, e: o }), r(a);
4403
4403
  },
4404
4404
  children: n(a, c)
4405
4405
  },
@@ -4420,16 +4420,16 @@ function ua({
4420
4420
  a < e.start && (a = e.start);
4421
4421
  let c = Yt(a) ? a : di(a);
4422
4422
  c > e.end && (c = e.end);
4423
- const o = q(c, a) + 1;
4423
+ const s = q(c, a) + 1;
4424
4424
  return /* @__PURE__ */ m(
4425
4425
  "div",
4426
4426
  {
4427
4427
  className: "timelane-header-week-label",
4428
4428
  style: {
4429
- width: `${t.pixelsPerDay * o}px`
4429
+ width: `${t.pixelsPerDay * s}px`
4430
4430
  },
4431
- onClick: (s) => {
4432
- i({ firstDay: a, lastDay: c, e: s }), r(a);
4431
+ onClick: (o) => {
4432
+ i({ firstDay: a, lastDay: c, e: o }), r(a);
4433
4433
  },
4434
4434
  children: n(a, c)
4435
4435
  },
@@ -4452,8 +4452,8 @@ function ca({
4452
4452
  {
4453
4453
  className: `timelane-header-day-label ${r && nn(r, u) ? "timelane-header-day-label-focused" : ""}`,
4454
4454
  style: { width: `${t.pixelsPerDay}px` },
4455
- onClick: (o) => {
4456
- a({ day: u, e: o }), n(u);
4455
+ onClick: (s) => {
4456
+ a({ day: u, e: s }), n(u);
4457
4457
  },
4458
4458
  children: i(u)
4459
4459
  },
@@ -4471,33 +4471,33 @@ function la({
4471
4471
  onDayClick: u,
4472
4472
  onWeekClick: c
4473
4473
  }) {
4474
- const { settings: o } = Q();
4474
+ const { settings: s } = Q();
4475
4475
  return /* @__PURE__ */ m(I.Header, { children: /* @__PURE__ */ $("div", { className: "timelane-header", children: [
4476
- o.showMonths && /* @__PURE__ */ m(
4476
+ s.showMonths && /* @__PURE__ */ m(
4477
4477
  sa,
4478
4478
  {
4479
- range: o,
4480
- pixels: o,
4479
+ range: s,
4480
+ pixels: s,
4481
4481
  setFocusedDay: t,
4482
4482
  render: r,
4483
4483
  onMonthClick: a
4484
4484
  }
4485
4485
  ),
4486
- o.showWeeks && /* @__PURE__ */ m(
4486
+ s.showWeeks && /* @__PURE__ */ m(
4487
4487
  ua,
4488
4488
  {
4489
- range: o,
4490
- pixels: o,
4489
+ range: s,
4490
+ pixels: s,
4491
4491
  setFocusedDay: t,
4492
4492
  render: n,
4493
4493
  onWeekClick: c
4494
4494
  }
4495
4495
  ),
4496
- o.showDays && /* @__PURE__ */ m(
4496
+ s.showDays && /* @__PURE__ */ m(
4497
4497
  ca,
4498
4498
  {
4499
- range: o,
4500
- pixels: o,
4499
+ range: s,
4500
+ pixels: s,
4501
4501
  focusedDay: e,
4502
4502
  setFocusedDay: t,
4503
4503
  render: i,
@@ -4556,19 +4556,19 @@ function fa({
4556
4556
  renderLaneHeader: u = ga
4557
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
+ return /* @__PURE__ */ m(I.Aside, { children: /* @__PURE__ */ m("div", { className: "timelane-aside", children: e && e.map((s) => /* @__PURE__ */ m(
4560
4560
  ha,
4561
4561
  {
4562
4562
  height: c.pixelsPerLane,
4563
- isFocused: t ? t.id === o.id : !1,
4564
- onClick: (s) => {
4565
- r(o), n(o, s);
4563
+ isFocused: t ? t.id === s.id : !1,
4564
+ onClick: (o) => {
4565
+ r(s), n(s, o);
4566
4566
  },
4567
- onDoubleClick: (s) => i(o, s),
4568
- onContextMenu: (s) => a(o, s),
4569
- children: u(o)
4567
+ onDoubleClick: (o) => i(s, o),
4568
+ onContextMenu: (o) => a(s, o),
4569
+ children: u(s)
4570
4570
  },
4571
- o.id
4571
+ s.id
4572
4572
  )) }) });
4573
4573
  }
4574
4574
  function ha({
@@ -4612,8 +4612,8 @@ function oe({
4612
4612
  showWeeks: a,
4613
4613
  showDays: u,
4614
4614
  allowOverlaps: c,
4615
- enableItemResizing: o,
4616
- enableItemDragging: s,
4615
+ enableItemResizing: s,
4616
+ enableItemDragging: o,
4617
4617
  children: f
4618
4618
  }) {
4619
4619
  const { settings: l } = Q();
@@ -4630,8 +4630,8 @@ function oe({
4630
4630
  showWeeks: a !== void 0 ? a : l.showWeeks,
4631
4631
  showDays: u !== void 0 ? u : l.showDays,
4632
4632
  allowOverlaps: c !== void 0 ? c : l.allowOverlaps,
4633
- enableItemDragging: s !== void 0 ? s : l.enableItemDragging,
4634
- enableItemResizing: o !== void 0 ? o : l.enableItemResizing
4633
+ enableItemDragging: o !== void 0 ? o : l.enableItemDragging,
4634
+ enableItemResizing: s !== void 0 ? s : l.enableItemResizing
4635
4635
  },
4636
4636
  children: /* @__PURE__ */ m("div", { className: "timelane", children: /* @__PURE__ */ m(I, { children: f }) })
4637
4637
  }
@@ -4648,27 +4648,26 @@ function ba({
4648
4648
  name: e,
4649
4649
  description: t,
4650
4650
  isSelected: r = !1,
4651
- isDragged: n = !1,
4652
- onClick: i = () => {
4651
+ onClick: n = () => {
4653
4652
  },
4654
- onContextMenu: a = () => {
4653
+ onContextMenu: i = () => {
4655
4654
  }
4656
4655
  }) {
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);
4656
+ const a = re(null);
4657
+ let u = 1;
4658
+ if (a.current) {
4659
+ const c = a.current.getBoundingClientRect().height;
4660
+ c > 0 && c < kt && (u = c / kt);
4662
4661
  }
4663
4662
  return /* @__PURE__ */ $(
4664
4663
  "div",
4665
4664
  {
4666
4665
  className: `timelane-allocation ${r ? "timelane-allocation-selected" : ""}`,
4667
- onClick: i,
4668
- onContextMenu: (o) => {
4669
- o.preventDefault(), o.stopPropagation(), a(o);
4666
+ onClick: n,
4667
+ onContextMenu: (c) => {
4668
+ c.preventDefault(), c.stopPropagation(), i(c);
4670
4669
  },
4671
- ref: u,
4670
+ ref: a,
4672
4671
  style: {
4673
4672
  background: "lightblue"
4674
4673
  },
@@ -4678,7 +4677,7 @@ function ba({
4678
4677
  {
4679
4678
  className: "timelane-allocation-title",
4680
4679
  style: {
4681
- transform: `scale(${c})`
4680
+ transform: `scale(${u})`
4682
4681
  },
4683
4682
  children: e
4684
4683
  }