@alfadocs/ui-kit 0.41.2 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/_chunks/address-autocomplete-CSjMrBvu.js +358 -0
  2. package/dist/_chunks/{alia-sidebar-DXsYPinm.js → alia-sidebar-BpX4z_af.js} +2 -2
  3. package/dist/_chunks/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
  4. package/dist/_chunks/bmi-calculator-DuVSFDuw.js +259 -0
  5. package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
  6. package/dist/_chunks/{breadcrumb-CLlhx7qo.js → breadcrumb-OTbaY70e.js} +4 -4
  7. package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-DdexHrTP.js} +2 -2
  8. package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
  9. package/dist/_chunks/cycle-calculator-Dln-y1k_.js +192 -0
  10. package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
  11. package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
  12. package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
  13. package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
  14. package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
  15. package/dist/_chunks/{dialog-Cee13rHU.js → dialog-DOYgd75U.js} +46 -37
  16. package/dist/_chunks/{document-scanner-CqS_klIr.js → document-scanner-BqLsGs4Y.js} +7 -7
  17. package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js → dropdown-menu-CUEXqKis.js} +2 -2
  18. package/dist/_chunks/{due-date-calculator-CUspKSTw.js → due-date-calculator-Cc4dRqTI.js} +62 -41
  19. package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js → editable-currency-cell-renderer-9jqwDv5x.js} +3 -3
  20. package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
  21. package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
  22. package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
  23. package/dist/_chunks/{freemium-paywall-BAk3a6er.js → freemium-paywall-BLXESpH4.js} +2 -2
  24. package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
  25. package/dist/_chunks/{gestational-age-calculator-CsQ05qDy.js → gestational-age-calculator-ZMSrzkRW.js} +59 -45
  26. package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
  27. package/dist/_chunks/{header-settings-CBLwUK6t.js → header-settings-Bx0Biimh.js} +2 -2
  28. package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
  29. package/dist/_chunks/index.modern-D2LGACWg.js +1529 -0
  30. package/dist/_chunks/insert-result-DisOY2G-.js +243 -0
  31. package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
  32. package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
  33. package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
  34. package/dist/_chunks/{kbd-Cglkd7CY.js → kbd-D855ZXIW.js} +2 -2
  35. package/dist/_chunks/map-view-Tb5VfK9Y.js +333 -0
  36. package/dist/_chunks/marketplace-app-shell-Dc5cTIt8.js +428 -0
  37. package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
  38. package/dist/_chunks/{patient-search-CBq62kmL.js → patient-search-DPe2ZYEL.js} +2 -2
  39. package/dist/_chunks/{patient-shell-DF81lALv.js → patient-shell-CnT4L8gn.js} +3 -3
  40. package/dist/_chunks/{payment-form-Dy3WIIsC.js → payment-form-BzVsG6Ks.js} +5 -5
  41. package/dist/_chunks/{pdf-viewer-Cy6Ul3hZ.js → pdf-viewer-B6MC6VTx.js} +139 -126
  42. package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
  43. package/dist/_chunks/{practice-results-C0d4IL5E.js → practice-results-CrLpEiiW.js} +4 -4
  44. package/dist/_chunks/pregnancy-weight-gain-zZL5Ir2-.js +224 -0
  45. package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
  46. package/dist/_chunks/{public-header.agent-B2dDg2_d.js → public-header.agent-BY6FH71R.js} +2 -2
  47. package/dist/_chunks/radio-group-CLjK-SlK.js +167 -0
  48. package/dist/_chunks/{rich-text-editor-DLbg2852.js → rich-text-editor-DhGIBd4a.js} +10 -10
  49. package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
  50. package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
  51. package/dist/_chunks/{sheet-BV-yuLE2.js → sheet-xbzu4YiY.js} +7 -7
  52. package/dist/_chunks/sign-document-B-3k_0LO.js +344 -0
  53. package/dist/_chunks/{signature-capture-DoiBd6i3.js → signature-capture-CpMBhqQ9.js} +6 -6
  54. package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
  55. package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
  56. package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
  57. package/dist/_chunks/tab-bar-Xetknddo.js +105 -0
  58. package/dist/_chunks/{theme-toggle-DpC28kt5.js → theme-toggle-ClATnY4Q.js} +2 -2
  59. package/dist/_chunks/{toast.agent-WHHfw5VX.js → toast.agent-B0MCsvdZ.js} +2 -2
  60. package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
  61. package/dist/_chunks/{unit-converter-EUwO6QYq.js → unit-converter-CuXCXJhK.js} +46 -40
  62. package/dist/_chunks/{workflow-map-C3gB0FvB.js → workflow-map-BFNpzTiw.js} +2 -2
  63. package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
  64. package/dist/agent-catalog.json +1 -1
  65. package/dist/brand/product-lockup/product-lockup.d.ts +16 -0
  66. package/dist/components/_shared/calendar-class-names.d.ts +8 -0
  67. package/dist/components/_shared/index.d.ts +2 -0
  68. package/dist/components/_shared/insert-result.d.ts +78 -6
  69. package/dist/components/address-autocomplete/address-autocomplete.d.ts +77 -0
  70. package/dist/components/address-autocomplete/index.d.ts +4 -0
  71. package/dist/components/address-autocomplete/index.js +6 -0
  72. package/dist/components/address-autocomplete/parse-address.d.ts +52 -0
  73. package/dist/components/badge/badge.d.ts +1 -1
  74. package/dist/components/bmi-calculator/bmi-calculator.d.ts +11 -1
  75. package/dist/components/bmi-calculator/index.js +1 -1
  76. package/dist/components/booking/index.js +1 -1
  77. package/dist/components/breadcrumb/index.js +1 -1
  78. package/dist/components/calculator-dialog/index.js +1 -1
  79. package/dist/components/card/card.d.ts +1 -1
  80. package/dist/components/chart/chart.d.ts +10 -0
  81. package/dist/components/chart/index.js +1 -1
  82. package/dist/components/cycle-calculator/cycle-calculator.d.ts +12 -2
  83. package/dist/components/cycle-calculator/index.js +1 -1
  84. package/dist/components/data-table/index.js +1 -1
  85. package/dist/components/date-picker/date-picker.d.ts +0 -1
  86. package/dist/components/date-picker/index.js +1 -1
  87. package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
  88. package/dist/components/date-range-picker/index.js +1 -1
  89. package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
  90. package/dist/components/date-time-picker/index.js +1 -1
  91. package/dist/components/dialog/index.js +1 -1
  92. package/dist/components/document-scanner/index.js +1 -1
  93. package/dist/components/dropdown-menu/index.js +1 -1
  94. package/dist/components/due-date-calculator/due-date-calculator.d.ts +11 -1
  95. package/dist/components/due-date-calculator/index.js +2 -2
  96. package/dist/components/freemium-paywall/index.js +1 -1
  97. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +12 -2
  98. package/dist/components/gestational-age-calculator/index.js +1 -1
  99. package/dist/components/header/header.d.ts +8 -0
  100. package/dist/components/header/index.js +1 -1
  101. package/dist/components/header-settings/index.js +1 -1
  102. package/dist/components/index.d.ts +3 -1
  103. package/dist/components/kbd/index.js +1 -1
  104. package/dist/components/map-view/index.js +1 -1
  105. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  106. package/dist/components/patient-search/index.js +1 -1
  107. package/dist/components/payment-form/index.js +1 -1
  108. package/dist/components/pdf-viewer/index.js +1 -1
  109. package/dist/components/practice-results/index.js +1 -1
  110. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  111. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +12 -2
  112. package/dist/components/public-header/index.js +1 -1
  113. package/dist/components/public-header/public-header.d.ts +1 -1
  114. package/dist/components/radio-group/index.js +1 -1
  115. package/dist/components/rich-text-editor/index.js +1 -1
  116. package/dist/components/sheet/index.js +1 -1
  117. package/dist/components/sign-document/index.js +1 -1
  118. package/dist/components/sign-document/sign-document.d.ts +12 -0
  119. package/dist/components/signature-capture/index.js +1 -1
  120. package/dist/components/stat/stat.d.ts +1 -1
  121. package/dist/components/tab-bar/index.d.ts +3 -0
  122. package/dist/components/tab-bar/index.js +5 -0
  123. package/dist/components/tab-bar/tab-bar.d.ts +104 -0
  124. package/dist/components/theme-toggle/index.js +1 -1
  125. package/dist/components/toast/index.js +1 -1
  126. package/dist/components/unit-converter/index.js +1 -1
  127. package/dist/components/unit-converter/unit-converter.d.ts +11 -1
  128. package/dist/components/workflow/index.js +1 -1
  129. package/dist/i18n/locales/ar.d.ts +17 -0
  130. package/dist/i18n/locales/ar.js +18 -1
  131. package/dist/i18n/locales/de.d.ts +17 -0
  132. package/dist/i18n/locales/de.js +18 -1
  133. package/dist/i18n/locales/el.d.ts +17 -0
  134. package/dist/i18n/locales/el.js +18 -1
  135. package/dist/i18n/locales/en.d.ts +17 -0
  136. package/dist/i18n/locales/en.js +18 -1
  137. package/dist/i18n/locales/es.d.ts +17 -0
  138. package/dist/i18n/locales/es.js +18 -1
  139. package/dist/i18n/locales/fr.d.ts +17 -0
  140. package/dist/i18n/locales/fr.js +18 -1
  141. package/dist/i18n/locales/hi.d.ts +17 -0
  142. package/dist/i18n/locales/hi.js +18 -1
  143. package/dist/i18n/locales/it.d.ts +17 -0
  144. package/dist/i18n/locales/it.js +18 -1
  145. package/dist/i18n/locales/ja.d.ts +17 -0
  146. package/dist/i18n/locales/ja.js +18 -1
  147. package/dist/i18n/locales/nl.d.ts +17 -0
  148. package/dist/i18n/locales/nl.js +18 -1
  149. package/dist/i18n/locales/pl.d.ts +17 -0
  150. package/dist/i18n/locales/pl.js +18 -1
  151. package/dist/i18n/locales/pt.d.ts +17 -0
  152. package/dist/i18n/locales/pt.js +18 -1
  153. package/dist/i18n/locales/ro.d.ts +17 -0
  154. package/dist/i18n/locales/ro.js +18 -1
  155. package/dist/i18n/locales/ru.d.ts +17 -0
  156. package/dist/i18n/locales/ru.js +18 -1
  157. package/dist/i18n/locales/sq.d.ts +17 -0
  158. package/dist/i18n/locales/sq.js +18 -1
  159. package/dist/i18n/locales/sv.d.ts +17 -0
  160. package/dist/i18n/locales/sv.js +18 -1
  161. package/dist/i18n/locales/tr.d.ts +17 -0
  162. package/dist/i18n/locales/tr.js +18 -1
  163. package/dist/i18n/locales/zh.d.ts +17 -0
  164. package/dist/i18n/locales/zh.js +18 -1
  165. package/dist/index.js +605 -599
  166. package/dist/locales/ar.json +18 -1
  167. package/dist/locales/de.json +18 -1
  168. package/dist/locales/el.json +18 -1
  169. package/dist/locales/en.json +18 -1
  170. package/dist/locales/es.json +18 -1
  171. package/dist/locales/fr.json +18 -1
  172. package/dist/locales/hi.json +18 -1
  173. package/dist/locales/it.json +18 -1
  174. package/dist/locales/ja.json +18 -1
  175. package/dist/locales/nl.json +18 -1
  176. package/dist/locales/pl.json +18 -1
  177. package/dist/locales/pt.json +18 -1
  178. package/dist/locales/ro.json +18 -1
  179. package/dist/locales/ru.json +18 -1
  180. package/dist/locales/sq.json +18 -1
  181. package/dist/locales/sv.json +18 -1
  182. package/dist/locales/tr.json +18 -1
  183. package/dist/locales/zh.json +18 -1
  184. package/dist/patterns/alia-assistant/index.js +1 -1
  185. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  186. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +87 -4
  187. package/dist/patterns/patient-shell/index.js +1 -1
  188. package/dist/tokens.css +1411 -2
  189. package/package.json +16 -1
  190. package/dist/_chunks/bmi-calculator-DnEr513I.js +0 -213
  191. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +0 -185
  192. package/dist/_chunks/insert-result-yJ0QavoN.js +0 -133
  193. package/dist/_chunks/map-view-qJLybrmN.js +0 -1850
  194. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +0 -296
  195. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +0 -209
  196. package/dist/_chunks/radio-group-BcF92GEF.js +0 -152
  197. package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
  198. package/dist/_chunks/sign-document-CpLDZ6Db.js +0 -316
  199. package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
