@grapadigital/shared-app-modules 0.0.91 → 0.0.92

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.
package/dist/shadcn.js CHANGED
@@ -1,15 +1,15 @@
1
- import { a as zt, c as y, n as de, L as jt, S as Xe, o as Ht, p as qt, q as Re, B as Qe, I as Gt, T as Rt, r as $t } from "./chuncks/dropdown-menu.BlrUdWMu.js";
2
- import { aw as Sr, az as Wr, ax as Nr, ay as Tr, aB as _r, aE as Er, aF as Pr, aG as Br, aC as Ir, aD as Yr, s as Fr, C as Ar, at as zr, i as jr, k as Hr, g as qr, l as Gr, h as Rr, av as $r, au as Vr, F as Zr, G as Ur, J as Lr, K as Kr, M as Jr, N as Xr, O as Qr, Q as es, U as ts, V as ns, aj as os, an as as, ao as rs, as as ss, aq as is, ap as ds, al as ls, ak as us, ar as cs, am as fs, aP as hs, aT as ms, aR as ps, aY as ys, aS as gs, aV as bs, aZ as vs, b1 as ws, aU as ks, aW as Ms, aX as Ds, a_ as Cs, a$ as Os, b0 as xs, aQ as Ss, H as Ws, d as Ns, b as Ts, P as _s, ae as Es, f as Ps, e as Bs, aA as Is, t as Ys, x as Fs, u as As, z as zs, y as js, E as Hs, D as qs, A as Gs, w as Rs, v as $s, W as Vs, Y as Zs, Z as Us, a1 as Ls, $ as Ks, _ as Js, a0 as Xs, X as Qs, a6 as ei, a8 as ti, ad as ni, ac as oi, a9 as ai, aa as ri, a7 as si, ab as ii, a2 as di, a5 as li, a3 as ui, a4 as ci, aH as fi, aI as hi, aJ as mi, aK as pi, aL as yi, aM as gi, aN as bi, aO as vi, af as wi, ah as ki, ai as Mi, ag as Di } from "./chuncks/dropdown-menu.BlrUdWMu.js";
1
+ import { a as zt, c as y, n as le, L as jt, S as Xe, o as Ht, p as qt, q as Re, B as Qe, I as Gt, T as Rt, r as $t } from "./chuncks/scroll-area.CEAE-ZuD.js";
2
+ import { aw as Sr, az as Wr, ax as Nr, ay as Tr, aB as _r, aE as Er, aF as Pr, aG as Br, aC as Ir, aD as Yr, s as Fr, C as Ar, at as zr, i as jr, k as Hr, g as qr, l as Gr, h as Rr, av as $r, au as Vr, F as Zr, G as Ur, J as Lr, K as Kr, M as Jr, N as Xr, O as Qr, Q as es, U as ts, V as ns, aj as os, an as as, ao as rs, as as ss, aq as is, ap as ls, al as ds, ak as us, ar as cs, am as fs, aP as hs, aT as ms, aR as ps, aY as ys, aS as gs, aV as bs, aZ as vs, b1 as ws, aU as ks, aW as Ms, aX as Ds, a_ as Cs, a$ as Os, b0 as xs, aQ as Ss, H as Ws, d as Ns, b as Ts, P as _s, ae as Es, f as Ps, e as Bs, aA as Is, b2 as Ys, b3 as Fs, t as As, x as zs, u as js, z as Hs, y as qs, E as Gs, D as Rs, A as $s, w as Vs, v as Zs, W as Us, Y as Ls, Z as Ks, a1 as Js, $ as Xs, _ as Qs, a0 as ei, X as ti, a6 as ni, a8 as oi, ad as ai, ac as ri, a9 as si, aa as ii, a7 as li, ab as di, a2 as ui, a5 as ci, a3 as fi, a4 as hi, aH as mi, aI as pi, aJ as yi, aK as gi, aL as bi, aM as vi, aN as wi, aO as ki, af as Mi, ah as Di, ai as Ci, ag as Oi } from "./chuncks/scroll-area.CEAE-ZuD.js";
3
3
  import * as pe from "react";
4
4
  import c, { useMemo as ie, createContext as Vt, useContext as Zt, useCallback as H, useRef as me, useLayoutEffect as Ut, useState as Ee, useEffect as Lt } from "react";
5
5
  import { jsx as N, jsxs as Kt } from "react/jsx-runtime";
