@arche-mc2/vue-ui-lib 1.2.50 → 1.2.51

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,4 +1,4 @@
1
- import { defineComponent as l1, openBlock as w, createElementBlock as k, mergeProps as A3, toDisplayString as Y, ref as Z, computed as P, normalizeStyle as w1, normalizeClass as G, unref as x1, createCommentVNode as F, createElementVNode as V, createBlock as i1, renderSlot as _1, h as me, Fragment as h1, Teleport as Xe, useModel as I4, watch as S1, withDirectives as Ka, vModelCheckbox as V4, createVNode as t1, mergeModels as B4, resolveDynamicComponent as Pa, normalizeProps as R4, withCtx as C1, onMounted as X3, nextTick as m3, getCurrentScope as T4, onScopeDispose as H4, getCurrentInstance as Wa, toRef as L4, readonly as O4, customRef as N4, shallowRef as $1, toValue as I1, useTemplateRef as Ve, onBeforeUnmount as u2, renderList as E1, createTextVNode as k3, useSlots as Qa, withModifiers as Ya, onUnmounted as qa, Transition as F4, watchEffect as j4, inject as n6 } from "vue";
1
+ import { defineComponent as l1, openBlock as w, createElementBlock as k, mergeProps as A3, toDisplayString as Y, ref as Z, computed as P, normalizeStyle as w1, normalizeClass as G, unref as S1, createCommentVNode as F, createElementVNode as V, createBlock as i1, renderSlot as _1, h as me, Fragment as h1, Teleport as Xe, useModel as I4, watch as x1, withDirectives as Ka, vModelCheckbox as V4, createVNode as t1, mergeModels as B4, resolveDynamicComponent as Pa, normalizeProps as R4, withCtx as C1, onMounted as X3, nextTick as m3, getCurrentScope as T4, onScopeDispose as H4, getCurrentInstance as Wa, toRef as L4, readonly as O4, customRef as N4, shallowRef as $1, toValue as I1, useTemplateRef as Ve, onBeforeUnmount as u2, renderList as E1, createTextVNode as k3, useSlots as Qa, withModifiers as Ya, onUnmounted as qa, Transition as F4, watchEffect as j4, inject as n6 } from "vue";
2
2
  const U4 = ["src", "alt"], K4 = {
3
3
  key: 1,
4
4
  class: "amc2-avatar__initials"
@@ -58,7 +58,7 @@ const J4 = ["width", "height", "fill"], Z4 = { key: 0 }, X4 = ["href", "id"], $4
58
58
  "--icon-color-secondary": i.value && e.colorSecondaryHover || e.colorSecondary
59
59
  }));