@@ -0,0 +1,3238 @@
1
+ import { c as Yn } from "./createLucideIcon-CrFbzy84.js";
2
+ import y, { createContext as Tn, useContext as Pn, useCallback as R, useRef as Ne, useLayoutEffect as En, useState as xe, useEffect as St, useMemo as Ce } from "react";
3
+ import { t as P, c as I, n as we, s as Xe, d as Fn, e as Nt, i as Bn } from "./isSameDay-DUEiAT0G.js";
4
+ import { jsx as ft } from "react/jsx-runtime";
5
+ import { C as In } from "./chevron-left-CX1jqD2M.js";
6
+ import { C as Hn } from "./chevron-right-BrpYejk0.js";
7
+ import { c as _e } from "./index-D2ZczOXr.js";
8
+ /**
9
+ * @license lucide-react v1.8.0 - ISC
10
+ *
11
+ * This source code is licensed under the ISC license.
12
+ * See the LICENSE file in the root directory of this source tree.
13
+ */
14
+ const An = [
15
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
16
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
17
+ ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
18
+ ["path", { d: "M3 10h18", key: "8toen8" }]
19
+ ], js = Yn("calendar", An);
20
+ function zn(e, t, n = "long") {
21
+ return new Intl.DateTimeFormat("en-US", {
22
+ // Enforces engine to render the time. Without the option JavaScriptCore omits it.
23
+ hour: "numeric",
24
+ timeZone: e,
25
+ timeZoneName: n
26
+ }).format(t).split(/\s/g).slice(2).join(" ");
27
+ }
28
+ const ze = {}, ge = {};
29
+ function ie(e, t) {
30
+ try {
31
+ const r = (ze[e] || (ze[e] = new Intl.DateTimeFormat("en-US", {
32
+ timeZone: e,
33
+ timeZoneName: "longOffset"
34
+ }).format))(t).split("GMT")[1];
35
+ return r in ge ? ge[r] : lt(r, r.split(":"));
36
+ } catch {
37
+ if (e in ge) return ge[e];
38
+ const n = e == null ? void 0 : e.match(qn);
39
+ return n ? lt(e, n.slice(1)) : NaN;
40
+ }
41
+ }
42
+ const qn = /([+-]\d\d):?(\d\d)?/;
43
+ function lt(e, t) {
44
+ const n = +(t[0] || 0), r = +(t[1] || 0), a = +(t[2] || 0) / 60;
45
+ return ge[e] = n * 60 + r > 0 ? n * 60 + r + a : n * 60 - r - a;
46
+ }
47
+ class J extends Date {
48
+ //#region static
49
+ constructor(...t) {
50
+ super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ie(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), Ct(this), Ke(this)) : this.setTime(Date.now());
51
+ }
52
+ static tz(t, ...n) {
53
+ return n.length ? new J(...n, t) : new J(Date.now(), t);
54
+ }
55
+ //#endregion
56
+ //#region time zone
57
+ withTimeZone(t) {
58
+ return new J(+this, t);
59
+ }
60
+ getTimezoneOffset() {
61
+ const t = -ie(this.timeZone, this);
62
+ return t > 0 ? Math.floor(t) : Math.ceil(t);
63
+ }
64
+ //#endregion
65
+ //#region time
66
+ setTime(t) {
67
+ return Date.prototype.setTime.apply(this, arguments), Ke(this), +this;
68
+ }
69
+ //#endregion
70
+ //#region date-fns integration
71
+ [Symbol.for("constructDateFrom")](t) {
72
+ return new J(+new Date(t), this.timeZone);
73
+ }
74
+ //#endregion
75
+ }
76
+ const ht = /^(get|set)(?!UTC)/;
77
+ Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
78
+ if (!ht.test(e)) return;
79
+ const t = e.replace(ht, "$1UTC");
80
+ J.prototype[t] && (e.startsWith("get") ? J.prototype[e] = function() {
81
+ return this.internal[t]();
82
+ } : (J.prototype[e] = function() {
83
+ return Date.prototype[t].apply(this.internal, arguments), jn(this), +this;
84
+ }, J.prototype[t] = function() {
85
+ return Date.prototype[t].apply(this, arguments), Ke(this), +this;
86
+ }));
87
+ });
88
+ function Ke(e) {
89
+ e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-ie(e.timeZone, e) * 60));
90
+ }
91
+ function jn(e) {
92
+ Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), Ct(e);
93
+ }
94
+ function Ct(e) {
95
+ const t = ie(e.timeZone, e), n = t > 0 ? Math.floor(t) : Math.ceil(t), r = /* @__PURE__ */ new Date(+e);
96
+ r.setUTCHours(r.getUTCHours() - 1);
97
+ const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), s = -(/* @__PURE__ */ new Date(+r)).getTimezoneOffset(), o = a - s, i = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
98
+ o && i && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + o);
99
+ const d = a - n;
100
+ d && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + d);
101
+ const c = /* @__PURE__ */ new Date(+e);
102
+ c.setUTCSeconds(0);
103
+ const u = a > 0 ? c.getSeconds() : (c.getSeconds() - 60) % 60, f = Math.round(-(ie(e.timeZone, e) * 60)) % 60;
104
+ (f || u) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + f + u));
105
+ const h = ie(e.timeZone, e), g = h > 0 ? Math.floor(h) : Math.ceil(h), p = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - g, k = g !== n, N = p - d;
106
+ if (k && N) {
107
+ Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + N);
108
+ const M = ie(e.timeZone, e), b = M > 0 ? Math.floor(M) : Math.ceil(M), W = g - b;
109
+ W && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + W), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + W));
110
+ }
111
+ }
112
+ class H extends J {
113
+ //#region static
114
+ static tz(t, ...n) {
115
+ return n.length ? new H(...n, t) : new H(Date.now(), t);
116
+ }
117
+ //#endregion
118
+ //#region representation
119
+ toISOString() {
120
+ const [t, n, r] = this.tzComponents(), a = `${t}${n}:${r}`;
121
+ return this.internal.toISOString().slice(0, -1) + a;
122
+ }
123
+ toString() {
124
+ return `${this.toDateString()} ${this.toTimeString()}`;
125
+ }
126
+ toDateString() {
127
+ const [t, n, r, a] = this.internal.toUTCString().split(" ");
128
+ return `${t == null ? void 0 : t.slice(0, -1)} ${r} ${n} ${a}`;
129
+ }
130
+ toTimeString() {
131
+ const t = this.internal.toUTCString().split(" ")[4], [n, r, a] = this.tzComponents();
132
+ return `${t} GMT${n}${r}${a} (${zn(this.timeZone, this)})`;
133
+ }
134
+ toLocaleString(t, n) {
135
+ return Date.prototype.toLocaleString.call(this, t, {
136
+ ...n,
137
+ timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone
138
+ });
139
+ }
140
+ toLocaleDateString(t, n) {
141
+ return Date.prototype.toLocaleDateString.call(this, t, {
142
+ ...n,
143
+ timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone
144
+ });
145
+ }
146
+ toLocaleTimeString(t, n) {
147
+ return Date.prototype.toLocaleTimeString.call(this, t, {
148
+ ...n,
149
+ timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone
150
+ });
151
+ }
152
+ //#endregion
153
+ //#region private
154
+ tzComponents() {
155
+ const t = this.getTimezoneOffset(), n = t > 0 ? "-" : "+", r = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), a = String(Math.abs(t) % 60).padStart(2, "0");
156
+ return [n, r, a];
157
+ }
158
+ //#endregion
159
+ withTimeZone(t) {
160
+ return new H(+this, t);
161
+ }
162
+ //#region date-fns integration
163
+ [Symbol.for("constructDateFrom")](t) {
164
+ return new H(+new Date(t), this.timeZone);
165
+ }
166
+ //#endregion
167
+ }
168
+ function xt(e, t, n) {
169
+ const r = P(e, n == null ? void 0 : n.in);
170
+ return isNaN(t) ? I((n == null ? void 0 : n.in) || e, NaN) : (t && r.setDate(r.getDate() + t), r);
171
+ }
172
+ function _t(e, t, n) {
173
+ const r = P(e, n == null ? void 0 : n.in);
174
+ if (isNaN(t)) return I(e, NaN);
175
+ if (!t)
176
+ return r;
177
+ const a = r.getDate(), s = I(e, r.getTime());
178
+ s.setMonth(r.getMonth() + t + 1, 0);
179
+ const o = s.getDate();
180
+ return a >= o ? s : (r.setFullYear(
181
+ s.getFullYear(),
182
+ s.getMonth(),
183
+ a
184
+ ), r);
185
+ }
186
+ let $n = {};
187
+ function ve() {
188
+ return $n;
189
+ }
190
+ function fe(e, t) {
191
+ var i, d, c, u;
192
+ const n = ve(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.weekStartsOn) ?? n.weekStartsOn ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, a = P(e, t == null ? void 0 : t.in), s = a.getDay(), o = (s < r ? 7 : 0) + s - r;
193
+ return a.setDate(a.getDate() - o), a.setHours(0, 0, 0, 0), a;
194
+ }
195
+ function Me(e, t) {
196
+ return fe(e, { ...t, weekStartsOn: 1 });
197
+ }
198
+ function Yt(e, t) {
199
+ const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = I(n, 0);
200
+ a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
201
+ const s = Me(a), o = I(n, 0);
202
+ o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
203
+ const i = Me(o);
204
+ return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
205
+ }
206
+ function mt(e) {
207
+ const t = P(e), n = new Date(
208
+ Date.UTC(
209
+ t.getFullYear(),
210
+ t.getMonth(),
211
+ t.getDate(),
212
+ t.getHours(),
213
+ t.getMinutes(),
214
+ t.getSeconds(),
215
+ t.getMilliseconds()
216
+ )
217
+ );
218
+ return n.setUTCFullYear(t.getFullYear()), +e - +n;
219
+ }
220
+ function Je(e, t, n) {
221
+ const [r, a] = we(
222
+ n == null ? void 0 : n.in,
223
+ e,
224
+ t
225
+ ), s = Xe(r), o = Xe(a), i = +s - mt(s), d = +o - mt(o);
226
+ return Math.round((i - d) / Fn);
227
+ }
228
+ function Gn(e, t) {
229
+ const n = Yt(e, t), r = I(e, 0);
230
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Me(r);
231
+ }
232
+ function Rn(e, t, n) {
233
+ return xt(e, t * 7, n);
234
+ }
235
+ function Vn(e, t, n) {
236
+ return _t(e, t * 12, n);
237
+ }
238
+ function Un(e, t) {
239
+ let n, r = t == null ? void 0 : t.in;
240
+ return e.forEach((a) => {
241
+ !r && typeof a == "object" && (r = I.bind(null, a));
242
+ const s = P(a, r);
243
+ (!n || n < s || isNaN(+s)) && (n = s);
244
+ }), I(r, n || NaN);
245
+ }
246
+ function Qn(e, t) {
247
+ let n, r = t == null ? void 0 : t.in;
248
+ return e.forEach((a) => {
249
+ !r && typeof a == "object" && (r = I.bind(null, a));
250
+ const s = P(a, r);
251
+ (!n || n > s || isNaN(+s)) && (n = s);
252
+ }), I(r, n || NaN);
253
+ }
254
+ function Tt(e) {
255
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
256
+ }
257
+ function Xn(e) {
258
+ return !(!Tt(e) && typeof e != "number" || isNaN(+P(e)));
259
+ }
260
+ function Pt(e, t, n) {
261
+ const [r, a] = we(
262
+ n == null ? void 0 : n.in,
263
+ e,
264
+ t
265
+ ), s = r.getFullYear() - a.getFullYear(), o = r.getMonth() - a.getMonth();
266
+ return s * 12 + o;
267
+ }
268
+ function Kn(e, t) {
269
+ const n = P(e, t == null ? void 0 : t.in), r = n.getMonth();
270
+ return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
271
+ }
272
+ function Et(e, t) {
273
+ const [n, r] = we(e, t.start, t.end);
274
+ return { start: n, end: r };
275
+ }
276
+ function Jn(e, t) {
277
+ const { start: n, end: r } = Et(t == null ? void 0 : t.in, e);
278
+ let a = +n > +r;
279
+ const s = a ? +n : +r, o = a ? r : n;
280
+ o.setHours(0, 0, 0, 0), o.setDate(1);
281
+ let i = 1;
282
+ const d = [];
283
+ for (; +o <= s; )
284
+ d.push(I(n, o)), o.setMonth(o.getMonth() + i);
285
+ return a ? d.reverse() : d;
286
+ }
287
+ function Zn(e, t) {
288
+ const n = P(e, t == null ? void 0 : t.in);
289
+ return n.setDate(1), n.setHours(0, 0, 0, 0), n;
290
+ }
291
+ function Ln(e, t) {
292
+ const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear();
293
+ return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
294
+ }
295
+ function Ft(e, t) {
296
+ const n = P(e, t == null ? void 0 : t.in);
297
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
298
+ }
299
+ function er(e, t) {
300
+ const { start: n, end: r } = Et(t == null ? void 0 : t.in, e);
301
+ let a = +n > +r;
302
+ const s = a ? +n : +r, o = a ? r : n;
303
+ o.setHours(0, 0, 0, 0), o.setMonth(0, 1);
304
+ let i = 1;
305
+ const d = [];
306
+ for (; +o <= s; )
307
+ d.push(I(n, o)), o.setFullYear(o.getFullYear() + i);
308
+ return a ? d.reverse() : d;
309
+ }
310
+ function Bt(e, t) {
311
+ var i, d, c, u;
312
+ const n = ve(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.weekStartsOn) ?? n.weekStartsOn ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, a = P(e, t == null ? void 0 : t.in), s = a.getDay(), o = (s < r ? -7 : 0) + 6 - (s - r);
313
+ return a.setDate(a.getDate() + o), a.setHours(23, 59, 59, 999), a;
314
+ }
315
+ function tr(e, t) {
316
+ return Bt(e, { ...t, weekStartsOn: 1 });
317
+ }
318
+ const nr = {
319
+ lessThanXSeconds: {
320
+ one: "less than a second",
321
+ other: "less than {{count}} seconds"
322
+ },
323
+ xSeconds: {
324
+ one: "1 second",
325
+ other: "{{count}} seconds"
326
+ },
327
+ halfAMinute: "half a minute",
328
+ lessThanXMinutes: {
329
+ one: "less than a minute",
330
+ other: "less than {{count}} minutes"
331
+ },
332
+ xMinutes: {
333
+ one: "1 minute",
334
+ other: "{{count}} minutes"
335
+ },
336
+ aboutXHours: {
337
+ one: "about 1 hour",
338
+ other: "about {{count}} hours"
339
+ },
340
+ xHours: {
341
+ one: "1 hour",
342
+ other: "{{count}} hours"
343
+ },
344
+ xDays: {
345
+ one: "1 day",
346
+ other: "{{count}} days"
347
+ },
348
+ aboutXWeeks: {
349
+ one: "about 1 week",
350
+ other: "about {{count}} weeks"
351
+ },
352
+ xWeeks: {
353
+ one: "1 week",
354
+ other: "{{count}} weeks"
355
+ },
356
+ aboutXMonths: {
357
+ one: "about 1 month",
358
+ other: "about {{count}} months"
359
+ },
360
+ xMonths: {
361
+ one: "1 month",
362
+ other: "{{count}} months"
363
+ },
364
+ aboutXYears: {
365
+ one: "about 1 year",
366
+ other: "about {{count}} years"
367
+ },
368
+ xYears: {
369
+ one: "1 year",
370
+ other: "{{count}} years"
371
+ },
372
+ overXYears: {
373
+ one: "over 1 year",
374
+ other: "over {{count}} years"
375
+ },
376
+ almostXYears: {
377
+ one: "almost 1 year",
378
+ other: "almost {{count}} years"
379
+ }
380
+ }, rr = (e, t, n) => {
381
+ let r;
382
+ const a = nr[e];
383
+ return typeof a == "string" ? r = a : t === 1 ? r = a.one : r = a.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
384
+ };
385
+ function qe(e) {
386
+ return (t = {}) => {
387
+ const n = t.width ? String(t.width) : e.defaultWidth;
388
+ return e.formats[n] || e.formats[e.defaultWidth];
389
+ };
390
+ }
391
+ const ar = {
392
+ full: "EEEE, MMMM do, y",
393
+ long: "MMMM do, y",
394
+ medium: "MMM d, y",
395
+ short: "MM/dd/yyyy"
396
+ }, sr = {
397
+ full: "h:mm:ss a zzzz",
398
+ long: "h:mm:ss a z",
399
+ medium: "h:mm:ss a",
400
+ short: "h:mm a"
401
+ }, or = {
402
+ full: "{{date}} 'at' {{time}}",
403
+ long: "{{date}} 'at' {{time}}",
404
+ medium: "{{date}}, {{time}}",
405
+ short: "{{date}}, {{time}}"
406
+ }, ir = {
407
+ date: qe({
408
+ formats: ar,
409
+ defaultWidth: "full"
410
+ }),
411
+ time: qe({
412
+ formats: sr,
413
+ defaultWidth: "full"
414
+ }),
415
+ dateTime: qe({
416
+ formats: or,
417
+ defaultWidth: "full"
418
+ })
419
+ }, dr = {
420
+ lastWeek: "'last' eeee 'at' p",
421
+ yesterday: "'yesterday at' p",
422
+ today: "'today at' p",
423
+ tomorrow: "'tomorrow at' p",
424
+ nextWeek: "eeee 'at' p",
425
+ other: "P"
426
+ }, cr = (e, t, n, r) => dr[e];
427
+ function me(e) {
428
+ return (t, n) => {
429
+ const r = n != null && n.context ? String(n.context) : "standalone";
430
+ let a;
431
+ if (r === "formatting" && e.formattingValues) {
432
+ const o = e.defaultFormattingWidth || e.defaultWidth, i = n != null && n.width ? String(n.width) : o;
433
+ a = e.formattingValues[i] || e.formattingValues[o];
434
+ } else {
435
+ const o = e.defaultWidth, i = n != null && n.width ? String(n.width) : e.defaultWidth;
436
+ a = e.values[i] || e.values[o];
437
+ }
438
+ const s = e.argumentCallback ? e.argumentCallback(t) : t;
439
+ return a[s];
440
+ };
441
+ }
442
+ const ur = {
443
+ narrow: ["B", "A"],
444
+ abbreviated: ["BC", "AD"],
445
+ wide: ["Before Christ", "Anno Domini"]
446
+ }, fr = {
447
+ narrow: ["1", "2", "3", "4"],
448
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
449
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
450
+ }, lr = {
451
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
452
+ abbreviated: [
453
+ "Jan",
454
+ "Feb",
455
+ "Mar",
456
+ "Apr",
457
+ "May",
458
+ "Jun",
459
+ "Jul",
460
+ "Aug",
461
+ "Sep",
462
+ "Oct",
463
+ "Nov",
464
+ "Dec"
465
+ ],
466
+ wide: [
467
+ "January",
468
+ "February",
469
+ "March",
470
+ "April",
471
+ "May",
472
+ "June",
473
+ "July",
474
+ "August",
475
+ "September",
476
+ "October",
477
+ "November",
478
+ "December"
479
+ ]
480
+ }, hr = {
481
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
482
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
483
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
484
+ wide: [
485
+ "Sunday",
486
+ "Monday",
487
+ "Tuesday",
488
+ "Wednesday",
489
+ "Thursday",
490
+ "Friday",
491
+ "Saturday"
492
+ ]
493
+ }, mr = {
494
+ narrow: {
495
+ am: "a",
496
+ pm: "p",
497
+ midnight: "mi",
498
+ noon: "n",
499
+ morning: "morning",
500
+ afternoon: "afternoon",
501
+ evening: "evening",
502
+ night: "night"
503
+ },
504
+ abbreviated: {
505
+ am: "AM",
506
+ pm: "PM",
507
+ midnight: "midnight",
508
+ noon: "noon",
509
+ morning: "morning",
510
+ afternoon: "afternoon",
511
+ evening: "evening",
512
+ night: "night"
513
+ },
514
+ wide: {
515
+ am: "a.m.",
516
+ pm: "p.m.",
517
+ midnight: "midnight",
518
+ noon: "noon",
519
+ morning: "morning",
520
+ afternoon: "afternoon",
521
+ evening: "evening",
522
+ night: "night"
523
+ }
524
+ }, yr = {
525
+ narrow: {
526
+ am: "a",
527
+ pm: "p",
528
+ midnight: "mi",
529
+ noon: "n",
530
+ morning: "in the morning",
531
+ afternoon: "in the afternoon",
532
+ evening: "in the evening",
533
+ night: "at night"
534
+ },
535
+ abbreviated: {
536
+ am: "AM",
537
+ pm: "PM",
538
+ midnight: "midnight",
539
+ noon: "noon",
540
+ morning: "in the morning",
541
+ afternoon: "in the afternoon",
542
+ evening: "in the evening",
543
+ night: "at night"
544
+ },
545
+ wide: {
546
+ am: "a.m.",
547
+ pm: "p.m.",
548
+ midnight: "midnight",
549
+ noon: "noon",
550
+ morning: "in the morning",
551
+ afternoon: "in the afternoon",
552
+ evening: "in the evening",
553
+ night: "at night"
554
+ }
555
+ }, gr = (e, t) => {
556
+ const n = Number(e), r = n % 100;
557
+ if (r > 20 || r < 10)
558
+ switch (r % 10) {
559
+ case 1:
560
+ return n + "st";
561
+ case 2:
562
+ return n + "nd";
563
+ case 3:
564
+ return n + "rd";
565
+ }
566
+ return n + "th";
567
+ }, br = {
568
+ ordinalNumber: gr,
569
+ era: me({
570
+ values: ur,
571
+ defaultWidth: "wide"
572
+ }),
573
+ quarter: me({
574
+ values: fr,
575
+ defaultWidth: "wide",
576
+ argumentCallback: (e) => e - 1
577
+ }),
578
+ month: me({
579
+ values: lr,
580
+ defaultWidth: "wide"
581
+ }),
582
+ day: me({
583
+ values: hr,
584
+ defaultWidth: "wide"
585
+ }),
586
+ dayPeriod: me({
587
+ values: mr,
588
+ defaultWidth: "wide",
589
+ formattingValues: yr,
590
+ defaultFormattingWidth: "wide"
591
+ })
592
+ };
593
+ function ye(e) {
594
+ return (t, n = {}) => {
595
+ const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(a);
596
+ if (!s)
597
+ return null;
598
+ const o = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(i) ? wr(i, (f) => f.test(o)) : (
599
+ // [TODO] -- I challenge you to fix the type
600
+ Mr(i, (f) => f.test(o))
601
+ );
602
+ let c;
603
+ c = e.valueCallback ? e.valueCallback(d) : d, c = n.valueCallback ? (
604
+ // [TODO] -- I challenge you to fix the type
605
+ n.valueCallback(c)
606
+ ) : c;
607
+ const u = t.slice(o.length);
608
+ return { value: c, rest: u };
609
+ };
610
+ }
611
+ function Mr(e, t) {
612
+ for (const n in e)
613
+ if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
614
+ return n;
615
+ }
616
+ function wr(e, t) {
617
+ for (let n = 0; n < e.length; n++)
618
+ if (t(e[n]))
619
+ return n;
620
+ }
621
+ function vr(e) {
622
+ return (t, n = {}) => {
623
+ const r = t.match(e.matchPattern);
624
+ if (!r) return null;
625
+ const a = r[0], s = t.match(e.parsePattern);
626
+ if (!s) return null;
627
+ let o = e.valueCallback ? e.valueCallback(s[0]) : s[0];
628
+ o = n.valueCallback ? n.valueCallback(o) : o;
629
+ const i = t.slice(a.length);
630
+ return { value: o, rest: i };
631
+ };
632
+ }
633
+ const kr = /^(\d+)(th|st|nd|rd)?/i, Dr = /\d+/i, Or = {
634
+ narrow: /^(b|a)/i,
635
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
636
+ wide: /^(before christ|before common era|anno domini|common era)/i
637
+ }, pr = {
638
+ any: [/^b/i, /^(a|c)/i]
639
+ }, Wr = {
640
+ narrow: /^[1234]/i,
641
+ abbreviated: /^q[1234]/i,
642
+ wide: /^[1234](th|st|nd|rd)? quarter/i
643
+ }, Sr = {
644
+ any: [/1/i, /2/i, /3/i, /4/i]
645
+ }, Nr = {
646
+ narrow: /^[jfmasond]/i,
647
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
648
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
649
+ }, Cr = {
650
+ narrow: [
651
+ /^j/i,
652
+ /^f/i,
653
+ /^m/i,
654
+ /^a/i,
655
+ /^m/i,
656
+ /^j/i,
657
+ /^j/i,
658
+ /^a/i,
659
+ /^s/i,
660
+ /^o/i,
661
+ /^n/i,
662
+ /^d/i
663
+ ],
664
+ any: [
665
+ /^ja/i,
666
+ /^f/i,
667
+ /^mar/i,
668
+ /^ap/i,
669
+ /^may/i,
670
+ /^jun/i,
671
+ /^jul/i,
672
+ /^au/i,
673
+ /^s/i,
674
+ /^o/i,
675
+ /^n/i,
676
+ /^d/i
677
+ ]
678
+ }, xr = {
679
+ narrow: /^[smtwf]/i,
680
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
681
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
682
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
683
+ }, _r = {
684
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
685
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
686
+ }, Yr = {
687
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
688
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
689
+ }, Tr = {
690
+ any: {
691
+ am: /^a/i,
692
+ pm: /^p/i,
693
+ midnight: /^mi/i,
694
+ noon: /^no/i,
695
+ morning: /morning/i,
696
+ afternoon: /afternoon/i,
697
+ evening: /evening/i,
698
+ night: /night/i
699
+ }
700
+ }, Pr = {
701
+ ordinalNumber: vr({
702
+ matchPattern: kr,
703
+ parsePattern: Dr,
704
+ valueCallback: (e) => parseInt(e, 10)
705
+ }),
706
+ era: ye({
707
+ matchPatterns: Or,
708
+ defaultMatchWidth: "wide",
709
+ parsePatterns: pr,
710
+ defaultParseWidth: "any"
711
+ }),
712
+ quarter: ye({
713
+ matchPatterns: Wr,
714
+ defaultMatchWidth: "wide",
715
+ parsePatterns: Sr,
716
+ defaultParseWidth: "any",
717
+ valueCallback: (e) => e + 1
718
+ }),
719
+ month: ye({
720
+ matchPatterns: Nr,
721
+ defaultMatchWidth: "wide",
722
+ parsePatterns: Cr,
723
+ defaultParseWidth: "any"
724
+ }),
725
+ day: ye({
726
+ matchPatterns: xr,
727
+ defaultMatchWidth: "wide",
728
+ parsePatterns: _r,
729
+ defaultParseWidth: "any"
730
+ }),
731
+ dayPeriod: ye({
732
+ matchPatterns: Yr,
733
+ defaultMatchWidth: "any",
734
+ parsePatterns: Tr,
735
+ defaultParseWidth: "any"
736
+ })
737
+ }, oe = {
738
+ code: "en-US",
739
+ formatDistance: rr,
740
+ formatLong: ir,
741
+ formatRelative: cr,
742
+ localize: br,
743
+ match: Pr,
744
+ options: {
745
+ weekStartsOn: 0,
746
+ firstWeekContainsDate: 1
747
+ }
748
+ }, Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
749
+ __proto__: null,
750
+ enUS: oe
751
+ }, Symbol.toStringTag, { value: "Module" }));
752
+ function Fr(e, t) {
753
+ const n = P(e, t == null ? void 0 : t.in);
754
+ return Je(n, Ft(n)) + 1;
755
+ }
756
+ function Ze(e, t) {
757
+ const n = P(e, t == null ? void 0 : t.in), r = +Me(n) - +Gn(n);
758
+ return Math.round(r / Nt) + 1;
759
+ }
760
+ function It(e, t) {
761
+ var u, f, h, g;
762
+ const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = ve(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((g = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, o = I((t == null ? void 0 : t.in) || e, 0);
763
+ o.setFullYear(r + 1, 0, s), o.setHours(0, 0, 0, 0);
764
+ const i = fe(o, t), d = I((t == null ? void 0 : t.in) || e, 0);
765
+ d.setFullYear(r, 0, s), d.setHours(0, 0, 0, 0);
766
+ const c = fe(d, t);
767
+ return +n >= +i ? r + 1 : +n >= +c ? r : r - 1;
768
+ }
769
+ function Br(e, t) {
770
+ var i, d, c, u;
771
+ const n = ve(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, a = It(e, t), s = I((t == null ? void 0 : t.in) || e, 0);
772
+ return s.setFullYear(a, 0, r), s.setHours(0, 0, 0, 0), fe(s, t);
773
+ }
774
+ function Le(e, t) {
775
+ const n = P(e, t == null ? void 0 : t.in), r = +fe(n, t) - +Br(n, t);
776
+ return Math.round(r / Nt) + 1;
777
+ }
778
+ function Y(e, t) {
779
+ const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
780
+ return n + r;
781
+ }
782
+ const ae = {
783
+ // Year
784
+ y(e, t) {
785
+ const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
786
+ return Y(t === "yy" ? r % 100 : r, t.length);
787
+ },
788
+ // Month
789
+ M(e, t) {
790
+ const n = e.getMonth();
791
+ return t === "M" ? String(n + 1) : Y(n + 1, 2);
792
+ },
793
+ // Day of the month
794
+ d(e, t) {
795
+ return Y(e.getDate(), t.length);
796
+ },
797
+ // AM or PM
798
+ a(e, t) {
799
+ const n = e.getHours() / 12 >= 1 ? "pm" : "am";
800
+ switch (t) {
801
+ case "a":
802
+ case "aa":
803
+ return n.toUpperCase();
804
+ case "aaa":
805
+ return n;
806
+ case "aaaaa":
807
+ return n[0];
808
+ case "aaaa":
809
+ default:
810
+ return n === "am" ? "a.m." : "p.m.";
811
+ }
812
+ },
813
+ // Hour [1-12]
814
+ h(e, t) {
815
+ return Y(e.getHours() % 12 || 12, t.length);
816
+ },
817
+ // Hour [0-23]
818
+ H(e, t) {
819
+ return Y(e.getHours(), t.length);
820
+ },
821
+ // Minute
822
+ m(e, t) {
823
+ return Y(e.getMinutes(), t.length);
824
+ },
825
+ // Second
826
+ s(e, t) {
827
+ return Y(e.getSeconds(), t.length);
828
+ },
829
+ // Fraction of second
830
+ S(e, t) {
831
+ const n = t.length, r = e.getMilliseconds(), a = Math.trunc(
832
+ r * Math.pow(10, n - 3)
833
+ );
834
+ return Y(a, t.length);
835
+ }
836
+ }, ce = {
837
+ midnight: "midnight",
838
+ noon: "noon",
839
+ morning: "morning",
840
+ afternoon: "afternoon",
841
+ evening: "evening",
842
+ night: "night"
843
+ }, yt = {
844
+ // Era
845
+ G: function(e, t, n) {
846
+ const r = e.getFullYear() > 0 ? 1 : 0;
847
+ switch (t) {
848
+ // AD, BC
849
+ case "G":
850
+ case "GG":
851
+ case "GGG":
852
+ return n.era(r, { width: "abbreviated" });
853
+ // A, B
854
+ case "GGGGG":
855
+ return n.era(r, { width: "narrow" });
856
+ // Anno Domini, Before Christ
857
+ case "GGGG":
858
+ default:
859
+ return n.era(r, { width: "wide" });
860
+ }
861
+ },
862
+ // Year
863
+ y: function(e, t, n) {
864
+ if (t === "yo") {
865
+ const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
866
+ return n.ordinalNumber(a, { unit: "year" });
867
+ }
868
+ return ae.y(e, t);
869
+ },
870
+ // Local week-numbering year
871
+ Y: function(e, t, n, r) {
872
+ const a = It(e, r), s = a > 0 ? a : 1 - a;
873
+ if (t === "YY") {
874
+ const o = s % 100;
875
+ return Y(o, 2);
876
+ }
877
+ return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : Y(s, t.length);
878
+ },
879
+ // ISO week-numbering year
880
+ R: function(e, t) {
881
+ const n = Yt(e);
882
+ return Y(n, t.length);
883
+ },
884
+ // Extended year. This is a single number designating the year of this calendar system.
885
+ // The main difference between `y` and `u` localizers are B.C. years:
886
+ // | Year | `y` | `u` |
887
+ // |------|-----|-----|
888
+ // | AC 1 | 1 | 1 |
889
+ // | BC 1 | 1 | 0 |
890
+ // | BC 2 | 2 | -1 |
891
+ // Also `yy` always returns the last two digits of a year,
892
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
893
+ u: function(e, t) {
894
+ const n = e.getFullYear();
895
+ return Y(n, t.length);
896
+ },
897
+ // Quarter
898
+ Q: function(e, t, n) {
899
+ const r = Math.ceil((e.getMonth() + 1) / 3);
900
+ switch (t) {
901
+ // 1, 2, 3, 4
902
+ case "Q":
903
+ return String(r);
904
+ // 01, 02, 03, 04
905
+ case "QQ":
906
+ return Y(r, 2);
907
+ // 1st, 2nd, 3rd, 4th
908
+ case "Qo":
909
+ return n.ordinalNumber(r, { unit: "quarter" });
910
+ // Q1, Q2, Q3, Q4
911
+ case "QQQ":
912
+ return n.quarter(r, {
913
+ width: "abbreviated",
914
+ context: "formatting"
915
+ });
916
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
917
+ case "QQQQQ":
918
+ return n.quarter(r, {
919
+ width: "narrow",
920
+ context: "formatting"
921
+ });
922
+ // 1st quarter, 2nd quarter, ...
923
+ case "QQQQ":
924
+ default:
925
+ return n.quarter(r, {
926
+ width: "wide",
927
+ context: "formatting"
928
+ });
929
+ }
930
+ },
931
+ // Stand-alone quarter
932
+ q: function(e, t, n) {
933
+ const r = Math.ceil((e.getMonth() + 1) / 3);
934
+ switch (t) {
935
+ // 1, 2, 3, 4
936
+ case "q":
937
+ return String(r);
938
+ // 01, 02, 03, 04
939
+ case "qq":
940
+ return Y(r, 2);
941
+ // 1st, 2nd, 3rd, 4th
942
+ case "qo":
943
+ return n.ordinalNumber(r, { unit: "quarter" });
944
+ // Q1, Q2, Q3, Q4
945
+ case "qqq":
946
+ return n.quarter(r, {
947
+ width: "abbreviated",
948
+ context: "standalone"
949
+ });
950
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
951
+ case "qqqqq":
952
+ return n.quarter(r, {
953
+ width: "narrow",
954
+ context: "standalone"
955
+ });
956
+ // 1st quarter, 2nd quarter, ...
957
+ case "qqqq":
958
+ default:
959
+ return n.quarter(r, {
960
+ width: "wide",
961
+ context: "standalone"
962
+ });
963
+ }
964
+ },
965
+ // Month
966
+ M: function(e, t, n) {
967
+ const r = e.getMonth();
968
+ switch (t) {
969
+ case "M":
970
+ case "MM":
971
+ return ae.M(e, t);
972
+ // 1st, 2nd, ..., 12th
973
+ case "Mo":
974
+ return n.ordinalNumber(r + 1, { unit: "month" });
975
+ // Jan, Feb, ..., Dec
976
+ case "MMM":
977
+ return n.month(r, {
978
+ width: "abbreviated",
979
+ context: "formatting"
980
+ });
981
+ // J, F, ..., D
982
+ case "MMMMM":
983
+ return n.month(r, {
984
+ width: "narrow",
985
+ context: "formatting"
986
+ });
987
+ // January, February, ..., December
988
+ case "MMMM":
989
+ default:
990
+ return n.month(r, { width: "wide", context: "formatting" });
991
+ }
992
+ },
993
+ // Stand-alone month
994
+ L: function(e, t, n) {
995
+ const r = e.getMonth();
996
+ switch (t) {
997
+ // 1, 2, ..., 12
998
+ case "L":
999
+ return String(r + 1);
1000
+ // 01, 02, ..., 12
1001
+ case "LL":
1002
+ return Y(r + 1, 2);
1003
+ // 1st, 2nd, ..., 12th
1004
+ case "Lo":
1005
+ return n.ordinalNumber(r + 1, { unit: "month" });
1006
+ // Jan, Feb, ..., Dec
1007
+ case "LLL":
1008
+ return n.month(r, {
1009
+ width: "abbreviated",
1010
+ context: "standalone"
1011
+ });
1012
+ // J, F, ..., D
1013
+ case "LLLLL":
1014
+ return n.month(r, {
1015
+ width: "narrow",
1016
+ context: "standalone"
1017
+ });
1018
+ // January, February, ..., December
1019
+ case "LLLL":
1020
+ default:
1021
+ return n.month(r, { width: "wide", context: "standalone" });
1022
+ }
1023
+ },
1024
+ // Local week of year
1025
+ w: function(e, t, n, r) {
1026
+ const a = Le(e, r);
1027
+ return t === "wo" ? n.ordinalNumber(a, { unit: "week" }) : Y(a, t.length);
1028
+ },
1029
+ // ISO week of year
1030
+ I: function(e, t, n) {
1031
+ const r = Ze(e);
1032
+ return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : Y(r, t.length);
1033
+ },
1034
+ // Day of the month
1035
+ d: function(e, t, n) {
1036
+ return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : ae.d(e, t);
1037
+ },
1038
+ // Day of year
1039
+ D: function(e, t, n) {
1040
+ const r = Fr(e);
1041
+ return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Y(r, t.length);
1042
+ },
1043
+ // Day of week
1044
+ E: function(e, t, n) {
1045
+ const r = e.getDay();
1046
+ switch (t) {
1047
+ // Tue
1048
+ case "E":
1049
+ case "EE":
1050
+ case "EEE":
1051
+ return n.day(r, {
1052
+ width: "abbreviated",
1053
+ context: "formatting"
1054
+ });
1055
+ // T
1056
+ case "EEEEE":
1057
+ return n.day(r, {
1058
+ width: "narrow",
1059
+ context: "formatting"
1060
+ });
1061
+ // Tu
1062
+ case "EEEEEE":
1063
+ return n.day(r, {
1064
+ width: "short",
1065
+ context: "formatting"
1066
+ });
1067
+ // Tuesday
1068
+ case "EEEE":
1069
+ default:
1070
+ return n.day(r, {
1071
+ width: "wide",
1072
+ context: "formatting"
1073
+ });
1074
+ }
1075
+ },
1076
+ // Local day of week
1077
+ e: function(e, t, n, r) {
1078
+ const a = e.getDay(), s = (a - r.weekStartsOn + 8) % 7 || 7;
1079
+ switch (t) {
1080
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
1081
+ case "e":
1082
+ return String(s);
1083
+ // Padded numerical value
1084
+ case "ee":
1085
+ return Y(s, 2);
1086
+ // 1st, 2nd, ..., 7th
1087
+ case "eo":
1088
+ return n.ordinalNumber(s, { unit: "day" });
1089
+ case "eee":
1090
+ return n.day(a, {
1091
+ width: "abbreviated",
1092
+ context: "formatting"
1093
+ });
1094
+ // T
1095
+ case "eeeee":
1096
+ return n.day(a, {
1097
+ width: "narrow",
1098
+ context: "formatting"
1099
+ });
1100
+ // Tu
1101
+ case "eeeeee":
1102
+ return n.day(a, {
1103
+ width: "short",
1104
+ context: "formatting"
1105
+ });
1106
+ // Tuesday
1107
+ case "eeee":
1108
+ default:
1109
+ return n.day(a, {
1110
+ width: "wide",
1111
+ context: "formatting"
1112
+ });
1113
+ }
1114
+ },
1115
+ // Stand-alone local day of week
1116
+ c: function(e, t, n, r) {
1117
+ const a = e.getDay(), s = (a - r.weekStartsOn + 8) % 7 || 7;
1118
+ switch (t) {
1119
+ // Numerical value (same as in `e`)
1120
+ case "c":
1121
+ return String(s);
1122
+ // Padded numerical value
1123
+ case "cc":
1124
+ return Y(s, t.length);
1125
+ // 1st, 2nd, ..., 7th
1126
+ case "co":
1127
+ return n.ordinalNumber(s, { unit: "day" });
1128
+ case "ccc":
1129
+ return n.day(a, {
1130
+ width: "abbreviated",
1131
+ context: "standalone"
1132
+ });
1133
+ // T
1134
+ case "ccccc":
1135
+ return n.day(a, {
1136
+ width: "narrow",
1137
+ context: "standalone"
1138
+ });
1139
+ // Tu
1140
+ case "cccccc":
1141
+ return n.day(a, {
1142
+ width: "short",
1143
+ context: "standalone"
1144
+ });
1145
+ // Tuesday
1146
+ case "cccc":
1147
+ default:
1148
+ return n.day(a, {
1149
+ width: "wide",
1150
+ context: "standalone"
1151
+ });
1152
+ }
1153
+ },
1154
+ // ISO day of week
1155
+ i: function(e, t, n) {
1156
+ const r = e.getDay(), a = r === 0 ? 7 : r;
1157
+ switch (t) {
1158
+ // 2
1159
+ case "i":
1160
+ return String(a);
1161
+ // 02
1162
+ case "ii":
1163
+ return Y(a, t.length);
1164
+ // 2nd
1165
+ case "io":
1166
+ return n.ordinalNumber(a, { unit: "day" });
1167
+ // Tue
1168
+ case "iii":
1169
+ return n.day(r, {
1170
+ width: "abbreviated",
1171
+ context: "formatting"
1172
+ });
1173
+ // T
1174
+ case "iiiii":
1175
+ return n.day(r, {
1176
+ width: "narrow",
1177
+ context: "formatting"
1178
+ });
1179
+ // Tu
1180
+ case "iiiiii":
1181
+ return n.day(r, {
1182
+ width: "short",
1183
+ context: "formatting"
1184
+ });
1185
+ // Tuesday
1186
+ case "iiii":
1187
+ default:
1188
+ return n.day(r, {
1189
+ width: "wide",
1190
+ context: "formatting"
1191
+ });
1192
+ }
1193
+ },
1194
+ // AM or PM
1195
+ a: function(e, t, n) {
1196
+ const a = e.getHours() / 12 >= 1 ? "pm" : "am";
1197
+ switch (t) {
1198
+ case "a":
1199
+ case "aa":
1200
+ return n.dayPeriod(a, {
1201
+ width: "abbreviated",
1202
+ context: "formatting"
1203
+ });
1204
+ case "aaa":
1205
+ return n.dayPeriod(a, {
1206
+ width: "abbreviated",
1207
+ context: "formatting"
1208
+ }).toLowerCase();
1209
+ case "aaaaa":
1210
+ return n.dayPeriod(a, {
1211
+ width: "narrow",
1212
+ context: "formatting"
1213
+ });
1214
+ case "aaaa":
1215
+ default:
1216
+ return n.dayPeriod(a, {
1217
+ width: "wide",
1218
+ context: "formatting"
1219
+ });
1220
+ }
1221
+ },
1222
+ // AM, PM, midnight, noon
1223
+ b: function(e, t, n) {
1224
+ const r = e.getHours();
1225
+ let a;
1226
+ switch (r === 12 ? a = ce.noon : r === 0 ? a = ce.midnight : a = r / 12 >= 1 ? "pm" : "am", t) {
1227
+ case "b":
1228
+ case "bb":
1229
+ return n.dayPeriod(a, {
1230
+ width: "abbreviated",
1231
+ context: "formatting"
1232
+ });
1233
+ case "bbb":
1234
+ return n.dayPeriod(a, {
1235
+ width: "abbreviated",
1236
+ context: "formatting"
1237
+ }).toLowerCase();
1238
+ case "bbbbb":
1239
+ return n.dayPeriod(a, {
1240
+ width: "narrow",
1241
+ context: "formatting"
1242
+ });
1243
+ case "bbbb":
1244
+ default:
1245
+ return n.dayPeriod(a, {
1246
+ width: "wide",
1247
+ context: "formatting"
1248
+ });
1249
+ }
1250
+ },
1251
+ // in the morning, in the afternoon, in the evening, at night
1252
+ B: function(e, t, n) {
1253
+ const r = e.getHours();
1254
+ let a;
1255
+ switch (r >= 17 ? a = ce.evening : r >= 12 ? a = ce.afternoon : r >= 4 ? a = ce.morning : a = ce.night, t) {
1256
+ case "B":
1257
+ case "BB":
1258
+ case "BBB":
1259
+ return n.dayPeriod(a, {
1260
+ width: "abbreviated",
1261
+ context: "formatting"
1262
+ });
1263
+ case "BBBBB":
1264
+ return n.dayPeriod(a, {
1265
+ width: "narrow",
1266
+ context: "formatting"
1267
+ });
1268
+ case "BBBB":
1269
+ default:
1270
+ return n.dayPeriod(a, {
1271
+ width: "wide",
1272
+ context: "formatting"
1273
+ });
1274
+ }
1275
+ },
1276
+ // Hour [1-12]
1277
+ h: function(e, t, n) {
1278
+ if (t === "ho") {
1279
+ let r = e.getHours() % 12;
1280
+ return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
1281
+ }
1282
+ return ae.h(e, t);
1283
+ },
1284
+ // Hour [0-23]
1285
+ H: function(e, t, n) {
1286
+ return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : ae.H(e, t);
1287
+ },
1288
+ // Hour [0-11]
1289
+ K: function(e, t, n) {
1290
+ const r = e.getHours() % 12;
1291
+ return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : Y(r, t.length);
1292
+ },
1293
+ // Hour [1-24]
1294
+ k: function(e, t, n) {
1295
+ let r = e.getHours();
1296
+ return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : Y(r, t.length);
1297
+ },
1298
+ // Minute
1299
+ m: function(e, t, n) {
1300
+ return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : ae.m(e, t);
1301
+ },
1302
+ // Second
1303
+ s: function(e, t, n) {
1304
+ return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : ae.s(e, t);
1305
+ },
1306
+ // Fraction of second
1307
+ S: function(e, t) {
1308
+ return ae.S(e, t);
1309
+ },
1310
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1311
+ X: function(e, t, n) {
1312
+ const r = e.getTimezoneOffset();
1313
+ if (r === 0)
1314
+ return "Z";
1315
+ switch (t) {
1316
+ // Hours and optional minutes
1317
+ case "X":
1318
+ return bt(r);
1319
+ // Hours, minutes and optional seconds without `:` delimiter
1320
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1321
+ // so this token always has the same output as `XX`
1322
+ case "XXXX":
1323
+ case "XX":
1324
+ return se(r);
1325
+ // Hours, minutes and optional seconds with `:` delimiter
1326
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1327
+ // so this token always has the same output as `XXX`
1328
+ case "XXXXX":
1329
+ case "XXX":
1330
+ // Hours and minutes with `:` delimiter
1331
+ default:
1332
+ return se(r, ":");
1333
+ }
1334
+ },
1335
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1336
+ x: function(e, t, n) {
1337
+ const r = e.getTimezoneOffset();
1338
+ switch (t) {
1339
+ // Hours and optional minutes
1340
+ case "x":
1341
+ return bt(r);
1342
+ // Hours, minutes and optional seconds without `:` delimiter
1343
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1344
+ // so this token always has the same output as `xx`
1345
+ case "xxxx":
1346
+ case "xx":
1347
+ return se(r);
1348
+ // Hours, minutes and optional seconds with `:` delimiter
1349
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1350
+ // so this token always has the same output as `xxx`
1351
+ case "xxxxx":
1352
+ case "xxx":
1353
+ // Hours and minutes with `:` delimiter
1354
+ default:
1355
+ return se(r, ":");
1356
+ }
1357
+ },
1358
+ // Timezone (GMT)
1359
+ O: function(e, t, n) {
1360
+ const r = e.getTimezoneOffset();
1361
+ switch (t) {
1362
+ // Short
1363
+ case "O":
1364
+ case "OO":
1365
+ case "OOO":
1366
+ return "GMT" + gt(r, ":");
1367
+ // Long
1368
+ case "OOOO":
1369
+ default:
1370
+ return "GMT" + se(r, ":");
1371
+ }
1372
+ },
1373
+ // Timezone (specific non-location)
1374
+ z: function(e, t, n) {
1375
+ const r = e.getTimezoneOffset();
1376
+ switch (t) {
1377
+ // Short
1378
+ case "z":
1379
+ case "zz":
1380
+ case "zzz":
1381
+ return "GMT" + gt(r, ":");
1382
+ // Long
1383
+ case "zzzz":
1384
+ default:
1385
+ return "GMT" + se(r, ":");
1386
+ }
1387
+ },
1388
+ // Seconds timestamp
1389
+ t: function(e, t, n) {
1390
+ const r = Math.trunc(+e / 1e3);
1391
+ return Y(r, t.length);
1392
+ },
1393
+ // Milliseconds timestamp
1394
+ T: function(e, t, n) {
1395
+ return Y(+e, t.length);
1396
+ }
1397
+ };
1398
+ function gt(e, t = "") {
1399
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), s = r % 60;
1400
+ return s === 0 ? n + String(a) : n + String(a) + t + Y(s, 2);
1401
+ }
1402
+ function bt(e, t) {
1403
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + Y(Math.abs(e) / 60, 2) : se(e, t);
1404
+ }
1405
+ function se(e, t = "") {
1406
+ const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Y(Math.trunc(r / 60), 2), s = Y(r % 60, 2);
1407
+ return n + a + t + s;
1408
+ }
1409
+ const Mt = (e, t) => {
1410
+ switch (e) {
1411
+ case "P":
1412
+ return t.date({ width: "short" });
1413
+ case "PP":
1414
+ return t.date({ width: "medium" });
1415
+ case "PPP":
1416
+ return t.date({ width: "long" });
1417
+ case "PPPP":
1418
+ default:
1419
+ return t.date({ width: "full" });
1420
+ }
1421
+ }, Ht = (e, t) => {
1422
+ switch (e) {
1423
+ case "p":
1424
+ return t.time({ width: "short" });
1425
+ case "pp":
1426
+ return t.time({ width: "medium" });
1427
+ case "ppp":
1428
+ return t.time({ width: "long" });
1429
+ case "pppp":
1430
+ default:
1431
+ return t.time({ width: "full" });
1432
+ }
1433
+ }, Ir = (e, t) => {
1434
+ const n = e.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1435
+ if (!a)
1436
+ return Mt(e, t);
1437
+ let s;
1438
+ switch (r) {
1439
+ case "P":
1440
+ s = t.dateTime({ width: "short" });
1441
+ break;
1442
+ case "PP":
1443
+ s = t.dateTime({ width: "medium" });
1444
+ break;
1445
+ case "PPP":
1446
+ s = t.dateTime({ width: "long" });
1447
+ break;
1448
+ case "PPPP":
1449
+ default:
1450
+ s = t.dateTime({ width: "full" });
1451
+ break;
1452
+ }
1453
+ return s.replace("{{date}}", Mt(r, t)).replace("{{time}}", Ht(a, t));
1454
+ }, Hr = {
1455
+ p: Ht,
1456
+ P: Ir
1457
+ }, Ar = /^D+$/, zr = /^Y+$/, qr = ["D", "DD", "YY", "YYYY"];
1458
+ function jr(e) {
1459
+ return Ar.test(e);
1460
+ }
1461
+ function $r(e) {
1462
+ return zr.test(e);
1463
+ }
1464
+ function Gr(e, t, n) {
1465
+ const r = Rr(e, t, n);
1466
+ if (console.warn(r), qr.includes(e)) throw new RangeError(r);
1467
+ }
1468
+ function Rr(e, t, n) {
1469
+ const r = e[0] === "Y" ? "years" : "days of the month";
1470
+ return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1471
+ }
1472
+ const Vr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ur = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Qr = /^'([^]*?)'?$/, Xr = /''/g, Kr = /[a-zA-Z]/;
1473
+ function be(e, t, n) {
1474
+ var u, f, h, g, D, p, k, N;
1475
+ const r = ve(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? oe, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (D = n == null ? void 0 : n.locale) == null ? void 0 : D.options) == null ? void 0 : p.weekStartsOn) ?? r.weekStartsOn ?? ((N = (k = r.locale) == null ? void 0 : k.options) == null ? void 0 : N.weekStartsOn) ?? 0, i = P(e, n == null ? void 0 : n.in);
1476
+ if (!Xn(i))
1477
+ throw new RangeError("Invalid time value");
1478
+ let d = t.match(Ur).map((M) => {
1479
+ const b = M[0];
1480
+ if (b === "p" || b === "P") {
1481
+ const W = Hr[b];
1482
+ return W(M, a.formatLong);
1483
+ }
1484
+ return M;
1485
+ }).join("").match(Vr).map((M) => {
1486
+ if (M === "''")
1487
+ return { isToken: !1, value: "'" };
1488
+ const b = M[0];
1489
+ if (b === "'")
1490
+ return { isToken: !1, value: Jr(M) };
1491
+ if (yt[b])
1492
+ return { isToken: !0, value: M };
1493
+ if (b.match(Kr))
1494
+ throw new RangeError(
1495
+ "Format string contains an unescaped latin alphabet character `" + b + "`"
1496
+ );
1497
+ return { isToken: !1, value: M };
1498
+ });
1499
+ a.localize.preprocessor && (d = a.localize.preprocessor(i, d));
1500
+ const c = {
1501
+ firstWeekContainsDate: s,
1502
+ weekStartsOn: o,
1503
+ locale: a
1504
+ };
1505
+ return d.map((M) => {
1506
+ if (!M.isToken) return M.value;
1507
+ const b = M.value;
1508
+ (!(n != null && n.useAdditionalWeekYearTokens) && $r(b) || !(n != null && n.useAdditionalDayOfYearTokens) && jr(b)) && Gr(b, t, String(e));
1509
+ const W = yt[b[0]];
1510
+ return W(i, b, a.localize, c);
1511
+ }).join("");
1512
+ }
1513
+ function Jr(e) {
1514
+ const t = e.match(Qr);
1515
+ return t ? t[1].replace(Xr, "'") : e;
1516
+ }
1517
+ function Zr(e, t) {
1518
+ const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = n.getMonth(), s = I(n, 0);
1519
+ return s.setFullYear(r, a + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
1520
+ }
1521
+ function Lr(e, t) {
1522
+ return P(e, t == null ? void 0 : t.in).getMonth();
1523
+ }
1524
+ function ea(e, t) {
1525
+ return P(e, t == null ? void 0 : t.in).getFullYear();
1526
+ }
1527
+ function ta(e, t) {
1528
+ return +P(e) > +P(t);
1529
+ }
1530
+ function na(e, t) {
1531
+ return +P(e) < +P(t);
1532
+ }
1533
+ function ra(e, t, n) {
1534
+ const [r, a] = we(
1535
+ n == null ? void 0 : n.in,
1536
+ e,
1537
+ t
1538
+ );
1539
+ return r.getFullYear() === a.getFullYear() && r.getMonth() === a.getMonth();
1540
+ }
1541
+ function aa(e, t, n) {
1542
+ const [r, a] = we(
1543
+ n == null ? void 0 : n.in,
1544
+ e,
1545
+ t
1546
+ );
1547
+ return r.getFullYear() === a.getFullYear();
1548
+ }
1549
+ function sa(e, t, n) {
1550
+ const r = P(e, n == null ? void 0 : n.in), a = r.getFullYear(), s = r.getDate(), o = I(e, 0);
1551
+ o.setFullYear(a, t, 15), o.setHours(0, 0, 0, 0);
1552
+ const i = Zr(o);
1553
+ return r.setMonth(t, Math.min(s, i)), r;
1554
+ }
1555
+ function oa(e, t, n) {
1556
+ const r = P(e, n == null ? void 0 : n.in);
1557
+ return isNaN(+r) ? I(e, NaN) : (r.setFullYear(t), r);
1558
+ }
1559
+ const wt = 5, ia = 4;
1560
+ function da(e, t) {
1561
+ const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, a = t.addDays(e, -r + 1), s = t.addDays(a, wt * 7 - 1);
1562
+ return t.getMonth(e) === t.getMonth(s) ? wt : ia;
1563
+ }
1564
+ function At(e, t) {
1565
+ const n = t.startOfMonth(e), r = n.getDay();
1566
+ return r === 1 ? n : r === 0 ? t.addDays(n, -6) : t.addDays(n, -1 * (r - 1));
1567
+ }
1568
+ function ca(e, t) {
1569
+ const n = At(e, t), r = da(e, t);
1570
+ return t.addDays(n, r * 7 - 1);
1571
+ }
1572
+ const zt = {
1573
+ ...oe,
1574
+ labels: {
1575
+ labelDayButton: (e, t, n, r) => {
1576
+ let a;
1577
+ r && typeof r.format == "function" ? a = r.format.bind(r) : a = (o, i) => be(o, i, { locale: oe, ...n });
1578
+ let s = a(e, "PPPP");
1579
+ return t.today && (s = `Today, ${s}`), t.selected && (s = `${s}, selected`), s;
1580
+ },
1581
+ labelMonthDropdown: "Choose the Month",
1582
+ labelNext: "Go to the Next Month",
1583
+ labelPrevious: "Go to the Previous Month",
1584
+ labelWeekNumber: (e) => `Week ${e}`,
1585
+ labelYearDropdown: "Choose the Year",
1586
+ labelGrid: (e, t, n) => {
1587
+ let r;
1588
+ return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (a, s) => be(a, s, { locale: oe, ...t }), r(e, "LLLL yyyy");
1589
+ },
1590
+ labelGridcell: (e, t, n, r) => {
1591
+ let a;
1592
+ r && typeof r.format == "function" ? a = r.format.bind(r) : a = (o, i) => be(o, i, { locale: oe, ...n });
1593
+ let s = a(e, "PPPP");
1594
+ return t != null && t.today && (s = `Today, ${s}`), s;
1595
+ },
1596
+ labelNav: "Navigation bar",
1597
+ labelWeekNumberHeader: "Week Number",
1598
+ labelWeekday: (e, t, n) => {
1599
+ let r;
1600
+ return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (a, s) => be(a, s, { locale: oe, ...t }), r(e, "cccc");
1601
+ }
1602
+ }
1603
+ };
1604
+ class j {
1605
+ /**
1606
+ * Creates an instance of `DateLib`.
1607
+ *
1608
+ * @param options Configuration options for the date library.
1609
+ * @param overrides Custom overrides for the date library functions.
1610
+ */
1611
+ constructor(t, n) {
1612
+ this.Date = Date, this.today = () => {
1613
+ var r;
1614
+ return (r = this.overrides) != null && r.today ? this.overrides.today() : this.options.timeZone ? H.tz(this.options.timeZone) : new this.Date();
1615
+ }, this.newDate = (r, a, s) => {
1616
+ var o;
1617
+ return (o = this.overrides) != null && o.newDate ? this.overrides.newDate(r, a, s) : this.options.timeZone ? new H(r, a, s, this.options.timeZone) : new Date(r, a, s);
1618
+ }, this.addDays = (r, a) => {
1619
+ var s;
1620
+ return (s = this.overrides) != null && s.addDays ? this.overrides.addDays(r, a) : xt(r, a);
1621
+ }, this.addMonths = (r, a) => {
1622
+ var s;
1623
+ return (s = this.overrides) != null && s.addMonths ? this.overrides.addMonths(r, a) : _t(r, a);
1624
+ }, this.addWeeks = (r, a) => {
1625
+ var s;
1626
+ return (s = this.overrides) != null && s.addWeeks ? this.overrides.addWeeks(r, a) : Rn(r, a);
1627
+ }, this.addYears = (r, a) => {
1628
+ var s;
1629
+ return (s = this.overrides) != null && s.addYears ? this.overrides.addYears(r, a) : Vn(r, a);
1630
+ }, this.differenceInCalendarDays = (r, a) => {
1631
+ var s;
1632
+ return (s = this.overrides) != null && s.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, a) : Je(r, a);
1633
+ }, this.differenceInCalendarMonths = (r, a) => {
1634
+ var s;
1635
+ return (s = this.overrides) != null && s.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, a) : Pt(r, a);
1636
+ }, this.eachMonthOfInterval = (r) => {
1637
+ var a;
1638
+ return (a = this.overrides) != null && a.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Jn(r);
1639
+ }, this.eachYearOfInterval = (r) => {
1640
+ var i;
1641
+ const a = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : er(r), s = new Set(a.map((d) => this.getYear(d)));
1642
+ if (s.size === a.length)
1643
+ return a;
1644
+ const o = [];
1645
+ return s.forEach((d) => {
1646
+ o.push(new Date(d, 0, 1));
1647
+ }), o;
1648
+ }, this.endOfBroadcastWeek = (r) => {
1649
+ var a;
1650
+ return (a = this.overrides) != null && a.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : ca(r, this);
1651
+ }, this.endOfISOWeek = (r) => {
1652
+ var a;
1653
+ return (a = this.overrides) != null && a.endOfISOWeek ? this.overrides.endOfISOWeek(r) : tr(r);
1654
+ }, this.endOfMonth = (r) => {
1655
+ var a;
1656
+ return (a = this.overrides) != null && a.endOfMonth ? this.overrides.endOfMonth(r) : Kn(r);
1657
+ }, this.endOfWeek = (r, a) => {
1658
+ var s;
1659
+ return (s = this.overrides) != null && s.endOfWeek ? this.overrides.endOfWeek(r, a) : Bt(r, this.options);
1660
+ }, this.endOfYear = (r) => {
1661
+ var a;
1662
+ return (a = this.overrides) != null && a.endOfYear ? this.overrides.endOfYear(r) : Ln(r);
1663
+ }, this.format = (r, a, s) => {
1664
+ var i;
1665
+ const o = (i = this.overrides) != null && i.format ? this.overrides.format(r, a, this.options) : be(r, a, this.options);
1666
+ return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(o) : o;
1667
+ }, this.getISOWeek = (r) => {
1668
+ var a;
1669
+ return (a = this.overrides) != null && a.getISOWeek ? this.overrides.getISOWeek(r) : Ze(r);
1670
+ }, this.getMonth = (r, a) => {
1671
+ var s;
1672
+ return (s = this.overrides) != null && s.getMonth ? this.overrides.getMonth(r, this.options) : Lr(r, this.options);
1673
+ }, this.getYear = (r, a) => {
1674
+ var s;
1675
+ return (s = this.overrides) != null && s.getYear ? this.overrides.getYear(r, this.options) : ea(r, this.options);
1676
+ }, this.getWeek = (r, a) => {
1677
+ var s;
1678
+ return (s = this.overrides) != null && s.getWeek ? this.overrides.getWeek(r, this.options) : Le(r, this.options);
1679
+ }, this.isAfter = (r, a) => {
1680
+ var s;
1681
+ return (s = this.overrides) != null && s.isAfter ? this.overrides.isAfter(r, a) : ta(r, a);
1682
+ }, this.isBefore = (r, a) => {
1683
+ var s;
1684
+ return (s = this.overrides) != null && s.isBefore ? this.overrides.isBefore(r, a) : na(r, a);
1685
+ }, this.isDate = (r) => {
1686
+ var a;
1687
+ return (a = this.overrides) != null && a.isDate ? this.overrides.isDate(r) : Tt(r);
1688
+ }, this.isSameDay = (r, a) => {
1689
+ var s;
1690
+ return (s = this.overrides) != null && s.isSameDay ? this.overrides.isSameDay(r, a) : Bn(r, a);
1691
+ }, this.isSameMonth = (r, a) => {
1692
+ var s;
1693
+ return (s = this.overrides) != null && s.isSameMonth ? this.overrides.isSameMonth(r, a) : ra(r, a);
1694
+ }, this.isSameYear = (r, a) => {
1695
+ var s;
1696
+ return (s = this.overrides) != null && s.isSameYear ? this.overrides.isSameYear(r, a) : aa(r, a);
1697
+ }, this.max = (r) => {
1698
+ var a;
1699
+ return (a = this.overrides) != null && a.max ? this.overrides.max(r) : Un(r);
1700
+ }, this.min = (r) => {
1701
+ var a;
1702
+ return (a = this.overrides) != null && a.min ? this.overrides.min(r) : Qn(r);
1703
+ }, this.setMonth = (r, a) => {
1704
+ var s;
1705
+ return (s = this.overrides) != null && s.setMonth ? this.overrides.setMonth(r, a) : sa(r, a);
1706
+ }, this.setYear = (r, a) => {
1707
+ var s;
1708
+ return (s = this.overrides) != null && s.setYear ? this.overrides.setYear(r, a) : oa(r, a);
1709
+ }, this.startOfBroadcastWeek = (r, a) => {
1710
+ var s;
1711
+ return (s = this.overrides) != null && s.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : At(r, this);
1712
+ }, this.startOfDay = (r) => {
1713
+ var a;
1714
+ return (a = this.overrides) != null && a.startOfDay ? this.overrides.startOfDay(r) : Xe(r);
1715
+ }, this.startOfISOWeek = (r) => {
1716
+ var a;
1717
+ return (a = this.overrides) != null && a.startOfISOWeek ? this.overrides.startOfISOWeek(r) : Me(r);
1718
+ }, this.startOfMonth = (r) => {
1719
+ var a;
1720
+ return (a = this.overrides) != null && a.startOfMonth ? this.overrides.startOfMonth(r) : Zn(r);
1721
+ }, this.startOfWeek = (r, a) => {
1722
+ var s;
1723
+ return (s = this.overrides) != null && s.startOfWeek ? this.overrides.startOfWeek(r, this.options) : fe(r, this.options);
1724
+ }, this.startOfYear = (r) => {
1725
+ var a;
1726
+ return (a = this.overrides) != null && a.startOfYear ? this.overrides.startOfYear(r) : Ft(r);
1727
+ }, this.options = { locale: zt, ...t }, this.overrides = n;
1728
+ }
1729
+ /**
1730
+ * Generates a mapping of Arabic digits (0-9) to the target numbering system
1731
+ * digits.
1732
+ *
1733
+ * @since 9.5.0
1734
+ * @returns A record mapping Arabic digits to the target numerals.
1735
+ */
1736
+ getDigitMap() {
1737
+ const { numerals: t = "latn" } = this.options, n = new Intl.NumberFormat("en-US", {
1738
+ numberingSystem: t
1739
+ }), r = {};
1740
+ for (let a = 0; a < 10; a++)
1741
+ r[a.toString()] = n.format(a);
1742
+ return r;
1743
+ }
1744
+ /**
1745
+ * Replaces Arabic digits in a string with the target numbering system digits.
1746
+ *
1747
+ * @since 9.5.0
1748
+ * @param input The string containing Arabic digits.
1749
+ * @returns The string with digits replaced.
1750
+ */
1751
+ replaceDigits(t) {
1752
+ const n = this.getDigitMap();
1753
+ return t.replace(/\d/g, (r) => n[r] || r);
1754
+ }
1755
+ /**
1756
+ * Formats a number using the configured numbering system.
1757
+ *
1758
+ * @since 9.5.0
1759
+ * @param value The number to format.
1760
+ * @returns The formatted number as a string.
1761
+ */
1762
+ formatNumber(t) {
1763
+ return this.replaceDigits(t.toString());
1764
+ }
1765
+ /**
1766
+ * Returns the preferred ordering for month and year labels for the current
1767
+ * locale.
1768
+ */
1769
+ getMonthYearOrder() {
1770
+ var n;
1771
+ const t = (n = this.options.locale) == null ? void 0 : n.code;
1772
+ return t && j.yearFirstLocales.has(t) ? "year-first" : "month-first";
1773
+ }
1774
+ /**
1775
+ * Formats the month/year pair respecting locale conventions.
1776
+ *
1777
+ * @since 9.11.0
1778
+ */
1779
+ formatMonthYear(t) {
1780
+ const { locale: n, timeZone: r, numerals: a } = this.options, s = n == null ? void 0 : n.code;
1781
+ if (s && j.yearFirstLocales.has(s))
1782
+ try {
1783
+ return new Intl.DateTimeFormat(s, {
1784
+ month: "long",
1785
+ year: "numeric",
1786
+ timeZone: r,
1787
+ numberingSystem: a
1788
+ }).format(t);
1789
+ } catch {
1790
+ }
1791
+ const o = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
1792
+ return this.format(t, o);
1793
+ }
1794
+ }
1795
+ j.yearFirstLocales = /* @__PURE__ */ new Set([
1796
+ "eu",
1797
+ "hu",
1798
+ "ja",
1799
+ "ja-Hira",
1800
+ "ja-JP",
1801
+ "ko",
1802
+ "ko-KR",
1803
+ "lt",
1804
+ "lt-LT",
1805
+ "lv",
1806
+ "lv-LV",
1807
+ "mn",
1808
+ "mn-MN",
1809
+ "zh",
1810
+ "zh-CN",
1811
+ "zh-HK",
1812
+ "zh-TW"
1813
+ ]);
1814
+ const Z = new j();
1815
+ class qt {
1816
+ constructor(t, n, r = Z) {
1817
+ this.date = t, this.displayMonth = n, this.outside = !!(n && !r.isSameMonth(t, n)), this.dateLib = r, this.isoDate = r.format(t, "yyyy-MM-dd"), this.displayMonthId = r.format(n, "yyyy-MM"), this.dateMonthId = r.format(t, "yyyy-MM");
1818
+ }
1819
+ /**
1820
+ * Checks if this day is equal to another `CalendarDay`, considering both the
1821
+ * date and the displayed month.
1822
+ *
1823
+ * @param day The `CalendarDay` to compare with.
1824
+ * @returns `true` if the days are equal, otherwise `false`.
1825
+ */
1826
+ isEqualTo(t) {
1827
+ return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
1828
+ }
1829
+ }
1830
+ class ua {
1831
+ constructor(t, n) {
1832
+ this.date = t, this.weeks = n;
1833
+ }
1834
+ }
1835
+ class fa {
1836
+ constructor(t, n) {
1837
+ this.days = n, this.weekNumber = t;
1838
+ }
1839
+ }
1840
+ function la(e) {
1841
+ return y.createElement("button", { ...e });
1842
+ }
1843
+ function ha(e) {
1844
+ return y.createElement("span", { ...e });
1845
+ }
1846
+ function ma(e) {
1847
+ const { size: t = 24, orientation: n = "left", className: r } = e;
1848
+ return (
1849
+ // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
1850
+ y.createElement(
1851
+ "svg",
1852
+ { className: r, width: t, height: t, viewBox: "0 0 24 24" },
1853
+ n === "up" && y.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
1854
+ n === "down" && y.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
1855
+ n === "left" && y.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
1856
+ n === "right" && y.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
1857
+ )
1858
+ );
1859
+ }
1860
+ function ya(e) {
1861
+ const { day: t, modifiers: n, ...r } = e;
1862
+ return y.createElement("td", { ...r });
1863
+ }
1864
+ function ga(e) {
1865
+ const { day: t, modifiers: n, ...r } = e, a = y.useRef(null);
1866
+ return y.useEffect(() => {
1867
+ var s;
1868
+ n.focused && ((s = a.current) == null || s.focus());
1869
+ }, [n.focused]), y.createElement("button", { ref: a, ...r });
1870
+ }
1871
+ var m;
1872
+ (function(e) {
1873
+ e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
1874
+ })(m || (m = {}));
1875
+ var T;
1876
+ (function(e) {
1877
+ e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
1878
+ })(T || (T = {}));
1879
+ var A;
1880
+ (function(e) {
1881
+ e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
1882
+ })(A || (A = {}));
1883
+ var q;
1884
+ (function(e) {
1885
+ 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";
1886
+ })(q || (q = {}));
1887
+ function ba(e) {
1888
+ const { options: t, className: n, components: r, classNames: a, ...s } = e, o = [a[m.Dropdown], n].join(" "), i = t == null ? void 0 : t.find(({ value: d }) => d === s.value);
1889
+ return y.createElement(
1890
+ "span",
1891
+ { "data-disabled": s.disabled, className: a[m.DropdownRoot] },
1892
+ y.createElement(r.Select, { className: o, ...s }, t == null ? void 0 : t.map(({ value: d, label: c, disabled: u }) => y.createElement(r.Option, { key: d, value: d, disabled: u }, c))),
1893
+ y.createElement(
1894
+ "span",
1895
+ { className: a[m.CaptionLabel], "aria-hidden": !0 },
1896
+ i == null ? void 0 : i.label,
1897
+ y.createElement(r.Chevron, { orientation: "down", size: 18, className: a[m.Chevron] })
1898
+ )
1899
+ );
1900
+ }
1901
+ function Ma(e) {
1902
+ return y.createElement("div", { ...e });
1903
+ }
1904
+ function wa(e) {
1905
+ return y.createElement("div", { ...e });
1906
+ }
1907
+ function va(e) {
1908
+ const { calendarMonth: t, displayIndex: n, ...r } = e;
1909
+ return y.createElement("div", { ...r }, e.children);
1910
+ }
1911
+ function ka(e) {
1912
+ const { calendarMonth: t, displayIndex: n, ...r } = e;
1913
+ return y.createElement("div", { ...r });
1914
+ }
1915
+ function Da(e) {
1916
+ return y.createElement("table", { ...e });
1917
+ }
1918
+ function Oa(e) {
1919
+ return y.createElement("div", { ...e });
1920
+ }
1921
+ const jt = Tn(void 0);
1922
+ function ke() {
1923
+ const e = Pn(jt);
1924
+ if (e === void 0)
1925
+ throw new Error("useDayPicker() must be used within a custom component.");
1926
+ return e;
1927
+ }
1928
+ function pa(e) {
1929
+ const { components: t } = ke();
1930
+ return y.createElement(t.Dropdown, { ...e });
1931
+ }
1932
+ function Wa(e) {
1933
+ const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: a, ...s } = e, { components: o, classNames: i, labels: { labelPrevious: d, labelNext: c } } = ke(), u = R((h) => {
1934
+ a && (n == null || n(h));
1935
+ }, [a, n]), f = R((h) => {
1936
+ r && (t == null || t(h));
1937
+ }, [r, t]);
1938
+ return y.createElement(
1939
+ "nav",
1940
+ { ...s },
1941
+ y.createElement(
1942
+ o.PreviousMonthButton,
1943
+ { type: "button", className: i[m.PreviousMonthButton], tabIndex: r ? void 0 : -1, "aria-disabled": r ? void 0 : !0, "aria-label": d(r), onClick: f },
1944
+ y.createElement(o.Chevron, { disabled: r ? void 0 : !0, className: i[m.Chevron], orientation: "left" })
1945
+ ),
1946
+ y.createElement(
1947
+ o.NextMonthButton,
1948
+ { type: "button", className: i[m.NextMonthButton], tabIndex: a ? void 0 : -1, "aria-disabled": a ? void 0 : !0, "aria-label": c(a), onClick: u },
1949
+ y.createElement(o.Chevron, { disabled: a ? void 0 : !0, orientation: "right", className: i[m.Chevron] })
1950
+ )
1951
+ );
1952
+ }
1953
+ function Sa(e) {
1954
+ const { components: t } = ke();
1955
+ return y.createElement(t.Button, { ...e });
1956
+ }
1957
+ function Na(e) {
1958
+ return y.createElement("option", { ...e });
1959
+ }
1960
+ function Ca(e) {
1961
+ const { components: t } = ke();
1962
+ return y.createElement(t.Button, { ...e });
1963
+ }
1964
+ function xa(e) {
1965
+ const { rootRef: t, ...n } = e;
1966
+ return y.createElement("div", { ...n, ref: t });
1967
+ }
1968
+ function _a(e) {
1969
+ return y.createElement("select", { ...e });
1970
+ }
1971
+ function Ya(e) {
1972
+ const { week: t, ...n } = e;
1973
+ return y.createElement("tr", { ...n });
1974
+ }
1975
+ function Ta(e) {
1976
+ return y.createElement("th", { ...e });
1977
+ }
1978
+ function Pa(e) {
1979
+ return y.createElement(
1980
+ "thead",
1981
+ { "aria-hidden": !0 },
1982
+ y.createElement("tr", { ...e })
1983
+ );
1984
+ }
1985
+ function Ea(e) {
1986
+ const { week: t, ...n } = e;
1987
+ return y.createElement("th", { ...n });
1988
+ }
1989
+ function Fa(e) {
1990
+ return y.createElement("th", { ...e });
1991
+ }
1992
+ function Ba(e) {
1993
+ return y.createElement("tbody", { ...e });
1994
+ }
1995
+ function Ia(e) {
1996
+ const { components: t } = ke();
1997
+ return y.createElement(t.Dropdown, { ...e });
1998
+ }
1999
+ const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2000
+ __proto__: null,
2001
+ Button: la,
2002
+ CaptionLabel: ha,
2003
+ Chevron: ma,
2004
+ Day: ya,
2005
+ DayButton: ga,
2006
+ Dropdown: ba,
2007
+ DropdownNav: Ma,
2008
+ Footer: wa,
2009
+ Month: va,
2010
+ MonthCaption: ka,
2011
+ MonthGrid: Da,
2012
+ Months: Oa,
2013
+ MonthsDropdown: pa,
2014
+ Nav: Wa,
2015
+ NextMonthButton: Sa,
2016
+ Option: Na,
2017
+ PreviousMonthButton: Ca,
2018
+ Root: xa,
2019
+ Select: _a,
2020
+ Week: Ya,
2021
+ WeekNumber: Ea,
2022
+ WeekNumberHeader: Fa,
2023
+ Weekday: Ta,
2024
+ Weekdays: Pa,
2025
+ Weeks: Ba,
2026
+ YearsDropdown: Ia
2027
+ }, Symbol.toStringTag, { value: "Module" }));
2028
+ function te(e, t, n = !1, r = Z) {
2029
+ let { from: a, to: s } = e;
2030
+ const { differenceInCalendarDays: o, isSameDay: i } = r;
2031
+ return a && s ? (o(s, a) < 0 && ([a, s] = [s, a]), o(t, a) >= (n ? 1 : 0) && o(s, t) >= (n ? 1 : 0)) : !n && s ? i(s, t) : !n && a ? i(a, t) : !1;
2032
+ }
2033
+ function et(e) {
2034
+ return !!(e && typeof e == "object" && "before" in e && "after" in e);
2035
+ }
2036
+ function Ye(e) {
2037
+ return !!(e && typeof e == "object" && "from" in e);
2038
+ }
2039
+ function tt(e) {
2040
+ return !!(e && typeof e == "object" && "after" in e);
2041
+ }
2042
+ function nt(e) {
2043
+ return !!(e && typeof e == "object" && "before" in e);
2044
+ }
2045
+ function $t(e) {
2046
+ return !!(e && typeof e == "object" && "dayOfWeek" in e);
2047
+ }
2048
+ function Gt(e, t) {
2049
+ return Array.isArray(e) && e.every(t.isDate);
2050
+ }
2051
+ function ne(e, t, n = Z) {
2052
+ const r = Array.isArray(t) ? t : [t], { isSameDay: a, differenceInCalendarDays: s, isAfter: o } = n;
2053
+ return r.some((i) => {
2054
+ if (typeof i == "boolean")
2055
+ return i;
2056
+ if (n.isDate(i))
2057
+ return a(e, i);
2058
+ if (Gt(i, n))
2059
+ return i.some((d) => a(e, d));
2060
+ if (Ye(i))
2061
+ return te(i, e, !1, n);
2062
+ if ($t(i))
2063
+ return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
2064
+ if (et(i)) {
2065
+ const d = s(i.before, e), c = s(i.after, e), u = d > 0, f = c < 0;
2066
+ return o(i.before, i.after) ? f && u : u || f;
2067
+ }
2068
+ return tt(i) ? s(e, i.after) > 0 : nt(i) ? s(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
2069
+ });
2070
+ }
2071
+ function Aa(e, t, n, r, a) {
2072
+ const { disabled: s, hidden: o, modifiers: i, showOutsideDays: d, broadcastCalendar: c, today: u = a.today() } = t, { isSameDay: f, isSameMonth: h, startOfMonth: g, isBefore: D, endOfMonth: p, isAfter: k } = a, N = n && g(n), M = r && p(r), b = {
2073
+ [T.focused]: [],
2074
+ [T.outside]: [],
2075
+ [T.disabled]: [],
2076
+ [T.hidden]: [],
2077
+ [T.today]: []
2078
+ }, W = {};
2079
+ for (const v of e) {
2080
+ const { date: l, displayMonth: S } = v, E = !!(S && !h(l, S)), B = !!(N && D(l, N)), F = !!(M && k(l, M)), $ = !!(s && ne(l, s, a)), re = !!(o && ne(l, o, a)) || B || F || // Broadcast calendar will show outside days as default
2081
+ !c && !d && E || c && d === !1 && E, L = f(l, u);
2082
+ E && b.outside.push(v), $ && b.disabled.push(v), re && b.hidden.push(v), L && b.today.push(v), i && Object.keys(i).forEach((G) => {
2083
+ const de = i == null ? void 0 : i[G];
2084
+ de && ne(l, de, a) && (W[G] ? W[G].push(v) : W[G] = [v]);
2085
+ });
2086
+ }
2087
+ return (v) => {
2088
+ const l = {
2089
+ [T.focused]: !1,
2090
+ [T.disabled]: !1,
2091
+ [T.hidden]: !1,
2092
+ [T.outside]: !1,
2093
+ [T.today]: !1
2094
+ }, S = {};
2095
+ for (const E in b) {
2096
+ const B = b[E];
2097
+ l[E] = B.some((F) => F === v);
2098
+ }
2099
+ for (const E in W)
2100
+ S[E] = W[E].some((B) => B === v);
2101
+ return {
2102
+ ...l,
2103
+ // custom modifiers should override all the previous ones
2104
+ ...S
2105
+ };
2106
+ };
2107
+ }
2108
+ function za(e, t, n = {}) {
2109
+ return Object.entries(e).filter(([, a]) => a === !0).reduce((a, [s]) => (n[s] ? a.push(n[s]) : t[T[s]] ? a.push(t[T[s]]) : t[A[s]] && a.push(t[A[s]]), a), [t[m.Day]]);
2110
+ }
2111
+ function qa(e) {
2112
+ return {
2113
+ ...Ha,
2114
+ ...e
2115
+ };
2116
+ }
2117
+ function ja(e) {
2118
+ const t = {
2119
+ "data-mode": e.mode ?? void 0,
2120
+ "data-required": "required" in e ? e.required : void 0,
2121
+ "data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0,
2122
+ "data-week-numbers": e.showWeekNumber || void 0,
2123
+ "data-broadcast-calendar": e.broadcastCalendar || void 0,
2124
+ "data-nav-layout": e.navLayout || void 0
2125
+ };
2126
+ return Object.entries(e).forEach(([n, r]) => {
2127
+ n.startsWith("data-") && (t[n] = r);
2128
+ }), t;
2129
+ }
2130
+ function $a() {
2131
+ const e = {};
2132
+ for (const t in m)
2133
+ e[m[t]] = `rdp-${m[t]}`;
2134
+ for (const t in T)
2135
+ e[T[t]] = `rdp-${T[t]}`;
2136
+ for (const t in A)
2137
+ e[A[t]] = `rdp-${A[t]}`;
2138
+ for (const t in q)
2139
+ e[q[t]] = `rdp-${q[t]}`;
2140
+ return e;
2141
+ }
2142
+ function Rt(e, t, n) {
2143
+ return (n ?? new j(t)).formatMonthYear(e);
2144
+ }
2145
+ const Ga = Rt;
2146
+ function Ra(e, t, n) {
2147
+ return (n ?? new j(t)).format(e, "d");
2148
+ }
2149
+ function Va(e, t = Z) {
2150
+ return t.format(e, "LLLL");
2151
+ }
2152
+ function Ua(e, t, n) {
2153
+ return (n ?? new j(t)).format(e, "cccccc");
2154
+ }
2155
+ function Qa(e, t = Z) {
2156
+ return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
2157
+ }
2158
+ function Xa() {
2159
+ return "";
2160
+ }
2161
+ function Vt(e, t = Z) {
2162
+ return t.format(e, "yyyy");
2163
+ }
2164
+ const Ka = Vt, Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2165
+ __proto__: null,
2166
+ formatCaption: Rt,
2167
+ formatDay: Ra,
2168
+ formatMonthCaption: Ga,
2169
+ formatMonthDropdown: Va,
2170
+ formatWeekNumber: Qa,
2171
+ formatWeekNumberHeader: Xa,
2172
+ formatWeekdayName: Ua,
2173
+ formatYearCaption: Ka,
2174
+ formatYearDropdown: Vt
2175
+ }, Symbol.toStringTag, { value: "Module" }));
2176
+ function Za(e) {
2177
+ return e != null && e.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e != null && e.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
2178
+ ...Ja,
2179
+ ...e
2180
+ };
2181
+ }
2182
+ function rt(e, t, n, r) {
2183
+ let a = (r ?? new j(n)).format(e, "PPPP");
2184
+ return t.today && (a = `Today, ${a}`), t.selected && (a = `${a}, selected`), a;
2185
+ }
2186
+ const La = rt;
2187
+ function at(e, t, n) {
2188
+ return (n ?? new j(t)).formatMonthYear(e);
2189
+ }
2190
+ const es = at;
2191
+ function Ut(e, t, n, r) {
2192
+ let a = (r ?? new j(n)).format(e, "PPPP");
2193
+ return t != null && t.today && (a = `Today, ${a}`), a;
2194
+ }
2195
+ function Qt(e) {
2196
+ return "Choose the Month";
2197
+ }
2198
+ function Xt() {
2199
+ return "";
2200
+ }
2201
+ const ts = "Go to the Next Month";
2202
+ function Kt(e, t) {
2203
+ return ts;
2204
+ }
2205
+ function Jt(e) {
2206
+ return "Go to the Previous Month";
2207
+ }
2208
+ function Zt(e, t, n) {
2209
+ return (n ?? new j(t)).format(e, "cccc");
2210
+ }
2211
+ function Lt(e, t) {
2212
+ return `Week ${e}`;
2213
+ }
2214
+ function en(e) {
2215
+ return "Week Number";
2216
+ }
2217
+ function tn(e) {
2218
+ return "Choose the Year";
2219
+ }
2220
+ const ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2221
+ __proto__: null,
2222
+ labelCaption: es,
2223
+ labelDay: La,
2224
+ labelDayButton: rt,
2225
+ labelGrid: at,
2226
+ labelGridcell: Ut,
2227
+ labelMonthDropdown: Qt,
2228
+ labelNav: Xt,
2229
+ labelNext: Kt,
2230
+ labelPrevious: Jt,
2231
+ labelWeekNumber: Lt,
2232
+ labelWeekNumberHeader: en,
2233
+ labelWeekday: Zt,
2234
+ labelYearDropdown: tn
2235
+ }, Symbol.toStringTag, { value: "Module" })), X = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
2236
+ function rs(e, t) {
2237
+ var r;
2238
+ const n = ((r = t.locale) == null ? void 0 : r.labels) ?? {};
2239
+ return {
2240
+ ...ns,
2241
+ ...e ?? {},
2242
+ labelDayButton: X(rt, e == null ? void 0 : e.labelDayButton, n.labelDayButton),
2243
+ labelMonthDropdown: X(Qt, e == null ? void 0 : e.labelMonthDropdown, n.labelMonthDropdown),
2244
+ labelNext: X(Kt, e == null ? void 0 : e.labelNext, n.labelNext),
2245
+ labelPrevious: X(Jt, e == null ? void 0 : e.labelPrevious, n.labelPrevious),
2246
+ labelWeekNumber: X(Lt, e == null ? void 0 : e.labelWeekNumber, n.labelWeekNumber),
2247
+ labelYearDropdown: X(tn, e == null ? void 0 : e.labelYearDropdown, n.labelYearDropdown),
2248
+ labelGrid: X(at, e == null ? void 0 : e.labelGrid, n.labelGrid),
2249
+ labelGridcell: X(Ut, e == null ? void 0 : e.labelGridcell, n.labelGridcell),
2250
+ labelNav: X(Xt, e == null ? void 0 : e.labelNav, n.labelNav),
2251
+ labelWeekNumberHeader: X(en, e == null ? void 0 : e.labelWeekNumberHeader, n.labelWeekNumberHeader),
2252
+ labelWeekday: X(Zt, e == null ? void 0 : e.labelWeekday, n.labelWeekday)
2253
+ };
2254
+ }
2255
+ function as(e, t, n, r, a) {
2256
+ const { startOfMonth: s, startOfYear: o, endOfYear: i, eachMonthOfInterval: d, getMonth: c } = a;
2257
+ return d({
2258
+ start: o(e),
2259
+ end: i(e)
2260
+ }).map((h) => {
2261
+ const g = r.formatMonthDropdown(h, a), D = c(h), p = t && h < s(t) || n && h > s(n) || !1;
2262
+ return { value: D, label: g, disabled: p };
2263
+ });
2264
+ }
2265
+ function ss(e, t = {}, n = {}) {
2266
+ let r = { ...t == null ? void 0 : t[m.Day] };
2267
+ return Object.entries(e).filter(([, a]) => a === !0).forEach(([a]) => {
2268
+ r = {
2269
+ ...r,
2270
+ ...n == null ? void 0 : n[a]
2271
+ };
2272
+ }), r;
2273
+ }
2274
+ function os(e, t, n, r) {
2275
+ const a = r ?? e.today(), s = n ? e.startOfBroadcastWeek(a, e) : t ? e.startOfISOWeek(a) : e.startOfWeek(a), o = [];
2276
+ for (let i = 0; i < 7; i++) {
2277
+ const d = e.addDays(s, i);
2278
+ o.push(d);
2279
+ }
2280
+ return o;
2281
+ }
2282
+ function is(e, t, n, r, a = !1) {
2283
+ if (!e || !t)
2284
+ return;
2285
+ const { startOfYear: s, endOfYear: o, eachYearOfInterval: i, getYear: d } = r, c = s(e), u = o(t), f = i({ start: c, end: u });
2286
+ return a && f.reverse(), f.map((h) => {
2287
+ const g = n.formatYearDropdown(h, r);
2288
+ return {
2289
+ value: d(h),
2290
+ label: g,
2291
+ disabled: !1
2292
+ };
2293
+ });
2294
+ }
2295
+ function ds(e, t = {}) {
2296
+ var i;
2297
+ const { weekStartsOn: n, locale: r } = t, a = n ?? ((i = r == null ? void 0 : r.options) == null ? void 0 : i.weekStartsOn) ?? 0, s = (d) => {
2298
+ const c = typeof d == "number" || typeof d == "string" ? new Date(d) : d;
2299
+ return new H(c.getFullYear(), c.getMonth(), c.getDate(), 12, 0, 0, e);
2300
+ }, o = (d) => {
2301
+ const c = s(d);
2302
+ return new Date(c.getFullYear(), c.getMonth(), c.getDate(), 0, 0, 0, 0);
2303
+ };
2304
+ return {
2305
+ today: () => s(H.tz(e)),
2306
+ newDate: (d, c, u) => new H(d, c, u, 12, 0, 0, e),
2307
+ startOfDay: (d) => s(d),
2308
+ startOfWeek: (d, c) => {
2309
+ const u = s(d), f = (c == null ? void 0 : c.weekStartsOn) ?? a, h = (u.getDay() - f + 7) % 7;
2310
+ return u.setDate(u.getDate() - h), u;
2311
+ },
2312
+ startOfISOWeek: (d) => {
2313
+ const c = s(d), u = (c.getDay() - 1 + 7) % 7;
2314
+ return c.setDate(c.getDate() - u), c;
2315
+ },
2316
+ startOfMonth: (d) => {
2317
+ const c = s(d);
2318
+ return c.setDate(1), c;
2319
+ },
2320
+ startOfYear: (d) => {
2321
+ const c = s(d);
2322
+ return c.setMonth(0, 1), c;
2323
+ },
2324
+ endOfWeek: (d, c) => {
2325
+ const u = s(d), g = ((((c == null ? void 0 : c.weekStartsOn) ?? a) + 6) % 7 - u.getDay() + 7) % 7;
2326
+ return u.setDate(u.getDate() + g), u;
2327
+ },
2328
+ endOfISOWeek: (d) => {
2329
+ const c = s(d), u = (7 - c.getDay()) % 7;
2330
+ return c.setDate(c.getDate() + u), c;
2331
+ },
2332
+ endOfMonth: (d) => {
2333
+ const c = s(d);
2334
+ return c.setMonth(c.getMonth() + 1, 0), c;
2335
+ },
2336
+ endOfYear: (d) => {
2337
+ const c = s(d);
2338
+ return c.setMonth(11, 31), c;
2339
+ },
2340
+ eachMonthOfInterval: (d) => {
2341
+ const c = s(d.start), u = s(d.end), f = [], h = new H(c.getFullYear(), c.getMonth(), 1, 12, 0, 0, e), g = u.getFullYear() * 12 + u.getMonth();
2342
+ for (; h.getFullYear() * 12 + h.getMonth() <= g; )
2343
+ f.push(new H(h, e)), h.setMonth(h.getMonth() + 1, 1);
2344
+ return f;
2345
+ },
2346
+ // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
2347
+ // mutate the same TZDate, and return it.
2348
+ addDays: (d, c) => {
2349
+ const u = s(d);
2350
+ return u.setDate(u.getDate() + c), u;
2351
+ },
2352
+ addWeeks: (d, c) => {
2353
+ const u = s(d);
2354
+ return u.setDate(u.getDate() + c * 7), u;
2355
+ },
2356
+ addMonths: (d, c) => {
2357
+ const u = s(d);
2358
+ return u.setMonth(u.getMonth() + c), u;
2359
+ },
2360
+ addYears: (d, c) => {
2361
+ const u = s(d);
2362
+ return u.setFullYear(u.getFullYear() + c), u;
2363
+ },
2364
+ eachYearOfInterval: (d) => {
2365
+ const c = s(d.start), u = s(d.end), f = [], h = new H(c.getFullYear(), 0, 1, 12, 0, 0, e);
2366
+ for (; h.getFullYear() <= u.getFullYear(); )
2367
+ f.push(new H(h, e)), h.setFullYear(h.getFullYear() + 1, 0, 1);
2368
+ return f;
2369
+ },
2370
+ getWeek: (d, c) => {
2371
+ var f;
2372
+ const u = o(d);
2373
+ return Le(u, {
2374
+ weekStartsOn: (c == null ? void 0 : c.weekStartsOn) ?? a,
2375
+ firstWeekContainsDate: (c == null ? void 0 : c.firstWeekContainsDate) ?? ((f = r == null ? void 0 : r.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1
2376
+ });
2377
+ },
2378
+ getISOWeek: (d) => {
2379
+ const c = o(d);
2380
+ return Ze(c);
2381
+ },
2382
+ differenceInCalendarDays: (d, c) => {
2383
+ const u = o(d), f = o(c);
2384
+ return Je(u, f);
2385
+ },
2386
+ differenceInCalendarMonths: (d, c) => {
2387
+ const u = o(d), f = o(c);
2388
+ return Pt(u, f);
2389
+ }
2390
+ };
2391
+ }
2392
+ const De = (e) => e instanceof HTMLElement ? e : null, je = (e) => [
2393
+ ...e.querySelectorAll("[data-animated-month]") ?? []
2394
+ ], cs = (e) => De(e.querySelector("[data-animated-month]")), $e = (e) => De(e.querySelector("[data-animated-caption]")), Ge = (e) => De(e.querySelector("[data-animated-weeks]")), us = (e) => De(e.querySelector("[data-animated-nav]")), fs = (e) => De(e.querySelector("[data-animated-weekdays]"));
2395
+ function ls(e, t, { classNames: n, months: r, focused: a, dateLib: s }) {
2396
+ const o = Ne(null), i = Ne(r), d = Ne(!1);
2397
+ En(() => {
2398
+ const c = i.current;
2399
+ if (i.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
2400
+ !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
2401
+ r.length === 0 || c.length === 0 || r.length !== c.length)
2402
+ return;
2403
+ const u = s.isSameMonth(r[0].date, c[0].date), f = s.isAfter(r[0].date, c[0].date), h = f ? n[q.caption_after_enter] : n[q.caption_before_enter], g = f ? n[q.weeks_after_enter] : n[q.weeks_before_enter], D = o.current, p = e.current.cloneNode(!0);
2404
+ if (p instanceof HTMLElement ? (je(p).forEach((b) => {
2405
+ if (!(b instanceof HTMLElement))
2406
+ return;
2407
+ const W = cs(b);
2408
+ W && b.contains(W) && b.removeChild(W);
2409
+ const v = $e(b);
2410
+ v && v.classList.remove(h);
2411
+ const l = Ge(b);
2412
+ l && l.classList.remove(g);
2413
+ }), o.current = p) : o.current = null, d.current || u || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
2414
+ a)
2415
+ return;
2416
+ const k = D instanceof HTMLElement ? je(D) : [], N = je(e.current);
2417
+ if (N != null && N.every((M) => M instanceof HTMLElement) && k && k.every((M) => M instanceof HTMLElement)) {
2418
+ d.current = !0, e.current.style.isolation = "isolate";
2419
+ const M = us(e.current);
2420
+ M && (M.style.zIndex = "1"), N.forEach((b, W) => {
2421
+ const v = k[W];
2422
+ if (!v)
2423
+ return;
2424
+ b.style.position = "relative", b.style.overflow = "hidden";
2425
+ const l = $e(b);
2426
+ l && l.classList.add(h);
2427
+ const S = Ge(b);
2428
+ S && S.classList.add(g);
2429
+ const E = () => {
2430
+ d.current = !1, e.current && (e.current.style.isolation = ""), M && (M.style.zIndex = ""), l && l.classList.remove(h), S && S.classList.remove(g), b.style.position = "", b.style.overflow = "", b.contains(v) && b.removeChild(v);
2431
+ };
2432
+ v.style.pointerEvents = "none", v.style.position = "absolute", v.style.overflow = "hidden", v.setAttribute("aria-hidden", "true");
2433
+ const B = fs(v);
2434
+ B && (B.style.opacity = "0");
2435
+ const F = $e(v);
2436
+ F && (F.classList.add(f ? n[q.caption_before_exit] : n[q.caption_after_exit]), F.addEventListener("animationend", E));
2437
+ const $ = Ge(v);
2438
+ $ && $.classList.add(f ? n[q.weeks_before_exit] : n[q.weeks_after_exit]), b.insertBefore(v, b.firstChild);
2439
+ });
2440
+ }
2441
+ });
2442
+ }
2443
+ function hs(e, t, n, r) {
2444
+ const a = e[0], s = e[e.length - 1], { ISOWeek: o, fixedWeeks: i, broadcastCalendar: d } = n ?? {}, { addDays: c, differenceInCalendarDays: u, differenceInCalendarMonths: f, endOfBroadcastWeek: h, endOfISOWeek: g, endOfMonth: D, endOfWeek: p, isAfter: k, startOfBroadcastWeek: N, startOfISOWeek: M, startOfWeek: b } = r, W = d ? N(a, r) : o ? M(a) : b(a), v = d ? h(s) : o ? g(D(s)) : p(D(s)), l = t && (d ? h(t) : o ? g(t) : p(t)), S = l && k(v, l) ? l : v, E = u(S, W), B = f(s, a) + 1, F = [];
2445
+ for (let L = 0; L <= E; L++) {
2446
+ const G = c(W, L);
2447
+ F.push(G);
2448
+ }
2449
+ const re = (d ? 35 : 42) * B;
2450
+ if (i && F.length < re) {
2451
+ const L = re - F.length;
2452
+ for (let G = 0; G < L; G++) {
2453
+ const de = c(F[F.length - 1], 1);
2454
+ F.push(de);
2455
+ }
2456
+ }
2457
+ return F;
2458
+ }
2459
+ function ms(e) {
2460
+ const t = [];
2461
+ return e.reduce((n, r) => {
2462
+ const a = r.weeks.reduce((s, o) => s.concat(o.days.slice()), t.slice());
2463
+ return n.concat(a.slice());
2464
+ }, t.slice());
2465
+ }
2466
+ function ys(e, t, n, r) {
2467
+ const { numberOfMonths: a = 1 } = n, s = [];
2468
+ for (let o = 0; o < a; o++) {
2469
+ const i = r.addMonths(e, o);
2470
+ if (t && i > t)
2471
+ break;
2472
+ s.push(i);
2473
+ }
2474
+ return s;
2475
+ }
2476
+ function vt(e, t, n, r) {
2477
+ const { month: a, defaultMonth: s, today: o = r.today(), numberOfMonths: i = 1 } = e;
2478
+ let d = a || s || o;
2479
+ const { differenceInCalendarMonths: c, addMonths: u, startOfMonth: f } = r;
2480
+ if (n && c(n, d) < i - 1) {
2481
+ const h = -1 * (i - 1);
2482
+ d = u(n, h);
2483
+ }
2484
+ return t && c(d, t) < 0 && (d = t), f(d);
2485
+ }
2486
+ function gs(e, t, n, r) {
2487
+ const { addDays: a, endOfBroadcastWeek: s, endOfISOWeek: o, endOfMonth: i, endOfWeek: d, getISOWeek: c, getWeek: u, startOfBroadcastWeek: f, startOfISOWeek: h, startOfWeek: g } = r, D = e.reduce((p, k) => {
2488
+ const N = n.broadcastCalendar ? f(k, r) : n.ISOWeek ? h(k) : g(k), M = n.broadcastCalendar ? s(k) : n.ISOWeek ? o(i(k)) : d(i(k)), b = t.filter((S) => S >= N && S <= M), W = n.broadcastCalendar ? 35 : 42;
2489
+ if (n.fixedWeeks && b.length < W) {
2490
+ const S = t.filter((E) => {
2491
+ const B = W - b.length;
2492
+ return E > M && E <= a(M, B);
2493
+ });
2494
+ b.push(...S);
2495
+ }
2496
+ const v = b.reduce((S, E) => {
2497
+ const B = n.ISOWeek ? c(E) : u(E), F = S.find((re) => re.weekNumber === B), $ = new qt(E, k, r);
2498
+ return F ? F.days.push($) : S.push(new fa(B, [$])), S;
2499
+ }, []), l = new ua(k, v);
2500
+ return p.push(l), p;
2501
+ }, []);
2502
+ return n.reverseMonths ? D.reverse() : D;
2503
+ }
2504
+ function bs(e, t) {
2505
+ let { startMonth: n, endMonth: r } = e;
2506
+ const { startOfYear: a, startOfDay: s, startOfMonth: o, endOfMonth: i, addYears: d, endOfYear: c, newDate: u, today: f } = t, { fromYear: h, toYear: g, fromMonth: D, toMonth: p } = e;
2507
+ !n && D && (n = D), !n && h && (n = t.newDate(h, 0, 1)), !r && p && (r = p), !r && g && (r = u(g, 11, 31));
2508
+ const k = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
2509
+ return n ? n = o(n) : h ? n = u(h, 0, 1) : !n && k && (n = a(d(e.today ?? f(), -100))), r ? r = i(r) : g ? r = u(g, 11, 31) : !r && k && (r = c(e.today ?? f())), [
2510
+ n && s(n),
2511
+ r && s(r)
2512
+ ];
2513
+ }
2514
+ function Ms(e, t, n, r) {
2515
+ if (n.disableNavigation)
2516
+ return;
2517
+ const { pagedNavigation: a, numberOfMonths: s = 1 } = n, { startOfMonth: o, addMonths: i, differenceInCalendarMonths: d } = r, c = a ? s : 1, u = o(e);
2518
+ if (!t)
2519
+ return i(u, c);
2520
+ if (!(d(t, e) < s))
2521
+ return i(u, c);
2522
+ }
2523
+ function ws(e, t, n, r) {
2524
+ if (n.disableNavigation)
2525
+ return;
2526
+ const { pagedNavigation: a, numberOfMonths: s } = n, { startOfMonth: o, addMonths: i, differenceInCalendarMonths: d } = r, c = a ? s ?? 1 : 1, u = o(e);
2527
+ if (!t)
2528
+ return i(u, -c);
2529
+ if (!(d(u, t) <= 0))
2530
+ return i(u, -c);
2531
+ }
2532
+ function vs(e) {
2533
+ const t = [];
2534
+ return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
2535
+ }
2536
+ function Te(e, t) {
2537
+ const [n, r] = xe(e);
2538
+ return [t === void 0 ? n : t, r];
2539
+ }
2540
+ function ks(e, t) {
2541
+ var W;
2542
+ const [n, r] = bs(e, t), { startOfMonth: a, endOfMonth: s } = t, o = vt(e, n, r, t), [i, d] = Te(
2543
+ o,
2544
+ // initialMonth is always computed from props.month if provided
2545
+ e.month ? o : void 0
2546
+ );
2547
+ St(() => {
2548
+ const v = vt(e, n, r, t);
2549
+ d(v);
2550
+ }, [e.timeZone]);
2551
+ const { months: c, weeks: u, days: f, previousMonth: h, nextMonth: g } = Ce(() => {
2552
+ const v = ys(i, r, { numberOfMonths: e.numberOfMonths }, t), l = hs(v, e.endMonth ? s(e.endMonth) : void 0, {
2553
+ ISOWeek: e.ISOWeek,
2554
+ fixedWeeks: e.fixedWeeks,
2555
+ broadcastCalendar: e.broadcastCalendar
2556
+ }, t), S = gs(v, l, {
2557
+ broadcastCalendar: e.broadcastCalendar,
2558
+ fixedWeeks: e.fixedWeeks,
2559
+ ISOWeek: e.ISOWeek,
2560
+ reverseMonths: e.reverseMonths
2561
+ }, t), E = vs(S), B = ms(S), F = ws(i, n, e, t), $ = Ms(i, r, e, t);
2562
+ return {
2563
+ months: S,
2564
+ weeks: E,
2565
+ days: B,
2566
+ previousMonth: F,
2567
+ nextMonth: $
2568
+ };
2569
+ }, [
2570
+ t,
2571
+ i.getTime(),
2572
+ r == null ? void 0 : r.getTime(),
2573
+ n == null ? void 0 : n.getTime(),
2574
+ e.disableNavigation,
2575
+ e.broadcastCalendar,
2576
+ (W = e.endMonth) == null ? void 0 : W.getTime(),
2577
+ e.fixedWeeks,
2578
+ e.ISOWeek,
2579
+ e.numberOfMonths,
2580
+ e.pagedNavigation,
2581
+ e.reverseMonths
2582
+ ]), { disableNavigation: D, onMonthChange: p } = e, k = (v) => u.some((l) => l.days.some((S) => S.isEqualTo(v))), N = (v) => {
2583
+ if (D)
2584
+ return;
2585
+ let l = a(v);
2586
+ n && l < a(n) && (l = a(n)), r && l > a(r) && (l = a(r)), d(l), p == null || p(l);
2587
+ };
2588
+ return {
2589
+ months: c,
2590
+ weeks: u,
2591
+ days: f,
2592
+ navStart: n,
2593
+ navEnd: r,
2594
+ previousMonth: h,
2595
+ nextMonth: g,
2596
+ goToMonth: N,
2597
+ goToDay: (v) => {
2598
+ k(v) || N(v.date);
2599
+ }
2600
+ };
2601
+ }
2602
+ var K;
2603
+ (function(e) {
2604
+ e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
2605
+ })(K || (K = {}));
2606
+ function kt(e) {
2607
+ return !e[T.disabled] && !e[T.hidden] && !e[T.outside];
2608
+ }
2609
+ function Ds(e, t, n, r) {
2610
+ let a, s = -1;
2611
+ for (const o of e) {
2612
+ const i = t(o);
2613
+ kt(i) && (i[T.focused] && s < K.FocusedModifier ? (a = o, s = K.FocusedModifier) : r != null && r.isEqualTo(o) && s < K.LastFocused ? (a = o, s = K.LastFocused) : n(o.date) && s < K.Selected ? (a = o, s = K.Selected) : i[T.today] && s < K.Today && (a = o, s = K.Today));
2614
+ }
2615
+ return a || (a = e.find((o) => kt(t(o)))), a;
2616
+ }
2617
+ function Os(e, t, n, r, a, s, o) {
2618
+ const { ISOWeek: i, broadcastCalendar: d } = s, { addDays: c, addMonths: u, addWeeks: f, addYears: h, endOfBroadcastWeek: g, endOfISOWeek: D, endOfWeek: p, max: k, min: N, startOfBroadcastWeek: M, startOfISOWeek: b, startOfWeek: W } = o;
2619
+ let l = {
2620
+ day: c,
2621
+ week: f,
2622
+ month: u,
2623
+ year: h,
2624
+ startOfWeek: (S) => d ? M(S, o) : i ? b(S) : W(S),
2625
+ endOfWeek: (S) => d ? g(S) : i ? D(S) : p(S)
2626
+ }[e](n, t === "after" ? 1 : -1);
2627
+ return t === "before" && r ? l = k([r, l]) : t === "after" && a && (l = N([a, l])), l;
2628
+ }
2629
+ function nn(e, t, n, r, a, s, o, i = 0) {
2630
+ if (i > 365)
2631
+ return;
2632
+ const d = Os(e, t, n.date, r, a, s, o), c = !!(s.disabled && ne(d, s.disabled, o)), u = !!(s.hidden && ne(d, s.hidden, o)), f = d, h = new qt(d, f, o);
2633
+ return !c && !u ? h : nn(e, t, h, r, a, s, o, i + 1);
2634
+ }
2635
+ function ps(e, t, n, r, a) {
2636
+ const { autoFocus: s } = e, [o, i] = xe(), d = Ds(t.days, n, r || (() => !1), o), [c, u] = xe(s ? d : void 0);
2637
+ return {
2638
+ isFocusTarget: (p) => !!(d != null && d.isEqualTo(p)),
2639
+ setFocused: u,
2640
+ focused: c,
2641
+ blur: () => {
2642
+ i(c), u(void 0);
2643
+ },
2644
+ moveFocus: (p, k) => {
2645
+ if (!c)
2646
+ return;
2647
+ const N = nn(p, k, c, t.navStart, t.navEnd, e, a);
2648
+ N && (e.disableNavigation && !t.days.some((b) => b.isEqualTo(N)) || (t.goToDay(N), u(N)));
2649
+ }
2650
+ };
2651
+ }
2652
+ function Ws(e, t) {
2653
+ const { selected: n, required: r, onSelect: a } = e, [s, o] = Te(n, a ? n : void 0), i = a ? n : s, { isSameDay: d } = t, c = (g) => (i == null ? void 0 : i.some((D) => d(D, g))) ?? !1, { min: u, max: f } = e;
2654
+ return {
2655
+ selected: i,
2656
+ select: (g, D, p) => {
2657
+ let k = [...i ?? []];
2658
+ if (c(g)) {
2659
+ if ((i == null ? void 0 : i.length) === u || r && (i == null ? void 0 : i.length) === 1)
2660
+ return;
2661
+ k = i == null ? void 0 : i.filter((N) => !d(N, g));
2662
+ } else
2663
+ (i == null ? void 0 : i.length) === f ? k = [g] : k = [...k, g];
2664
+ return a || o(k), a == null || a(k, g, D, p), k;
2665
+ },
2666
+ isSelected: c
2667
+ };
2668
+ }
2669
+ function Ss(e, t, n = 0, r = 0, a = !1, s = Z) {
2670
+ const { from: o, to: i } = t || {}, { isSameDay: d, isAfter: c, isBefore: u } = s;
2671
+ let f;
2672
+ if (!o && !i)
2673
+ f = { from: e, to: n > 0 ? void 0 : e };
2674
+ else if (o && !i)
2675
+ d(o, e) ? n === 0 ? f = { from: o, to: e } : a ? f = { from: o, to: void 0 } : f = void 0 : u(e, o) ? f = { from: e, to: o } : f = { from: o, to: e };
2676
+ else if (o && i)
2677
+ if (d(o, e) && d(i, e))
2678
+ a ? f = { from: o, to: i } : f = void 0;
2679
+ else if (d(o, e))
2680
+ f = { from: o, to: n > 0 ? void 0 : e };
2681
+ else if (d(i, e))
2682
+ f = { from: e, to: n > 0 ? void 0 : e };
2683
+ else if (u(e, o))
2684
+ f = { from: e, to: i };
2685
+ else if (c(e, o))
2686
+ f = { from: o, to: e };
2687
+ else if (c(e, i))
2688
+ f = { from: o, to: e };
2689
+ else
2690
+ throw new Error("Invalid range");
2691
+ if (f != null && f.from && (f != null && f.to)) {
2692
+ const h = s.differenceInCalendarDays(f.to, f.from);
2693
+ r > 0 && h > r ? f = { from: e, to: void 0 } : n > 1 && h < n && (f = { from: e, to: void 0 });
2694
+ }
2695
+ return f;
2696
+ }
2697
+ function Ns(e, t, n = Z) {
2698
+ const r = Array.isArray(t) ? t : [t];
2699
+ let a = e.from;
2700
+ const s = n.differenceInCalendarDays(e.to, e.from), o = Math.min(s, 6);
2701
+ for (let i = 0; i <= o; i++) {
2702
+ if (r.includes(a.getDay()))
2703
+ return !0;
2704
+ a = n.addDays(a, 1);
2705
+ }
2706
+ return !1;
2707
+ }
2708
+ function Dt(e, t, n = Z) {
2709
+ return te(e, t.from, !1, n) || te(e, t.to, !1, n) || te(t, e.from, !1, n) || te(t, e.to, !1, n);
2710
+ }
2711
+ function Cs(e, t, n = Z) {
2712
+ const r = Array.isArray(t) ? t : [t];
2713
+ if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? te(e, i, !1, n) : Gt(i, n) ? i.some((d) => te(e, d, !1, n)) : Ye(i) ? i.from && i.to ? Dt(e, { from: i.from, to: i.to }, n) : !1 : $t(i) ? Ns(e, i.dayOfWeek, n) : et(i) ? n.isAfter(i.before, i.after) ? Dt(e, {
2714
+ from: n.addDays(i.after, 1),
2715
+ to: n.addDays(i.before, -1)
2716
+ }, n) : ne(e.from, i, n) || ne(e.to, i, n) : tt(i) || nt(i) ? ne(e.from, i, n) || ne(e.to, i, n) : !1))
2717
+ return !0;
2718
+ const o = r.filter((i) => typeof i == "function");
2719
+ if (o.length) {
2720
+ let i = e.from;
2721
+ const d = n.differenceInCalendarDays(e.to, e.from);
2722
+ for (let c = 0; c <= d; c++) {
2723
+ if (o.some((u) => u(i)))
2724
+ return !0;
2725
+ i = n.addDays(i, 1);
2726
+ }
2727
+ }
2728
+ return !1;
2729
+ }
2730
+ function xs(e, t) {
2731
+ const { disabled: n, excludeDisabled: r, resetOnSelect: a, selected: s, required: o, onSelect: i } = e, [d, c] = Te(s, i ? s : void 0), u = i ? s : d;
2732
+ return {
2733
+ selected: u,
2734
+ select: (g, D, p) => {
2735
+ const { min: k, max: N } = e;
2736
+ let M;
2737
+ if (g) {
2738
+ const b = u == null ? void 0 : u.from, W = u == null ? void 0 : u.to, v = !!b && !!W, l = !!b && !!W && t.isSameDay(b, W) && t.isSameDay(g, b);
2739
+ a && (v || !(u != null && u.from)) ? !o && l ? M = void 0 : M = { from: g, to: void 0 } : M = Ss(g, u, k, N, o, t);
2740
+ }
2741
+ return r && n && (M != null && M.from) && M.to && Cs({ from: M.from, to: M.to }, n, t) && (M.from = g, M.to = void 0), i || c(M), i == null || i(M, g, D, p), M;
2742
+ },
2743
+ isSelected: (g) => u && te(u, g, !1, t)
2744
+ };
2745
+ }
2746
+ function _s(e, t) {
2747
+ const { selected: n, required: r, onSelect: a } = e, [s, o] = Te(n, a ? n : void 0), i = a ? n : s, { isSameDay: d } = t;
2748
+ return {
2749
+ selected: i,
2750
+ select: (f, h, g) => {
2751
+ let D = f;
2752
+ return !r && i && i && d(f, i) && (D = void 0), a || o(D), a == null || a(D, f, h, g), D;
2753
+ },
2754
+ isSelected: (f) => i ? d(i, f) : !1
2755
+ };
2756
+ }
2757
+ function Ys(e, t) {
2758
+ const n = _s(e, t), r = Ws(e, t), a = xs(e, t);
2759
+ switch (e.mode) {
2760
+ case "single":
2761
+ return n;
2762
+ case "multiple":
2763
+ return r;
2764
+ case "range":
2765
+ return a;
2766
+ default:
2767
+ return;
2768
+ }
2769
+ }
2770
+ function V(e, t) {
2771
+ return e instanceof H && e.timeZone === t ? e : new H(e, t);
2772
+ }
2773
+ function ue(e, t, n) {
2774
+ return V(e, t);
2775
+ }
2776
+ function Ot(e, t, n) {
2777
+ return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? ue(e, t) : Array.isArray(e) ? e.map((r) => r instanceof Date ? ue(r, t) : r) : Ye(e) ? {
2778
+ ...e,
2779
+ from: e.from ? V(e.from, t) : e.from,
2780
+ to: e.to ? V(e.to, t) : e.to
2781
+ } : et(e) ? {
2782
+ before: ue(e.before, t),
2783
+ after: ue(e.after, t)
2784
+ } : tt(e) ? {
2785
+ after: ue(e.after, t)
2786
+ } : nt(e) ? {
2787
+ before: ue(e.before, t)
2788
+ } : e;
2789
+ }
2790
+ function Re(e, t, n) {
2791
+ return e && (Array.isArray(e) ? e.map((r) => Ot(r, t)) : Ot(e, t));
2792
+ }
2793
+ function $s(e) {
2794
+ var ut;
2795
+ let t = e;
2796
+ const n = t.timeZone;
2797
+ if (n && (t = {
2798
+ ...e,
2799
+ timeZone: n
2800
+ }, t.today && (t.today = V(t.today, n)), t.month && (t.month = V(t.month, n)), t.defaultMonth && (t.defaultMonth = V(t.defaultMonth, n)), t.startMonth && (t.startMonth = V(t.startMonth, n)), t.endMonth && (t.endMonth = V(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = V(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (ut = t.selected) == null ? void 0 : ut.map((O) => V(O, n)) : t.mode === "range" && t.selected && (t.selected = {
2801
+ from: t.selected.from ? V(t.selected.from, n) : t.selected.from,
2802
+ to: t.selected.to ? V(t.selected.to, n) : t.selected.to
2803
+ }), t.disabled !== void 0 && (t.disabled = Re(t.disabled, n)), t.hidden !== void 0 && (t.hidden = Re(t.hidden, n)), t.modifiers)) {
2804
+ const O = {};
2805
+ Object.keys(t.modifiers).forEach((_) => {
2806
+ var w;
2807
+ O[_] = Re((w = t.modifiers) == null ? void 0 : w[_], n);
2808
+ }), t.modifiers = O;
2809
+ }
2810
+ const { components: r, formatters: a, labels: s, dateLib: o, locale: i, classNames: d } = Ce(() => {
2811
+ const O = { ...zt, ...t.locale }, _ = t.broadcastCalendar ? 1 : t.weekStartsOn, w = t.noonSafe && t.timeZone ? ds(t.timeZone, {
2812
+ weekStartsOn: _,
2813
+ locale: O
2814
+ }) : void 0, x = t.dateLib && w ? { ...w, ...t.dateLib } : t.dateLib ?? w, z = new j({
2815
+ locale: O,
2816
+ weekStartsOn: _,
2817
+ firstWeekContainsDate: t.firstWeekContainsDate,
2818
+ useAdditionalWeekYearTokens: t.useAdditionalWeekYearTokens,
2819
+ useAdditionalDayOfYearTokens: t.useAdditionalDayOfYearTokens,
2820
+ timeZone: t.timeZone,
2821
+ numerals: t.numerals
2822
+ }, x);
2823
+ return {
2824
+ dateLib: z,
2825
+ components: qa(t.components),
2826
+ formatters: Za(t.formatters),
2827
+ labels: rs(t.labels, z.options),
2828
+ locale: O,
2829
+ classNames: { ...$a(), ...t.classNames }
2830
+ };
2831
+ }, [
2832
+ t.locale,
2833
+ t.broadcastCalendar,
2834
+ t.weekStartsOn,
2835
+ t.firstWeekContainsDate,
2836
+ t.useAdditionalWeekYearTokens,
2837
+ t.useAdditionalDayOfYearTokens,
2838
+ t.timeZone,
2839
+ t.numerals,
2840
+ t.dateLib,
2841
+ t.noonSafe,
2842
+ t.components,
2843
+ t.formatters,
2844
+ t.labels,
2845
+ t.classNames
2846
+ ]);
2847
+ t.today || (t = { ...t, today: o.today() });
2848
+ const { captionLayout: c, mode: u, navLayout: f, numberOfMonths: h = 1, onDayBlur: g, onDayClick: D, onDayFocus: p, onDayKeyDown: k, onDayMouseEnter: N, onDayMouseLeave: M, onNextClick: b, onPrevClick: W, showWeekNumber: v, styles: l } = t, { formatCaption: S, formatDay: E, formatMonthDropdown: B, formatWeekNumber: F, formatWeekNumberHeader: $, formatWeekdayName: re, formatYearDropdown: L } = a, G = ks(t, o), { days: de, months: Oe, navStart: Pe, navEnd: Ee, previousMonth: U, nextMonth: Q, goToMonth: ee } = G, Fe = Aa(de, t, Pe, Ee, o), { isSelected: le, select: he, selected: pe } = Ys(t, o) ?? {}, { blur: st, focused: We, isFocusTarget: rn, moveFocus: ot, setFocused: Se } = ps(t, G, Fe, le ?? (() => !1), o), { labelDayButton: an, labelGridcell: sn, labelGrid: on, labelMonthDropdown: dn, labelNav: it, labelPrevious: cn, labelNext: un, labelWeekday: fn, labelWeekNumber: ln, labelWeekNumberHeader: hn, labelYearDropdown: mn } = s, yn = Ce(() => os(o, t.ISOWeek, t.broadcastCalendar, t.today), [o, t.ISOWeek, t.broadcastCalendar, t.today]), dt = u !== void 0 || D !== void 0, Be = R(() => {
2849
+ U && (ee(U), W == null || W(U));
2850
+ }, [U, ee, W]), Ie = R(() => {
2851
+ Q && (ee(Q), b == null || b(Q));
2852
+ }, [ee, Q, b]), gn = R((O, _) => (w) => {
2853
+ w.preventDefault(), w.stopPropagation(), Se(O), !_.disabled && (he == null || he(O.date, _, w), D == null || D(O.date, _, w));
2854
+ }, [he, D, Se]), bn = R((O, _) => (w) => {
2855
+ Se(O), p == null || p(O.date, _, w);
2856
+ }, [p, Se]), Mn = R((O, _) => (w) => {
2857
+ st(), g == null || g(O.date, _, w);
2858
+ }, [st, g]), wn = R((O, _) => (w) => {
2859
+ const x = {
2860
+ ArrowLeft: [
2861
+ w.shiftKey ? "month" : "day",
2862
+ t.dir === "rtl" ? "after" : "before"
2863
+ ],
2864
+ ArrowRight: [
2865
+ w.shiftKey ? "month" : "day",
2866
+ t.dir === "rtl" ? "before" : "after"
2867
+ ],
2868
+ ArrowDown: [w.shiftKey ? "year" : "week", "after"],
2869
+ ArrowUp: [w.shiftKey ? "year" : "week", "before"],
2870
+ PageUp: [w.shiftKey ? "year" : "month", "before"],
2871
+ PageDown: [w.shiftKey ? "year" : "month", "after"],
2872
+ Home: ["startOfWeek", "before"],
2873
+ End: ["endOfWeek", "after"]
2874
+ };
2875
+ if (x[w.key]) {
2876
+ w.preventDefault(), w.stopPropagation();
2877
+ const [z, C] = x[w.key];
2878
+ ot(z, C);
2879
+ }
2880
+ k == null || k(O.date, _, w);
2881
+ }, [ot, k, t.dir]), vn = R((O, _) => (w) => {
2882
+ N == null || N(O.date, _, w);
2883
+ }, [N]), kn = R((O, _) => (w) => {
2884
+ M == null || M(O.date, _, w);
2885
+ }, [M]), Dn = R((O) => (_) => {
2886
+ const w = Number(_.target.value), x = o.setMonth(o.startOfMonth(O), w);
2887
+ ee(x);
2888
+ }, [o, ee]), On = R((O) => (_) => {
2889
+ const w = Number(_.target.value), x = o.setYear(o.startOfMonth(O), w);
2890
+ ee(x);
2891
+ }, [o, ee]), { className: pn, style: Wn } = Ce(() => ({
2892
+ className: [d[m.Root], t.className].filter(Boolean).join(" "),
2893
+ style: { ...l == null ? void 0 : l[m.Root], ...t.style }
2894
+ }), [d, t.className, t.style, l]), Sn = ja(t), ct = Ne(null);
2895
+ ls(ct, !!t.animate, {
2896
+ classNames: d,
2897
+ months: Oe,
2898
+ focused: We,
2899
+ dateLib: o
2900
+ });
2901
+ const Nn = {
2902
+ dayPickerProps: t,
2903
+ selected: pe,
2904
+ select: he,
2905
+ isSelected: le,
2906
+ months: Oe,
2907
+ nextMonth: Q,
2908
+ previousMonth: U,
2909
+ goToMonth: ee,
2910
+ getModifiers: Fe,
2911
+ components: r,
2912
+ classNames: d,
2913
+ styles: l,
2914
+ labels: s,
2915
+ formatters: a
2916
+ };
2917
+ return y.createElement(
2918
+ jt.Provider,
2919
+ { value: Nn },
2920
+ y.createElement(
2921
+ r.Root,
2922
+ { rootRef: t.animate ? ct : void 0, className: pn, style: Wn, dir: t.dir, id: t.id, lang: t.lang ?? i.code, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...Sn },
2923
+ y.createElement(
2924
+ r.Months,
2925
+ { className: d[m.Months], style: l == null ? void 0 : l[m.Months] },
2926
+ !t.hideNavigation && !f && y.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[m.Nav], style: l == null ? void 0 : l[m.Nav], "aria-label": it(), onPreviousClick: Be, onNextClick: Ie, previousMonth: U, nextMonth: Q }),
2927
+ Oe.map((O, _) => y.createElement(
2928
+ r.Month,
2929
+ {
2930
+ "data-animated-month": t.animate ? "true" : void 0,
2931
+ className: d[m.Month],
2932
+ style: l == null ? void 0 : l[m.Month],
2933
+ // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
2934
+ key: _,
2935
+ displayIndex: _,
2936
+ calendarMonth: O
2937
+ },
2938
+ f === "around" && !t.hideNavigation && _ === 0 && y.createElement(
2939
+ r.PreviousMonthButton,
2940
+ { type: "button", className: d[m.PreviousMonthButton], tabIndex: U ? void 0 : -1, "aria-disabled": U ? void 0 : !0, "aria-label": cn(U), onClick: Be, "data-animated-button": t.animate ? "true" : void 0 },
2941
+ y.createElement(r.Chevron, { disabled: U ? void 0 : !0, className: d[m.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
2942
+ ),
2943
+ y.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: d[m.MonthCaption], style: l == null ? void 0 : l[m.MonthCaption], calendarMonth: O, displayIndex: _ }, c != null && c.startsWith("dropdown") ? y.createElement(
2944
+ r.DropdownNav,
2945
+ { className: d[m.Dropdowns], style: l == null ? void 0 : l[m.Dropdowns] },
2946
+ (() => {
2947
+ const w = c === "dropdown" || c === "dropdown-months" ? y.createElement(r.MonthsDropdown, { key: "month", className: d[m.MonthsDropdown], "aria-label": dn(), classNames: d, components: r, disabled: !!t.disableNavigation, onChange: Dn(O.date), options: as(O.date, Pe, Ee, a, o), style: l == null ? void 0 : l[m.Dropdown], value: o.getMonth(O.date) }) : y.createElement("span", { key: "month" }, B(O.date, o)), x = c === "dropdown" || c === "dropdown-years" ? y.createElement(r.YearsDropdown, { key: "year", className: d[m.YearsDropdown], "aria-label": mn(o.options), classNames: d, components: r, disabled: !!t.disableNavigation, onChange: On(O.date), options: is(Pe, Ee, a, o, !!t.reverseYears), style: l == null ? void 0 : l[m.Dropdown], value: o.getYear(O.date) }) : y.createElement("span", { key: "year" }, L(O.date, o));
2948
+ return o.getMonthYearOrder() === "year-first" ? [x, w] : [w, x];
2949
+ })(),
2950
+ y.createElement("span", { role: "status", "aria-live": "polite", style: {
2951
+ border: 0,
2952
+ clip: "rect(0 0 0 0)",
2953
+ height: "1px",
2954
+ margin: "-1px",
2955
+ overflow: "hidden",
2956
+ padding: 0,
2957
+ position: "absolute",
2958
+ width: "1px",
2959
+ whiteSpace: "nowrap",
2960
+ wordWrap: "normal"
2961
+ } }, S(O.date, o.options, o))
2962
+ ) : y.createElement(r.CaptionLabel, { className: d[m.CaptionLabel], role: "status", "aria-live": "polite" }, S(O.date, o.options, o))),
2963
+ f === "around" && !t.hideNavigation && _ === h - 1 && y.createElement(
2964
+ r.NextMonthButton,
2965
+ { type: "button", className: d[m.NextMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": un(Q), onClick: Ie, "data-animated-button": t.animate ? "true" : void 0 },
2966
+ y.createElement(r.Chevron, { disabled: Q ? void 0 : !0, className: d[m.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
2967
+ ),
2968
+ _ === h - 1 && f === "after" && !t.hideNavigation && y.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[m.Nav], style: l == null ? void 0 : l[m.Nav], "aria-label": it(), onPreviousClick: Be, onNextClick: Ie, previousMonth: U, nextMonth: Q }),
2969
+ y.createElement(
2970
+ r.MonthGrid,
2971
+ { role: "grid", "aria-multiselectable": u === "multiple" || u === "range", "aria-label": on(O.date, o.options, o) || void 0, className: d[m.MonthGrid], style: l == null ? void 0 : l[m.MonthGrid] },
2972
+ !t.hideWeekdays && y.createElement(
2973
+ r.Weekdays,
2974
+ { "data-animated-weekdays": t.animate ? "true" : void 0, className: d[m.Weekdays], style: l == null ? void 0 : l[m.Weekdays] },
2975
+ v && y.createElement(r.WeekNumberHeader, { "aria-label": hn(o.options), className: d[m.WeekNumberHeader], style: l == null ? void 0 : l[m.WeekNumberHeader], scope: "col" }, $()),
2976
+ yn.map((w) => y.createElement(r.Weekday, { "aria-label": fn(w, o.options, o), className: d[m.Weekday], key: String(w), style: l == null ? void 0 : l[m.Weekday], scope: "col" }, re(w, o.options, o)))
2977
+ ),
2978
+ y.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: d[m.Weeks], style: l == null ? void 0 : l[m.Weeks] }, O.weeks.map((w) => y.createElement(
2979
+ r.Week,
2980
+ { className: d[m.Week], key: w.weekNumber, style: l == null ? void 0 : l[m.Week], week: w },
2981
+ v && y.createElement(r.WeekNumber, { week: w, style: l == null ? void 0 : l[m.WeekNumber], "aria-label": ln(w.weekNumber, {
2982
+ locale: i
2983
+ }), className: d[m.WeekNumber], scope: "row", role: "rowheader" }, F(w.weekNumber, o)),
2984
+ w.days.map((x) => {
2985
+ const { date: z } = x, C = Fe(x);
2986
+ if (C[T.focused] = !C.hidden && !!(We != null && We.isEqualTo(x)), C[A.selected] = (le == null ? void 0 : le(z)) || C.selected, Ye(pe)) {
2987
+ const { from: He, to: Ae } = pe;
2988
+ C[A.range_start] = !!(He && Ae && o.isSameDay(z, He)), C[A.range_end] = !!(He && Ae && o.isSameDay(z, Ae)), C[A.range_middle] = te(pe, z, !0, o);
2989
+ }
2990
+ const Cn = ss(C, l, t.modifiersStyles), xn = za(C, d, t.modifiersClassNames), _n = !dt && !C.hidden ? sn(z, C, o.options, o) : void 0;
2991
+ return y.createElement(r.Day, { key: `${x.isoDate}_${x.displayMonthId}`, day: x, modifiers: C, className: xn.join(" "), style: Cn, role: "gridcell", "aria-selected": C.selected || void 0, "aria-label": _n, "data-day": x.isoDate, "data-month": x.outside ? x.dateMonthId : void 0, "data-selected": C.selected || void 0, "data-disabled": C.disabled || void 0, "data-hidden": C.hidden || void 0, "data-outside": x.outside || void 0, "data-focused": C.focused || void 0, "data-today": C.today || void 0 }, !C.hidden && dt ? y.createElement(r.DayButton, { className: d[m.DayButton], style: l == null ? void 0 : l[m.DayButton], type: "button", day: x, modifiers: C, disabled: !C.focused && C.disabled || void 0, "aria-disabled": C.focused && C.disabled || void 0, tabIndex: rn(x) ? 0 : -1, "aria-label": an(z, C, o.options, o), onClick: gn(x, C), onBlur: Mn(x, C), onFocus: bn(x, C), onKeyDown: wn(x, C), onMouseEnter: vn(x, C), onMouseLeave: kn(x, C) }, E(z, o.options, o)) : !C.hidden && E(x.date, o.options, o));
2992
+ })
2993
+ )))
2994
+ )
2995
+ ))
2996
+ ),
2997
+ t.footer && y.createElement(r.Footer, { className: d[m.Footer], style: l == null ? void 0 : l[m.Footer], role: "status", "aria-live": "polite" }, t.footer)
2998
+ )
2999
+ );
3000
+ }
3001
+ const pt = {
3002
+ en: () => Promise.resolve().then(() => Er).then((e) => e.enUS),
3003
+ it: () => import("./it-Y85ofIQQ.js").then((e) => e.it),
3004
+ de: () => import("./de-bTBGdjPS.js").then((e) => e.de),
3005
+ es: () => import("./es-DfO_G435.js").then((e) => e.es),
3006
+ fr: () => import("./fr-BTn24bs8.js").then((e) => e.fr),
3007
+ pt: () => import("./pt-D3J-1c_7.js").then((e) => e.pt),
3008
+ nl: () => import("./nl-D9kHCmp3.js").then((e) => e.nl),
3009
+ pl: () => import("./pl-B3Smqpkr.js").then((e) => e.pl),
3010
+ ro: () => import("./ro-BKAbbEA3.js").then((e) => e.ro),
3011
+ ru: () => import("./ru-BeG8f0Ep.js").then((e) => e.ru),
3012
+ sv: () => import("./sv-g009fSpe.js").then((e) => e.sv),
3013
+ el: () => import("./el-BWG5RXxa.js").then((e) => e.el),
3014
+ ja: () => import("./ja-CQ7J6YoA.js").then((e) => e.ja),
3015
+ zh: () => import("./zh-CN-De4zwEhx.js").then((e) => e.zhCN),
3016
+ hi: () => import("./hi-Dj3oYd84.js").then((e) => e.hi),
3017
+ ar: () => import("./ar-DEz65ZJW.js").then((e) => e.ar),
3018
+ tr: () => import("./tr-OKUOuhMW.js").then((e) => e.tr),
3019
+ sq: () => import("./sq-_hRPaeUy.js").then((e) => e.sq)
3020
+ };
3021
+ async function Ts(e) {
3022
+ const t = e.toLowerCase().split("-")[0];
3023
+ return (pt[t] ?? pt.en)();
3024
+ }
3025
+ const Ve = /* @__PURE__ */ new Map();
3026
+ function Gs(e) {
3027
+ const t = e.toLowerCase().split("-")[0], [n, r] = xe(
3028
+ () => Ve.get(t)
3029
+ );
3030
+ return St(() => {
3031
+ const a = Ve.get(t);
3032
+ if (a) {
3033
+ r(a);
3034
+ return;
3035
+ }
3036
+ let s = !1;
3037
+ return Ts(t).then((o) => {
3038
+ Ve.set(t, o), s || r(o);
3039
+ }), () => {
3040
+ s = !0;
3041
+ };
3042
+ }, [t]), n;
3043
+ }
3044
+ const Ue = {
3045
+ en: "dd/MM/yyyy",
3046
+ "en-us": "MM/dd/yyyy",
3047
+ de: "dd.MM.yyyy",
3048
+ fr: "dd/MM/yyyy",
3049
+ es: "dd/MM/yyyy",
3050
+ it: "dd/MM/yyyy",
3051
+ pt: "dd/MM/yyyy",
3052
+ nl: "dd-MM-yyyy",
3053
+ pl: "dd.MM.yyyy",
3054
+ cs: "dd.MM.yyyy",
3055
+ da: "dd.MM.yyyy",
3056
+ sv: "yyyy-MM-dd",
3057
+ fi: "dd.MM.yyyy",
3058
+ nb: "dd.MM.yyyy",
3059
+ ja: "yyyy/MM/dd",
3060
+ zh: "yyyy/MM/dd",
3061
+ ko: "yyyy.MM.dd",
3062
+ ar: "dd/MM/yyyy",
3063
+ he: "dd.MM.yyyy"
3064
+ };
3065
+ function Rs(e) {
3066
+ const t = e.toLowerCase();
3067
+ return Ue[t] ?? Ue[t.split("-")[0]] ?? Ue.en;
3068
+ }
3069
+ function Vs(e, t, n) {
3070
+ const r = [];
3071
+ return e && r.push({ before: e }), t && r.push({ after: t }), Array.isArray(n) ? r.push(...n) : typeof n == "function" && r.push(n), r.length === 1 ? r[0] : r;
3072
+ }
3073
+ function Us({ orientation: e }) {
3074
+ return e === "left" ? /* @__PURE__ */ ft(In, { className: "ds:size-4 ds:rtl:-scale-x-100" }) : /* @__PURE__ */ ft(Hn, { className: "ds:size-4 ds:rtl:-scale-x-100" });
3075
+ }
3076
+ const Qe = "ds:bg-[color-mix(in_srgb,var(--primary)_12%,transparent)]", Ps = "ds:size-[var(--min-target-size)] ds:text-center ds:align-middle", Es = [
3077
+ // `rdp-day_button` is kept as a stable structural/test hook AND as the
3078
+ // descendant target for the selection-state fills below
3079
+ // (`ds:[&_.rdp-day_button]:bg-primary`).
3080
+ "rdp-day_button",
3081
+ "ds:flex ds:items-center ds:justify-center",
3082
+ "ds:size-[calc(var(--min-target-size)-2px)]",
3083
+ "ds:mx-auto ds:rounded-[var(--radius-sm)]",
3084
+ "ds:border-2 ds:border-transparent",
3085
+ "ds:cursor-pointer ds:font-[inherit] ds:text-[inherit] ds:bg-transparent",
3086
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
3087
+ "ds:hover:bg-muted",
3088
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
3089
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
3090
+ "ds:forced-colors:focus-visible:outline-[Highlight]",
3091
+ "ds:disabled:cursor-default"
3092
+ ].join(" "), Wt = [
3093
+ "ds:inline-flex ds:items-center ds:justify-center",
3094
+ "ds:size-[var(--min-target-size)] ds:rounded-[var(--radius-sm)]",
3095
+ "ds:cursor-pointer ds:bg-transparent ds:text-foreground",
3096
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
3097
+ "ds:hover:bg-muted",
3098
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
3099
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
3100
+ "ds:disabled:opacity-50 ds:disabled:cursor-default",
3101
+ "ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-default"
3102
+ ].join(" "), Qs = {
3103
+ /* ---- Layout shell ---- */
3104
+ [m.Root]: "rdp-root ds:relative ds:font-sans ds:text-foreground",
3105
+ [m.Months]: "rdp-months ds:relative ds:flex ds:flex-wrap ds:gap-[var(--spacing-lg)]",
3106
+ [m.Month]: "rdp-month ds:flex ds:flex-col",
3107
+ [m.MonthGrid]: "rdp-month_grid ds:border-collapse",
3108
+ /* ---- Caption + navigation ---- */
3109
+ [m.MonthCaption]: "rdp-month_caption ds:flex ds:items-center ds:h-[var(--min-target-size)] ds:font-semibold ds:text-[length:var(--font-size-base)]",
3110
+ [m.CaptionLabel]: "rdp-caption_label ds:inline-flex ds:items-center",
3111
+ // `top-0` is the block-axis (RTL-agnostic) inset; `end-0` is the
3112
+ // inline-axis logical inset → `inset-inline-end: 0`, mirroring under RTL.
3113
+ [m.Nav]: "rdp-nav ds:absolute ds:top-0 ds:end-0 ds:flex ds:items-center ds:h-[var(--min-target-size)]",
3114
+ [m.PreviousMonthButton]: `rdp-button_previous ${Wt}`,
3115
+ [m.NextMonthButton]: `rdp-button_next ${Wt}`,
3116
+ [m.Chevron]: "rdp-chevron ds:inline-block ds:fill-current",
3117
+ /* ---- Weekday header row ---- */
3118
+ [m.Weekdays]: "rdp-weekdays",
3119
+ [m.Weekday]: "rdp-weekday ds:opacity-75 ds:py-[var(--spacing-xs)] ds:text-center ds:font-medium ds:text-[length:var(--font-size-sm)] ds:text-muted-foreground",
3120
+ /* ---- Week rows + day cells ---- */
3121
+ [m.Weeks]: "rdp-weeks",
3122
+ [m.Week]: "rdp-week",
3123
+ [m.Day]: `rdp-day ${Ps}`,
3124
+ [m.DayButton]: Es,
3125
+ [m.WeekNumber]: "rdp-week_number ds:opacity-50 ds:text-center ds:text-[length:var(--font-size-sm)] ds:size-[var(--min-target-size)]",
3126
+ /* ---- Day flags ---- */
3127
+ [T.today]: "rdp-today ds:text-primary ds:font-semibold ds:[&:is(.rdp-outside)]:text-inherit",
3128
+ [T.outside]: "rdp-outside ds:opacity-50",
3129
+ [T.disabled]: "rdp-disabled ds:opacity-30",
3130
+ [T.hidden]: "rdp-hidden ds:invisible",
3131
+ /* ---- Selection states ----
3132
+ The colour fill lives on the inner `.rdp-day_button` via descendant
3133
+ selectors so the cell padding stays transparent and the rounded
3134
+ button reads as the selected chip. */
3135
+ [A.selected]: "rdp-selected ds:[&_.rdp-day_button]:bg-primary ds:[&_.rdp-day_button]:text-primary-foreground ds:[&_.rdp-day_button]:border-primary ds:[&_.rdp-day_button]:hover:bg-primary-hover ds:forced-colors:[&_.rdp-day_button]:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:text-[HighlightText]",
3136
+ [A.range_start]: `rdp-range_start ${Qe} ds:rounded-s-[var(--radius-sm)] ds:[&_.rdp-day_button]:bg-primary ds:[&_.rdp-day_button]:text-primary-foreground ds:[&_.rdp-day_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:text-[HighlightText]`,
3137
+ [A.range_middle]: `rdp-range_middle ${Qe} ds:[&_.rdp-day_button]:bg-transparent ds:[&_.rdp-day_button]:border-transparent ds:[&_.rdp-day_button]:text-foreground ds:[&_.rdp-day_button]:rounded-none ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:text-[HighlightText]`,
3138
+ [A.range_end]: `rdp-range_end ${Qe} ds:rounded-e-[var(--radius-sm)] ds:[&_.rdp-day_button]:bg-primary ds:[&_.rdp-day_button]:text-primary-foreground ds:[&_.rdp-day_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:text-[HighlightText]`
3139
+ }, Xs = _e(
3140
+ [
3141
+ "ds:relative ds:flex ds:items-center ds:w-full",
3142
+ // Soft-chrome look — matches `INPUT_SURFACE_CHROME` so the trigger
3143
+ // shares the fill + halo with TextInput / Select / NumberInput.
3144
+ "ds:rounded-[var(--radius-sm)] ds:border ds:bg-input ds:text-foreground",
3145
+ "ds:shadow-[var(--shadow-input)]",
3146
+ "ds:placeholder:text-muted-foreground",
3147
+ "ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
3148
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
3149
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
3150
+ "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
3151
+ ].join(" "),
3152
+ {
3153
+ variants: {
3154
+ size: {
3155
+ sm: "ds:h-8 ds:text-[length:var(--font-size-sm)] ds:ps-3 ds:pe-10",
3156
+ md: "ds:h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)] ds:ps-3 ds:pe-10",
3157
+ lg: "ds:h-12 ds:text-[length:var(--font-size-lg)] ds:ps-4 ds:pe-12"
3158
+ },
3159
+ tone: {
3160
+ default: "ds:border-border",
3161
+ error: "ds:border-destructive"
3162
+ }
3163
+ },
3164
+ defaultVariants: {
3165
+ size: "md",
3166
+ tone: "default"
3167
+ }
3168
+ }
3169
+ ), Ks = _e(
3170
+ "ds:absolute ds:inset-y-0 ds:end-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground",
3171
+ {
3172
+ variants: {
3173
+ size: {
3174
+ sm: "ds:pe-3 ds:[&_svg]:size-4",
3175
+ md: "ds:pe-3 ds:[&_svg]:size-4",
3176
+ lg: "ds:pe-4 ds:[&_svg]:size-5"
3177
+ }
3178
+ },
3179
+ defaultVariants: { size: "md" }
3180
+ }
3181
+ ), Js = _e(
3182
+ [
3183
+ "ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
3184
+ "ds:border ds:border-border ds:bg-background ds:shadow-[var(--shadow-lg)]",
3185
+ "ds:p-[var(--spacing-md)]"
3186
+ ].join(" ")
3187
+ ), Zs = _e(
3188
+ [
3189
+ "ds:w-full ds:text-start ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
3190
+ "ds:rounded-[var(--radius-sm)] ds:text-[length:var(--font-size-sm)] ds:text-foreground",
3191
+ "ds:hover:bg-muted ds:cursor-pointer",
3192
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
3193
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
3194
+ "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
3195
+ ].join(" ")
3196
+ );
3197
+ export {
3198
+ It as A,
3199
+ Me as B,
3200
+ js as C,
3201
+ $s as D,
3202
+ Le as E,
3203
+ Ze as F,
3204
+ mt as G,
3205
+ oe as H,
3206
+ Hr as I,
3207
+ $r as J,
3208
+ Gr as K,
3209
+ jr as L,
3210
+ Xn as M,
3211
+ xt as a,
3212
+ Rn as b,
3213
+ Vs as c,
3214
+ Je as d,
3215
+ Bt as e,
3216
+ Kn as f,
3217
+ Rs as g,
3218
+ Zn as h,
3219
+ ta as i,
3220
+ be as j,
3221
+ Ks as k,
3222
+ Us as l,
3223
+ Qs as m,
3224
+ Js as n,
3225
+ na as o,
3226
+ Zs as p,
3227
+ qe as q,
3228
+ me as r,
3229
+ fe as s,
3230
+ Xs as t,
3231
+ Gs as u,
3232
+ ye as v,
3233
+ vr as w,
3234
+ _t as x,
3235
+ ra as y,
3236
+ ve as z
3237
+ };
3238
+ //# sourceMappingURL=date-picker-variants-DLi1Va_e.js.map