6
- import { C as Oi, e as xi, a as Si, f as Wi, c as Ni, b as Ti, d as _i } from "./chuncks/card.DrkOjowB.js";
7
- import { addDays as Jt, addMonths as Xt, addWeeks as Qt, addYears as en, differenceInCalendarDays as tn, differenceInCalendarMonths as nn, eachMonthOfInterval as on, eachYearOfInterval as an, endOfISOWeek as rn, endOfMonth as sn, endOfWeek as dn, endOfYear as ln, format as un, getISOWeek as cn, getMonth as fn, getYear as hn, getWeek as mn, isAfter as pn, isBefore as yn, isDate as gn, isSameDay as bn, isSameMonth as vn, isSameYear as wn, max as kn, min as Mn, setMonth as Dn, setYear as Cn, startOfDay as On, startOfISOWeek as xn, startOfMonth as Sn, startOfWeek as Wn, startOfYear as Nn } from "date-fns";
6
+ import { C as Si, e as Wi, a as Ni, f as Ti, c as _i, b as Ei, d as Pi } from "./chuncks/card.Cpx5Pxqx.js";
7
+ import { addDays as Jt, addMonths as Xt, addWeeks as Qt, addYears as en, differenceInCalendarDays as tn, differenceInCalendarMonths as nn, eachMonthOfInterval as on, eachYearOfInterval as an, endOfISOWeek as rn, endOfMonth as sn, endOfWeek as ln, endOfYear as dn, format as un, getISOWeek as cn, getMonth as fn, getYear as hn, getWeek as mn, isAfter as pn, isBefore as yn, isDate as gn, isSameDay as bn, isSameMonth as vn, isSameYear as wn, max as kn, min as Mn, setMonth as Dn, setYear as Cn, startOfDay as On, startOfISOWeek as xn, startOfMonth as Sn, startOfWeek as Wn, startOfYear as Nn } from "date-fns";
8
8
  function nr(e) {
9
9
  const [t, o] = pe.useState(!1);
10
10
  return pe.useEffect(() => {
11
- function n(d) {
12
- o(d.matches);
11
+ function n(l) {
12
+ o(l.matches);
13
13
  }
14
14
  const a = matchMedia(e);
15
15
  return a.addEventListener("change", n), o(a.matches), () => a.removeEventListener("change", n);
@@ -75,7 +75,7 @@ function sr({ className: e, ...t }) {
75
75
  }
76
76
  );
77
77
  }
78
- const En = de(
78
+ const En = le(
79
79
  "group/field data-[invalid=true]:text-destructive flex w-full gap-3",
80
80
  {
81
81
  variants: {
@@ -114,7 +114,7 @@ function ir({
114
114
  }
115
115
  );
116
116
  }
117
- function dr({ className: e, ...t }) {
117
+ function lr({ className: e, ...t }) {
118
118
  return /* @__PURE__ */ N(
119
119
  "div",
120
120
  {
@@ -127,7 +127,7 @@ function dr({ className: e, ...t }) {
127
127
  }
128
128
  );
129
129
  }
130
- function lr({
130
+ function dr({
131
131
  className: e,
132
132
  ...t
133
133
  }) {
@@ -209,7 +209,7 @@ function hr({
209
209
  ...n
210
210
  }) {
211
211
  const a = ie(() => t || (o ? o?.length === 1 && o[0]?.message ? o[0].message : /* @__PURE__ */ N("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: o.map(
212
- (d, r) => d?.message && /* @__PURE__ */ N("li", { children: d.message }, r)
212
+ (l, r) => l?.message && /* @__PURE__ */ N("li", { children: l.message }, r)
213
213
  ) }) : null), [t, o]);
214
214
  return a ? /* @__PURE__ */ N(
215
215
  "div",
@@ -299,13 +299,13 @@ function Yn(e) {
299
299
  function et(e) {
300
300
  const t = ne(e.timeZone, e), o = t > 0 ? Math.floor(t) : Math.ceil(t), n = /* @__PURE__ */ new Date(+e);
301
301
  n.setUTCHours(n.getUTCHours() - 1);
302
- const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), d = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), r = a - d, s = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
302
+ const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), l = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), r = a - l, s = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
303
303
  r && s && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + r);
304
304
  const i = a - o;
305
305
  i && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + i);
306
- const l = /* @__PURE__ */ new Date(+e);
307
- l.setUTCSeconds(0);
308
- const f = a > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, u = Math.round(-(ne(e.timeZone, e) * 60)) % 60;
306
+ const d = /* @__PURE__ */ new Date(+e);
307
+ d.setUTCSeconds(0);
308
+ const f = a > 0 ? d.getSeconds() : (d.getSeconds() - 60) % 60, u = Math.round(-(ne(e.timeZone, e) * 60)) % 60;
309
309
  (u || f) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + u), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + u + f));
310
310
  const h = ne(e.timeZone, e), b = h > 0 ? Math.floor(h) : Math.ceil(h), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - b, k = b !== o, O = W - i;
311
311
  if (k && O) {
@@ -490,8 +490,8 @@ function ae(e) {
490
490
  const r = e.defaultWidth, s = o?.width ? String(o.width) : e.defaultWidth;
491
491
  a = e.values[s] || e.values[r];
492
492
  }
493
- const d = e.argumentCallback ? e.argumentCallback(t) : t;
494
- return a[d];
493
+ const l = e.argumentCallback ? e.argumentCallback(t) : t;
494
+ return a[l];
495
495
  };
496
496
  }
497
497
  const $n = {
@@ -647,20 +647,20 @@ const $n = {
647
647
  };
648
648
  function re(e) {
649
649
  return (t, o = {}) => {
650
- const n = o.width, a = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], d = t.match(a);
651
- if (!d)
650
+ const n = o.width, a = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], l = t.match(a);
651
+ if (!l)
652
652
  return null;
653
- const r = d[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(s) ? eo(s, (u) => u.test(r)) : (
653
+ const r = l[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], i = Array.isArray(s) ? eo(s, (u) => u.test(r)) : (
654
654
  // [TODO] -- I challenge you to fix the type
655
655
  Qn(s, (u) => u.test(r))
656
656
  );
657
- let l;
658
- l = e.valueCallback ? e.valueCallback(i) : i, l = o.valueCallback ? (
657
+ let d;
658
+ d = e.valueCallback ? e.valueCallback(i) : i, d = o.valueCallback ? (
659
659
  // [TODO] -- I challenge you to fix the type
660
- o.valueCallback(l)
661
- ) : l;
660
+ o.valueCallback(d)
661
+ ) : d;
662
662
  const f = t.slice(r.length);
663
- return { value: l, rest: f };
663
+ return { value: d, rest: f };
664
664
  };
665
665
  }
666
666
  function Qn(e, t) {
@@ -677,9 +677,9 @@ function to(e) {
677
677
  return (t, o = {}) => {
678
678
  const n = t.match(e.matchPattern);
679
679
  if (!n) return null;
680
- const a = n[0], d = t.match(e.parsePattern);
681
- if (!d) return null;
682
- let r = e.valueCallback ? e.valueCallback(d[0]) : d[0];
680
+ const a = n[0], l = t.match(e.parsePattern);
681
+ if (!l) return null;
682
+ let r = e.valueCallback ? e.valueCallback(l[0]) : l[0];
683
683
  r = o.valueCallback ? o.valueCallback(r) : r;
684
684
  const s = t.slice(a.length);
685
685
  return { value: r, rest: s };
@@ -802,8 +802,8 @@ const no = /^(\d+)(th|st|nd|rd)?/i, oo = /\d+/i, ao = {
802
802
  }
803
803
  }, Ze = 5, yo = 4;
804
804
  function go(e, t) {
805
- const o = t.startOfMonth(e), n = o.getDay() > 0 ? o.getDay() : 7, a = t.addDays(e, -n + 1), d = t.addDays(a, Ze * 7 - 1);
806
- return t.getMonth(e) === t.getMonth(d) ? Ze : yo;
805
+ const o = t.startOfMonth(e), n = o.getDay() > 0 ? o.getDay() : 7, a = t.addDays(e, -n + 1), l = t.addDays(a, Ze * 7 - 1);
806
+ return t.getMonth(e) === t.getMonth(l) ? Ze : yo;
807
807
  }
808
808
  function nt(e, t) {
809
809
  const o = t.startOfMonth(e), n = o.getDay();
@@ -821,15 +821,15 @@ class z {
821
821
  * @param overrides Custom overrides for the date library functions.
822
822
  */
823
823
  constructor(t, o) {
824
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? X.tz(this.options.timeZone) : new this.Date(), this.newDate = (n, a, d) => this.overrides?.newDate ? this.overrides.newDate(n, a, d) : this.options.timeZone ? new X(n, a, d, this.options.timeZone) : new Date(n, a, d), this.addDays = (n, a) => this.overrides?.addDays ? this.overrides.addDays(n, a) : Jt(n, a), this.addMonths = (n, a) => this.overrides?.addMonths ? this.overrides.addMonths(n, a) : Xt(n, a), this.addWeeks = (n, a) => this.overrides?.addWeeks ? this.overrides.addWeeks(n, a) : Qt(n, a), this.addYears = (n, a) => this.overrides?.addYears ? this.overrides.addYears(n, a) : en(n, a), this.differenceInCalendarDays = (n, a) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, a) : tn(n, a), this.differenceInCalendarMonths = (n, a) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, a) : nn(n, a), this.eachMonthOfInterval = (n) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : on(n), this.eachYearOfInterval = (n) => {
825
- const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(n) : an(n), d = new Set(a.map((s) => this.getYear(s)));
826
- if (d.size === a.length)
824
+ this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? X.tz(this.options.timeZone) : new this.Date(), this.newDate = (n, a, l) => this.overrides?.newDate ? this.overrides.newDate(n, a, l) : this.options.timeZone ? new X(n, a, l, this.options.timeZone) : new Date(n, a, l), this.addDays = (n, a) => this.overrides?.addDays ? this.overrides.addDays(n, a) : Jt(n, a), this.addMonths = (n, a) => this.overrides?.addMonths ? this.overrides.addMonths(n, a) : Xt(n, a), this.addWeeks = (n, a) => this.overrides?.addWeeks ? this.overrides.addWeeks(n, a) : Qt(n, a), this.addYears = (n, a) => this.overrides?.addYears ? this.overrides.addYears(n, a) : en(n, a), this.differenceInCalendarDays = (n, a) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, a) : tn(n, a), this.differenceInCalendarMonths = (n, a) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, a) : nn(n, a), this.eachMonthOfInterval = (n) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : on(n), this.eachYearOfInterval = (n) => {
825
+ const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(n) : an(n), l = new Set(a.map((s) => this.getYear(s)));
826
+ if (l.size === a.length)
827
827
  return a;
828
828
  const r = [];
829
- return d.forEach((s) => {
829
+ return l.forEach((s) => {
830
830
  r.push(new Date(s, 0, 1));
831
831
  }), r;
832
- }, this.endOfBroadcastWeek = (n) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : bo(n, this), this.endOfISOWeek = (n) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(n) : rn(n), this.endOfMonth = (n) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(n) : sn(n), this.endOfWeek = (n, a) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(n, a) : dn(n, this.options), this.endOfYear = (n) => this.overrides?.endOfYear ? this.overrides.endOfYear(n) : ln(n), this.format = (n, a, d) => {
832
+ }, this.endOfBroadcastWeek = (n) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : bo(n, this), this.endOfISOWeek = (n) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(n) : rn(n), this.endOfMonth = (n) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(n) : sn(n), this.endOfWeek = (n, a) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(n, a) : ln(n, this.options), this.endOfYear = (n) => this.overrides?.endOfYear ? this.overrides.endOfYear(n) : dn(n), this.format = (n, a, l) => {
833
833
  const r = this.overrides?.format ? this.overrides.format(n, a, this.options) : un(n, a, this.options);
834
834
  return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(r) : r;
835
835
  }, this.getISOWeek = (n) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(n) : cn(n), this.getMonth = (n, a) => this.overrides?.getMonth ? this.overrides.getMonth(n, this.options) : fn(n, this.options), this.getYear = (n, a) => this.overrides?.getYear ? this.overrides.getYear(n, this.options) : hn(n, this.options), this.getWeek = (n, a) => this.overrides?.getWeek ? this.overrides.getWeek(n, this.options) : mn(n, this.options), this.isAfter = (n, a) => this.overrides?.isAfter ? this.overrides.isAfter(n, a) : pn(n, a), this.isBefore = (n, a) => this.overrides?.isBefore ? this.overrides.isBefore(n, a) : yn(n, a), this.isDate = (n) => this.overrides?.isDate ? this.overrides.isDate(n) : gn(n), this.isSameDay = (n, a) => this.overrides?.isSameDay ? this.overrides.isSameDay(n, a) : bn(n, a), this.isSameMonth = (n, a) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(n, a) : vn(n, a), this.isSameYear = (n, a) => this.overrides?.isSameYear ? this.overrides.isSameYear(n, a) : wn(n, a), this.max = (n) => this.overrides?.max ? this.overrides.max(n) : kn(n), this.min = (n) => this.overrides?.min ? this.overrides.min(n) : Mn(n), this.setMonth = (n, a) => this.overrides?.setMonth ? this.overrides.setMonth(n, a) : Dn(n, a), this.setYear = (n, a) => this.overrides?.setYear ? this.overrides.setYear(n, a) : Cn(n, a), this.startOfBroadcastWeek = (n, a) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) : nt(n, this), this.startOfDay = (n) => this.overrides?.startOfDay ? this.overrides.startOfDay(n) : On(n), this.startOfISOWeek = (n) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(n) : xn(n), this.startOfMonth = (n) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(n) : Sn(n), this.startOfWeek = (n, a) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(n, this.options) : Wn(n, this.options), this.startOfYear = (n) => this.overrides?.startOfYear ? this.overrides.startOfYear(n) : Nn(n), this.options = { locale: tt, ...t }, this.overrides = o;
@@ -884,10 +884,10 @@ class z {
884
884
  * @since 9.11.0
885
885
  */
886
886
  formatMonthYear(t) {
887
- const { locale: o, timeZone: n, numerals: a } = this.options, d = o?.code;
888
- if (d && z.yearFirstLocales.has(d))
887
+ const { locale: o, timeZone: n, numerals: a } = this.options, l = o?.code;
888
+ if (l && z.yearFirstLocales.has(l))
889
889
  try {
890
- return new Intl.DateTimeFormat(d, {
890
+ return new Intl.DateTimeFormat(l, {
891
891
  month: "long",
892
892
  year: "numeric",
893
893
  timeZone: n,
@@ -991,11 +991,11 @@ var A;
991
991
  e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
992
992
  })(A || (A = {}));
993
993
  function xo(e) {
994
- const { options: t, className: o, components: n, classNames: a, ...d } = e, r = [a[p.Dropdown], o].join(" "), s = t?.find(({ value: i }) => i === d.value);
994
+ const { options: t, className: o, components: n, classNames: a, ...l } = e, r = [a[p.Dropdown], o].join(" "), s = t?.find(({ value: i }) => i === l.value);
995
995
  return c.createElement(
996
996
  "span",
997
- { "data-disabled": d.disabled, className: a[p.DropdownRoot] },
998
- c.createElement(n.Select, { className: r, ...d }, t?.map(({ value: i, label: l, disabled: f }) => c.createElement(n.Option, { key: i, value: i, disabled: f }, l))),
997
+ { "data-disabled": l.disabled, className: a[p.DropdownRoot] },
998
+ c.createElement(n.Select, { className: r, ...l }, t?.map(({ value: i, label: d, disabled: f }) => c.createElement(n.Option, { key: i, value: i, disabled: f }, d))),
999
999
  c.createElement(
1000
1000
  "span",
1001
1001
  { className: a[p.CaptionLabel], "aria-hidden": !0 },
@@ -1025,25 +1025,25 @@ function Eo(e) {
1025
1025
  return c.createElement("div", { ...e });
1026
1026
  }
1027
1027
  const at = Vt(void 0);
1028
- function le() {
1028
+ function de() {
1029
1029
  const e = Zt(at);
1030
1030
  if (e === void 0)
1031
1031
  throw new Error("useDayPicker() must be used within a custom component.");
1032
1032
  return e;
1033
1033
  }
1034
1034
  function Po(e) {
1035
- const { components: t } = le();
1035
+ const { components: t } = de();
1036
1036
  return c.createElement(t.Dropdown, { ...e });
1037
1037
  }
1038
1038
  function Bo(e) {
1039
- const { onPreviousClick: t, onNextClick: o, previousMonth: n, nextMonth: a, ...d } = e, { components: r, classNames: s, labels: { labelPrevious: i, labelNext: l } } = le(), f = H((h) => {
1039
+ const { onPreviousClick: t, onNextClick: o, previousMonth: n, nextMonth: a, ...l } = e, { components: r, classNames: s, labels: { labelPrevious: i, labelNext: d } } = de(), f = H((h) => {
1040
1040
  a && o?.(h);
1041
1041
  }, [a, o]), u = H((h) => {
1042
1042
  n && t?.(h);
1043
1043
  }, [n, t]);
1044
1044
  return c.createElement(
1045
1045
  "nav",
1046
- { ...d },
1046
+ { ...l },
1047
1047
  c.createElement(
1048
1048
  r.PreviousMonthButton,
1049
1049
  { type: "button", className: s[p.PreviousMonthButton], tabIndex: n ? void 0 : -1, "aria-disabled": n ? void 0 : !0, "aria-label": i(n), onClick: u },
@@ -1051,20 +1051,20 @@ function Bo(e) {
1051
1051
  ),
1052
1052
  c.createElement(
1053
1053
  r.NextMonthButton,
1054
- { type: "button", className: s[p.NextMonthButton], tabIndex: a ? void 0 : -1, "aria-disabled": a ? void 0 : !0, "aria-label": l(a), onClick: f },
1054
+ { type: "button", className: s[p.NextMonthButton], tabIndex: a ? void 0 : -1, "aria-disabled": a ? void 0 : !0, "aria-label": d(a), onClick: f },
1055
1055
  c.createElement(r.Chevron, { disabled: a ? void 0 : !0, orientation: "right", className: s[p.Chevron] })
1056
1056
  )
1057
1057
  );
1058
1058
  }
1059
1059
  function Io(e) {
1060
- const { components: t } = le();
1060
+ const { components: t } = de();
1061
1061
  return c.createElement(t.Button, { ...e });
1062
1062
  }
1063
1063
  function Yo(e) {
1064
1064
  return c.createElement("option", { ...e });
1065
1065
  }
1066
1066
  function Fo(e) {
1067
- const { components: t } = le();
1067
+ const { components: t } = de();
1068
1068
  return c.createElement(t.Button, { ...e });
1069
1069
  }
1070
1070
  function Ao(e) {
@@ -1099,7 +1099,7 @@ function $o(e) {
1099
1099
  return c.createElement("tbody", { ...e });
1100
1100
  }
1101
1101
  function Vo(e) {
1102
- const { components: t } = le();
1102
+ const { components: t } = de();
1103
1103
  return c.createElement(t.Dropdown, { ...e });
1104
1104
  }
1105
1105
  const Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1132,9 +1132,9 @@ const Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1132
1132
  YearsDropdown: Vo
1133
1133
  }, Symbol.toStringTag, { value: "Module" }));
1134
1134
  function Q(e, t, o = !1, n = L) {
1135
- let { from: a, to: d } = e;
1135
+ let { from: a, to: l } = e;
1136
1136
  const { differenceInCalendarDays: r, isSameDay: s } = n;
1137
- return a && d ? (r(d, a) < 0 && ([a, d] = [d, a]), r(t, a) >= (o ? 1 : 0) && r(d, t) >= (o ? 1 : 0)) : !o && d ? s(d, t) : !o && a ? s(a, t) : !1;
1137
+ return a && l ? (r(l, a) < 0 && ([a, l] = [l, a]), r(t, a) >= (o ? 1 : 0) && r(l, t) >= (o ? 1 : 0)) : !o && l ? s(l, t) : !o && a ? s(a, t) : !1;
1138
1138
  }
1139
1139
  function Be(e) {
1140
1140
  return !!(e && typeof e == "object" && "before" in e && "after" in e);
@@ -1155,7 +1155,7 @@ function st(e, t) {
1155
1155
  return Array.isArray(e) && e.every(t.isDate);
1156
1156
  }
1157
1157
  function ee(e, t, o = L) {
1158
- const n = Array.isArray(t) ? t : [t], { isSameDay: a, differenceInCalendarDays: d, isAfter: r } = o;
1158
+ const n = Array.isArray(t) ? t : [t], { isSameDay: a, differenceInCalendarDays: l, isAfter: r } = o;
1159
1159
  return n.some((s) => {
1160
1160
  if (typeof s == "boolean")
1161
1161
  return s;
@@ -1168,14 +1168,14 @@ function ee(e, t, o = L) {
1168
1168
  if (rt(s))
1169
1169
  return Array.isArray(s.dayOfWeek) ? s.dayOfWeek.includes(e.getDay()) : s.dayOfWeek === e.getDay();
1170
1170
  if (Be(s)) {
1171
- const i = d(s.before, e), l = d(s.after, e), f = i > 0, u = l < 0;
1171
+ const i = l(s.before, e), d = l(s.after, e), f = i > 0, u = d < 0;
1172
1172
  return r(s.before, s.after) ? u && f : f || u;
1173
1173
  }
1174
- return Ie(s) ? d(e, s.after) > 0 : Ye(s) ? d(s.before, e) > 0 : typeof s == "function" ? s(e) : !1;
1174
+ return Ie(s) ? l(e, s.after) > 0 : Ye(s) ? l(s.before, e) > 0 : typeof s == "function" ? s(e) : !1;
1175
1175
  });
1176
1176
  }
1177
1177
  function Uo(e, t, o, n, a) {
1178
- const { disabled: d, hidden: r, modifiers: s, showOutsideDays: i, broadcastCalendar: l, today: f = a.today() } = t, { isSameDay: u, isSameMonth: h, startOfMonth: b, isBefore: C, endOfMonth: W, isAfter: k } = a, O = o && b(o), T = n && W(n), w = {
1178
+ const { disabled: l, hidden: r, modifiers: s, showOutsideDays: i, broadcastCalendar: d, today: f = a.today() } = t, { isSameDay: u, isSameMonth: h, startOfMonth: b, isBefore: C, endOfMonth: W, isAfter: k } = a, O = o && b(o), T = n && W(n), w = {
1179
1179
  [B.focused]: [],
1180
1180
  [B.outside]: [],
1181
1181
  [B.disabled]: [],
@@ -1183,8 +1183,8 @@ function Uo(e, t, o, n, a) {
1183
1183
  [B.today]: []
1184
1184
  }, D = {};
1185
1185
  for (const g of e) {
1186
- const { date: m, displayMonth: x } = g, P = !!(x && !h(m, x)), Y = !!(O && C(m, O)), I = !!(T && k(m, T)), $ = !!(d && ee(m, d, a)), te = !!(r && ee(m, r, a)) || Y || I || // Broadcast calendar will show outside days as default
1187
- !l && !i && P || l && i === !1 && P, K = u(m, f);
1186
+ const { date: m, displayMonth: x } = g, P = !!(x && !h(m, x)), Y = !!(O && C(m, O)), I = !!(T && k(m, T)), $ = !!(l && ee(m, l, a)), te = !!(r && ee(m, r, a)) || Y || I || // Broadcast calendar will show outside days as default
1187
+ !d && !i && P || d && i === !1 && P, K = u(m, f);
1188
1188
  P && w.outside.push(g), $ && w.disabled.push(g), te && w.hidden.push(g), K && w.today.push(g), s && Object.keys(s).forEach((j) => {
1189
1189
  const oe = s?.[j];
1190
1190
  oe && ee(m, oe, a) && (D[j] ? D[j].push(g) : D[j] = [g]);
@@ -1212,7 +1212,7 @@ function Uo(e, t, o, n, a) {
1212
1212
  };
1213
1213
  }
1214
1214
  function Lo(e, t, o = {}) {
1215
- return Object.entries(e).filter(([, a]) => a === !0).reduce((a, [d]) => (o[d] ? a.push(o[d]) : t[B[d]] ? a.push(t[B[d]]) : t[R[d]] && a.push(t[R[d]]), a), [t[p.Day]]);
1215
+ return Object.entries(e).filter(([, a]) => a === !0).reduce((a, [l]) => (o[l] ? a.push(o[l]) : t[B[l]] ? a.push(t[B[l]]) : t[R[l]] && a.push(t[R[l]]), a), [t[p.Day]]);
1216
1216
  }
1217
1217
  function Ko(e) {
1218
1218
  return {
@@ -1264,10 +1264,10 @@ function na(e, t = L) {
1264
1264
  function oa() {
1265
1265
  return "";
1266
1266
  }
1267
- function dt(e, t = L) {
1267
+ function lt(e, t = L) {
1268
1268
  return t.format(e, "yyyy");
1269
1269
  }
1270
- const aa = dt, ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1270
+ const aa = lt, ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1271
1271
  __proto__: null,
1272
1272
  formatCaption: it,
1273
1273
  formatDay: Qo,
@@ -1277,7 +1277,7 @@ const aa = dt, ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1277
1277
  formatWeekNumberHeader: oa,
1278
1278
  formatWeekdayName: ta,
1279
1279
  formatYearCaption: aa,
1280
- formatYearDropdown: dt
1280
+ formatYearDropdown: lt
1281
1281
  }, Symbol.toStringTag, { value: "Module" }));
1282
1282
  function sa(e) {
1283
1283
  return e?.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e?.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
@@ -1286,16 +1286,16 @@ function sa(e) {
1286
1286
  };
1287
1287
  }
1288
1288
  function ia(e, t, o, n, a) {
1289
- const { startOfMonth: d, startOfYear: r, endOfYear: s, eachMonthOfInterval: i, getMonth: l } = a;
1289
+ const { startOfMonth: l, startOfYear: r, endOfYear: s, eachMonthOfInterval: i, getMonth: d } = a;
1290
1290
  return i({
1291
1291
  start: r(e),
1292
1292
  end: s(e)
1293
1293
  }).map((h) => {
1294
- const b = n.formatMonthDropdown(h, a), C = l(h), W = t && h < d(t) || o && h > d(o) || !1;
1294
+ const b = n.formatMonthDropdown(h, a), C = d(h), W = t && h < l(t) || o && h > l(o) || !1;
1295
1295
  return { value: C, label: b, disabled: W };
1296
1296
  });
1297
1297
  }
1298
- function da(e, t = {}, o = {}) {
1298
+ function la(e, t = {}, o = {}) {
1299
1299
  let n = { ...t?.[p.Day] };
1300
1300
  return Object.entries(e).filter(([, a]) => a === !0).forEach(([a]) => {
1301
1301
  n = {
@@ -1304,10 +1304,10 @@ function da(e, t = {}, o = {}) {
1304
1304
  };
1305
1305
  }), n;
1306
1306
  }
1307
- function la(e, t, o, n) {
1308
- const a = n ?? e.today(), d = o ? e.startOfBroadcastWeek(a, e) : t ? e.startOfISOWeek(a) : e.startOfWeek(a), r = [];
1307
+ function da(e, t, o, n) {
1308
+ const a = n ?? e.today(), l = o ? e.startOfBroadcastWeek(a, e) : t ? e.startOfISOWeek(a) : e.startOfWeek(a), r = [];
1309
1309
  for (let s = 0; s < 7; s++) {
1310
- const i = e.addDays(d, s);
1310
+ const i = e.addDays(l, s);
1311
1311
  r.push(i);
1312
1312
  }
1313
1313
  return r;
@@ -1315,7 +1315,7 @@ function la(e, t, o, n) {
1315
1315
  function ua(e, t, o, n, a = !1) {
1316
1316
  if (!e || !t)
1317
1317
  return;
1318
- const { startOfYear: d, endOfYear: r, eachYearOfInterval: s, getYear: i } = n, l = d(e), f = r(t), u = s({ start: l, end: f });
1318
+ const { startOfYear: l, endOfYear: r, eachYearOfInterval: s, getYear: i } = n, d = l(e), f = r(t), u = s({ start: d, end: f });
1319
1319
  return a && u.reverse(), u.map((h) => {
1320
1320
  const b = o.formatYearDropdown(h, n);
1321
1321
  return {
@@ -1325,11 +1325,11 @@ function ua(e, t, o, n, a = !1) {
1325
1325
  };
1326
1326
  });
1327
1327
  }
1328
- function lt(e, t, o, n) {
1328
+ function dt(e, t, o, n) {
1329
1329
  let a = (n ?? new z(o)).format(e, "PPPP");
1330
1330
  return t.today && (a = `Today, ${a}`), t.selected && (a = `${a}, selected`), a;
1331
1331
  }
1332
- const ca = lt;
1332
+ const ca = dt;
1333
1333
  function ut(e, t, o) {
1334
1334
  return (o ?? new z(t)).formatMonthYear(e);
1335
1335
  }
@@ -1366,7 +1366,7 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1366
1366
  __proto__: null,
1367
1367
  labelCaption: fa,
1368
1368
  labelDay: ca,
1369
- labelDayButton: lt,
1369
+ labelDayButton: dt,
1370
1370
  labelGrid: ut,
1371
1371
  labelGridcell: ha,
1372
1372
  labelMonthDropdown: ma,
@@ -1380,15 +1380,15 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1380
1380
  }, Symbol.toStringTag, { value: "Module" })), ue = (e) => e instanceof HTMLElement ? e : null, We = (e) => [
1381
1381
  ...e.querySelectorAll("[data-animated-month]") ?? []
1382
1382
  ], Da = (e) => ue(e.querySelector("[data-animated-month]")), Ne = (e) => ue(e.querySelector("[data-animated-caption]")), Te = (e) => ue(e.querySelector("[data-animated-weeks]")), Ca = (e) => ue(e.querySelector("[data-animated-nav]")), Oa = (e) => ue(e.querySelector("[data-animated-weekdays]"));
1383
- function xa(e, t, { classNames: o, months: n, focused: a, dateLib: d }) {
1383
+ function xa(e, t, { classNames: o, months: n, focused: a, dateLib: l }) {
1384
1384
  const r = me(null), s = me(n), i = me(!1);
1385
1385
  Ut(() => {
1386
- const l = s.current;
1386
+ const d = s.current;
1387
1387
  if (s.current = n, !t || !e.current || // safety check because the ref can be set to anything by consumers
1388
1388
  !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
1389
- n.length === 0 || l.length === 0 || n.length !== l.length)
1389
+ n.length === 0 || d.length === 0 || n.length !== d.length)
1390
1390
  return;
1391
- const f = d.isSameMonth(n[0].date, l[0].date), u = d.isAfter(n[0].date, l[0].date), h = u ? o[A.caption_after_enter] : o[A.caption_before_enter], b = u ? o[A.weeks_after_enter] : o[A.weeks_before_enter], C = r.current, W = e.current.cloneNode(!0);
1391
+ const f = l.isSameMonth(n[0].date, d[0].date), u = l.isAfter(n[0].date, d[0].date), h = u ? o[A.caption_after_enter] : o[A.caption_before_enter], b = u ? o[A.weeks_after_enter] : o[A.weeks_before_enter], C = r.current, W = e.current.cloneNode(!0);
1392
1392
  if (W instanceof HTMLElement ? (We(W).forEach((w) => {
1393
1393
  if (!(w instanceof HTMLElement))
1394
1394
  return;
@@ -1429,16 +1429,16 @@ function xa(e, t, { classNames: o, months: n, focused: a, dateLib: d }) {
1429
1429
  });
1430
1430
  }
1431
1431
  function Sa(e, t, o, n) {
1432
- const a = e[0], d = e[e.length - 1], { ISOWeek: r, fixedWeeks: s, broadcastCalendar: i } = o ?? {}, { addDays: l, differenceInCalendarDays: f, differenceInCalendarMonths: u, endOfBroadcastWeek: h, endOfISOWeek: b, endOfMonth: C, endOfWeek: W, isAfter: k, startOfBroadcastWeek: O, startOfISOWeek: T, startOfWeek: w } = n, D = i ? O(a, n) : r ? T(a) : w(a), g = i ? h(d) : r ? b(C(d)) : W(C(d)), m = t && (i ? h(t) : r ? b(t) : W(t)), x = m && k(g, m) ? m : g, P = f(x, D), Y = u(d, a) + 1, I = [];
1432
+ const a = e[0], l = e[e.length - 1], { ISOWeek: r, fixedWeeks: s, broadcastCalendar: i } = o ?? {}, { addDays: d, differenceInCalendarDays: f, differenceInCalendarMonths: u, endOfBroadcastWeek: h, endOfISOWeek: b, endOfMonth: C, endOfWeek: W, isAfter: k, startOfBroadcastWeek: O, startOfISOWeek: T, startOfWeek: w } = n, D = i ? O(a, n) : r ? T(a) : w(a), g = i ? h(l) : r ? b(C(l)) : W(C(l)), m = t && (i ? h(t) : r ? b(t) : W(t)), x = m && k(g, m) ? m : g, P = f(x, D), Y = u(l, a) + 1, I = [];
1433
1433
  for (let K = 0; K <= P; K++) {
1434
- const j = l(D, K);
1434
+ const j = d(D, K);
1435
1435
  I.push(j);
1436
1436
  }
1437
1437
  const te = (i ? 35 : 42) * Y;
1438
1438
  if (s && I.length < te) {
1439
1439
  const K = te - I.length;
1440
1440
  for (let j = 0; j < K; j++) {
1441
- const oe = l(I[I.length - 1], 1);
1441
+ const oe = d(I[I.length - 1], 1);
1442
1442
  I.push(oe);
1443
1443
  }
1444
1444
  }
@@ -1447,33 +1447,33 @@ function Sa(e, t, o, n) {
1447
1447
  function Wa(e) {
1448
1448
  const t = [];
1449
1449
  return e.reduce((o, n) => {
1450
- const a = n.weeks.reduce((d, r) => d.concat(r.days.slice()), t.slice());
1450
+ const a = n.weeks.reduce((l, r) => l.concat(r.days.slice()), t.slice());
1451
1451
  return o.concat(a.slice());
1452
1452
  }, t.slice());
1453
1453
  }
1454
1454
  function Na(e, t, o, n) {
1455
- const { numberOfMonths: a = 1 } = o, d = [];
1455
+ const { numberOfMonths: a = 1 } = o, l = [];
1456
1456
  for (let r = 0; r < a; r++) {
1457
1457
  const s = n.addMonths(e, r);
1458
1458
  if (t && s > t)
1459
1459
  break;
1460
- d.push(s);
1460
+ l.push(s);
1461
1461
  }
1462
- return d;
1462
+ return l;
1463
1463
  }
1464
1464
  function Ue(e, t, o, n) {
1465
- const { month: a, defaultMonth: d, today: r = n.today(), numberOfMonths: s = 1 } = e;
1466
- let i = a || d || r;
1467
- const { differenceInCalendarMonths: l, addMonths: f, startOfMonth: u } = n;
1468
- if (o && l(o, i) < s - 1) {
1465
+ const { month: a, defaultMonth: l, today: r = n.today(), numberOfMonths: s = 1 } = e;
1466
+ let i = a || l || r;
1467
+ const { differenceInCalendarMonths: d, addMonths: f, startOfMonth: u } = n;
1468
+ if (o && d(o, i) < s - 1) {
1469
1469
  const h = -1 * (s - 1);
1470
1470
  i = f(o, h);
1471
1471
  }
1472
- return t && l(i, t) < 0 && (i = t), u(i);
1472
+ return t && d(i, t) < 0 && (i = t), u(i);
1473
1473
  }
1474
1474
  function Ta(e, t, o, n) {
1475
- const { addDays: a, endOfBroadcastWeek: d, endOfISOWeek: r, endOfMonth: s, endOfWeek: i, getISOWeek: l, getWeek: f, startOfBroadcastWeek: u, startOfISOWeek: h, startOfWeek: b } = n, C = e.reduce((W, k) => {
1476
- const O = o.broadcastCalendar ? u(k, n) : o.ISOWeek ? h(k) : b(k), T = o.broadcastCalendar ? d(k) : o.ISOWeek ? r(s(k)) : i(s(k)), w = t.filter((x) => x >= O && x <= T), D = o.broadcastCalendar ? 35 : 42;
1475
+ const { addDays: a, endOfBroadcastWeek: l, endOfISOWeek: r, endOfMonth: s, endOfWeek: i, getISOWeek: d, getWeek: f, startOfBroadcastWeek: u, startOfISOWeek: h, startOfWeek: b } = n, C = e.reduce((W, k) => {
1476
+ const O = o.broadcastCalendar ? u(k, n) : o.ISOWeek ? h(k) : b(k), T = o.broadcastCalendar ? l(k) : o.ISOWeek ? r(s(k)) : i(s(k)), w = t.filter((x) => x >= O && x <= T), D = o.broadcastCalendar ? 35 : 42;
1477
1477
  if (o.fixedWeeks && w.length < D) {
1478
1478
  const x = t.filter((P) => {
1479
1479
  const Y = D - w.length;
@@ -1482,7 +1482,7 @@ function Ta(e, t, o, n) {
1482
1482
  w.push(...x);
1483
1483
  }
1484
1484
  const g = w.reduce((x, P) => {
1485
- const Y = o.ISOWeek ? l(P) : f(P), I = x.find((te) => te.weekNumber === Y), $ = new ot(P, k, n);
1485
+ const Y = o.ISOWeek ? d(P) : f(P), I = x.find((te) => te.weekNumber === Y), $ = new ot(P, k, n);
1486
1486
  return I ? I.days.push($) : x.push(new wo(Y, [$])), x;
1487
1487
  }, []), m = new vo(k, g);
1488
1488
  return W.push(m), W;
@@ -1491,31 +1491,31 @@ function Ta(e, t, o, n) {
1491
1491
  }
1492
1492
  function _a(e, t) {
1493
1493
  let { startMonth: o, endMonth: n } = e;
1494
- const { startOfYear: a, startOfDay: d, startOfMonth: r, endOfMonth: s, addYears: i, endOfYear: l, newDate: f, today: u } = t, { fromYear: h, toYear: b, fromMonth: C, toMonth: W } = e;
1494
+ const { startOfYear: a, startOfDay: l, startOfMonth: r, endOfMonth: s, addYears: i, endOfYear: d, newDate: f, today: u } = t, { fromYear: h, toYear: b, fromMonth: C, toMonth: W } = e;
1495
1495
  !o && C && (o = C), !o && h && (o = t.newDate(h, 0, 1)), !n && W && (n = W), !n && b && (n = f(b, 11, 31));
1496
1496
  const k = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
1497
- return o ? o = r(o) : h ? o = f(h, 0, 1) : !o && k && (o = a(i(e.today ?? u(), -100))), n ? n = s(n) : b ? n = f(b, 11, 31) : !n && k && (n = l(e.today ?? u())), [
1498
- o && d(o),
1499
- n && d(n)
1497
+ return o ? o = r(o) : h ? o = f(h, 0, 1) : !o && k && (o = a(i(e.today ?? u(), -100))), n ? n = s(n) : b ? n = f(b, 11, 31) : !n && k && (n = d(e.today ?? u())), [
1498
+ o && l(o),
1499
+ n && l(n)
1500
1500
  ];
1501
1501
  }
1502
1502
  function Ea(e, t, o, n) {
1503
1503
  if (o.disableNavigation)
1504
1504
  return;
1505
- const { pagedNavigation: a, numberOfMonths: d = 1 } = o, { startOfMonth: r, addMonths: s, differenceInCalendarMonths: i } = n, l = a ? d : 1, f = r(e);
1505
+ const { pagedNavigation: a, numberOfMonths: l = 1 } = o, { startOfMonth: r, addMonths: s, differenceInCalendarMonths: i } = n, d = a ? l : 1, f = r(e);
1506
1506
  if (!t)
1507
- return s(f, l);
1508
- if (!(i(t, e) < d))
1509
- return s(f, l);
1507
+ return s(f, d);
1508
+ if (!(i(t, e) < l))
1509
+ return s(f, d);
1510
1510
  }
1511
1511
  function Pa(e, t, o, n) {
1512
1512
  if (o.disableNavigation)
1513
1513
  return;
1514
- const { pagedNavigation: a, numberOfMonths: d } = o, { startOfMonth: r, addMonths: s, differenceInCalendarMonths: i } = n, l = a ? d ?? 1 : 1, f = r(e);
1514
+ const { pagedNavigation: a, numberOfMonths: l } = o, { startOfMonth: r, addMonths: s, differenceInCalendarMonths: i } = n, d = a ? l ?? 1 : 1, f = r(e);
1515
1515
  if (!t)
1516
- return s(f, -l);
1516
+ return s(f, -d);
1517
1517
  if (!(i(f, t) <= 0))
1518
- return s(f, -l);
1518
+ return s(f, -d);
1519
1519
  }
1520
1520
  function Ba(e) {
1521
1521
  const t = [];
@@ -1526,7 +1526,7 @@ function ge(e, t) {
1526
1526
  return [t === void 0 ? o : t, n];
1527
1527
  }
1528
1528
  function Ia(e, t) {
1529
- const [o, n] = _a(e, t), { startOfMonth: a, endOfMonth: d } = t, r = Ue(e, o, n, t), [s, i] = ge(
1529
+ const [o, n] = _a(e, t), { startOfMonth: a, endOfMonth: l } = t, r = Ue(e, o, n, t), [s, i] = ge(
1530
1530
  r,
1531
1531
  // initialMonth is always computed from props.month if provided
1532
1532
  e.month ? r : void 0
@@ -1535,8 +1535,8 @@ function Ia(e, t) {
1535
1535
  const D = Ue(e, o, n, t);
1536
1536
  i(D);
1537
1537
  }, [e.timeZone]);
1538
- const { months: l, weeks: f, days: u, previousMonth: h, nextMonth: b } = ie(() => {
1539
- const D = Na(s, n, { numberOfMonths: e.numberOfMonths }, t), g = Sa(D, e.endMonth ? d(e.endMonth) : void 0, {
1538
+ const { months: d, weeks: f, days: u, previousMonth: h, nextMonth: b } = ie(() => {
1539
+ const D = Na(s, n, { numberOfMonths: e.numberOfMonths }, t), g = Sa(D, e.endMonth ? l(e.endMonth) : void 0, {
1540
1540
  ISOWeek: e.ISOWeek,
1541
1541
  fixedWeeks: e.fixedWeeks,
1542
1542
  broadcastCalendar: e.broadcastCalendar
@@ -1573,7 +1573,7 @@ function Ia(e, t) {
1573
1573
  o && g < a(o) && (g = a(o)), n && g > a(n) && (g = a(n)), i(g), W?.(g);
1574
1574
  };
1575
1575
  return {
1576
- months: l,
1576
+ months: d,
1577
1577
  weeks: f,
1578
1578
  days: u,
1579
1579
  navStart: o,
@@ -1594,17 +1594,17 @@ function Le(e) {
1594
1594
  return !e[B.disabled] && !e[B.hidden] && !e[B.outside];
1595
1595
  }
1596
1596
  function Ya(e, t, o, n) {
1597
- let a, d = -1;
1597
+ let a, l = -1;
1598
1598
  for (const r of e) {
1599
1599
  const s = t(r);
1600
- Le(s) && (s[B.focused] && d < Z.FocusedModifier ? (a = r, d = Z.FocusedModifier) : n?.isEqualTo(r) && d < Z.LastFocused ? (a = r, d = Z.LastFocused) : o(r.date) && d < Z.Selected ? (a = r, d = Z.Selected) : s[B.today] && d < Z.Today && (a = r, d = Z.Today));
1600
+ Le(s) && (s[B.focused] && l < Z.FocusedModifier ? (a = r, l = Z.FocusedModifier) : n?.isEqualTo(r) && l < Z.LastFocused ? (a = r, l = Z.LastFocused) : o(r.date) && l < Z.Selected ? (a = r, l = Z.Selected) : s[B.today] && l < Z.Today && (a = r, l = Z.Today));
1601
1601
  }
1602
1602
  return a || (a = e.find((r) => Le(t(r)))), a;
1603
1603
  }
1604
- function Fa(e, t, o, n, a, d, r) {
1605
- const { ISOWeek: s, broadcastCalendar: i } = d, { addDays: l, addMonths: f, addWeeks: u, addYears: h, endOfBroadcastWeek: b, endOfISOWeek: C, endOfWeek: W, max: k, min: O, startOfBroadcastWeek: T, startOfISOWeek: w, startOfWeek: D } = r;
1604
+ function Fa(e, t, o, n, a, l, r) {
1605
+ const { ISOWeek: s, broadcastCalendar: i } = l, { addDays: d, addMonths: f, addWeeks: u, addYears: h, endOfBroadcastWeek: b, endOfISOWeek: C, endOfWeek: W, max: k, min: O, startOfBroadcastWeek: T, startOfISOWeek: w, startOfWeek: D } = r;
1606
1606
  let m = {
1607
- day: l,
1607
+ day: d,
1608
1608
  week: u,
1609
1609
  month: f,
1610
1610
  year: h,
@@ -1613,36 +1613,36 @@ function Fa(e, t, o, n, a, d, r) {
1613
1613
  }[e](o, t === "after" ? 1 : -1);
1614
1614
  return t === "before" && n ? m = k([n, m]) : t === "after" && a && (m = O([a, m])), m;
1615
1615
  }
1616
- function ct(e, t, o, n, a, d, r, s = 0) {
1616
+ function ct(e, t, o, n, a, l, r, s = 0) {
1617
1617
  if (s > 365)
1618
1618
  return;
1619
- const i = Fa(e, t, o.date, n, a, d, r), l = !!(d.disabled && ee(i, d.disabled, r)), f = !!(d.hidden && ee(i, d.hidden, r)), u = i, h = new ot(i, u, r);
1620
- return !l && !f ? h : ct(e, t, h, n, a, d, r, s + 1);
1619
+ const i = Fa(e, t, o.date, n, a, l, r), d = !!(l.disabled && ee(i, l.disabled, r)), f = !!(l.hidden && ee(i, l.hidden, r)), u = i, h = new ot(i, u, r);
1620
+ return !d && !f ? h : ct(e, t, h, n, a, l, r, s + 1);
1621
1621
  }
1622
1622
  function Aa(e, t, o, n, a) {
1623
- const { autoFocus: d } = e, [r, s] = Ee(), i = Ya(t.days, o, n || (() => !1), r), [l, f] = Ee(d ? i : void 0);
1623
+ const { autoFocus: l } = e, [r, s] = Ee(), i = Ya(t.days, o, n || (() => !1), r), [d, f] = Ee(l ? i : void 0);
1624
1624
  return {
1625
1625
  isFocusTarget: (W) => !!i?.isEqualTo(W),
1626
1626
  setFocused: f,
1627
- focused: l,
1627
+ focused: d,
1628
1628
  blur: () => {
1629
- s(l), f(void 0);
1629
+ s(d), f(void 0);
1630
1630
  },
1631
1631
  moveFocus: (W, k) => {
1632
- if (!l)
1632
+ if (!d)
1633
1633
  return;
1634
- const O = ct(W, k, l, t.navStart, t.navEnd, e, a);
1634
+ const O = ct(W, k, d, t.navStart, t.navEnd, e, a);
1635
1635
  O && (e.disableNavigation && !t.days.some((w) => w.isEqualTo(O)) || (t.goToDay(O), f(O)));
1636
1636
  }
1637
1637
  };
1638
1638
  }
1639
1639
  function za(e, t) {
1640
- const { selected: o, required: n, onSelect: a } = e, [d, r] = ge(o, a ? o : void 0), s = a ? o : d, { isSameDay: i } = t, l = (b) => s?.some((C) => i(C, b)) ?? !1, { min: f, max: u } = e;
1640
+ const { selected: o, required: n, onSelect: a } = e, [l, r] = ge(o, a ? o : void 0), s = a ? o : l, { isSameDay: i } = t, d = (b) => s?.some((C) => i(C, b)) ?? !1, { min: f, max: u } = e;
1641
1641
  return {
1642
1642
  selected: s,
1643
1643
  select: (b, C, W) => {
1644
1644
  let k = [...s ?? []];
1645
- if (l(b)) {
1645
+ if (d(b)) {
1646
1646
  if (s?.length === f || n && s?.length === 1)
1647
1647
  return;
1648
1648
  k = s?.filter((O) => !i(O, b));
@@ -1650,11 +1650,11 @@ function za(e, t) {
1650
1650
  s?.length === u ? k = [b] : k = [...k, b];
1651
1651
  return a || r(k), a?.(k, b, C, W), k;
1652
1652
  },
1653
- isSelected: l
1653
+ isSelected: d
1654
1654
  };
1655
1655
  }
1656
- function ja(e, t, o = 0, n = 0, a = !1, d = L) {
1657
- const { from: r, to: s } = t || {}, { isSameDay: i, isAfter: l, isBefore: f } = d;
1656
+ function ja(e, t, o = 0, n = 0, a = !1, l = L) {
1657
+ const { from: r, to: s } = t || {}, { isSameDay: i, isAfter: d, isBefore: f } = l;
1658
1658
  let u;
1659
1659
  if (!r && !s)
1660
1660
  u = { from: e, to: o > 0 ? void 0 : e };
@@ -1669,14 +1669,14 @@ function ja(e, t, o = 0, n = 0, a = !1, d = L) {
1669
1669
  u = { from: e, to: o > 0 ? void 0 : e };
1670
1670
  else if (f(e, r))
1671
1671
  u = { from: e, to: s };
1672
- else if (l(e, r))
1672
+ else if (d(e, r))
1673
1673
  u = { from: r, to: e };
1674
- else if (l(e, s))
1674
+ else if (d(e, s))
1675
1675
  u = { from: r, to: e };
1676
1676
  else
1677
1677
  throw new Error("Invalid range");
1678
1678
  if (u?.from && u?.to) {
1679
- const h = d.differenceInCalendarDays(u.to, u.from);
1679
+ const h = l.differenceInCalendarDays(u.to, u.from);
1680
1680
  n > 0 && h > n ? u = { from: e, to: void 0 } : o > 1 && h < o && (u = { from: e, to: void 0 });
1681
1681
  }
1682
1682
  return u;
@@ -1684,7 +1684,7 @@ function ja(e, t, o = 0, n = 0, a = !1, d = L) {
1684
1684
  function Ha(e, t, o = L) {
1685
1685
  const n = Array.isArray(t) ? t : [t];
1686
1686
  let a = e.from;
1687
- const d = o.differenceInCalendarDays(e.to, e.from), r = Math.min(d, 6);
1687
+ const l = o.differenceInCalendarDays(e.to, e.from), r = Math.min(l, 6);
1688
1688
  for (let s = 0; s <= r; s++) {
1689
1689
  if (n.includes(a.getDay()))
1690
1690
  return !0;
@@ -1706,7 +1706,7 @@ function qa(e, t, o = L) {
1706
1706
  if (r.length) {
1707
1707
  let s = e.from;
1708
1708
  const i = o.differenceInCalendarDays(e.to, e.from);
1709
- for (let l = 0; l <= i; l++) {
1709
+ for (let d = 0; d <= i; d++) {
1710
1710
  if (r.some((f) => f(s)))
1711
1711
  return !0;
1712
1712
  s = o.addDays(s, 1);
@@ -1715,18 +1715,18 @@ function qa(e, t, o = L) {
1715
1715
  return !1;
1716
1716
  }
1717
1717
  function Ga(e, t) {
1718
- const { disabled: o, excludeDisabled: n, selected: a, required: d, onSelect: r } = e, [s, i] = ge(a, r ? a : void 0), l = r ? a : s;
1718
+ const { disabled: o, excludeDisabled: n, selected: a, required: l, onSelect: r } = e, [s, i] = ge(a, r ? a : void 0), d = r ? a : s;
1719
1719
  return {
1720
- selected: l,
1720
+ selected: d,
1721
1721
  select: (h, b, C) => {
1722
- const { min: W, max: k } = e, O = h ? ja(h, l, W, k, d, t) : void 0;
1722
+ const { min: W, max: k } = e, O = h ? ja(h, d, W, k, l, t) : void 0;
1723
1723
  return n && o && O?.from && O.to && qa({ from: O.from, to: O.to }, o, t) && (O.from = h, O.to = void 0), r || i(O), r?.(O, h, b, C), O;
1724
1724
  },
1725
- isSelected: (h) => l && Q(l, h, !1, t)
1725
+ isSelected: (h) => d && Q(d, h, !1, t)
1726
1726
  };
1727
1727
  }
1728
1728
  function Ra(e, t) {
1729
- const { selected: o, required: n, onSelect: a } = e, [d, r] = ge(o, a ? o : void 0), s = a ? o : d, { isSameDay: i } = t;
1729
+ const { selected: o, required: n, onSelect: a } = e, [l, r] = ge(o, a ? o : void 0), s = a ? o : l, { isSameDay: i } = t;
1730
1730
  return {
1731
1731
  selected: s,
1732
1732
  select: (u, h, b) => {
@@ -1784,7 +1784,7 @@ function Va(e) {
1784
1784
  M[E] = _e(t.modifiers?.[E], o);
1785
1785
  }), t.modifiers = M;
1786
1786
  }
1787
- const { components: n, formatters: a, labels: d, dateLib: r, locale: s, classNames: i } = ie(() => {
1787
+ const { components: n, formatters: a, labels: l, dateLib: r, locale: s, classNames: i } = ie(() => {
1788
1788
  const M = { ...tt, ...t.locale };
1789
1789
  return {
1790
1790
  dateLib: new z({
@@ -1818,7 +1818,7 @@ function Va(e) {
1818
1818
  t.classNames
1819
1819
  ]);
1820
1820
  t.today || (t = { ...t, today: r.today() });
1821
- const { captionLayout: l, mode: f, navLayout: u, numberOfMonths: h = 1, onDayBlur: b, onDayClick: C, onDayFocus: W, onDayKeyDown: k, onDayMouseEnter: O, onDayMouseLeave: T, onNextClick: w, onPrevClick: D, showWeekNumber: g, styles: m } = t, { formatCaption: x, formatDay: P, formatMonthDropdown: Y, formatWeekNumber: I, formatWeekNumberHeader: $, formatWeekdayName: te, formatYearDropdown: K } = a, j = Ia(t, r), { days: oe, months: ce, navStart: be, navEnd: ve, previousMonth: q, nextMonth: G, goToMonth: J } = j, we = Uo(oe, t, be, ve, r), { isSelected: ke, select: Me, selected: fe } = $a(t, r) ?? {}, { blur: Ae, focused: ze, isFocusTarget: ft, moveFocus: je, setFocused: he } = Aa(t, j, we, ke ?? (() => !1), r), { labelDayButton: ht, labelGridcell: mt, labelGrid: pt, labelMonthDropdown: yt, labelNav: He, labelPrevious: gt, labelNext: bt, labelWeekday: vt, labelWeekNumber: wt, labelWeekNumberHeader: kt, labelYearDropdown: Mt } = d, Dt = ie(() => la(r, t.ISOWeek, t.broadcastCalendar, t.today), [r, t.ISOWeek, t.broadcastCalendar, t.today]), qe = f !== void 0 || C !== void 0, De = H(() => {
1821
+ const { captionLayout: d, mode: f, navLayout: u, numberOfMonths: h = 1, onDayBlur: b, onDayClick: C, onDayFocus: W, onDayKeyDown: k, onDayMouseEnter: O, onDayMouseLeave: T, onNextClick: w, onPrevClick: D, showWeekNumber: g, styles: m } = t, { formatCaption: x, formatDay: P, formatMonthDropdown: Y, formatWeekNumber: I, formatWeekNumberHeader: $, formatWeekdayName: te, formatYearDropdown: K } = a, j = Ia(t, r), { days: oe, months: ce, navStart: be, navEnd: ve, previousMonth: q, nextMonth: G, goToMonth: J } = j, we = Uo(oe, t, be, ve, r), { isSelected: ke, select: Me, selected: fe } = $a(t, r) ?? {}, { blur: Ae, focused: ze, isFocusTarget: ft, moveFocus: je, setFocused: he } = Aa(t, j, we, ke ?? (() => !1), r), { labelDayButton: ht, labelGridcell: mt, labelGrid: pt, labelMonthDropdown: yt, labelNav: He, labelPrevious: gt, labelNext: bt, labelWeekday: vt, labelWeekNumber: wt, labelWeekNumberHeader: kt, labelYearDropdown: Mt } = l, Dt = ie(() => da(r, t.ISOWeek, t.broadcastCalendar, t.today), [r, t.ISOWeek, t.broadcastCalendar, t.today]), qe = f !== void 0 || C !== void 0, De = H(() => {
1822
1822
  q && (J(q), D?.(q));
1823
1823
  }, [q, J, D]), Ce = H(() => {
1824
1824
  G && (J(G), w?.(G));
@@ -1884,7 +1884,7 @@ function Va(e) {
1884
1884
  components: n,
1885
1885
  classNames: i,
1886
1886
  styles: m,
1887
- labels: d,
1887
+ labels: l,
1888
1888
  formatters: a
1889
1889
  };
1890
1890
  return c.createElement(
@@ -1913,11 +1913,11 @@ function Va(e) {
1913
1913
  { type: "button", className: i[p.PreviousMonthButton], tabIndex: q ? void 0 : -1, "aria-disabled": q ? void 0 : !0, "aria-label": gt(q), onClick: De, "data-animated-button": t.animate ? "true" : void 0 },
1914
1914
  c.createElement(n.Chevron, { disabled: q ? void 0 : !0, className: i[p.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
1915
1915
  ),
1916
- c.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: i[p.MonthCaption], style: m?.[p.MonthCaption], calendarMonth: M, displayIndex: E }, l?.startsWith("dropdown") ? c.createElement(
1916
+ c.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: i[p.MonthCaption], style: m?.[p.MonthCaption], calendarMonth: M, displayIndex: E }, d?.startsWith("dropdown") ? c.createElement(
1917
1917
  n.DropdownNav,
1918
1918
  { className: i[p.Dropdowns], style: m?.[p.Dropdowns] },
1919
1919
  (() => {
1920
- const v = l === "dropdown" || l === "dropdown-months" ? c.createElement(n.MonthsDropdown, { key: "month", className: i[p.MonthsDropdown], "aria-label": yt(), classNames: i, components: n, disabled: !!t.disableNavigation, onChange: Tt(M.date), options: ia(M.date, be, ve, a, r), style: m?.[p.Dropdown], value: r.getMonth(M.date) }) : c.createElement("span", { key: "month" }, Y(M.date, r)), _ = l === "dropdown" || l === "dropdown-years" ? c.createElement(n.YearsDropdown, { key: "year", className: i[p.YearsDropdown], "aria-label": Mt(r.options), classNames: i, components: n, disabled: !!t.disableNavigation, onChange: _t(M.date), options: ua(be, ve, a, r, !!t.reverseYears), style: m?.[p.Dropdown], value: r.getYear(M.date) }) : c.createElement("span", { key: "year" }, K(M.date, r));
1920
+ const v = d === "dropdown" || d === "dropdown-months" ? c.createElement(n.MonthsDropdown, { key: "month", className: i[p.MonthsDropdown], "aria-label": yt(), classNames: i, components: n, disabled: !!t.disableNavigation, onChange: Tt(M.date), options: ia(M.date, be, ve, a, r), style: m?.[p.Dropdown], value: r.getMonth(M.date) }) : c.createElement("span", { key: "month" }, Y(M.date, r)), _ = d === "dropdown" || d === "dropdown-years" ? c.createElement(n.YearsDropdown, { key: "year", className: i[p.YearsDropdown], "aria-label": Mt(r.options), classNames: i, components: n, disabled: !!t.disableNavigation, onChange: _t(M.date), options: ua(be, ve, a, r, !!t.reverseYears), style: m?.[p.Dropdown], value: r.getYear(M.date) }) : c.createElement("span", { key: "year" }, K(M.date, r));
1921
1921
  return r.getMonthYearOrder() === "year-first" ? [_, v] : [v, _];
1922
1922
  })(),
1923
1923
  c.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -1960,7 +1960,7 @@ function Va(e) {
1960
1960
  const { from: Oe, to: xe } = fe;
1961
1961
  S[R.range_start] = !!(Oe && xe && r.isSameDay(V, Oe)), S[R.range_end] = !!(Oe && xe && r.isSameDay(V, xe)), S[R.range_middle] = Q(fe, V, !0, r);
1962
1962
  }
1963
- const Yt = da(S, m, t.modifiersStyles), Ft = Lo(S, i, t.modifiersClassNames), At = !qe && !S.hidden ? mt(V, S, r.options, r) : void 0;
1963
+ const Yt = la(S, m, t.modifiersStyles), Ft = Lo(S, i, t.modifiersClassNames), At = !qe && !S.hidden ? mt(V, S, r.options, r) : void 0;
1964
1964
  return c.createElement(n.Day, { key: `${_.isoDate}_${_.displayMonthId}`, day: _, modifiers: S, className: Ft.join(" "), style: Yt, role: "gridcell", "aria-selected": S.selected || void 0, "aria-label": At, "data-day": _.isoDate, "data-month": _.outside ? _.dateMonthId : void 0, "data-selected": S.selected || void 0, "data-disabled": S.disabled || void 0, "data-hidden": S.hidden || void 0, "data-outside": _.outside || void 0, "data-focused": S.focused || void 0, "data-today": S.today || void 0 }, !S.hidden && qe ? c.createElement(n.DayButton, { className: i[p.DayButton], style: m?.[p.DayButton], type: "button", day: _, modifiers: S, disabled: !S.focused && S.disabled || void 0, "aria-disabled": S.focused && S.disabled || void 0, tabIndex: ft(_) ? 0 : -1, "aria-label": ht(V, S, r.options, r), onClick: Ct(_, S), onBlur: xt(_, S), onFocus: Ot(_, S), onKeyDown: St(_, S), onMouseEnter: Wt(_, S), onMouseLeave: Nt(_, S) }, P(V, r.options, r)) : !S.hidden && P(_.date, r.options, r));
1965
1965
  })
1966
1966
  )))
@@ -1977,7 +1977,7 @@ function mr({
1977
1977
  showOutsideDays: o = !0,
1978
1978
  captionLayout: n = "label",
1979
1979
  buttonVariant: a = "ghost",
1980
- formatters: d,
1980
+ formatters: l,
1981
1981
  components: r,
1982
1982
  ...s
1983
1983
  }) {
@@ -1994,8 +1994,8 @@ function mr({
1994
1994
  ),
1995
1995
  captionLayout: n,
1996
1996
  formatters: {
1997
- formatMonthDropdown: (l) => l.toLocaleString("default", { month: "short" }),
1998
- ...d
1997
+ formatMonthDropdown: (d) => d.toLocaleString("default", { month: "short" }),
1998
+ ...l
1999
1999
  },
2000
2000
  classNames: {
2001
2001
  root: y("w-fit", i.root),
@@ -2080,24 +2080,24 @@ function mr({
2080
2080
  ...t
2081
2081
  },
2082
2082
  components: {
2083
- Root: ({ className: l, rootRef: f, ...u }) => /* @__PURE__ */ N(
2083
+ Root: ({ className: d, rootRef: f, ...u }) => /* @__PURE__ */ N(
2084
2084
  "div",
2085
2085
  {
2086
2086
  "data-slot": "calendar",
2087
2087
  ref: f,
2088
- className: y(l),
2088
+ className: y(d),
2089
2089
  ...u
2090
2090
  }
2091
2091
  ),
2092
- Chevron: ({ className: l, orientation: f, ...u }) => f === "left" ? /* @__PURE__ */ N(_n, { className: y("size-4", l), ...u }) : f === "right" ? /* @__PURE__ */ N(
2092
+ Chevron: ({ className: d, orientation: f, ...u }) => f === "left" ? /* @__PURE__ */ N(_n, { className: y("size-4", d), ...u }) : f === "right" ? /* @__PURE__ */ N(
2093
2093
  Ht,
2094
2094
  {
2095
- className: y("size-4", l),
2095
+ className: y("size-4", d),
2096
2096
  ...u
2097
2097
  }
2098
- ) : /* @__PURE__ */ N(qt, { className: y("size-4", l), ...u }),
2098
+ ) : /* @__PURE__ */ N(qt, { className: y("size-4", d), ...u }),
2099
2099
  DayButton: Za,
2100
- WeekNumber: ({ children: l, ...f }) => /* @__PURE__ */ N("td", { ...f, children: /* @__PURE__ */ N("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children: l }) }),
2100
+ WeekNumber: ({ children: d, ...f }) => /* @__PURE__ */ N("td", { ...f, children: /* @__PURE__ */ N("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children: d }) }),
2101
2101
  ...r
2102
2102
  },
2103
2103
  ...s
@@ -2110,13 +2110,13 @@ function Za({
2110
2110
  modifiers: o,
2111
2111
  ...n
2112
2112
  }) {
2113
- const a = Fe(), d = pe.useRef(null);
2113
+ const a = Fe(), l = pe.useRef(null);
2114
2114
  return pe.useEffect(() => {
2115
- o.focused && d.current?.focus();
2115
+ o.focused && l.current?.focus();
2116
2116
  }, [o.focused]), /* @__PURE__ */ N(
2117
2117
  Qe,
2118
2118
  {
2119
- ref: d,
2119
+ ref: l,
2120
2120
  variant: "ghost",
2121
2121
  size: "icon",
2122
2122
  "data-day": t.date.toLocaleDateString(),
@@ -2157,7 +2157,7 @@ function pr({ className: e, ...t }) {
2157
2157
  }
2158
2158
  );
2159
2159
  }
2160
- const Ua = de(
2160
+ const Ua = le(
2161
2161
  "text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
2162
2162
  {
2163
2163
  variants: {
@@ -2192,7 +2192,7 @@ function yr({
2192
2192
  }
2193
2193
  );
2194
2194
  }
2195
- const La = de(
2195
+ const La = le(
2196
2196
  "flex items-center gap-2 text-sm shadow-none",
2197
2197
  {
2198
2198
  variants: {
@@ -2270,7 +2270,7 @@ function wr({
2270
2270
  }
2271
2271
  );
2272
2272
  }
2273
- const Ka = de(
2273
+ const Ka = le(
2274
2274
  "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
2275
2275
  {
2276
2276
  variants: {
@@ -2334,7 +2334,7 @@ function Dr({
2334
2334
  }
2335
2335
  );
2336
2336
  }
2337
- const Ja = de(
2337
+ const Ja = le(
2338
2338
  "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
2339
2339
  {
2340
2340
  variants: {
@@ -2367,13 +2367,13 @@ export {
2367
2367
  Mr as ButtonGroupText,
2368
2368
  mr as Calendar,
2369
2369
  Za as CalendarDayButton,
2370
- Oi as Card,
2371
- xi as CardAction,
2372
- Si as CardContent,
2373
- Wi as CardDescription,
2374
- Ni as CardFooter,
2375
- Ti as CardHeader,
2376
- _i as CardTitle,
2370
+ Si as Card,
2371
+ Wi as CardAction,
2372
+ Ni as CardContent,
2373
+ Ti as CardDescription,
2374
+ _i as CardFooter,
2375
+ Ei as CardHeader,
2376
+ Pi as CardTitle,
2377
2377
  _r as ChartContainer,
2378
2378
  Er as ChartLegend,
2379
2379
  Pr as ChartLegendContent,
@@ -2405,8 +2405,8 @@ export {
2405
2405
  rs as DrawerContent,
2406
2406
  ss as DrawerDescription,
2407
2407
  is as DrawerFooter,
2408
- ds as DrawerHeader,
2409
- ls as DrawerOverlay,
2408
+ ls as DrawerHeader,
2409
+ ds as DrawerOverlay,
2410
2410
  us as DrawerPortal,
2411
2411
  cs as DrawerTitle,
2412
2412
  fs as DrawerTrigger,
@@ -2426,11 +2426,11 @@ export {
2426
2426
  xs as DropdownMenuSubTrigger,
2427
2427
  Ss as DropdownMenuTrigger,
2428
2428
  ir as Field,
2429
- dr as FieldContent,
2429
+ lr as FieldContent,
2430
2430
  cr as FieldDescription,
2431
2431
  hr as FieldError,
2432
2432
  sr as FieldGroup,
2433
- lr as FieldLabel,
2433
+ dr as FieldLabel,
2434
2434
  rr as FieldLegend,
2435
2435
  fr as FieldSeparator,
2436
2436
  ar as FieldSet,
@@ -2451,51 +2451,53 @@ export {
2451
2451
  Ps as PopoverContent,
2452
2452
  Bs as PopoverTrigger,
2453
2453
  Is as Progress,
2454
- Ys as Select,
2455
- Fs as SelectContent,
2456
- As as SelectGroup,
2457
- zs as SelectItem,
2458
- js as SelectLabel,
2459
- Hs as SelectScrollDownButton,
2460
- qs as SelectScrollUpButton,
2461
- Gs as SelectSeparator,
2462
- Rs as SelectTrigger,
2463
- $s as SelectValue,
2454
+ Ys as ScrollArea,
2455
+ Fs as ScrollBar,
2456
+ As as Select,
2457
+ zs as SelectContent,
2458
+ js as SelectGroup,
2459
+ Hs as SelectItem,
2460
+ qs as SelectLabel,
2461
+ Gs as SelectScrollDownButton,
2462
+ Rs as SelectScrollUpButton,
2463
+ $s as SelectSeparator,
2464
+ Vs as SelectTrigger,
2465
+ Zs as SelectValue,
2464
2466
  Xe as Separator,
2465
- Vs as Sheet,
2466
- Zs as SheetClose,
2467
- Us as SheetContent,
2468
- Ls as SheetDescription,
2469
- Ks as SheetFooter,
2470
- Js as SheetHeader,
2471
- Xs as SheetTitle,
2472
- Qs as SheetTrigger,
2467
+ Us as Sheet,
2468
+ Ls as SheetClose,
2469
+ Ks as SheetContent,
2470
+ Js as SheetDescription,
2471
+ Xs as SheetFooter,
2472
+ Qs as SheetHeader,
2473
+ ei as SheetTitle,
2474
+ ti as SheetTrigger,
2473
2475
  or as Skeleton,
2474
- ei as Table,
2475
- ti as TableBody,
2476
- ni as TableCaption,
2477
- oi as TableCell,
2478
- ai as TableFooter,
2479
- ri as TableHead,
2480
- si as TableHeader,
2481
- ii as TableRow,
2482
- di as Tabs,
2483
- li as TabsContent,
2484
- ui as TabsList,
2485
- ci as TabsTrigger,
2476
+ ni as Table,
2477
+ oi as TableBody,
2478
+ ai as TableCaption,
2479
+ ri as TableCell,
2480
+ si as TableFooter,
2481
+ ii as TableHead,
2482
+ li as TableHeader,
2483
+ di as TableRow,
2484
+ ui as Tabs,
2485
+ ci as TabsContent,
2486
+ fi as TabsList,
2487
+ hi as TabsTrigger,
2486
2488
  Rt as Textarea,
2487
- fi as Timeline,
2488
- hi as TimelineContent,
2489
- mi as TimelineDate,
2490
- pi as TimelineHeader,
2491
- yi as TimelineIndicator,
2492
- gi as TimelineItem,
2493
- bi as TimelineSeparator,
2494
- vi as TimelineTitle,
2495
- wi as Tooltip,
2496
- ki as TooltipContent,
2497
- Mi as TooltipProvider,
2498
- Di as TooltipTrigger,
2489
+ mi as Timeline,
2490
+ pi as TimelineContent,
2491
+ yi as TimelineDate,
2492
+ gi as TimelineHeader,
2493
+ bi as TimelineIndicator,
2494
+ vi as TimelineItem,
2495
+ wi as TimelineSeparator,
2496
+ ki as TimelineTitle,
2497
+ Mi as Tooltip,
2498
+ Di as TooltipContent,
2499
+ Ci as TooltipProvider,
2500
+ Oi as TooltipTrigger,
2499
2501
  Ja as badgeVariants,
2500
2502
  Ka as buttonGroupVariants,
2501
2503
  y as cn,