60
60
  return (l, s) => (w(), k("div", {
61
- class: G(["svgicon", x1(t)]),
61
+ class: G(["svgicon", S1(t)]),
62
62
  style: w1({ display: "flex", width: `${a.width}px`, height: `${a.height}px` })
63
63
  }, [
64
64
  (w(), k("svg", {
@@ -238,17 +238,17 @@ function Ut(a) {
238
238
  }
239
239
  function Te() {
240
240
  var a, e, t, i, n, l, s, r;
241
- for (K3.sort(function(o, u) {
242
- return o.__v.__b - u.__v.__b;
243
- }); a = K3.shift(); ) a.__d && (e = K3.length, i = void 0, n = void 0, s = (l = (t = a).__v).__e, (r = t.__P) && (i = [], (n = M3({}, l)).__v = l.__v + 1, h2(r, l, n, t.__n, r.ownerSVGElement !== void 0, l.__h != null ? [s] : null, i, s ?? L0(l), l.__h), ri(i, l), l.__e != s && ai(l)), K3.length > e && K3.sort(function(o, u) {
244
- return o.__v.__b - u.__v.__b;
241
+ for (K3.sort(function(o, c) {
242
+ return o.__v.__b - c.__v.__b;
243
+ }); a = K3.shift(); ) a.__d && (e = K3.length, i = void 0, n = void 0, s = (l = (t = a).__v).__e, (r = t.__P) && (i = [], (n = M3({}, l)).__v = l.__v + 1, h2(r, l, n, t.__n, r.ownerSVGElement !== void 0, l.__h != null ? [s] : null, i, s ?? L0(l), l.__h), ri(i, l), l.__e != s && ai(l)), K3.length > e && K3.sort(function(o, c) {
244
+ return o.__v.__b - c.__v.__b;
245
245
  }));
246
246
  Te.__r = 0;
247
247
  }
248
- function ii(a, e, t, i, n, l, s, r, o, u) {
249
- var c, d, f, h, g, m, p, y = i && i.__k || ei, b = y.length;
250
- for (t.__k = [], c = 0; c < e.length; c++) if ((h = t.__k[c] = (h = e[c]) == null || typeof h == "boolean" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? ge(null, h, null, null, h) : Array.isArray(h) ? ge(v1, { children: h }, null, null, null) : h.__b > 0 ? ge(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null) {
251
- if (h.__ = t, h.__b = t.__b + 1, (f = y[c]) === null || f && h.key == f.key && h.type === f.type) y[c] = void 0;
248
+ function ii(a, e, t, i, n, l, s, r, o, c) {
249
+ var u, d, f, h, g, m, p, y = i && i.__k || ei, b = y.length;
250
+ for (t.__k = [], u = 0; u < e.length; u++) if ((h = t.__k[u] = (h = e[u]) == null || typeof h == "boolean" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? ge(null, h, null, null, h) : Array.isArray(h) ? ge(v1, { children: h }, null, null, null) : h.__b > 0 ? ge(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null) {
251
+ if (h.__ = t, h.__b = t.__b + 1, (f = y[u]) === null || f && h.key == f.key && h.type === f.type) y[u] = void 0;
252
252
  else for (d = 0; d < b; d++) {
253
253
  if ((f = y[d]) && h.key == f.key && h.type === f.type) {
254
254
  y[d] = void 0;
@@ -256,10 +256,10 @@ function ii(a, e, t, i, n, l, s, r, o, u) {
256
256
  }
257
257
  f = null;
258
258
  }
259
- h2(a, h, f = f || Be, n, l, s, r, o, u), g = h.__e, (d = h.ref) && f.ref != d && (p || (p = []), f.ref && p.push(f.ref, null, h), p.push(d, h.__c || g, h)), g != null ? (m == null && (m = g), typeof h.type == "function" && h.__k === f.__k ? h.__d = o = ni(h, o, a) : o = li(a, h, f, y, g, o), typeof t.type == "function" && (t.__d = o)) : o && f.__e == o && o.parentNode != a && (o = L0(f));
259
+ h2(a, h, f = f || Be, n, l, s, r, o, c), g = h.__e, (d = h.ref) && f.ref != d && (p || (p = []), f.ref && p.push(f.ref, null, h), p.push(d, h.__c || g, h)), g != null ? (m == null && (m = g), typeof h.type == "function" && h.__k === f.__k ? h.__d = o = ni(h, o, a) : o = li(a, h, f, y, g, o), typeof t.type == "function" && (t.__d = o)) : o && f.__e == o && o.parentNode != a && (o = L0(f));
260
260
  }
261
- for (t.__e = m, c = b; c--; ) y[c] != null && (typeof t.type == "function" && y[c].__e != null && y[c].__e == t.__d && (t.__d = si(i).nextSibling), ci(y[c], y[c]));
262
- if (p) for (c = 0; c < p.length; c++) oi(p[c], p[++c], p[++c]);
261
+ for (t.__e = m, u = b; u--; ) y[u] != null && (typeof t.type == "function" && y[u].__e != null && y[u].__e == t.__d && (t.__d = si(i).nextSibling), ci(y[u], y[u]));
262
+ if (p) for (u = 0; u < p.length; u++) oi(p[u], p[++u], p[++u]);
263
263
  }
264
264
  function ni(a, e, t) {
265
265
  for (var i, n = a.__k, l = 0; n && l < n.length; l++) (i = n[l]) && (i.__ = a, e = typeof i.type == "function" ? ni(i, e, t) : li(t, i, i, n, i.__e, e));
@@ -289,33 +289,33 @@ function si(a) {
289
289
  return null;
290
290
  }
291
291
  function h2(a, e, t, i, n, l, s, r, o) {
292
- var u, c, d, f, h, g, m, p, y, b, C, v, B, x, T, R = e.type;
292
+ var c, u, d, f, h, g, m, p, y, b, C, v, B, x, T, R = e.type;
293
293
  if (e.constructor !== void 0) return null;
294
- t.__h != null && (o = t.__h, r = e.__e = t.__e, e.__h = null, l = [r]), (u = W.__b) && u(e);
294
+ t.__h != null && (o = t.__h, r = e.__e = t.__e, e.__h = null, l = [r]), (c = W.__b) && c(e);
295
295
  try {
296
296
  e: if (typeof R == "function") {
297
- if (p = e.props, y = (u = R.contextType) && i[u.__c], b = u ? y ? y.props.value : u.__ : i, t.__c ? m = (c = e.__c = t.__c).__ = c.__E : ("prototype" in R && R.prototype.render ? e.__c = c = new R(p, b) : (e.__c = c = new W1(p, b), c.constructor = R, c.render = ol), y && y.sub(c), c.props = p, c.state || (c.state = {}), c.context = b, c.__n = i, d = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), R.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = M3({}, c.__s)), M3(c.__s, R.getDerivedStateFromProps(p, c.__s))), f = c.props, h = c.state, c.__v = e, d) R.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
297
+ if (p = e.props, y = (c = R.contextType) && i[c.__c], b = c ? y ? y.props.value : c.__ : i, t.__c ? m = (u = e.__c = t.__c).__ = u.__E : ("prototype" in R && R.prototype.render ? e.__c = u = new R(p, b) : (e.__c = u = new W1(p, b), u.constructor = R, u.render = ol), y && y.sub(u), u.props = p, u.state || (u.state = {}), u.context = b, u.__n = i, d = u.__d = !0, u.__h = [], u._sb = []), u.__s == null && (u.__s = u.state), R.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = M3({}, u.__s)), M3(u.__s, R.getDerivedStateFromProps(p, u.__s))), f = u.props, h = u.state, u.__v = e, d) R.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), u.componentDidMount != null && u.__h.push(u.componentDidMount);
298
298
  else {
299
- if (R.getDerivedStateFromProps == null && p !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(p, b), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(p, c.__s, b) === !1 || e.__v === t.__v) {
300
- for (e.__v !== t.__v && (c.props = p, c.state = c.__s, c.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(_) {
299
+ if (R.getDerivedStateFromProps == null && p !== f && u.componentWillReceiveProps != null && u.componentWillReceiveProps(p, b), !u.__e && u.shouldComponentUpdate != null && u.shouldComponentUpdate(p, u.__s, b) === !1 || e.__v === t.__v) {
300
+ for (e.__v !== t.__v && (u.props = p, u.state = u.__s, u.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(_) {
301
301
  _ && (_.__ = e);
302
- }), C = 0; C < c._sb.length; C++) c.__h.push(c._sb[C]);
303
- c._sb = [], c.__h.length && s.push(c);
302
+ }), C = 0; C < u._sb.length; C++) u.__h.push(u._sb[C]);
303
+ u._sb = [], u.__h.length && s.push(u);
304
304
  break e;
305
305
  }
306
- c.componentWillUpdate != null && c.componentWillUpdate(p, c.__s, b), c.componentDidUpdate != null && c.__h.push(function() {
307
- c.componentDidUpdate(f, h, g);
306
+ u.componentWillUpdate != null && u.componentWillUpdate(p, u.__s, b), u.componentDidUpdate != null && u.__h.push(function() {
307
+ u.componentDidUpdate(f, h, g);
308
308
  });
309
309
  }
310
- if (c.context = b, c.props = p, c.__P = a, v = W.__r, B = 0, "prototype" in R && R.prototype.render) {
311
- for (c.state = c.__s, c.__d = !1, v && v(e), u = c.render(c.props, c.state, c.context), x = 0; x < c._sb.length; x++) c.__h.push(c._sb[x]);
312
- c._sb = [];
310
+ if (u.context = b, u.props = p, u.__P = a, v = W.__r, B = 0, "prototype" in R && R.prototype.render) {
311
+ for (u.state = u.__s, u.__d = !1, v && v(e), c = u.render(u.props, u.state, u.context), x = 0; x < u._sb.length; x++) u.__h.push(u._sb[x]);
312
+ u._sb = [];
313
313
  } else do
314
- c.__d = !1, v && v(e), u = c.render(c.props, c.state, c.context), c.state = c.__s;
315
- while (c.__d && ++B < 25);
316
- c.state = c.__s, c.getChildContext != null && (i = M3(M3({}, i), c.getChildContext())), d || c.getSnapshotBeforeUpdate == null || (g = c.getSnapshotBeforeUpdate(f, h)), T = u != null && u.type === v1 && u.key == null ? u.props.children : u, ii(a, Array.isArray(T) ? T : [T], e, t, i, n, l, s, r, o), c.base = e.__e, e.__h = null, c.__h.length && s.push(c), m && (c.__E = c.__ = null), c.__e = !1;
314
+ u.__d = !1, v && v(e), c = u.render(u.props, u.state, u.context), u.state = u.__s;
315
+ while (u.__d && ++B < 25);
316
+ u.state = u.__s, u.getChildContext != null && (i = M3(M3({}, i), u.getChildContext())), d || u.getSnapshotBeforeUpdate == null || (g = u.getSnapshotBeforeUpdate(f, h)), T = c != null && c.type === v1 && c.key == null ? c.props.children : c, ii(a, Array.isArray(T) ? T : [T], e, t, i, n, l, s, r, o), u.base = e.__e, e.__h = null, u.__h.length && s.push(u), m && (u.__E = u.__ = null), u.__e = !1;
317
317
  } else l == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = rl(t.__e, e, t, i, n, l, s, o);
318
- (u = W.diffed) && u(e);
318
+ (c = W.diffed) && c(e);
319
319
  } catch (_) {
320
320
  e.__v = null, (o || l != null) && (e.__e = r, e.__h = !!o, l[l.indexOf(r)] = null), W.__e(_, e, t);
321
321
  }
@@ -332,7 +332,7 @@ function ri(a, e) {
332
332
  });
333
333
  }
334
334
  function rl(a, e, t, i, n, l, s, r) {
335
- var o, u, c, d = t.props, f = e.props, h = e.type, g = 0;
335
+ var o, c, u, d = t.props, f = e.props, h = e.type, g = 0;
336
336
  if (h === "svg" && (n = !0), l != null) {
337
337
  for (; g < l.length; g++) if ((o = l[g]) && "setAttribute" in o == !!h && (h ? o.localName === h : o.nodeType === 3)) {
338
338
  a = o, l[g] = null;
@@ -345,11 +345,11 @@ function rl(a, e, t, i, n, l, s, r) {
345
345
  }
346
346
  if (h === null) d === f || r && a.data === f || (a.data = f);
347
347
  else {
348
- if (l = l && $e.call(a.childNodes), u = (d = t.props || Be).dangerouslySetInnerHTML, c = f.dangerouslySetInnerHTML, !r) {
348
+ if (l = l && $e.call(a.childNodes), c = (d = t.props || Be).dangerouslySetInnerHTML, u = f.dangerouslySetInnerHTML, !r) {
349
349
  if (l != null) for (d = {}, g = 0; g < a.attributes.length; g++) d[a.attributes[g].name] = a.attributes[g].value;
350
- (c || u) && (c && (u && c.__html == u.__html || c.__html === a.innerHTML) || (a.innerHTML = c && c.__html || ""));
350
+ (u || c) && (u && (c && u.__html == c.__html || u.__html === a.innerHTML) || (a.innerHTML = u && u.__html || ""));
351
351
  }
352
- if (ll(a, f, d, n, r), c) e.__k = [];
352
+ if (ll(a, f, d, n, r), u) e.__k = [];
353
353
  else if (g = e.props.children, ii(a, Array.isArray(g) ? g : [g], e, t, i, n && h !== "foreignObject", l, s, l ? l[0] : t.__k && L0(t, 0), r), l != null) for (g = l.length; g--; ) l[g] != null && ti(l[g]);
354
354
  r || ("value" in f && (g = f.value) !== void 0 && (g !== a.value || h === "progress" && !g || h === "option" && g !== d.value) && Re(a, "value", g, d.value, !1), "checked" in f && (g = f.checked) !== void 0 && g !== a.checked && Re(a, "checked", g, d.checked, !1));
355
355
  }
@@ -540,11 +540,11 @@ W.unmount = function(a) {
540
540
  var r = function() {
541
541
  if (!--i.__u) {
542
542
  if (i.state.__a) {
543
- var u = i.state.__a;
544
- i.__v.__k[0] = hi(u, u.__c.__P, u.__c.__O);
543
+ var c = i.state.__a;
544
+ i.__v.__k[0] = hi(c, c.__c.__P, c.__c.__O);
545
545
  }
546
- var c;
547
- for (i.setState({ __a: i.__b = null }); c = i.t.pop(); ) c.forceUpdate();
546
+ var u;
547
+ for (i.setState({ __a: i.__b = null }); u = i.t.pop(); ) u.forceUpdate();
548
548
  }
549
549
  }, o = e.__h === !0;
550
550
  i.__u++ || o || i.setState({ __a: i.__b = i.__v.__k[0] }), a.then(s, s);
@@ -1214,11 +1214,11 @@ class ms {
1214
1214
  let o = r;
1215
1215
  o > 1 && // the two dates are different in a way that's larger scale than time
1216
1216
  (l.year === "numeric" || l.year === "2-digit") && (l.month === "numeric" || l.month === "2-digit") && (l.day === "numeric" || l.day === "2-digit") && (o = 1);
1217
- let u = this.format(e, i), c = this.format(t, i);
1218
- if (u === c)
1219
- return u;
1220
- let d = zs(l, o), f = T6(d, s, i), h = f(e), g = f(t), m = Cs(u, h, c, g), p = s.separator || n || i.defaultSeparator || "";
1221
- return m ? m.before + h + p + g + m.after : u + p + c;
1217
+ let c = this.format(e, i), u = this.format(t, i);
1218
+ if (c === u)
1219
+ return c;
1220
+ let d = zs(l, o), f = T6(d, s, i), h = f(e), g = f(t), m = Cs(c, h, u, g), p = s.separator || n || i.defaultSeparator || "";
1221
+ return m ? m.before + h + p + g + m.after : c + p + u;
1222
1222
  }
1223
1223
  getSmallestUnit() {
1224
1224
  switch (this.smallestUnitNum) {
@@ -1292,13 +1292,13 @@ function Cs(a, e, t, i) {
1292
1292
  n = l + e.length;
1293
1293
  let r = a.substr(n), o = 0;
1294
1294
  for (; o < t.length; ) {
1295
- let u = t.indexOf(i, o);
1296
- if (u === -1)
1295
+ let c = t.indexOf(i, o);
1296
+ if (c === -1)
1297
1297
  break;
1298
- let c = t.substr(0, u);
1299
- o = u + i.length;
1298
+ let u = t.substr(0, c);
1299
+ o = c + i.length;
1300
1300
  let d = t.substr(o);
1301
- if (s === c && r === d)
1301
+ if (s === u && r === d)
1302
1302
  return {
1303
1303
  before: s,
1304
1304
  after: r
@@ -2026,15 +2026,15 @@ class js {
2026
2026
  }
2027
2027
  }
2028
2028
  const E3 = Si({});
2029
- function Us(a, e, t, i, n, l, s, r, o, u, c, d, f, h) {
2029
+ function Us(a, e, t, i, n, l, s, r, o, c, u, d, f, h) {
2030
2030
  return {
2031
2031
  dateEnv: n,
2032
2032
  nowManager: l,
2033
2033
  options: t,
2034
2034
  pluginHooks: r,
2035
- emitter: c,
2035
+ emitter: u,
2036
2036
  dispatch: o,
2037
- getCurrentData: u,
2037
+ getCurrentData: c,
2038
2038
  calendarApi: d,
2039
2039
  viewSpec: a,
2040
2040
  viewApi: e,
@@ -2042,13 +2042,13 @@ function Us(a, e, t, i, n, l, s, r, o, u, c, d, f, h) {
2042
2042
  theme: s,
2043
2043
  isRtl: t.direction === "rtl",
2044
2044
  addResizeHandler(g) {
2045
- c.on("_resize", g);
2045
+ u.on("_resize", g);
2046
2046
  },
2047
2047
  removeResizeHandler(g) {
2048
- c.off("_resize", g);
2048
+ u.off("_resize", g);
2049
2049
  },
2050
2050
  createScrollResponder(g) {
2051
- return new js(g, c, n1(t.scrollTime), t.scrollTimeReset);
2051
+ return new js(g, u, n1(t.scrollTime), t.scrollTimeReset);
2052
2052
  },
2053
2053
  registerInteractiveComponent: f,
2054
2054
  unregisterInteractiveComponent: h
@@ -2104,18 +2104,18 @@ class C2 extends c1 {
2104
2104
  }
2105
2105
  render() {
2106
2106
  const { props: e, context: t } = this, { options: i } = t, { customGenerator: n, defaultGenerator: l, renderProps: s } = e, r = xi(e, [], this.handleEl);
2107
- let o = !1, u, c = [], d;
2107
+ let o = !1, c, u = [], d;
2108
2108
  if (n != null) {
2109
2109
  const f = typeof n == "function" ? n(s, A) : n;
2110
2110
  if (f === !0)
2111
2111
  o = !0;
2112
2112
  else {
2113
2113
  const h = f && typeof f == "object";
2114
- h && "html" in f ? r.dangerouslySetInnerHTML = { __html: f.html } : h && "domNodes" in f ? c = Array.prototype.slice.call(f.domNodes) : (h ? Za(f) : typeof f != "function") ? u = f : d = f;
2114
+ h && "html" in f ? r.dangerouslySetInnerHTML = { __html: f.html } : h && "domNodes" in f ? u = Array.prototype.slice.call(f.domNodes) : (h ? Za(f) : typeof f != "function") ? c = f : d = f;
2115
2115
  }
2116
2116
  } else
2117
2117
  o = !Yt(e.generatorName, i);
2118
- return o && l && (u = l(s)), this.queuedDomNodes = c, this.currentGeneratorMeta = d, A(e.elTag, r, u);
2118
+ return o && l && (c = l(s)), this.queuedDomNodes = u, this.currentGeneratorMeta = d, A(e.elTag, r, c);
2119
2119
  }
2120
2120
  componentDidMount() {
2121
2121
  this.applyQueueudDomNodes(), this.triggerCustomRendering(!0);
@@ -2292,8 +2292,8 @@ class Bi {
2292
2292
  // Optional direction param indicates whether the date is being incremented/decremented
2293
2293
  // from its previous value. decremented = -1, incremented = 1 (default).
2294
2294
  build(e, t, i = !0) {
2295
- let { props: n } = this, l, s, r, o, u, c;
2296
- return l = this.buildValidRange(), l = this.trimHiddenDays(l), i && (e = Js(e, l)), s = this.buildCurrentRangeInfo(e, t), r = /^(year|month|week|day)$/.test(s.unit), o = this.buildRenderRange(this.trimHiddenDays(s.range), s.unit, r), o = this.trimHiddenDays(o), u = o, n.showNonCurrentDates || (u = _3(u, s.range)), u = this.adjustActiveRange(u), u = _3(u, l), c = M2(s.range, l), g3(o, e) || (e = o.start), {
2295
+ let { props: n } = this, l, s, r, o, c, u;
2296
+ return l = this.buildValidRange(), l = this.trimHiddenDays(l), i && (e = Js(e, l)), s = this.buildCurrentRangeInfo(e, t), r = /^(year|month|week|day)$/.test(s.unit), o = this.buildRenderRange(this.trimHiddenDays(s.range), s.unit, r), o = this.trimHiddenDays(o), c = o, n.showNonCurrentDates || (c = _3(c, s.range)), c = this.adjustActiveRange(c), c = _3(c, l), u = M2(s.range, l), g3(o, e) || (e = o.start), {
2297
2297
  currentDate: e,
2298
2298
  // constraint for where prev/next operations can go and where events can be dragged/resized to.
2299
2299
  // an object with optional start and end properties.
@@ -2306,7 +2306,7 @@ class Bi {
2306
2306
  isRangeAllDay: r,
2307
2307
  // dates that display events and accept drag-n-drop
2308
2308
  // will be `null` if no dates accept events
2309
- activeRange: u,
2309
+ activeRange: c,
2310
2310
  // date range with a rendered skeleton
2311
2311
  // includes not-active days that need some sort of DOM
2312
2312
  renderRange: o,
@@ -2314,7 +2314,7 @@ class Bi {
2314
2314
  slotMinTime: n.slotMinTime,
2315
2315
  // Duration object that denotes the exclusive visible end time of any given day
2316
2316
  slotMaxTime: n.slotMaxTime,
2317
- isValid: c,
2317
+ isValid: u,
2318
2318
  // how far the current date will move for a prev/next operation
2319
2319
  dateIncrement: this.buildDateIncrement(s.duration)
2320
2320
  // pass a fallback (might be null) ^
@@ -2347,16 +2347,16 @@ class Bi {
2347
2347
  // Builds the "current" range when it is specified as an explicit duration.
2348
2348
  // `unit` is the already-computed greatestDurationDenominator unit of duration.
2349
2349
  buildRangeFromDuration(e, t, i, n) {
2350
- let { dateEnv: l, dateAlignment: s } = this.props, r, o, u;
2350
+ let { dateEnv: l, dateAlignment: s } = this.props, r, o, c;
2351
2351
  if (!s) {
2352
2352
  let { dateIncrement: d } = this.props;
2353
2353
  d && e3(d) < e3(i) ? s = Qt(d).unit : s = n;
2354
2354
  }
2355
2355
  c0(i) <= 1 && this.isHiddenDay(r) && (r = this.skipHiddenDays(r, t), r = m1(r));
2356
- function c() {
2357
- r = l.startOf(e, s), o = l.add(r, i), u = { start: r, end: o };
2356
+ function u() {
2357
+ r = l.startOf(e, s), o = l.add(r, i), c = { start: r, end: o };
2358
2358
  }
2359
- return c(), this.trimHiddenDays(u) || (e = this.skipHiddenDays(e, t), c()), u;
2359
+ return u(), this.trimHiddenDays(c) || (e = this.skipHiddenDays(e, t), u()), c;
2360
2360
  }
2361
2361
  // Builds the "current" range when a dayCount is specified.
2362
2362
  buildRangeFromDayCount(e, t, i) {
@@ -2453,15 +2453,15 @@ function J3(a, e, t) {
2453
2453
  let { dateEnv: i, pluginHooks: n, options: l } = t, { defs: s, instances: r } = a;
2454
2454
  r = G3(r, (o) => !s[o.defId].recurringDef);
2455
2455
  for (let o in s) {
2456
- let u = s[o];
2457
- if (u.recurringDef) {
2458
- let { duration: c } = u.recurringDef;
2459
- c || (c = u.allDay ? l.defaultAllDayEventDuration : l.defaultTimedEventDuration);
2460
- let d = Xs(u, c, e, i, n.recurringTypes);
2456
+ let c = s[o];
2457
+ if (c.recurringDef) {
2458
+ let { duration: u } = c.recurringDef;
2459
+ u || (u = c.allDay ? l.defaultAllDayEventDuration : l.defaultTimedEventDuration);
2460
+ let d = Xs(c, u, e, i, n.recurringTypes);
2461
2461
  for (let f of d) {
2462
2462
  let h = S2(o, {
2463
2463
  start: f,
2464
- end: i.add(f, c)
2464
+ end: i.add(f, u)
2465
2465
  });
2466
2466
  r[h.instanceId] = h;
2467
2467
  }
@@ -2489,16 +2489,16 @@ const we = {
2489
2489
  allDay: Boolean
2490
2490
  }, $s = Object.assign(Object.assign(Object.assign({}, we), Ri), { extendedProps: z });
2491
2491
  function Ti(a, e, t, i, n = x2(t), l, s) {
2492
- let { refined: r, extra: o } = Hi(a, t, n), u = tr(e, t), c = Zs(r, u, t.dateEnv, t.pluginHooks.recurringTypes);
2493
- if (c) {
2494
- let f = qt(r, o, e ? e.sourceId : "", c.allDay, !!c.duration, t, l);
2492
+ let { refined: r, extra: o } = Hi(a, t, n), c = tr(e, t), u = Zs(r, c, t.dateEnv, t.pluginHooks.recurringTypes);
2493
+ if (u) {
2494
+ let f = qt(r, o, e ? e.sourceId : "", u.allDay, !!u.duration, t, l);
2495
2495
  return f.recurringDef = {
2496
- typeId: c.typeId,
2497
- typeData: c.typeData,
2498
- duration: c.duration
2496
+ typeId: u.typeId,
2497
+ typeData: u.typeData,
2498
+ duration: u.duration
2499
2499
  }, { def: f, instance: null };
2500
2500
  }
2501
- let d = er(r, u, t, i);
2501
+ let d = er(r, c, t, i);
2502
2502
  if (d) {
2503
2503
  let f = qt(r, o, e ? e.sourceId : "", d.allDay, d.hasEnd, t, l), h = S2(f.defId, d.range, d.forcedStartTzo, d.forcedEndTzo);
2504
2504
  return s && f.publicId && s[f.publicId] && (h.instanceId = s[f.publicId]), { def: f, instance: h };
@@ -2531,15 +2531,15 @@ function qt(a, e, t, i, n, l, s) {
2531
2531
  return Object.freeze(r.ui.classNames), Object.freeze(r.extendedProps), r;
2532
2532
  }
2533
2533
  function er(a, e, t, i) {
2534
- let { allDay: n } = a, l, s = null, r = !1, o, u = null, c = a.start != null ? a.start : a.date;
2535
- if (l = t.dateEnv.createMarkerMeta(c), l)
2534
+ let { allDay: n } = a, l, s = null, r = !1, o, c = null, u = a.start != null ? a.start : a.date;
2535
+ if (l = t.dateEnv.createMarkerMeta(u), l)
2536
2536
  s = l.marker;
2537
2537
  else if (!i)
2538
2538
  return null;
2539
- return a.end != null && (o = t.dateEnv.createMarkerMeta(a.end)), n == null && (e != null ? n = e : n = (!l || l.isTimeUnspecified) && (!o || o.isTimeUnspecified)), n && s && (s = m1(s)), o && (u = o.marker, n && (u = m1(u)), s && u <= s && (u = null)), u ? r = !0 : i || (r = t.options.forceEventDuration || !1, u = t.dateEnv.add(s, n ? t.options.defaultAllDayEventDuration : t.options.defaultTimedEventDuration)), {
2539
+ return a.end != null && (o = t.dateEnv.createMarkerMeta(a.end)), n == null && (e != null ? n = e : n = (!l || l.isTimeUnspecified) && (!o || o.isTimeUnspecified)), n && s && (s = m1(s)), o && (c = o.marker, n && (c = m1(c)), s && c <= s && (c = null)), c ? r = !0 : i || (r = t.options.forceEventDuration || !1, c = t.dateEnv.add(s, n ? t.options.defaultAllDayEventDuration : t.options.defaultTimedEventDuration)), {
2540
2540
  allDay: n,
2541
2541
  hasEnd: r,
2542
- range: { start: s, end: u },
2542
+ range: { start: s, end: c },
2543
2543
  forcedStartTzo: l ? l.forcedTzo : null,
2544
2544
  forcedEndTzo: o ? o.forcedTzo : null
2545
2545
  };
@@ -2551,8 +2551,8 @@ function tr(a, e) {
2551
2551
  function N0(a, e, t, i, n, l) {
2552
2552
  let s = Q1(), r = x2(t);
2553
2553
  for (let o of a) {
2554
- let u = Ti(o, e, t, i, r, n, l);
2555
- u && Gt(u, s);
2554
+ let c = Ti(o, e, t, i, r, n, l);
2555
+ c && Gt(c, s);
2556
2556
  }
2557
2557
  return s;
2558
2558
  }
@@ -2992,12 +2992,12 @@ class A1 {
2992
2992
  if (s && !(t != null && (r = n.createMarker(t), !r)) && this._instance) {
2993
2993
  let o = this._instance.range;
2994
2994
  i.allDay === !0 && (o = Ii(o));
2995
- let u = r0(o.start, s, n, i.granularity);
2995
+ let c = r0(o.start, s, n, i.granularity);
2996
2996
  if (r) {
2997
- let c = r0(o.end, r, n, i.granularity);
2998
- ql(u, c) ? this.mutate({ datesDelta: u, standardProps: l }) : this.mutate({ startDelta: u, endDelta: c, standardProps: l });
2997
+ let u = r0(o.end, r, n, i.granularity);
2998
+ ql(c, u) ? this.mutate({ datesDelta: c, standardProps: l }) : this.mutate({ startDelta: c, endDelta: u, standardProps: l });
2999
2999
  } else
3000
- l.hasEnd = !1, this.mutate({ datesDelta: u, standardProps: l });
3000
+ l.hasEnd = !1, this.mutate({ datesDelta: c, standardProps: l });
3001
3001
  }
3002
3002
  }
3003
3003
  moveStart(e) {
@@ -3173,19 +3173,19 @@ function Ki(a) {
3173
3173
  function W3(a, e, t) {
3174
3174
  let { defs: i, instances: n } = a, l = [], s = t ? t.instanceId : "";
3175
3175
  for (let r in n) {
3176
- let o = n[r], u = i[o.defId];
3177
- o.instanceId !== s && l.push(new A1(e, u, o));
3176
+ let o = n[r], c = i[o.defId];
3177
+ o.instanceId !== s && l.push(new A1(e, c, o));
3178
3178
  }
3179
3179
  return l;
3180
3180
  }
3181
3181
  function W6(a, e, t, i) {
3182
- let n = {}, l = {}, s = {}, r = [], o = [], u = We(a.defs, e);
3183
- for (let c in a.defs) {
3184
- let d = a.defs[c];
3185
- u[d.defId].display === "inverse-background" && (d.groupId ? (n[d.groupId] = [], s[d.groupId] || (s[d.groupId] = d)) : l[c] = []);
3182
+ let n = {}, l = {}, s = {}, r = [], o = [], c = We(a.defs, e);
3183
+ for (let u in a.defs) {
3184
+ let d = a.defs[u];
3185
+ c[d.defId].display === "inverse-background" && (d.groupId ? (n[d.groupId] = [], s[d.groupId] || (s[d.groupId] = d)) : l[u] = []);
3186
3186
  }
3187
- for (let c in a.instances) {
3188
- let d = a.instances[c], f = a.defs[d.defId], h = u[f.defId], g = d.range, m = !f.allDay && i ? Vi(g, i) : g, p = _3(m, t);
3187
+ for (let u in a.instances) {
3188
+ let d = a.instances[u], f = a.defs[d.defId], h = c[f.defId], g = d.range, m = !f.allDay && i ? Vi(g, i) : g, p = _3(m, t);
3189
3189
  p && (h.display === "inverse-background" ? f.groupId ? n[f.groupId].push(p) : l[d.defId].push(p) : h.display !== "none" && (h.display === "background" ? r : o).push({
3190
3190
  def: f,
3191
3191
  ui: h,
@@ -3195,10 +3195,10 @@ function W6(a, e, t, i) {
3195
3195
  isEnd: m.end && m.end.valueOf() === p.end.valueOf()
3196
3196
  }));
3197
3197
  }
3198
- for (let c in n) {
3199
- let d = n[c], f = F6(d, t);
3198
+ for (let u in n) {
3199
+ let d = n[u], f = F6(d, t);
3200
3200
  for (let h of f) {
3201
- let g = s[c], m = u[g.defId];
3201
+ let g = s[u], m = c[g.defId];
3202
3202
  r.push({
3203
3203
  def: g,
3204
3204
  ui: m,
@@ -3209,12 +3209,12 @@ function W6(a, e, t, i) {
3209
3209
  });
3210
3210
  }
3211
3211
  }
3212
- for (let c in l) {
3213
- let d = l[c], f = F6(d, t);
3212
+ for (let u in l) {
3213
+ let d = l[u], f = F6(d, t);
3214
3214
  for (let h of f)
3215
3215
  r.push({
3216
- def: a.defs[c],
3217
- ui: u[c],
3216
+ def: a.defs[u],
3217
+ ui: c[u],
3218
3218
  instance: null,
3219
3219
  range: h,
3220
3220
  isStart: !1,
@@ -3268,10 +3268,10 @@ function xr(a, e) {
3268
3268
  return a.isEnd && a.eventRange.ui.durationEditable;
3269
3269
  }
3270
3270
  function Qi(a, e, t, i, n, l, s) {
3271
- let { dateEnv: r, options: o } = t, { displayEventTime: u, displayEventEnd: c } = o, d = a.eventRange.def, f = a.eventRange.instance;
3272
- u == null && (u = i !== !1), c == null && (c = n !== !1);
3271
+ let { dateEnv: r, options: o } = t, { displayEventTime: c, displayEventEnd: u } = o, d = a.eventRange.def, f = a.eventRange.instance;
3272
+ c == null && (c = i !== !1), u == null && (u = n !== !1);
3273
3273
  let h = f.range.start, g = f.range.end, m = a.start || a.eventRange.range.start, p = a.end || a.eventRange.range.end, y = m1(h).valueOf() === m1(m).valueOf(), b = m1(B3(g, -1)).valueOf() === m1(B3(p, -1)).valueOf();
3274
- return u && !d.allDay && (y || b) ? (m = y ? h : m, p = b ? g : p, c && d.hasEnd ? r.formatRange(m, p, e, {
3274
+ return c && !d.allDay && (y || b) ? (m = y ? h : m, p = b ? g : p, u && d.hasEnd ? r.formatRange(m, p, e, {
3275
3275
  forcedStartTzo: f.forcedStartTzo,
3276
3276
  forcedEndTzo: f.forcedEndTzo
3277
3277
  }) : r.format(m, e, {
@@ -3843,21 +3843,21 @@ class qr {
3843
3843
  this.getKeysForEventDefs = Q(this._getKeysForEventDefs), this.splitDateSelection = Q(this._splitDateSpan), this.splitEventStore = Q(this._splitEventStore), this.splitIndividualUi = Q(this._splitIndividualUi), this.splitEventDrag = Q(this._splitInteraction), this.splitEventResize = Q(this._splitInteraction), this.eventUiBuilders = {};
3844
3844
  }
3845
3845
  splitProps(e) {
3846
- let t = this.getKeyInfo(e), i = this.getKeysForEventDefs(e.eventStore), n = this.splitDateSelection(e.dateSelection), l = this.splitIndividualUi(e.eventUiBases, i), s = this.splitEventStore(e.eventStore, i), r = this.splitEventDrag(e.eventDrag), o = this.splitEventResize(e.eventResize), u = {};
3847
- this.eventUiBuilders = y3(t, (c, d) => this.eventUiBuilders[d] || Q(Gr));
3848
- for (let c in t) {
3849
- let d = t[c], f = s[c] || Ct, h = this.eventUiBuilders[c];
3850
- u[c] = {
3846
+ let t = this.getKeyInfo(e), i = this.getKeysForEventDefs(e.eventStore), n = this.splitDateSelection(e.dateSelection), l = this.splitIndividualUi(e.eventUiBases, i), s = this.splitEventStore(e.eventStore, i), r = this.splitEventDrag(e.eventDrag), o = this.splitEventResize(e.eventResize), c = {};
3847
+ this.eventUiBuilders = y3(t, (u, d) => this.eventUiBuilders[d] || Q(Gr));
3848
+ for (let u in t) {
3849
+ let d = t[u], f = s[u] || Ct, h = this.eventUiBuilders[u];
3850
+ c[u] = {
3851
3851
  businessHours: d.businessHours || e.businessHours,
3852
- dateSelection: n[c] || null,
3852
+ dateSelection: n[u] || null,
3853
3853
  eventStore: f,
3854
- eventUiBases: h(e.eventUiBases[""], d.ui, l[c]),
3854
+ eventUiBases: h(e.eventUiBases[""], d.ui, l[u]),
3855
3855
  eventSelection: f.instances[e.eventSelection] ? e.eventSelection : "",
3856
- eventDrag: r[c] || null,
3857
- eventResize: o[c] || null
3856
+ eventDrag: r[u] || null,
3857
+ eventResize: o[u] || null
3858
3858
  };
3859
3859
  }
3860
- return u;
3860
+ return c;
3861
3861
  }
3862
3862
  _splitDateSpan(e) {
3863
3863
  let t = {};
@@ -3940,11 +3940,11 @@ function Qe(a, e, t = "day", i = !0) {
3940
3940
  let r = n.format(e, t === "week" ? Jr : _r);
3941
3941
  if (l.navLinks) {
3942
3942
  let o = n.toDate(e);
3943
- const u = (c) => {
3943
+ const c = (u) => {
3944
3944
  let d = t === "day" ? l.navLinkDayClick : t === "week" ? l.navLinkWeekClick : null;
3945
- typeof d == "function" ? d.call(s, n.toDate(e), c) : (typeof d == "string" && (t = d), s.zoomTo(e, t));
3945
+ typeof d == "function" ? d.call(s, n.toDate(e), u) : (typeof d == "string" && (t = d), s.zoomTo(e, t));
3946
3946
  };
3947
- return Object.assign({ title: V0(l.navLinkHint, [r, o], r), "data-navlink": "" }, i ? bi(u) : { onClick: u });
3947
+ return Object.assign({ title: V0(l.navLinkHint, [r, o], r), "data-navlink": "" }, i ? bi(c) : { onClick: c });
3948
3948
  }
3949
3949
  return { "aria-label": r };
3950
3950
  }
@@ -3983,16 +3983,16 @@ function $i(a) {
3983
3983
  };
3984
3984
  }
3985
3985
  function t7(a, e = !1) {
3986
- let t = window.getComputedStyle(a), i = parseInt(t.borderLeftWidth, 10) || 0, n = parseInt(t.borderRightWidth, 10) || 0, l = parseInt(t.borderTopWidth, 10) || 0, s = parseInt(t.borderBottomWidth, 10) || 0, r = $i(a), o = r.y - i - n, u = r.x - l - s, c = {
3986
+ let t = window.getComputedStyle(a), i = parseInt(t.borderLeftWidth, 10) || 0, n = parseInt(t.borderRightWidth, 10) || 0, l = parseInt(t.borderTopWidth, 10) || 0, s = parseInt(t.borderBottomWidth, 10) || 0, r = $i(a), o = r.y - i - n, c = r.x - l - s, u = {
3987
3987
  borderLeft: i,
3988
3988
  borderRight: n,
3989
3989
  borderTop: l,
3990
3990
  borderBottom: s,
3991
- scrollbarBottom: u,
3991
+ scrollbarBottom: c,
3992
3992
  scrollbarLeft: 0,
3993
3993
  scrollbarRight: 0
3994
3994
  };
3995
- return Zr() && t.direction === "rtl" ? c.scrollbarLeft = o : c.scrollbarRight = o, e && (c.paddingLeft = parseInt(t.paddingLeft, 10) || 0, c.paddingRight = parseInt(t.paddingRight, 10) || 0, c.paddingTop = parseInt(t.paddingTop, 10) || 0, c.paddingBottom = parseInt(t.paddingBottom, 10) || 0), c;
3995
+ return Zr() && t.direction === "rtl" ? u.scrollbarLeft = o : u.scrollbarRight = o, e && (u.paddingLeft = parseInt(t.paddingLeft, 10) || 0, u.paddingRight = parseInt(t.paddingRight, 10) || 0, u.paddingTop = parseInt(t.paddingTop, 10) || 0, u.paddingBottom = parseInt(t.paddingBottom, 10) || 0), u;
3996
3996
  }
3997
3997
  function a7(a, e = !1, t) {
3998
3998
  let i = T2(a), n = t7(a, e), l = {
@@ -4246,7 +4246,7 @@ class tn {
4246
4246
  does not care about limits
4247
4247
  */
4248
4248
  findInsertion(e) {
4249
- let { levelCoords: t, entriesByLevel: i, strictOrder: n, stackCnts: l } = this, s = t.length, r = 0, o = -1, u = -1, c = null, d = 0;
4249
+ let { levelCoords: t, entriesByLevel: i, strictOrder: n, stackCnts: l } = this, s = t.length, r = 0, o = -1, c = -1, u = null, d = 0;
4250
4250
  for (let g = 0; g < s; g += 1) {
4251
4251
  const m = t[g];
4252
4252
  if (!n && m >= r + this.getEntryThickness(e))
@@ -4259,18 +4259,18 @@ class tn {
4259
4259
  y.span.start < e.span.end;
4260
4260
  ) {
4261
4261
  let v = m + this.getEntryThickness(y);
4262
- v > r && (r = v, c = y, o = g, u = C), v === r && (d = Math.max(d, l[Q3(y)] + 1)), C += 1;
4262
+ v > r && (r = v, u = y, o = g, c = C), v === r && (d = Math.max(d, l[Q3(y)] + 1)), C += 1;
4263
4263
  }
4264
4264
  }
4265
4265
  let f = 0;
4266
- if (c)
4266
+ if (u)
4267
4267
  for (f = o + 1; f < s && t[f] < r; )
4268
4268
  f += 1;
4269
4269
  let h = -1;
4270
4270
  return f < s && t[f] === r && (h = Zt(i[f], e.span.end, Jt)[0]), {
4271
4271
  touchingLevel: o,
4272
- touchingLateral: u,
4273
- touchingEntry: c,
4272
+ touchingLateral: c,
4273
+ touchingEntry: u,
4274
4274
  stackCnt: d,
4275
4275
  levelCoord: r,
4276
4276
  level: f,
@@ -4363,10 +4363,10 @@ function nn(a) {
4363
4363
  }
4364
4364
  class u7 extends c1 {
4365
4365
  render() {
4366
- let { dateEnv: e, options: t, theme: i, viewApi: n } = this.context, { props: l } = this, { date: s, dateProfile: r } = l, o = Xi(s, l.todayRange, null, r), u = [an].concat(R2(o, i)), c = e.format(s, l.dayHeaderFormat), d = !o.isDisabled && l.colCnt > 1 ? Qe(this.context, s) : {}, f = e.toDate(s);
4366
+ let { dateEnv: e, options: t, theme: i, viewApi: n } = this.context, { props: l } = this, { date: s, dateProfile: r } = l, o = Xi(s, l.todayRange, null, r), c = [an].concat(R2(o, i)), u = e.format(s, l.dayHeaderFormat), d = !o.isDisabled && l.colCnt > 1 ? Qe(this.context, s) : {}, f = e.toDate(s);
4367
4367
  e.namedTimeZoneImpl && (f = B3(f, 36e5));
4368
- let h = Object.assign(Object.assign(Object.assign({ date: f, view: n }, l.extraRenderProps), { text: c }), o);
4369
- return A(q1, { elTag: "th", elClasses: u, elAttrs: Object.assign({ role: "columnheader", colSpan: l.colSpan, "data-date": o.isDisabled ? void 0 : y2(s) }, l.extraDataAttrs), renderProps: h, generatorName: "dayHeaderContent", customGenerator: t.dayHeaderContent, defaultGenerator: nn, classNameGenerator: t.dayHeaderClassNames, didMount: t.dayHeaderDidMount, willUnmount: t.dayHeaderWillUnmount }, (g) => A("div", { className: "fc-scrollgrid-sync-inner" }, !o.isDisabled && A(g, { elTag: "a", elAttrs: d, elClasses: [
4368
+ let h = Object.assign(Object.assign(Object.assign({ date: f, view: n }, l.extraRenderProps), { text: u }), o);
4369
+ return A(q1, { elTag: "th", elClasses: c, elAttrs: Object.assign({ role: "columnheader", colSpan: l.colSpan, "data-date": o.isDisabled ? void 0 : y2(s) }, l.extraDataAttrs), renderProps: h, generatorName: "dayHeaderContent", customGenerator: t.dayHeaderContent, defaultGenerator: nn, classNameGenerator: t.dayHeaderClassNames, didMount: t.dayHeaderDidMount, willUnmount: t.dayHeaderWillUnmount }, (g) => A("div", { className: "fc-scrollgrid-sync-inner" }, !o.isDisabled && A(g, { elTag: "a", elAttrs: d, elClasses: [
4370
4370
  "fc-col-header-cell-cushion",
4371
4371
  l.isSticky && "fc-sticky"
4372
4372
  ] })));
@@ -4382,7 +4382,7 @@ class h7 extends c1 {
4382
4382
  isPast: !1,
4383
4383
  isToday: !1,
4384
4384
  isOther: !1
4385
- }, o = t.format(s, e.dayHeaderFormat), u = Object.assign(Object.assign(Object.assign(Object.assign({
4385
+ }, o = t.format(s, e.dayHeaderFormat), c = Object.assign(Object.assign(Object.assign(Object.assign({
4386
4386
  // TODO: make this public?
4387
4387
  date: s
4388
4388
  }, r), { view: n }), e.extraRenderProps), { text: o });
@@ -4390,10 +4390,10 @@ class h7 extends c1 {
4390
4390
  an,
4391
4391
  ...R2(r, i),
4392
4392
  ...e.extraClassNames || []
4393
- ], elAttrs: Object.assign({ role: "columnheader", colSpan: e.colSpan }, e.extraDataAttrs), renderProps: u, generatorName: "dayHeaderContent", customGenerator: l.dayHeaderContent, defaultGenerator: nn, classNameGenerator: l.dayHeaderClassNames, didMount: l.dayHeaderDidMount, willUnmount: l.dayHeaderWillUnmount }, (c) => A(
4393
+ ], elAttrs: Object.assign({ role: "columnheader", colSpan: e.colSpan }, e.extraDataAttrs), renderProps: c, generatorName: "dayHeaderContent", customGenerator: l.dayHeaderContent, defaultGenerator: nn, classNameGenerator: l.dayHeaderClassNames, didMount: l.dayHeaderDidMount, willUnmount: l.dayHeaderWillUnmount }, (u) => A(
4394
4394
  "div",
4395
4395
  { className: "fc-scrollgrid-sync-inner" },
4396
- A(c, { elTag: "a", elClasses: [
4396
+ A(u, { elTag: "a", elClasses: [
4397
4397
  "fc-col-header-cell-cushion",
4398
4398
  e.isSticky && "fc-sticky"
4399
4399
  ], elAttrs: {
@@ -4412,7 +4412,7 @@ class ln extends c1 {
4412
4412
  "tr",
4413
4413
  { role: "row" },
4414
4414
  l && l("day"),
4415
- t.map((u) => n ? A(u7, { key: u.toISOString(), date: u, dateProfile: i, todayRange: o, colCnt: t.length, dayHeaderFormat: s }) : A(h7, { key: u.getUTCDay(), dow: u.getUTCDay(), dayHeaderFormat: s }))
4415
+ t.map((c) => n ? A(u7, { key: c.toISOString(), date: c, dateProfile: i, todayRange: o, colCnt: t.length, dayHeaderFormat: s }) : A(h7, { key: c.getUTCDay(), dow: c.getUTCDay(), dayHeaderFormat: s }))
4416
4416
  ));
4417
4417
  }
4418
4418
  }
@@ -4484,14 +4484,14 @@ class rn {
4484
4484
  if (i) {
4485
4485
  let { firstIndex: l, lastIndex: s } = i, r = l;
4486
4486
  for (; r <= s; ) {
4487
- let o = Math.floor(r / t), u = Math.min((o + 1) * t, s + 1);
4487
+ let o = Math.floor(r / t), c = Math.min((o + 1) * t, s + 1);
4488
4488
  n.push({
4489
4489
  row: o,
4490
4490
  firstCol: r % t,
4491
- lastCol: (u - 1) % t,
4491
+ lastCol: (c - 1) % t,
4492
4492
  isStart: i.isStart && r === l,
4493
- isEnd: i.isEnd && u - 1 === s
4494
- }), r = u;
4493
+ isEnd: i.isEnd && c - 1 === s
4494
+ }), r = c;
4495
4495
  }
4496
4496
  }
4497
4497
  return n;
@@ -4553,10 +4553,10 @@ class on {
4553
4553
  let r = de(t, !!i), o = _3(e.range, r);
4554
4554
  if (o) {
4555
4555
  e = Object.assign(Object.assign({}, e), { range: o });
4556
- let u = Hr(e, n, l), c = this.sliceRange(e.range, ...s);
4557
- for (let d of c)
4558
- d.eventRange = u;
4559
- return c;
4556
+ let c = Hr(e, n, l), u = this.sliceRange(e.range, ...s);
4557
+ for (let d of u)
4558
+ d.eventRange = c;
4559
+ return u;
4560
4560
  }
4561
4561
  return [];
4562
4562
  }
@@ -4610,12 +4610,12 @@ function v7(a, e, t = {}, i) {
4610
4610
  return !(a.eventDrag && !m7(a, e, t, i) || a.dateSelection && !g7(a, e, t, i));
4611
4611
  }
4612
4612
  function m7(a, e, t, i) {
4613
- let n = e.getCurrentData(), l = a.eventDrag, s = l.mutatedEvents, r = s.defs, o = s.instances, u = We(r, l.isEvent ? a.eventUiBases : { "": n.selectionConfig });
4614
- i && (u = y3(u, i));
4615
- let c = fr(a.eventStore, l.affectedEvents.instances), d = c.defs, f = c.instances, h = We(d, a.eventUiBases);
4613
+ let n = e.getCurrentData(), l = a.eventDrag, s = l.mutatedEvents, r = s.defs, o = s.instances, c = We(r, l.isEvent ? a.eventUiBases : { "": n.selectionConfig });
4614
+ i && (c = y3(c, i));
4615
+ let u = fr(a.eventStore, l.affectedEvents.instances), d = u.defs, f = u.instances, h = We(d, a.eventUiBases);
4616
4616
  for (let g in o) {
4617
- let m = o[g], p = m.range, y = u[m.defId], b = r[m.defId];
4618
- if (!dn(y.constraints, p, c, a.businessHours, e))
4617
+ let m = o[g], p = m.range, y = c[m.defId], b = r[m.defId];
4618
+ if (!dn(y.constraints, p, u, a.businessHours, e))
4619
4619
  return !1;
4620
4620
  let { eventOverlap: C } = e.options, v = typeof C == "function" ? C : null;
4621
4621
  for (let x in f) {
@@ -4637,16 +4637,16 @@ function m7(a, e, t, i) {
4637
4637
  return !0;
4638
4638
  }
4639
4639
  function g7(a, e, t, i) {
4640
- let n = a.eventStore, l = n.defs, s = n.instances, r = a.dateSelection, o = r.range, { selectionConfig: u } = e.getCurrentData();
4641
- if (i && (u = i(u)), !dn(u.constraints, o, n, a.businessHours, e))
4640
+ let n = a.eventStore, l = n.defs, s = n.instances, r = a.dateSelection, o = r.range, { selectionConfig: c } = e.getCurrentData();
4641
+ if (i && (c = i(c)), !dn(c.constraints, o, n, a.businessHours, e))
4642
4642
  return !1;
4643
- let { selectOverlap: c } = e.options, d = typeof c == "function" ? c : null;
4643
+ let { selectOverlap: u } = e.options, d = typeof u == "function" ? u : null;
4644
4644
  for (let f in s) {
4645
4645
  let h = s[f];
4646
- if (M2(o, h.range) && (u.overlap === !1 || d && !d(new A1(e, l[h.defId], h), null)))
4646
+ if (M2(o, h.range) && (c.overlap === !1 || d && !d(new A1(e, l[h.defId], h), null)))
4647
4647
  return !1;
4648
4648
  }
4649
- for (let f of u.allows) {
4649
+ for (let f of c.allows) {
4650
4650
  let h = Object.assign(Object.assign({}, t), r);
4651
4651
  if (!f(I2(h, e), null))
4652
4652
  return !1;
@@ -4842,13 +4842,13 @@ class N2 extends c1 {
4842
4842
  render() {
4843
4843
  let { props: e, state: t, context: i } = this, n = e.sections || [], l = this.processCols(e.cols), s = this.renderMicroColGroup(l, t.shrinkWidth), r = k7(e.liquid, i);
4844
4844
  e.collapsibleWidth && r.push("fc-scrollgrid-collapsible");
4845
- let o = n.length, u = 0, c, d = [], f = [], h = [];
4846
- for (; u < o && (c = n[u]).type === "header"; )
4847
- d.push(this.renderSection(c, s, !0)), u += 1;
4848
- for (; u < o && (c = n[u]).type === "body"; )
4849
- f.push(this.renderSection(c, s, !1)), u += 1;
4850
- for (; u < o && (c = n[u]).type === "footer"; )
4851
- h.push(this.renderSection(c, s, !0)), u += 1;
4845
+ let o = n.length, c = 0, u, d = [], f = [], h = [];
4846
+ for (; c < o && (u = n[c]).type === "header"; )
4847
+ d.push(this.renderSection(u, s, !0)), c += 1;
4848
+ for (; c < o && (u = n[c]).type === "body"; )
4849
+ f.push(this.renderSection(u, s, !1)), c += 1;
4850
+ for (; c < o && (u = n[c]).type === "footer"; )
4851
+ h.push(this.renderSection(u, s, !0)), c += 1;
4852
4852
  let g = !Ji();
4853
4853
  const m = { role: "rowgroup" };
4854
4854
  return A("table", {
@@ -4863,7 +4863,7 @@ class N2 extends c1 {
4863
4863
  renderChunkTd(e, t, i, n) {
4864
4864
  if ("outerContent" in i)
4865
4865
  return i.outerContent;
4866
- let { props: l } = this, { forceYScrollbars: s, scrollerClientWidths: r, scrollerClientHeights: o } = this.state, u = E7(l, e), c = hn(l, e), d = l.liquid ? s ? "scroll" : u ? "auto" : "hidden" : "visible", f = e.key, h = z7(e, i, {
4866
+ let { props: l } = this, { forceYScrollbars: s, scrollerClientWidths: r, scrollerClientHeights: o } = this.state, c = E7(l, e), u = hn(l, e), d = l.liquid ? s ? "scroll" : c ? "auto" : "hidden" : "visible", f = e.key, h = z7(e, i, {
4867
4867
  tableColGroupNode: t,
4868
4868
  tableMinWidth: "",
4869
4869
  clientWidth: !l.collapsibleWidth && r[f] !== void 0 ? r[f] : null,
@@ -4879,8 +4879,8 @@ class N2 extends c1 {
4879
4879
  role: "presentation"
4880
4880
  }, A(
4881
4881
  "div",
4882
- { className: `fc-scroller-harness${c ? " fc-scroller-harness-liquid" : ""}` },
4883
- A(b7, { ref: this.scrollerRefs.createRef(f), elRef: this.scrollerElRefs.createRef(f), overflowY: d, overflowX: l.liquid ? "hidden" : "visible", maxHeight: e.maxHeight, liquid: c, liquidIsAbsolute: !0 }, h)
4882
+ { className: `fc-scroller-harness${u ? " fc-scroller-harness-liquid" : ""}` },
4883
+ A(b7, { ref: this.scrollerRefs.createRef(f), elRef: this.scrollerElRefs.createRef(f), overflowY: d, overflowX: l.liquid ? "hidden" : "visible", maxHeight: e.maxHeight, liquid: u, liquidIsAbsolute: !0 }, h)
4884
4884
  ));
4885
4885
  }
4886
4886
  _handleScrollerEl(e, t) {
@@ -4909,10 +4909,10 @@ class N2 extends c1 {
4909
4909
  }
4910
4910
  }
4911
4911
  for (let r of this.props.sections) {
4912
- let o = r.key, u = i.currentMap[o];
4913
- if (u) {
4914
- let c = u.parentNode;
4915
- l[o] = Math.floor(c.getBoundingClientRect().width - (n ? e.y : 0)), s[o] = Math.floor(c.getBoundingClientRect().height);
4912
+ let o = r.key, c = i.currentMap[o];
4913
+ if (c) {
4914
+ let u = c.parentNode;
4915
+ l[o] = Math.floor(u.getBoundingClientRect().width - (n ? e.y : 0)), s[o] = Math.floor(u.getBoundingClientRect().height);
4916
4916
  }
4917
4917
  }
4918
4918
  return { forceYScrollbars: n, scrollerClientWidths: l, scrollerClientHeights: s };
@@ -4971,12 +4971,12 @@ class j2 extends c1 {
4971
4971
  return A(F2, Object.assign({}, e, { elTag: "a", elStyle: {
4972
4972
  borderColor: l.borderColor,
4973
4973
  backgroundColor: l.backgroundColor
4974
- }, elAttrs: qi(n, t), defaultGenerator: V7, timeText: r }), (o, u) => A(
4974
+ }, elAttrs: qi(n, t), defaultGenerator: V7, timeText: r }), (o, c) => A(
4975
4975
  v1,
4976
4976
  null,
4977
- A(o, { elTag: "div", elClasses: ["fc-event-main"], elStyle: { color: u.textColor } }),
4978
- !!u.isStartResizable && A("div", { className: "fc-event-resizer fc-event-resizer-start" }),
4979
- !!u.isEndResizable && A("div", { className: "fc-event-resizer fc-event-resizer-end" })
4977
+ A(o, { elTag: "div", elClasses: ["fc-event-main"], elStyle: { color: c.textColor } }),
4978
+ !!c.isStartResizable && A("div", { className: "fc-event-resizer fc-event-resizer-start" }),
4979
+ !!c.isEndResizable && A("div", { className: "fc-event-resizer fc-event-resizer-end" })
4980
4980
  ));
4981
4981
  }
4982
4982
  }
@@ -5107,10 +5107,10 @@ class L7 extends c1 {
5107
5107
  if (l) {
5108
5108
  let s = n.getBoundingClientRect(), r = i ? D1(t, ".fc-scrollgrid").getBoundingClientRect().top : l.top, o = e ? l.right - s.width : l.left;
5109
5109
  r = Math.max(r, Dt), o = Math.min(o, document.documentElement.clientWidth - Dt - s.width), o = Math.max(o, Dt);
5110
- let u = n.offsetParent.getBoundingClientRect();
5110
+ let c = n.offsetParent.getBoundingClientRect();
5111
5111
  I0(n, {
5112
- top: r - u.top,
5113
- left: o - u.left
5112
+ top: r - c.top,
5113
+ left: o - c.left
5114
5114
  });
5115
5115
  }
5116
5116
  }
@@ -5126,9 +5126,9 @@ class O7 extends u3 {
5126
5126
  }
5127
5127
  render() {
5128
5128
  let { options: e, dateEnv: t } = this.context, { props: i } = this, { startDate: n, todayRange: l, dateProfile: s } = i, r = t.format(n, e.dayPopoverFormat);
5129
- return A(K2, { elRef: this.handleRootEl, date: n, dateProfile: s, todayRange: l }, (o, u, c) => A(
5129
+ return A(K2, { elRef: this.handleRootEl, date: n, dateProfile: s, todayRange: l }, (o, c, u) => A(
5130
5130
  L7,
5131
- { elRef: c.ref, id: i.id, title: r, extraClassNames: ["fc-more-popover"].concat(c.className || []), extraAttrs: c, parentEl: i.parentEl, alignmentEl: i.alignmentEl, alignGridTop: i.alignGridTop, onClose: i.onClose },
5131
+ { elRef: u.ref, id: i.id, title: r, extraClassNames: ["fc-more-popover"].concat(u.className || []), extraAttrs: u, parentEl: i.parentEl, alignmentEl: i.alignmentEl, alignGridTop: i.alignGridTop, onClose: i.onClose },
5132
5132
  P2(e) && A(o, { elTag: "div", elClasses: ["fc-more-popover-misc"] }),
5133
5133
  i.children
5134
5134
  ));
@@ -5163,11 +5163,11 @@ class gn extends c1 {
5163
5163
  }, this.handleClick = (e) => {
5164
5164
  let { props: t, context: i } = this, { moreLinkClick: n } = i.options, l = q6(t).start;
5165
5165
  function s(r) {
5166
- let { def: o, instance: u, range: c } = r.eventRange;
5166
+ let { def: o, instance: c, range: u } = r.eventRange;
5167
5167
  return {
5168
- event: new A1(i, o, u),
5169
- start: i.dateEnv.toDate(c.start),
5170
- end: i.dateEnv.toDate(c.end),
5168
+ event: new A1(i, o, c),
5169
+ start: i.dateEnv.toDate(u.start),
5170
+ end: i.dateEnv.toDate(u.end),
5171
5171
  isStart: r.isStart,
5172
5172
  isEnd: r.isEnd
5173
5173
  };
@@ -5187,10 +5187,10 @@ class gn extends c1 {
5187
5187
  render() {
5188
5188
  let { props: e, state: t } = this;
5189
5189
  return A(E3.Consumer, null, (i) => {
5190
- let { viewApi: n, options: l, calendarApi: s } = i, { moreLinkText: r } = l, { moreCnt: o } = e, u = q6(e), c = typeof r == "function" ? r.call(s, o) : `+${o} ${r}`, d = V0(l.moreLinkHint, [o], c), f = {
5190
+ let { viewApi: n, options: l, calendarApi: s } = i, { moreLinkText: r } = l, { moreCnt: o } = e, c = q6(e), u = typeof r == "function" ? r.call(s, o) : `+${o} ${r}`, d = V0(l.moreLinkHint, [o], u), f = {
5191
5191
  num: o,
5192
5192
  shortText: `+${o}`,
5193
- text: c,
5193
+ text: u,
5194
5194
  view: n
5195
5195
  };
5196
5196
  return A(
@@ -5200,7 +5200,7 @@ class gn extends c1 {
5200
5200
  ...e.elClasses || [],
5201
5201
  "fc-more-link"
5202
5202
  ], elStyle: e.elStyle, elAttrs: Object.assign(Object.assign(Object.assign({}, e.elAttrs), bi(this.handleClick)), { title: d, "aria-expanded": t.isPopoverOpen, "aria-controls": t.isPopoverOpen ? t.popoverId : "" }), renderProps: f, generatorName: "moreLinkContent", customGenerator: l.moreLinkContent, defaultGenerator: e.defaultGenerator || N7, classNameGenerator: l.moreLinkClassNames, didMount: l.moreLinkDidMount, willUnmount: l.moreLinkWillUnmount }, e.children),
5203
- t.isPopoverOpen && A(O7, { id: t.popoverId, startDate: u.start, endDate: u.end, dateProfile: e.dateProfile, todayRange: e.todayRange, extraDateSpan: e.extraDateSpan, parentEl: this.parentEl, alignmentEl: e.alignmentElRef ? e.alignmentElRef.current : this.linkEl, alignGridTop: e.alignGridTop, forceTimed: e.forceTimed, onClose: this.handlePopoverClose }, e.popoverContent())
5203
+ t.isPopoverOpen && A(O7, { id: t.popoverId, startDate: c.start, endDate: c.end, dateProfile: e.dateProfile, todayRange: e.todayRange, extraDateSpan: e.extraDateSpan, parentEl: this.parentEl, alignmentEl: e.alignmentElRef ? e.alignmentElRef.current : this.linkEl, alignGridTop: e.alignGridTop, forceTimed: e.forceTimed, onClose: this.handlePopoverClose }, e.popoverContent())
5204
5204
  );
5205
5205
  });
5206
5206
  }
@@ -5519,17 +5519,17 @@ function $t(a, e, t, i) {
5519
5519
  return n && (e[a] = n), n;
5520
5520
  }
5521
5521
  function $7(a, e, t, i) {
5522
- let n = t[a], l = i[a], s = (c) => n && n[c] !== null ? n[c] : l && l[c] !== null ? l[c] : null, r = s("component"), o = s("superType"), u = null;
5522
+ let n = t[a], l = i[a], s = (u) => n && n[u] !== null ? n[u] : l && l[u] !== null ? l[u] : null, r = s("component"), o = s("superType"), c = null;
5523
5523
  if (o) {
5524
5524
  if (o === a)
5525
5525
  throw new Error("Can't have a custom view type that references itself");
5526
- u = $t(o, e, t, i);
5526
+ c = $t(o, e, t, i);
5527
5527
  }
5528
- return !r && u && (r = u.component), r ? {
5528
+ return !r && c && (r = c.component), r ? {
5529
5529
  type: a,
5530
5530
  component: r,
5531
- defaults: Object.assign(Object.assign({}, u ? u.defaults : {}), n ? n.rawOptions : {}),
5532
- overrides: Object.assign(Object.assign({}, u ? u.overrides : {}), l ? l.rawOptions : {})
5531
+ defaults: Object.assign(Object.assign({}, c ? c.defaults : {}), n ? n.rawOptions : {}),
5532
+ overrides: Object.assign(Object.assign({}, c ? c.overrides : {}), l ? l.rawOptions : {})
5533
5533
  } : null;
5534
5534
  }
5535
5535
  function G6(a) {
@@ -5552,12 +5552,12 @@ function to(a, e, t, i) {
5552
5552
  return y3(s, (r) => ao(r, l, e, t, i));
5553
5553
  }
5554
5554
  function ao(a, e, t, i, n) {
5555
- let l = a.overrides.duration || a.defaults.duration || i.duration || t.duration, s = null, r = "", o = "", u = {};
5555
+ let l = a.overrides.duration || a.defaults.duration || i.duration || t.duration, s = null, r = "", o = "", c = {};
5556
5556
  if (l && (s = io(l), s)) {
5557
5557
  let f = Qt(s);
5558
- r = f.unit, f.value === 1 && (o = r, u = e[r] ? e[r].rawOptions : {});
5558
+ r = f.unit, f.value === 1 && (o = r, c = e[r] ? e[r].rawOptions : {});
5559
5559
  }
5560
- let c = (f) => {
5560
+ let u = (f) => {
5561
5561
  let h = f.buttonText || {}, g = a.defaults.buttonTextKey;
5562
5562
  return g != null && h[g] != null ? h[g] : h[a.type] != null ? h[a.type] : h[o] != null ? h[o] : null;
5563
5563
  }, d = (f) => {
@@ -5571,10 +5571,10 @@ function ao(a, e, t, i, n) {
5571
5571
  durationUnit: r,
5572
5572
  singleUnit: o,
5573
5573
  optionDefaults: a.defaults,
5574
- optionOverrides: Object.assign(Object.assign({}, u), a.overrides),
5575
- buttonTextOverride: c(i) || c(t) || // constructor-specified buttonText lookup hash takes precedence
5574
+ optionOverrides: Object.assign(Object.assign({}, c), a.overrides),
5575
+ buttonTextOverride: u(i) || u(t) || // constructor-specified buttonText lookup hash takes precedence
5576
5576
  a.overrides.buttonText,
5577
- buttonTextDefault: c(n) || a.defaults.buttonText || c(B0) || a.type,
5577
+ buttonTextDefault: u(n) || a.defaults.buttonText || u(B0) || a.type,
5578
5578
  // not DRY
5579
5579
  buttonTitleOverride: d(i) || d(t) || a.overrides.buttonHint,
5580
5580
  buttonTitleDefault: d(n) || a.defaults.buttonHint || d(B0)
@@ -5690,17 +5690,17 @@ function vo(a, e, t, i) {
5690
5690
  isRefetch: t,
5691
5691
  context: i
5692
5692
  }, (o) => {
5693
- let { rawEvents: u } = o;
5694
- n.eventSourceSuccess && (u = n.eventSourceSuccess.call(l, u, o.response) || u), a.success && (u = a.success.call(l, u, o.response) || u), i.dispatch({
5693
+ let { rawEvents: c } = o;
5694
+ n.eventSourceSuccess && (c = n.eventSourceSuccess.call(l, c, o.response) || c), a.success && (c = a.success.call(l, c, o.response) || c), i.dispatch({
5695
5695
  type: "RECEIVE_EVENTS",
5696
5696
  sourceId: a.sourceId,
5697
5697
  fetchId: r,
5698
5698
  fetchRange: e,
5699
- rawEvents: u
5699
+ rawEvents: c
5700
5700
  });
5701
5701
  }, (o) => {
5702
- let u = !1;
5703
- n.eventSourceFailure && (n.eventSourceFailure.call(l, o), u = !0), a.failure && (a.failure(o), u = !0), u || console.warn(o.message, o), i.dispatch({
5702
+ let c = !1;
5703
+ n.eventSourceFailure && (n.eventSourceFailure.call(l, o), c = !0), a.failure && (a.failure(o), c = !0), c || console.warn(o.message, o), i.dispatch({
5704
5704
  type: "RECEIVE_EVENT_ERROR",
5705
5705
  sourceId: a.sourceId,
5706
5706
  fetchId: r,
@@ -5785,14 +5785,14 @@ function Eo(a, e, t, i, n) {
5785
5785
  }
5786
5786
  function Z6(a, e, t, i, n, l) {
5787
5787
  let s = {}, r = [], o = !1;
5788
- for (let u in a) {
5789
- let c = a[u], d = zo(c, e, t, i, n, l);
5790
- s[u] = d.widgets, r.push(...d.viewsWithButtons), o = o || d.hasTitle;
5788
+ for (let c in a) {
5789
+ let u = a[c], d = zo(u, e, t, i, n, l);
5790
+ s[c] = d.widgets, r.push(...d.viewsWithButtons), o = o || d.hasTitle;
5791
5791
  }
5792
5792
  return { sectionWidgets: s, viewsWithButtons: r, hasTitle: o };
5793
5793
  }
5794
5794
  function zo(a, e, t, i, n, l) {
5795
- let s = e.direction === "rtl", r = e.customButtons || {}, o = t.buttonText || {}, u = e.buttonText || {}, c = t.buttonHints || {}, d = e.buttonHints || {}, f = a ? a.split(" ") : [], h = [], g = !1;
5795
+ let s = e.direction === "rtl", r = e.customButtons || {}, o = t.buttonText || {}, c = e.buttonText || {}, u = t.buttonHints || {}, d = e.buttonHints || {}, f = a ? a.split(" ") : [], h = [], g = !1;
5796
5796
  return { widgets: f.map((p) => p.split(",").map((y) => {
5797
5797
  if (y === "title")
5798
5798
  return g = !0, { buttonName: y };
@@ -5815,17 +5815,17 @@ function zo(a, e, t, i, n, l) {
5815
5815
  } else if (l[y])
5816
5816
  if (v = () => {
5817
5817
  l[y]();
5818
- }, (x = o[y]) || (B = i.getIconClass(y, s)) || (x = u[y]), y === "prevYear" || y === "nextYear") {
5818
+ }, (x = o[y]) || (B = i.getIconClass(y, s)) || (x = c[y]), y === "prevYear" || y === "nextYear") {
5819
5819
  let R = y === "prevYear" ? "prev" : "next";
5820
- T = V0(c[R] || d[R], [
5821
- u.year || "year",
5820
+ T = V0(u[R] || d[R], [
5821
+ c.year || "year",
5822
5822
  "year"
5823
- ], u[y]);
5823
+ ], c[y]);
5824
5824
  } else
5825
- T = (R) => V0(c[y] || d[y], [
5826
- u[R] || R,
5825
+ T = (R) => V0(u[y] || d[y], [
5826
+ c[R] || R,
5827
5827
  R
5828
- ], u[y]);
5828
+ ], c[y]);
5829
5829
  return { buttonName: y, buttonClick: v, buttonIcon: B, buttonText: x, buttonHint: T };
5830
5830
  })), viewsWithButtons: h, hasTitle: g };
5831
5831
  }
@@ -5914,8 +5914,8 @@ const Vo = z3({
5914
5914
  eventSourceDefs: [Io]
5915
5915
  });
5916
5916
  function Bo(a, e, t) {
5917
- let { dateEnv: i, options: n } = t, l, s, r, o, u = {};
5918
- return l = a.startParam, l == null && (l = n.startParam), s = a.endParam, s == null && (s = n.endParam), r = a.timeZoneParam, r == null && (r = n.timeZoneParam), typeof a.extraParams == "function" ? o = a.extraParams() : o = a.extraParams || {}, Object.assign(u, o), u[l] = i.formatIso(e.start), u[s] = i.formatIso(e.end), i.timeZone !== "local" && (u[r] = i.timeZone), u;
5917
+ let { dateEnv: i, options: n } = t, l, s, r, o, c = {};
5918
+ return l = a.startParam, l == null && (l = n.startParam), s = a.endParam, s == null && (s = n.endParam), r = a.timeZoneParam, r == null && (r = n.timeZoneParam), typeof a.extraParams == "function" ? o = a.extraParams() : o = a.extraParams || {}, Object.assign(c, o), c[l] = i.formatIso(e.start), c[s] = i.formatIso(e.end), i.timeZone !== "local" && (c[r] = i.timeZone), c;
5919
5919
  }
5920
5920
  const Ro = {
5921
5921
  daysOfWeek: z,
@@ -5958,8 +5958,8 @@ const Ho = z3({
5958
5958
  function Lo(a, e, t, i, n) {
5959
5959
  let l = a ? Ci(a) : null, s = m1(n.start), r = n.end, o = [];
5960
5960
  for (e && (e.milliseconds < 0 ? r = M1(r, 1) : e.milliseconds >= 1e3 * 60 * 60 * 24 && (s = M1(s, -1))); s < r; ) {
5961
- let u;
5962
- (!l || l[s.getUTCDay()]) && (e ? u = i.add(s, e) : u = s, o.push(i.createMarker(t.toDate(u)))), s = M1(s, 1);
5961
+ let c;
5962
+ (!l || l[s.getUTCDay()]) && (e ? c = i.add(s, e) : c = s, o.push(i.createMarker(t.toDate(c)))), s = M1(s, 1);
5963
5963
  }
5964
5964
  return o;
5965
5965
  }
@@ -6109,13 +6109,13 @@ class Wo {
6109
6109
  g3(o.activeRange, r) || (r = o.currentRange.start);
6110
6110
  for (let f of i.pluginHooks.contextInit)
6111
6111
  f(s);
6112
- let u = co(i.calendarOptions, o, s), c = {
6112
+ let c = co(i.calendarOptions, o, s), u = {
6113
6113
  dynamicOptionOverrides: t,
6114
6114
  currentViewType: n,
6115
6115
  currentDate: r,
6116
6116
  dateProfile: o,
6117
6117
  businessHours: this.parseContextBusinessHours(s),
6118
- eventSources: u,
6118
+ eventSources: c,
6119
6119
  eventUiBases: {},
6120
6120
  eventStore: Q1(),
6121
6121
  renderableEventStore: Q1(),
@@ -6124,10 +6124,10 @@ class Wo {
6124
6124
  eventDrag: null,
6125
6125
  eventResize: null,
6126
6126
  selectionConfig: this.buildViewUiProps(s).selectionConfig
6127
- }, d = Object.assign(Object.assign({}, s), c);
6127
+ }, d = Object.assign(Object.assign({}, s), u);
6128
6128
  for (let f of i.pluginHooks.reducers)
6129
- Object.assign(c, f(null, null, d));
6130
- It(c, s) && this.emitter.trigger("loading", !0), this.state = c, this.updateData(), this.actionRunner.resume();
6129
+ Object.assign(u, f(null, null, d));
6130
+ It(u, s) && this.emitter.trigger("loading", !0), this.state = u, this.updateData(), this.actionRunner.resume();
6131
6131
  }
6132
6132
  resetOptions(e, t) {
6133
6133
  let { props: i } = this;
@@ -6138,7 +6138,7 @@ class Wo {
6138
6138
  _handleAction(e) {
6139
6139
  let { props: t, state: i, emitter: n } = this, l = ro(i.dynamicOptionOverrides, e), s = this.computeOptionsData(t.optionOverrides, l, t.calendarApi), r = no(i.currentViewType, e), o = this.computeCurrentViewData(r, s, t.optionOverrides, l);
6140
6140
  t.calendarApi.currentDataManager = this, n.setThisContext(t.calendarApi), n.setOptions(o.options);
6141
- let u = {
6141
+ let c = {
6142
6142
  nowManager: this.nowManager,
6143
6143
  dateEnv: s.dateEnv,
6144
6144
  options: s.calendarOptions,
@@ -6147,37 +6147,37 @@ class Wo {
6147
6147
  dispatch: this.dispatch,
6148
6148
  emitter: n,
6149
6149
  getCurrentData: this.getCurrentData
6150
- }, { currentDate: c, dateProfile: d } = i;
6151
- this.data && this.data.dateProfileGenerator !== o.dateProfileGenerator && (d = o.dateProfileGenerator.build(c)), c = lo(c, e), d = oo(d, e, c, o.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
6150
+ }, { currentDate: u, dateProfile: d } = i;
6151
+ this.data && this.data.dateProfileGenerator !== o.dateProfileGenerator && (d = o.dateProfileGenerator.build(u)), u = lo(u, e), d = oo(d, e, u, o.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
6152
6152
  e.type === "NEXT" || // "
6153
- !g3(d.currentRange, c)) && (c = d.currentRange.start);
6154
- let f = uo(i.eventSources, e, d, u), h = cr(i.eventStore, e, f, d, u), m = zn(f) && !o.options.progressiveEventRendering && i.renderableEventStore || h, { eventUiSingleBase: p, selectionConfig: y } = this.buildViewUiProps(u), b = this.buildEventUiBySource(f), C = this.buildEventUiBases(m.defs, p, b), v = {
6153
+ !g3(d.currentRange, u)) && (u = d.currentRange.start);
6154
+ let f = uo(i.eventSources, e, d, c), h = cr(i.eventStore, e, f, d, c), m = zn(f) && !o.options.progressiveEventRendering && i.renderableEventStore || h, { eventUiSingleBase: p, selectionConfig: y } = this.buildViewUiProps(c), b = this.buildEventUiBySource(f), C = this.buildEventUiBases(m.defs, p, b), v = {
6155
6155
  dynamicOptionOverrides: l,
6156
6156
  currentViewType: r,
6157
- currentDate: c,
6157
+ currentDate: u,
6158
6158
  dateProfile: d,
6159
6159
  eventSources: f,
6160
6160
  eventStore: h,
6161
6161
  renderableEventStore: m,
6162
6162
  selectionConfig: y,
6163
6163
  eventUiBases: C,
6164
- businessHours: this.parseContextBusinessHours(u),
6164
+ businessHours: this.parseContextBusinessHours(c),
6165
6165
  dateSelection: Ao(i.dateSelection, e),
6166
6166
  eventSelection: yo(i.eventSelection, e),
6167
6167
  eventDrag: bo(i.eventDrag, e),
6168
6168
  eventResize: wo(i.eventResize, e)
6169
- }, B = Object.assign(Object.assign({}, u), v);
6169
+ }, B = Object.assign(Object.assign({}, c), v);
6170
6170
  for (let R of s.pluginHooks.reducers)
6171
6171
  Object.assign(v, R(i, e, B));
6172
- let x = It(i, u), T = It(v, u);
6172
+ let x = It(i, c), T = It(v, c);
6173
6173
  !x && T ? n.trigger("loading", !0) : x && !T && n.trigger("loading", !1), this.state = v, t.onAction && t.onAction(e);
6174
6174
  }
6175
6175
  updateData() {
6176
- let { props: e, state: t } = this, i = this.data, n = this.computeOptionsData(e.optionOverrides, t.dynamicOptionOverrides, e.calendarApi), l = this.computeCurrentViewData(t.currentViewType, n, e.optionOverrides, t.dynamicOptionOverrides), s = this.data = Object.assign(Object.assign(Object.assign({ nowManager: this.nowManager, viewTitle: this.buildTitle(t.dateProfile, l.options, n.dateEnv), calendarApi: e.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, n), l), t), r = n.pluginHooks.optionChangeHandlers, o = i && i.calendarOptions, u = n.calendarOptions;
6177
- if (o && o !== u) {
6178
- o.timeZone !== u.timeZone && (t.eventSources = s.eventSources = ho(s.eventSources, t.dateProfile, s), t.eventStore = s.eventStore = K6(s.eventStore, i.dateEnv, s.dateEnv), t.renderableEventStore = s.renderableEventStore = K6(s.renderableEventStore, i.dateEnv, s.dateEnv));
6179
- for (let c in r)
6180
- (this.optionsForHandling.indexOf(c) !== -1 || o[c] !== u[c]) && r[c](u[c], s);
6176
+ let { props: e, state: t } = this, i = this.data, n = this.computeOptionsData(e.optionOverrides, t.dynamicOptionOverrides, e.calendarApi), l = this.computeCurrentViewData(t.currentViewType, n, e.optionOverrides, t.dynamicOptionOverrides), s = this.data = Object.assign(Object.assign(Object.assign({ nowManager: this.nowManager, viewTitle: this.buildTitle(t.dateProfile, l.options, n.dateEnv), calendarApi: e.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, n), l), t), r = n.pluginHooks.optionChangeHandlers, o = i && i.calendarOptions, c = n.calendarOptions;
6177
+ if (o && o !== c) {
6178
+ o.timeZone !== c.timeZone && (t.eventSources = s.eventSources = ho(s.eventSources, t.dateProfile, s), t.eventStore = s.eventStore = K6(s.eventStore, i.dateEnv, s.dateEnv), t.renderableEventStore = s.renderableEventStore = K6(s.renderableEventStore, i.dateEnv, s.dateEnv));
6179
+ for (let u in r)
6180
+ (this.optionsForHandling.indexOf(u) !== -1 || o[u] !== c[u]) && r[u](c[u], s);
6181
6181
  }
6182
6182
  this.optionsForHandling = [], e.onData && e.onData(s);
6183
6183
  }
@@ -6186,12 +6186,12 @@ class Wo {
6186
6186
  return this.stableCalendarOptionsData;
6187
6187
  let { refinedOptions: n, pluginHooks: l, localeDefaults: s, availableLocaleData: r, extra: o } = this.processRawCalendarOptions(e, t);
6188
6188
  ea(o);
6189
- let u = this.buildDateEnv(n.timeZone, n.locale, n.weekNumberCalculation, n.firstDay, n.weekText, l, r, n.defaultRangeSeparator), c = this.buildViewSpecs(l.views, this.stableOptionOverrides, this.stableDynamicOptionOverrides, s), d = this.buildTheme(n, l), f = this.parseToolbars(n, this.stableOptionOverrides, d, c, i);
6189
+ let c = this.buildDateEnv(n.timeZone, n.locale, n.weekNumberCalculation, n.firstDay, n.weekText, l, r, n.defaultRangeSeparator), u = this.buildViewSpecs(l.views, this.stableOptionOverrides, this.stableDynamicOptionOverrides, s), d = this.buildTheme(n, l), f = this.parseToolbars(n, this.stableOptionOverrides, d, u, i);
6190
6190
  return this.stableCalendarOptionsData = {
6191
6191
  calendarOptions: n,
6192
6192
  pluginHooks: l,
6193
- dateEnv: u,
6194
- viewSpecs: c,
6193
+ dateEnv: c,
6194
+ viewSpecs: u,
6195
6195
  theme: d,
6196
6196
  toolbarConfig: f,
6197
6197
  localeDefaults: s,
@@ -6204,21 +6204,21 @@ class Wo {
6204
6204
  B0,
6205
6205
  e,
6206
6206
  t
6207
- ]), l = this.organizeRawLocales(i), s = l.map, r = this.buildLocale(n || l.defaultCode, s).options, o = this.buildPluginHooks(e.plugins || [], jo), u = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, L6), O6), N6), o.listenerRefiners), o.optionRefiners), c = {}, d = wt([
6207
+ ]), l = this.organizeRawLocales(i), s = l.map, r = this.buildLocale(n || l.defaultCode, s).options, o = this.buildPluginHooks(e.plugins || [], jo), c = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, L6), O6), N6), o.listenerRefiners), o.optionRefiners), u = {}, d = wt([
6208
6208
  B0,
6209
6209
  r,
6210
6210
  e,
6211
6211
  t
6212
6212
  ]), f = {}, h = this.currentCalendarOptionsInput, g = this.currentCalendarOptionsRefined, m = !1;
6213
6213
  for (let p in d)
6214
- this.optionsForRefining.indexOf(p) === -1 && (d[p] === h[p] || N3[p] && p in h && N3[p](h[p], d[p])) ? f[p] = g[p] : u[p] ? (f[p] = u[p](d[p]), m = !0) : c[p] = h[p];
6214
+ this.optionsForRefining.indexOf(p) === -1 && (d[p] === h[p] || N3[p] && p in h && N3[p](h[p], d[p])) ? f[p] = g[p] : c[p] ? (f[p] = c[p](d[p]), m = !0) : u[p] = h[p];
6215
6215
  return m && (this.currentCalendarOptionsInput = d, this.currentCalendarOptionsRefined = f, this.stableOptionOverrides = e, this.stableDynamicOptionOverrides = t), this.optionsForHandling.push(...this.optionsForRefining), this.optionsForRefining = [], {
6216
6216
  rawOptions: this.currentCalendarOptionsInput,
6217
6217
  refinedOptions: this.currentCalendarOptionsRefined,
6218
6218
  pluginHooks: o,
6219
6219
  availableLocaleData: l,
6220
6220
  localeDefaults: r,
6221
- extra: c
6221
+ extra: u
6222
6222
  };
6223
6223
  }
6224
6224
  _computeCurrentViewData(e, t, i, n) {
@@ -6246,8 +6246,8 @@ class Wo {
6246
6246
  validRangeInput: s.validRange,
6247
6247
  visibleRangeInput: s.visibleRange,
6248
6248
  fixedWeekCount: s.fixedWeekCount
6249
- }), u = this.buildViewApi(e, this.getCurrentData, t.dateEnv);
6250
- return { viewSpec: l, options: s, dateProfileGenerator: o, viewApi: u };
6249
+ }), c = this.buildViewApi(e, this.getCurrentData, t.dateEnv);
6250
+ return { viewSpec: l, options: s, dateProfileGenerator: o, viewApi: c };
6251
6251
  }
6252
6252
  processRawViewOptions(e, t, i, n, l) {
6253
6253
  let s = wt([
@@ -6257,9 +6257,9 @@ class Wo {
6257
6257
  n,
6258
6258
  e.optionOverrides,
6259
6259
  l
6260
- ]), r = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, L6), O6), N6), xs), t.listenerRefiners), t.optionRefiners), o = {}, u = this.currentViewOptionsInput, c = this.currentViewOptionsRefined, d = !1, f = {};
6260
+ ]), r = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, L6), O6), N6), xs), t.listenerRefiners), t.optionRefiners), o = {}, c = this.currentViewOptionsInput, u = this.currentViewOptionsRefined, d = !1, f = {};
6261
6261
  for (let h in s)
6262
- s[h] === u[h] || N3[h] && N3[h](s[h], u[h]) ? o[h] = c[h] : (s[h] === this.currentCalendarOptionsInput[h] || N3[h] && N3[h](s[h], this.currentCalendarOptionsInput[h]) ? h in this.currentCalendarOptionsRefined && (o[h] = this.currentCalendarOptionsRefined[h]) : r[h] ? o[h] = r[h](s[h]) : f[h] = s[h], d = !0);
6262
+ s[h] === c[h] || N3[h] && N3[h](s[h], c[h]) ? o[h] = u[h] : (s[h] === this.currentCalendarOptionsInput[h] || N3[h] && N3[h](s[h], this.currentCalendarOptionsInput[h]) ? h in this.currentCalendarOptionsRefined && (o[h] = this.currentCalendarOptionsRefined[h]) : r[h] ? o[h] = r[h](s[h]) : f[h] = s[h], d = !0);
6263
6263
  return d && (this.currentViewOptionsInput = s, this.currentViewOptionsRefined = o), {
6264
6264
  rawOptions: this.currentViewOptionsInput,
6265
6265
  refinedOptions: this.currentViewOptionsRefined,
@@ -6348,12 +6348,12 @@ class $o extends c1 {
6348
6348
  renderWidgetGroup(e) {
6349
6349
  let { props: t } = this, { theme: i } = this.context, n = [], l = !0;
6350
6350
  for (let s of e) {
6351
- let { buttonName: r, buttonClick: o, buttonText: u, buttonIcon: c, buttonHint: d } = s;
6351
+ let { buttonName: r, buttonClick: o, buttonText: c, buttonIcon: u, buttonHint: d } = s;
6352
6352
  if (r === "title")
6353
6353
  l = !1, n.push(A("h2", { className: "fc-toolbar-title", id: t.titleId }, t.title));
6354
6354
  else {
6355
6355
  let f = r === t.activeButton, h = !t.isTodayEnabled && r === "today" || !t.isPrevEnabled && r === "prev" || !t.isNextEnabled && r === "next", g = [`fc-${r}-button`, i.getClass("button")];
6356
- f && g.push(i.getClass("buttonActive")), n.push(A("button", { type: "button", title: typeof d == "function" ? d(t.navUnit) : d, disabled: h, "aria-pressed": f, className: g.join(" "), onClick: o }, u || (c ? A("span", { className: c, role: "img" }) : "")));
6356
+ f && g.push(i.getClass("buttonActive")), n.push(A("button", { type: "button", title: typeof d == "function" ? d(t.navUnit) : d, disabled: h, "aria-pressed": f, className: g.join(" "), onClick: o }, c || (u ? A("span", { className: u, role: "img" }) : "")));
6357
6357
  }
6358
6358
  }
6359
6359
  if (n.length > 1) {
@@ -6499,19 +6499,19 @@ class i5 extends t0 {
6499
6499
  return A(
6500
6500
  E3.Provider,
6501
6501
  { value: r },
6502
- A(E0, { unit: "day" }, (u) => {
6503
- let c = this.buildToolbarProps(e.viewSpec, e.dateProfile, e.dateProfileGenerator, e.currentDate, u, e.viewTitle);
6502
+ A(E0, { unit: "day" }, (c) => {
6503
+ let u = this.buildToolbarProps(e.viewSpec, e.dateProfile, e.dateProfileGenerator, e.currentDate, c, e.viewTitle);
6504
6504
  return A(
6505
6505
  v1,
6506
6506
  null,
6507
- t.header && A(ta, Object.assign({ ref: this.headerRef, extraClassName: "fc-header-toolbar", model: t.header, titleId: o }, c)),
6507
+ t.header && A(ta, Object.assign({ ref: this.headerRef, extraClassName: "fc-header-toolbar", model: t.header, titleId: o }, u)),
6508
6508
  A(
6509
6509
  e5,
6510
6510
  { liquid: n, height: l, aspectRatio: s, labeledById: o },
6511
6511
  this.renderView(e),
6512
6512
  this.buildAppendContent()
6513
6513
  ),
6514
- t.footer && A(ta, Object.assign({ ref: this.footerRef, extraClassName: "fc-footer-toolbar", model: t.footer, titleId: "" }, c))
6514
+ t.footer && A(ta, Object.assign({ ref: this.footerRef, extraClassName: "fc-footer-toolbar", model: t.footer, titleId: "" }, u))
6515
6515
  );
6516
6516
  })
6517
6517
  );
@@ -6778,8 +6778,8 @@ class p5 extends u3 {
6778
6778
  let l = this.context.pluginHooks.scrollGridImpl;
6779
6779
  if (!l)
6780
6780
  throw new Error("No ScrollGrid implementation");
6781
- let { props: s, context: r } = this, o = !s.forPrint && Ye(r.options), u = !s.forPrint && fn(r.options), c = [];
6782
- return e && c.push({
6781
+ let { props: s, context: r } = this, o = !s.forPrint && Ye(r.options), c = !s.forPrint && fn(r.options), u = [];
6782
+ return e && u.push({
6783
6783
  type: "header",
6784
6784
  key: "header",
6785
6785
  isSticky: o,
@@ -6789,7 +6789,7 @@ class p5 extends u3 {
6789
6789
  tableClassName: "fc-col-header",
6790
6790
  rowContent: e
6791
6791
  }]
6792
- }), c.push({
6792
+ }), u.push({
6793
6793
  type: "body",
6794
6794
  key: "body",
6795
6795
  liquid: !0,
@@ -6797,7 +6797,7 @@ class p5 extends u3 {
6797
6797
  key: "main",
6798
6798
  content: t
6799
6799
  }]
6800
- }), u && c.push({
6800
+ }), c && u.push({
6801
6801
  type: "footer",
6802
6802
  key: "footer",
6803
6803
  isSticky: !0,
@@ -6808,7 +6808,7 @@ class p5 extends u3 {
6808
6808
  }), A(
6809
6809
  Ue,
6810
6810
  { elClasses: ["fc-daygrid"], viewSpec: r.viewSpec },
6811
- A(l, { liquid: !s.isHeightAuto && !s.forPrint, forPrint: s.forPrint, collapsibleWidth: s.forPrint, colGroups: [{ cols: [{ span: i, minWidth: n }] }], sections: c })
6811
+ A(l, { liquid: !s.isHeightAuto && !s.forPrint, forPrint: s.forPrint, collapsibleWidth: s.forPrint, colGroups: [{ cols: [{ span: i, minWidth: n }] }], sections: u })
6812
6812
  );
6813
6813
  }
6814
6814
  }
@@ -6911,20 +6911,20 @@ class y5 extends u3 {
6911
6911
  }
6912
6912
  render() {
6913
6913
  let { context: e, props: t, state: i, rootElRef: n } = this, { options: l, dateEnv: s } = e, { date: r, dateProfile: o } = t;
6914
- const u = t.showDayNumber && w5(r, o.currentRange, s);
6914
+ const c = t.showDayNumber && w5(r, o.currentRange, s);
6915
6915
  return A(K2, { elTag: "td", elRef: this.handleRootEl, elClasses: [
6916
6916
  "fc-daygrid-day",
6917
6917
  ...t.extraClassNames || []
6918
- ], elAttrs: Object.assign(Object.assign(Object.assign({}, t.extraDataAttrs), t.showDayNumber ? { "aria-labelledby": i.dayNumberId } : {}), { role: "gridcell" }), defaultGenerator: b5, date: r, dateProfile: o, todayRange: t.todayRange, showDayNumber: t.showDayNumber, isMonthStart: u, extraRenderProps: t.extraRenderProps }, (c, d) => A(
6918
+ ], elAttrs: Object.assign(Object.assign(Object.assign({}, t.extraDataAttrs), t.showDayNumber ? { "aria-labelledby": i.dayNumberId } : {}), { role: "gridcell" }), defaultGenerator: b5, date: r, dateProfile: o, todayRange: t.todayRange, showDayNumber: t.showDayNumber, isMonthStart: c, extraRenderProps: t.extraRenderProps }, (u, d) => A(
6919
6919
  "div",
6920
6920
  { ref: t.innerElRef, className: "fc-daygrid-day-frame fc-scrollgrid-sync-inner", style: { minHeight: t.minHeight } },
6921
6921
  t.showWeekNumber && A(mn, { elTag: "a", elClasses: ["fc-daygrid-week-number"], elAttrs: Qe(e, r, "week"), date: r, defaultFormat: A5 }),
6922
6922
  !d.isDisabled && (t.showDayNumber || P2(l) || t.forceDayTop) ? A(
6923
6923
  "div",
6924
6924
  { className: "fc-daygrid-day-top" },
6925
- A(c, { elTag: "a", elClasses: [
6925
+ A(u, { elTag: "a", elClasses: [
6926
6926
  "fc-daygrid-day-number",
6927
- u && "fc-daygrid-month-start"
6927
+ c && "fc-daygrid-month-start"
6928
6928
  ], elAttrs: Object.assign(Object.assign({}, Qe(e, r)), { id: i.dayNumberId }) })
6929
6929
  ) : t.showDayNumber ? (
6930
6930
  // for creating correct amount of space (see issue #7162)
@@ -6952,8 +6952,8 @@ function b5(a) {
6952
6952
  return a.dayNumberText || A(v1, null, " ");
6953
6953
  }
6954
6954
  function w5(a, e, t) {
6955
- const { start: i, end: n } = e, l = B3(n, -1), s = t.getYear(i), r = t.getMonth(i), o = t.getYear(l), u = t.getMonth(l);
6956
- return !(s === o && r === u) && // first date in current view?
6955
+ const { start: i, end: n } = e, l = B3(n, -1), s = t.getYear(i), r = t.getMonth(i), o = t.getYear(l), c = t.getMonth(l);
6956
+ return !(s === o && r === c) && // first date in current view?
6957
6957
  (a.valueOf() === i.valueOf() || // a month-start that's within the current range?
6958
6958
  t.getDay(a) === 1 && a.valueOf() < n.valueOf());
6959
6959
  }
@@ -6969,7 +6969,7 @@ function E5(a, e, t, i, n, l, s) {
6969
6969
  return n[b] || 1;
6970
6970
  });
6971
6971
  r.allowReslicing = !0, r.strictOrder = i, e === !0 || t === !0 ? (r.maxCoord = l, r.hiddenConsumes = !0) : typeof e == "number" ? r.maxStackCnt = e : typeof t == "number" && (r.maxStackCnt = t, r.hiddenConsumes = !0);
6972
- let o = [], u = [];
6972
+ let o = [], c = [];
6973
6973
  for (let y = 0; y < a.length; y += 1) {
6974
6974
  let b = a[y], C = Rn(b);
6975
6975
  n[C] != null ? o.push({
@@ -6978,10 +6978,10 @@ function E5(a, e, t, i, n, l, s) {
6978
6978
  start: b.firstCol,
6979
6979
  end: b.lastCol + 1
6980
6980
  }
6981
- }) : u.push(b);
6981
+ }) : c.push(b);
6982
6982
  }
6983
- let c = r.addSegs(o), d = r.toRects(), { singleColPlacements: f, multiColPlacements: h, leftoverMargins: g } = z5(d, a, s), m = [], p = [];
6984
- for (let y of u) {
6983
+ let u = r.addSegs(o), d = r.toRects(), { singleColPlacements: f, multiColPlacements: h, leftoverMargins: g } = z5(d, a, s), m = [], p = [];
6984
+ for (let y of c) {
6985
6985
  h[y.firstCol].push({
6986
6986
  seg: y,
6987
6987
  isVisible: !1,
@@ -7000,7 +7000,7 @@ function E5(a, e, t, i, n, l, s) {
7000
7000
  }
7001
7001
  for (let y = 0; y < s.length; y += 1)
7002
7002
  m.push(0);
7003
- for (let y of c) {
7003
+ for (let y of u) {
7004
7004
  let b = a[y.index], C = y.span;
7005
7005
  h[C.start].push({
7006
7006
  seg: u0(b, C.start, C.end, s),
@@ -7025,22 +7025,22 @@ function E5(a, e, t, i, n, l, s) {
7025
7025
  function z5(a, e, t) {
7026
7026
  let i = C5(a, t.length), n = [], l = [], s = [];
7027
7027
  for (let r = 0; r < t.length; r += 1) {
7028
- let o = i[r], u = [], c = 0, d = 0;
7028
+ let o = i[r], c = [], u = 0, d = 0;
7029
7029
  for (let h of o) {
7030
7030
  let g = e[h.index];
7031
- u.push({
7031
+ c.push({
7032
7032
  seg: u0(g, r, r + 1, t),
7033
7033
  isVisible: !0,
7034
7034
  isAbsolute: !1,
7035
7035
  absoluteTop: h.levelCoord,
7036
- marginTop: h.levelCoord - c
7037
- }), c = h.levelCoord + h.thickness;
7036
+ marginTop: h.levelCoord - u
7037
+ }), u = h.levelCoord + h.thickness;
7038
7038
  }
7039
7039
  let f = [];
7040
- c = 0, d = 0;
7040
+ u = 0, d = 0;
7041
7041
  for (let h of o) {
7042
7042
  let g = e[h.index], m = h.span.end - h.span.start > 1, p = h.span.start === r;
7043
- d += h.levelCoord - c, c = h.levelCoord + h.thickness, m ? (d += h.thickness, p && f.push({
7043
+ d += h.levelCoord - u, u = h.levelCoord + h.thickness, m ? (d += h.thickness, p && f.push({
7044
7044
  seg: u0(g, h.span.start, h.span.end, t),
7045
7045
  isVisible: !0,
7046
7046
  isAbsolute: !0,
@@ -7055,7 +7055,7 @@ function z5(a, e, t) {
7055
7055
  // claim the margin
7056
7056
  }), d = 0);
7057
7057
  }
7058
- n.push(u), l.push(f), s.push(d);
7058
+ n.push(c), l.push(f), s.push(d);
7059
7059
  }
7060
7060
  return { singleColPlacements: n, multiColPlacements: l, leftoverMargins: s };
7061
7061
  }
@@ -7095,13 +7095,13 @@ class M5 extends tn {
7095
7095
  handleInvalidInsertion(e, t, i) {
7096
7096
  const { entriesByLevel: n, forceHidden: l } = this, { touchingEntry: s, touchingLevel: r, touchingLateral: o } = e;
7097
7097
  if (this.hiddenConsumes && s) {
7098
- const u = Q3(s);
7099
- if (!l[u])
7098
+ const c = Q3(s);
7099
+ if (!l[c])
7100
7100
  if (this.allowReslicing) {
7101
- const c = Object.assign(Object.assign({}, s), { span: L2(s.span, t.span) }), d = Q3(c);
7102
- l[d] = !0, n[r][o] = c, i.push(c), this.splitEntry(s, t, i);
7101
+ const u = Object.assign(Object.assign({}, s), { span: L2(s.span, t.span) }), d = Q3(u);
7102
+ l[d] = !0, n[r][o] = u, i.push(u), this.splitEntry(s, t, i);
7103
7103
  } else
7104
- l[u] = !0, i.push(s);
7104
+ l[c] = !0, i.push(s);
7105
7105
  }
7106
7106
  super.handleInvalidInsertion(e, t, i);
7107
7107
  }
@@ -7117,7 +7117,7 @@ class Tn extends u3 {
7117
7117
  };
7118
7118
  }
7119
7119
  render() {
7120
- let { props: e, state: t, context: i } = this, { options: n } = i, l = e.cells.length, s = fe(e.businessHourSegs, l), r = fe(e.bgEventSegs, l), o = fe(this.getHighlightSegs(), l), u = fe(this.getMirrorSegs(), l), { singleColPlacements: c, multiColPlacements: d, moreCnts: f, moreMarginTops: h } = E5(Wi(e.fgEventSegs, n.eventOrder), e.dayMaxEvents, e.dayMaxEventRows, n.eventOrderStrict, t.segHeights, t.maxContentHeight, e.cells), g = (
7120
+ let { props: e, state: t, context: i } = this, { options: n } = i, l = e.cells.length, s = fe(e.businessHourSegs, l), r = fe(e.bgEventSegs, l), o = fe(this.getHighlightSegs(), l), c = fe(this.getMirrorSegs(), l), { singleColPlacements: u, multiColPlacements: d, moreCnts: f, moreMarginTops: h } = E5(Wi(e.fgEventSegs, n.eventOrder), e.dayMaxEvents, e.dayMaxEventRows, n.eventOrderStrict, t.segHeights, t.maxContentHeight, e.cells), g = (
7121
7121
  // TODO: messy way to compute this
7122
7122
  e.eventDrag && e.eventDrag.affectedInstances || e.eventResize && e.eventResize.affectedInstances || {}
7123
7123
  );
@@ -7126,8 +7126,8 @@ class Tn extends u3 {
7126
7126
  { ref: this.rootElRef, role: "row" },
7127
7127
  e.renderIntro && e.renderIntro(),
7128
7128
  e.cells.map((m, p) => {
7129
- let y = this.renderFgSegs(p, e.forPrint ? c[p] : d[p], e.todayRange, g), b = this.renderFgSegs(p, S5(u[p], d), e.todayRange, {}, !!e.eventDrag, !!e.eventResize, !1);
7130
- return A(y5, { key: m.key, elRef: this.cellElRefs.createRef(m.key), innerElRef: this.frameElRefs.createRef(m.key), dateProfile: e.dateProfile, date: m.date, showDayNumber: e.showDayNumbers, showWeekNumber: e.showWeekNumbers && p === 0, forceDayTop: e.showWeekNumbers, todayRange: e.todayRange, eventSelection: e.eventSelection, eventDrag: e.eventDrag, eventResize: e.eventResize, extraRenderProps: m.extraRenderProps, extraDataAttrs: m.extraDataAttrs, extraClassNames: m.extraClassNames, extraDateSpan: m.extraDateSpan, moreCnt: f[p], moreMarginTop: h[p], singlePlacements: c[p], fgContentElRef: this.fgElRefs.createRef(m.key), fgContent: (
7129
+ let y = this.renderFgSegs(p, e.forPrint ? u[p] : d[p], e.todayRange, g), b = this.renderFgSegs(p, S5(c[p], d), e.todayRange, {}, !!e.eventDrag, !!e.eventResize, !1);
7130
+ return A(y5, { key: m.key, elRef: this.cellElRefs.createRef(m.key), innerElRef: this.frameElRefs.createRef(m.key), dateProfile: e.dateProfile, date: m.date, showDayNumber: e.showDayNumbers, showWeekNumber: e.showWeekNumbers && p === 0, forceDayTop: e.showWeekNumbers, todayRange: e.todayRange, eventSelection: e.eventSelection, eventDrag: e.eventDrag, eventResize: e.eventResize, extraRenderProps: m.extraRenderProps, extraDataAttrs: m.extraDataAttrs, extraClassNames: m.extraClassNames, extraDateSpan: m.extraDateSpan, moreCnt: f[p], moreMarginTop: h[p], singlePlacements: u[p], fgContentElRef: this.fgElRefs.createRef(m.key), fgContent: (
7131
7131
  // Fragment scopes the keys
7132
7132
  A(
7133
7133
  v1,
@@ -7167,17 +7167,17 @@ class Tn extends u3 {
7167
7167
  return e.eventResize && e.eventResize.segs.length ? e.eventResize.segs : [];
7168
7168
  }
7169
7169
  renderFgSegs(e, t, i, n, l, s, r) {
7170
- let { context: o } = this, { eventSelection: u } = this.props, { framePositions: c } = this.state, d = this.props.cells.length === 1, f = l || s || r, h = [];
7171
- if (c)
7170
+ let { context: o } = this, { eventSelection: c } = this.props, { framePositions: u } = this.state, d = this.props.cells.length === 1, f = l || s || r, h = [];
7171
+ if (u)
7172
7172
  for (let g of t) {
7173
7173
  let { seg: m } = g, { instanceId: p } = m.eventRange.instance, y = g.isVisible && !n[p], b = g.isAbsolute, C = "", v = "";
7174
- b && (o.isRtl ? (v = 0, C = c.lefts[m.lastCol] - c.lefts[m.firstCol]) : (C = 0, v = c.rights[m.firstCol] - c.rights[m.lastCol])), h.push(A("div", { className: "fc-daygrid-event-harness" + (b ? " fc-daygrid-event-harness-abs" : ""), key: Bn(m), ref: f ? null : this.segHarnessRefs.createRef(Rn(m)), style: {
7174
+ b && (o.isRtl ? (v = 0, C = u.lefts[m.lastCol] - u.lefts[m.firstCol]) : (C = 0, v = u.rights[m.firstCol] - u.rights[m.lastCol])), h.push(A("div", { className: "fc-daygrid-event-harness" + (b ? " fc-daygrid-event-harness-abs" : ""), key: Bn(m), ref: f ? null : this.segHarnessRefs.createRef(Rn(m)), style: {
7175
7175
  visibility: y ? "" : "hidden",
7176
7176
  marginTop: b ? "" : g.marginTop,
7177
7177
  top: b ? g.absoluteTop : "",
7178
7178
  left: C,
7179
7179
  right: v
7180
- } }, Dn(m) ? A(Vn, Object.assign({ seg: m, isDragging: l, isSelected: p === u, defaultDisplayEventEnd: d }, D3(m, i))) : A(In, Object.assign({ seg: m, isDragging: l, isResizing: s, isDateSelecting: r, isSelected: p === u, defaultDisplayEventEnd: d }, D3(m, i)))));
7180
+ } }, Dn(m) ? A(Vn, Object.assign({ seg: m, isDragging: l, isSelected: p === c, defaultDisplayEventEnd: d }, D3(m, i))) : A(In, Object.assign({ seg: m, isDragging: l, isResizing: s, isDateSelecting: r, isSelected: p === c, defaultDisplayEventEnd: d }, D3(m, i)))));
7181
7181
  }
7182
7182
  return h;
7183
7183
  }
@@ -7200,18 +7200,18 @@ class Tn extends u3 {
7200
7200
  let { props: t, state: i, frameElRefs: n } = this;
7201
7201
  if (!t.forPrint && t.clientWidth !== null) {
7202
7202
  if (e) {
7203
- let o = t.cells.map((u) => n.currentMap[u.key]);
7203
+ let o = t.cells.map((c) => n.currentMap[c.key]);
7204
7204
  if (o.length) {
7205
- let u = this.rootElRef.current, c = new v0(
7206
- u,
7205
+ let c = this.rootElRef.current, u = new v0(
7206
+ c,
7207
7207
  o,
7208
7208
  !0,
7209
7209
  // isHorizontal
7210
7210
  !1
7211
7211
  );
7212
- (!i.framePositions || !i.framePositions.similarTo(c)) && this.setState({
7212
+ (!i.framePositions || !i.framePositions.similarTo(u)) && this.setState({
7213
7213
  framePositions: new v0(
7214
- u,
7214
+ c,
7215
7215
  o,
7216
7216
  !0,
7217
7217
  // isHorizontal
@@ -7274,7 +7274,7 @@ class k5 extends u3 {
7274
7274
  super(...arguments), this.splitBusinessHourSegs = Q(Ee), this.splitBgEventSegs = Q(D5), this.splitFgEventSegs = Q(Ee), this.splitDateSelectionSegs = Q(Ee), this.splitEventDrag = Q(aa), this.splitEventResize = Q(aa), this.rowRefs = new v3();
7275
7275
  }
7276
7276
  render() {
7277
- let { props: e, context: t } = this, i = e.cells.length, n = this.splitBusinessHourSegs(e.businessHourSegs, i), l = this.splitBgEventSegs(e.bgEventSegs, i), s = this.splitFgEventSegs(e.fgEventSegs, i), r = this.splitDateSelectionSegs(e.dateSelectionSegs, i), o = this.splitEventDrag(e.eventDrag, i), u = this.splitEventResize(e.eventResize, i), c = i >= 7 && e.clientWidth ? e.clientWidth / t.options.aspectRatio / 6 : null;
7277
+ let { props: e, context: t } = this, i = e.cells.length, n = this.splitBusinessHourSegs(e.businessHourSegs, i), l = this.splitBgEventSegs(e.bgEventSegs, i), s = this.splitFgEventSegs(e.fgEventSegs, i), r = this.splitDateSelectionSegs(e.dateSelectionSegs, i), o = this.splitEventDrag(e.eventDrag, i), c = this.splitEventResize(e.eventResize, i), u = i >= 7 && e.clientWidth ? e.clientWidth / t.options.aspectRatio / 6 : null;
7278
7278
  return A(E0, { unit: "day" }, (d, f) => A(v1, null, e.cells.map((h, g) => A(Tn, {
7279
7279
  ref: this.rowRefs.createRef(g),
7280
7280
  key: h.length ? h[0].date.toISOString() : g,
@@ -7290,12 +7290,12 @@ class k5 extends u3 {
7290
7290
  fgEventSegs: s[g],
7291
7291
  dateSelectionSegs: r[g],
7292
7292
  eventDrag: o[g],
7293
- eventResize: u[g],
7293
+ eventResize: c[g],
7294
7294
  dayMaxEvents: e.dayMaxEvents,
7295
7295
  dayMaxEventRows: e.dayMaxEventRows,
7296
7296
  clientWidth: e.clientWidth,
7297
7297
  clientHeight: e.clientHeight,
7298
- cellMinHeight: c,
7298
+ cellMinHeight: u,
7299
7299
  forPrint: e.forPrint
7300
7300
  }))));
7301
7301
  }
@@ -7815,8 +7815,8 @@ class Y5 {
7815
7815
  computeBestEdge(e, t) {
7816
7816
  let { edgeThreshold: i } = this, n = null, l = this.scrollCaches || [];
7817
7817
  for (let s of l) {
7818
- let r = s.clientRect, o = e - r.left, u = r.right - e, c = t - r.top, d = r.bottom - t;
7819
- o >= 0 && u >= 0 && c >= 0 && d >= 0 && (c <= i && this.everMovedUp && s.canScrollUp() && (!n || n.distance > c) && (n = { scrollCache: s, name: "top", distance: c }), d <= i && this.everMovedDown && s.canScrollDown() && (!n || n.distance > d) && (n = { scrollCache: s, name: "bottom", distance: d }), o <= i && this.everMovedLeft && s.canScrollLeft() && (!n || n.distance > o) && (n = { scrollCache: s, name: "left", distance: o }), u <= i && this.everMovedRight && s.canScrollRight() && (!n || n.distance > u) && (n = { scrollCache: s, name: "right", distance: u }));
7818
+ let r = s.clientRect, o = e - r.left, c = r.right - e, u = t - r.top, d = r.bottom - t;
7819
+ o >= 0 && c >= 0 && u >= 0 && d >= 0 && (u <= i && this.everMovedUp && s.canScrollUp() && (!n || n.distance > u) && (n = { scrollCache: s, name: "top", distance: u }), d <= i && this.everMovedDown && s.canScrollDown() && (!n || n.distance > d) && (n = { scrollCache: s, name: "bottom", distance: d }), o <= i && this.everMovedLeft && s.canScrollLeft() && (!n || n.distance > o) && (n = { scrollCache: s, name: "left", distance: o }), c <= i && this.everMovedRight && s.canScrollRight() && (!n || n.distance > c) && (n = { scrollCache: s, name: "right", distance: c }));
7820
7820
  }
7821
7821
  return n;
7822
7822
  }
@@ -7967,7 +7967,7 @@ class lt {
7967
7967
  let r = i[s].component, o = n[s];
7968
7968
  if (o && // wasn't destroyed mid-drag
7969
7969
  o.isWithinClipping(e, t)) {
7970
- let u = o.computeLeft(), c = o.computeTop(), d = e - u, f = t - c, { origRect: h } = o, g = h.right - h.left, m = h.bottom - h.top;
7970
+ let c = o.computeLeft(), u = o.computeTop(), d = e - c, f = t - u, { origRect: h } = o, g = h.right - h.left, m = h.bottom - h.top;
7971
7971
  if (
7972
7972
  // must be within the element's bounds
7973
7973
  d >= 0 && d < g && f >= 0 && f < m
@@ -7979,9 +7979,9 @@ class lt {
7979
7979
  // https://github.com/fullcalendar/fullcalendar/issues/5026
7980
7980
  (this.disablePointCheck || o.el.contains(o.el.getRootNode().elementFromPoint(
7981
7981
  // add-back origins to get coordinate relative to top-left of window viewport
7982
- d + u - window.scrollX,
7983
- f + c - window.scrollY
7984
- ))) && (!l || p.layer > l.layer) && (p.componentId = s, p.context = r.context, p.rect.left += u, p.rect.right += u, p.rect.top += c, p.rect.bottom += c, l = p);
7982
+ d + c - window.scrollX,
7983
+ f + u - window.scrollY
7984
+ ))) && (!l || p.layer > l.layer) && (p.componentId = s, p.context = r.context, p.rect.left += c, p.rect.right += c, p.rect.top += u, p.rect.bottom += u, l = p);
7985
7985
  }
7986
7986
  }
7987
7987
  }
@@ -8014,8 +8014,8 @@ class J5 extends w0 {
8014
8014
  if (!l.wasTouchScroll) {
8015
8015
  let { initialHit: s, finalHit: r } = this.hitDragging;
8016
8016
  if (s && r && st(s, r)) {
8017
- let { context: o } = n, u = Object.assign(Object.assign({}, jn(s.dateSpan, o)), { dayEl: s.dayEl, jsEvent: i.origEvent, view: o.viewApi || o.calendarApi.view });
8018
- o.emitter.trigger("dateClick", u);
8017
+ let { context: o } = n, c = Object.assign(Object.assign({}, jn(s.dateSpan, o)), { dayEl: s.dayEl, jsEvent: i.origEvent, view: o.viewApi || o.calendarApi.view });
8018
+ o.emitter.trigger("dateClick", c);
8019
8019
  }
8020
8020
  }
8021
8021
  }, this.dragging = new Q0(e.el), this.dragging.autoScroller.isEnabled = !1;
@@ -8029,17 +8029,17 @@ class J5 extends w0 {
8029
8029
  class Z5 extends w0 {
8030
8030
  constructor(e) {
8031
8031
  super(e), this.dragSelection = null, this.handlePointerDown = (s) => {
8032
- let { component: r, dragging: o } = this, { options: u } = r.context, c = u.selectable && r.isValidDateDownEl(s.origEvent.target);
8033
- o.setIgnoreMove(!c), o.delay = s.isTouch ? X5(r) : null;
8032
+ let { component: r, dragging: o } = this, { options: c } = r.context, u = c.selectable && r.isValidDateDownEl(s.origEvent.target);
8033
+ o.setIgnoreMove(!u), o.delay = s.isTouch ? X5(r) : null;
8034
8034
  }, this.handleDragStart = (s) => {
8035
8035
  this.component.context.calendarApi.unselect(s);
8036
8036
  }, this.handleHitUpdate = (s, r) => {
8037
- let { context: o } = this.component, u = null, c = !1;
8037
+ let { context: o } = this.component, c = null, u = !1;
8038
8038
  if (s) {
8039
8039
  let d = this.hitDragging.initialHit;
8040
- s.componentId === d.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(d, s) || (u = $5(d, s, o.pluginHooks.dateSelectionTransformers)), (!u || !p7(u, s.dateProfile, o)) && (c = !0, u = null);
8040
+ s.componentId === d.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(d, s) || (c = $5(d, s, o.pluginHooks.dateSelectionTransformers)), (!c || !p7(c, s.dateProfile, o)) && (u = !0, c = null);
8041
8041
  }
8042
- u ? o.dispatch({ type: "SELECT_DATES", selection: u }) : r || o.dispatch({ type: "UNSELECT_DATES" }), c ? m2() : g2(), r || (this.dragSelection = u);
8042
+ c ? o.dispatch({ type: "SELECT_DATES", selection: c }) : r || o.dispatch({ type: "UNSELECT_DATES" }), u ? m2() : g2(), r || (this.dragSelection = c);
8043
8043
  }, this.handlePointerUp = (s) => {
8044
8044
  this.dragSelection && (Ui(this.dragSelection, s, this.component.context), this.dragSelection = null);
8045
8045
  };
@@ -8076,16 +8076,16 @@ function $5(a, e, t) {
8076
8076
  class Y0 extends w0 {
8077
8077
  constructor(e) {
8078
8078
  super(e), this.subjectEl = null, this.subjectSeg = null, this.isDragging = !1, this.eventRange = null, this.relevantEvents = null, this.receivingContext = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (s) => {
8079
- let r = s.origEvent.target, { component: o, dragging: u } = this, { mirror: c } = u, { options: d } = o.context, f = o.context;
8079
+ let r = s.origEvent.target, { component: o, dragging: c } = this, { mirror: u } = c, { options: d } = o.context, f = o.context;
8080
8080
  this.subjectEl = s.subjectEl;
8081
8081
  let h = this.subjectSeg = p0(s.subjectEl), m = (this.eventRange = h.eventRange).instance.instanceId;
8082
- this.relevantEvents = k2(f.getCurrentData().eventStore, m), u.minDistance = s.isTouch ? 0 : d.eventDragMinDistance, u.delay = // only do a touch delay if touch and this event hasn't been selected yet
8083
- s.isTouch && m !== o.props.eventSelection ? tc(o) : null, d.fixedMirrorParent ? c.parentNode = d.fixedMirrorParent : c.parentNode = D1(r, ".fc"), c.revertDuration = d.dragRevertDuration;
8082
+ this.relevantEvents = k2(f.getCurrentData().eventStore, m), c.minDistance = s.isTouch ? 0 : d.eventDragMinDistance, c.delay = // only do a touch delay if touch and this event hasn't been selected yet
8083
+ s.isTouch && m !== o.props.eventSelection ? tc(o) : null, d.fixedMirrorParent ? u.parentNode = d.fixedMirrorParent : u.parentNode = D1(r, ".fc"), u.revertDuration = d.dragRevertDuration;
8084
8084
  let p = o.isValidSegDownEl(r) && !D1(r, ".fc-event-resizer");
8085
- u.setIgnoreMove(!p), this.isDragging = p && s.subjectEl.classList.contains("fc-event-draggable");
8085
+ c.setIgnoreMove(!p), this.isDragging = p && s.subjectEl.classList.contains("fc-event-draggable");
8086
8086
  }, this.handleDragStart = (s) => {
8087
- let r = this.component.context, o = this.eventRange, u = o.instance.instanceId;
8088
- s.isTouch ? u !== this.component.props.eventSelection && r.dispatch({ type: "SELECT_EVENT", eventInstanceId: u }) : r.dispatch({ type: "UNSELECT_EVENT" }), this.isDragging && (r.calendarApi.unselect(s), r.emitter.trigger("eventDragStart", {
8087
+ let r = this.component.context, o = this.eventRange, c = o.instance.instanceId;
8088
+ s.isTouch ? c !== this.component.props.eventSelection && r.dispatch({ type: "SELECT_EVENT", eventInstanceId: c }) : r.dispatch({ type: "UNSELECT_EVENT" }), this.isDragging && (r.calendarApi.unselect(s), r.emitter.trigger("eventDragStart", {
8089
8089
  el: this.subjectEl,
8090
8090
  event: new A1(r, o.def, o.instance),
8091
8091
  jsEvent: s.origEvent,
@@ -8094,7 +8094,7 @@ class Y0 extends w0 {
8094
8094
  }, this.handleHitUpdate = (s, r) => {
8095
8095
  if (!this.isDragging)
8096
8096
  return;
8097
- let o = this.relevantEvents, u = this.hitDragging.initialHit, c = this.component.context, d = null, f = null, h = null, g = !1, m = {
8097
+ let o = this.relevantEvents, c = this.hitDragging.initialHit, u = this.component.context, d = null, f = null, h = null, g = !1, m = {
8098
8098
  affectedEvents: o,
8099
8099
  mutatedEvents: Q1(),
8100
8100
  isEvent: !0
@@ -8102,22 +8102,22 @@ class Y0 extends w0 {
8102
8102
  if (s) {
8103
8103
  d = s.context;
8104
8104
  let p = d.options;
8105
- c === d || p.editable && p.droppable ? (f = ec(u, s, this.eventRange.instance.range.start, d.getCurrentData().pluginHooks.eventDragMutationMassagers), f && (h = V2(o, d.getCurrentData().eventUiBases, f, d), m.mutatedEvents = h, cn(m, s.dateProfile, d) || (g = !0, f = null, h = null, m.mutatedEvents = Q1()))) : d = null;
8105
+ u === d || p.editable && p.droppable ? (f = ec(c, s, this.eventRange.instance.range.start, d.getCurrentData().pluginHooks.eventDragMutationMassagers), f && (h = V2(o, d.getCurrentData().eventUiBases, f, d), m.mutatedEvents = h, cn(m, s.dateProfile, d) || (g = !0, f = null, h = null, m.mutatedEvents = Q1()))) : d = null;
8106
8106
  }
8107
- this.displayDrag(d, m), g ? m2() : g2(), r || (c === d && // TODO: write test for this
8108
- st(u, s) && (f = null), this.dragging.setMirrorNeedsRevert(!f), this.dragging.setMirrorIsVisible(!s || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = d, this.validMutation = f, this.mutatedRelevantEvents = h);
8107
+ this.displayDrag(d, m), g ? m2() : g2(), r || (u === d && // TODO: write test for this
8108
+ st(c, s) && (f = null), this.dragging.setMirrorNeedsRevert(!f), this.dragging.setMirrorIsVisible(!s || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = d, this.validMutation = f, this.mutatedRelevantEvents = h);
8109
8109
  }, this.handlePointerUp = () => {
8110
8110
  this.isDragging || this.cleanup();
8111
8111
  }, this.handleDragEnd = (s) => {
8112
8112
  if (this.isDragging) {
8113
- let r = this.component.context, o = r.viewApi, { receivingContext: u, validMutation: c } = this, d = this.eventRange.def, f = this.eventRange.instance, h = new A1(r, d, f), g = this.relevantEvents, m = this.mutatedRelevantEvents, { finalHit: p } = this.hitDragging;
8113
+ let r = this.component.context, o = r.viewApi, { receivingContext: c, validMutation: u } = this, d = this.eventRange.def, f = this.eventRange.instance, h = new A1(r, d, f), g = this.relevantEvents, m = this.mutatedRelevantEvents, { finalHit: p } = this.hitDragging;
8114
8114
  if (this.clearDrag(), r.emitter.trigger("eventDragStop", {
8115
8115
  el: this.subjectEl,
8116
8116
  event: h,
8117
8117
  jsEvent: s.origEvent,
8118
8118
  view: o
8119
- }), c) {
8120
- if (u === r) {
8119
+ }), u) {
8120
+ if (c === r) {
8121
8121
  let y = new A1(r, m.defs[d.defId], f ? m.instances[f.instanceId] : null);
8122
8122
  r.dispatch({
8123
8123
  type: "MERGE_EVENTS",
@@ -8136,9 +8136,9 @@ class Y0 extends w0 {
8136
8136
  }
8137
8137
  }, C = {};
8138
8138
  for (let v of r.getCurrentData().pluginHooks.eventDropTransformers)
8139
- Object.assign(C, v(c, r));
8140
- r.emitter.trigger("eventDrop", Object.assign(Object.assign(Object.assign({}, b), C), { el: s.subjectEl, delta: c.datesDelta, jsEvent: s.origEvent, view: o })), r.emitter.trigger("eventChange", b);
8141
- } else if (u) {
8139
+ Object.assign(C, v(u, r));
8140
+ r.emitter.trigger("eventDrop", Object.assign(Object.assign(Object.assign({}, b), C), { el: s.subjectEl, delta: u.datesDelta, jsEvent: s.origEvent, view: o })), r.emitter.trigger("eventChange", b);
8141
+ } else if (c) {
8142
8142
  let y = {
8143
8143
  event: h,
8144
8144
  relatedEvents: W3(g, r, f),
@@ -8153,25 +8153,25 @@ class Y0 extends w0 {
8153
8153
  type: "REMOVE_EVENTS",
8154
8154
  eventStore: g
8155
8155
  }), r.emitter.trigger("eventRemove", y);
8156
- let b = m.defs[d.defId], C = m.instances[f.instanceId], v = new A1(u, b, C);
8157
- u.dispatch({
8156
+ let b = m.defs[d.defId], C = m.instances[f.instanceId], v = new A1(c, b, C);
8157
+ c.dispatch({
8158
8158
  type: "MERGE_EVENTS",
8159
8159
  eventStore: m
8160
8160
  });
8161
8161
  let B = {
8162
8162
  event: v,
8163
- relatedEvents: W3(m, u, C),
8163
+ relatedEvents: W3(m, c, C),
8164
8164
  revert() {
8165
- u.dispatch({
8165
+ c.dispatch({
8166
8166
  type: "REMOVE_EVENTS",
8167
8167
  eventStore: m
8168
8168
  });
8169
8169
  }
8170
8170
  };
8171
- u.emitter.trigger("eventAdd", B), s.isTouch && u.dispatch({
8171
+ c.emitter.trigger("eventAdd", B), s.isTouch && c.dispatch({
8172
8172
  type: "SELECT_EVENT",
8173
8173
  eventInstanceId: f.instanceId
8174
- }), u.emitter.trigger("drop", Object.assign(Object.assign({}, jn(p.dateSpan, u)), { draggedEl: s.subjectEl, jsEvent: s.origEvent, view: p.context.viewApi })), u.emitter.trigger("eventReceive", Object.assign(Object.assign({}, B), { draggedEl: s.subjectEl, view: p.context.viewApi }));
8174
+ }), c.emitter.trigger("drop", Object.assign(Object.assign({}, jn(p.dateSpan, c)), { draggedEl: s.subjectEl, jsEvent: s.origEvent, view: p.context.viewApi })), c.emitter.trigger("eventReceive", Object.assign(Object.assign({}, B), { draggedEl: s.subjectEl, view: p.context.viewApi }));
8175
8175
  }
8176
8176
  } else
8177
8177
  r.emitter.trigger("_noEventDrop");
@@ -8210,15 +8210,15 @@ Y0.SELECTOR = ".fc-event-draggable, .fc-event-resizable";
8210
8210
  function ec(a, e, t, i) {
8211
8211
  let n = a.dateSpan, l = e.dateSpan, s = n.range.start, r = l.range.start, o = {};
8212
8212
  n.allDay !== l.allDay && (o.allDay = l.allDay, o.hasEnd = e.context.options.allDayMaintainDuration, l.allDay ? s = m1(t) : s = t);
8213
- let u = r0(s, r, a.context.dateEnv, a.componentId === e.componentId ? a.largeUnit : null);
8214
- u.milliseconds && (o.allDay = !1);
8215
- let c = {
8216
- datesDelta: u,
8213
+ let c = r0(s, r, a.context.dateEnv, a.componentId === e.componentId ? a.largeUnit : null);
8214
+ c.milliseconds && (o.allDay = !1);
8215
+ let u = {
8216
+ datesDelta: c,
8217
8217
  standardProps: o
8218
8218
  };
8219
8219
  for (let d of i)
8220
- d(c, a, e);
8221
- return c;
8220
+ d(u, a, e);
8221
+ return u;
8222
8222
  }
8223
8223
  function tc(a) {
8224
8224
  let { options: e } = a.context, t = e.eventLongPressDelay;
@@ -8227,8 +8227,8 @@ function tc(a) {
8227
8227
  class ac extends w0 {
8228
8228
  constructor(e) {
8229
8229
  super(e), this.draggingSegEl = null, this.draggingSeg = null, this.eventRange = null, this.relevantEvents = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (l) => {
8230
- let { component: s } = this, r = this.querySegEl(l), o = p0(r), u = this.eventRange = o.eventRange;
8231
- this.dragging.minDistance = s.context.options.eventDragMinDistance, this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(l.origEvent.target) || l.isTouch && this.component.props.eventSelection !== u.instance.instanceId);
8230
+ let { component: s } = this, r = this.querySegEl(l), o = p0(r), c = this.eventRange = o.eventRange;
8231
+ this.dragging.minDistance = s.context.options.eventDragMinDistance, this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(l.origEvent.target) || l.isTouch && this.component.props.eventSelection !== c.instance.instanceId);
8232
8232
  }, this.handleDragStart = (l) => {
8233
8233
  let { context: s } = this.component, r = this.eventRange;
8234
8234
  this.relevantEvents = k2(s.getCurrentData().eventStore, this.eventRange.instance.instanceId);
@@ -8240,20 +8240,20 @@ class ac extends w0 {
8240
8240
  view: s.viewApi
8241
8241
  });
8242
8242
  }, this.handleHitUpdate = (l, s, r) => {
8243
- let { context: o } = this.component, u = this.relevantEvents, c = this.hitDragging.initialHit, d = this.eventRange.instance, f = null, h = null, g = !1, m = {
8244
- affectedEvents: u,
8243
+ let { context: o } = this.component, c = this.relevantEvents, u = this.hitDragging.initialHit, d = this.eventRange.instance, f = null, h = null, g = !1, m = {
8244
+ affectedEvents: c,
8245
8245
  mutatedEvents: Q1(),
8246
8246
  isEvent: !0
8247
8247
  };
8248
- l && (l.componentId === c.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(c, l) || (f = ic(c, l, r.subjectEl.classList.contains("fc-event-resizer-start"), d.range))), f && (h = V2(u, o.getCurrentData().eventUiBases, f, o), m.mutatedEvents = h, cn(m, l.dateProfile, o) || (g = !0, f = null, h = null, m.mutatedEvents = null)), h ? o.dispatch({
8248
+ l && (l.componentId === u.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(u, l) || (f = ic(u, l, r.subjectEl.classList.contains("fc-event-resizer-start"), d.range))), f && (h = V2(c, o.getCurrentData().eventUiBases, f, o), m.mutatedEvents = h, cn(m, l.dateProfile, o) || (g = !0, f = null, h = null, m.mutatedEvents = null)), h ? o.dispatch({
8249
8249
  type: "SET_EVENT_RESIZE",
8250
8250
  state: m
8251
- }) : o.dispatch({ type: "UNSET_EVENT_RESIZE" }), g ? m2() : g2(), s || (f && st(c, l) && (f = null), this.validMutation = f, this.mutatedRelevantEvents = h);
8251
+ }) : o.dispatch({ type: "UNSET_EVENT_RESIZE" }), g ? m2() : g2(), s || (f && st(u, l) && (f = null), this.validMutation = f, this.mutatedRelevantEvents = h);
8252
8252
  }, this.handleDragEnd = (l) => {
8253
- let { context: s } = this.component, r = this.eventRange.def, o = this.eventRange.instance, u = new A1(s, r, o), c = this.relevantEvents, d = this.mutatedRelevantEvents;
8253
+ let { context: s } = this.component, r = this.eventRange.def, o = this.eventRange.instance, c = new A1(s, r, o), u = this.relevantEvents, d = this.mutatedRelevantEvents;
8254
8254
  if (s.emitter.trigger("eventResizeStop", {
8255
8255
  el: this.draggingSegEl,
8256
- event: u,
8256
+ event: c,
8257
8257
  jsEvent: l.origEvent,
8258
8258
  view: s.viewApi
8259
8259
  }), this.validMutation) {
@@ -8263,13 +8263,13 @@ class ac extends w0 {
8263
8263
  eventStore: d
8264
8264
  });
8265
8265
  let h = {
8266
- oldEvent: u,
8266
+ oldEvent: c,
8267
8267
  event: f,
8268
8268
  relatedEvents: W3(d, s, o),
8269
8269
  revert() {
8270
8270
  s.dispatch({
8271
8271
  type: "MERGE_EVENTS",
8272
- eventStore: c
8272
+ eventStore: u
8273
8273
  // the pre-change events
8274
8274
  });
8275
8275
  }
@@ -8522,7 +8522,7 @@ class pc extends u3 {
8522
8522
  let o = this.context.pluginHooks.scrollGridImpl;
8523
8523
  if (!o)
8524
8524
  throw new Error("No ScrollGrid implementation");
8525
- let { context: u, props: c } = this, d = !c.forPrint && Ye(u.options), f = !c.forPrint && fn(u.options), h = [];
8525
+ let { context: c, props: u } = this, d = !u.forPrint && Ye(c.options), f = !u.forPrint && fn(c.options), h = [];
8526
8526
  e && h.push({
8527
8527
  type: "header",
8528
8528
  key: "header",
@@ -8562,16 +8562,16 @@ class pc extends u3 {
8562
8562
  A(
8563
8563
  "tr",
8564
8564
  { role: "presentation", className: "fc-scrollgrid-section" },
8565
- A("td", { colSpan: 2, className: "fc-timegrid-divider " + u.theme.getClass("tableCellShaded") })
8565
+ A("td", { colSpan: 2, className: "fc-timegrid-divider " + c.theme.getClass("tableCellShaded") })
8566
8566
  )
8567
8567
  )
8568
8568
  }));
8569
- let g = u.options.nowIndicator;
8569
+ let g = c.options.nowIndicator;
8570
8570
  return h.push({
8571
8571
  type: "body",
8572
8572
  key: "body",
8573
8573
  liquid: !0,
8574
- expandRows: !!u.options.expandRows,
8574
+ expandRows: !!c.options.expandRows,
8575
8575
  chunks: [
8576
8576
  {
8577
8577
  key: "axis",
@@ -8626,8 +8626,8 @@ class pc extends u3 {
8626
8626
  ]
8627
8627
  }), A(
8628
8628
  Ue,
8629
- { elRef: this.rootElRef, elClasses: ["fc-timegrid"], viewSpec: u.viewSpec },
8630
- A(o, { liquid: !c.isHeightAuto && !c.forPrint, forPrint: c.forPrint, collapsibleWidth: !1, colGroups: [
8629
+ { elRef: this.rootElRef, elClasses: ["fc-timegrid"], viewSpec: c.viewSpec },
8630
+ A(o, { liquid: !u.isHeightAuto && !u.forPrint, forPrint: u.forPrint, collapsibleWidth: !1, colGroups: [
8631
8631
  { width: "shrink", cols: [{ width: "shrink" }] },
8632
8632
  { cols: [{ span: n, minWidth: l }] }
8633
8633
  ], sections: h })
@@ -8808,12 +8808,12 @@ function Sc(a, e, t) {
8808
8808
  for (; o < r && i[o] < s; o += 1)
8809
8809
  ;
8810
8810
  for (; o < r; o += 1) {
8811
- let u = n[o], c, d = Zt(u, l.span.start, Jt), f = d[0] + d[1], h = f;
8811
+ let c = n[o], u, d = Zt(c, l.span.start, Jt), f = d[0] + d[1], h = f;
8812
8812
  for (
8813
8813
  ;
8814
8814
  // loop through entries that horizontally intersect
8815
- (c = u[h]) && // but not past the whole seg list
8816
- c.span.start < l.span.end;
8815
+ (u = c[h]) && // but not past the whole seg list
8816
+ u.span.start < l.span.end;
8817
8817
  )
8818
8818
  h += 1;
8819
8819
  if (f < h)
@@ -8823,20 +8823,20 @@ function Sc(a, e, t) {
8823
8823
  }
8824
8824
  function xc(a, e) {
8825
8825
  const t = Q2((i, n, l) => Q3(i), (i, n, l) => {
8826
- let { nextLevelNodes: s, thickness: r } = i, o = r + l, u = r / o, c, d = [];
8826
+ let { nextLevelNodes: s, thickness: r } = i, o = r + l, c = r / o, u, d = [];
8827
8827
  if (!s.length)
8828
- c = e;
8828
+ u = e;
8829
8829
  else
8830
8830
  for (let h of s)
8831
- if (c === void 0) {
8831
+ if (u === void 0) {
8832
8832
  let g = t(h, n, o);
8833
- c = g[0], d.push(g[1]);
8833
+ u = g[0], d.push(g[1]);
8834
8834
  } else {
8835
- let g = t(h, c, 0);
8835
+ let g = t(h, u, 0);
8836
8836
  d.push(g[1]);
8837
8837
  }
8838
- let f = (c - n) * u;
8839
- return [c - f, Object.assign(Object.assign({}, i), { thickness: f, nextLevelNodes: d })];
8838
+ let f = (u - n) * c;
8839
+ return [u - f, Object.assign(Object.assign({}, i), { thickness: f, nextLevelNodes: d })];
8840
8840
  });
8841
8841
  return a.map((i) => t(i, 0, 0)[1]);
8842
8842
  }
@@ -8884,22 +8884,22 @@ function sa(a, e, t = null, i = 0) {
8884
8884
  }
8885
8885
  function Dc(a, e, t, i) {
8886
8886
  let n = [], l = [];
8887
- for (let u = 0; u < a.length; u += 1) {
8888
- let c = e[u];
8889
- c ? n.push({
8890
- index: u,
8887
+ for (let c = 0; c < a.length; c += 1) {
8888
+ let u = e[c];
8889
+ u ? n.push({
8890
+ index: c,
8891
8891
  thickness: 1,
8892
- span: c
8893
- }) : l.push(a[u]);
8892
+ span: u
8893
+ }) : l.push(a[c]);
8894
8894
  }
8895
8895
  let { segRects: s, hiddenGroups: r } = Ec(n, t, i), o = [];
8896
- for (let u of s)
8896
+ for (let c of s)
8897
8897
  o.push({
8898
- seg: a[u.index],
8899
- rect: u
8898
+ seg: a[c.index],
8899
+ rect: c
8900
8900
  });
8901
- for (let u of l)
8902
- o.push({ seg: u, rect: null });
8901
+ for (let c of l)
8902
+ o.push({ seg: c, rect: null });
8903
8903
  return { segPlacements: o, hiddenGroups: r };
8904
8904
  }
8905
8905
  const Ic = b1({
@@ -8953,7 +8953,7 @@ class Vc extends c1 {
8953
8953
  return r.forPrint ? Pn(e, r) : this.renderPositionedFgSegs(e, t, i, n, l, s);
8954
8954
  }
8955
8955
  renderPositionedFgSegs(e, t, i, n, l, s) {
8956
- let { eventMaxStack: r, eventShortHeight: o, eventOrderStrict: u, eventMinHeight: c } = this.context.options, { date: d, slatCoords: f, eventSelection: h, todayRange: g, nowDate: m } = this.props, p = i || n || l, y = sa(e, d, f, c), { segPlacements: b, hiddenGroups: C } = Dc(e, y, u, r);
8956
+ let { eventMaxStack: r, eventShortHeight: o, eventOrderStrict: c, eventMinHeight: u } = this.context.options, { date: d, slatCoords: f, eventSelection: h, todayRange: g, nowDate: m } = this.props, p = i || n || l, y = sa(e, d, f, u), { segPlacements: b, hiddenGroups: C } = Dc(e, y, c, r);
8957
8957
  return A(
8958
8958
  v1,
8959
8959
  null,
@@ -8970,16 +8970,16 @@ class Vc extends c1 {
8970
8970
  }
8971
8971
  // will already have eventMinHeight applied because segInputs already had it
8972
8972
  renderHiddenGroups(e, t) {
8973
- let { extraDateSpan: i, dateProfile: n, todayRange: l, nowDate: s, eventSelection: r, eventDrag: o, eventResize: u } = this.props;
8974
- return A(v1, null, e.map((c) => {
8975
- let d = Vt(c.span), f = Bc(c.entries, t);
8976
- return A(bc, { key: zi(An(f)), hiddenSegs: f, top: d.top, bottom: d.bottom, extraDateSpan: i, dateProfile: n, todayRange: l, nowDate: s, eventSelection: r, eventDrag: o, eventResize: u });
8973
+ let { extraDateSpan: i, dateProfile: n, todayRange: l, nowDate: s, eventSelection: r, eventDrag: o, eventResize: c } = this.props;
8974
+ return A(v1, null, e.map((u) => {
8975
+ let d = Vt(u.span), f = Bc(u.entries, t);
8976
+ return A(bc, { key: zi(An(f)), hiddenSegs: f, top: d.top, bottom: d.bottom, extraDateSpan: i, dateProfile: n, todayRange: l, nowDate: s, eventSelection: r, eventDrag: o, eventResize: c });
8977
8977
  }));
8978
8978
  }
8979
8979
  renderFillSegs(e, t) {
8980
8980
  let { props: i, context: n } = this, s = sa(e, i.date, i.slatCoords, n.options.eventMinHeight).map((r, o) => {
8981
- let u = e[o];
8982
- return A("div", { key: Yi(u.eventRange), className: "fc-timegrid-bg-harness", style: Vt(r) }, t === "bg-event" ? A(pn, Object.assign({ seg: u }, D3(u, i.todayRange, i.nowDate))) : vn(t));
8981
+ let c = e[o];
8982
+ return A("div", { key: Yi(c.eventRange), className: "fc-timegrid-bg-harness", style: Vt(r) }, t === "bg-event" ? A(pn, Object.assign({ seg: c }, D3(c, i.todayRange, i.nowDate))) : vn(t));
8983
8983
  });
8984
8984
  return A(v1, null, s);
8985
8985
  }
@@ -9002,12 +9002,12 @@ class Vc extends c1 {
9002
9002
  computeSegHStyle(e) {
9003
9003
  let { isRtl: t, options: i } = this.context, n = i.slotEventOverlap, l = e.levelCoord, s = e.levelCoord + e.thickness, r, o;
9004
9004
  n && (s = Math.min(1, l + (s - l) * 2)), t ? (r = 1 - s, o = l) : (r = l, o = 1 - s);
9005
- let u = {
9005
+ let c = {
9006
9006
  zIndex: e.stackDepth + 1,
9007
9007
  left: r * 100 + "%",
9008
9008
  right: o * 100 + "%"
9009
9009
  };
9010
- return n && !e.stackForward && (u[t ? "marginLeft" : "marginRight"] = 20), u;
9010
+ return n && !e.stackForward && (c[t ? "marginLeft" : "marginRight"] = 20), c;
9011
9011
  }
9012
9012
  }
9013
9013
  function Pn(a, { todayRange: e, nowDate: t, eventSelection: i, eventDrag: n, eventResize: l }) {
@@ -9035,7 +9035,7 @@ class Rc extends c1 {
9035
9035
  super(...arguments), this.splitFgEventSegs = Q(x0), this.splitBgEventSegs = Q(x0), this.splitBusinessHourSegs = Q(x0), this.splitNowIndicatorSegs = Q(x0), this.splitDateSelectionSegs = Q(x0), this.splitEventDrag = Q(na), this.splitEventResize = Q(na), this.rootElRef = L1(), this.cellElRefs = new v3();
9036
9036
  }
9037
9037
  render() {
9038
- let { props: e, context: t } = this, i = t.options.nowIndicator && e.slatCoords && e.slatCoords.safeComputeTop(e.nowDate), n = e.cells.length, l = this.splitFgEventSegs(e.fgEventSegs, n), s = this.splitBgEventSegs(e.bgEventSegs, n), r = this.splitBusinessHourSegs(e.businessHourSegs, n), o = this.splitNowIndicatorSegs(e.nowIndicatorSegs, n), u = this.splitDateSelectionSegs(e.dateSelectionSegs, n), c = this.splitEventDrag(e.eventDrag, n), d = this.splitEventResize(e.eventResize, n);
9038
+ let { props: e, context: t } = this, i = t.options.nowIndicator && e.slatCoords && e.slatCoords.safeComputeTop(e.nowDate), n = e.cells.length, l = this.splitFgEventSegs(e.fgEventSegs, n), s = this.splitBgEventSegs(e.bgEventSegs, n), r = this.splitBusinessHourSegs(e.businessHourSegs, n), o = this.splitNowIndicatorSegs(e.nowIndicatorSegs, n), c = this.splitDateSelectionSegs(e.dateSelectionSegs, n), u = this.splitEventDrag(e.eventDrag, n), d = this.splitEventResize(e.eventResize, n);
9039
9039
  return A(
9040
9040
  "div",
9041
9041
  { className: "fc-timegrid-cols", ref: this.rootElRef },
@@ -9061,7 +9061,7 @@ class Rc extends c1 {
9061
9061
  A("div", { className: "fc-timegrid-now-indicator-container" }, typeof i == "number" && A(U2, { elClasses: ["fc-timegrid-now-indicator-arrow"], elStyle: { top: i }, isAxis: !0, date: e.nowDate }))
9062
9062
  )
9063
9063
  ),
9064
- e.cells.map((f, h) => A(Vc, { key: f.key, elRef: this.cellElRefs.createRef(f.key), dateProfile: e.dateProfile, date: f.date, nowDate: e.nowDate, todayRange: e.todayRange, extraRenderProps: f.extraRenderProps, extraDataAttrs: f.extraDataAttrs, extraClassNames: f.extraClassNames, extraDateSpan: f.extraDateSpan, fgEventSegs: l[h], bgEventSegs: s[h], businessHourSegs: r[h], nowIndicatorSegs: o[h], dateSelectionSegs: u[h], eventDrag: c[h], eventResize: d[h], slatCoords: e.slatCoords, eventSelection: e.eventSelection, forPrint: e.forPrint }))
9064
+ e.cells.map((f, h) => A(Vc, { key: f.key, elRef: this.cellElRefs.createRef(f.key), dateProfile: e.dateProfile, date: f.date, nowDate: e.nowDate, todayRange: e.todayRange, extraRenderProps: f.extraRenderProps, extraDataAttrs: f.extraDataAttrs, extraClassNames: f.extraClassNames, extraDateSpan: f.extraDateSpan, fgEventSegs: l[h], bgEventSegs: s[h], businessHourSegs: r[h], nowIndicatorSegs: o[h], dateSelectionSegs: c[h], eventDrag: u[h], eventResize: d[h], slatCoords: e.slatCoords, eventSelection: e.eventSelection, forPrint: e.forPrint }))
9065
9065
  )
9066
9066
  )
9067
9067
  )
@@ -9136,16 +9136,16 @@ class Hc extends u3 {
9136
9136
  this.scrollResponder.detach();
9137
9137
  }
9138
9138
  queryHit(e, t) {
9139
- let { dateEnv: i, options: n } = this.context, { colCoords: l } = this, { dateProfile: s } = this.props, { slatCoords: r } = this.state, { snapDuration: o, snapsPerSlot: u } = this.processSlotOptions(this.props.slotDuration, n.snapDuration), c = l.leftToIndex(e), d = r.positions.topToIndex(t);
9140
- if (c != null && d != null) {
9141
- let f = this.props.cells[c], h = r.positions.tops[d], g = r.positions.getHeight(d), m = (t - h) / g, p = Math.floor(m * u), y = d * u + p, b = this.props.cells[c].date, C = Wt(s.slotMinTime, _l(o, y)), v = i.add(b, C), B = i.add(v, o);
9139
+ let { dateEnv: i, options: n } = this.context, { colCoords: l } = this, { dateProfile: s } = this.props, { slatCoords: r } = this.state, { snapDuration: o, snapsPerSlot: c } = this.processSlotOptions(this.props.slotDuration, n.snapDuration), u = l.leftToIndex(e), d = r.positions.topToIndex(t);
9140
+ if (u != null && d != null) {
9141
+ let f = this.props.cells[u], h = r.positions.tops[d], g = r.positions.getHeight(d), m = (t - h) / g, p = Math.floor(m * c), y = d * c + p, b = this.props.cells[u].date, C = Wt(s.slotMinTime, _l(o, y)), v = i.add(b, C), B = i.add(v, o);
9142
9142
  return {
9143
9143
  dateProfile: s,
9144
9144
  dateSpan: Object.assign({ range: { start: v, end: B }, allDay: !1 }, f.extraDateSpan),
9145
- dayEl: l.els[c],
9145
+ dayEl: l.els[u],
9146
9146
  rect: {
9147
- left: l.lefts[c],
9148
- right: l.rights[c],
9147
+ left: l.lefts[u],
9148
+ right: l.rights[u],
9149
9149
  top: h,
9150
9150
  bottom: h + g
9151
9151
  },
@@ -9181,7 +9181,7 @@ class Nc extends u3 {
9181
9181
  }
9182
9182
  render() {
9183
9183
  let { props: e, context: t } = this, { dateProfile: i, dayTableModel: n } = e, { nowIndicator: l, nextDayThreshold: s } = t.options, r = this.buildDayRanges(n, i, t.dateEnv);
9184
- return A(E0, { unit: l ? "minute" : "day" }, (o, u) => A(Hc, Object.assign({ ref: this.timeColsRef }, this.slicer.sliceProps(e, i, null, t, r), { forPrint: e.forPrint, axis: e.axis, dateProfile: i, slatMetas: e.slatMetas, slotDuration: e.slotDuration, cells: n.cells[0], tableColGroupNode: e.tableColGroupNode, tableMinWidth: e.tableMinWidth, clientWidth: e.clientWidth, clientHeight: e.clientHeight, expandRows: e.expandRows, nowDate: o, nowIndicatorSegs: l && this.slicer.sliceNowDate(o, i, s, t, r), todayRange: u, onScrollTopRequest: e.onScrollTopRequest, onSlatCoords: e.onSlatCoords })));
9184
+ return A(E0, { unit: l ? "minute" : "day" }, (o, c) => A(Hc, Object.assign({ ref: this.timeColsRef }, this.slicer.sliceProps(e, i, null, t, r), { forPrint: e.forPrint, axis: e.axis, dateProfile: i, slatMetas: e.slatMetas, slotDuration: e.slotDuration, cells: n.cells[0], tableColGroupNode: e.tableColGroupNode, tableMinWidth: e.tableMinWidth, clientWidth: e.clientWidth, clientHeight: e.clientHeight, expandRows: e.expandRows, nowDate: o, nowIndicatorSegs: l && this.slicer.sliceNowDate(o, i, s, t, r), todayRange: c, onScrollTopRequest: e.onScrollTopRequest, onSlatCoords: e.onSlatCoords })));
9185
9185
  }
9186
9186
  }
9187
9187
  function Fc(a, e, t) {
@@ -9201,18 +9201,18 @@ const ra = [
9201
9201
  { seconds: 15 }
9202
9202
  ];
9203
9203
  function jc(a, e, t, i, n) {
9204
- let l = /* @__PURE__ */ new Date(0), s = a, r = n1(0), o = t || Uc(i), u = [];
9204
+ let l = /* @__PURE__ */ new Date(0), s = a, r = n1(0), o = t || Uc(i), c = [];
9205
9205
  for (; e3(s) < e3(e); ) {
9206
- let c = n.add(l, s), d = A2(r, o) !== null;
9207
- u.push({
9208
- date: c,
9206
+ let u = n.add(l, s), d = A2(r, o) !== null;
9207
+ c.push({
9208
+ date: u,
9209
9209
  time: s,
9210
- key: c.toISOString(),
9211
- isoTimeStr: ds(c),
9210
+ key: u.toISOString(),
9211
+ isoTimeStr: ds(u),
9212
9212
  isLabeled: d
9213
9213
  }), s = Wt(s, i), r = Wt(r, i);
9214
9214
  }
9215
- return u;
9215
+ return c;
9216
9216
  }
9217
9217
  function Uc(a) {
9218
9218
  let e, t, i;
@@ -9226,8 +9226,8 @@ class Kc extends pc {
9226
9226
  super(...arguments), this.buildTimeColsModel = Q(Pc), this.buildSlatMetas = Q(jc);
9227
9227
  }
9228
9228
  render() {
9229
- let { options: e, dateEnv: t, dateProfileGenerator: i } = this.context, { props: n } = this, { dateProfile: l } = n, s = this.buildTimeColsModel(l, i), r = this.allDaySplitter.splitProps(n), o = this.buildSlatMetas(l.slotMinTime, l.slotMaxTime, e.slotLabelInterval, e.slotDuration, t), { dayMinWidth: u } = e, c = !u, d = u, f = e.dayHeaders && A(ln, { dates: s.headerDates, dateProfile: l, datesRepDistinctDays: !0, renderIntro: c ? this.renderHeadAxis : null }), h = e.allDaySlot !== !1 && ((m) => A(Hn, Object.assign({}, r.allDay, { dateProfile: l, dayTableModel: s, nextDayThreshold: e.nextDayThreshold, tableMinWidth: m.tableMinWidth, colGroupNode: m.tableColGroupNode, renderRowIntro: c ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: m.clientWidth, clientHeight: m.clientHeight, forPrint: n.forPrint }, this.getAllDayMaxEventProps()))), g = (m) => A(Nc, Object.assign({}, r.timed, { dayTableModel: s, dateProfile: l, axis: c, slotDuration: e.slotDuration, slatMetas: o, forPrint: n.forPrint, tableColGroupNode: m.tableColGroupNode, tableMinWidth: m.tableMinWidth, clientWidth: m.clientWidth, clientHeight: m.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: m.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
9230
- return d ? this.renderHScrollLayout(f, h, g, s.colCnt, u, o, this.state.slatCoords) : this.renderSimpleLayout(f, h, g);
9229
+ let { options: e, dateEnv: t, dateProfileGenerator: i } = this.context, { props: n } = this, { dateProfile: l } = n, s = this.buildTimeColsModel(l, i), r = this.allDaySplitter.splitProps(n), o = this.buildSlatMetas(l.slotMinTime, l.slotMaxTime, e.slotLabelInterval, e.slotDuration, t), { dayMinWidth: c } = e, u = !c, d = c, f = e.dayHeaders && A(ln, { dates: s.headerDates, dateProfile: l, datesRepDistinctDays: !0, renderIntro: u ? this.renderHeadAxis : null }), h = e.allDaySlot !== !1 && ((m) => A(Hn, Object.assign({}, r.allDay, { dateProfile: l, dayTableModel: s, nextDayThreshold: e.nextDayThreshold, tableMinWidth: m.tableMinWidth, colGroupNode: m.tableColGroupNode, renderRowIntro: u ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: m.clientWidth, clientHeight: m.clientHeight, forPrint: n.forPrint }, this.getAllDayMaxEventProps()))), g = (m) => A(Nc, Object.assign({}, r.timed, { dayTableModel: s, dateProfile: l, axis: u, slotDuration: e.slotDuration, slatMetas: o, forPrint: n.forPrint, tableColGroupNode: m.tableColGroupNode, tableMinWidth: m.tableMinWidth, clientWidth: m.clientWidth, clientHeight: m.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: m.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
9230
+ return d ? this.renderHScrollLayout(f, h, g, s.colCnt, c, o, this.state.slatCoords) : this.renderSimpleLayout(f, h, g);
9231
9231
  }
9232
9232
  }
9233
9233
  function Pc(a, e) {
@@ -9339,8 +9339,8 @@ function r8(a) {
9339
9339
  };
9340
9340
  return Object.assign(e.elements.popper.style, t.popper), e.styles = t, e.elements.arrow && Object.assign(e.elements.arrow.style, t.arrow), function() {
9341
9341
  Object.keys(e.elements).forEach(function(i) {
9342
- var n = e.elements[i], l = e.attributes[i] || {}, s = Object.keys(e.styles.hasOwnProperty(i) ? e.styles[i] : t[i]), r = s.reduce(function(o, u) {
9343
- return o[u] = "", o;
9342
+ var n = e.elements[i], l = e.attributes[i] || {}, s = Object.keys(e.styles.hasOwnProperty(i) ? e.styles[i] : t[i]), r = s.reduce(function(o, c) {
9343
+ return o[c] = "", o;
9344
9344
  }, {});
9345
9345
  !J1(n) || !c3(n) || (Object.assign(n.style, r), Object.keys(l).forEach(function(o) {
9346
9346
  n.removeAttribute(o);
@@ -9373,16 +9373,16 @@ function A0(a, e, t) {
9373
9373
  e === void 0 && (e = !1), t === void 0 && (t = !1);
9374
9374
  var i = a.getBoundingClientRect(), n = 1, l = 1;
9375
9375
  e && J1(a) && (n = a.offsetWidth > 0 && g0(i.width) / a.offsetWidth || 1, l = a.offsetHeight > 0 && g0(i.height) / a.offsetHeight || 1);
9376
- var s = Z3(a) ? Y1(a) : window, r = s.visualViewport, o = !qn() && t, u = (i.left + (o && r ? r.offsetLeft : 0)) / n, c = (i.top + (o && r ? r.offsetTop : 0)) / l, d = i.width / n, f = i.height / l;
9376
+ var s = Z3(a) ? Y1(a) : window, r = s.visualViewport, o = !qn() && t, c = (i.left + (o && r ? r.offsetLeft : 0)) / n, u = (i.top + (o && r ? r.offsetTop : 0)) / l, d = i.width / n, f = i.height / l;
9377
9377
  return {
9378
9378
  width: d,
9379
9379
  height: f,
9380
- top: c,
9381
- right: u + d,
9382
- bottom: c + f,
9383
- left: u,
9384
- x: u,
9385
- y: c
9380
+ top: u,
9381
+ right: c + d,
9382
+ bottom: u + f,
9383
+ left: c,
9384
+ x: c,
9385
+ y: u
9386
9386
  };
9387
9387
  }
9388
9388
  function G2(a) {
@@ -9489,9 +9489,9 @@ var d8 = function(e, t) {
9489
9489
  })) : e, Jn(typeof e != "number" ? e : Zn(e, q0));
9490
9490
  };
9491
9491
  function h8(a) {
9492
- var e, t = a.state, i = a.name, n = a.options, l = t.elements.arrow, s = t.modifiersData.popperOffsets, r = r3(t.placement), o = _2(r), u = [U1, X1].indexOf(r) >= 0, c = u ? "height" : "width";
9492
+ var e, t = a.state, i = a.name, n = a.options, l = t.elements.arrow, s = t.modifiersData.popperOffsets, r = r3(t.placement), o = _2(r), c = [U1, X1].indexOf(r) >= 0, u = c ? "height" : "width";
9493
9493
  if (!(!l || !s)) {
9494
- var d = d8(n.padding, t), f = G2(l), h = o === "y" ? j1 : U1, g = o === "y" ? Z1 : X1, m = t.rects.reference[c] + t.rects.reference[o] - s[o] - t.rects.popper[c], p = s[o] - t.rects.reference[o], y = G0(l), b = y ? o === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, C = m / 2 - p / 2, v = d[h], B = b - f[c] - d[g], x = b / 2 - f[c] / 2 + C, T = R0(v, x, B), R = o;
9494
+ var d = d8(n.padding, t), f = G2(l), h = o === "y" ? j1 : U1, g = o === "y" ? Z1 : X1, m = t.rects.reference[u] + t.rects.reference[o] - s[o] - t.rects.popper[u], p = s[o] - t.rects.reference[o], y = G0(l), b = y ? o === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, C = m / 2 - p / 2, v = d[h], B = b - f[u] - d[g], x = b / 2 - f[u] / 2 + C, T = R0(v, x, B), R = o;
9495
9495
  t.modifiersData[i] = (e = {}, e[R] = T, e.centerOffset = T - x, e);
9496
9496
  }
9497
9497
  }
@@ -9525,7 +9525,7 @@ function m8(a, e) {
9525
9525
  };
9526
9526
  }
9527
9527
  function ua(a) {
9528
- var e, t = a.popper, i = a.popperRect, n = a.placement, l = a.variation, s = a.offsets, r = a.position, o = a.gpuAcceleration, u = a.adaptive, c = a.roundOffsets, d = a.isFixed, f = s.x, h = f === void 0 ? 0 : f, g = s.y, m = g === void 0 ? 0 : g, p = typeof c == "function" ? c({
9528
+ var e, t = a.popper, i = a.popperRect, n = a.placement, l = a.variation, s = a.offsets, r = a.position, o = a.gpuAcceleration, c = a.adaptive, u = a.roundOffsets, d = a.isFixed, f = s.x, h = f === void 0 ? 0 : f, g = s.y, m = g === void 0 ? 0 : g, p = typeof u == "function" ? u({
9529
9529
  x: h,
9530
9530
  y: m
9531
9531
  }) : {
@@ -9534,7 +9534,7 @@ function ua(a) {
9534
9534
  };
9535
9535
  h = p.x, m = p.y;
9536
9536
  var y = s.hasOwnProperty("x"), b = s.hasOwnProperty("y"), C = U1, v = j1, B = window;
9537
- if (u) {
9537
+ if (c) {
9538
9538
  var x = G0(t), T = "clientHeight", R = "clientWidth";
9539
9539
  if (x === Y1(t) && (x = T3(t), b3(x).position !== "static" && r === "absolute" && (T = "scrollHeight", R = "scrollWidth")), x = x, n === j1 || (n === U1 || n === X1) && l === F0) {
9540
9540
  v = Z1;
@@ -9555,7 +9555,7 @@ function ua(a) {
9555
9555
  }
9556
9556
  var j = Object.assign({
9557
9557
  position: r
9558
- }, u && v8), e1 = c === !0 ? m8({
9558
+ }, c && v8), e1 = u === !0 ? m8({
9559
9559
  x: h,
9560
9560
  y: m
9561
9561
  }, Y1(t)) : {
@@ -9569,7 +9569,7 @@ function ua(a) {
9569
9569
  return Object.assign({}, j, (e = {}, e[v] = b ? m + "px" : "", e[C] = y ? h + "px" : "", e.transform = "", e));
9570
9570
  }
9571
9571
  function g8(a) {
9572
- var e = a.state, t = a.options, i = t.gpuAcceleration, n = i === void 0 ? !0 : i, l = t.adaptive, s = l === void 0 ? !0 : l, r = t.roundOffsets, o = r === void 0 ? !0 : r, u = {
9572
+ var e = a.state, t = a.options, i = t.gpuAcceleration, n = i === void 0 ? !0 : i, l = t.adaptive, s = l === void 0 ? !0 : l, r = t.roundOffsets, o = r === void 0 ? !0 : r, c = {
9573
9573
  placement: r3(e.placement),
9574
9574
  variation: y0(e.placement),
9575
9575
  popper: e.elements.popper,
@@ -9577,12 +9577,12 @@ function g8(a) {
9577
9577
  gpuAcceleration: n,
9578
9578
  isFixed: e.options.strategy === "fixed"
9579
9579
  };
9580
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ua(Object.assign({}, u, {
9580
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ua(Object.assign({}, c, {
9581
9581
  offsets: e.modifiersData.popperOffsets,
9582
9582
  position: e.options.strategy,
9583
9583
  adaptive: s,
9584
9584
  roundOffsets: o
9585
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ua(Object.assign({}, u, {
9585
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ua(Object.assign({}, c, {
9586
9586
  offsets: e.modifiersData.arrow,
9587
9587
  position: "absolute",
9588
9588
  adaptive: !1,
@@ -9602,12 +9602,12 @@ var pe = {
9602
9602
  passive: !0
9603
9603
  };
9604
9604
  function y8(a) {
9605
- var e = a.state, t = a.instance, i = a.options, n = i.scroll, l = n === void 0 ? !0 : n, s = i.resize, r = s === void 0 ? !0 : s, o = Y1(e.elements.popper), u = [].concat(e.scrollParents.reference, e.scrollParents.popper);
9606
- return l && u.forEach(function(c) {
9607
- c.addEventListener("scroll", t.update, pe);
9605
+ var e = a.state, t = a.instance, i = a.options, n = i.scroll, l = n === void 0 ? !0 : n, s = i.resize, r = s === void 0 ? !0 : s, o = Y1(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
9606
+ return l && c.forEach(function(u) {
9607
+ u.addEventListener("scroll", t.update, pe);
9608
9608
  }), r && o.addEventListener("resize", t.update, pe), function() {
9609
- l && u.forEach(function(c) {
9610
- c.removeEventListener("scroll", t.update, pe);
9609
+ l && c.forEach(function(u) {
9610
+ u.removeEventListener("scroll", t.update, pe);
9611
9611
  }), r && o.removeEventListener("resize", t.update, pe);
9612
9612
  };
9613
9613
  }
@@ -9654,8 +9654,8 @@ function z8(a, e) {
9654
9654
  var t = Y1(a), i = T3(a), n = t.visualViewport, l = i.clientWidth, s = i.clientHeight, r = 0, o = 0;
9655
9655
  if (n) {
9656
9656
  l = n.width, s = n.height;
9657
- var u = qn();
9658
- (u || !u && e === "fixed") && (r = n.offsetLeft, o = n.offsetTop);
9657
+ var c = qn();
9658
+ (c || !c && e === "fixed") && (r = n.offsetLeft, o = n.offsetTop);
9659
9659
  }
9660
9660
  return {
9661
9661
  width: l,
@@ -9711,9 +9711,9 @@ function S8(a) {
9711
9711
  }) : [];
9712
9712
  }
9713
9713
  function x8(a, e, t, i) {
9714
- var n = e === "clippingParents" ? S8(a) : [].concat(e), l = [].concat(n, [t]), s = l[0], r = l.reduce(function(o, u) {
9715
- var c = ha(a, u, i);
9716
- return o.top = Y3(c.top, o.top), o.right = Ge(c.right, o.right), o.bottom = Ge(c.bottom, o.bottom), o.left = Y3(c.left, o.left), o;
9714
+ var n = e === "clippingParents" ? S8(a) : [].concat(e), l = [].concat(n, [t]), s = l[0], r = l.reduce(function(o, c) {
9715
+ var u = ha(a, c, i);
9716
+ return o.top = Y3(u.top, o.top), o.right = Ge(u.right, o.right), o.bottom = Ge(u.bottom, o.bottom), o.left = Y3(u.left, o.left), o;
9717
9717
  }, ha(a, s, i));
9718
9718
  return r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
9719
9719
  }
@@ -9750,15 +9750,15 @@ function $n(a) {
9750
9750
  y: e.y
9751
9751
  };
9752
9752
  }
9753
- var u = n ? _2(n) : null;
9754
- if (u != null) {
9755
- var c = u === "y" ? "height" : "width";
9753
+ var c = n ? _2(n) : null;
9754
+ if (c != null) {
9755
+ var u = c === "y" ? "height" : "width";
9756
9756
  switch (l) {
9757
9757
  case m0:
9758
- o[u] = o[u] - (e[c] / 2 - t[c] / 2);
9758
+ o[c] = o[c] - (e[u] / 2 - t[u] / 2);
9759
9759
  break;
9760
9760
  case F0:
9761
- o[u] = o[u] + (e[c] / 2 - t[c] / 2);
9761
+ o[c] = o[c] + (e[u] / 2 - t[u] / 2);
9762
9762
  break;
9763
9763
  }
9764
9764
  }
@@ -9766,7 +9766,7 @@ function $n(a) {
9766
9766
  }
9767
9767
  function j0(a, e) {
9768
9768
  e === void 0 && (e = {});
9769
- var t = e, i = t.placement, n = i === void 0 ? a.placement : i, l = t.strategy, s = l === void 0 ? a.strategy : l, r = t.boundary, o = r === void 0 ? Gc : r, u = t.rootBoundary, c = u === void 0 ? Wn : u, d = t.elementContext, f = d === void 0 ? k0 : d, h = t.altBoundary, g = h === void 0 ? !1 : h, m = t.padding, p = m === void 0 ? 0 : m, y = Jn(typeof p != "number" ? p : Zn(p, q0)), b = f === k0 ? _c : k0, C = a.rects.popper, v = a.elements[g ? b : f], B = x8(Z3(v) ? v : v.contextElement || T3(a.elements.popper), o, c, s), x = A0(a.elements.reference), T = $n({
9769
+ var t = e, i = t.placement, n = i === void 0 ? a.placement : i, l = t.strategy, s = l === void 0 ? a.strategy : l, r = t.boundary, o = r === void 0 ? Gc : r, c = t.rootBoundary, u = c === void 0 ? Wn : c, d = t.elementContext, f = d === void 0 ? k0 : d, h = t.altBoundary, g = h === void 0 ? !1 : h, m = t.padding, p = m === void 0 ? 0 : m, y = Jn(typeof p != "number" ? p : Zn(p, q0)), b = f === k0 ? _c : k0, C = a.rects.popper, v = a.elements[g ? b : f], B = x8(Z3(v) ? v : v.contextElement || T3(a.elements.popper), o, u, s), x = A0(a.elements.reference), T = $n({
9770
9770
  reference: x,
9771
9771
  element: C,
9772
9772
  placement: n
@@ -9787,10 +9787,10 @@ function j0(a, e) {
9787
9787
  }
9788
9788
  function k8(a, e) {
9789
9789
  e === void 0 && (e = {});
9790
- var t = e, i = t.placement, n = t.boundary, l = t.rootBoundary, s = t.padding, r = t.flipVariations, o = t.allowedAutoPlacements, u = o === void 0 ? Qn : o, c = y0(i), d = c ? r ? oa : oa.filter(function(g) {
9791
- return y0(g) === c;
9790
+ var t = e, i = t.placement, n = t.boundary, l = t.rootBoundary, s = t.padding, r = t.flipVariations, o = t.allowedAutoPlacements, c = o === void 0 ? Qn : o, u = y0(i), d = u ? r ? oa : oa.filter(function(g) {
9791
+ return y0(g) === u;
9792
9792
  }) : q0, f = d.filter(function(g) {
9793
- return u.indexOf(g) >= 0;
9793
+ return c.indexOf(g) >= 0;
9794
9794
  });
9795
9795
  f.length === 0 && (f = d);
9796
9796
  var h = f.reduce(function(g, m) {
@@ -9814,22 +9814,22 @@ function D8(a) {
9814
9814
  function I8(a) {
9815
9815
  var e = a.state, t = a.options, i = a.name;
9816
9816
  if (!e.modifiersData[i]._skip) {
9817
- for (var n = t.mainAxis, l = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !0 : s, o = t.fallbackPlacements, u = t.padding, c = t.boundary, d = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, g = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, p = e.options.placement, y = r3(p), b = y === p, C = o || (b || !g ? [ze(p)] : D8(p)), v = [p].concat(C).reduce(function(p1, g1) {
9817
+ for (var n = t.mainAxis, l = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !0 : s, o = t.fallbackPlacements, c = t.padding, u = t.boundary, d = t.rootBoundary, f = t.altBoundary, h = t.flipVariations, g = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, p = e.options.placement, y = r3(p), b = y === p, C = o || (b || !g ? [ze(p)] : D8(p)), v = [p].concat(C).reduce(function(p1, g1) {
9818
9818
  return p1.concat(r3(g1) === Y2 ? k8(e, {
9819
9819
  placement: g1,
9820
- boundary: c,
9820
+ boundary: u,
9821
9821
  rootBoundary: d,
9822
- padding: u,
9822
+ padding: c,
9823
9823
  flipVariations: g,
9824
9824
  allowedAutoPlacements: m
9825
9825
  }) : g1);
9826
9826
  }, []), B = e.rects.reference, x = e.rects.popper, T = /* @__PURE__ */ new Map(), R = !0, _ = v[0], O = 0; O < v.length; O++) {
9827
9827
  var j = v[O], e1 = r3(j), o1 = y0(j) === m0, L = [j1, Z1].indexOf(e1) >= 0, D = L ? "width" : "height", I = j0(e, {
9828
9828
  placement: j,
9829
- boundary: c,
9829
+ boundary: u,
9830
9830
  rootBoundary: d,
9831
9831
  altBoundary: f,
9832
- padding: u
9832
+ padding: c
9833
9833
  }), E = L ? o1 ? X1 : U1 : o1 ? Z1 : j1;
9834
9834
  B[D] > x[D] && (E = ze(E));
9835
9835
  var S = ze(E), H = [];
@@ -9890,14 +9890,14 @@ function B8(a) {
9890
9890
  elementContext: "reference"
9891
9891
  }), r = j0(e, {
9892
9892
  altBoundary: !0
9893
- }), o = fa(s, i), u = fa(r, n, l), c = pa(o), d = pa(u);
9893
+ }), o = fa(s, i), c = fa(r, n, l), u = pa(o), d = pa(c);
9894
9894
  e.modifiersData[t] = {
9895
9895
  referenceClippingOffsets: o,
9896
- popperEscapeOffsets: u,
9897
- isReferenceHidden: c,
9896
+ popperEscapeOffsets: c,
9897
+ isReferenceHidden: u,
9898
9898
  hasPopperEscaped: d
9899
9899
  }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
9900
- "data-popper-reference-hidden": c,
9900
+ "data-popper-reference-hidden": u,
9901
9901
  "data-popper-escaped": d
9902
9902
  });
9903
9903
  }
@@ -9921,10 +9921,10 @@ function T8(a, e, t) {
9921
9921
  };
9922
9922
  }
9923
9923
  function H8(a) {
9924
- var e = a.state, t = a.options, i = a.name, n = t.offset, l = n === void 0 ? [0, 0] : n, s = Qn.reduce(function(c, d) {
9925
- return c[d] = T8(d, e.rects, l), c;
9926
- }, {}), r = s[e.placement], o = r.x, u = r.y;
9927
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y += u), e.modifiersData[i] = s;
9924
+ var e = a.state, t = a.options, i = a.name, n = t.offset, l = n === void 0 ? [0, 0] : n, s = Qn.reduce(function(u, d) {
9925
+ return u[d] = T8(d, e.rects, l), u;
9926
+ }, {}), r = s[e.placement], o = r.x, c = r.y;
9927
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y += c), e.modifiersData[i] = s;
9928
9928
  }
9929
9929
  const L8 = {
9930
9930
  name: "offset",
@@ -9952,11 +9952,11 @@ function F8(a) {
9952
9952
  return a === "x" ? "y" : "x";
9953
9953
  }
9954
9954
  function j8(a) {
9955
- var e = a.state, t = a.options, i = a.name, n = t.mainAxis, l = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !1 : s, o = t.boundary, u = t.rootBoundary, c = t.altBoundary, d = t.padding, f = t.tether, h = f === void 0 ? !0 : f, g = t.tetherOffset, m = g === void 0 ? 0 : g, p = j0(e, {
9955
+ var e = a.state, t = a.options, i = a.name, n = t.mainAxis, l = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !1 : s, o = t.boundary, c = t.rootBoundary, u = t.altBoundary, d = t.padding, f = t.tether, h = f === void 0 ? !0 : f, g = t.tetherOffset, m = g === void 0 ? 0 : g, p = j0(e, {
9956
9956
  boundary: o,
9957
- rootBoundary: u,
9957
+ rootBoundary: c,
9958
9958
  padding: d,
9959
- altBoundary: c
9959
+ altBoundary: u
9960
9960
  }), y = r3(e.placement), b = y0(e.placement), C = !b, v = _2(y), B = F8(v), x = e.modifiersData.popperOffsets, T = e.rects.reference, R = e.rects.popper, _ = typeof m == "function" ? m(Object.assign({}, e.rects, {
9961
9961
  placement: e.placement
9962
9962
  })) : m, O = typeof _ == "number" ? {
@@ -10085,9 +10085,9 @@ function ma() {
10085
10085
  function J8(a) {
10086
10086
  a === void 0 && (a = {});
10087
10087
  var e = a, t = e.defaultModifiers, i = t === void 0 ? [] : t, n = e.defaultOptions, l = n === void 0 ? va : n;
10088
- return function(r, o, u) {
10089
- u === void 0 && (u = l);
10090
- var c = {
10088
+ return function(r, o, c) {
10089
+ c === void 0 && (c = l);
10090
+ var u = {
10091
10091
  placement: "bottom",
10092
10092
  orderedModifiers: [],
10093
10093
  options: Object.assign({}, va, l),
@@ -10099,15 +10099,15 @@ function J8(a) {
10099
10099
  attributes: {},
10100
10100
  styles: {}
10101
10101
  }, d = [], f = !1, h = {
10102
- state: c,
10102
+ state: u,
10103
10103
  setOptions: function(y) {
10104
- var b = typeof y == "function" ? y(c.options) : y;
10105
- m(), c.options = Object.assign({}, l, c.options, b), c.scrollParents = {
10104
+ var b = typeof y == "function" ? y(u.options) : y;
10105
+ m(), u.options = Object.assign({}, l, u.options, b), u.scrollParents = {
10106
10106
  reference: Z3(r) ? T0(r) : r.contextElement ? T0(r.contextElement) : [],
10107
10107
  popper: T0(o)
10108
10108
  };
10109
- var C = q8(_8([].concat(i, c.options.modifiers)));
10110
- return c.orderedModifiers = C.filter(function(v) {
10109
+ var C = q8(_8([].concat(i, u.options.modifiers)));
10110
+ return u.orderedModifiers = C.filter(function(v) {
10111
10111
  return v.enabled;
10112
10112
  }), g(), h.update();
10113
10113
  },
@@ -10118,26 +10118,26 @@ function J8(a) {
10118
10118
  // prefer the async Popper#update method
10119
10119
  forceUpdate: function() {
10120
10120
  if (!f) {
10121
- var y = c.elements, b = y.reference, C = y.popper;
10121
+ var y = u.elements, b = y.reference, C = y.popper;
10122
10122
  if (ma(b, C)) {
10123
- c.rects = {
10124
- reference: Q8(b, G0(C), c.options.strategy === "fixed"),
10123
+ u.rects = {
10124
+ reference: Q8(b, G0(C), u.options.strategy === "fixed"),
10125
10125
  popper: G2(C)
10126
- }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(O) {
10127
- return c.modifiersData[O.name] = Object.assign({}, O.data);
10126
+ }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(O) {
10127
+ return u.modifiersData[O.name] = Object.assign({}, O.data);
10128
10128
  });
10129
- for (var v = 0; v < c.orderedModifiers.length; v++) {
10130
- if (c.reset === !0) {
10131
- c.reset = !1, v = -1;
10129
+ for (var v = 0; v < u.orderedModifiers.length; v++) {
10130
+ if (u.reset === !0) {
10131
+ u.reset = !1, v = -1;
10132
10132
  continue;
10133
10133
  }
10134
- var B = c.orderedModifiers[v], x = B.fn, T = B.options, R = T === void 0 ? {} : T, _ = B.name;
10135
- typeof x == "function" && (c = x({
10136
- state: c,
10134
+ var B = u.orderedModifiers[v], x = B.fn, T = B.options, R = T === void 0 ? {} : T, _ = B.name;
10135
+ typeof x == "function" && (u = x({
10136
+ state: u,
10137
10137
  options: R,
10138
10138
  name: _,
10139
10139
  instance: h
10140
- }) || c);
10140
+ }) || u);
10141
10141
  }
10142
10142
  }
10143
10143
  }
@@ -10146,7 +10146,7 @@ function J8(a) {
10146
10146
  // not necessary (debounced to run at most once-per-tick)
10147
10147
  update: G8(function() {
10148
10148
  return new Promise(function(p) {
10149
- h.forceUpdate(), p(c);
10149
+ h.forceUpdate(), p(u);
10150
10150
  });
10151
10151
  }),
10152
10152
  destroy: function() {
@@ -10155,15 +10155,15 @@ function J8(a) {
10155
10155
  };
10156
10156
  if (!ma(r, o))
10157
10157
  return h;
10158
- h.setOptions(u).then(function(p) {
10159
- !f && u.onFirstUpdate && u.onFirstUpdate(p);
10158
+ h.setOptions(c).then(function(p) {
10159
+ !f && c.onFirstUpdate && c.onFirstUpdate(p);
10160
10160
  });
10161
10161
  function g() {
10162
- c.orderedModifiers.forEach(function(p) {
10162
+ u.orderedModifiers.forEach(function(p) {
10163
10163
  var y = p.name, b = p.options, C = b === void 0 ? {} : b, v = p.effect;
10164
10164
  if (typeof v == "function") {
10165
10165
  var B = v({
10166
- state: c,
10166
+ state: u,
10167
10167
  name: y,
10168
10168
  instance: h,
10169
10169
  options: C
@@ -10284,10 +10284,10 @@ function u9(a) {
10284
10284
  function d9(a, e) {
10285
10285
  var t = e.clientX, i = e.clientY;
10286
10286
  return a.every(function(n) {
10287
- var l = n.popperRect, s = n.popperState, r = n.props, o = r.interactiveBorder, u = l9(s.placement), c = s.modifiersData.offset;
10288
- if (!c)
10287
+ var l = n.popperRect, s = n.popperState, r = n.props, o = r.interactiveBorder, c = l9(s.placement), u = s.modifiersData.offset;
10288
+ if (!u)
10289
10289
  return !0;
10290
- var d = u === "bottom" ? c.top.y : 0, f = u === "top" ? c.bottom.y : 0, h = u === "right" ? c.left.x : 0, g = u === "left" ? c.right.x : 0, m = l.top - i + d > o, p = i - l.bottom - f > o, y = l.left - t + h > o, b = t - l.right - g > o;
10290
+ var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, h = c === "right" ? u.left.x : 0, g = c === "left" ? u.right.x : 0, m = l.top - i + d > o, p = i - l.bottom - f > o, y = l.left - t + h > o, b = t - l.right - g > o;
10291
10291
  return m || p || y || b;
10292
10292
  });
10293
10293
  }
@@ -10535,8 +10535,8 @@ function u4(a) {
10535
10535
  var i = H0();
10536
10536
  i.className = e4, i.setAttribute("data-state", "hidden"), Sa(i, a.props), e.appendChild(t), t.appendChild(i), n(a.props, a.props);
10537
10537
  function n(l, s) {
10538
- var r = s2(e), o = r.box, u = r.content, c = r.arrow;
10539
- s.theme ? o.setAttribute("data-theme", s.theme) : o.removeAttribute("data-theme"), typeof s.animation == "string" ? o.setAttribute("data-animation", s.animation) : o.removeAttribute("data-animation"), s.inertia ? o.setAttribute("data-inertia", "") : o.removeAttribute("data-inertia"), o.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? o.setAttribute("role", s.role) : o.removeAttribute("role"), (l.content !== s.content || l.allowHTML !== s.allowHTML) && Sa(u, a.props), s.arrow ? c ? l.arrow !== s.arrow && (o.removeChild(c), o.appendChild(Ma(s.arrow))) : o.appendChild(Ma(s.arrow)) : c && o.removeChild(c);
10538
+ var r = s2(e), o = r.box, c = r.content, u = r.arrow;
10539
+ s.theme ? o.setAttribute("data-theme", s.theme) : o.removeAttribute("data-theme"), typeof s.animation == "string" ? o.setAttribute("data-animation", s.animation) : o.removeAttribute("data-animation"), s.inertia ? o.setAttribute("data-inertia", "") : o.removeAttribute("data-inertia"), o.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? o.setAttribute("role", s.role) : o.removeAttribute("role"), (l.content !== s.content || l.allowHTML !== s.allowHTML) && Sa(c, a.props), s.arrow ? u ? l.arrow !== s.arrow && (o.removeChild(u), o.appendChild(Ma(s.arrow))) : o.appendChild(Ma(s.arrow)) : u && o.removeChild(u);
10540
10540
  }
10541
10541
  return {
10542
10542
  popper: e,
@@ -10546,7 +10546,7 @@ function u4(a) {
10546
10546
  u4.$$tippy = !0;
10547
10547
  var M9 = 1, ve = [], Ht = [];
10548
10548
  function S9(a, e) {
10549
- var t = Ca(a, Object.assign({}, P1, o4(ya(e)))), i, n, l, s = !1, r = !1, o = !1, u = !1, c, d, f, h = [], g = ga(Z0, t.interactiveDebounce), m, p = M9++, y = null, b = n9(t.plugins), C = {
10549
+ var t = Ca(a, Object.assign({}, P1, o4(ya(e)))), i, n, l, s = !1, r = !1, o = !1, c = !1, u, d, f, h = [], g = ga(Z0, t.interactiveDebounce), m, p = M9++, y = null, b = n9(t.plugins), C = {
10550
10550
  // Is the instance currently enabled?
10551
10551
  isEnabled: !0,
10552
10552
  // Is the tippy currently showing and not transitioning out?
@@ -10612,7 +10612,7 @@ function S9(a, e) {
10612
10612
  return s2(x);
10613
10613
  }
10614
10614
  function I(M) {
10615
- return v.state.isMounted && !v.state.isVisible || l3.isTouch || c && c.type === "focus" ? 0 : Bt(v.props.delay, M ? 0 : 1, P1.delay);
10615
+ return v.state.isMounted && !v.state.isVisible || l3.isTouch || u && u.type === "focus" ? 0 : Bt(v.props.delay, M ? 0 : 1, P1.delay);
10616
10616
  }
10617
10617
  function E(M) {
10618
10618
  M === void 0 && (M = !1), x.style.pointerEvents = v.props.interactive && !M ? "" : "none", x.style.zIndex = "" + v.props.zIndex;
@@ -10742,8 +10742,8 @@ function S9(a, e) {
10742
10742
  function i3(M) {
10743
10743
  var N, q = !1;
10744
10744
  if (!(!v.state.isEnabled || C0(M) || r)) {
10745
- var u1 = ((N = c) == null ? void 0 : N.type) === "focus";
10746
- c = M, m = M.currentTarget, U(), !v.state.isVisible && r9(M) && ve.forEach(function(s1) {
10745
+ var u1 = ((N = u) == null ? void 0 : N.type) === "focus";
10746
+ u = M, m = M.currentTarget, U(), !v.state.isVisible && r9(M) && ve.forEach(function(s1) {
10747
10747
  return s1(M);
10748
10748
  }), M.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || s) && v.props.hideOnClick !== !1 && v.state.isVisible ? q = !0 : M0(M), M.type === "click" && (s = !q), q && !u1 && H3(M);
10749
10749
  }
@@ -10909,8 +10909,8 @@ function S9(a, e) {
10909
10909
  }
10910
10910
  f = function() {
10911
10911
  var L3;
10912
- if (!(!v.state.isVisible || u)) {
10913
- if (u = !0, x.offsetHeight, x.style.transition = v.props.moveTransition, e1() && v.props.animation) {
10912
+ if (!(!v.state.isVisible || c)) {
10913
+ if (c = !0, x.offsetHeight, x.style.transition = v.props.moveTransition, e1() && v.props.animation) {
10914
10914
  var ft = D(), le = ft.box, i0 = ft.content;
10915
10915
  Rt([le, i0], s1), ba([le, i0], "visible");
10916
10916
  }
@@ -10925,7 +10925,7 @@ function S9(a, e) {
10925
10925
  process.env.NODE_ENV !== "production" && f3(v.state.isDestroyed, n0("hide"));
10926
10926
  var M = !v.state.isVisible, N = v.state.isDestroyed, q = !v.state.isEnabled, u1 = Bt(v.props.duration, 1, P1.duration);
10927
10927
  if (!(M || N || q) && (S("onHide", [v], !1), v.props.onHide(v) !== !1)) {
10928
- if (v.state.isVisible = !1, v.state.isShown = !1, u = !1, s = !1, e1() && (x.style.visibility = "hidden"), X(), k1(), E(!0), e1()) {
10928
+ if (v.state.isVisible = !1, v.state.isShown = !1, c = !1, s = !1, e1() && (x.style.visibility = "hidden"), X(), k1(), E(!0), e1()) {
10929
10929
  var s1 = D(), H1 = s1.box, G1 = s1.content;
10930
10930
  v.props.animation && (Rt([H1, G1], u1), ba([H1, G1], "hidden"));
10931
10931
  }
@@ -10962,9 +10962,9 @@ function _0(a, e) {
10962
10962
  `, `1) content: element.innerHTML
10963
10963
  `, "2) content: () => element.cloneNode(true)"].join(" "));
10964
10964
  }
10965
- var r = n.reduce(function(o, u) {
10966
- var c = u && S9(u, i);
10967
- return c && o.push(c), o;
10965
+ var r = n.reduce(function(o, c) {
10966
+ var u = c && S9(c, i);
10967
+ return u && o.push(u), o;
10968
10968
  }, []);
10969
10969
  return U0(a) ? r[0] : r;
10970
10970
  }
@@ -11021,12 +11021,12 @@ const Lh = /* @__PURE__ */ l1({
11021
11021
  start: d.event.start?.toISOString() || "",
11022
11022
  end: d.event.end?.toISOString() || ""
11023
11023
  });
11024
- }, u = (d) => {
11024
+ }, c = (d) => {
11025
11025
  i("onChangeView", {
11026
11026
  start: d.startStr,
11027
11027
  end: d.endStr
11028
11028
  });
11029
- }, c = P(() => ({
11029
+ }, u = P(() => ({
11030
11030
  plugins: [F5, rc, Yc],
11031
11031
  initialView: n.value,
11032
11032
  locale: qc,
@@ -11034,7 +11034,7 @@ const Lh = /* @__PURE__ */ l1({
11034
11034
  select: r,
11035
11035
  eventClick: o,
11036
11036
  expandRows: !1,
11037
- datesSet: u,
11037
+ datesSet: c,
11038
11038
  allDaySlot: !1,
11039
11039
  titleFormat: { month: "long", day: "numeric", year: "numeric" },
11040
11040
  views: {
@@ -11078,7 +11078,7 @@ const Lh = /* @__PURE__ */ l1({
11078
11078
  },
11079
11079
  events: t.events
11080
11080
  }));
11081
- return (d, f) => (w(), i1(x1(o5), { options: c.value }, null, 8, ["options"]));
11081
+ return (d, f) => (w(), i1(S1(o5), { options: u.value }, null, 8, ["options"]));
11082
11082
  }
11083
11083
  }), x9 = ["disabled"], k9 = ["innerHTML"], r2 = /* @__PURE__ */ l1({
11084
11084
  __name: "CheckboxBase",
@@ -11099,7 +11099,7 @@ const Lh = /* @__PURE__ */ l1({
11099
11099
  const e = a, t = I4(a, "modelValue"), i = Z(e.indeterminate ? "minus" : "check"), n = (l) => {
11100
11100
  l.target instanceof HTMLElement && (l.target.className === "no-click" || l.target.parentNode instanceof HTMLElement && l.target.parentNode.className.includes("no-click")) && l.preventDefault();
11101
11101
  };
11102
- return S1(
11102
+ return x1(
11103
11103
  () => e.indeterminate,
11104
11104
  (l) => {
11105
11105
  i.value = l ? "minus" : "check";
@@ -11174,7 +11174,7 @@ function H9(a, e = !0, t) {
11174
11174
  T9() ? X3(a, t) : e ? a() : m3(a);
11175
11175
  }
11176
11176
  function h4(a, e, t) {
11177
- return S1(
11177
+ return x1(
11178
11178
  a,
11179
11179
  e,
11180
11180
  {
@@ -11192,28 +11192,28 @@ function b0(a) {
11192
11192
  function xa(...a) {
11193
11193
  const e = [], t = () => {
11194
11194
  e.forEach((r) => r()), e.length = 0;
11195
- }, i = (r, o, u, c) => (r.addEventListener(o, u, c), () => r.removeEventListener(o, u, c)), n = P(() => {
11195
+ }, i = (r, o, c, u) => (r.addEventListener(o, c, u), () => r.removeEventListener(o, c, u)), n = P(() => {
11196
11196
  const r = q3(I1(a[0])).filter((o) => o != null);
11197
11197
  return r.every((o) => typeof o != "string") ? r : void 0;
11198
11198
  }), l = h4(
11199
11199
  () => {
11200
11200
  var r, o;
11201
11201
  return [
11202
- (o = (r = n.value) == null ? void 0 : r.map((u) => b0(u))) != null ? o : [t6].filter((u) => u != null),
11202
+ (o = (r = n.value) == null ? void 0 : r.map((c) => b0(c))) != null ? o : [t6].filter((c) => c != null),
11203
11203
  q3(I1(n.value ? a[1] : a[0])),
11204
- q3(x1(n.value ? a[2] : a[1])),
11204
+ q3(S1(n.value ? a[2] : a[1])),
11205
11205
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
11206
11206
  I1(n.value ? a[3] : a[2])
11207
11207
  ];
11208
11208
  },
11209
- ([r, o, u, c]) => {
11210
- if (t(), !r?.length || !o?.length || !u?.length)
11209
+ ([r, o, c, u]) => {
11210
+ if (t(), !r?.length || !o?.length || !c?.length)
11211
11211
  return;
11212
- const d = d4(c) ? { ...c } : c;
11212
+ const d = d4(u) ? { ...u } : u;
11213
11213
  e.push(
11214
11214
  ...r.flatMap(
11215
11215
  (f) => o.flatMap(
11216
- (h) => u.map((g) => i(f, h, g, d))
11216
+ (h) => c.map((g) => i(f, h, g, d))
11217
11217
  )
11218
11218
  )
11219
11219
  );
@@ -11244,19 +11244,19 @@ function O9(a, e, t = {}) {
11244
11244
  }, o = P(() => {
11245
11245
  const f = I1(a), h = q3(f).map(b0).filter(I9);
11246
11246
  return new Set(h);
11247
- }), u = S1(
11247
+ }), c = x1(
11248
11248
  o,
11249
11249
  (f) => {
11250
11250
  r(), s.value && f.size && (l = new MutationObserver(e), f.forEach((h) => l.observe(h, n)));
11251
11251
  },
11252
11252
  { immediate: !0, flush: "post" }
11253
- ), c = () => l?.takeRecords(), d = () => {
11254
- u(), r();
11253
+ ), u = () => l?.takeRecords(), d = () => {
11254
+ c(), r();
11255
11255
  };
11256
11256
  return J0(d), {
11257
11257
  isSupported: s,
11258
11258
  stop: d,
11259
- takeRecords: c
11259
+ takeRecords: u
11260
11260
  };
11261
11261
  }
11262
11262
  function N9(a, e, t = {}) {
@@ -11267,7 +11267,7 @@ function N9(a, e, t = {}) {
11267
11267
  }, o = P(() => {
11268
11268
  const d = I1(a);
11269
11269
  return Array.isArray(d) ? d.map((f) => b0(f)) : [b0(d)];
11270
- }), u = S1(
11270
+ }), c = x1(
11271
11271
  o,
11272
11272
  (d) => {
11273
11273
  if (r(), s.value && i) {
@@ -11277,12 +11277,12 @@ function N9(a, e, t = {}) {
11277
11277
  }
11278
11278
  },
11279
11279
  { immediate: !0, flush: "post" }
11280
- ), c = () => {
11281
- r(), u();
11280
+ ), u = () => {
11281
+ r(), c();
11282
11282
  };
11283
- return J0(c), {
11283
+ return J0(u), {
11284
11284
  isSupported: s,
11285
- stop: c
11285
+ stop: u
11286
11286
  };
11287
11287
  }
11288
11288
  function ka(a, e = {}) {
@@ -11292,28 +11292,28 @@ function ka(a, e = {}) {
11292
11292
  windowScroll: n = !0,
11293
11293
  immediate: l = !0,
11294
11294
  updateTiming: s = "sync"
11295
- } = e, r = $1(0), o = $1(0), u = $1(0), c = $1(0), d = $1(0), f = $1(0), h = $1(0), g = $1(0);
11295
+ } = e, r = $1(0), o = $1(0), c = $1(0), u = $1(0), d = $1(0), f = $1(0), h = $1(0), g = $1(0);
11296
11296
  function m() {
11297
11297
  const y = b0(a);
11298
11298
  if (!y) {
11299
- t && (r.value = 0, o.value = 0, u.value = 0, c.value = 0, d.value = 0, f.value = 0, h.value = 0, g.value = 0);
11299
+ t && (r.value = 0, o.value = 0, c.value = 0, u.value = 0, d.value = 0, f.value = 0, h.value = 0, g.value = 0);
11300
11300
  return;
11301
11301
  }
11302
11302
  const b = y.getBoundingClientRect();
11303
- r.value = b.height, o.value = b.bottom, u.value = b.left, c.value = b.right, d.value = b.top, f.value = b.width, h.value = b.x, g.value = b.y;
11303
+ r.value = b.height, o.value = b.bottom, c.value = b.left, u.value = b.right, d.value = b.top, f.value = b.width, h.value = b.x, g.value = b.y;
11304
11304
  }
11305
11305
  function p() {
11306
11306
  s === "sync" ? m() : s === "next-frame" && requestAnimationFrame(() => m());
11307
11307
  }
11308
- return N9(a, p), S1(() => b0(a), (y) => !y && p()), O9(a, p, {
11308
+ return N9(a, p), x1(() => b0(a), (y) => !y && p()), O9(a, p, {
11309
11309
  attributeFilter: ["style", "class"]
11310
11310
  }), n && xa("scroll", p, { capture: !0, passive: !0 }), i && xa("resize", p, { passive: !0 }), H9(() => {
11311
11311
  l && p();
11312
11312
  }), {
11313
11313
  height: r,
11314
11314
  bottom: o,
11315
- left: u,
11316
- right: c,
11315
+ left: c,
11316
+ right: u,
11317
11317
  top: d,
11318
11318
  width: f,
11319
11319
  x: h,
@@ -11330,28 +11330,28 @@ function D0(a) {
11330
11330
  function Ce(...a) {
11331
11331
  const e = [], t = () => {
11332
11332
  e.forEach((r) => r()), e.length = 0;
11333
- }, i = (r, o, u, c) => (r.addEventListener(o, u, c), () => r.removeEventListener(o, u, c)), n = P(() => {
11333
+ }, i = (r, o, c, u) => (r.addEventListener(o, c, u), () => r.removeEventListener(o, c, u)), n = P(() => {
11334
11334
  const r = q3(I1(a[0])).filter((o) => o != null);
11335
11335
  return r.every((o) => typeof o != "string") ? r : void 0;
11336
11336
  }), l = h4(
11337
11337
  () => {
11338
11338
  var r, o;
11339
11339
  return [
11340
- (o = (r = n.value) == null ? void 0 : r.map((u) => D0(u))) != null ? o : [p4].filter((u) => u != null),
11340
+ (o = (r = n.value) == null ? void 0 : r.map((c) => D0(c))) != null ? o : [p4].filter((c) => c != null),
11341
11341
  q3(I1(n.value ? a[1] : a[0])),
11342
- q3(x1(n.value ? a[2] : a[1])),
11342
+ q3(S1(n.value ? a[2] : a[1])),
11343
11343
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
11344
11344
  I1(n.value ? a[3] : a[2])
11345
11345
  ];
11346
11346
  },
11347
- ([r, o, u, c]) => {
11348
- if (t(), !r?.length || !o?.length || !u?.length)
11347
+ ([r, o, c, u]) => {
11348
+ if (t(), !r?.length || !o?.length || !c?.length)
11349
11349
  return;
11350
- const d = d4(c) ? { ...c } : c;
11350
+ const d = d4(u) ? { ...u } : u;
11351
11351
  e.push(
11352
11352
  ...r.flatMap(
11353
11353
  (f) => o.flatMap(
11354
- (h) => u.map((g) => i(f, h, g, d))
11354
+ (h) => c.map((g) => i(f, h, g, d))
11355
11355
  )
11356
11356
  )
11357
11357
  );
@@ -11373,7 +11373,7 @@ function Ia(a, e, t = {}) {
11373
11373
  Array.from(i.document.body.children).forEach((y) => y.addEventListener("click", U3, p)), i.document.documentElement.addEventListener("click", U3, p);
11374
11374
  }
11375
11375
  let o = !0;
11376
- const u = (p) => I1(n).some((y) => {
11376
+ const c = (p) => I1(n).some((y) => {
11377
11377
  if (typeof y == "string")
11378
11378
  return Array.from(i.document.querySelectorAll(y)).some((b) => b === p.target || p.composedPath().includes(b));
11379
11379
  {
@@ -11381,7 +11381,7 @@ function Ia(a, e, t = {}) {
11381
11381
  return b && (p.target === b || p.composedPath().includes(b));
11382
11382
  }
11383
11383
  });
11384
- function c(p) {
11384
+ function u(p) {
11385
11385
  const y = I1(p);
11386
11386
  return y && y.$.subTree.shapeFlag === 16;
11387
11387
  }
@@ -11391,8 +11391,8 @@ function Ia(a, e, t = {}) {
11391
11391
  }
11392
11392
  const f = (p) => {
11393
11393
  const y = D0(a);
11394
- if (p.target != null && !(!(y instanceof Element) && c(a) && d(a, p)) && !(!y || y === p.target || p.composedPath().includes(y))) {
11395
- if ("detail" in p && p.detail === 0 && (o = !u(p)), !o) {
11394
+ if (p.target != null && !(!(y instanceof Element) && u(a) && d(a, p)) && !(!y || y === p.target || p.composedPath().includes(y))) {
11395
+ if ("detail" in p && p.detail === 0 && (o = !c(p)), !o) {
11396
11396
  o = !0;
11397
11397
  return;
11398
11398
  }
@@ -11408,7 +11408,7 @@ function Ia(a, e, t = {}) {
11408
11408
  }, { passive: !0, capture: l }),
11409
11409
  Ce(i, "pointerdown", (p) => {
11410
11410
  const y = D0(a);
11411
- o = !u(p) && !!(y && !p.composedPath().includes(y));
11411
+ o = !c(p) && !!(y && !p.composedPath().includes(y));
11412
11412
  }, { passive: !0 }),
11413
11413
  s && Ce(i, "blur", (p) => {
11414
11414
  setTimeout(() => {
@@ -11465,14 +11465,14 @@ const Nt = /* @__PURE__ */ new WeakMap();
11465
11465
  function U9(a, e = !1) {
11466
11466
  const t = $1(e);
11467
11467
  let i = null, n = "";
11468
- S1(R9(a), (r) => {
11468
+ x1(R9(a), (r) => {
11469
11469
  const o = Ot(I1(r));
11470
11470
  if (o) {
11471
- const u = o;
11472
- if (Nt.get(u) || Nt.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden")
11471
+ const c = o;
11472
+ if (Nt.get(c) || Nt.set(c, c.style.overflow), c.style.overflow !== "hidden" && (n = c.style.overflow), c.style.overflow === "hidden")
11473
11473
  return t.value = !0;
11474
11474
  if (t.value)
11475
- return u.style.overflow = "hidden";
11475
+ return c.style.overflow = "hidden";
11476
11476
  }
11477
11477
  }, {
11478
11478
  immediate: !0
@@ -11508,7 +11508,7 @@ function K9() {
11508
11508
  return;
11509
11509
  a = !0;
11510
11510
  const n = U9(t, i.value);
11511
- S1(e, (l) => n.value = l);
11511
+ x1(e, (l) => n.value = l);
11512
11512
  };
11513
11513
  }
11514
11514
  K9();
@@ -11527,10 +11527,10 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
11527
11527
  setup(a, { emit: e }) {
11528
11528
  const t = a, i = e, n = Z(!1), l = Ve("contentWrapper"), s = Ve("menuContainer"), r = Z({}), o = () => {
11529
11529
  n.value && (n.value = !1, i("close"));
11530
- }, u = [
11530
+ }, c = [
11531
11531
  o,
11532
11532
  { ignore: [s] }
11533
- ], c = () => {
11533
+ ], u = () => {
11534
11534
  if (n.value) {
11535
11535
  o();
11536
11536
  return;
@@ -11573,7 +11573,7 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
11573
11573
  const p = l.value;
11574
11574
  p && m.target instanceof Node && p.contains(m.target) || o();
11575
11575
  }, h = () => d();
11576
- S1(n, (m) => {
11576
+ x1(n, (m) => {
11577
11577
  m ? (window.addEventListener("scroll", f, !0), window.addEventListener("resize", h)) : (window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", h));
11578
11578
  }), u2(() => {
11579
11579
  window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", h);
@@ -11583,7 +11583,7 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
11583
11583
  V("div", P9, [
11584
11584
  V("div", {
11585
11585
  ref: "menuContainer",
11586
- onClick: c
11586
+ onClick: u
11587
11587
  }, [
11588
11588
  _1(m.$slots, "default")
11589
11589
  ], 512),
@@ -11603,7 +11603,7 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
11603
11603
  }, Y(y.label), 9, Q9))), 128))
11604
11604
  ])) : m.$slots.content ? _1(m.$slots, "content", { key: 1 }) : F("", !0)
11605
11605
  ], 6)), [
11606
- [x1(F9), u]
11606
+ [S1(F9), c]
11607
11607
  ]) : F("", !0)
11608
11608
  ])
11609
11609
  ]));
@@ -11663,10 +11663,10 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
11663
11663
  setup(a) {
11664
11664
  const e = a, t = Z(!1), i = Z({}), n = Z(null), l = Z(null), s = Z(!1);
11665
11665
  let r = null;
11666
- const o = Qa(), u = P(() => {
11666
+ const o = Qa(), c = P(() => {
11667
11667
  const h = o.content?.();
11668
11668
  return h && h?.length > 0 && h[0].children.length > 0 ? "visible" : "hidden";
11669
- }), c = async () => {
11669
+ }), u = async () => {
11670
11670
  s.value = !0, t.value = !0, await m3(), f();
11671
11671
  }, d = () => {
11672
11672
  if (s.value = !1, !e.removeDelay) {
@@ -11698,14 +11698,14 @@ const P9 = { class: "flyout-menu-container" }, W9 = {
11698
11698
  ...C,
11699
11699
  position: "absolute",
11700
11700
  zIndex: "9999",
11701
- visibility: u.value,
11701
+ visibility: c.value,
11702
11702
  ...e.style
11703
11703
  };
11704
11704
  };
11705
11705
  return (h, g) => (w(), k(h1, null, [
11706
11706
  V("div", {
11707
11707
  class: "tooltip-container",
11708
- onMouseenter: c,
11708
+ onMouseenter: u,
11709
11709
  onMouseleave: d
11710
11710
  }, [
11711
11711
  V("div", {
@@ -11787,9 +11787,9 @@ function Je(a, e) {
11787
11787
  const r = e instanceof RegExp, o = a instanceof RegExp;
11788
11788
  if (r && o) return e.toString() == a.toString();
11789
11789
  if (r != o) return !1;
11790
- const u = Object.keys(e);
11791
- for (n = 0; n < u.length; n++) if (!Object.prototype.hasOwnProperty.call(a, u[n])) return !1;
11792
- for (n = 0; n < u.length; n++) if (!Je(a[u[n]], e[u[n]])) return !1;
11790
+ const c = Object.keys(e);
11791
+ for (n = 0; n < c.length; n++) if (!Object.prototype.hasOwnProperty.call(a, c[n])) return !1;
11792
+ for (n = 0; n < c.length; n++) if (!Je(a[c[n]], e[c[n]])) return !1;
11793
11793
  return !0;
11794
11794
  } else if (e && a && typeof e == "function" && typeof a == "function")
11795
11795
  return e.toString() === a.toString();
@@ -12459,17 +12459,17 @@ class V1 {
12459
12459
  const o = this.state;
12460
12460
  if (this.overwrite === !0) {
12461
12461
  s = i.state;
12462
- for (let c = 0; c < l.rawInserted.length; ++c)
12462
+ for (let u = 0; u < l.rawInserted.length; ++u)
12463
12463
  i.unshift(this.displayValue.length - l.tailShift);
12464
12464
  }
12465
- let u = this.appendTail(i);
12466
- if (r = u.rawInserted.length === i.toString().length, !(r && u.inserted) && this.overwrite === "shift") {
12465
+ let c = this.appendTail(i);
12466
+ if (r = c.rawInserted.length === i.toString().length, !(r && c.inserted) && this.overwrite === "shift") {
12467
12467
  this.state = o, s = i.state;
12468
- for (let c = 0; c < l.rawInserted.length; ++c)
12468
+ for (let u = 0; u < l.rawInserted.length; ++u)
12469
12469
  i.shift();
12470
- u = this.appendTail(i), r = u.rawInserted.length === i.toString().length;
12470
+ c = this.appendTail(i), r = c.rawInserted.length === i.toString().length;
12471
12471
  }
12472
- r && u.inserted && (this.state = o);
12472
+ r && c.inserted && (this.state = o);
12473
12473
  }
12474
12474
  r || (l = new $(), this.state = n, i && s && (i.state = s));
12475
12475
  }
@@ -12537,16 +12537,16 @@ class V1 {
12537
12537
  input: !0
12538
12538
  });
12539
12539
  const s = e + t, r = this.extractTail(s), o = this.eager === !0 || this.eager === "remove";
12540
- let u;
12541
- o && (n = Z9(n), u = this.extractInput(0, s, {
12540
+ let c;
12541
+ o && (n = Z9(n), c = this.extractInput(0, s, {
12542
12542
  raw: !0
12543
12543
  }));
12544
- let c = e;
12544
+ let u = e;
12545
12545
  const d = new $();
12546
- if (n !== K.NONE && (c = this.nearestInputPos(e, t > 1 && e !== 0 && !o ? K.NONE : n), d.tailShift = c - e), d.aggregate(this.remove(c)), o && n !== K.NONE && u === this.rawInputValue)
12546
+ if (n !== K.NONE && (u = this.nearestInputPos(e, t > 1 && e !== 0 && !o ? K.NONE : n), d.tailShift = u - e), d.aggregate(this.remove(u)), o && n !== K.NONE && c === this.rawInputValue)
12547
12547
  if (n === K.FORCE_LEFT) {
12548
12548
  let f;
12549
- for (; u === this.rawInputValue && (f = this.displayValue.length); )
12549
+ for (; c === this.rawInputValue && (f = this.displayValue.length); )
12550
12550
  d.aggregate(new $({
12551
12551
  tailShift: -1
12552
12552
  })).aggregate(this.remove(f - 1));
@@ -12609,8 +12609,8 @@ class P3 {
12609
12609
  e._stops.indexOf(s) >= 0) && t.aggregate(e._appendPlaceholder(s)), r = n instanceof P3 && e._blocks[s]), r) {
12610
12610
  const o = r.appendTail(n);
12611
12611
  t.aggregate(o);
12612
- const u = n.toString().slice(o.rawInserted.length);
12613
- u && t.aggregate(e.append(u, {
12612
+ const c = n.toString().slice(o.rawInserted.length);
12613
+ c && t.aggregate(e.append(c, {
12614
12614
  tail: !0
12615
12615
  }));
12616
12616
  } else
@@ -13033,9 +13033,9 @@ class B1 extends V1 {
13033
13033
  let i = !1, n = !1;
13034
13034
  for (let l = 0; l < t.length; ++l) {
13035
13035
  if (this.blocks) {
13036
- const u = t.slice(l), c = Object.keys(this.blocks).filter((f) => u.indexOf(f) === 0);
13037
- c.sort((f, h) => h.length - f.length);
13038
- const d = c[0];
13036
+ const c = t.slice(l), u = Object.keys(this.blocks).filter((f) => c.indexOf(f) === 0);
13037
+ u.sort((f, h) => h.length - f.length);
13038
+ const d = u[0];
13039
13039
  if (d) {
13040
13040
  const {
13041
13041
  expose: f,
@@ -13249,8 +13249,8 @@ class B1 extends V1 {
13249
13249
  if (n) {
13250
13250
  const l = this._mapPosToBlock(t), s = l && n.index === l.index, r = n.offset, o = l && s ? l.offset : this._blocks[n.index].displayValue.length;
13251
13251
  if (i(this._blocks[n.index], n.index, r, o), l && !s) {
13252
- for (let u = n.index + 1; u < l.index; ++u)
13253
- i(this._blocks[u], u, 0, this._blocks[u].displayValue.length);
13252
+ for (let c = n.index + 1; c < l.index; ++c)
13253
+ i(this._blocks[c], c, 0, this._blocks[c].displayValue.length);
13254
13254
  i(this._blocks[l.index], l.index, 0, l.offset);
13255
13255
  }
13256
13256
  }
@@ -13337,9 +13337,9 @@ class Me extends B1 {
13337
13337
  } = e;
13338
13338
  this.to = t, this.from = i, this.maxLength = Math.max(String(t).length, n), this.autofix = l;
13339
13339
  const r = String(this.from).padStart(this.maxLength, "0"), o = String(this.to).padStart(this.maxLength, "0");
13340
- let u = 0;
13341
- for (; u < o.length && o[u] === r[u]; ) ++u;
13342
- s.mask = o.slice(0, u).replace(/0/g, "\\0") + "0".repeat(this.maxLength - u), super._update(s);
13340
+ let c = 0;
13341
+ for (; c < o.length && o[c] === r[c]; ) ++c;
13342
+ s.mask = o.slice(0, c).replace(/0/g, "\\0") + "0".repeat(this.maxLength - c), super._update(s);
13343
13343
  }
13344
13344
  get isComplete() {
13345
13345
  return super.isComplete && !!this.value;
@@ -13515,15 +13515,15 @@ class ut extends V1 {
13515
13515
  }
13516
13516
  _applyDispatch(e, t, i) {
13517
13517
  e === void 0 && (e = ""), t === void 0 && (t = {}), i === void 0 && (i = "");
13518
- const n = t.tail && t._beforeTailState != null ? t._beforeTailState._value : this.value, l = this.rawInputValue, s = t.tail && t._beforeTailState != null ? t._beforeTailState._rawInputValue : l, r = l.slice(s.length), o = this.currentMask, u = new $(), c = o?.state;
13518
+ const n = t.tail && t._beforeTailState != null ? t._beforeTailState._value : this.value, l = this.rawInputValue, s = t.tail && t._beforeTailState != null ? t._beforeTailState._rawInputValue : l, r = l.slice(s.length), o = this.currentMask, c = new $(), u = o?.state;
13519
13519
  return this.currentMask = this.doDispatch(e, {
13520
13520
  ...t
13521
13521
  }, i), this.currentMask && (this.currentMask !== o ? (this.currentMask.reset(), s && (this.currentMask.append(s, {
13522
13522
  raw: !0
13523
- }), u.tailShift = this.currentMask.value.length - n.length), r && (u.tailShift += this.currentMask.append(r, {
13523
+ }), c.tailShift = this.currentMask.value.length - n.length), r && (c.tailShift += this.currentMask.append(r, {
13524
13524
  raw: !0,
13525
13525
  tail: !0
13526
- }).tailShift)) : c && (this.currentMask.state = c)), u;
13526
+ }).tailShift)) : u && (this.currentMask.state = u)), c;
13527
13527
  }
13528
13528
  _appendPlaceholder() {
13529
13529
  const e = this._applyDispatch();
@@ -13685,13 +13685,13 @@ ut.DEFAULTS = {
13685
13685
  dispatch: (a, e, t, i) => {
13686
13686
  if (!e.compiledMasks.length) return;
13687
13687
  const n = e.rawInputValue, l = e.compiledMasks.map((s, r) => {
13688
- const o = e.currentMask === s, u = o ? s.displayValue.length : s.nearestInputPos(s.displayValue.length, K.FORCE_LEFT);
13688
+ const o = e.currentMask === s, c = o ? s.displayValue.length : s.nearestInputPos(s.displayValue.length, K.FORCE_LEFT);
13689
13689
  return s.rawInputValue !== n ? (s.reset(), s.append(n, {
13690
13690
  raw: !0
13691
- })) : o || s.remove(u), s.append(a, e.currentMaskFlags(t)), s.appendTail(i), {
13691
+ })) : o || s.remove(c), s.append(a, e.currentMaskFlags(t)), s.appendTail(i), {
13692
13692
  index: r,
13693
13693
  weight: s.rawInputValue.length,
13694
- totalInputPositions: s.totalInputPositions(0, Math.max(u, s.nearestInputPos(s.displayValue.length, K.FORCE_LEFT)))
13694
+ totalInputPositions: s.totalInputPositions(0, Math.max(c, s.nearestInputPos(s.displayValue.length, K.FORCE_LEFT)))
13695
13695
  };
13696
13696
  });
13697
13697
  return l.sort((s, r) => r.weight - s.weight || r.totalInputPositions - s.totalInputPositions), e.compiledMasks[l[0].index];
@@ -13849,14 +13849,14 @@ class K1 extends V1 {
13849
13849
  let f;
13850
13850
  this.min != null && this.min < 0 && this.number < this.min && (f = this.min), this.max != null && this.max > 0 && this.number > this.max && (f = this.max), f != null && (this.autofix ? (this._value = this.format(f, this).replace(K1.UNMASKED_RADIX, this.radix), o || (o = l === this._value && !t.tail)) : r = !1), r && (r = !!this._value.match(this._numberRegExp));
13851
13851
  }
13852
- let u;
13853
- r ? u = new $({
13852
+ let c;
13853
+ r ? c = new $({
13854
13854
  inserted: this._value.slice(l.length),
13855
13855
  rawInserted: o ? "" : e,
13856
13856
  skip: o
13857
- }) : (this._value = l, u = new $()), this._value = this._insertThousandsSeparators(this._value);
13858
- const c = t.tail && t._beforeTailState ? t._beforeTailState._value : this._value, d = this._separatorsCountFromSlice(c);
13859
- return u.tailShift += (d - n) * this.thousandsSeparator.length, u;
13857
+ }) : (this._value = l, c = new $()), this._value = this._insertThousandsSeparators(this._value);
13858
+ const u = t.tail && t._beforeTailState ? t._beforeTailState._value : this._value, d = this._separatorsCountFromSlice(u);
13859
+ return c.tailShift += (d - n) * this.thousandsSeparator.length, c;
13860
13860
  }
13861
13861
  _findSeparatorAround(e) {
13862
13862
  if (this.thousandsSeparator) {
@@ -14038,18 +14038,18 @@ class ru extends B1 {
14038
14038
  t === void 0 && (t = {});
14039
14039
  const i = new $();
14040
14040
  for (
14041
- let o = (n = (l = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : l.index) != null ? n : Math.max(this._blocks.length - 1, 0), u, c;
14041
+ let o = (n = (l = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : l.index) != null ? n : Math.max(this._blocks.length - 1, 0), c, u;
14042
14042
  // try to get a block or
14043
14043
  // try to allocate a new block if not allocated already
14044
- u = (s = this._blocks[o]) != null ? s : c = !c && this._allocateBlock(o);
14044
+ c = (s = this._blocks[o]) != null ? s : u = !u && this._allocateBlock(o);
14045
14045
  ++o
14046
14046
  ) {
14047
14047
  var n, l, s, r;
14048
- const d = u._appendChar(e, {
14048
+ const d = c._appendChar(e, {
14049
14049
  ...t,
14050
14050
  _beforeTailState: (r = t._beforeTailState) == null || (r = r._blocks) == null ? void 0 : r[o]
14051
14051
  });
14052
- if (d.skip && c) {
14052
+ if (d.skip && u) {
14053
14053
  this._blocks.pop(), this.mask = this.mask.slice(1);
14054
14054
  break;
14055
14055
  }
@@ -14100,7 +14100,7 @@ function E4() {
14100
14100
  (function(t, i) {
14101
14101
  a.exports = i();
14102
14102
  })(ou, (function() {
14103
- var t = 1e3, i = 6e4, n = 36e5, l = "millisecond", s = "second", r = "minute", o = "hour", u = "day", c = "week", d = "month", f = "quarter", h = "year", g = "date", m = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
14103
+ var t = 1e3, i = 6e4, n = 36e5, l = "millisecond", s = "second", r = "minute", o = "hour", c = "day", u = "week", d = "month", f = "quarter", h = "year", g = "date", m = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
14104
14104
  var D = ["th", "st", "nd", "rd"], I = L % 100;
14105
14105
  return "[" + L + (D[(I - 20) % 10] || D[I] || D[0]) + "]";
14106
14106
  } }, C = function(L, D, I) {
@@ -14116,7 +14116,7 @@ function E4() {
14116
14116
  }, a: function(L) {
14117
14117
  return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
14118
14118
  }, p: function(L) {
14119
- return { M: d, y: h, w: c, d: u, D: g, h: o, m: r, s, ms: l, Q: f }[L] || String(L || "").toLowerCase().replace(/s$/, "");
14119
+ return { M: d, y: h, w: u, d: c, D: g, h: o, m: r, s, ms: l, Q: f }[L] || String(L || "").toLowerCase().replace(/s$/, "");
14120
14120
  }, u: function(L) {
14121
14121
  return L === void 0;
14122
14122
  } }, B = "en", x = {};
@@ -14187,7 +14187,7 @@ function E4() {
14187
14187
  }, D.startOf = function(I, E) {
14188
14188
  var S = this, H = !!j.u(E) || E, U = j.p(I), X = function(N1, y1) {
14189
14189
  var T1 = j.w(S.$u ? Date.UTC(S.$y, y1, N1) : new Date(S.$y, y1, N1), S);
14190
- return H ? T1 : T1.endOf(u);
14190
+ return H ? T1 : T1.endOf(c);
14191
14191
  }, r1 = function(N1, y1) {
14192
14192
  return j.w(S.toDate()[N1].apply(S.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(y1)), S);
14193
14193
  }, f1 = this.$W, p1 = this.$M, g1 = this.$D, k1 = "set" + (this.$u ? "UTC" : "");
@@ -14196,10 +14196,10 @@ function E4() {
14196
14196
  return H ? X(1, 0) : X(31, 11);
14197
14197
  case d:
14198
14198
  return H ? X(1, p1) : X(0, p1 + 1);
14199
- case c:
14199
+ case u:
14200
14200
  var O1 = this.$locale().weekStart || 0, R1 = (f1 < O1 ? f1 + 7 : f1) - O1;
14201
14201
  return X(H ? g1 - R1 : g1 + (6 - R1), p1);
14202
- case u:
14202
+ case c:
14203
14203
  case g:
14204
14204
  return r1(k1 + "Hours", 0);
14205
14205
  case o:
@@ -14214,7 +14214,7 @@ function E4() {
14214
14214
  }, D.endOf = function(I) {
14215
14215
  return this.startOf(I, !1);
14216
14216
  }, D.$set = function(I, E) {
14217
- var S, H = j.p(I), U = "set" + (this.$u ? "UTC" : ""), X = (S = {}, S[u] = U + "Date", S[g] = U + "Date", S[d] = U + "Month", S[h] = U + "FullYear", S[o] = U + "Hours", S[r] = U + "Minutes", S[s] = U + "Seconds", S[l] = U + "Milliseconds", S)[H], r1 = H === u ? this.$D + (E - this.$W) : E;
14217
+ var S, H = j.p(I), U = "set" + (this.$u ? "UTC" : ""), X = (S = {}, S[c] = U + "Date", S[g] = U + "Date", S[d] = U + "Month", S[h] = U + "FullYear", S[o] = U + "Hours", S[r] = U + "Minutes", S[s] = U + "Seconds", S[l] = U + "Milliseconds", S)[H], r1 = H === c ? this.$D + (E - this.$W) : E;
14218
14218
  if (H === d || H === h) {
14219
14219
  var f1 = this.clone().set(g, 1);
14220
14220
  f1.$d[X](r1), f1.init(), this.$d = f1.set(g, Math.min(this.$D, f1.daysInMonth())).$d;
@@ -14233,8 +14233,8 @@ function E4() {
14233
14233
  };
14234
14234
  if (U === d) return this.set(d, this.$M + I);
14235
14235
  if (U === h) return this.set(h, this.$y + I);
14236
- if (U === u) return X(1);
14237
- if (U === c) return X(7);
14236
+ if (U === c) return X(1);
14237
+ if (U === u) return X(7);
14238
14238
  var r1 = (S = {}, S[r] = i, S[o] = n, S[s] = t, S)[U] || 1, f1 = this.$d.getTime() + I * r1;
14239
14239
  return j.w(f1, this);
14240
14240
  }, D.subtract = function(I, E) {
@@ -14321,10 +14321,10 @@ function E4() {
14321
14321
  case f:
14322
14322
  H = g1() / 3;
14323
14323
  break;
14324
- case c:
14324
+ case u:
14325
14325
  H = (p1 - f1) / 6048e5;
14326
14326
  break;
14327
- case u:
14327
+ case c:
14328
14328
  H = (p1 - f1) / 864e5;
14329
14329
  break;
14330
14330
  case o:
@@ -14360,7 +14360,7 @@ function E4() {
14360
14360
  return this.$d.toUTCString();
14361
14361
  }, L;
14362
14362
  })(), o1 = e1.prototype;
14363
- return O.prototype = o1, [["$ms", l], ["$s", s], ["$m", r], ["$H", o], ["$W", u], ["$M", d], ["$y", h], ["$D", g]].forEach((function(L) {
14363
+ return O.prototype = o1, [["$ms", l], ["$s", s], ["$m", r], ["$H", o], ["$W", c], ["$M", d], ["$y", h], ["$D", g]].forEach((function(L) {
14364
14364
  o1[L[1]] = function(D) {
14365
14365
  return this.$g(D, L[0], L[1]);
14366
14366
  };
@@ -14416,8 +14416,8 @@ function gu() {
14416
14416
  })(mu, (function() {
14417
14417
  return function(t, i, n) {
14418
14418
  i.prototype.isBetween = function(l, s, r, o) {
14419
- var u = n(l), c = n(s), d = (o = o || "()")[0] === "(", f = o[1] === ")";
14420
- return (d ? this.isAfter(u, r) : !this.isBefore(u, r)) && (f ? this.isBefore(c, r) : !this.isAfter(c, r)) || (d ? this.isBefore(u, r) : !this.isAfter(u, r)) && (f ? this.isAfter(c, r) : !this.isBefore(c, r));
14419
+ var c = n(l), u = n(s), d = (o = o || "()")[0] === "(", f = o[1] === ")";
14420
+ return (d ? this.isAfter(c, r) : !this.isBefore(c, r)) && (f ? this.isBefore(u, r) : !this.isAfter(u, r)) || (d ? this.isBefore(c, r) : !this.isAfter(c, r)) && (f ? this.isAfter(u, r) : !this.isBefore(u, r));
14421
14421
  };
14422
14422
  };
14423
14423
  }));
@@ -14436,12 +14436,12 @@ function wu() {
14436
14436
  var r = l.prototype;
14437
14437
  r.week = function(o) {
14438
14438
  if (o === void 0 && (o = null), o !== null) return this.add(7 * (o - this.week()), "day");
14439
- var u = this.$locale().yearStart || 1;
14439
+ var c = this.$locale().yearStart || 1;
14440
14440
  if (this.month() === 11 && this.date() > 25) {
14441
- var c = s(this).startOf(i).add(1, i).date(u), d = s(this).endOf(t);
14442
- if (c.isBefore(d)) return 1;
14441
+ var u = s(this).startOf(i).add(1, i).date(c), d = s(this).endOf(t);
14442
+ if (u.isBefore(d)) return 1;
14443
14443
  }
14444
- var f = s(this).startOf(i).date(u).startOf(t).subtract(1, "millisecond"), h = this.diff(f, t, !0);
14444
+ var f = s(this).startOf(i).date(c).startOf(t).subtract(1, "millisecond"), h = this.diff(f, t, !0);
14445
14445
  return h < 0 ? s(this).startOf("week").week() : Math.ceil(h);
14446
14446
  }, r.weeks = function(o) {
14447
14447
  return o === void 0 && (o = null), this.week(o);
@@ -14465,12 +14465,12 @@ const Cu = (a = /* @__PURE__ */ new Date()) => d1(a).startOf("month").format("d"
14465
14465
  }) => d1(a).add(t, e).toDate(), xu = (a = /* @__PURE__ */ new Date(), { skipWE: e = !1, monthFormat: t = "MMMM", dayFormat: i = "dd" } = {}) => {
14466
14466
  const n = d1(a), l = n.weekday(0), s = [], r = 6 - (e ? 2 : 0);
14467
14467
  for (let o = 0; o <= r; o++) {
14468
- const u = n.format("D"), c = d1(l).add(o, "days").format("D");
14468
+ const c = n.format("D"), u = d1(l).add(o, "days").format("D");
14469
14469
  s.push({
14470
- number: parseInt(c),
14470
+ number: parseInt(u),
14471
14471
  month: d1(l).add(o, "days").format(t),
14472
14472
  day: d1(l).add(o, "days").format(i),
14473
- isCurrent: u === c
14473
+ isCurrent: c === u
14474
14474
  });
14475
14475
  }
14476
14476
  return s;
@@ -14498,12 +14498,12 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14498
14498
  emits: ["updateNavDate", "updateNavType"],
14499
14499
  setup(a, { emit: e }) {
14500
14500
  const t = a, i = e, n = Z(t.navigationDate), l = P(() => d1(t.navigationDate).format("MMMM")), s = P(() => d1(t.navigationDate).format("YYYY")), r = P(() => {
14501
- const c = Number(s.value);
14502
- return `${c - 8} - ${c + 7}`;
14501
+ const u = Number(s.value);
14502
+ return `${u - 8} - ${u + 7}`;
14503
14503
  }), o = P(
14504
14504
  () => [z1.Day, z1.Month].includes(t.navType)
14505
- ), u = P(() => (c) => {
14506
- const d = (f) => c === "left" ? -f : f;
14505
+ ), c = P(() => (u) => {
14506
+ const d = (f) => u === "left" ? -f : f;
14507
14507
  switch (t.navType) {
14508
14508
  case z1.Day:
14509
14509
  n.value = jt({
@@ -14528,12 +14528,12 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14528
14528
  break;
14529
14529
  }
14530
14530
  });
14531
- return S1(n, () => i("updateNavDate", n.value)), (c, d) => (w(), k("div", Iu, [
14531
+ return x1(n, () => i("updateNavDate", n.value)), (u, d) => (w(), k("div", Iu, [
14532
14532
  V("div", Vu, [
14533
14533
  V("button", {
14534
14534
  type: "button",
14535
14535
  class: "datepicker-navigation-arrows datepicker-navigation-button",
14536
- onClick: d[0] || (d[0] = (f) => u.value("left"))
14536
+ onClick: d[0] || (d[0] = (f) => c.value("left"))
14537
14537
  }, [...d[4] || (d[4] = [
14538
14538
  V("span", null, "‹", -1)
14539
14539
  ])]),
@@ -14541,23 +14541,23 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14541
14541
  key: 0,
14542
14542
  type: "button",
14543
14543
  class: "datepicker-navigation-button datepicker-navigation-date datepicker-navigation-month",
14544
- onClick: d[1] || (d[1] = (f) => c.$emit("updateNavType", x1(z1).Month))
14544
+ onClick: d[1] || (d[1] = (f) => u.$emit("updateNavType", S1(z1).Month))
14545
14545
  }, [
14546
14546
  V("span", null, Y(l.value), 1)
14547
14547
  ])) : F("", !0),
14548
14548
  V("button", {
14549
14549
  type: "button",
14550
14550
  class: G(["datepicker-navigation-button datepicker-navigation-date datepicker-navigation-month", {
14551
- "datepicker-navigation-button__inactive": a.navType === x1(z1).Year
14551
+ "datepicker-navigation-button__inactive": a.navType === S1(z1).Year
14552
14552
  }]),
14553
- onClick: d[2] || (d[2] = (f) => c.$emit("updateNavType", x1(z1).Year))
14553
+ onClick: d[2] || (d[2] = (f) => u.$emit("updateNavType", S1(z1).Year))
14554
14554
  }, [
14555
- V("span", null, Y(a.navType === x1(z1).Year ? r.value : s.value), 1)
14555
+ V("span", null, Y(a.navType === S1(z1).Year ? r.value : s.value), 1)
14556
14556
  ], 2),
14557
14557
  V("button", {
14558
14558
  type: "button",
14559
14559
  class: "datepicker-navigation-arrows datepicker-navigation-button",
14560
- onClick: d[3] || (d[3] = (f) => u.value("right"))
14560
+ onClick: d[3] || (d[3] = (f) => c.value("right"))
14561
14561
  }, [...d[5] || (d[5] = [
14562
14562
  V("span", null, "›", -1)
14563
14563
  ])])
@@ -14581,9 +14581,9 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14581
14581
  },
14582
14582
  emits: ["updateNavDate", "updateSelectedDate", "updateNavType"],
14583
14583
  setup(a, { emit: e }) {
14584
- const t = a, i = e, n = Z(t.navigationDate), l = xu(void 0, { dayFormat: "ddd" }).map(({ day: p }) => p), s = (p) => t.min === void 0 || p.isAfter(d1(t.min).startOf("day")), r = (p) => t.max === void 0 || p.isBefore(d1(t.max).endOf("day")), o = (p) => s(p) && r(p), u = (p) => {
14584
+ const t = a, i = e, n = Z(t.navigationDate), l = xu(void 0, { dayFormat: "ddd" }).map(({ day: p }) => p), s = (p) => t.min === void 0 || p.isAfter(d1(t.min).startOf("day")), r = (p) => t.max === void 0 || p.isBefore(d1(t.max).endOf("day")), o = (p) => s(p) && r(p), c = (p) => {
14585
14585
  n.value = p;
14586
- }, c = P(() => {
14586
+ }, u = P(() => {
14587
14587
  const p = [];
14588
14588
  let y = parseInt(Cu(t.navigationDate));
14589
14589
  y === 0 && (y = 7);
@@ -14597,7 +14597,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14597
14597
  "calendar-cell__disabled": !B
14598
14598
  },
14599
14599
  value: v.date(),
14600
- onClick: () => B && u(v.toDate())
14600
+ onClick: () => B && c(v.toDate())
14601
14601
  });
14602
14602
  }
14603
14603
  return p.reverse(), p;
@@ -14612,12 +14612,12 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14612
14612
  "calendar-day-cell-current-month": !0
14613
14613
  },
14614
14614
  value: y,
14615
- onClick: () => !C && v && u(b.toDate())
14615
+ onClick: () => !C && v && c(b.toDate())
14616
14616
  });
14617
14617
  }
14618
14618
  return p;
14619
14619
  }), f = P(() => [
14620
- ...c.value,
14620
+ ...u.value,
14621
14621
  ...d.value
14622
14622
  ]), h = P(() => {
14623
14623
  const p = [];
@@ -14650,7 +14650,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14650
14650
  "calendar-cell__disabled": !R
14651
14651
  },
14652
14652
  value: T.date(),
14653
- onClick: () => R && u(T.toDate())
14653
+ onClick: () => R && c(T.toDate())
14654
14654
  });
14655
14655
  }
14656
14656
  p[C] = v;
@@ -14662,7 +14662,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14662
14662
  const T = d1(t.navigationDate).month(C + x);
14663
14663
  return {
14664
14664
  value: B,
14665
- onClick: () => u(T.toDate())
14665
+ onClick: () => c(T.toDate())
14666
14666
  };
14667
14667
  });
14668
14668
  })), m = P(() => {
@@ -14675,37 +14675,37 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14675
14675
  const _ = d1(t.navigationDate).year(R).toDate();
14676
14676
  return {
14677
14677
  value: R,
14678
- onClick: () => u(_)
14678
+ onClick: () => c(_)
14679
14679
  };
14680
14680
  });
14681
14681
  });
14682
14682
  });
14683
- return S1(n, () => {
14683
+ return x1(n, () => {
14684
14684
  t.navType === z1.Day ? i("updateSelectedDate", n.value) : t.navType === z1.Month ? (i("updateNavDate", n.value), i("updateNavType", z1.Day)) : t.navType === z1.Year && (i("updateNavDate", n.value), i("updateNavType", z1.Month));
14685
14685
  }), (p, y) => (w(), k("table", Ru, [
14686
- a.navType === x1(z1).Day ? (w(), k("thead", Tu, [
14686
+ a.navType === S1(z1).Day ? (w(), k("thead", Tu, [
14687
14687
  V("tr", null, [
14688
- (w(!0), k(h1, null, E1(x1(l), (b) => (w(), k("th", Hu, [
14688
+ (w(!0), k(h1, null, E1(S1(l), (b) => (w(), k("th", Hu, [
14689
14689
  V("span", null, Y(b), 1)
14690
14690
  ]))), 256))
14691
14691
  ])
14692
14692
  ])) : F("", !0),
14693
14693
  V("tbody", null, [
14694
- a.navType === x1(z1).Day ? (w(!0), k(h1, { key: 0 }, E1(h.value, (b) => (w(), k("tr", null, [
14694
+ a.navType === S1(z1).Day ? (w(!0), k(h1, { key: 0 }, E1(h.value, (b) => (w(), k("tr", null, [
14695
14695
  (w(!0), k(h1, null, E1(b, (C) => (w(), k("td", {
14696
14696
  class: G(["calendar-cell calendar-day-cell", C.class]),
14697
14697
  onClick: (v) => C.onClick()
14698
14698
  }, [
14699
14699
  V("span", Ou, Y(C.value), 1)
14700
14700
  ], 10, Lu))), 256))
14701
- ]))), 256)) : a.navType === x1(z1).Month ? (w(!0), k(h1, { key: 1 }, E1(g.value, (b) => (w(), k("tr", null, [
14701
+ ]))), 256)) : a.navType === S1(z1).Month ? (w(!0), k(h1, { key: 1 }, E1(g.value, (b) => (w(), k("tr", null, [
14702
14702
  (w(!0), k(h1, null, E1(b, (C) => (w(), k("td", {
14703
14703
  class: "calendar-cell calendar-month-cell",
14704
14704
  onClick: (v) => C.onClick()
14705
14705
  }, [
14706
14706
  V("span", Fu, Y(C.value), 1)
14707
14707
  ], 8, Nu))), 256))
14708
- ]))), 256)) : a.navType === x1(z1).Year ? (w(!0), k(h1, { key: 2 }, E1(m.value, (b) => (w(), k("tr", null, [
14708
+ ]))), 256)) : a.navType === S1(z1).Year ? (w(!0), k(h1, { key: 2 }, E1(m.value, (b) => (w(), k("tr", null, [
14709
14709
  (w(!0), k(h1, null, E1(b, (C) => (w(), k("td", {
14710
14710
  class: "calendar-cell calendar-year-cell",
14711
14711
  onClick: (v) => C.onClick()
@@ -14730,16 +14730,16 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14730
14730
  },
14731
14731
  emits: ["update:modelValue"],
14732
14732
  setup(a, { emit: e }) {
14733
- const t = e, i = Z(), n = Z(i.value ?? /* @__PURE__ */ new Date()), l = Z(z1.Day), s = (u) => {
14734
- n.value = u;
14735
- }, r = (u) => {
14736
- i.value = u;
14737
- }, o = (u) => {
14738
- l.value = u;
14733
+ const t = e, i = Z(), n = Z(i.value ?? /* @__PURE__ */ new Date()), l = Z(z1.Day), s = (c) => {
14734
+ n.value = c;
14735
+ }, r = (c) => {
14736
+ i.value = c;
14737
+ }, o = (c) => {
14738
+ l.value = c;
14739
14739
  };
14740
- return S1(i, () => {
14740
+ return x1(i, () => {
14741
14741
  s(i.value ?? /* @__PURE__ */ new Date()), i.value && t("update:modelValue", i.value);
14742
- }), (u, c) => (w(), k("div", Pu, [
14742
+ }), (c, u) => (w(), k("div", Pu, [
14743
14743
  V("div", Wu, [
14744
14744
  t1(Bu, {
14745
14745
  navigationDate: n.value,
@@ -14802,7 +14802,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14802
14802
  tel: "Numéro de téléphone",
14803
14803
  url: "Url",
14804
14804
  date: "Date"
14805
- }, l = e, s = Z(t.modelValue ?? ""), r = Z(s.value !== ""), o = Z(!1), u = Z(!1), c = Z(null), d = Z({}), f = Z([]), h = Z(!1), g = Z(null);
14805
+ }, l = e, s = Z(t.modelValue ?? ""), r = Z(s.value !== ""), o = Z(!1), c = Z(!1), u = Z(null), d = Z({}), f = Z([]), h = Z(!1), g = Z(null);
14806
14806
  let m = null;
14807
14807
  const p = P(() => t.type === "password" ? i.value ? "text" : "password" : t.type === "date" ? "text" : t.type ?? "text"), y = P(() => i.value ? "eye-off" : "eye"), b = P(() => t.clearable === !0 && t.modelValue !== "" && !t.disabled), C = P(() => t.passwordControl && t.type === "password" && t.modelValue !== ""), v = P(() => t.label && t.modelValue === "" ? "absolute" : "relative"), B = () => {
14808
14808
  if (!t.suggestions) return;
@@ -14813,20 +14813,20 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14813
14813
  }, x = (E) => {
14814
14814
  s.value = E.label, h.value = !1, l("update:modelValue", E.label);
14815
14815
  };
14816
- S1(
14816
+ x1(
14817
14817
  () => t.modelValue,
14818
14818
  (E) => {
14819
14819
  const S = E ?? "";
14820
14820
  s.value !== S && (s.value = S, t.type === "date" && m && (m.value = String(S)));
14821
14821
  }
14822
- ), S1(u, (E) => {
14822
+ ), x1(c, (E) => {
14823
14823
  E && m3(() => {
14824
14824
  T();
14825
14825
  });
14826
14826
  });
14827
14827
  const T = () => {
14828
- if (!c.value) return;
14829
- const E = c.value.getBoundingClientRect();
14828
+ if (!u.value) return;
14829
+ const E = u.value.getBoundingClientRect();
14830
14830
  d.value = {
14831
14831
  position: "absolute",
14832
14832
  top: `${E.bottom + window.scrollY}px`,
@@ -14842,13 +14842,13 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14842
14842
  month: "2-digit",
14843
14843
  year: "numeric"
14844
14844
  });
14845
- u.value = !1, l("update:modelValue", S), m && (m.value = S);
14845
+ c.value = !1, l("update:modelValue", S), m && (m.value = S);
14846
14846
  }, O = () => {
14847
- r.value = !0, t.type === "date" && m && (u.value = !0, m.updateOptions({ lazy: !1 })), h.value = !0;
14847
+ r.value = !0, t.type === "date" && m && (c.value = !0, m.updateOptions({ lazy: !1 })), h.value = !0;
14848
14848
  }, j = () => {
14849
14849
  setTimeout(() => {
14850
14850
  const E = document.activeElement;
14851
- if (!(document.querySelector(".datepicker-popup")?.contains(E) ?? !1) && (u.value = !1, r.value = s.value !== "", t.type === "date" && m)) {
14851
+ if (!(document.querySelector(".datepicker-popup")?.contains(E) ?? !1) && (c.value = !1, r.value = s.value !== "", t.type === "date" && m)) {
14852
14852
  const H = m.value;
14853
14853
  m.unmaskedValue !== "" && (H.length !== 10 || !e1(H)) ? o.value = !0 : (o.value = !1, m.unmaskedValue === "" ? l("update:modelValue", "") : l("update:modelValue", H)), m.updateOptions({ lazy: !0 });
14854
14854
  }
@@ -14895,7 +14895,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14895
14895
  }, null, 8, ["iconName"])) : F("", !0),
14896
14896
  V("div", {
14897
14897
  ref_key: "dateInputWrapper",
14898
- ref: c,
14898
+ ref: u,
14899
14899
  class: G(["input-content", v.value])
14900
14900
  }, [
14901
14901
  a.type !== "date" ? (w(), k("input", {
@@ -14953,7 +14953,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
14953
14953
  ])) : F("", !0)
14954
14954
  ], 2),
14955
14955
  (w(), i1(Xe, { to: "body" }, [
14956
- u.value ? (w(), i1(Yu, {
14956
+ c.value ? (w(), i1(Yu, {
14957
14957
  key: 0,
14958
14958
  class: "datepicker-popup",
14959
14959
  style: w1(d.value),
@@ -15019,11 +15019,11 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15019
15019
  },
15020
15020
  emits: ["loadMore", "updateCheckItem", "updateCheckAll"],
15021
15021
  setup(a, { expose: e, emit: t }) {
15022
- const i = a, n = t, l = Z(), s = Z(), r = { height: "17", width: "17" }, o = Ve("displayContainer"), u = Ve("settingsCol"), c = Z(""), { right: d, update: f } = ka(l), { right: h, update: g } = ka(u), m = P(
15022
+ const i = a, n = t, l = Z(), s = Z(), r = { height: "17", width: "17" }, o = Ve("displayContainer"), c = Ve("settingsCol"), u = Z(""), { right: d, update: f } = ka(l), { right: h, update: g } = ka(c), m = P(
15023
15023
  () => i.headers.filter((D) => D.visibility.isShown)
15024
15024
  ), p = P(
15025
15025
  () => i.headers.filter((D) => {
15026
- const I = Ba(D.label), E = Ba(c.value);
15026
+ const I = Ba(D.label), E = Ba(u.value);
15027
15027
  return I.toLowerCase().includes(E.toLowerCase());
15028
15028
  })
15029
15029
  ), y = P(() => {
@@ -15108,7 +15108,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15108
15108
  }, L = () => m3(() => {
15109
15109
  o1() && n("loadMore");
15110
15110
  });
15111
- return S1(() => i.hasMore, O, { flush: "post" }), S1(
15111
+ return x1(() => i.hasMore, O, { flush: "post" }), x1(
15112
15112
  () => i.items,
15113
15113
  () => m3(() => {
15114
15114
  L(), f(), g();
@@ -15130,7 +15130,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15130
15130
  a.selection ? (w(), k("div", nd, [
15131
15131
  a.selection && a.headers.length ? (w(), i1(r2, {
15132
15132
  key: "checkAll",
15133
- theme: { "--amc2-checkbox-color": x1(q4) },
15133
+ theme: { "--amc2-checkbox-color": S1(q4) },
15134
15134
  iconStyle: r,
15135
15135
  indeterminate: a.allCheckState.partially,
15136
15136
  modelValue: a.allCheckState.isChecked,
@@ -15197,7 +15197,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15197
15197
  t1(Va, {
15198
15198
  position: "bottom-left",
15199
15199
  class: "datagrid-settings-menu-container",
15200
- onClose: I[2] || (I[2] = (E) => c.value = "")
15200
+ onClose: I[2] || (I[2] = (E) => u.value = "")
15201
15201
  }, {
15202
15202
  content: C1(() => [
15203
15203
  V("div", fd, [
@@ -15207,15 +15207,15 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15207
15207
  type: "search",
15208
15208
  iconName: "search",
15209
15209
  clearable: "",
15210
- modelValue: c.value,
15211
- "onUpdate:modelValue": I[1] || (I[1] = (E) => c.value = E)
15210
+ modelValue: u.value,
15211
+ "onUpdate:modelValue": I[1] || (I[1] = (E) => u.value = E)
15212
15212
  }, null, 8, ["modelValue"]),
15213
15213
  V("div", pd, [
15214
15214
  (w(!0), k(h1, null, E1(p.value, (E) => (w(), k("div", {
15215
15215
  key: E.key,
15216
15216
  class: "col-selection-option"
15217
15217
  }, [
15218
- V("div", vd, Y(x1(G9)(E.label)), 1),
15218
+ V("div", vd, Y(S1(G9)(E.label)), 1),
15219
15219
  t1(q9, {
15220
15220
  disabled: E.visibility?.isDisabled,
15221
15221
  modelValue: E.visibility.isShown,
@@ -15358,41 +15358,41 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15358
15358
  setup(a, { emit: e }) {
15359
15359
  const t = a, i = e, n = Z(""), l = P({
15360
15360
  get: () => t.modelValue,
15361
- set: (c) => i("update:modelValue", c)
15362
- }), s = (c) => l.value.some((d) => d.value === c), r = P(() => {
15363
- const c = n.value.toLowerCase();
15361
+ set: (u) => i("update:modelValue", u)
15362
+ }), s = (u) => l.value.some((d) => d.value === u), r = P(() => {
15363
+ const u = n.value.toLowerCase();
15364
15364
  return t.options.filter(
15365
- (d) => d.label.toString().toLowerCase().includes(c)
15365
+ (d) => d.label.toString().toLowerCase().includes(u)
15366
15366
  );
15367
15367
  }), o = P({
15368
15368
  get: () => r.value.length > 0 && r.value.every(
15369
- (c) => l.value.some((d) => d.value === c.value)
15369
+ (u) => l.value.some((d) => d.value === u.value)
15370
15370
  ),
15371
15371
  set: () => {
15372
15372
  if (t.multiple)
15373
15373
  if (o.value)
15374
15374
  l.value = l.value.filter(
15375
- (c) => !r.value.some((d) => d.value === c.value)
15375
+ (u) => !r.value.some((d) => d.value === u.value)
15376
15376
  );
15377
15377
  else {
15378
- const c = r.value.filter(
15378
+ const u = r.value.filter(
15379
15379
  (d) => !l.value.some((f) => f.value === d.value)
15380
15380
  );
15381
- l.value = [...l.value, ...c];
15381
+ l.value = [...l.value, ...u];
15382
15382
  }
15383
15383
  }
15384
- }), u = (c) => {
15384
+ }), c = (u) => {
15385
15385
  if (t.multiple) {
15386
15386
  const d = l.value.some(
15387
- (f) => f.value === c.value
15387
+ (f) => f.value === u.value
15388
15388
  );
15389
15389
  l.value = d ? l.value.filter(
15390
- (f) => f.value !== c.value
15391
- ) : [...l.value, c];
15390
+ (f) => f.value !== u.value
15391
+ ) : [...l.value, u];
15392
15392
  } else
15393
- l.value = [c];
15393
+ l.value = [u];
15394
15394
  };
15395
- return (c, d) => (w(), k("div", wd, [
15395
+ return (u, d) => (w(), k("div", wd, [
15396
15396
  a.multiple || a.searchable ? (w(), k("div", {
15397
15397
  key: 0,
15398
15398
  ref: "headerRef",
@@ -15440,7 +15440,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15440
15440
  }, [
15441
15441
  V("label", {
15442
15442
  class: "amc2-list-item",
15443
- onClick: (h) => u(f)
15443
+ onClick: (h) => c(f)
15444
15444
  }, [
15445
15445
  V("span", {
15446
15446
  class: G({ selected: s(f.value) })
@@ -15663,13 +15663,13 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15663
15663
  setup(a, { emit: e }) {
15664
15664
  const t = a, i = e, n = Z(null), l = Z(null), s = Z(t.modelValue.length), r = P(
15665
15665
  () => t.modelValue.slice(0, s.value)
15666
- ), o = P(() => t.modelValue.slice(s.value)), u = P(() => !t.disabled && t.clearable && t.modelValue.length > 0);
15667
- function c(h) {
15666
+ ), o = P(() => t.modelValue.slice(s.value)), c = P(() => !t.disabled && t.clearable && t.modelValue.length > 0);
15667
+ function u(h) {
15668
15668
  const g = [...t.modelValue], m = g[h];
15669
15669
  g.splice(h, 1), i("update:modelValue", g), i("clear", m);
15670
15670
  }
15671
15671
  const d = (h) => {
15672
- if (u.value) {
15672
+ if (c.value) {
15673
15673
  const g = [...t.modelValue];
15674
15674
  i("update:modelValue", []), i("clearAll", g);
15675
15675
  }
@@ -15689,7 +15689,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15689
15689
  }), s.value = p;
15690
15690
  });
15691
15691
  }
15692
- return S1(
15692
+ return x1(
15693
15693
  () => t.modelValue,
15694
15694
  () => f(),
15695
15695
  { deep: !0, immediate: !0 }
@@ -15710,7 +15710,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15710
15710
  a.modelValue.length === 0 ? (w(), k("span", Ud, Y(t.placeholder), 1)) : (w(!0), k(h1, { key: 1 }, E1(r.value, (m, p) => (w(), i1(Ua, {
15711
15711
  key: p,
15712
15712
  disabled: t.disabled,
15713
- onClear: (y) => c(p),
15713
+ onClear: (y) => u(p),
15714
15714
  clearable: a.clearable,
15715
15715
  modelValue: m
15716
15716
  }, {
@@ -15733,7 +15733,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15733
15733
  (w(!0), k(h1, null, E1(o.value, (m, p) => (w(), i1(Ua, {
15734
15734
  key: p,
15735
15735
  disabled: t.disabled,
15736
- onClear: (y) => c(p),
15736
+ onClear: (y) => u(p),
15737
15737
  clearable: a.modelValue.length > 1,
15738
15738
  modelValue: m
15739
15739
  }, {
@@ -15750,7 +15750,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15750
15750
  _: 1
15751
15751
  }, 8, ["style", "position"])) : F("", !0)
15752
15752
  ]),
15753
- u.value ? (w(), i1(a1, {
15753
+ c.value ? (w(), i1(a1, {
15754
15754
  key: 0,
15755
15755
  iconName: "x",
15756
15756
  onClick: d,
@@ -15775,73 +15775,71 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15775
15775
  },
15776
15776
  emits: ["update:modelValue"],
15777
15777
  setup(a, { emit: e }) {
15778
- const t = a, i = e, n = Z(!1), l = P({
15778
+ const t = a, i = e, n = P(() => !!t.label), l = Z(!1), s = P({
15779
15779
  get: () => t.modelValue,
15780
- set: (h) => i("update:modelValue", h)
15781
- }), s = Z(null), r = Z(null), o = Z({}), u = Z("down");
15782
- S1(l, () => {
15783
- !t.multiple && l.value.length === 1 && d(), i("update:modelValue", l.value);
15784
- });
15785
- const c = () => {
15786
- if (!s.value) return;
15787
- const h = s.value.getBoundingClientRect(), g = r.value?.getBoundingClientRect(), m = window.innerHeight - h.bottom, p = h.top, y = g?.height || 300;
15788
- m < y && p > m ? (u.value = "up", o.value = {
15780
+ set: (g) => {
15781
+ i("update:modelValue", g), !t.multiple && g.length === 1 && (l.value = !1);
15782
+ }
15783
+ }), r = Z(null), o = Z(null), c = Z({}), u = Z("down"), d = () => {
15784
+ if (!r.value) return;
15785
+ const g = r.value.getBoundingClientRect(), m = o.value?.getBoundingClientRect(), p = window.innerHeight - g.bottom, y = g.top, b = m?.height || 300;
15786
+ p < b && y > p ? (u.value = "up", c.value = {
15789
15787
  position: "absolute",
15790
- top: `${h.top - y + window.scrollY}px`,
15791
- left: `${h.left + window.scrollX}px`,
15792
- width: `${h.width}px`,
15788
+ top: `${g.top - b + window.scrollY}px`,
15789
+ left: `${g.left + window.scrollX}px`,
15790
+ width: `${g.width}px`,
15793
15791
  zIndex: "9999"
15794
- }) : (u.value = "down", o.value = {
15792
+ }) : (u.value = "down", c.value = {
15795
15793
  position: "absolute",
15796
- top: `${h.bottom + window.scrollY}px`,
15797
- left: `${h.left + window.scrollX}px`,
15798
- width: `${h.width}px`,
15794
+ top: `${g.bottom + window.scrollY}px`,
15795
+ left: `${g.left + window.scrollX}px`,
15796
+ width: `${g.width}px`,
15799
15797
  zIndex: "9999"
15800
15798
  });
15801
- }, d = () => {
15802
- t.disabled || (n.value = !n.value, n.value && m3(() => {
15803
- c();
15799
+ }, f = () => {
15800
+ t.disabled || (l.value = !l.value, l.value && m3(() => {
15801
+ d();
15804
15802
  }));
15805
- }, f = (h) => {
15806
- const g = h.target;
15807
- s.value && !s.value.contains(g) && r.value && !r.value.contains(g) && (n.value = !1);
15803
+ }, h = (g) => {
15804
+ const m = g.target;
15805
+ r.value && !r.value.contains(m) && o.value && !o.value.contains(m) && (l.value = !1);
15808
15806
  };
15809
15807
  return X3(() => {
15810
- document.addEventListener("mousedown", f), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c);
15808
+ document.addEventListener("mousedown", h), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d);
15811
15809
  }), u2(() => {
15812
- document.removeEventListener("mousedown", f), window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c);
15813
- }), (h, g) => (w(), k("div", {
15810
+ document.removeEventListener("mousedown", h), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
15811
+ }), (g, m) => (w(), k("div", {
15814
15812
  ref_key: "selectRef",
15815
- ref: s,
15813
+ ref: r,
15816
15814
  class: G(["amc2-select", { "amc2-select-disabled": a.disabled }])
15817
15815
  }, [
15818
15816
  V("div", {
15819
15817
  class: "amc2-select-display",
15820
- onClick: d
15818
+ onClick: f
15821
15819
  }, [
15822
15820
  V("div", {
15823
- class: G(["amc2-select-display-content", { withLabel: a.label !== void 0 }])
15821
+ class: G(["amc2-select-display-content", { withLabel: n.value }])
15824
15822
  }, [
15825
- l.value.length === 1 ? (w(), k("span", Gd, Y(l.value[0].label), 1)) : (w(), i1(qd, {
15823
+ s.value.length === 1 ? (w(), k("span", Gd, Y(s.value[0].label), 1)) : (w(), i1(qd, {
15826
15824
  key: 1,
15827
15825
  clearable: a.clearable,
15828
15826
  disabled: a.disabled,
15829
- modelValue: l.value,
15830
- "onUpdate:modelValue": g[0] || (g[0] = (m) => l.value = m)
15827
+ modelValue: s.value,
15828
+ "onUpdate:modelValue": m[0] || (m[0] = (p) => s.value = p)
15831
15829
  }, null, 8, ["clearable", "disabled", "modelValue"])),
15832
15830
  V("div", _d, [
15833
- a.label !== void 0 ? (w(), k("span", {
15831
+ n.value ? (w(), k("span", {
15834
15832
  key: 0,
15835
15833
  class: G(["amc2-select-label", [
15836
- { active: n.value || l.value.length > 0 },
15834
+ { active: l.value || s.value.length > 0 },
15837
15835
  { alone: !a.placeholder }
15838
15836
  ]])
15839
15837
  }, Y(a.label), 3)) : F("", !0),
15840
- !l.value.length && a.placeholder ? (w(), k("span", {
15838
+ !s.value.length && a.placeholder ? (w(), k("span", {
15841
15839
  key: 1,
15842
15840
  class: G(["amc2-select-placeholder", [
15843
- { active: n.value || l.value.length > 0 },
15844
- { alone: !a.label }
15841
+ { active: l.value || s.value.length > 0 },
15842
+ { alone: !n.value }
15845
15843
  ]])
15846
15844
  }, Y(a.placeholder), 3)) : F("", !0)
15847
15845
  ])
@@ -15849,24 +15847,24 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15849
15847
  a.disabled ? F("", !0) : (w(), i1(a1, {
15850
15848
  key: 0,
15851
15849
  iconName: "chevron-down",
15852
- class: G(["amc2-select-icon", { opened: n.value }])
15850
+ class: G(["amc2-select-icon", { opened: l.value }])
15853
15851
  }, null, 8, ["class"]))
15854
15852
  ]),
15855
15853
  (w(), i1(Xe, { to: "body" }, [
15856
- n.value ? (w(), k("div", {
15854
+ l.value ? (w(), k("div", {
15857
15855
  key: 0,
15858
15856
  ref_key: "dropdownRef",
15859
- ref: r,
15857
+ ref: o,
15860
15858
  class: "amc2-select-dropdown",
15861
- style: w1(o.value)
15859
+ style: w1(c.value)
15862
15860
  }, [
15863
15861
  t1(kd, {
15864
15862
  ref: "listRef",
15865
15863
  options: a.options,
15866
15864
  multiple: a.multiple,
15867
15865
  searchable: a.searchable,
15868
- modelValue: l.value,
15869
- "onUpdate:modelValue": g[1] || (g[1] = (m) => l.value = m)
15866
+ modelValue: s.value,
15867
+ "onUpdate:modelValue": m[1] || (m[1] = (p) => s.value = p)
15870
15868
  }, null, 8, ["options", "multiple", "searchable", "modelValue"])
15871
15869
  ], 4)) : F("", !0)
15872
15870
  ]))
@@ -15887,11 +15885,11 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15887
15885
  l(r);
15888
15886
  return;
15889
15887
  }
15890
- t.value.has(r.label) ? t.value.delete(r.label) : (Array.from(t.value).filter((u) => {
15891
- const c = e.items.find((d) => d.label === u);
15892
- return c?.children ? !c.children.some((d) => d.id === i.value) : !0;
15893
- }).forEach((u) => {
15894
- t.value.delete(u);
15888
+ t.value.has(r.label) ? t.value.delete(r.label) : (Array.from(t.value).filter((c) => {
15889
+ const u = e.items.find((d) => d.label === c);
15890
+ return u?.children ? !u.children.some((d) => d.id === i.value) : !0;
15891
+ }).forEach((c) => {
15892
+ t.value.delete(c);
15895
15893
  }), t.value.add(r.label));
15896
15894
  }, l = (r) => {
15897
15895
  i.value = r.id, r.action?.();
@@ -15899,32 +15897,32 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15899
15897
  return X3(() => {
15900
15898
  if (e.idSelected) {
15901
15899
  const r = e.items.find(
15902
- (o) => o.children?.some((u) => u.id === e.idSelected)
15900
+ (o) => o.children?.some((c) => c.id === e.idSelected)
15903
15901
  );
15904
15902
  r && t.value.add(r.label);
15905
15903
  }
15906
15904
  }), (r, o) => (w(), k("nav", Jd, [
15907
- (w(!0), k(h1, null, E1(e.items, (u) => (w(), k("li", {
15908
- key: u.id,
15909
- class: G({ "side-menu-item": !0, selected: u.id === i.value })
15905
+ (w(!0), k(h1, null, E1(e.items, (c) => (w(), k("li", {
15906
+ key: c.id,
15907
+ class: G({ "side-menu-item": !0, selected: c.id === i.value })
15910
15908
  }, [
15911
15909
  V("div", {
15912
15910
  class: "side-menu-item-line",
15913
- onClick: (c) => n(u)
15911
+ onClick: (u) => n(c)
15914
15912
  }, [
15915
- u.icon ? (w(), i1(a1, {
15913
+ c.icon ? (w(), i1(a1, {
15916
15914
  key: 0,
15917
- iconName: u.icon,
15915
+ iconName: c.icon,
15918
15916
  height: "22",
15919
15917
  width: "22"
15920
15918
  }, null, 8, ["iconName"])) : F("", !0),
15921
- V("span", Xd, Y(u.label), 1),
15919
+ V("span", Xd, Y(c.label), 1),
15922
15920
  V("div", $d, [
15923
- u.children && !s(u) ? (w(), i1(a1, {
15921
+ c.children && !s(c) ? (w(), i1(a1, {
15924
15922
  key: 0,
15925
15923
  iconName: "chevron-down"
15926
15924
  })) : F("", !0),
15927
- u.children && s(u) ? (w(), i1(a1, {
15925
+ c.children && s(c) ? (w(), i1(a1, {
15928
15926
  key: 1,
15929
15927
  iconName: "chevron-up"
15930
15928
  })) : F("", !0)
@@ -15935,23 +15933,23 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
15935
15933
  appear: ""
15936
15934
  }, {
15937
15935
  default: C1(() => [
15938
- u.children && s(u) ? (w(), k("div", eh, [
15939
- (w(!0), k(h1, null, E1(u.children, (c) => (w(), k("li", {
15940
- key: c.id,
15936
+ c.children && s(c) ? (w(), k("div", eh, [
15937
+ (w(!0), k(h1, null, E1(c.children, (u) => (w(), k("li", {
15938
+ key: u.id,
15941
15939
  class: G({
15942
15940
  "side-menu-submenu-item": !0,
15943
- selected: c.id === i.value
15941
+ selected: u.id === i.value
15944
15942
  }),
15945
- onClick: (d) => l(c)
15943
+ onClick: (d) => l(u)
15946
15944
  }, [
15947
- c.icon ? (w(), i1(a1, {
15945
+ u.icon ? (w(), i1(a1, {
15948
15946
  key: 0,
15949
- iconName: c.icon,
15947
+ iconName: u.icon,
15950
15948
  height: "20",
15951
15949
  width: "20",
15952
15950
  color: "currentColor"
15953
15951
  }, null, 8, ["iconName"])) : F("", !0),
15954
- V("span", null, Y(c.label), 1)
15952
+ V("span", null, Y(u.label), 1)
15955
15953
  ], 10, th))), 128))
15956
15954
  ])) : F("", !0)
15957
15955
  ]),
@@ -16082,10 +16080,10 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
16082
16080
  emits: ["update:open", "toggle"],
16083
16081
  setup(a, { emit: e }) {
16084
16082
  const t = a, i = e, n = Z(t.open);
16085
- S1(
16083
+ x1(
16086
16084
  () => t.open,
16087
- (u) => {
16088
- n.value = u;
16085
+ (c) => {
16086
+ n.value = c;
16089
16087
  }
16090
16088
  );
16091
16089
  const l = {
@@ -16093,15 +16091,15 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
16093
16091
  creation: "Création",
16094
16092
  suppression: "Suppression"
16095
16093
  }, s = P(() => {
16096
- const u = t.initials.trim();
16097
- return t.author.trim() !== "" || u !== "" && u !== "?";
16094
+ const c = t.initials.trim();
16095
+ return t.author.trim() !== "" || c !== "" && c !== "?";
16098
16096
  }), r = P(() => {
16099
- const u = [l[t.type]];
16100
- return t.author && u.push(`par ${t.author}`), t.date && u.push(`le ${t.date}`), u.join(" ");
16097
+ const c = [l[t.type]];
16098
+ return t.author && c.push(`par ${t.author}`), t.date && c.push(`le ${t.date}`), c.join(" ");
16101
16099
  }), o = () => {
16102
16100
  n.value = !n.value, i("update:open", n.value), i("toggle", n.value);
16103
16101
  };
16104
- return (u, c) => (w(), k("button", A3(u.$attrs, {
16102
+ return (c, u) => (w(), k("button", A3(c.$attrs, {
16105
16103
  class: ["history-item", `history-item--${a.type}`],
16106
16104
  type: "button",
16107
16105
  "aria-expanded": n.value,
@@ -16237,7 +16235,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
16237
16235
  }
16238
16236
  };
16239
16237
  return (s, r) => (w(), k("div", Eh, [
16240
- (w(!0), k(h1, null, E1(x1(e), (o) => (w(), k("div", {
16238
+ (w(!0), k(h1, null, E1(S1(e), (o) => (w(), k("div", {
16241
16239
  key: o.id,
16242
16240
  class: G(["toast", "show", o.intent])
16243
16241
  }, [
@@ -16252,7 +16250,7 @@ const Iu = { class: "datepicker-navigation-container" }, Vu = { class: "datepick
16252
16250
  V("div", Ch, [
16253
16251
  t1(a1, {
16254
16252
  "icon-name": "close",
16255
- onClick: (u) => i(o.id)
16253
+ onClick: (c) => i(o.id)
16256
16254
  }, null, 8, ["onClick"])
16257
16255
  ])
16258
16256
  ])