bootstrap-vue-next 0.45.9 → 0.46.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 (913) hide show
  1. package/dist/App.vue.d.mts +2 -1
  2. package/dist/App.vue.d.ts +2 -1
  3. package/dist/{BAccordion-D51b9HVD.mjs → BAccordion-FuQ6sMFy.js} +33 -31
  4. package/dist/BAccordion-FuQ6sMFy.js.map +1 -0
  5. package/dist/{BAlert-Ce2uxrJi.mjs → BAlert-C9Mi4RDx.js} +20 -13
  6. package/dist/BAlert-C9Mi4RDx.js.map +1 -0
  7. package/dist/{BApp-B-fUrnpK.mjs → BApp-GXR1wS6K.js} +53 -51
  8. package/dist/BApp-GXR1wS6K.js.map +1 -0
  9. package/dist/{BAspect-wfiXM4KA.mjs → BAspect-BPR6DH5W.js} +2 -2
  10. package/dist/{BAspect-CUIU48Ck.js.map → BAspect-BPR6DH5W.js.map} +1 -1
  11. package/dist/{BAutocomplete-CH-bQzME.mjs → BAutocomplete-DGvKY7-D.js} +195 -101
  12. package/dist/BAutocomplete-DGvKY7-D.js.map +1 -0
  13. package/dist/{BAvatar-iALHbqVk.mjs → BAvatar-BsStQrBF.js} +13 -13
  14. package/dist/BAvatar-BsStQrBF.js.map +1 -0
  15. package/dist/{BBadge-Cx_CdauK.mjs → BBadge-BaZ13wE_.js} +5 -5
  16. package/dist/{BBadge-Db6SEnzy.js.map → BBadge-BaZ13wE_.js.map} +1 -1
  17. package/dist/{BBreadcrumb-BxADbg0O.mjs → BBreadcrumb-C-SsS3hM.js} +4 -4
  18. package/dist/{BBreadcrumb-B9ra7vg2.js.map → BBreadcrumb-C-SsS3hM.js.map} +1 -1
  19. package/dist/{BButton-BSa7LfL5.mjs → BButton-Cc2gd95Z.js} +5 -7
  20. package/dist/{BButton-DRRlzkyK.js.map → BButton-Cc2gd95Z.js.map} +1 -1
  21. package/dist/{BButton-PY7AANXJ.mjs → BButton-KZu5jczf.js} +9 -9
  22. package/dist/{BButton-aYtMnyHu.js.map → BButton-KZu5jczf.js.map} +1 -1
  23. package/dist/{BCard-BWoruisp.mjs → BCard-D2GEiXan.js} +2 -3
  24. package/dist/{BCard-Bh8RLMo_.js.map → BCard-D2GEiXan.js.map} +1 -1
  25. package/dist/{BCard-CHbKv2OR.mjs → BCard-nRj1JWtQ.js} +9 -9
  26. package/dist/{BCard-DwNYhVmg.js.map → BCard-nRj1JWtQ.js.map} +1 -1
  27. package/dist/{BCarousel-B6_bgQpl.mjs → BCarousel-DQgfW4DN.js} +11 -10
  28. package/dist/{BCarousel-2JB21Pcu.js.map → BCarousel-DQgfW4DN.js.map} +1 -1
  29. package/dist/{BCloseButton-CKTKr4PS.mjs → BCloseButton-B3-IdpNp.js} +2 -2
  30. package/dist/{BCloseButton-D42zHRLP.js.map → BCloseButton-B3-IdpNp.js.map} +1 -1
  31. package/dist/{BCol-B3VeEk9z.mjs → BCol-DiZFbqU5.js} +3 -3
  32. package/dist/{BCol-Ck9VydHj.js.map → BCol-DiZFbqU5.js.map} +1 -1
  33. package/dist/{BCollapse-kqhe4AmL.mjs → BCollapse-B9fnWSzA.js} +15 -9
  34. package/dist/BCollapse-B9fnWSzA.js.map +1 -0
  35. package/dist/{BContainer-ATfhaxTc.mjs → BContainer-D-bZVPwa.js} +2 -4
  36. package/dist/{BContainer-CcF6dgtI.js.map → BContainer-D-bZVPwa.js.map} +1 -1
  37. package/dist/{BDateField-CccP3H1R.mjs → BDateField-Bj-Jz7u4.js} +27 -22
  38. package/dist/BDateField-Bj-Jz7u4.js.map +1 -0
  39. package/dist/{BDatePicker-BnwnSkBg.mjs → BDatePicker-AVTYcVLy.js} +232 -148
  40. package/dist/BDatePicker-AVTYcVLy.js.map +1 -0
  41. package/dist/{BDropdown-B1DbvVzm.mjs → BDropdown-CnxUzs42.js} +55 -46
  42. package/dist/BDropdown-CnxUzs42.js.map +1 -0
  43. package/dist/{BDropdown-0E8x5kk6.mjs → BDropdown-D4VSJJxu.js} +5 -6
  44. package/dist/{BDropdown-DKCgBzYS.js.map → BDropdown-D4VSJJxu.js.map} +1 -1
  45. package/dist/{BForm-BVfW08s5.mjs → BForm-BOoX6AAr.js} +2 -2
  46. package/dist/{BForm-cnRpggt9.js.map → BForm-BOoX6AAr.js.map} +1 -1
  47. package/dist/{BForm-DJu2hDV_.mjs → BForm-C5PR2ust.js} +7 -8
  48. package/dist/{BForm-6JlWdQMO.js.map → BForm-C5PR2ust.js.map} +1 -1
  49. package/dist/{BFormCheckbox-Baf_9BSc.mjs → BFormCheckbox-BMhyR-J5.js} +12 -13
  50. package/dist/BFormCheckbox-BMhyR-J5.js.map +1 -0
  51. package/dist/{BFormFile-CZebm0Cp.mjs → BFormFile-BVrDprWL.js} +8 -8
  52. package/dist/{BFormFile-MISLntyJ.js.map → BFormFile-BVrDprWL.js.map} +1 -1
  53. package/dist/{BFormGroup-vysRPb99.mjs → BFormGroup-BE5tGz_g.js} +40 -24
  54. package/dist/BFormGroup-BE5tGz_g.js.map +1 -0
  55. package/dist/{BFormInput-sEfU3CuN.mjs → BFormInput-BwvdFGDu.js} +5 -5
  56. package/dist/{BFormInput-CBwwDjfC.js.map → BFormInput-BwvdFGDu.js.map} +1 -1
  57. package/dist/{BFormOtp-C8X3u1od.mjs → BFormOtp-I1t8dqPS.js} +63 -22
  58. package/dist/BFormOtp-I1t8dqPS.js.map +1 -0
  59. package/dist/{BFormRadio-COc_IbxC.mjs → BFormRadio-DRViMh6V.js} +24 -13
  60. package/dist/BFormRadio-DRViMh6V.js.map +1 -0
  61. package/dist/{BFormRating-CIgPVsH_.mjs → BFormRating-AEiF8K8T.js} +23 -17
  62. package/dist/BFormRating-AEiF8K8T.js.map +1 -0
  63. package/dist/{BFormSelect-P-InkOm-.mjs → BFormSelect-DdjH8482.js} +23 -12
  64. package/dist/BFormSelect-DdjH8482.js.map +1 -0
  65. package/dist/{BFormSelectOption-DFN4lPRh.mjs → BFormSelectOption-C8orMj24.js} +3 -3
  66. package/dist/{BFormSelectOption-DrwJucNf.js.map → BFormSelectOption-C8orMj24.js.map} +1 -1
  67. package/dist/{BFormSpinbutton-6qkTBF_4.mjs → BFormSpinbutton-Bt590uT6.js} +10 -9
  68. package/dist/{BFormSpinbutton-1gTz4nTo.js.map → BFormSpinbutton-Bt590uT6.js.map} +1 -1
  69. package/dist/{BFormTag-CnzI39y9.mjs → BFormTag-DGSUfz7A.js} +5 -5
  70. package/dist/{BFormTag-CeV0MSRC.js.map → BFormTag-DGSUfz7A.js.map} +1 -1
  71. package/dist/{BFormTags-BMltSaKL.mjs → BFormTags-CUcyRTCK.js} +23 -27
  72. package/dist/BFormTags-CUcyRTCK.js.map +1 -0
  73. package/dist/{BFormTextarea-DN1gAfSo.mjs → BFormTextarea-DlDe26DL.js} +6 -6
  74. package/dist/{BFormTextarea-C3Cj0DWj.js.map → BFormTextarea-DlDe26DL.js.map} +1 -1
  75. package/dist/{BFormValidFeedback-CBYxQLDz.mjs → BFormValidFeedback-ClqLRxtH.js} +4 -4
  76. package/dist/{BFormValidFeedback-Kwxh798d.js.map → BFormValidFeedback-ClqLRxtH.js.map} +1 -1
  77. package/dist/{BImg-QBS2ECBc.mjs → BImg-knz2UZQE.js} +5 -5
  78. package/dist/{BImg-JKJLgYYT.js.map → BImg-knz2UZQE.js.map} +1 -1
  79. package/dist/{BInputGroup-DiTSexkT.mjs → BInputGroup-Bjh7zXyI.js} +2 -3
  80. package/dist/{BInputGroup-D4fW324B.js.map → BInputGroup-Bjh7zXyI.js.map} +1 -1
  81. package/dist/{BInputGroup-X2Z53RJx.mjs → BInputGroup-DdoeSICR.js} +3 -3
  82. package/dist/{BInputGroup-Bvlfv6VD.js.map → BInputGroup-DdoeSICR.js.map} +1 -1
  83. package/dist/{BLink-Dfgte6dQ.mjs → BLink-mdwZsC7b.js} +5 -5
  84. package/dist/{BLink-kLEjleB1.js.map → BLink-mdwZsC7b.js.map} +1 -1
  85. package/dist/{BListGroup-DwTLpNiD.mjs → BListGroup-CQedMbI8.js} +4 -4
  86. package/dist/{BListGroup-C8JOzHTz.js.map → BListGroup-CQedMbI8.js.map} +1 -1
  87. package/dist/{BModal-C-ZCau2E.mjs → BModal-NPsCBNo7.js} +25 -18
  88. package/dist/BModal-NPsCBNo7.js.map +1 -0
  89. package/dist/{BNav-DfYvjfRK.mjs → BNav-CjXS9tQ5.js} +9 -9
  90. package/dist/{BNav-DCLambmM.js.map → BNav-CjXS9tQ5.js.map} +1 -1
  91. package/dist/{BNavbar-xYaikQVY.mjs → BNavbar-DRqkdxTk.js} +12 -9
  92. package/dist/{BNavbar-BLWaZJRP.js.map → BNavbar-DRqkdxTk.js.map} +1 -1
  93. package/dist/{BOffcanvas-CF-dWeez.mjs → BOffcanvas-BndaBJoP.js} +22 -16
  94. package/dist/BOffcanvas-BndaBJoP.js.map +1 -0
  95. package/dist/{BOverlay-Bh2PIN_q.mjs → BOverlay-CJfy_f6O.js} +6 -6
  96. package/dist/{BOverlay-Bh4ldxgt.js.map → BOverlay-CJfy_f6O.js.map} +1 -1
  97. package/dist/{BPagination-D75q-ZNg.mjs → BPagination-D_Hfk6OF.js} +29 -27
  98. package/dist/{BPagination-fbjFAtxu.js.map → BPagination-D_Hfk6OF.js.map} +1 -1
  99. package/dist/{BPlaceholder-DPQ6mCLN.mjs → BPlaceholder-DvOCnqDh.js} +11 -11
  100. package/dist/{BPlaceholder-B3rs_39w.js.map → BPlaceholder-DvOCnqDh.js.map} +1 -1
  101. package/dist/{BProgress-BZlrPYhA.mjs → BProgress-BNxYppi-.js} +5 -5
  102. package/dist/{BProgress-th0-eZWo.js.map → BProgress-BNxYppi-.js.map} +1 -1
  103. package/dist/{BRow-eGSUYGCW.mjs → BRow-CoBI89xF.js} +4 -4
  104. package/dist/{BRow-7AOuFiSy.js.map → BRow-CoBI89xF.js.map} +1 -1
  105. package/dist/{BSpinner-CUfGqviV.mjs → BSpinner-H1DZOmiM.js} +4 -4
  106. package/dist/{BSpinner-DbYIp-C7.js.map → BSpinner-H1DZOmiM.js.map} +1 -1
  107. package/dist/{BTable-DUHxxWv5.mjs → BTable-BZxX17YU.js} +40 -33
  108. package/dist/BTable-BZxX17YU.js.map +1 -0
  109. package/dist/{BTableSimple-C-jn9Nwh.mjs → BTableSimple-2Z7ssnuG.js} +5 -5
  110. package/dist/{BTableSimple-BkdGAAKb.js.map → BTableSimple-2Z7ssnuG.js.map} +1 -1
  111. package/dist/{BTabs-D_vWlBjT.mjs → BTabs-BVcu9DPg.js} +19 -17
  112. package/dist/{BTabs-CvecFg5N.js.map → BTabs-BVcu9DPg.js.map} +1 -1
  113. package/dist/{BTimeField-BSDaZogC.mjs → BTimeField-CbRGjaI6.js} +24 -19
  114. package/dist/BTimeField-CbRGjaI6.js.map +1 -0
  115. package/dist/{BToast-Y8BayxES.mjs → BToast-Di9HwBOV.js} +21 -14
  116. package/dist/BToast-Di9HwBOV.js.map +1 -0
  117. package/dist/{BTooltip-CVP8HdkU.mjs → BTooltip-BxaUtV4m.js} +5 -5
  118. package/dist/{BTooltip-DPLYtaL1.js.map → BTooltip-BxaUtV4m.js.map} +1 -1
  119. package/dist/{BootstrapVueOptions-Dt1TQdih.mjs → BootstrapVueOptions-DH79gHKG.js} +1 -4
  120. package/dist/BootstrapVueOptions-DH79gHKG.js.map +1 -0
  121. package/dist/{ConditionalTeleport-B4KYZIM6.mjs → ConditionalTeleport-BCKPLEun.js} +1 -1
  122. package/dist/{ConditionalTeleport-BDWcebyD.js.map → ConditionalTeleport-BCKPLEun.js.map} +1 -1
  123. package/dist/{ConditionalWrapper-Dbc_O6qe.mjs → ConditionalWrapper-CCIk52zt.js} +1 -1
  124. package/dist/{ConditionalWrapper-DZH_VSwb.js.map → ConditionalWrapper-CCIk52zt.js.map} +1 -1
  125. package/dist/{DateRangeFieldInput-B86VEz0H.mjs → DateRangeFieldInput-Cbzjg8iF.js} +45 -22
  126. package/dist/DateRangeFieldInput-Cbzjg8iF.js.map +1 -0
  127. package/dist/{PopperContent-DmSgsjSC.mjs → PopperContent-C9eeL6LH.js} +395 -100
  128. package/dist/PopperContent-C9eeL6LH.js.map +1 -0
  129. package/dist/{VisuallyHidden-C4sXnc-k.mjs → VisuallyHidden-BYzyjJiY.js} +23 -15
  130. package/dist/VisuallyHidden-BYzyjJiY.js.map +1 -0
  131. package/dist/{VisuallyHiddenInput-DKIzxsQR.mjs → VisuallyHiddenInput-CUrc8XXa.js} +46 -7
  132. package/dist/VisuallyHiddenInput-CUrc8XXa.js.map +1 -0
  133. package/dist/bootstrap-vue-next.mjs +65 -65
  134. package/dist/{classes-B0E5Y78Y.mjs → classes-BEWWGbj5.js} +1 -1
  135. package/dist/{classes-D5wrmmVs.js.map → classes-BEWWGbj5.js.map} +1 -1
  136. package/dist/components/BAccordion/BAccordion.vue.d.mts +9 -13
  137. package/dist/components/BAccordion/BAccordion.vue.d.ts +9 -13
  138. package/dist/components/BAccordion/BAccordionItem.vue.d.mts +16 -24
  139. package/dist/components/BAccordion/BAccordionItem.vue.d.ts +16 -24
  140. package/dist/components/BAlert/BAlert.vue.d.mts +26 -34
  141. package/dist/components/BAlert/BAlert.vue.d.ts +26 -34
  142. package/dist/components/BApp/BApp.vue.d.mts +8 -12
  143. package/dist/components/BApp/BApp.vue.d.ts +8 -12
  144. package/dist/components/BApp/BOrchestrator.vue.d.mts +2 -1
  145. package/dist/components/BApp/BOrchestrator.vue.d.ts +2 -1
  146. package/dist/components/BAspect/BAspect.vue.d.mts +5 -10
  147. package/dist/components/BAspect/BAspect.vue.d.ts +5 -10
  148. package/dist/components/BAutocomplete/BAutocomplete.vue.d.mts +12 -270
  149. package/dist/components/BAutocomplete/BAutocomplete.vue.d.ts +12 -270
  150. package/dist/components/BAvatar/BAvatar.vue.d.mts +20 -25
  151. package/dist/components/BAvatar/BAvatar.vue.d.ts +20 -25
  152. package/dist/components/BAvatar/BAvatarGroup.vue.d.mts +8 -13
  153. package/dist/components/BAvatar/BAvatarGroup.vue.d.ts +8 -13
  154. package/dist/components/BBadge/BBadge.vue.d.mts +13 -18
  155. package/dist/components/BBadge/BBadge.vue.d.ts +13 -18
  156. package/dist/components/BBreadcrumb/BBreadcrumb.vue.d.mts +6 -11
  157. package/dist/components/BBreadcrumb/BBreadcrumb.vue.d.ts +6 -11
  158. package/dist/components/BBreadcrumb/BBreadcrumbItem.vue.d.mts +13 -18
  159. package/dist/components/BBreadcrumb/BBreadcrumbItem.vue.d.ts +13 -18
  160. package/dist/components/BButton/BButton.vue.d.mts +17 -25
  161. package/dist/components/BButton/BButton.vue.d.ts +17 -25
  162. package/dist/components/BButton/BButtonGroup.vue.d.mts +5 -10
  163. package/dist/components/BButton/BButtonGroup.vue.d.ts +5 -10
  164. package/dist/components/BButton/BButtonToolbar.vue.d.mts +7 -16
  165. package/dist/components/BButton/BButtonToolbar.vue.d.ts +7 -16
  166. package/dist/components/BButton/BCloseButton.vue.d.mts +4 -3
  167. package/dist/components/BButton/BCloseButton.vue.d.ts +4 -3
  168. package/dist/components/BCard/BCard.vue.d.mts +21 -26
  169. package/dist/components/BCard/BCard.vue.d.ts +21 -26
  170. package/dist/components/BCard/BCardBody.vue.d.mts +9 -14
  171. package/dist/components/BCard/BCardBody.vue.d.ts +9 -14
  172. package/dist/components/BCard/BCardFooter.vue.d.mts +7 -11
  173. package/dist/components/BCard/BCardFooter.vue.d.ts +7 -11
  174. package/dist/components/BCard/BCardGroup.vue.d.mts +5 -10
  175. package/dist/components/BCard/BCardGroup.vue.d.ts +5 -10
  176. package/dist/components/BCard/BCardHeader.vue.d.mts +7 -12
  177. package/dist/components/BCard/BCardHeader.vue.d.ts +7 -12
  178. package/dist/components/BCard/BCardImg.vue.d.mts +7 -6
  179. package/dist/components/BCard/BCardImg.vue.d.ts +7 -6
  180. package/dist/components/BCard/BCardSubtitle.vue.d.mts +6 -11
  181. package/dist/components/BCard/BCardSubtitle.vue.d.ts +6 -11
  182. package/dist/components/BCard/BCardText.vue.d.mts +5 -10
  183. package/dist/components/BCard/BCardText.vue.d.ts +5 -10
  184. package/dist/components/BCard/BCardTitle.vue.d.mts +5 -10
  185. package/dist/components/BCard/BCardTitle.vue.d.ts +5 -10
  186. package/dist/components/BCardHeadFoot.vue.d.mts +6 -11
  187. package/dist/components/BCardHeadFoot.vue.d.ts +6 -11
  188. package/dist/components/BCarousel/BCarousel.vue.d.mts +12 -24
  189. package/dist/components/BCarousel/BCarousel.vue.d.ts +12 -24
  190. package/dist/components/BCarousel/BCarouselSlide.vue.d.mts +7 -12
  191. package/dist/components/BCarousel/BCarouselSlide.vue.d.ts +7 -12
  192. package/dist/components/BCollapse/BCollapse.vue.d.mts +13 -21
  193. package/dist/components/BCollapse/BCollapse.vue.d.ts +13 -21
  194. package/dist/components/BContainer/BCol.vue.d.mts +8 -13
  195. package/dist/components/BContainer/BCol.vue.d.ts +8 -13
  196. package/dist/components/BContainer/BContainer.vue.d.mts +5 -10
  197. package/dist/components/BContainer/BContainer.vue.d.ts +5 -10
  198. package/dist/components/BContainer/BRow.vue.d.mts +6 -11
  199. package/dist/components/BContainer/BRow.vue.d.ts +6 -11
  200. package/dist/components/BDateField/BDateField.vue.d.mts +8 -12
  201. package/dist/components/BDateField/BDateField.vue.d.ts +8 -12
  202. package/dist/components/BDateField/BDateRangeField.vue.d.mts +8 -12
  203. package/dist/components/BDateField/BDateRangeField.vue.d.ts +8 -12
  204. package/dist/components/BDateField/BTimeRangeField.vue.d.mts +9 -13
  205. package/dist/components/BDateField/BTimeRangeField.vue.d.ts +9 -13
  206. package/dist/components/BDatePicker/BDatePicker.vue.d.mts +9 -13
  207. package/dist/components/BDatePicker/BDatePicker.vue.d.ts +9 -13
  208. package/dist/components/BDatePicker/BDateRangePicker.vue.d.mts +9 -13
  209. package/dist/components/BDatePicker/BDateRangePicker.vue.d.ts +9 -13
  210. package/dist/components/BDropdown/BDropdown.vue.d.mts +24 -957
  211. package/dist/components/BDropdown/BDropdown.vue.d.ts +24 -957
  212. package/dist/components/BDropdown/BDropdownDivider.vue.d.mts +3 -2
  213. package/dist/components/BDropdown/BDropdownDivider.vue.d.ts +3 -2
  214. package/dist/components/BDropdown/BDropdownForm.vue.d.mts +6 -11
  215. package/dist/components/BDropdown/BDropdownForm.vue.d.ts +6 -11
  216. package/dist/components/BDropdown/BDropdownGroup.vue.d.mts +5 -10
  217. package/dist/components/BDropdown/BDropdownGroup.vue.d.ts +5 -10
  218. package/dist/components/BDropdown/BDropdownHeader.vue.d.mts +7 -12
  219. package/dist/components/BDropdown/BDropdownHeader.vue.d.ts +7 -12
  220. package/dist/components/BDropdown/BDropdownItem.vue.d.mts +12 -17
  221. package/dist/components/BDropdown/BDropdownItem.vue.d.ts +12 -17
  222. package/dist/components/BDropdown/BDropdownItemButton.vue.d.mts +6 -11
  223. package/dist/components/BDropdown/BDropdownItemButton.vue.d.ts +6 -11
  224. package/dist/components/BDropdown/BDropdownText.vue.d.mts +6 -11
  225. package/dist/components/BDropdown/BDropdownText.vue.d.ts +6 -11
  226. package/dist/components/BForm/BForm.vue.d.mts +8 -17
  227. package/dist/components/BForm/BForm.vue.d.ts +8 -17
  228. package/dist/components/BForm/BFormDatalist.vue.d.mts +12 -7
  229. package/dist/components/BForm/BFormDatalist.vue.d.ts +12 -7
  230. package/dist/components/BForm/BFormDatalistBase.vue.d.mts +20 -22
  231. package/dist/components/BForm/BFormDatalistBase.vue.d.ts +20 -22
  232. package/dist/components/BForm/BFormFloatingLabel.vue.d.mts +6 -11
  233. package/dist/components/BForm/BFormFloatingLabel.vue.d.ts +6 -11
  234. package/dist/components/BForm/BFormInvalidFeedback.vue.d.mts +6 -11
  235. package/dist/components/BForm/BFormInvalidFeedback.vue.d.ts +6 -11
  236. package/dist/components/BForm/BFormRow.vue.d.mts +5 -10
  237. package/dist/components/BForm/BFormRow.vue.d.ts +5 -10
  238. package/dist/components/BForm/BFormText.vue.d.mts +6 -11
  239. package/dist/components/BForm/BFormText.vue.d.ts +6 -11
  240. package/dist/components/BForm/BFormValidFeedback.vue.d.mts +6 -11
  241. package/dist/components/BForm/BFormValidFeedback.vue.d.ts +6 -11
  242. package/dist/components/BFormCheckbox/BFormCheckbox.vue.d.mts +14 -22
  243. package/dist/components/BFormCheckbox/BFormCheckbox.vue.d.ts +14 -22
  244. package/dist/components/BFormCheckbox/BFormCheckboxGroup.vue.d.mts +16 -11
  245. package/dist/components/BFormCheckbox/BFormCheckboxGroup.vue.d.ts +16 -11
  246. package/dist/components/BFormCheckbox/BFormCheckboxGroupBase.vue.d.mts +22 -27
  247. package/dist/components/BFormCheckbox/BFormCheckboxGroupBase.vue.d.ts +22 -27
  248. package/dist/components/BFormFile/BFormFile.vue.d.mts +9 -25
  249. package/dist/components/BFormFile/BFormFile.vue.d.ts +9 -25
  250. package/dist/components/BFormGroup/BFormGroup.vue.d.mts +14 -23
  251. package/dist/components/BFormGroup/BFormGroup.vue.d.ts +14 -23
  252. package/dist/components/BFormGroupContent.vue.d.mts +8 -17
  253. package/dist/components/BFormGroupContent.vue.d.ts +8 -17
  254. package/dist/components/BFormGroupLabel.vue.d.mts +6 -13
  255. package/dist/components/BFormGroupLabel.vue.d.ts +6 -13
  256. package/dist/components/BFormInput/BFormInput.vue.d.mts +10 -10
  257. package/dist/components/BFormInput/BFormInput.vue.d.ts +10 -10
  258. package/dist/components/BFormOtp/BFormOtp.vue.d.mts +7 -5
  259. package/dist/components/BFormOtp/BFormOtp.vue.d.ts +7 -5
  260. package/dist/components/BFormRadio/BFormRadio.vue.d.mts +13 -21
  261. package/dist/components/BFormRadio/BFormRadio.vue.d.ts +13 -21
  262. package/dist/components/BFormRadio/BFormRadioGroup.vue.d.mts +21 -14
  263. package/dist/components/BFormRadio/BFormRadioGroup.vue.d.ts +21 -14
  264. package/dist/components/BFormRadio/BFormRadioGroupBase.vue.d.mts +14 -22
  265. package/dist/components/BFormRadio/BFormRadioGroupBase.vue.d.ts +14 -22
  266. package/dist/components/BFormRating/BFormRating.vue.d.mts +10 -12
  267. package/dist/components/BFormRating/BFormRating.vue.d.ts +10 -12
  268. package/dist/components/BFormSelect/BFormSelect.vue.d.mts +16 -11
  269. package/dist/components/BFormSelect/BFormSelect.vue.d.ts +16 -11
  270. package/dist/components/BFormSelect/BFormSelectBase.vue.d.mts +24 -29
  271. package/dist/components/BFormSelect/BFormSelectBase.vue.d.ts +24 -29
  272. package/dist/components/BFormSelect/BFormSelectOption.vue.d.mts +12 -7
  273. package/dist/components/BFormSelect/BFormSelectOption.vue.d.ts +12 -7
  274. package/dist/components/BFormSelect/BFormSelectOptionGroup.vue.d.mts +12 -7
  275. package/dist/components/BFormSelect/BFormSelectOptionGroup.vue.d.ts +12 -7
  276. package/dist/components/BFormSpinbutton/BFormSpinbutton.vue.d.mts +11 -12
  277. package/dist/components/BFormSpinbutton/BFormSpinbutton.vue.d.ts +11 -12
  278. package/dist/components/BFormTags/BFormTag.vue.d.mts +7 -12
  279. package/dist/components/BFormTags/BFormTag.vue.d.ts +7 -12
  280. package/dist/components/BFormTags/BFormTags.vue.d.mts +12 -20
  281. package/dist/components/BFormTags/BFormTags.vue.d.ts +12 -20
  282. package/dist/components/BFormTextarea/BFormTextarea.vue.d.mts +12 -12
  283. package/dist/components/BFormTextarea/BFormTextarea.vue.d.ts +12 -12
  284. package/dist/components/BImg/BImg.vue.d.mts +7 -6
  285. package/dist/components/BImg/BImg.vue.d.ts +7 -6
  286. package/dist/components/BInputGroup/BInputGroup.vue.d.mts +5 -10
  287. package/dist/components/BInputGroup/BInputGroup.vue.d.ts +5 -10
  288. package/dist/components/BInputGroup/BInputGroupText.vue.d.mts +5 -10
  289. package/dist/components/BInputGroup/BInputGroupText.vue.d.ts +5 -10
  290. package/dist/components/BLink/BLink.vue.d.mts +12 -17
  291. package/dist/components/BLink/BLink.vue.d.ts +12 -17
  292. package/dist/components/BListGroup/BListGroup.vue.d.mts +5 -10
  293. package/dist/components/BListGroup/BListGroup.vue.d.ts +5 -10
  294. package/dist/components/BListGroup/BListGroupItem.vue.d.mts +13 -18
  295. package/dist/components/BListGroup/BListGroupItem.vue.d.ts +13 -18
  296. package/dist/components/BModal/BModal.vue.d.mts +47 -1026
  297. package/dist/components/BModal/BModal.vue.d.ts +47 -1026
  298. package/dist/components/BNav/BNav.vue.d.mts +7 -12
  299. package/dist/components/BNav/BNav.vue.d.ts +7 -12
  300. package/dist/components/BNav/BNavForm.vue.d.mts +8 -13
  301. package/dist/components/BNav/BNavForm.vue.d.ts +8 -13
  302. package/dist/components/BNav/BNavItem.vue.d.mts +12 -17
  303. package/dist/components/BNav/BNavItem.vue.d.ts +12 -17
  304. package/dist/components/BNav/BNavItemDropdown.vue.d.mts +20 -1660
  305. package/dist/components/BNav/BNavItemDropdown.vue.d.ts +20 -1660
  306. package/dist/components/BNav/BNavText.vue.d.mts +6 -11
  307. package/dist/components/BNav/BNavText.vue.d.ts +6 -11
  308. package/dist/components/BNavbar/BNavbar.vue.d.mts +6 -11
  309. package/dist/components/BNavbar/BNavbar.vue.d.ts +6 -11
  310. package/dist/components/BNavbar/BNavbarBrand.vue.d.mts +11 -16
  311. package/dist/components/BNavbar/BNavbarBrand.vue.d.ts +11 -16
  312. package/dist/components/BNavbar/BNavbarNav.vue.d.mts +7 -12
  313. package/dist/components/BNavbar/BNavbarNav.vue.d.ts +7 -12
  314. package/dist/components/BNavbar/BNavbarToggle.vue.d.mts +7 -12
  315. package/dist/components/BNavbar/BNavbarToggle.vue.d.ts +7 -12
  316. package/dist/components/BOffcanvas/BOffcanvas.vue.d.mts +28 -82
  317. package/dist/components/BOffcanvas/BOffcanvas.vue.d.ts +28 -82
  318. package/dist/components/BOverlay/BOverlay.vue.d.mts +17 -22
  319. package/dist/components/BOverlay/BOverlay.vue.d.ts +17 -22
  320. package/dist/components/BPagination/BPagination.vue.d.mts +9 -10
  321. package/dist/components/BPagination/BPagination.vue.d.ts +9 -10
  322. package/dist/components/BPlaceholder/BPlaceholder.vue.d.mts +3 -2
  323. package/dist/components/BPlaceholder/BPlaceholder.vue.d.ts +3 -2
  324. package/dist/components/BPlaceholder/BPlaceholderButton.vue.d.mts +3 -2
  325. package/dist/components/BPlaceholder/BPlaceholderButton.vue.d.ts +3 -2
  326. package/dist/components/BPlaceholder/BPlaceholderCard.vue.d.mts +8 -13
  327. package/dist/components/BPlaceholder/BPlaceholderCard.vue.d.ts +8 -13
  328. package/dist/components/BPlaceholder/BPlaceholderTable.vue.d.mts +8 -13
  329. package/dist/components/BPlaceholder/BPlaceholderTable.vue.d.ts +8 -13
  330. package/dist/components/BPlaceholder/BPlaceholderWrapper.vue.d.mts +5 -10
  331. package/dist/components/BPlaceholder/BPlaceholderWrapper.vue.d.ts +5 -10
  332. package/dist/components/BPopover/BPopover.vue.d.mts +35 -49
  333. package/dist/components/BPopover/BPopover.vue.d.ts +35 -49
  334. package/dist/components/BProgress/BProgress.vue.d.mts +10 -15
  335. package/dist/components/BProgress/BProgress.vue.d.ts +10 -15
  336. package/dist/components/BProgress/BProgressBar.vue.d.mts +9 -14
  337. package/dist/components/BProgress/BProgressBar.vue.d.ts +9 -14
  338. package/dist/components/BSpinner/BSpinner.vue.d.mts +7 -12
  339. package/dist/components/BSpinner/BSpinner.vue.d.ts +7 -12
  340. package/dist/components/BTable/BTable.vue.d.mts +35 -30
  341. package/dist/components/BTable/BTable.vue.d.ts +35 -30
  342. package/dist/components/BTable/BTableLite.vue.d.mts +24 -19
  343. package/dist/components/BTable/BTableLite.vue.d.ts +24 -19
  344. package/dist/components/BTable/BTableSimple.vue.d.mts +9 -14
  345. package/dist/components/BTable/BTableSimple.vue.d.ts +9 -14
  346. package/dist/components/BTable/BTbody.vue.d.mts +6 -11
  347. package/dist/components/BTable/BTbody.vue.d.ts +6 -11
  348. package/dist/components/BTable/BTd.vue.d.mts +6 -11
  349. package/dist/components/BTable/BTd.vue.d.ts +6 -11
  350. package/dist/components/BTable/BTfoot.vue.d.mts +6 -11
  351. package/dist/components/BTable/BTfoot.vue.d.ts +6 -11
  352. package/dist/components/BTable/BTh.vue.d.mts +6 -11
  353. package/dist/components/BTable/BTh.vue.d.ts +6 -11
  354. package/dist/components/BTable/BThead.vue.d.mts +6 -11
  355. package/dist/components/BTable/BThead.vue.d.ts +6 -11
  356. package/dist/components/BTable/BTr.vue.d.mts +6 -11
  357. package/dist/components/BTable/BTr.vue.d.ts +6 -11
  358. package/dist/components/BTabs/BTab.vue.d.mts +10 -18
  359. package/dist/components/BTabs/BTab.vue.d.ts +10 -18
  360. package/dist/components/BTabs/BTabs.vue.d.mts +10 -14
  361. package/dist/components/BTabs/BTabs.vue.d.ts +10 -14
  362. package/dist/components/BTabsTabContent.vue.d.mts +7 -15
  363. package/dist/components/BTabsTabContent.vue.d.ts +7 -15
  364. package/dist/components/BTimeField/BTimeField.vue.d.mts +8 -12
  365. package/dist/components/BTimeField/BTimeField.vue.d.ts +8 -12
  366. package/dist/components/BToast/BToast.vue.d.mts +25 -33
  367. package/dist/components/BToast/BToast.vue.d.ts +25 -33
  368. package/dist/components/BTooltip/BTooltip.vue.d.mts +32 -732
  369. package/dist/components/BTooltip/BTooltip.vue.d.ts +32 -732
  370. package/dist/components/ConditionalTeleport.vue.d.mts +3 -2
  371. package/dist/components/ConditionalTeleport.vue.d.ts +3 -2
  372. package/dist/components/ConditionalWrapper.vue.d.mts +3 -2
  373. package/dist/components/ConditionalWrapper.vue.d.ts +3 -2
  374. package/dist/composables/index.d.mts +3 -3
  375. package/dist/composables/index.d.ts +3 -3
  376. package/dist/composables/orchestratorShared/index.d.mts +25 -14
  377. package/dist/composables/orchestratorShared/index.d.ts +25 -14
  378. package/dist/composables/useBLinkHelper.d.mts +1 -1
  379. package/dist/composables/useBLinkHelper.d.ts +1 -1
  380. package/dist/composables/useModal/index.d.mts +8 -33
  381. package/dist/composables/useModal/index.d.ts +8 -33
  382. package/dist/composables/usePopover/index.d.mts +332 -4532
  383. package/dist/composables/usePopover/index.d.ts +332 -4532
  384. package/dist/composables/useShowHide.d.mts +21 -15
  385. package/dist/composables/useShowHide.d.ts +21 -15
  386. package/dist/composables/useToast/index.d.mts +7 -18
  387. package/dist/composables/useToast/index.d.ts +7 -18
  388. package/dist/console-DaUCJgpk.js +15 -0
  389. package/dist/console-DaUCJgpk.js.map +1 -0
  390. package/dist/{constants-Ba9iJn2H.mjs → constants-Cap5sNf8.js} +1 -1
  391. package/dist/{constants-BLIvvaat.js.map → constants-Cap5sNf8.js.map} +1 -1
  392. package/dist/{debounce-DHxNfjan.mjs → debounce-Xj7wsAmR.js} +2 -2
  393. package/dist/{debounce-D6kifS6w.js.map → debounce-Xj7wsAmR.js.map} +1 -1
  394. package/dist/{dist-Dk9C_HFS.mjs → dist-9-XTMhb-.js} +5 -539
  395. package/dist/dist-9-XTMhb-.js.map +1 -0
  396. package/dist/dist-B-regXAP.js +123 -0
  397. package/dist/dist-B-regXAP.js.map +1 -0
  398. package/dist/dist-DKc2ivHS.js +411 -0
  399. package/dist/dist-DKc2ivHS.js.map +1 -0
  400. package/dist/{dom-AhkaSoh8.mjs → dom-BdUQrX99.js} +3 -2
  401. package/dist/dom-BdUQrX99.js.map +1 -0
  402. package/dist/{flattenFragments-ClbLQGqR.mjs → flattenFragments-B15oMVs-.js} +1 -1
  403. package/dist/{flattenFragments-C1WWqm25.js.map → flattenFragments-B15oMVs-.js.map} +1 -1
  404. package/dist/{floating-ui.vue-CH2o_mZU.mjs → floating-ui.dom-C7UZexJK.js} +114 -338
  405. package/dist/floating-ui.dom-C7UZexJK.js.map +1 -0
  406. package/dist/{floatingUi-62aeQtAb.mjs → floatingUi-BlKoACvc.js} +194 -27
  407. package/dist/floatingUi-BlKoACvc.js.map +1 -0
  408. package/dist/{functions-BcMenQqL.mjs → functions-BUZ1y9RA.js} +1 -1
  409. package/dist/functions-BUZ1y9RA.js.map +1 -0
  410. package/dist/{getClasses-COokMI60.mjs → getClasses-BlbbSJNl.js} +1 -1
  411. package/dist/{getClasses-8P0iBind.js.map → getClasses-BlbbSJNl.js.map} +1 -1
  412. package/dist/{getElement-D2Jr1cbp.mjs → getElement-uvhh1lgL.js} +2 -2
  413. package/dist/{getElement-DWGFJn0w.js.map → getElement-uvhh1lgL.js.map} +1 -1
  414. package/dist/{keys-DU7sQgl3.mjs → keys-BgLwJbLV.js} +1 -1
  415. package/dist/keys-BgLwJbLV.js.map +1 -0
  416. package/dist/{object-CHQkkner.mjs → object-C7YmCGEm.js} +10 -6
  417. package/dist/object-C7YmCGEm.js.map +1 -0
  418. package/dist/{registryAccess-BkJDdh-3.mjs → registryAccess-YFj5ZD5T.js} +1 -1
  419. package/dist/{registryAccess-B9QDQwV8.js.map → registryAccess-YFj5ZD5T.js.map} +1 -1
  420. package/dist/src/components/BAccordion/index.mjs +1 -1
  421. package/dist/src/components/BAlert/index.mjs +1 -1
  422. package/dist/src/components/BApp/index.mjs +1 -1
  423. package/dist/src/components/BAspect/index.mjs +1 -1
  424. package/dist/src/components/BAutocomplete/index.mjs +1 -1
  425. package/dist/src/components/BAvatar/index.mjs +1 -1
  426. package/dist/src/components/BBadge/index.mjs +1 -1
  427. package/dist/src/components/BBreadcrumb/index.mjs +1 -1
  428. package/dist/src/components/BButton/index.mjs +3 -3
  429. package/dist/src/components/BCard/index.mjs +2 -2
  430. package/dist/src/components/BCarousel/index.mjs +1 -1
  431. package/dist/src/components/BCol/index.mjs +1 -1
  432. package/dist/src/components/BCollapse/index.mjs +1 -1
  433. package/dist/src/components/BContainer/index.mjs +3 -3
  434. package/dist/src/components/BDateField/index.mjs +1 -1
  435. package/dist/src/components/BDatePicker/index.mjs +1 -1
  436. package/dist/src/components/BDropdown/index.mjs +2 -2
  437. package/dist/src/components/BForm/index.mjs +3 -3
  438. package/dist/src/components/BFormCheckbox/index.mjs +1 -1
  439. package/dist/src/components/BFormFile/index.mjs +1 -1
  440. package/dist/src/components/BFormGroup/index.mjs +1 -1
  441. package/dist/src/components/BFormInput/index.mjs +1 -1
  442. package/dist/src/components/BFormOtp/index.mjs +1 -1
  443. package/dist/src/components/BFormRadio/index.mjs +1 -1
  444. package/dist/src/components/BFormRating/index.mjs +1 -1
  445. package/dist/src/components/BFormSelect/index.mjs +2 -2
  446. package/dist/src/components/BFormSpinbutton/index.mjs +1 -1
  447. package/dist/src/components/BFormTags/index.mjs +2 -2
  448. package/dist/src/components/BFormTextarea/index.mjs +1 -1
  449. package/dist/src/components/BImg/index.mjs +1 -1
  450. package/dist/src/components/BInputGroup/index.mjs +2 -2
  451. package/dist/src/components/BLink/index.mjs +1 -1
  452. package/dist/src/components/BListGroup/index.mjs +1 -1
  453. package/dist/src/components/BModal/index.mjs +1 -1
  454. package/dist/src/components/BNav/index.mjs +1 -1
  455. package/dist/src/components/BNavbar/index.mjs +1 -1
  456. package/dist/src/components/BOffcanvas/index.mjs +1 -1
  457. package/dist/src/components/BOverlay/index.mjs +1 -1
  458. package/dist/src/components/BPagination/index.mjs +1 -1
  459. package/dist/src/components/BPlaceholder/index.mjs +1 -1
  460. package/dist/src/components/BPopover/index.mjs +1 -1
  461. package/dist/src/components/BProgress/index.mjs +1 -1
  462. package/dist/src/components/BRow/index.mjs +1 -1
  463. package/dist/src/components/BSpinner/index.mjs +1 -1
  464. package/dist/src/components/BTable/index.mjs +2 -2
  465. package/dist/src/components/BTabs/index.mjs +1 -1
  466. package/dist/src/components/BTimeField/index.mjs +1 -1
  467. package/dist/src/components/BToast/index.mjs +1 -1
  468. package/dist/src/components/BTooltip/index.mjs +1 -1
  469. package/dist/src/components/index.mjs +60 -68
  470. package/dist/src/composables/index.mjs +5 -8
  471. package/dist/src/composables/index.mjs.map +1 -1
  472. package/dist/src/composables/orchestratorShared/index.mjs +79 -82
  473. package/dist/src/composables/orchestratorShared/index.mjs.map +1 -1
  474. package/dist/src/composables/useBreadcrumb/index.mjs +1 -1
  475. package/dist/src/composables/useBreadcrumb/index.mjs.map +1 -1
  476. package/dist/src/composables/useColorMode/index.mjs +2 -2
  477. package/dist/src/composables/useColorMode/index.mjs.map +1 -1
  478. package/dist/src/composables/useModal/index.mjs +65 -64
  479. package/dist/src/composables/useModal/index.mjs.map +1 -1
  480. package/dist/src/composables/usePopover/index.mjs +51 -68
  481. package/dist/src/composables/usePopover/index.mjs.map +1 -1
  482. package/dist/src/composables/useProvideDefaults/index.mjs +4 -3
  483. package/dist/src/composables/useProvideDefaults/index.mjs.map +1 -1
  484. package/dist/src/composables/useRegistry/index.mjs +5 -3
  485. package/dist/src/composables/useRegistry/index.mjs.map +1 -1
  486. package/dist/src/composables/useScrollLock/index.mjs +2 -1
  487. package/dist/src/composables/useScrollLock/index.mjs.map +1 -1
  488. package/dist/src/composables/useScrollspy/index.mjs +16 -13
  489. package/dist/src/composables/useScrollspy/index.mjs.map +1 -1
  490. package/dist/src/composables/useToast/index.mjs +45 -66
  491. package/dist/src/composables/useToast/index.mjs.map +1 -1
  492. package/dist/src/composables/useToggle/index.mjs +5 -3
  493. package/dist/src/composables/useToggle/index.mjs.map +1 -1
  494. package/dist/src/directives/BColorMode/index.mjs.map +1 -1
  495. package/dist/src/directives/BPopover/index.mjs +2 -2
  496. package/dist/src/directives/BPopover/index.mjs.map +1 -1
  497. package/dist/src/directives/BScrollspy/index.mjs +3 -3
  498. package/dist/src/directives/BScrollspy/index.mjs.map +1 -1
  499. package/dist/src/directives/BToggle/index.mjs +8 -6
  500. package/dist/src/directives/BToggle/index.mjs.map +1 -1
  501. package/dist/src/directives/BTooltip/index.mjs +2 -2
  502. package/dist/src/directives/BTooltip/index.mjs.map +1 -1
  503. package/dist/src/directives/index.mjs +1 -2
  504. package/dist/src/plugins/createBootstrap/index.mjs +1 -1
  505. package/dist/src/plugins/createBootstrap/index.mjs.map +1 -1
  506. package/dist/src/plugins/index.mjs +1 -1
  507. package/dist/src/plugins/orchestrator/index.mjs +1 -1
  508. package/dist/src/plugins/orchestrator/index.mjs.map +1 -1
  509. package/dist/src/plugins/registry/index.mjs +1 -1
  510. package/dist/src/plugins/registry/index.mjs.map +1 -1
  511. package/dist/src/plugins/rtl/index.mjs +1 -1
  512. package/dist/src/plugins/rtl/index.mjs.map +1 -1
  513. package/dist/src/resolvers/index.mjs +2 -2
  514. package/dist/src/resolvers/index.mjs.map +1 -1
  515. package/dist/src/types/index.mjs +2 -2
  516. package/dist/src/utils/index.mjs +2 -2
  517. package/dist/{stringUtils-D4eEDlt1.mjs → stringUtils-CVySsg3y.js} +2 -2
  518. package/dist/{stringUtils-68ZN_GRt.js.map → stringUtils-CVySsg3y.js.map} +1 -1
  519. package/dist/types/BootstrapVueOptions.d.mts +1 -4
  520. package/dist/types/BootstrapVueOptions.d.ts +1 -4
  521. package/dist/types/ComponentOrchestratorTypes.d.mts +62 -186
  522. package/dist/types/ComponentOrchestratorTypes.d.ts +62 -186
  523. package/dist/types/ComponentProps.d.mts +2 -0
  524. package/dist/types/ComponentProps.d.ts +2 -0
  525. package/dist/types/ComponentSlots.d.mts +1 -1
  526. package/dist/types/ComponentSlots.d.ts +1 -1
  527. package/dist/{useAlignment-DuR8ymKI.mjs → useAlignment-DaP-psIh.js} +1 -1
  528. package/dist/{useAlignment-oKolnDpb.js.map → useAlignment-DaP-psIh.js.map} +1 -1
  529. package/dist/{useAriaInvalid-apOwgexm.mjs → useAriaInvalid-CRUhkD2V.js} +1 -1
  530. package/dist/{useAriaInvalid-CHHPHNLU.js.map → useAriaInvalid-CRUhkD2V.js.map} +1 -1
  531. package/dist/{useColorVariantClasses-CqeXHjRh.mjs → useColorVariantClasses-DHQvLjek.js} +1 -1
  532. package/dist/{useColorVariantClasses-Dq0sOYDL.js.map → useColorVariantClasses-DHQvLjek.js.map} +1 -1
  533. package/dist/{useCountdownHover-C3NXiAaF.mjs → useCountdownHover-BN8vJIQW.js} +4 -3
  534. package/dist/{useCountdownHover-DbVhE-N0.js.map → useCountdownHover-BN8vJIQW.js.map} +1 -1
  535. package/dist/{useDateField-CJKgollJ.mjs → useDateField-CQZb799C.js} +680 -627
  536. package/dist/useDateField-CQZb799C.js.map +1 -0
  537. package/dist/{useDefaults-DseelK6y.mjs → useDefaults-BzP4qZBu.js} +2 -2
  538. package/dist/{useDefaults-C0CYry78.js.map → useDefaults-BzP4qZBu.js.map} +1 -1
  539. package/dist/{useFormCheck-BKXrwS3g.mjs → useFormCheck-fArncQY5.js} +3 -3
  540. package/dist/{useFormCheck-DYjLG4WA.js.map → useFormCheck-fArncQY5.js.map} +1 -1
  541. package/dist/{useFormInput-CXl8rpD0.mjs → useFormInput-DZ_3ZH1o.js} +8 -7
  542. package/dist/{useFormInput-ip9hN2AU.js.map → useFormInput-DZ_3ZH1o.js.map} +1 -1
  543. package/dist/{useFormSelect-BM0rsjni.mjs → useFormSelect-CwS8YuiQ.js} +3 -3
  544. package/dist/{useFormSelect-ClmzGzOy.js.map → useFormSelect-CwS8YuiQ.js.map} +1 -1
  545. package/dist/{useForwardExpose-Cob6LlGd.mjs → useForwardExpose-DDvk7mir.js} +5 -13
  546. package/dist/useForwardExpose-DDvk7mir.js.map +1 -0
  547. package/dist/{useId-D1sqXtwx.mjs → useId-Fh-Arhb7.js} +2 -2
  548. package/dist/{useId-BkAY2oh6.js.map → useId-Fh-Arhb7.js.map} +1 -1
  549. package/dist/{useKbd-DfmgFov6.mjs → useKbd-DRsaFU_f.js} +6 -18
  550. package/dist/useKbd-DRsaFU_f.js.map +1 -0
  551. package/dist/{useNumberishToStyle-DgS1slD3.mjs → useNumberishToStyle-DCnYcI6A.js} +2 -2
  552. package/dist/{useNumberishToStyle-BtMa0R27.js.map → useNumberishToStyle-DCnYcI6A.js.map} +1 -1
  553. package/dist/{useRadiusElementClasses-BW832F7F.mjs → useRadiusElementClasses-CKCJjpkK.js} +1 -1
  554. package/dist/{useRadiusElementClasses-DWiUVgex.js.map → useRadiusElementClasses-CKCJjpkK.js.map} +1 -1
  555. package/dist/{useRtl-CGoXBxNo.mjs → useRtl-FeLayV4k.js} +3 -3
  556. package/dist/{useRtl-BSgvbs5F.js.map → useRtl-FeLayV4k.js.map} +1 -1
  557. package/dist/{useSafeScrollLock-Me5LyqjD.mjs → useSafeScrollLock-PVgSASYu.js} +136 -216
  558. package/dist/useSafeScrollLock-PVgSASYu.js.map +1 -0
  559. package/dist/{useShowHide-CBFt1_EW.mjs → useShowHide-C95Y9EKL.js} +15 -14
  560. package/dist/useShowHide-C95Y9EKL.js.map +1 -0
  561. package/dist/{useStateClass-DxlL_m2E.mjs → useStateClass-BF7kf2zK.js} +1 -1
  562. package/dist/{useStateClass-CXK3nCg9.js.map → useStateClass-BF7kf2zK.js.map} +1 -1
  563. package/dist/utils/console.d.mts +2 -0
  564. package/dist/utils/console.d.ts +2 -0
  565. package/dist/utils/keys.d.mts +12 -4
  566. package/dist/utils/keys.d.ts +12 -4
  567. package/dist/{utils-CWvndqPg.mjs → utils-nRGGHA_i.js} +14 -10
  568. package/dist/utils-nRGGHA_i.js.map +1 -0
  569. package/package.json +65 -136
  570. package/dist/BAccordion-D51b9HVD.mjs.map +0 -1
  571. package/dist/BAccordion-DYmuqZIG.js +0 -360
  572. package/dist/BAccordion-DYmuqZIG.js.map +0 -1
  573. package/dist/BAlert-Ce2uxrJi.mjs.map +0 -1
  574. package/dist/BAlert-croEtrQu.js +0 -297
  575. package/dist/BAlert-croEtrQu.js.map +0 -1
  576. package/dist/BApp-B-fUrnpK.mjs.map +0 -1
  577. package/dist/BApp-DOvEe1jo.js +0 -181
  578. package/dist/BApp-DOvEe1jo.js.map +0 -1
  579. package/dist/BAspect-CUIU48Ck.js +0 -50
  580. package/dist/BAspect-wfiXM4KA.mjs.map +0 -1
  581. package/dist/BAutocomplete-CH-bQzME.mjs.map +0 -1
  582. package/dist/BAutocomplete-DLDFAV5_.js +0 -2402
  583. package/dist/BAutocomplete-DLDFAV5_.js.map +0 -1
  584. package/dist/BAvatar-FGK0dK0x.js +0 -386
  585. package/dist/BAvatar-FGK0dK0x.js.map +0 -1
  586. package/dist/BAvatar-iALHbqVk.mjs.map +0 -1
  587. package/dist/BBadge-Cx_CdauK.mjs.map +0 -1
  588. package/dist/BBadge-Db6SEnzy.js +0 -145
  589. package/dist/BBreadcrumb-B9ra7vg2.js +0 -166
  590. package/dist/BBreadcrumb-BxADbg0O.mjs.map +0 -1
  591. package/dist/BButton-BSa7LfL5.mjs.map +0 -1
  592. package/dist/BButton-DRRlzkyK.js +0 -156
  593. package/dist/BButton-PY7AANXJ.mjs.map +0 -1
  594. package/dist/BButton-aYtMnyHu.js +0 -190
  595. package/dist/BCard-BWoruisp.mjs.map +0 -1
  596. package/dist/BCard-Bh8RLMo_.js +0 -52
  597. package/dist/BCard-CHbKv2OR.mjs.map +0 -1
  598. package/dist/BCard-DwNYhVmg.js +0 -444
  599. package/dist/BCarousel-2JB21Pcu.js +0 -427
  600. package/dist/BCarousel-B6_bgQpl.mjs.map +0 -1
  601. package/dist/BCloseButton-CKTKr4PS.mjs.map +0 -1
  602. package/dist/BCloseButton-D42zHRLP.js +0 -45
  603. package/dist/BCol-B3VeEk9z.mjs.map +0 -1
  604. package/dist/BCol-Ck9VydHj.js +0 -140
  605. package/dist/BCollapse-CDLYLSZo.js +0 -183
  606. package/dist/BCollapse-CDLYLSZo.js.map +0 -1
  607. package/dist/BCollapse-kqhe4AmL.mjs.map +0 -1
  608. package/dist/BContainer-ATfhaxTc.mjs.map +0 -1
  609. package/dist/BContainer-CcF6dgtI.js +0 -44
  610. package/dist/BDateField-CccP3H1R.mjs.map +0 -1
  611. package/dist/BDateField-DzZw5FRX.js +0 -919
  612. package/dist/BDateField-DzZw5FRX.js.map +0 -1
  613. package/dist/BDatePicker-BDkzkOcm.js +0 -5138
  614. package/dist/BDatePicker-BDkzkOcm.js.map +0 -1
  615. package/dist/BDatePicker-BnwnSkBg.mjs.map +0 -1
  616. package/dist/BDropdown-0E8x5kk6.mjs.map +0 -1
  617. package/dist/BDropdown-B1DbvVzm.mjs.map +0 -1
  618. package/dist/BDropdown-BPFtkX3p.js +0 -403
  619. package/dist/BDropdown-BPFtkX3p.js.map +0 -1
  620. package/dist/BDropdown-DKCgBzYS.js +0 -415
  621. package/dist/BForm-6JlWdQMO.js +0 -126
  622. package/dist/BForm-BVfW08s5.mjs.map +0 -1
  623. package/dist/BForm-DJu2hDV_.mjs.map +0 -1
  624. package/dist/BForm-cnRpggt9.js +0 -51
  625. package/dist/BFormCheckbox-Baf_9BSc.mjs.map +0 -1
  626. package/dist/BFormCheckbox-D5ySHMJ8.js +0 -489
  627. package/dist/BFormCheckbox-D5ySHMJ8.js.map +0 -1
  628. package/dist/BFormFile-CZebm0Cp.mjs.map +0 -1
  629. package/dist/BFormFile-MISLntyJ.js +0 -423
  630. package/dist/BFormGroup-Bk1t-D1N.js +0 -490
  631. package/dist/BFormGroup-Bk1t-D1N.js.map +0 -1
  632. package/dist/BFormGroup-vysRPb99.mjs.map +0 -1
  633. package/dist/BFormInput-CBwwDjfC.js +0 -142
  634. package/dist/BFormInput-sEfU3CuN.mjs.map +0 -1
  635. package/dist/BFormOtp-C8X3u1od.mjs.map +0 -1
  636. package/dist/BFormOtp-CLrQJRPe.js +0 -542
  637. package/dist/BFormOtp-CLrQJRPe.js.map +0 -1
  638. package/dist/BFormRadio-B2yu-o2v.js +0 -432
  639. package/dist/BFormRadio-B2yu-o2v.js.map +0 -1
  640. package/dist/BFormRadio-COc_IbxC.mjs.map +0 -1
  641. package/dist/BFormRating-CIgPVsH_.mjs.map +0 -1
  642. package/dist/BFormRating-CSdRxN5z.js +0 -263
  643. package/dist/BFormRating-CSdRxN5z.js.map +0 -1
  644. package/dist/BFormSelect-CI92Dv27.js +0 -310
  645. package/dist/BFormSelect-CI92Dv27.js.map +0 -1
  646. package/dist/BFormSelect-P-InkOm-.mjs.map +0 -1
  647. package/dist/BFormSelectOption-DFN4lPRh.mjs.map +0 -1
  648. package/dist/BFormSelectOption-DrwJucNf.js +0 -46
  649. package/dist/BFormSpinbutton-1gTz4nTo.js +0 -447
  650. package/dist/BFormSpinbutton-6qkTBF_4.mjs.map +0 -1
  651. package/dist/BFormTag-CeV0MSRC.js +0 -86
  652. package/dist/BFormTag-CnzI39y9.mjs.map +0 -1
  653. package/dist/BFormTags-BMltSaKL.mjs.map +0 -1
  654. package/dist/BFormTags-BhO60uiL.js +0 -427
  655. package/dist/BFormTags-BhO60uiL.js.map +0 -1
  656. package/dist/BFormTextarea-C3Cj0DWj.js +0 -203
  657. package/dist/BFormTextarea-DN1gAfSo.mjs.map +0 -1
  658. package/dist/BFormValidFeedback-CBYxQLDz.mjs.map +0 -1
  659. package/dist/BFormValidFeedback-Kwxh798d.js +0 -223
  660. package/dist/BImg-JKJLgYYT.js +0 -168
  661. package/dist/BImg-QBS2ECBc.mjs.map +0 -1
  662. package/dist/BInputGroup-Bvlfv6VD.js +0 -55
  663. package/dist/BInputGroup-D4fW324B.js +0 -31
  664. package/dist/BInputGroup-DiTSexkT.mjs.map +0 -1
  665. package/dist/BInputGroup-X2Z53RJx.mjs.map +0 -1
  666. package/dist/BLink-Dfgte6dQ.mjs.map +0 -1
  667. package/dist/BLink-kLEjleB1.js +0 -276
  668. package/dist/BListGroup-C8JOzHTz.js +0 -167
  669. package/dist/BListGroup-DwTLpNiD.mjs.map +0 -1
  670. package/dist/BModal-C-ZCau2E.mjs.map +0 -1
  671. package/dist/BModal-VstTwEq9.js +0 -521
  672. package/dist/BModal-VstTwEq9.js.map +0 -1
  673. package/dist/BNav-DCLambmM.js +0 -453
  674. package/dist/BNav-DfYvjfRK.mjs.map +0 -1
  675. package/dist/BNavbar-BLWaZJRP.js +0 -245
  676. package/dist/BNavbar-xYaikQVY.mjs.map +0 -1
  677. package/dist/BOffcanvas-C7HenFW0.js +0 -331
  678. package/dist/BOffcanvas-C7HenFW0.js.map +0 -1
  679. package/dist/BOffcanvas-CF-dWeez.mjs.map +0 -1
  680. package/dist/BOverlay-Bh2PIN_q.mjs.map +0 -1
  681. package/dist/BOverlay-Bh4ldxgt.js +0 -203
  682. package/dist/BPagination-D75q-ZNg.mjs.map +0 -1
  683. package/dist/BPagination-fbjFAtxu.js +0 -446
  684. package/dist/BPlaceholder-B3rs_39w.js +0 -326
  685. package/dist/BPlaceholder-DPQ6mCLN.mjs.map +0 -1
  686. package/dist/BProgress-BZlrPYhA.mjs.map +0 -1
  687. package/dist/BProgress-th0-eZWo.js +0 -147
  688. package/dist/BRow-7AOuFiSy.js +0 -70
  689. package/dist/BRow-eGSUYGCW.mjs.map +0 -1
  690. package/dist/BSpinner-CUfGqviV.mjs.map +0 -1
  691. package/dist/BSpinner-DbYIp-C7.js +0 -60
  692. package/dist/BTable-BCWW00u_.js +0 -1903
  693. package/dist/BTable-BCWW00u_.js.map +0 -1
  694. package/dist/BTable-DUHxxWv5.mjs.map +0 -1
  695. package/dist/BTableSimple-BkdGAAKb.js +0 -137
  696. package/dist/BTableSimple-C-jn9Nwh.mjs.map +0 -1
  697. package/dist/BTabs-CvecFg5N.js +0 -607
  698. package/dist/BTabs-D_vWlBjT.mjs.map +0 -1
  699. package/dist/BTimeField-BSDaZogC.mjs.map +0 -1
  700. package/dist/BTimeField-BT5HXecp.js +0 -517
  701. package/dist/BTimeField-BT5HXecp.js.map +0 -1
  702. package/dist/BToast-DR0pek4W.js +0 -308
  703. package/dist/BToast-DR0pek4W.js.map +0 -1
  704. package/dist/BToast-Y8BayxES.mjs.map +0 -1
  705. package/dist/BTooltip-CVP8HdkU.mjs.map +0 -1
  706. package/dist/BTooltip-DPLYtaL1.js +0 -213
  707. package/dist/BootstrapVueOptions-DeViqxoD.js +0 -179
  708. package/dist/BootstrapVueOptions-DeViqxoD.js.map +0 -1
  709. package/dist/BootstrapVueOptions-Dt1TQdih.mjs.map +0 -1
  710. package/dist/ConditionalTeleport-B4KYZIM6.mjs.map +0 -1
  711. package/dist/ConditionalTeleport-BDWcebyD.js +0 -34
  712. package/dist/ConditionalWrapper-DZH_VSwb.js +0 -31
  713. package/dist/ConditionalWrapper-Dbc_O6qe.mjs.map +0 -1
  714. package/dist/DateRangeFieldInput-B86VEz0H.mjs.map +0 -1
  715. package/dist/DateRangeFieldInput-HvvI2You.js +0 -762
  716. package/dist/DateRangeFieldInput-HvvI2You.js.map +0 -1
  717. package/dist/PopperContent-BS_eKjzD.js +0 -1515
  718. package/dist/PopperContent-BS_eKjzD.js.map +0 -1
  719. package/dist/PopperContent-DmSgsjSC.mjs.map +0 -1
  720. package/dist/VisuallyHidden-C4sXnc-k.mjs.map +0 -1
  721. package/dist/VisuallyHidden-Cx0phlXT.js +0 -222
  722. package/dist/VisuallyHidden-Cx0phlXT.js.map +0 -1
  723. package/dist/VisuallyHiddenInput-BNrInt6d.js +0 -147
  724. package/dist/VisuallyHiddenInput-BNrInt6d.js.map +0 -1
  725. package/dist/VisuallyHiddenInput-DKIzxsQR.mjs.map +0 -1
  726. package/dist/bootstrap-vue-next.umd.js +0 -275
  727. package/dist/chunk-CoQrYLCe.js +0 -50
  728. package/dist/classes-B0E5Y78Y.mjs.map +0 -1
  729. package/dist/classes-D5wrmmVs.js +0 -92
  730. package/dist/constants-BLIvvaat.js +0 -123
  731. package/dist/constants-Ba9iJn2H.mjs.map +0 -1
  732. package/dist/debounce-D6kifS6w.js +0 -88
  733. package/dist/debounce-DHxNfjan.mjs.map +0 -1
  734. package/dist/dist-DiXKLh_W.js +0 -2064
  735. package/dist/dist-DiXKLh_W.js.map +0 -1
  736. package/dist/dist-Dk9C_HFS.mjs.map +0 -1
  737. package/dist/dom-AhkaSoh8.mjs.map +0 -1
  738. package/dist/dom-Bs6DzM72.js +0 -98
  739. package/dist/dom-Bs6DzM72.js.map +0 -1
  740. package/dist/flattenFragments-C1WWqm25.js +0 -18
  741. package/dist/flattenFragments-ClbLQGqR.mjs.map +0 -1
  742. package/dist/floating-ui.vue-CH2o_mZU.mjs.map +0 -1
  743. package/dist/floating-ui.vue-DDOIU2nS.js +0 -1773
  744. package/dist/floating-ui.vue-DDOIU2nS.js.map +0 -1
  745. package/dist/floatingUi-62aeQtAb.mjs.map +0 -1
  746. package/dist/floatingUi-DQ5bHmy3.js +0 -598
  747. package/dist/floatingUi-DQ5bHmy3.js.map +0 -1
  748. package/dist/functions-BcMenQqL.mjs.map +0 -1
  749. package/dist/functions-Bx1HDqMv.js +0 -11
  750. package/dist/functions-Bx1HDqMv.js.map +0 -1
  751. package/dist/getClasses-8P0iBind.js +0 -19
  752. package/dist/getClasses-COokMI60.mjs.map +0 -1
  753. package/dist/getElement-D2Jr1cbp.mjs.map +0 -1
  754. package/dist/getElement-DWGFJn0w.js +0 -19
  755. package/dist/keys-BMye8nSf.js +0 -187
  756. package/dist/keys-BMye8nSf.js.map +0 -1
  757. package/dist/keys-DU7sQgl3.mjs.map +0 -1
  758. package/dist/object-BN7QwMcz.js +0 -140
  759. package/dist/object-BN7QwMcz.js.map +0 -1
  760. package/dist/object-CHQkkner.mjs.map +0 -1
  761. package/dist/registryAccess-B9QDQwV8.js +0 -39
  762. package/dist/registryAccess-BkJDdh-3.mjs.map +0 -1
  763. package/dist/src/components/BAccordion/index.umd.js +0 -4
  764. package/dist/src/components/BAlert/index.umd.js +0 -3
  765. package/dist/src/components/BApp/index.umd.js +0 -4
  766. package/dist/src/components/BAspect/index.umd.js +0 -3
  767. package/dist/src/components/BAutocomplete/index.umd.js +0 -3
  768. package/dist/src/components/BAvatar/index.umd.js +0 -4
  769. package/dist/src/components/BBadge/index.umd.js +0 -3
  770. package/dist/src/components/BBreadcrumb/index.umd.js +0 -4
  771. package/dist/src/components/BButton/index.umd.js +0 -8
  772. package/dist/src/components/BCard/index.umd.js +0 -12
  773. package/dist/src/components/BCarousel/index.umd.js +0 -4
  774. package/dist/src/components/BCol/index.umd.js +0 -3
  775. package/dist/src/components/BCollapse/index.umd.js +0 -3
  776. package/dist/src/components/BContainer/index.umd.js +0 -7
  777. package/dist/src/components/BDateField/index.umd.js +0 -5
  778. package/dist/src/components/BDatePicker/index.umd.js +0 -4
  779. package/dist/src/components/BDropdown/index.umd.js +0 -11
  780. package/dist/src/components/BForm/index.umd.js +0 -11
  781. package/dist/src/components/BFormCheckbox/index.umd.js +0 -4
  782. package/dist/src/components/BFormFile/index.umd.js +0 -3
  783. package/dist/src/components/BFormGroup/index.umd.js +0 -3
  784. package/dist/src/components/BFormInput/index.umd.js +0 -4
  785. package/dist/src/components/BFormOtp/index.umd.js +0 -3
  786. package/dist/src/components/BFormRadio/index.umd.js +0 -4
  787. package/dist/src/components/BFormRating/index.umd.js +0 -3
  788. package/dist/src/components/BFormSelect/index.umd.js +0 -6
  789. package/dist/src/components/BFormSpinbutton/index.umd.js +0 -3
  790. package/dist/src/components/BFormTags/index.umd.js +0 -5
  791. package/dist/src/components/BFormTextarea/index.umd.js +0 -3
  792. package/dist/src/components/BImg/index.umd.js +0 -3
  793. package/dist/src/components/BInputGroup/index.umd.js +0 -5
  794. package/dist/src/components/BLink/index.umd.js +0 -3
  795. package/dist/src/components/BListGroup/index.umd.js +0 -4
  796. package/dist/src/components/BModal/index.umd.js +0 -3
  797. package/dist/src/components/BNav/index.umd.js +0 -7
  798. package/dist/src/components/BNavbar/index.umd.js +0 -6
  799. package/dist/src/components/BOffcanvas/index.umd.js +0 -3
  800. package/dist/src/components/BOverlay/index.umd.js +0 -3
  801. package/dist/src/components/BPagination/index.umd.js +0 -3
  802. package/dist/src/components/BPlaceholder/index.umd.js +0 -7
  803. package/dist/src/components/BPopover/index.umd.js +0 -3
  804. package/dist/src/components/BProgress/index.umd.js +0 -4
  805. package/dist/src/components/BRow/index.umd.js +0 -3
  806. package/dist/src/components/BSpinner/index.umd.js +0 -3
  807. package/dist/src/components/BTable/index.umd.js +0 -12
  808. package/dist/src/components/BTabs/index.umd.js +0 -4
  809. package/dist/src/components/BTimeField/index.umd.js +0 -3
  810. package/dist/src/components/BToast/index.umd.js +0 -3
  811. package/dist/src/components/BTooltip/index.umd.js +0 -3
  812. package/dist/src/components/index.umd.js +0 -301
  813. package/dist/src/components/index.umd.js.map +0 -1
  814. package/dist/src/composables/index.umd.js +0 -53
  815. package/dist/src/composables/index.umd.js.map +0 -1
  816. package/dist/src/composables/orchestratorShared/index.umd.js +0 -114
  817. package/dist/src/composables/orchestratorShared/index.umd.js.map +0 -1
  818. package/dist/src/composables/useBreadcrumb/index.umd.js +0 -37
  819. package/dist/src/composables/useBreadcrumb/index.umd.js.map +0 -1
  820. package/dist/src/composables/useColorMode/index.umd.js +0 -18
  821. package/dist/src/composables/useColorMode/index.umd.js.map +0 -1
  822. package/dist/src/composables/useModal/index.umd.js +0 -176
  823. package/dist/src/composables/useModal/index.umd.js.map +0 -1
  824. package/dist/src/composables/usePopover/index.umd.js +0 -90
  825. package/dist/src/composables/usePopover/index.umd.js.map +0 -1
  826. package/dist/src/composables/useProvideDefaults/index.umd.js +0 -42
  827. package/dist/src/composables/useProvideDefaults/index.umd.js.map +0 -1
  828. package/dist/src/composables/useRegistry/index.umd.js +0 -135
  829. package/dist/src/composables/useRegistry/index.umd.js.map +0 -1
  830. package/dist/src/composables/useScrollLock/index.umd.js +0 -8
  831. package/dist/src/composables/useScrollLock/index.umd.js.map +0 -1
  832. package/dist/src/composables/useScrollspy/index.umd.js +0 -144
  833. package/dist/src/composables/useScrollspy/index.umd.js.map +0 -1
  834. package/dist/src/composables/useToast/index.umd.js +0 -90
  835. package/dist/src/composables/useToast/index.umd.js.map +0 -1
  836. package/dist/src/composables/useToggle/index.umd.js +0 -34
  837. package/dist/src/composables/useToggle/index.umd.js.map +0 -1
  838. package/dist/src/directives/BColorMode/index.umd.js +0 -15
  839. package/dist/src/directives/BColorMode/index.umd.js.map +0 -1
  840. package/dist/src/directives/BModal/index.umd.js +0 -3
  841. package/dist/src/directives/BPopover/index.umd.js +0 -14
  842. package/dist/src/directives/BPopover/index.umd.js.map +0 -1
  843. package/dist/src/directives/BScrollspy/index.umd.js +0 -35
  844. package/dist/src/directives/BScrollspy/index.umd.js.map +0 -1
  845. package/dist/src/directives/BToggle/index.umd.js +0 -77
  846. package/dist/src/directives/BToggle/index.umd.js.map +0 -1
  847. package/dist/src/directives/BTooltip/index.umd.js +0 -16
  848. package/dist/src/directives/BTooltip/index.umd.js.map +0 -1
  849. package/dist/src/directives/index.umd.js +0 -32
  850. package/dist/src/directives/index.umd.js.map +0 -1
  851. package/dist/src/plugins/createBootstrap/index.umd.js +0 -19
  852. package/dist/src/plugins/createBootstrap/index.umd.js.map +0 -1
  853. package/dist/src/plugins/index.umd.js +0 -26
  854. package/dist/src/plugins/index.umd.js.map +0 -1
  855. package/dist/src/plugins/orchestrator/index.umd.js +0 -13
  856. package/dist/src/plugins/orchestrator/index.umd.js.map +0 -1
  857. package/dist/src/plugins/registry/index.umd.js +0 -62
  858. package/dist/src/plugins/registry/index.umd.js.map +0 -1
  859. package/dist/src/plugins/rtl/index.umd.js +0 -21
  860. package/dist/src/plugins/rtl/index.umd.js.map +0 -1
  861. package/dist/src/resolvers/index.umd.js +0 -94
  862. package/dist/src/resolvers/index.umd.js.map +0 -1
  863. package/dist/src/types/index.umd.js +0 -27
  864. package/dist/src/types/index.umd.js.map +0 -1
  865. package/dist/src/utils/index.umd.js +0 -21
  866. package/dist/src/utils/index.umd.js.map +0 -1
  867. package/dist/stringUtils-68ZN_GRt.js +0 -71
  868. package/dist/stringUtils-D4eEDlt1.mjs.map +0 -1
  869. package/dist/useAlignment-DuR8ymKI.mjs.map +0 -1
  870. package/dist/useAlignment-oKolnDpb.js +0 -16
  871. package/dist/useAriaInvalid-CHHPHNLU.js +0 -17
  872. package/dist/useAriaInvalid-apOwgexm.mjs.map +0 -1
  873. package/dist/useColorVariantClasses-CqeXHjRh.mjs.map +0 -1
  874. package/dist/useColorVariantClasses-Dq0sOYDL.js +0 -27
  875. package/dist/useCountdownHover-C3NXiAaF.mjs.map +0 -1
  876. package/dist/useCountdownHover-DbVhE-N0.js +0 -104
  877. package/dist/useDateField-CJKgollJ.mjs.map +0 -1
  878. package/dist/useDateField-DWv3600o.js +0 -3872
  879. package/dist/useDateField-DWv3600o.js.map +0 -1
  880. package/dist/useDefaults-C0CYry78.js +0 -76
  881. package/dist/useDefaults-DseelK6y.mjs.map +0 -1
  882. package/dist/useFormCheck-BKXrwS3g.mjs.map +0 -1
  883. package/dist/useFormCheck-DYjLG4WA.js +0 -82
  884. package/dist/useFormInput-CXl8rpD0.mjs.map +0 -1
  885. package/dist/useFormInput-ip9hN2AU.js +0 -117
  886. package/dist/useFormSelect-BM0rsjni.mjs.map +0 -1
  887. package/dist/useFormSelect-ClmzGzOy.js +0 -58
  888. package/dist/useForwardExpose-BpZJluPs.js +0 -80
  889. package/dist/useForwardExpose-BpZJluPs.js.map +0 -1
  890. package/dist/useForwardExpose-Cob6LlGd.mjs.map +0 -1
  891. package/dist/useId-BkAY2oh6.js +0 -17
  892. package/dist/useId-D1sqXtwx.mjs.map +0 -1
  893. package/dist/useKbd-DfmgFov6.mjs.map +0 -1
  894. package/dist/useKbd-sqDCJtXL.js +0 -105
  895. package/dist/useKbd-sqDCJtXL.js.map +0 -1
  896. package/dist/useNumberishToStyle-BtMa0R27.js +0 -18
  897. package/dist/useNumberishToStyle-DgS1slD3.mjs.map +0 -1
  898. package/dist/useRadiusElementClasses-BW832F7F.mjs.map +0 -1
  899. package/dist/useRadiusElementClasses-DWiUVgex.js +0 -28
  900. package/dist/useRtl-BSgvbs5F.js +0 -26
  901. package/dist/useRtl-CGoXBxNo.mjs.map +0 -1
  902. package/dist/useSafeScrollLock-7wmPH_Hy.js +0 -1418
  903. package/dist/useSafeScrollLock-7wmPH_Hy.js.map +0 -1
  904. package/dist/useSafeScrollLock-Me5LyqjD.mjs.map +0 -1
  905. package/dist/useShowHide-CBFt1_EW.mjs.map +0 -1
  906. package/dist/useShowHide-CHm2uUep.js +0 -436
  907. package/dist/useShowHide-CHm2uUep.js.map +0 -1
  908. package/dist/useStateClass-CXK3nCg9.js +0 -16
  909. package/dist/useStateClass-DxlL_m2E.mjs.map +0 -1
  910. package/dist/utils-CWvndqPg.mjs.map +0 -1
  911. package/dist/utils-Dk9yAtbs.js +0 -186
  912. package/dist/utils-Dk9yAtbs.js.map +0 -1
  913. /package/dist/{chunk-D1SwGrFN.mjs → rolldown-runtime-BBjsoOtd.js} +0 -0
@@ -1,3872 +0,0 @@
1
- require("./chunk-CoQrYLCe.js");
2
- const require_VisuallyHidden = require("./VisuallyHidden-Cx0phlXT.js");
3
- const require_useKbd = require("./useKbd-sqDCJtXL.js");
4
- let vue = require("vue");
5
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/clamp.js
6
- /**
7
- * The function `roundToStepPrecision` rounds a number to a specified precision step.
8
- * @param {number} value - The `value` parameter is the number that you want to round to a specific
9
- * precision based on the `step` parameter.
10
- * @param {number} step - The `step` parameter in the `roundToStepPrecision` function represents the
11
- * interval at which you want to round the `value`. For example, if `step` is 0.5, the `value` will be
12
- * rounded to the nearest half.
13
- * @returns the `roundedValue` after rounding it to the precision specified by the `step`.
14
- */
15
- function roundToStepPrecision(value, step) {
16
- let roundedValue = value;
17
- const stepString = step.toString();
18
- const pointIndex = stepString.indexOf(".");
19
- const precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;
20
- if (precision > 0) {
21
- const pow = 10 ** precision;
22
- roundedValue = Math.round(roundedValue * pow) / pow;
23
- }
24
- return roundedValue;
25
- }
26
- /**
27
- * The function `snapValueToStep` snaps a given value to the nearest step within a specified range.
28
- * @param {number} value - The `value` parameter represents the number that you want to snap to the
29
- * nearest step value.
30
- * @param {number | undefined} min - The `min` parameter represents the minimum value that the `value`
31
- * should be snapped to. If `value` is less than `min`, it will be snapped to `min`. If `min` is not
32
- * provided (undefined), then the snapping will not consider a minimum value.
33
- * @param {number | undefined} max - The `max` parameter represents the maximum value that the `value`
34
- * should be snapped to. It ensures that the snapped value does not exceed this maximum value.
35
- * @param {number} step - The `step` parameter in the `snapValueToStep` function represents the
36
- * interval at which the `value` should be snapped to. It determines the granularity of the snapping
37
- * operation. For example, if `step` is 5, the `value` will be snapped to the nearest multiple of
38
- * @returns a number that has been snapped to the nearest step value within the specified range of minimum and maximum values.
39
- */
40
- function snapValueToStep(value, min, max, step) {
41
- min = Number(min);
42
- max = Number(max);
43
- const remainder = (value - (Number.isNaN(min) ? 0 : min)) % step;
44
- let snappedValue = roundToStepPrecision(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);
45
- if (!Number.isNaN(min)) {
46
- if (snappedValue < min) snappedValue = min;
47
- else if (!Number.isNaN(max) && snappedValue > max) snappedValue = min + Math.floor(roundToStepPrecision((max - min) / step, step)) * step;
48
- } else if (!Number.isNaN(max) && snappedValue > max) snappedValue = Math.floor(roundToStepPrecision(max / step, step)) * step;
49
- snappedValue = roundToStepPrecision(snappedValue, step);
50
- return snappedValue;
51
- }
52
- //#endregion
53
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/utils.mjs
54
- function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {
55
- return amount - numerator * Math.floor(amount / numerator);
56
- }
57
- //#endregion
58
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/GregorianCalendar.mjs
59
- var $3b62074eb05584b2$var$EPOCH = 1721426;
60
- function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
61
- year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
62
- let y1 = year - 1;
63
- let monthOffset = -2;
64
- if (month <= 2) monthOffset = 0;
65
- else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;
66
- return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
67
- }
68
- function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
69
- return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
70
- }
71
- function $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {
72
- return era === "BC" ? 1 - year : year;
73
- }
74
- function $3b62074eb05584b2$export$4475b7e617eb123c(year) {
75
- let era = "AD";
76
- if (year <= 0) {
77
- era = "BC";
78
- year = 1 - year;
79
- }
80
- return [era, year];
81
- }
82
- var $3b62074eb05584b2$var$daysInMonth = {
83
- standard: [
84
- 31,
85
- 28,
86
- 31,
87
- 30,
88
- 31,
89
- 30,
90
- 31,
91
- 31,
92
- 30,
93
- 31,
94
- 30,
95
- 31
96
- ],
97
- leapyear: [
98
- 31,
99
- 29,
100
- 31,
101
- 30,
102
- 31,
103
- 30,
104
- 31,
105
- 31,
106
- 30,
107
- 31,
108
- 30,
109
- 31
110
- ]
111
- };
112
- var $3b62074eb05584b2$export$80ee6245ec4f29ec = class {
113
- fromJulianDay(jd) {
114
- let jd0 = jd;
115
- let depoch = jd0 - $3b62074eb05584b2$var$EPOCH;
116
- let quadricent = Math.floor(depoch / 146097);
117
- let dqc = $2b4dce13dd5a17fa$export$842a2cf37af977e1(depoch, 146097);
118
- let cent = Math.floor(dqc / 36524);
119
- let dcent = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dqc, 36524);
120
- let quad = Math.floor(dcent / 1461);
121
- let dquad = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dcent, 1461);
122
- let yindex = Math.floor(dquad / 365);
123
- let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0));
124
- let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
125
- let leapAdj = 2;
126
- if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
127
- else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;
128
- let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
129
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1);
130
- }
131
- toJulianDay(date) {
132
- return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);
133
- }
134
- getDaysInMonth(date) {
135
- return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? "leapyear" : "standard"][date.month - 1];
136
- }
137
- getMonthsInYear(date) {
138
- return 12;
139
- }
140
- getDaysInYear(date) {
141
- return $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 366 : 365;
142
- }
143
- getMaximumMonthsInYear() {
144
- return 12;
145
- }
146
- getMaximumDaysInMonth() {
147
- return 31;
148
- }
149
- getYearsInEra(date) {
150
- return 9999;
151
- }
152
- getEras() {
153
- return ["BC", "AD"];
154
- }
155
- isInverseEra(date) {
156
- return date.era === "BC";
157
- }
158
- balanceDate(date) {
159
- if (date.year <= 0) {
160
- date.era = date.era === "BC" ? "AD" : "BC";
161
- date.year = 1 - date.year;
162
- }
163
- }
164
- constructor() {
165
- this.identifier = "gregory";
166
- }
167
- };
168
- //#endregion
169
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/weekStartData.mjs
170
- var $2fe286d2fb449abb$export$7a5acbd77d414bd9 = {
171
- "001": 1,
172
- AD: 1,
173
- AE: 6,
174
- AF: 6,
175
- AI: 1,
176
- AL: 1,
177
- AM: 1,
178
- AN: 1,
179
- AR: 1,
180
- AT: 1,
181
- AU: 1,
182
- AX: 1,
183
- AZ: 1,
184
- BA: 1,
185
- BE: 1,
186
- BG: 1,
187
- BH: 6,
188
- BM: 1,
189
- BN: 1,
190
- BY: 1,
191
- CH: 1,
192
- CL: 1,
193
- CM: 1,
194
- CN: 1,
195
- CR: 1,
196
- CY: 1,
197
- CZ: 1,
198
- DE: 1,
199
- DJ: 6,
200
- DK: 1,
201
- DZ: 6,
202
- EC: 1,
203
- EE: 1,
204
- EG: 6,
205
- ES: 1,
206
- FI: 1,
207
- FJ: 1,
208
- FO: 1,
209
- FR: 1,
210
- GB: 1,
211
- GE: 1,
212
- GF: 1,
213
- GP: 1,
214
- GR: 1,
215
- HR: 1,
216
- HU: 1,
217
- IE: 1,
218
- IQ: 6,
219
- IR: 6,
220
- IS: 1,
221
- IT: 1,
222
- JO: 6,
223
- KG: 1,
224
- KW: 6,
225
- KZ: 1,
226
- LB: 1,
227
- LI: 1,
228
- LK: 1,
229
- LT: 1,
230
- LU: 1,
231
- LV: 1,
232
- LY: 6,
233
- MC: 1,
234
- MD: 1,
235
- ME: 1,
236
- MK: 1,
237
- MN: 1,
238
- MQ: 1,
239
- MV: 5,
240
- MY: 1,
241
- NL: 1,
242
- NO: 1,
243
- NZ: 1,
244
- OM: 6,
245
- PL: 1,
246
- QA: 6,
247
- RE: 1,
248
- RO: 1,
249
- RS: 1,
250
- RU: 1,
251
- SD: 6,
252
- SE: 1,
253
- SI: 1,
254
- SK: 1,
255
- SM: 1,
256
- SY: 6,
257
- TJ: 1,
258
- TM: 1,
259
- TR: 1,
260
- UA: 1,
261
- UY: 1,
262
- UZ: 1,
263
- VA: 1,
264
- VN: 1,
265
- XK: 1
266
- };
267
- //#endregion
268
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/queries.mjs
269
- function $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b) {
270
- b = $11d87f3f76e88657$export$b4a036af3fc0b032(b, a.calendar);
271
- return a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;
272
- }
273
- function $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b) {
274
- b = $11d87f3f76e88657$export$b4a036af3fc0b032(b, a.calendar);
275
- a = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(a);
276
- b = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(b);
277
- return a.era === b.era && a.year === b.year && a.month === b.month;
278
- }
279
- function $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(a, b) {
280
- return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b);
281
- }
282
- function $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(a, b) {
283
- return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b);
284
- }
285
- function $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a, b) {
286
- var _a_isEqual, _b_isEqual;
287
- var _a_isEqual1, _ref;
288
- return (_ref = (_a_isEqual1 = (_a_isEqual = a.isEqual) === null || _a_isEqual === void 0 ? void 0 : _a_isEqual.call(a, b)) !== null && _a_isEqual1 !== void 0 ? _a_isEqual1 : (_b_isEqual = b.isEqual) === null || _b_isEqual === void 0 ? void 0 : _b_isEqual.call(b, a)) !== null && _ref !== void 0 ? _ref : a.identifier === b.identifier;
289
- }
290
- function $14e0f24ef4ac5c92$export$629b0a497aa65267(date, timeZone) {
291
- return $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone));
292
- }
293
- var $14e0f24ef4ac5c92$var$DAY_MAP = {
294
- sun: 0,
295
- mon: 1,
296
- tue: 2,
297
- wed: 3,
298
- thu: 4,
299
- fri: 5,
300
- sat: 6
301
- };
302
- function $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, firstDayOfWeek) {
303
- let julian = date.calendar.toJulianDay(date);
304
- let weekStart = firstDayOfWeek ? $14e0f24ef4ac5c92$var$DAY_MAP[firstDayOfWeek] : $14e0f24ef4ac5c92$var$getWeekStart(locale);
305
- let dayOfWeek = Math.ceil(julian + 1 - weekStart) % 7;
306
- if (dayOfWeek < 0) dayOfWeek += 7;
307
- return dayOfWeek;
308
- }
309
- function $14e0f24ef4ac5c92$export$461939dd4422153(timeZone) {
310
- return $11d87f3f76e88657$export$1b96692a1ba042ac(Date.now(), timeZone);
311
- }
312
- function $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone) {
313
- return $11d87f3f76e88657$export$93522d1a439f3617($14e0f24ef4ac5c92$export$461939dd4422153(timeZone));
314
- }
315
- function $14e0f24ef4ac5c92$export$68781ddf31c0090f(a, b) {
316
- return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);
317
- }
318
- function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {
319
- return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);
320
- }
321
- function $14e0f24ef4ac5c92$var$timeToMs(a) {
322
- return a.hour * 36e5 + a.minute * 6e4 + a.second * 1e3 + a.millisecond;
323
- }
324
- var $14e0f24ef4ac5c92$var$localTimeZone = null;
325
- var $14e0f24ef4ac5c92$var$localTimeZoneOverride = false;
326
- function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
327
- if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
328
- return $14e0f24ef4ac5c92$var$localTimeZone;
329
- }
330
- function $14e0f24ef4ac5c92$export$6ab69b273755230b() {
331
- return $14e0f24ef4ac5c92$var$localTimeZoneOverride;
332
- }
333
- function $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date) {
334
- return date.subtract({ days: date.day - 1 });
335
- }
336
- function $14e0f24ef4ac5c92$export$a2258d9c4118825c(date) {
337
- return date.add({ days: date.calendar.getDaysInMonth(date) - date.day });
338
- }
339
- var $14e0f24ef4ac5c92$var$cachedRegions = /* @__PURE__ */ new Map();
340
- var $14e0f24ef4ac5c92$var$cachedWeekInfo = /* @__PURE__ */ new Map();
341
- function $14e0f24ef4ac5c92$var$getRegion(locale) {
342
- if (Intl.Locale) {
343
- let region = $14e0f24ef4ac5c92$var$cachedRegions.get(locale);
344
- if (!region) {
345
- region = new Intl.Locale(locale).maximize().region;
346
- if (region) $14e0f24ef4ac5c92$var$cachedRegions.set(locale, region);
347
- }
348
- return region;
349
- }
350
- let part = locale.split("-")[1];
351
- return part === "u" ? void 0 : part;
352
- }
353
- function $14e0f24ef4ac5c92$var$getWeekStart(locale) {
354
- let weekInfo = $14e0f24ef4ac5c92$var$cachedWeekInfo.get(locale);
355
- if (!weekInfo) {
356
- if (Intl.Locale) {
357
- let localeInst = new Intl.Locale(locale);
358
- if ("getWeekInfo" in localeInst) {
359
- weekInfo = localeInst.getWeekInfo();
360
- if (weekInfo) {
361
- $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);
362
- return weekInfo.firstDay;
363
- }
364
- }
365
- }
366
- let region = $14e0f24ef4ac5c92$var$getRegion(locale);
367
- if (locale.includes("-fw-")) {
368
- let day = locale.split("-fw-")[1].split("-")[0];
369
- if (day === "mon") weekInfo = { firstDay: 1 };
370
- else if (day === "tue") weekInfo = { firstDay: 2 };
371
- else if (day === "wed") weekInfo = { firstDay: 3 };
372
- else if (day === "thu") weekInfo = { firstDay: 4 };
373
- else if (day === "fri") weekInfo = { firstDay: 5 };
374
- else if (day === "sat") weekInfo = { firstDay: 6 };
375
- else weekInfo = { firstDay: 0 };
376
- } else if (locale.includes("-ca-iso8601")) weekInfo = { firstDay: 1 };
377
- else weekInfo = { firstDay: region ? $2fe286d2fb449abb$export$7a5acbd77d414bd9[region] || 0 : 0 };
378
- $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);
379
- }
380
- return weekInfo.firstDay;
381
- }
382
- //#endregion
383
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/conversion.mjs
384
- function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
385
- date = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
386
- return $11d87f3f76e88657$var$epochFromParts($3b62074eb05584b2$export$c36e0ecb2d4fa69d(date.era, date.year), date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
387
- }
388
- function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {
389
- let date = /* @__PURE__ */ new Date();
390
- date.setUTCHours(hour, minute, second, millisecond);
391
- date.setUTCFullYear(year, month - 1, day);
392
- return date.getTime();
393
- }
394
- function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
395
- if (timeZone === "UTC") return 0;
396
- if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && !$14e0f24ef4ac5c92$export$6ab69b273755230b()) return new Date(ms).getTimezoneOffset() * -6e4;
397
- let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
398
- return $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0) - Math.floor(ms / 1e3) * 1e3;
399
- }
400
- var $11d87f3f76e88657$var$formattersByTimeZone = /* @__PURE__ */ new Map();
401
- function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
402
- let formatter = $11d87f3f76e88657$var$formattersByTimeZone.get(timeZone);
403
- if (!formatter) {
404
- formatter = new Intl.DateTimeFormat("en-US", {
405
- timeZone,
406
- hour12: false,
407
- era: "short",
408
- year: "numeric",
409
- month: "numeric",
410
- day: "numeric",
411
- hour: "numeric",
412
- minute: "numeric",
413
- second: "numeric"
414
- });
415
- $11d87f3f76e88657$var$formattersByTimeZone.set(timeZone, formatter);
416
- }
417
- let parts = formatter.formatToParts(new Date(ms));
418
- let namedParts = {};
419
- for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
420
- return {
421
- year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
422
- month: +namedParts.month,
423
- day: +namedParts.day,
424
- hour: namedParts.hour === "24" ? 0 : +namedParts.hour,
425
- minute: +namedParts.minute,
426
- second: +namedParts.second
427
- };
428
- }
429
- var $11d87f3f76e88657$var$DAYMILLIS = 864e5;
430
- function $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later) {
431
- return (earlier === later ? [earlier] : [earlier, later]).filter((absolute) => $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute));
432
- }
433
- function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
434
- let parts = $11d87f3f76e88657$var$getTimeZoneParts(absolute, timeZone);
435
- return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;
436
- }
437
- function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
438
- let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
439
- if (timeZone === "UTC") return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
440
- if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible" && !$14e0f24ef4ac5c92$export$6ab69b273755230b()) {
441
- dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
442
- let date = /* @__PURE__ */ new Date();
443
- let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(dateTime.era, dateTime.year);
444
- date.setFullYear(year, dateTime.month - 1, dateTime.day);
445
- date.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
446
- return date.getTime();
447
- }
448
- let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
449
- let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
450
- let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
451
- let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
452
- if (valid.length === 1) return valid[0];
453
- if (valid.length > 1) switch (disambiguation) {
454
- case "compatible":
455
- case "earlier": return valid[0];
456
- case "later": return valid[valid.length - 1];
457
- case "reject": throw new RangeError("Multiple possible absolute times found");
458
- }
459
- switch (disambiguation) {
460
- case "earlier": return Math.min(ms - offsetBefore, ms - offsetAfter);
461
- case "compatible":
462
- case "later": return Math.max(ms - offsetBefore, ms - offsetAfter);
463
- case "reject": throw new RangeError("No such absolute time found");
464
- }
465
- }
466
- function $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = "compatible") {
467
- return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
468
- }
469
- function $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {
470
- let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);
471
- let date = new Date(ms + offset);
472
- let year = date.getUTCFullYear();
473
- let month = date.getUTCMonth() + 1;
474
- let day = date.getUTCDate();
475
- let hour = date.getUTCHours();
476
- let minute = date.getUTCMinutes();
477
- let second = date.getUTCSeconds();
478
- let millisecond = date.getUTCMilliseconds();
479
- return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(year < 1 ? "BC" : "AD", year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);
480
- }
481
- function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
482
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
483
- }
484
- function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
485
- let hour = 0, minute = 0, second = 0, millisecond = 0;
486
- if ("timeZone" in date) ({hour: hour, minute: minute, second: second, millisecond: millisecond} = date);
487
- else if ("hour" in date && !time) return date;
488
- if (time) ({hour: hour, minute: minute, second: second, millisecond: millisecond} = time);
489
- return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
490
- }
491
- function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
492
- if ($14e0f24ef4ac5c92$export$dbc69fd56b53d5e(date.calendar, calendar)) return date;
493
- let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
494
- let copy = date.copy();
495
- copy.calendar = calendar;
496
- copy.era = calendarDate.era;
497
- copy.year = calendarDate.year;
498
- copy.month = calendarDate.month;
499
- copy.day = calendarDate.day;
500
- $735220c2d4774dd3$export$c4e2ecac49351ef2(copy);
501
- return copy;
502
- }
503
- function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
504
- if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
505
- if (date.timeZone === timeZone) return date;
506
- return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
507
- }
508
- return $11d87f3f76e88657$export$1b96692a1ba042ac($11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation), timeZone);
509
- }
510
- function $11d87f3f76e88657$export$83aac07b4c37b25(date) {
511
- let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
512
- return new Date(ms);
513
- }
514
- function $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {
515
- return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac($11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset, timeZone), date.calendar);
516
- }
517
- //#endregion
518
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/manipulation.mjs
519
- var $735220c2d4774dd3$var$ONE_HOUR = 36e5;
520
- function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
521
- let mutableDate = date.copy();
522
- let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
523
- $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
524
- if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
525
- mutableDate.month += duration.months || 0;
526
- $735220c2d4774dd3$var$balanceYearMonth(mutableDate);
527
- $735220c2d4774dd3$var$constrainMonthDay(mutableDate);
528
- mutableDate.day += (duration.weeks || 0) * 7;
529
- mutableDate.day += duration.days || 0;
530
- mutableDate.day += days;
531
- $735220c2d4774dd3$var$balanceDay(mutableDate);
532
- if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
533
- if (mutableDate.year < 1) {
534
- mutableDate.year = 1;
535
- mutableDate.month = 1;
536
- mutableDate.day = 1;
537
- }
538
- let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);
539
- if (mutableDate.year > maxYear) {
540
- var _mutableDate_calendar_isInverseEra, _mutableDate_calendar;
541
- let isInverseEra = (_mutableDate_calendar_isInverseEra = (_mutableDate_calendar = mutableDate.calendar).isInverseEra) === null || _mutableDate_calendar_isInverseEra === void 0 ? void 0 : _mutableDate_calendar_isInverseEra.call(_mutableDate_calendar, mutableDate);
542
- mutableDate.year = maxYear;
543
- mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);
544
- mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);
545
- }
546
- if (mutableDate.month < 1) {
547
- mutableDate.month = 1;
548
- mutableDate.day = 1;
549
- }
550
- let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);
551
- if (mutableDate.month > maxMonth) {
552
- mutableDate.month = maxMonth;
553
- mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);
554
- }
555
- mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));
556
- return mutableDate;
557
- }
558
- function $735220c2d4774dd3$var$addYears(date, years) {
559
- var _date_calendar_isInverseEra, _date_calendar;
560
- if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date)) years = -years;
561
- date.year += years;
562
- }
563
- function $735220c2d4774dd3$var$balanceYearMonth(date) {
564
- while (date.month < 1) {
565
- $735220c2d4774dd3$var$addYears(date, -1);
566
- date.month += date.calendar.getMonthsInYear(date);
567
- }
568
- let monthsInYear = 0;
569
- while (date.month > (monthsInYear = date.calendar.getMonthsInYear(date))) {
570
- date.month -= monthsInYear;
571
- $735220c2d4774dd3$var$addYears(date, 1);
572
- }
573
- }
574
- function $735220c2d4774dd3$var$balanceDay(date) {
575
- while (date.day < 1) {
576
- date.month--;
577
- $735220c2d4774dd3$var$balanceYearMonth(date);
578
- date.day += date.calendar.getDaysInMonth(date);
579
- }
580
- while (date.day > date.calendar.getDaysInMonth(date)) {
581
- date.day -= date.calendar.getDaysInMonth(date);
582
- date.month++;
583
- $735220c2d4774dd3$var$balanceYearMonth(date);
584
- }
585
- }
586
- function $735220c2d4774dd3$var$constrainMonthDay(date) {
587
- date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));
588
- date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
589
- }
590
- function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
591
- if (date.calendar.constrainDate) date.calendar.constrainDate(date);
592
- date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
593
- $735220c2d4774dd3$var$constrainMonthDay(date);
594
- }
595
- function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
596
- let inverseDuration = {};
597
- for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
598
- return inverseDuration;
599
- }
600
- function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
601
- return $735220c2d4774dd3$export$e16d8520af44a096(date, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
602
- }
603
- function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
604
- let mutableDate = date.copy();
605
- if (fields.era != null) mutableDate.era = fields.era;
606
- if (fields.year != null) mutableDate.year = fields.year;
607
- if (fields.month != null) mutableDate.month = fields.month;
608
- if (fields.day != null) mutableDate.day = fields.day;
609
- $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
610
- return mutableDate;
611
- }
612
- function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
613
- let mutableValue = value.copy();
614
- if (fields.hour != null) mutableValue.hour = fields.hour;
615
- if (fields.minute != null) mutableValue.minute = fields.minute;
616
- if (fields.second != null) mutableValue.second = fields.second;
617
- if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
618
- $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
619
- return mutableValue;
620
- }
621
- function $735220c2d4774dd3$var$balanceTime(time) {
622
- time.second += Math.floor(time.millisecond / 1e3);
623
- time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1e3);
624
- time.minute += Math.floor(time.second / 60);
625
- time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);
626
- time.hour += Math.floor(time.minute / 60);
627
- time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);
628
- let days = Math.floor(time.hour / 24);
629
- time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);
630
- return days;
631
- }
632
- function $735220c2d4774dd3$export$7555de1e070510cb(time) {
633
- time.millisecond = Math.max(0, Math.min(time.millisecond, 1e3));
634
- time.second = Math.max(0, Math.min(time.second, 59));
635
- time.minute = Math.max(0, Math.min(time.minute, 59));
636
- time.hour = Math.max(0, Math.min(time.hour, 23));
637
- }
638
- function $735220c2d4774dd3$var$nonNegativeMod(a, b) {
639
- let result = a % b;
640
- if (result < 0) result += b;
641
- return result;
642
- }
643
- function $735220c2d4774dd3$var$addTimeFields(time, duration) {
644
- time.hour += duration.hours || 0;
645
- time.minute += duration.minutes || 0;
646
- time.second += duration.seconds || 0;
647
- time.millisecond += duration.milliseconds || 0;
648
- return $735220c2d4774dd3$var$balanceTime(time);
649
- }
650
- function $735220c2d4774dd3$export$7ed87b6bc2506470(time, duration) {
651
- let res = time.copy();
652
- $735220c2d4774dd3$var$addTimeFields(res, duration);
653
- return res;
654
- }
655
- function $735220c2d4774dd3$export$fe34d3a381cd7501(time, duration) {
656
- return $735220c2d4774dd3$export$7ed87b6bc2506470(time, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
657
- }
658
- function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options) {
659
- let mutable = value.copy();
660
- switch (field) {
661
- case "era": {
662
- let eras = value.calendar.getEras();
663
- let eraIndex = eras.indexOf(value.era);
664
- if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
665
- eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
666
- mutable.era = eras[eraIndex];
667
- $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
668
- break;
669
- }
670
- case "year":
671
- var _mutable_calendar_isInverseEra, _mutable_calendar;
672
- if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable)) amount = -amount;
673
- mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
674
- if (mutable.year === -Infinity) mutable.year = 1;
675
- if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
676
- break;
677
- case "month":
678
- mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
679
- break;
680
- case "day":
681
- mutable.day = $735220c2d4774dd3$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);
682
- break;
683
- default: throw new Error("Unsupported field " + field);
684
- }
685
- if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
686
- $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
687
- return mutable;
688
- }
689
- function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {
690
- let mutable = value.copy();
691
- switch (field) {
692
- case "hour": {
693
- let hours = value.hour;
694
- let min = 0;
695
- let max = 23;
696
- if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
697
- let isPM = hours >= 12;
698
- min = isPM ? 12 : 0;
699
- max = isPM ? 23 : 11;
700
- }
701
- mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
702
- break;
703
- }
704
- case "minute":
705
- mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
706
- break;
707
- case "second":
708
- mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
709
- break;
710
- case "millisecond":
711
- mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
712
- break;
713
- default: throw new Error("Unsupported field " + field);
714
- }
715
- return mutable;
716
- }
717
- function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
718
- if (round) {
719
- value += Math.sign(amount);
720
- if (value < min) value = max;
721
- let div = Math.abs(amount);
722
- if (amount > 0) value = Math.ceil(value / div) * div;
723
- else value = Math.floor(value / div) * div;
724
- if (value > max) value = min;
725
- } else {
726
- value += amount;
727
- if (value < min) value = max - (min - value - 1);
728
- else if (value > max) value = min + (value - max - 1);
729
- }
730
- return value;
731
- }
732
- function $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {
733
- let ms;
734
- if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) ms = $11d87f3f76e88657$export$5107c82f94518f5c($735220c2d4774dd3$export$e16d8520af44a096($11d87f3f76e88657$export$b21e0b124e224484(dateTime), {
735
- years: duration.years,
736
- months: duration.months,
737
- weeks: duration.weeks,
738
- days: duration.days
739
- }), dateTime.timeZone);
740
- else ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
741
- ms += duration.milliseconds || 0;
742
- ms += (duration.seconds || 0) * 1e3;
743
- ms += (duration.minutes || 0) * 6e4;
744
- ms += (duration.hours || 0) * 36e5;
745
- return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
746
- }
747
- function $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {
748
- return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
749
- }
750
- function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {
751
- switch (field) {
752
- case "hour": {
753
- let min = 0;
754
- let max = 23;
755
- if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
756
- let isPM = dateTime.hour >= 12;
757
- min = isPM ? 12 : 0;
758
- max = isPM ? 23 : 11;
759
- }
760
- let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
761
- let minDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, { hour: min }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
762
- let minAbsolute = [$11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "earlier"), $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "later")].filter((ms) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone).day === minDate.day)[0];
763
- let maxDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, { hour: max }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
764
- let maxAbsolute = [$11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "earlier"), $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "later")].filter((ms) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone).day === maxDate.day).pop();
765
- let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
766
- let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);
767
- let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;
768
- ms = $735220c2d4774dd3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $735220c2d4774dd3$var$ONE_HOUR), Math.floor(maxAbsolute / $735220c2d4774dd3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $735220c2d4774dd3$var$ONE_HOUR + remainder;
769
- return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
770
- }
771
- case "minute":
772
- case "second":
773
- case "millisecond": return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);
774
- case "era":
775
- case "year":
776
- case "month":
777
- case "day": return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac($11d87f3f76e88657$export$5107c82f94518f5c($735220c2d4774dd3$export$d52ced6badfb9a4c($11d87f3f76e88657$export$b21e0b124e224484(dateTime), field, amount, options), dateTime.timeZone), dateTime.timeZone), dateTime.calendar);
778
- default: throw new Error("Unsupported field " + field);
779
- }
780
- }
781
- function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
782
- let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
783
- let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
784
- if (res.compare(plainDateTime) === 0) return dateTime;
785
- return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac($11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation), dateTime.timeZone), dateTime.calendar);
786
- }
787
- function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
788
- return `${String(time.hour).padStart(2, "0")}:${String(time.minute).padStart(2, "0")}:${String(time.second).padStart(2, "0")}${time.millisecond ? String(time.millisecond / 1e3).slice(1) : ""}`;
789
- }
790
- function $fae977aafc393c5c$export$60dfd74aa96791bd(date) {
791
- let gregorianDate = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
792
- let year;
793
- if (gregorianDate.era === "BC") year = gregorianDate.year === 1 ? "0000" : "-" + String(Math.abs(1 - gregorianDate.year)).padStart(6, "00");
794
- else year = String(gregorianDate.year).padStart(4, "0");
795
- return `${year}-${String(gregorianDate.month).padStart(2, "0")}-${String(gregorianDate.day).padStart(2, "0")}`;
796
- }
797
- function $fae977aafc393c5c$export$4223de14708adc63(date) {
798
- return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;
799
- }
800
- function $fae977aafc393c5c$var$offsetToString(offset) {
801
- let sign = Math.sign(offset) < 0 ? "-" : "+";
802
- offset = Math.abs(offset);
803
- let offsetHours = Math.floor(offset / 36e5);
804
- let offsetMinutes = Math.floor(offset % 36e5 / 6e4);
805
- let offsetSeconds = Math.floor(offset % 36e5 % 6e4 / 1e3);
806
- let stringOffset = `${sign}${String(offsetHours).padStart(2, "0")}:${String(offsetMinutes).padStart(2, "0")}`;
807
- if (offsetSeconds !== 0) stringOffset += `:${String(offsetSeconds).padStart(2, "0")}`;
808
- return stringOffset;
809
- }
810
- function $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {
811
- return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;
812
- }
813
- //#endregion
814
- //#region ../../node_modules/.pnpm/@swc+helpers@0.5.19/node_modules/@swc/helpers/esm/_check_private_redeclaration.js
815
- function _check_private_redeclaration(obj, privateCollection) {
816
- if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
817
- }
818
- //#endregion
819
- //#region ../../node_modules/.pnpm/@swc+helpers@0.5.19/node_modules/@swc/helpers/esm/_class_private_field_init.js
820
- function _class_private_field_init(obj, privateMap, value) {
821
- _check_private_redeclaration(obj, privateMap);
822
- privateMap.set(obj, value);
823
- }
824
- //#endregion
825
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/CalendarDate.mjs
826
- function $35ea8db9cb2ccb90$var$shiftArgs(args) {
827
- let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
828
- let era;
829
- if (typeof args[0] === "string") era = args.shift();
830
- else {
831
- let eras = calendar.getEras();
832
- era = eras[eras.length - 1];
833
- }
834
- let year = args.shift();
835
- let month = args.shift();
836
- let day = args.shift();
837
- return [
838
- calendar,
839
- era,
840
- year,
841
- month,
842
- day
843
- ];
844
- }
845
- var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
846
- var $35ea8db9cb2ccb90$export$99faa760c7908e4f = class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
847
- /** Returns a copy of this date. */ copy() {
848
- if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
849
- else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
850
- }
851
- /** Returns a new `CalendarDate` with the given duration added to it. */ add(duration) {
852
- return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
853
- }
854
- /** Returns a new `CalendarDate` with the given duration subtracted from it. */ subtract(duration) {
855
- return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
856
- }
857
- /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
858
- return $735220c2d4774dd3$export$adaa4cf7ef1b65be(this, fields);
859
- }
860
- /**
861
- * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
862
- * When the resulting value reaches the limits of the field, it wraps around.
863
- */ cycle(field, amount, options) {
864
- return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
865
- }
866
- /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */ toDate(timeZone) {
867
- return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone);
868
- }
869
- /** Converts the date to an ISO 8601 formatted string. */ toString() {
870
- return $fae977aafc393c5c$export$60dfd74aa96791bd(this);
871
- }
872
- /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
873
- return $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
874
- }
875
- constructor(...args) {
876
- _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type, {
877
- writable: true,
878
- value: void 0
879
- });
880
- let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
881
- this.calendar = calendar;
882
- this.era = era;
883
- this.year = year;
884
- this.month = month;
885
- this.day = day;
886
- $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
887
- }
888
- };
889
- var $35ea8db9cb2ccb90$var$_type1 = /* @__PURE__ */ new WeakMap();
890
- var $35ea8db9cb2ccb90$export$680ea196effce5f = class $35ea8db9cb2ccb90$export$680ea196effce5f {
891
- /** Returns a copy of this time. */ copy() {
892
- return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);
893
- }
894
- /** Returns a new `Time` with the given duration added to it. */ add(duration) {
895
- return $735220c2d4774dd3$export$7ed87b6bc2506470(this, duration);
896
- }
897
- /** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {
898
- return $735220c2d4774dd3$export$fe34d3a381cd7501(this, duration);
899
- }
900
- /** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
901
- return $735220c2d4774dd3$export$e5d5e1c1822b6e56(this, fields);
902
- }
903
- /**
904
- * Returns a new `Time` with the given field adjusted by a specified amount.
905
- * When the resulting value reaches the limits of the field, it wraps around.
906
- */ cycle(field, amount, options) {
907
- return $735220c2d4774dd3$export$dd02b3e0007dfe28(this, field, amount, options);
908
- }
909
- /** Converts the time to an ISO 8601 formatted string. */ toString() {
910
- return $fae977aafc393c5c$export$f59dee82248f5ad4(this);
911
- }
912
- /** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {
913
- return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, b);
914
- }
915
- constructor(hour = 0, minute = 0, second = 0, millisecond = 0) {
916
- _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type1, {
917
- writable: true,
918
- value: void 0
919
- });
920
- this.hour = hour;
921
- this.minute = minute;
922
- this.second = second;
923
- this.millisecond = millisecond;
924
- $735220c2d4774dd3$export$7555de1e070510cb(this);
925
- }
926
- };
927
- var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
928
- var $35ea8db9cb2ccb90$export$ca871e8dbb80966f = class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
929
- /** Returns a copy of this date. */ copy() {
930
- if (this.era) return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
931
- else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
932
- }
933
- /** Returns a new `CalendarDateTime` with the given duration added to it. */ add(duration) {
934
- return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
935
- }
936
- /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */ subtract(duration) {
937
- return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
938
- }
939
- /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
940
- return $735220c2d4774dd3$export$adaa4cf7ef1b65be($735220c2d4774dd3$export$e5d5e1c1822b6e56(this, fields), fields);
941
- }
942
- /**
943
- * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
944
- * When the resulting value reaches the limits of the field, it wraps around.
945
- */ cycle(field, amount, options) {
946
- switch (field) {
947
- case "era":
948
- case "year":
949
- case "month":
950
- case "day": return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
951
- default: return $735220c2d4774dd3$export$dd02b3e0007dfe28(this, field, amount, options);
952
- }
953
- }
954
- /** Converts the date to a native JavaScript Date object in the given time zone. */ toDate(timeZone, disambiguation) {
955
- return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone, disambiguation);
956
- }
957
- /** Converts the date to an ISO 8601 formatted string. */ toString() {
958
- return $fae977aafc393c5c$export$4223de14708adc63(this);
959
- }
960
- /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
961
- let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
962
- if (res === 0) return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
963
- return res;
964
- }
965
- constructor(...args) {
966
- _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type2, {
967
- writable: true,
968
- value: void 0
969
- });
970
- let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
971
- this.calendar = calendar;
972
- this.era = era;
973
- this.year = year;
974
- this.month = month;
975
- this.day = day;
976
- this.hour = args.shift() || 0;
977
- this.minute = args.shift() || 0;
978
- this.second = args.shift() || 0;
979
- this.millisecond = args.shift() || 0;
980
- $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
981
- }
982
- };
983
- var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
984
- var $35ea8db9cb2ccb90$export$d3b7288e7994edea = class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
985
- /** Returns a copy of this date. */ copy() {
986
- if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
987
- else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
988
- }
989
- /** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {
990
- return $735220c2d4774dd3$export$96b1d28349274637(this, duration);
991
- }
992
- /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {
993
- return $735220c2d4774dd3$export$6814caac34ca03c7(this, duration);
994
- }
995
- /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {
996
- return $735220c2d4774dd3$export$31b5430eb18be4f8(this, fields, disambiguation);
997
- }
998
- /**
999
- * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
1000
- * When the resulting value reaches the limits of the field, it wraps around.
1001
- */ cycle(field, amount, options) {
1002
- return $735220c2d4774dd3$export$9a297d111fc86b79(this, field, amount, options);
1003
- }
1004
- /** Converts the date to a native JavaScript Date object. */ toDate() {
1005
- return $11d87f3f76e88657$export$83aac07b4c37b25(this);
1006
- }
1007
- /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {
1008
- return $fae977aafc393c5c$export$bf79f1ebf4b18792(this);
1009
- }
1010
- /** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {
1011
- return this.toDate().toISOString();
1012
- }
1013
- /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {
1014
- return this.toDate().getTime() - $11d87f3f76e88657$export$84c95a83c799e074(b, this.timeZone).toDate().getTime();
1015
- }
1016
- constructor(...args) {
1017
- _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type3, {
1018
- writable: true,
1019
- value: void 0
1020
- });
1021
- let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
1022
- let timeZone = args.shift();
1023
- let offset = args.shift();
1024
- this.calendar = calendar;
1025
- this.era = era;
1026
- this.year = year;
1027
- this.month = month;
1028
- this.day = day;
1029
- this.timeZone = timeZone;
1030
- this.offset = offset;
1031
- this.hour = args.shift() || 0;
1032
- this.minute = args.shift() || 0;
1033
- this.second = args.shift() || 0;
1034
- this.millisecond = args.shift() || 0;
1035
- $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
1036
- }
1037
- };
1038
- //#endregion
1039
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/JapaneseCalendar.mjs
1040
- var $62225008020f0a13$var$ERA_START_DATES = [
1041
- [
1042
- 1868,
1043
- 9,
1044
- 8
1045
- ],
1046
- [
1047
- 1912,
1048
- 7,
1049
- 30
1050
- ],
1051
- [
1052
- 1926,
1053
- 12,
1054
- 25
1055
- ],
1056
- [
1057
- 1989,
1058
- 1,
1059
- 8
1060
- ],
1061
- [
1062
- 2019,
1063
- 5,
1064
- 1
1065
- ]
1066
- ];
1067
- var $62225008020f0a13$var$ERA_END_DATES = [
1068
- [
1069
- 1912,
1070
- 7,
1071
- 29
1072
- ],
1073
- [
1074
- 1926,
1075
- 12,
1076
- 24
1077
- ],
1078
- [
1079
- 1989,
1080
- 1,
1081
- 7
1082
- ],
1083
- [
1084
- 2019,
1085
- 4,
1086
- 30
1087
- ]
1088
- ];
1089
- var $62225008020f0a13$var$ERA_ADDENDS = [
1090
- 1867,
1091
- 1911,
1092
- 1925,
1093
- 1988,
1094
- 2018
1095
- ];
1096
- var $62225008020f0a13$var$ERA_NAMES = [
1097
- "meiji",
1098
- "taisho",
1099
- "showa",
1100
- "heisei",
1101
- "reiwa"
1102
- ];
1103
- function $62225008020f0a13$var$findEraFromGregorianDate(date) {
1104
- const idx = $62225008020f0a13$var$ERA_START_DATES.findIndex(([year, month, day]) => {
1105
- if (date.year < year) return true;
1106
- if (date.year === year && date.month < month) return true;
1107
- if (date.year === year && date.month === month && date.day < day) return true;
1108
- return false;
1109
- });
1110
- if (idx === -1) return $62225008020f0a13$var$ERA_START_DATES.length - 1;
1111
- if (idx === 0) return 0;
1112
- return idx - 1;
1113
- }
1114
- function $62225008020f0a13$var$toGregorian(date) {
1115
- let eraAddend = $62225008020f0a13$var$ERA_ADDENDS[$62225008020f0a13$var$ERA_NAMES.indexOf(date.era)];
1116
- if (!eraAddend) throw new Error("Unknown era: " + date.era);
1117
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(date.year + eraAddend, date.month, date.day);
1118
- }
1119
- var $62225008020f0a13$export$b746ab2b60cdffbf = class extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1120
- fromJulianDay(jd) {
1121
- let date = super.fromJulianDay(jd);
1122
- let era = $62225008020f0a13$var$findEraFromGregorianDate(date);
1123
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, $62225008020f0a13$var$ERA_NAMES[era], date.year - $62225008020f0a13$var$ERA_ADDENDS[era], date.month, date.day);
1124
- }
1125
- toJulianDay(date) {
1126
- return super.toJulianDay($62225008020f0a13$var$toGregorian(date));
1127
- }
1128
- balanceDate(date) {
1129
- let gregorianDate = $62225008020f0a13$var$toGregorian(date);
1130
- let era = $62225008020f0a13$var$findEraFromGregorianDate(gregorianDate);
1131
- if ($62225008020f0a13$var$ERA_NAMES[era] !== date.era) {
1132
- date.era = $62225008020f0a13$var$ERA_NAMES[era];
1133
- date.year = gregorianDate.year - $62225008020f0a13$var$ERA_ADDENDS[era];
1134
- }
1135
- this.constrainDate(date);
1136
- }
1137
- constrainDate(date) {
1138
- let idx = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1139
- let end = $62225008020f0a13$var$ERA_END_DATES[idx];
1140
- if (end != null) {
1141
- let [endYear, endMonth, endDay] = end;
1142
- let maxYear = endYear - $62225008020f0a13$var$ERA_ADDENDS[idx];
1143
- date.year = Math.max(1, Math.min(maxYear, date.year));
1144
- if (date.year === maxYear) {
1145
- date.month = Math.min(endMonth, date.month);
1146
- if (date.month === endMonth) date.day = Math.min(endDay, date.day);
1147
- }
1148
- }
1149
- if (date.year === 1 && idx >= 0) {
1150
- let [, startMonth, startDay] = $62225008020f0a13$var$ERA_START_DATES[idx];
1151
- date.month = Math.max(startMonth, date.month);
1152
- if (date.month === startMonth) date.day = Math.max(startDay, date.day);
1153
- }
1154
- }
1155
- getEras() {
1156
- return $62225008020f0a13$var$ERA_NAMES;
1157
- }
1158
- getYearsInEra(date) {
1159
- let era = $62225008020f0a13$var$ERA_NAMES.indexOf(date.era);
1160
- let cur = $62225008020f0a13$var$ERA_START_DATES[era];
1161
- let next = $62225008020f0a13$var$ERA_START_DATES[era + 1];
1162
- if (next == null) return 9999 - cur[0] + 1;
1163
- let years = next[0] - cur[0];
1164
- if (date.month < next[1] || date.month === next[1] && date.day < next[2]) years++;
1165
- return years;
1166
- }
1167
- getDaysInMonth(date) {
1168
- return super.getDaysInMonth($62225008020f0a13$var$toGregorian(date));
1169
- }
1170
- getMinimumMonthInYear(date) {
1171
- let start = $62225008020f0a13$var$getMinimums(date);
1172
- return start ? start[1] : 1;
1173
- }
1174
- getMinimumDayInMonth(date) {
1175
- let start = $62225008020f0a13$var$getMinimums(date);
1176
- return start && date.month === start[1] ? start[2] : 1;
1177
- }
1178
- constructor(...args) {
1179
- super(...args), this.identifier = "japanese";
1180
- }
1181
- };
1182
- function $62225008020f0a13$var$getMinimums(date) {
1183
- if (date.year === 1) return $62225008020f0a13$var$ERA_START_DATES[$62225008020f0a13$var$ERA_NAMES.indexOf(date.era)];
1184
- }
1185
- //#endregion
1186
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/BuddhistCalendar.mjs
1187
- var $8d73d47422ca7302$var$BUDDHIST_ERA_START = -543;
1188
- var $8d73d47422ca7302$export$42d20a78301dee44 = class extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1189
- fromJulianDay(jd) {
1190
- let gregorianDate = super.fromJulianDay(jd);
1191
- let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(gregorianDate.era, gregorianDate.year);
1192
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year - $8d73d47422ca7302$var$BUDDHIST_ERA_START, gregorianDate.month, gregorianDate.day);
1193
- }
1194
- toJulianDay(date) {
1195
- return super.toJulianDay($8d73d47422ca7302$var$toGregorian(date));
1196
- }
1197
- getEras() {
1198
- return ["BE"];
1199
- }
1200
- getDaysInMonth(date) {
1201
- return super.getDaysInMonth($8d73d47422ca7302$var$toGregorian(date));
1202
- }
1203
- balanceDate() {}
1204
- constructor(...args) {
1205
- super(...args), this.identifier = "buddhist";
1206
- }
1207
- };
1208
- function $8d73d47422ca7302$var$toGregorian(date) {
1209
- let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(date.year + $8d73d47422ca7302$var$BUDDHIST_ERA_START);
1210
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, date.month, date.day);
1211
- }
1212
- //#endregion
1213
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/TaiwanCalendar.mjs
1214
- var $5f31bd6f0c8940b2$var$TAIWAN_ERA_START = 1911;
1215
- function $5f31bd6f0c8940b2$var$gregorianYear(date) {
1216
- return date.era === "minguo" ? date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START : 1 - date.year + $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1217
- }
1218
- function $5f31bd6f0c8940b2$var$gregorianToTaiwan(year) {
1219
- let y = year - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1220
- if (y > 0) return ["minguo", y];
1221
- else return ["before_minguo", 1 - y];
1222
- }
1223
- var $5f31bd6f0c8940b2$export$65e01080afcb0799 = class extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1224
- fromJulianDay(jd) {
1225
- let date = super.fromJulianDay(jd);
1226
- let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan($3b62074eb05584b2$export$c36e0ecb2d4fa69d(date.era, date.year));
1227
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, date.month, date.day);
1228
- }
1229
- toJulianDay(date) {
1230
- return super.toJulianDay($5f31bd6f0c8940b2$var$toGregorian(date));
1231
- }
1232
- getEras() {
1233
- return ["before_minguo", "minguo"];
1234
- }
1235
- balanceDate(date) {
1236
- let [era, year] = $5f31bd6f0c8940b2$var$gregorianToTaiwan($5f31bd6f0c8940b2$var$gregorianYear(date));
1237
- date.era = era;
1238
- date.year = year;
1239
- }
1240
- isInverseEra(date) {
1241
- return date.era === "before_minguo";
1242
- }
1243
- getDaysInMonth(date) {
1244
- return super.getDaysInMonth($5f31bd6f0c8940b2$var$toGregorian(date));
1245
- }
1246
- getYearsInEra(date) {
1247
- return date.era === "before_minguo" ? 9999 : 9999 - $5f31bd6f0c8940b2$var$TAIWAN_ERA_START;
1248
- }
1249
- constructor(...args) {
1250
- super(...args), this.identifier = "roc";
1251
- }
1252
- };
1253
- function $5f31bd6f0c8940b2$var$toGregorian(date) {
1254
- let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c($5f31bd6f0c8940b2$var$gregorianYear(date));
1255
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, date.month, date.day);
1256
- }
1257
- //#endregion
1258
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/PersianCalendar.mjs
1259
- var $f3ed2e4472ae7e25$var$PERSIAN_EPOCH = 1948320;
1260
- var $f3ed2e4472ae7e25$var$MONTH_START = [
1261
- 0,
1262
- 31,
1263
- 62,
1264
- 93,
1265
- 124,
1266
- 155,
1267
- 186,
1268
- 216,
1269
- 246,
1270
- 276,
1271
- 306,
1272
- 336
1273
- ];
1274
- var $f3ed2e4472ae7e25$export$37fccdbfd14c5939 = class {
1275
- fromJulianDay(jd) {
1276
- let daysSinceEpoch = jd - $f3ed2e4472ae7e25$var$PERSIAN_EPOCH;
1277
- let year = 1 + Math.floor((33 * daysSinceEpoch + 3) / 12053);
1278
- let dayOfYear = daysSinceEpoch - (365 * (year - 1) + Math.floor((8 * year + 21) / 33));
1279
- let month = dayOfYear < 216 ? Math.floor(dayOfYear / 31) : Math.floor((dayOfYear - 6) / 30);
1280
- let day = dayOfYear - $f3ed2e4472ae7e25$var$MONTH_START[month] + 1;
1281
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year, month + 1, day);
1282
- }
1283
- toJulianDay(date) {
1284
- let jd = $f3ed2e4472ae7e25$var$PERSIAN_EPOCH - 1 + 365 * (date.year - 1) + Math.floor((8 * date.year + 21) / 33);
1285
- jd += $f3ed2e4472ae7e25$var$MONTH_START[date.month - 1];
1286
- jd += date.day;
1287
- return jd;
1288
- }
1289
- getMonthsInYear() {
1290
- return 12;
1291
- }
1292
- getDaysInMonth(date) {
1293
- if (date.month <= 6) return 31;
1294
- if (date.month <= 11) return 30;
1295
- return $2b4dce13dd5a17fa$export$842a2cf37af977e1(25 * date.year + 11, 33) < 8 ? 30 : 29;
1296
- }
1297
- getMaximumMonthsInYear() {
1298
- return 12;
1299
- }
1300
- getMaximumDaysInMonth() {
1301
- return 31;
1302
- }
1303
- getEras() {
1304
- return ["AP"];
1305
- }
1306
- getYearsInEra() {
1307
- return 9377;
1308
- }
1309
- constructor() {
1310
- this.identifier = "persian";
1311
- }
1312
- };
1313
- //#endregion
1314
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/IndianCalendar.mjs
1315
- var $82c358003bdda0a8$var$INDIAN_ERA_START = 78;
1316
- var $82c358003bdda0a8$var$INDIAN_YEAR_START = 80;
1317
- var $82c358003bdda0a8$export$39f31c639fa15726 = class extends $3b62074eb05584b2$export$80ee6245ec4f29ec {
1318
- fromJulianDay(jd) {
1319
- let date = super.fromJulianDay(jd);
1320
- let indianYear = date.year - $82c358003bdda0a8$var$INDIAN_ERA_START;
1321
- let yDay = jd - $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, 1, 1);
1322
- let leapMonth;
1323
- if (yDay < $82c358003bdda0a8$var$INDIAN_YEAR_START) {
1324
- indianYear--;
1325
- leapMonth = $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year - 1) ? 31 : 30;
1326
- yDay += leapMonth + 155 + 90 + 10;
1327
- } else {
1328
- leapMonth = $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 31 : 30;
1329
- yDay -= $82c358003bdda0a8$var$INDIAN_YEAR_START;
1330
- }
1331
- let indianMonth;
1332
- let indianDay;
1333
- if (yDay < leapMonth) {
1334
- indianMonth = 1;
1335
- indianDay = yDay + 1;
1336
- } else {
1337
- let mDay = yDay - leapMonth;
1338
- if (mDay < 155) {
1339
- indianMonth = Math.floor(mDay / 31) + 2;
1340
- indianDay = mDay % 31 + 1;
1341
- } else {
1342
- mDay -= 155;
1343
- indianMonth = Math.floor(mDay / 30) + 7;
1344
- indianDay = mDay % 30 + 1;
1345
- }
1346
- }
1347
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, indianYear, indianMonth, indianDay);
1348
- }
1349
- toJulianDay(date) {
1350
- let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(date.year + $82c358003bdda0a8$var$INDIAN_ERA_START);
1351
- let leapMonth;
1352
- let jd;
1353
- if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) {
1354
- leapMonth = 31;
1355
- jd = $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 21);
1356
- } else {
1357
- leapMonth = 30;
1358
- jd = $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 22);
1359
- }
1360
- if (date.month === 1) return jd + date.day - 1;
1361
- jd += leapMonth + Math.min(date.month - 2, 5) * 31;
1362
- if (date.month >= 8) jd += (date.month - 7) * 30;
1363
- jd += date.day - 1;
1364
- return jd;
1365
- }
1366
- getDaysInMonth(date) {
1367
- if (date.month === 1 && $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year + $82c358003bdda0a8$var$INDIAN_ERA_START)) return 31;
1368
- if (date.month >= 2 && date.month <= 6) return 31;
1369
- return 30;
1370
- }
1371
- getYearsInEra() {
1372
- return 9919;
1373
- }
1374
- getEras() {
1375
- return ["saka"];
1376
- }
1377
- balanceDate() {}
1378
- constructor(...args) {
1379
- super(...args), this.identifier = "indian";
1380
- }
1381
- };
1382
- //#endregion
1383
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/IslamicCalendar.mjs
1384
- var $f2f3e0e3a817edbd$var$CIVIL_EPOC = 1948440;
1385
- var $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC = 1948439;
1386
- var $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START = 1300;
1387
- var $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END = 1600;
1388
- var $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS = 460322;
1389
- function $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, day) {
1390
- return day + Math.ceil(29.5 * (month - 1)) + (year - 1) * 354 + Math.floor((3 + 11 * year) / 30) + epoch - 1;
1391
- }
1392
- function $f2f3e0e3a817edbd$var$julianDayToIslamic(calendar, epoch, jd) {
1393
- let year = Math.floor((30 * (jd - epoch) + 10646) / 10631);
1394
- let month = Math.min(12, Math.ceil((jd - (29 + $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, 1, 1))) / 29.5) + 1);
1395
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(calendar, year, month, jd - $f2f3e0e3a817edbd$var$islamicToJulianDay(epoch, year, month, 1) + 1);
1396
- }
1397
- function $f2f3e0e3a817edbd$var$isLeapYear(year) {
1398
- return (14 + 11 * year) % 30 < 11;
1399
- }
1400
- var $f2f3e0e3a817edbd$export$2066795aadd37bfc = class {
1401
- fromJulianDay(jd) {
1402
- return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$CIVIL_EPOC, jd);
1403
- }
1404
- toJulianDay(date) {
1405
- return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$CIVIL_EPOC, date.year, date.month, date.day);
1406
- }
1407
- getDaysInMonth(date) {
1408
- let length = 29 + date.month % 2;
1409
- if (date.month === 12 && $f2f3e0e3a817edbd$var$isLeapYear(date.year)) length++;
1410
- return length;
1411
- }
1412
- getMonthsInYear() {
1413
- return 12;
1414
- }
1415
- getDaysInYear(date) {
1416
- return $f2f3e0e3a817edbd$var$isLeapYear(date.year) ? 355 : 354;
1417
- }
1418
- getMaximumMonthsInYear() {
1419
- return 12;
1420
- }
1421
- getMaximumDaysInMonth() {
1422
- return 30;
1423
- }
1424
- getYearsInEra() {
1425
- return 9665;
1426
- }
1427
- getEras() {
1428
- return ["AH"];
1429
- }
1430
- constructor() {
1431
- this.identifier = "islamic-civil";
1432
- }
1433
- };
1434
- var $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 = class extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1435
- fromJulianDay(jd) {
1436
- return $f2f3e0e3a817edbd$var$julianDayToIslamic(this, $f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, jd);
1437
- }
1438
- toJulianDay(date) {
1439
- return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC, date.year, date.month, date.day);
1440
- }
1441
- constructor(...args) {
1442
- super(...args), this.identifier = "islamic-tbla";
1443
- }
1444
- };
1445
- var $f2f3e0e3a817edbd$var$UMALQURA_DATA = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
1446
- var $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH;
1447
- var $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE;
1448
- function $f2f3e0e3a817edbd$var$umalquraYearStart(year) {
1449
- return $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS + $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START];
1450
- }
1451
- function $f2f3e0e3a817edbd$var$umalquraMonthLength(year, month) {
1452
- let idx = year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START;
1453
- let mask = 1 << 11 - (month - 1);
1454
- if (($f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH[idx] & mask) === 0) return 29;
1455
- else return 30;
1456
- }
1457
- function $f2f3e0e3a817edbd$var$umalquraMonthStart(year, month) {
1458
- let day = $f2f3e0e3a817edbd$var$umalquraYearStart(year);
1459
- for (let i = 1; i < month; i++) day += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);
1460
- return day;
1461
- }
1462
- function $f2f3e0e3a817edbd$var$umalquraYearLength(year) {
1463
- return $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year + 1 - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START] - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START];
1464
- }
1465
- var $f2f3e0e3a817edbd$export$5baab4758c231076 = class extends $f2f3e0e3a817edbd$export$2066795aadd37bfc {
1466
- fromJulianDay(jd) {
1467
- let days = jd - $f2f3e0e3a817edbd$var$CIVIL_EPOC;
1468
- let startDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_START);
1469
- let endDays = $f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END);
1470
- if (days < startDays || days > endDays) return super.fromJulianDay(jd);
1471
- else {
1472
- let y = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START - 1;
1473
- let m = 1;
1474
- let d = 1;
1475
- while (d > 0) {
1476
- y++;
1477
- d = days - $f2f3e0e3a817edbd$var$umalquraYearStart(y) + 1;
1478
- let yearLength = $f2f3e0e3a817edbd$var$umalquraYearLength(y);
1479
- if (d === yearLength) {
1480
- m = 12;
1481
- break;
1482
- } else if (d < yearLength) {
1483
- let monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);
1484
- m = 1;
1485
- while (d > monthLength) {
1486
- d -= monthLength;
1487
- m++;
1488
- monthLength = $f2f3e0e3a817edbd$var$umalquraMonthLength(y, m);
1489
- }
1490
- break;
1491
- }
1492
- }
1493
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, y, m, days - $f2f3e0e3a817edbd$var$umalquraMonthStart(y, m) + 1);
1494
- }
1495
- }
1496
- toJulianDay(date) {
1497
- if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.toJulianDay(date);
1498
- return $f2f3e0e3a817edbd$var$CIVIL_EPOC + $f2f3e0e3a817edbd$var$umalquraMonthStart(date.year, date.month) + (date.day - 1);
1499
- }
1500
- getDaysInMonth(date) {
1501
- if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInMonth(date);
1502
- return $f2f3e0e3a817edbd$var$umalquraMonthLength(date.year, date.month);
1503
- }
1504
- getDaysInYear(date) {
1505
- if (date.year < $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START || date.year > $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END) return super.getDaysInYear(date);
1506
- return $f2f3e0e3a817edbd$var$umalquraYearLength(date.year);
1507
- }
1508
- constructor() {
1509
- super(), this.identifier = "islamic-umalqura";
1510
- if (!$f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH) $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH = new Uint16Array(Uint8Array.from(atob($f2f3e0e3a817edbd$var$UMALQURA_DATA), (c) => c.charCodeAt(0)).buffer);
1511
- if (!$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE) {
1512
- $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE = new Uint32Array($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START + 1);
1513
- let yearStart = 0;
1514
- for (let year = $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START; year <= $f2f3e0e3a817edbd$var$UMALQURA_YEAR_END; year++) {
1515
- $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[year - $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START] = yearStart;
1516
- for (let i = 1; i <= 12; i++) yearStart += $f2f3e0e3a817edbd$var$umalquraMonthLength(year, i);
1517
- }
1518
- }
1519
- }
1520
- };
1521
- //#endregion
1522
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/HebrewCalendar.mjs
1523
- var $7c5f6fbf42389787$var$HEBREW_EPOCH = 347997;
1524
- var $7c5f6fbf42389787$var$HOUR_PARTS = 1080;
1525
- var $7c5f6fbf42389787$var$DAY_PARTS = 24 * $7c5f6fbf42389787$var$HOUR_PARTS;
1526
- var $7c5f6fbf42389787$var$MONTH_DAYS = 29;
1527
- var $7c5f6fbf42389787$var$MONTH_FRACT = 12 * $7c5f6fbf42389787$var$HOUR_PARTS + 793;
1528
- var $7c5f6fbf42389787$var$MONTH_PARTS = $7c5f6fbf42389787$var$MONTH_DAYS * $7c5f6fbf42389787$var$DAY_PARTS + $7c5f6fbf42389787$var$MONTH_FRACT;
1529
- function $7c5f6fbf42389787$var$isLeapYear(year) {
1530
- return $2b4dce13dd5a17fa$export$842a2cf37af977e1(year * 7 + 1, 19) < 7;
1531
- }
1532
- function $7c5f6fbf42389787$var$hebrewDelay1(year) {
1533
- let months = Math.floor((235 * year - 234) / 19);
1534
- let parts = 12084 + 13753 * months;
1535
- let day = months * 29 + Math.floor(parts / 25920);
1536
- if ($2b4dce13dd5a17fa$export$842a2cf37af977e1(3 * (day + 1), 7) < 3) day += 1;
1537
- return day;
1538
- }
1539
- function $7c5f6fbf42389787$var$hebrewDelay2(year) {
1540
- let last = $7c5f6fbf42389787$var$hebrewDelay1(year - 1);
1541
- let present = $7c5f6fbf42389787$var$hebrewDelay1(year);
1542
- if ($7c5f6fbf42389787$var$hebrewDelay1(year + 1) - present === 356) return 2;
1543
- if (present - last === 382) return 1;
1544
- return 0;
1545
- }
1546
- function $7c5f6fbf42389787$var$startOfYear(year) {
1547
- return $7c5f6fbf42389787$var$hebrewDelay1(year) + $7c5f6fbf42389787$var$hebrewDelay2(year);
1548
- }
1549
- function $7c5f6fbf42389787$var$getDaysInYear(year) {
1550
- return $7c5f6fbf42389787$var$startOfYear(year + 1) - $7c5f6fbf42389787$var$startOfYear(year);
1551
- }
1552
- function $7c5f6fbf42389787$var$getYearType(year) {
1553
- let yearLength = $7c5f6fbf42389787$var$getDaysInYear(year);
1554
- if (yearLength > 380) yearLength -= 30;
1555
- switch (yearLength) {
1556
- case 353: return 0;
1557
- case 354: return 1;
1558
- case 355: return 2;
1559
- }
1560
- }
1561
- function $7c5f6fbf42389787$var$getDaysInMonth(year, month) {
1562
- if (month >= 6 && !$7c5f6fbf42389787$var$isLeapYear(year)) month++;
1563
- if (month === 4 || month === 7 || month === 9 || month === 11 || month === 13) return 29;
1564
- let yearType = $7c5f6fbf42389787$var$getYearType(year);
1565
- if (month === 2) return yearType === 2 ? 30 : 29;
1566
- if (month === 3) return yearType === 0 ? 29 : 30;
1567
- if (month === 6) return $7c5f6fbf42389787$var$isLeapYear(year) ? 30 : 0;
1568
- return 30;
1569
- }
1570
- var $7c5f6fbf42389787$export$ca405048b8fb5af = class {
1571
- fromJulianDay(jd) {
1572
- let d = jd - $7c5f6fbf42389787$var$HEBREW_EPOCH;
1573
- let m = d * $7c5f6fbf42389787$var$DAY_PARTS / $7c5f6fbf42389787$var$MONTH_PARTS;
1574
- let year = Math.floor((19 * m + 234) / 235) + 1;
1575
- let ys = $7c5f6fbf42389787$var$startOfYear(year);
1576
- let dayOfYear = Math.floor(d - ys);
1577
- while (dayOfYear < 1) {
1578
- year--;
1579
- ys = $7c5f6fbf42389787$var$startOfYear(year);
1580
- dayOfYear = Math.floor(d - ys);
1581
- }
1582
- let month = 1;
1583
- let monthStart = 0;
1584
- while (monthStart < dayOfYear) {
1585
- monthStart += $7c5f6fbf42389787$var$getDaysInMonth(year, month);
1586
- month++;
1587
- }
1588
- month--;
1589
- monthStart -= $7c5f6fbf42389787$var$getDaysInMonth(year, month);
1590
- let day = dayOfYear - monthStart;
1591
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, year, month, day);
1592
- }
1593
- toJulianDay(date) {
1594
- let jd = $7c5f6fbf42389787$var$startOfYear(date.year);
1595
- for (let month = 1; month < date.month; month++) jd += $7c5f6fbf42389787$var$getDaysInMonth(date.year, month);
1596
- return jd + date.day + $7c5f6fbf42389787$var$HEBREW_EPOCH;
1597
- }
1598
- getDaysInMonth(date) {
1599
- return $7c5f6fbf42389787$var$getDaysInMonth(date.year, date.month);
1600
- }
1601
- getMonthsInYear(date) {
1602
- return $7c5f6fbf42389787$var$isLeapYear(date.year) ? 13 : 12;
1603
- }
1604
- getDaysInYear(date) {
1605
- return $7c5f6fbf42389787$var$getDaysInYear(date.year);
1606
- }
1607
- getMaximumMonthsInYear() {
1608
- return 13;
1609
- }
1610
- getMaximumDaysInMonth() {
1611
- return 30;
1612
- }
1613
- getYearsInEra() {
1614
- return 9999;
1615
- }
1616
- getEras() {
1617
- return ["AM"];
1618
- }
1619
- balanceYearMonth(date, previousDate) {
1620
- if (previousDate.year !== date.year) {
1621
- if ($7c5f6fbf42389787$var$isLeapYear(previousDate.year) && !$7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month--;
1622
- else if (!$7c5f6fbf42389787$var$isLeapYear(previousDate.year) && $7c5f6fbf42389787$var$isLeapYear(date.year) && previousDate.month > 6) date.month++;
1623
- }
1624
- }
1625
- constructor() {
1626
- this.identifier = "hebrew";
1627
- }
1628
- };
1629
- //#endregion
1630
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/EthiopicCalendar.mjs
1631
- var $b956b2d7a6cf451f$var$ETHIOPIC_EPOCH = 1723856;
1632
- var $b956b2d7a6cf451f$var$COPTIC_EPOCH = 1824665;
1633
- var $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA = 5500;
1634
- function $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, day) {
1635
- return epoch + 365 * year + Math.floor(year / 4) + 30 * (month - 1) + day - 1;
1636
- }
1637
- function $b956b2d7a6cf451f$var$julianDayToCE(epoch, jd) {
1638
- let year = Math.floor(4 * (jd - epoch) / 1461);
1639
- let month = 1 + Math.floor((jd - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, 1, 1)) / 30);
1640
- return [
1641
- year,
1642
- month,
1643
- jd + 1 - $b956b2d7a6cf451f$var$ceToJulianDay(epoch, year, month, 1)
1644
- ];
1645
- }
1646
- function $b956b2d7a6cf451f$var$getLeapDay(year) {
1647
- return Math.floor(year % 4 / 3);
1648
- }
1649
- function $b956b2d7a6cf451f$var$getDaysInMonth(year, month) {
1650
- if (month % 13 !== 0) return 30;
1651
- else return $b956b2d7a6cf451f$var$getLeapDay(year) + 5;
1652
- }
1653
- var $b956b2d7a6cf451f$export$26ba6eab5e20cd7d = class {
1654
- fromJulianDay(jd) {
1655
- let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
1656
- let era = "AM";
1657
- if (year <= 0) {
1658
- era = "AA";
1659
- year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1660
- }
1661
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, month, day);
1662
- }
1663
- toJulianDay(date) {
1664
- let year = date.year;
1665
- if (date.era === "AA") year -= $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1666
- return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, year, date.month, date.day);
1667
- }
1668
- getDaysInMonth(date) {
1669
- return $b956b2d7a6cf451f$var$getDaysInMonth(date.year, date.month);
1670
- }
1671
- getMonthsInYear() {
1672
- return 13;
1673
- }
1674
- getDaysInYear(date) {
1675
- return 365 + $b956b2d7a6cf451f$var$getLeapDay(date.year);
1676
- }
1677
- getMaximumMonthsInYear() {
1678
- return 13;
1679
- }
1680
- getMaximumDaysInMonth() {
1681
- return 30;
1682
- }
1683
- getYearsInEra(date) {
1684
- return date.era === "AA" ? 9999 : 9991;
1685
- }
1686
- getEras() {
1687
- return ["AA", "AM"];
1688
- }
1689
- constructor() {
1690
- this.identifier = "ethiopic";
1691
- }
1692
- };
1693
- var $b956b2d7a6cf451f$export$d72e0c37005a4914 = class extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1694
- fromJulianDay(jd) {
1695
- let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH, jd);
1696
- year += $b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA;
1697
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, "AA", year, month, day);
1698
- }
1699
- getEras() {
1700
- return ["AA"];
1701
- }
1702
- getYearsInEra() {
1703
- return 9999;
1704
- }
1705
- constructor(...args) {
1706
- super(...args), this.identifier = "ethioaa";
1707
- }
1708
- };
1709
- var $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 = class extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d {
1710
- fromJulianDay(jd) {
1711
- let [year, month, day] = $b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$COPTIC_EPOCH, jd);
1712
- let era = "CE";
1713
- if (year <= 0) {
1714
- era = "BCE";
1715
- year = 1 - year;
1716
- }
1717
- return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this, era, year, month, day);
1718
- }
1719
- toJulianDay(date) {
1720
- let year = date.year;
1721
- if (date.era === "BCE") year = 1 - year;
1722
- return $b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$COPTIC_EPOCH, year, date.month, date.day);
1723
- }
1724
- getDaysInMonth(date) {
1725
- let year = date.year;
1726
- if (date.era === "BCE") year = 1 - year;
1727
- return $b956b2d7a6cf451f$var$getDaysInMonth(year, date.month);
1728
- }
1729
- isInverseEra(date) {
1730
- return date.era === "BCE";
1731
- }
1732
- balanceDate(date) {
1733
- if (date.year <= 0) {
1734
- date.era = date.era === "BCE" ? "CE" : "BCE";
1735
- date.year = 1 - date.year;
1736
- }
1737
- }
1738
- getEras() {
1739
- return ["BCE", "CE"];
1740
- }
1741
- getYearsInEra(date) {
1742
- return date.era === "BCE" ? 9999 : 9715;
1743
- }
1744
- constructor(...args) {
1745
- super(...args), this.identifier = "coptic";
1746
- }
1747
- };
1748
- //#endregion
1749
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/createCalendar.mjs
1750
- function $64244302c3013299$export$dd0bbc9b26defe37(name) {
1751
- switch (name) {
1752
- case "buddhist": return new $8d73d47422ca7302$export$42d20a78301dee44();
1753
- case "ethiopic": return new $b956b2d7a6cf451f$export$26ba6eab5e20cd7d();
1754
- case "ethioaa": return new $b956b2d7a6cf451f$export$d72e0c37005a4914();
1755
- case "coptic": return new $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1();
1756
- case "hebrew": return new $7c5f6fbf42389787$export$ca405048b8fb5af();
1757
- case "indian": return new $82c358003bdda0a8$export$39f31c639fa15726();
1758
- case "islamic-civil": return new $f2f3e0e3a817edbd$export$2066795aadd37bfc();
1759
- case "islamic-tbla": return new $f2f3e0e3a817edbd$export$37f0887f2f9d22f7();
1760
- case "islamic-umalqura": return new $f2f3e0e3a817edbd$export$5baab4758c231076();
1761
- case "japanese": return new $62225008020f0a13$export$b746ab2b60cdffbf();
1762
- case "persian": return new $f3ed2e4472ae7e25$export$37fccdbfd14c5939();
1763
- case "roc": return new $5f31bd6f0c8940b2$export$65e01080afcb0799();
1764
- default: return new $3b62074eb05584b2$export$80ee6245ec4f29ec();
1765
- }
1766
- }
1767
- //#endregion
1768
- //#region ../../node_modules/.pnpm/@internationalized+date@3.12.0/node_modules/@internationalized/date/dist/DateFormatter.mjs
1769
- var $fb18d541ea1ad717$var$formatterCache = /* @__PURE__ */ new Map();
1770
- var $fb18d541ea1ad717$export$ad991b66133851cf = class {
1771
- /** Formats a date as a string according to the locale and format options passed to the constructor. */ format(value) {
1772
- return this.formatter.format(value);
1773
- }
1774
- /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */ formatToParts(value) {
1775
- return this.formatter.formatToParts(value);
1776
- }
1777
- /** Formats a date range as a string. */ formatRange(start, end) {
1778
- if (typeof this.formatter.formatRange === "function") return this.formatter.formatRange(start, end);
1779
- if (end < start) throw new RangeError("End date must be >= start date");
1780
- return `${this.formatter.format(start)} \u{2013} ${this.formatter.format(end)}`;
1781
- }
1782
- /** Formats a date range as an array of parts. */ formatRangeToParts(start, end) {
1783
- if (typeof this.formatter.formatRangeToParts === "function") return this.formatter.formatRangeToParts(start, end);
1784
- if (end < start) throw new RangeError("End date must be >= start date");
1785
- let startParts = this.formatter.formatToParts(start);
1786
- let endParts = this.formatter.formatToParts(end);
1787
- return [
1788
- ...startParts.map((p) => ({
1789
- ...p,
1790
- source: "startRange"
1791
- })),
1792
- {
1793
- type: "literal",
1794
- value: " – ",
1795
- source: "shared"
1796
- },
1797
- ...endParts.map((p) => ({
1798
- ...p,
1799
- source: "endRange"
1800
- }))
1801
- ];
1802
- }
1803
- /** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {
1804
- let resolvedOptions = this.formatter.resolvedOptions();
1805
- if ($fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()) {
1806
- if (!this.resolvedHourCycle) this.resolvedHourCycle = $fb18d541ea1ad717$var$getResolvedHourCycle(resolvedOptions.locale, this.options);
1807
- resolvedOptions.hourCycle = this.resolvedHourCycle;
1808
- resolvedOptions.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12";
1809
- }
1810
- if (resolvedOptions.calendar === "ethiopic-amete-alem") resolvedOptions.calendar = "ethioaa";
1811
- return resolvedOptions;
1812
- }
1813
- constructor(locale, options = {}) {
1814
- this.formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options);
1815
- this.options = options;
1816
- }
1817
- };
1818
- var $fb18d541ea1ad717$var$hour12Preferences = {
1819
- true: { ja: "h11" },
1820
- false: {}
1821
- };
1822
- function $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options = {}) {
1823
- if (typeof options.hour12 === "boolean" && $fb18d541ea1ad717$var$hasBuggyHour12Behavior()) {
1824
- options = { ...options };
1825
- let pref = $fb18d541ea1ad717$var$hour12Preferences[String(options.hour12)][locale.split("-")[0]];
1826
- let defaultHourCycle = options.hour12 ? "h12" : "h23";
1827
- options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;
1828
- delete options.hour12;
1829
- }
1830
- let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
1831
- if ($fb18d541ea1ad717$var$formatterCache.has(cacheKey)) return $fb18d541ea1ad717$var$formatterCache.get(cacheKey);
1832
- let numberFormatter = new Intl.DateTimeFormat(locale, options);
1833
- $fb18d541ea1ad717$var$formatterCache.set(cacheKey, numberFormatter);
1834
- return numberFormatter;
1835
- }
1836
- var $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = null;
1837
- function $fb18d541ea1ad717$var$hasBuggyHour12Behavior() {
1838
- if ($fb18d541ea1ad717$var$_hasBuggyHour12Behavior == null) $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat("en-US", {
1839
- hour: "numeric",
1840
- hour12: false
1841
- }).format(new Date(2020, 2, 3, 0)) === "24";
1842
- return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior;
1843
- }
1844
- var $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = null;
1845
- function $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle() {
1846
- if ($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle == null) $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat("fr", {
1847
- hour: "numeric",
1848
- hour12: false
1849
- }).resolvedOptions().hourCycle === "h12";
1850
- return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle;
1851
- }
1852
- function $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {
1853
- if (!options.timeStyle && !options.hour) return void 0;
1854
- locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, "");
1855
- locale += (locale.includes("-u-") ? "" : "-u") + "-nu-latn";
1856
- let formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, {
1857
- ...options,
1858
- timeZone: void 0
1859
- });
1860
- let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p) => p.type === "hour").value, 10);
1861
- let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p) => p.type === "hour").value, 10);
1862
- if (min === 0 && max === 23) return "h23";
1863
- if (min === 24 && max === 23) return "h24";
1864
- if (min === 0 && max === 11) return "h11";
1865
- if (min === 12 && max === 11) return "h12";
1866
- throw new Error("Unexpected hour cycle result");
1867
- }
1868
- //#endregion
1869
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/comparators.js
1870
- /**
1871
- * Given a `DateValue` object, convert it to a native `Date` object.
1872
- * If a timezone is provided, the date will be converted to that timezone.
1873
- * If no timezone is provided, the date will be converted to the local timezone.
1874
- */
1875
- function toDate(dateValue, tz = $14e0f24ef4ac5c92$export$aa8b41735afcabd2()) {
1876
- if (isZonedDateTime(dateValue)) return dateValue.toDate();
1877
- else return dateValue.toDate(tz);
1878
- }
1879
- function isCalendarDateTime(dateValue) {
1880
- return dateValue instanceof $35ea8db9cb2ccb90$export$ca871e8dbb80966f;
1881
- }
1882
- function isZonedDateTime(dateValue) {
1883
- return dateValue instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea;
1884
- }
1885
- function hasTime(dateValue) {
1886
- return isCalendarDateTime(dateValue) || isZonedDateTime(dateValue);
1887
- }
1888
- /**
1889
- * Given a date, return the number of days in the month.
1890
- */
1891
- function getDaysInMonth(date) {
1892
- if (date instanceof Date) {
1893
- const year = date.getFullYear();
1894
- const month = date.getMonth() + 1;
1895
- /**
1896
- * By using zero as the day, we get the
1897
- * last day of the previous month, which
1898
- * is the month we originally passed in.
1899
- */
1900
- return new Date(year, month, 0).getDate();
1901
- } else return date.set({ day: 100 }).day;
1902
- }
1903
- /**
1904
- * Determine if a date is before the reference date.
1905
- * @param dateToCompare - is this date before the `referenceDate`
1906
- * @param referenceDate - is the `dateToCompare` before this date
1907
- *
1908
- * @see {@link isBeforeOrSame} for inclusive
1909
- */
1910
- function isBefore(dateToCompare, referenceDate) {
1911
- return dateToCompare.compare(referenceDate) < 0;
1912
- }
1913
- /**
1914
- * Determine if a date is after the reference date.
1915
- * @param dateToCompare - is this date after the `referenceDate`
1916
- * @param referenceDate - is the `dateToCompare` after this date
1917
- *
1918
- * @see {@link isAfterOrSame} for inclusive
1919
- */
1920
- function isAfter(dateToCompare, referenceDate) {
1921
- return dateToCompare.compare(referenceDate) > 0;
1922
- }
1923
- /**
1924
- * Determine if a date is before or the same as the reference date.
1925
- *
1926
- * @param dateToCompare - the date to compare
1927
- * @param referenceDate - the reference date to make the comparison against
1928
- *
1929
- * @see {@link isBefore} for non-inclusive
1930
- */
1931
- function isBeforeOrSame(dateToCompare, referenceDate) {
1932
- return dateToCompare.compare(referenceDate) <= 0;
1933
- }
1934
- /**
1935
- * Determine if a date is after or the same as the reference date.
1936
- *
1937
- * @param dateToCompare - is this date after or the same as the `referenceDate`
1938
- * @param referenceDate - is the `dateToCompare` after or the same as this date
1939
- *
1940
- * @see {@link isAfter} for non-inclusive
1941
- */
1942
- function isAfterOrSame(dateToCompare, referenceDate) {
1943
- return dateToCompare.compare(referenceDate) >= 0;
1944
- }
1945
- /**
1946
- * Determine if a date is inclusively between a start and end reference date.
1947
- *
1948
- * @param date - is this date inclusively between the `start` and `end` dates
1949
- * @param start - the start reference date to make the comparison against
1950
- * @param end - the end reference date to make the comparison against
1951
- *
1952
- * @see {@link isBetween} for non-inclusive
1953
- */
1954
- function isBetweenInclusive(date, start, end) {
1955
- return isAfterOrSame(date, start) && isBeforeOrSame(date, end);
1956
- }
1957
- /**
1958
- * Determine if a date is between a start and end reference date.
1959
- *
1960
- * @param date - is this date between the `start` and `end` dates
1961
- * @param start - the start reference date to make the comparison against
1962
- * @param end - the end reference date to make the comparison against
1963
- *
1964
- * @see {@link isBetweenInclusive} for inclusive
1965
- */
1966
- function isBetween(date, start, end) {
1967
- return isAfter(date, start) && isBefore(date, end);
1968
- }
1969
- function getLastFirstDayOfWeek(date, firstDayOfWeek, locale) {
1970
- /**
1971
- * "firstDayOfWeek" is fixed to 0(Sunday) to avoid confusion regarding locales.
1972
- * This also aligns with other date libraries, e.g., date-fns.
1973
- *
1974
- * #see https://github.com/unovue/reka-ui/issues/2157
1975
- */
1976
- const day = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, "sun");
1977
- if (firstDayOfWeek > day) return date.subtract({ days: day + 7 - firstDayOfWeek });
1978
- if (firstDayOfWeek === day) return date;
1979
- return date.subtract({ days: day - firstDayOfWeek });
1980
- }
1981
- function getNextLastDayOfWeek(date, firstDayOfWeek, locale) {
1982
- /**
1983
- * "firstDayOfWeek" is fixed to 0(Sunday) to avoid confusion regarding locales.
1984
- * This also aligns with other date libraries, e.g., date-fns.
1985
- *
1986
- * #see https://github.com/unovue/reka-ui/issues/2157
1987
- */
1988
- const day = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, "sun");
1989
- const lastDayOfWeek = firstDayOfWeek === 0 ? 6 : firstDayOfWeek - 1;
1990
- if (day === lastDayOfWeek) return date;
1991
- if (day > lastDayOfWeek) return date.add({ days: 7 - day + lastDayOfWeek });
1992
- return date.add({ days: lastDayOfWeek - day });
1993
- }
1994
- function areAllDaysBetweenValid(start, end, isUnavailable, isDisabled, isHighlightable) {
1995
- if (isUnavailable === void 0 && isDisabled === void 0 && isHighlightable === void 0) return true;
1996
- let dCurrent = start.add({ days: 1 });
1997
- if ((isDisabled?.(dCurrent) || isUnavailable?.(dCurrent)) && !isHighlightable?.(dCurrent)) return false;
1998
- const dEnd = end;
1999
- while (dCurrent.compare(dEnd) < 0) {
2000
- dCurrent = dCurrent.add({ days: 1 });
2001
- if ((isDisabled?.(dCurrent) || isUnavailable?.(dCurrent)) && !isHighlightable?.(dCurrent)) return false;
2002
- }
2003
- return true;
2004
- }
2005
- /**
2006
- * A helper function used throughout the various date builders
2007
- * to generate a default `DateValue` using the `defaultValue`,
2008
- * `defaultPlaceholder`, and `granularity` props.
2009
- *
2010
- * It's important to match the `DateValue` type being used
2011
- * elsewhere in the builder, so they behave according to the
2012
- * behavior the user expects based on the props they've provided.
2013
- *
2014
- */
2015
- function getDefaultDate(props) {
2016
- const { defaultValue, defaultPlaceholder, granularity = "day", locale = "en" } = props;
2017
- if (Array.isArray(defaultValue) && defaultValue.length) return defaultValue.at(-1).copy();
2018
- if (defaultValue && !Array.isArray(defaultValue)) return defaultValue.copy();
2019
- if (defaultPlaceholder) return defaultPlaceholder.copy();
2020
- const date = /* @__PURE__ */ new Date();
2021
- const year = date.getFullYear();
2022
- const month = date.getMonth() + 1;
2023
- const day = date.getDate();
2024
- const calendarDateTimeGranularities = [
2025
- "hour",
2026
- "minute",
2027
- "second"
2028
- ];
2029
- const calendar = $64244302c3013299$export$dd0bbc9b26defe37(new $fb18d541ea1ad717$export$ad991b66133851cf(locale).resolvedOptions().calendar);
2030
- if (calendarDateTimeGranularities.includes(granularity ?? "day")) return $11d87f3f76e88657$export$b4a036af3fc0b032(new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(year, month, day, 0, 0, 0), calendar);
2031
- return $11d87f3f76e88657$export$b4a036af3fc0b032(new $35ea8db9cb2ccb90$export$99faa760c7908e4f(year, month, day), calendar);
2032
- }
2033
- function getDefaultTime(props) {
2034
- const { defaultValue, defaultPlaceholder } = props;
2035
- if (defaultValue) return defaultValue.copy();
2036
- if (defaultPlaceholder) return defaultPlaceholder.copy();
2037
- return new $35ea8db9cb2ccb90$export$680ea196effce5f(0, 0, 0);
2038
- }
2039
- //#endregion
2040
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/utils.js
2041
- /**
2042
- * Splits an array into chunks of a given size.
2043
- * @param arr The array to split.
2044
- * @param size The size of each chunk.
2045
- * @returns An array of arrays, where each sub-array has `size` elements from the original array.
2046
- * @example ```ts
2047
- * const arr = [1, 2, 3, 4, 5, 6, 7, 8];
2048
- * const chunks = chunk(arr, 3);
2049
- * // chunks = [[1, 2, 3], [4, 5, 6], [7, 8]]
2050
- * ```
2051
- */
2052
- function chunk(arr, size) {
2053
- const result = [];
2054
- for (let i = 0; i < arr.length; i += size) result.push(arr.slice(i, i + size));
2055
- return result;
2056
- }
2057
- function getOptsByGranularity(granularity, hourCycle, isTimeValue = false) {
2058
- const opts = {
2059
- year: "numeric",
2060
- month: "2-digit",
2061
- day: "2-digit",
2062
- hour: "2-digit",
2063
- minute: "2-digit",
2064
- second: "2-digit",
2065
- timeZoneName: "short",
2066
- hourCycle: normalizeHourCycle(hourCycle),
2067
- hour12: normalizeHour12(hourCycle)
2068
- };
2069
- if (isTimeValue) {
2070
- delete opts.year;
2071
- delete opts.month;
2072
- delete opts.day;
2073
- }
2074
- if (granularity === "day") {
2075
- delete opts.second;
2076
- delete opts.hour;
2077
- delete opts.minute;
2078
- delete opts.timeZoneName;
2079
- }
2080
- if (granularity === "hour") {
2081
- delete opts.minute;
2082
- delete opts.second;
2083
- }
2084
- if (granularity === "minute") delete opts.second;
2085
- return opts;
2086
- }
2087
- function normalizeDateStep(props) {
2088
- return require_useKbd.defu(props?.step, {
2089
- year: 1,
2090
- month: 1,
2091
- day: 1,
2092
- hour: 1,
2093
- minute: 1,
2094
- second: 1,
2095
- millisecond: 1
2096
- });
2097
- }
2098
- function handleCalendarInitialFocus(calendar) {
2099
- const selectedDay = calendar.querySelector("[data-selected]");
2100
- if (selectedDay) return selectedDay.focus();
2101
- const today = calendar.querySelector("[data-today]");
2102
- if (today) return today.focus();
2103
- const firstDay = calendar.querySelector("[data-reka-calendar-day]");
2104
- if (firstDay) return firstDay.focus();
2105
- }
2106
- function normalizeHourCycle(hourCycle) {
2107
- if (hourCycle === 24) return "h23";
2108
- if (hourCycle === 12) return "h11";
2109
- }
2110
- function normalizeHour12(hourCycle) {
2111
- if (hourCycle === 24) return false;
2112
- if (hourCycle === 12) return true;
2113
- }
2114
- //#endregion
2115
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useDateFormatter.js
2116
- /**
2117
- * Creates a wrapper around the `DateFormatter`, which is
2118
- * an improved version of the {@link Intl.DateTimeFormat} API,
2119
- * that is used internally by the various date builders to
2120
- * easily format dates in a consistent way.
2121
- *
2122
- * @see [DateFormatter](https://react-spectrum.adobe.com/internationalized/date/DateFormatter.html)
2123
- */
2124
- function useDateFormatter(initialLocale, opts = {}) {
2125
- const locale = (0, vue.ref)(initialLocale);
2126
- function getLocale() {
2127
- return locale.value;
2128
- }
2129
- function setLocale(newLocale) {
2130
- locale.value = newLocale;
2131
- }
2132
- function custom(date, options) {
2133
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2134
- ...opts,
2135
- ...options
2136
- }).format(date);
2137
- }
2138
- function selectedDate(date, includeTime = true) {
2139
- if (hasTime(date) && includeTime) return custom(toDate(date), {
2140
- dateStyle: "long",
2141
- timeStyle: "long"
2142
- });
2143
- else return custom(toDate(date), { dateStyle: "long" });
2144
- }
2145
- function fullMonthAndYear(date, options = {}) {
2146
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2147
- ...opts,
2148
- month: "long",
2149
- year: "numeric",
2150
- ...options
2151
- }).format(date);
2152
- }
2153
- function fullMonth(date, options = {}) {
2154
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2155
- ...opts,
2156
- month: "long",
2157
- ...options
2158
- }).format(date);
2159
- }
2160
- function getMonths() {
2161
- const defaultDate = $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2());
2162
- return [
2163
- 1,
2164
- 2,
2165
- 3,
2166
- 4,
2167
- 5,
2168
- 6,
2169
- 7,
2170
- 8,
2171
- 9,
2172
- 10,
2173
- 11,
2174
- 12
2175
- ].map((item) => ({
2176
- label: fullMonth(toDate(defaultDate.set({ month: item }))),
2177
- value: item
2178
- }));
2179
- }
2180
- function fullYear(date, options = {}) {
2181
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2182
- ...opts,
2183
- year: "numeric",
2184
- ...options
2185
- }).format(date);
2186
- }
2187
- function toParts(date, options) {
2188
- if (isZonedDateTime(date)) return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2189
- ...opts,
2190
- ...options,
2191
- timeZone: date.timeZone
2192
- }).formatToParts(toDate(date));
2193
- else return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2194
- ...opts,
2195
- ...options
2196
- }).formatToParts(toDate(date));
2197
- }
2198
- function dayOfWeek(date, length = "narrow") {
2199
- return new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2200
- ...opts,
2201
- weekday: length
2202
- }).format(date);
2203
- }
2204
- function dayPeriod(date) {
2205
- const value = new $fb18d541ea1ad717$export$ad991b66133851cf(locale.value, {
2206
- ...opts,
2207
- hour: "numeric",
2208
- minute: "numeric"
2209
- }).formatToParts(date).find((p) => p.type === "dayPeriod")?.value;
2210
- if (value === "PM" || value === "pm" || value === "p.m.") return "PM";
2211
- return "AM";
2212
- }
2213
- const defaultPartOptions = {
2214
- year: "numeric",
2215
- month: "numeric",
2216
- day: "numeric",
2217
- hour: "numeric",
2218
- minute: "numeric",
2219
- second: "numeric"
2220
- };
2221
- function part(dateObj, type, options = {}) {
2222
- const part$1 = toParts(dateObj, {
2223
- ...defaultPartOptions,
2224
- ...options
2225
- }).find((p) => p.type === type);
2226
- return part$1 ? part$1.value : "";
2227
- }
2228
- return {
2229
- setLocale,
2230
- getLocale,
2231
- fullMonth,
2232
- fullYear,
2233
- fullMonthAndYear,
2234
- toParts,
2235
- custom,
2236
- part,
2237
- dayPeriod,
2238
- selectedDate,
2239
- dayOfWeek,
2240
- getMonths
2241
- };
2242
- }
2243
- //#endregion
2244
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useLocale.js
2245
- /**
2246
- * The `useLocale` function provides a way to access the current locale in your application.
2247
- * @param {Ref<string | undefined>} [locale] - An optional ref containing the locale.
2248
- * @returns A computed ref holding the resolved locale.
2249
- */
2250
- function useLocale(locale) {
2251
- const context = require_VisuallyHidden.injectConfigProviderContext({ locale: (0, vue.ref)("en") });
2252
- return (0, vue.computed)(() => locale?.value || context.locale?.value || "en");
2253
- }
2254
- //#endregion
2255
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/parts.js
2256
- var DATE_SEGMENT_PARTS = [
2257
- "day",
2258
- "month",
2259
- "year"
2260
- ];
2261
- var TIME_SEGMENT_PARTS = [
2262
- "hour",
2263
- "minute",
2264
- "second",
2265
- "dayPeriod"
2266
- ];
2267
- var NON_EDITABLE_SEGMENT_PARTS = ["literal", "timeZoneName"];
2268
- var EDITABLE_SEGMENT_PARTS = [...DATE_SEGMENT_PARTS, ...TIME_SEGMENT_PARTS];
2269
- [...TIME_SEGMENT_PARTS];
2270
- [...EDITABLE_SEGMENT_PARTS, ...NON_EDITABLE_SEGMENT_PARTS].filter((part) => part !== "literal");
2271
- function isDateSegmentPart(part) {
2272
- return DATE_SEGMENT_PARTS.includes(part);
2273
- }
2274
- function isSegmentPart(part) {
2275
- return EDITABLE_SEGMENT_PARTS.includes(part);
2276
- }
2277
- //#endregion
2278
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/placeholders.js
2279
- var supportedLocales = [
2280
- "ach",
2281
- "af",
2282
- "am",
2283
- "an",
2284
- "ar",
2285
- "ast",
2286
- "az",
2287
- "be",
2288
- "bg",
2289
- "bn",
2290
- "br",
2291
- "bs",
2292
- "ca",
2293
- "cak",
2294
- "ckb",
2295
- "cs",
2296
- "cy",
2297
- "da",
2298
- "de",
2299
- "dsb",
2300
- "el",
2301
- "en",
2302
- "eo",
2303
- "es",
2304
- "et",
2305
- "eu",
2306
- "fa",
2307
- "ff",
2308
- "fi",
2309
- "fr",
2310
- "fy",
2311
- "ga",
2312
- "gd",
2313
- "gl",
2314
- "he",
2315
- "hr",
2316
- "hsb",
2317
- "hu",
2318
- "ia",
2319
- "id",
2320
- "it",
2321
- "ja",
2322
- "ka",
2323
- "kk",
2324
- "kn",
2325
- "ko",
2326
- "lb",
2327
- "lo",
2328
- "lt",
2329
- "lv",
2330
- "meh",
2331
- "ml",
2332
- "ms",
2333
- "nl",
2334
- "nn",
2335
- "no",
2336
- "oc",
2337
- "pl",
2338
- "pt",
2339
- "rm",
2340
- "ro",
2341
- "ru",
2342
- "sc",
2343
- "scn",
2344
- "sk",
2345
- "sl",
2346
- "sr",
2347
- "sv",
2348
- "szl",
2349
- "tg",
2350
- "th",
2351
- "tr",
2352
- "uk",
2353
- "zh-CN",
2354
- "zh-TW"
2355
- ];
2356
- var placeholderFields = [
2357
- "year",
2358
- "month",
2359
- "day"
2360
- ];
2361
- var placeholders = {
2362
- "ach": {
2363
- year: "mwaka",
2364
- month: "dwe",
2365
- day: "nino"
2366
- },
2367
- "af": {
2368
- year: "jjjj",
2369
- month: "mm",
2370
- day: "dd"
2371
- },
2372
- "am": {
2373
- year: "ዓዓዓዓ",
2374
- month: "ሚሜ",
2375
- day: "ቀቀ"
2376
- },
2377
- "an": {
2378
- year: "aaaa",
2379
- month: "mm",
2380
- day: "dd"
2381
- },
2382
- "ar": {
2383
- year: "سنة",
2384
- month: "شهر",
2385
- day: "يوم"
2386
- },
2387
- "ast": {
2388
- year: "aaaa",
2389
- month: "mm",
2390
- day: "dd"
2391
- },
2392
- "az": {
2393
- year: "iiii",
2394
- month: "aa",
2395
- day: "gg"
2396
- },
2397
- "be": {
2398
- year: "гггг",
2399
- month: "мм",
2400
- day: "дд"
2401
- },
2402
- "bg": {
2403
- year: "гггг",
2404
- month: "мм",
2405
- day: "дд"
2406
- },
2407
- "bn": {
2408
- year: "yyyy",
2409
- month: "মিমি",
2410
- day: "dd"
2411
- },
2412
- "br": {
2413
- year: "bbbb",
2414
- month: "mm",
2415
- day: "dd"
2416
- },
2417
- "bs": {
2418
- year: "gggg",
2419
- month: "mm",
2420
- day: "dd"
2421
- },
2422
- "ca": {
2423
- year: "aaaa",
2424
- month: "mm",
2425
- day: "dd"
2426
- },
2427
- "cak": {
2428
- year: "jjjj",
2429
- month: "ii",
2430
- day: "q'q'"
2431
- },
2432
- "ckb": {
2433
- year: "ساڵ",
2434
- month: "مانگ",
2435
- day: "ڕۆژ"
2436
- },
2437
- "cs": {
2438
- year: "rrrr",
2439
- month: "mm",
2440
- day: "dd"
2441
- },
2442
- "cy": {
2443
- year: "bbbb",
2444
- month: "mm",
2445
- day: "dd"
2446
- },
2447
- "da": {
2448
- year: "åååå",
2449
- month: "mm",
2450
- day: "dd"
2451
- },
2452
- "de": {
2453
- year: "jjjj",
2454
- month: "mm",
2455
- day: "tt"
2456
- },
2457
- "dsb": {
2458
- year: "llll",
2459
- month: "mm",
2460
- day: "źź"
2461
- },
2462
- "el": {
2463
- year: "εεεε",
2464
- month: "μμ",
2465
- day: "ηη"
2466
- },
2467
- "en": {
2468
- year: "yyyy",
2469
- month: "mm",
2470
- day: "dd"
2471
- },
2472
- "eo": {
2473
- year: "jjjj",
2474
- month: "mm",
2475
- day: "tt"
2476
- },
2477
- "es": {
2478
- year: "aaaa",
2479
- month: "mm",
2480
- day: "dd"
2481
- },
2482
- "et": {
2483
- year: "aaaa",
2484
- month: "kk",
2485
- day: "pp"
2486
- },
2487
- "eu": {
2488
- year: "uuuu",
2489
- month: "hh",
2490
- day: "ee"
2491
- },
2492
- "fa": {
2493
- year: "سال",
2494
- month: "ماه",
2495
- day: "روز"
2496
- },
2497
- "ff": {
2498
- year: "hhhh",
2499
- month: "ll",
2500
- day: "ññ"
2501
- },
2502
- "fi": {
2503
- year: "vvvv",
2504
- month: "kk",
2505
- day: "pp"
2506
- },
2507
- "fr": {
2508
- year: "aaaa",
2509
- month: "mm",
2510
- day: "jj"
2511
- },
2512
- "fy": {
2513
- year: "jjjj",
2514
- month: "mm",
2515
- day: "dd"
2516
- },
2517
- "ga": {
2518
- year: "bbbb",
2519
- month: "mm",
2520
- day: "ll"
2521
- },
2522
- "gd": {
2523
- year: "bbbb",
2524
- month: "mm",
2525
- day: "ll"
2526
- },
2527
- "gl": {
2528
- year: "aaaa",
2529
- month: "mm",
2530
- day: "dd"
2531
- },
2532
- "he": {
2533
- year: "שנה",
2534
- month: "חודש",
2535
- day: "יום"
2536
- },
2537
- "hr": {
2538
- year: "gggg",
2539
- month: "mm",
2540
- day: "dd"
2541
- },
2542
- "hsb": {
2543
- year: "llll",
2544
- month: "mm",
2545
- day: "dd"
2546
- },
2547
- "hu": {
2548
- year: "éééé",
2549
- month: "hh",
2550
- day: "nn"
2551
- },
2552
- "ia": {
2553
- year: "aaaa",
2554
- month: "mm",
2555
- day: "dd"
2556
- },
2557
- "id": {
2558
- year: "tttt",
2559
- month: "bb",
2560
- day: "hh"
2561
- },
2562
- "it": {
2563
- year: "aaaa",
2564
- month: "mm",
2565
- day: "gg"
2566
- },
2567
- "ja": {
2568
- year: " 年 ",
2569
- month: "月",
2570
- day: "日"
2571
- },
2572
- "ka": {
2573
- year: "წწწწ",
2574
- month: "თთ",
2575
- day: "რრ"
2576
- },
2577
- "kk": {
2578
- year: "жжжж",
2579
- month: "аа",
2580
- day: "кк"
2581
- },
2582
- "kn": {
2583
- year: "ವವವವ",
2584
- month: "ಮಿಮೀ",
2585
- day: "ದಿದಿ"
2586
- },
2587
- "ko": {
2588
- year: "연도",
2589
- month: "월",
2590
- day: "일"
2591
- },
2592
- "lb": {
2593
- year: "jjjj",
2594
- month: "mm",
2595
- day: "dd"
2596
- },
2597
- "lo": {
2598
- year: "ປປປປ",
2599
- month: "ດດ",
2600
- day: "ວວ"
2601
- },
2602
- "lt": {
2603
- year: "mmmm",
2604
- month: "mm",
2605
- day: "dd"
2606
- },
2607
- "lv": {
2608
- year: "gggg",
2609
- month: "mm",
2610
- day: "dd"
2611
- },
2612
- "meh": {
2613
- year: "aaaa",
2614
- month: "mm",
2615
- day: "dd"
2616
- },
2617
- "ml": {
2618
- year: "വർഷം",
2619
- month: "മാസം",
2620
- day: "തീയതി"
2621
- },
2622
- "ms": {
2623
- year: "tttt",
2624
- month: "mm",
2625
- day: "hh"
2626
- },
2627
- "nl": {
2628
- year: "jjjj",
2629
- month: "mm",
2630
- day: "dd"
2631
- },
2632
- "nn": {
2633
- year: "åååå",
2634
- month: "mm",
2635
- day: "dd"
2636
- },
2637
- "no": {
2638
- year: "åååå",
2639
- month: "mm",
2640
- day: "dd"
2641
- },
2642
- "oc": {
2643
- year: "aaaa",
2644
- month: "mm",
2645
- day: "jj"
2646
- },
2647
- "pl": {
2648
- year: "rrrr",
2649
- month: "mm",
2650
- day: "dd"
2651
- },
2652
- "pt": {
2653
- year: "aaaa",
2654
- month: "mm",
2655
- day: "dd"
2656
- },
2657
- "rm": {
2658
- year: "oooo",
2659
- month: "mm",
2660
- day: "dd"
2661
- },
2662
- "ro": {
2663
- year: "aaaa",
2664
- month: "ll",
2665
- day: "zz"
2666
- },
2667
- "ru": {
2668
- year: "гггг",
2669
- month: "мм",
2670
- day: "дд"
2671
- },
2672
- "sc": {
2673
- year: "aaaa",
2674
- month: "mm",
2675
- day: "dd"
2676
- },
2677
- "scn": {
2678
- year: "aaaa",
2679
- month: "mm",
2680
- day: "jj"
2681
- },
2682
- "sk": {
2683
- year: "rrrr",
2684
- month: "mm",
2685
- day: "dd"
2686
- },
2687
- "sl": {
2688
- year: "llll",
2689
- month: "mm",
2690
- day: "dd"
2691
- },
2692
- "sr": {
2693
- year: "гггг",
2694
- month: "мм",
2695
- day: "дд"
2696
- },
2697
- "sv": {
2698
- year: "åååå",
2699
- month: "mm",
2700
- day: "dd"
2701
- },
2702
- "szl": {
2703
- year: "rrrr",
2704
- month: "mm",
2705
- day: "dd"
2706
- },
2707
- "tg": {
2708
- year: "сссс",
2709
- month: "мм",
2710
- day: "рр"
2711
- },
2712
- "th": {
2713
- year: "ปปปป",
2714
- month: "ดด",
2715
- day: "วว"
2716
- },
2717
- "tr": {
2718
- year: "yyyy",
2719
- month: "aa",
2720
- day: "gg"
2721
- },
2722
- "uk": {
2723
- year: "рррр",
2724
- month: "мм",
2725
- day: "дд"
2726
- },
2727
- "zh-CN": {
2728
- year: "年",
2729
- month: "月",
2730
- day: "日"
2731
- },
2732
- "zh-TW": {
2733
- year: "年",
2734
- month: "月",
2735
- day: "日"
2736
- }
2737
- };
2738
- function getPlaceholderObj(locale) {
2739
- if (!isSupportedLocale(locale)) {
2740
- const localeLanguage = getLocaleLanguage(locale);
2741
- if (!isSupportedLocale(localeLanguage)) return placeholders.en;
2742
- else return placeholders[localeLanguage];
2743
- } else return placeholders[locale];
2744
- }
2745
- function getPlaceholder(field, value, locale) {
2746
- if (isPlaceholderField(field)) return getPlaceholderObj(locale)[field];
2747
- if (isDefaultField(field)) return value;
2748
- if (isTimeField(field)) return "––";
2749
- return "";
2750
- }
2751
- function isSupportedLocale(locale) {
2752
- return supportedLocales.includes(locale);
2753
- }
2754
- function isPlaceholderField(field) {
2755
- return placeholderFields.includes(field);
2756
- }
2757
- function isTimeField(field) {
2758
- return field === "hour" || field === "minute" || field === "second";
2759
- }
2760
- function isDefaultField(field) {
2761
- return field === "era" || field === "dayPeriod";
2762
- }
2763
- function getLocaleLanguage(locale) {
2764
- if (Intl.Locale) return new Intl.Locale(locale).language;
2765
- return locale.split("-")[0];
2766
- }
2767
- //#endregion
2768
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/parser.js
2769
- var calendarDateTimeGranularities = [
2770
- "hour",
2771
- "minute",
2772
- "second"
2773
- ];
2774
- function syncTimeSegmentValues(props) {
2775
- return Object.fromEntries(TIME_SEGMENT_PARTS.map((part) => {
2776
- if (part === "dayPeriod") return [part, props.formatter.dayPeriod(toDate(props.value))];
2777
- return [part, props.value[part]];
2778
- }));
2779
- }
2780
- function syncSegmentValues(props) {
2781
- const { formatter } = props;
2782
- const dateValues = DATE_SEGMENT_PARTS.map((part) => {
2783
- return [part, props.value[part]];
2784
- });
2785
- if ("hour" in props.value) {
2786
- const timeValues = syncTimeSegmentValues({
2787
- value: props.value,
2788
- formatter
2789
- });
2790
- return {
2791
- ...Object.fromEntries(dateValues),
2792
- ...timeValues
2793
- };
2794
- }
2795
- return Object.fromEntries(dateValues);
2796
- }
2797
- function initializeTimeSegmentValues(granularity) {
2798
- return Object.fromEntries(TIME_SEGMENT_PARTS.map((part) => {
2799
- if (part === "dayPeriod") return [part, "AM"];
2800
- return [part, null];
2801
- }).filter(([key]) => {
2802
- if (key === "literal" || key === null) return false;
2803
- if (granularity === "minute" && key === "second") return false;
2804
- if (granularity === "hour" && (key === "second" || key === "minute")) return false;
2805
- else return true;
2806
- }));
2807
- }
2808
- function initializeSegmentValues(granularity) {
2809
- const initialParts = EDITABLE_SEGMENT_PARTS.map((part) => {
2810
- if (part === "dayPeriod") return [part, "AM"];
2811
- return [part, null];
2812
- }).filter(([key]) => {
2813
- if (key === "literal" || key === null) return false;
2814
- if (granularity === "minute" && key === "second") return false;
2815
- if (granularity === "hour" && (key === "second" || key === "minute")) return false;
2816
- if (granularity === "day") return !calendarDateTimeGranularities.includes(key) && key !== "dayPeriod";
2817
- else return true;
2818
- });
2819
- return Object.fromEntries(initialParts);
2820
- }
2821
- function createContentObj(props) {
2822
- const { segmentValues, formatter, locale } = props;
2823
- function getPartContent(part) {
2824
- if ("hour" in segmentValues) {
2825
- const value = segmentValues[part];
2826
- if (value !== null) {
2827
- if (part === "day") return formatter.part(props.dateRef.set({
2828
- [part]: value,
2829
- month: segmentValues.month ?? 1
2830
- }), part, { hourCycle: normalizeHourCycle(props.hourCycle) });
2831
- return formatter.part(props.dateRef.set({ [part]: value }), part, { hourCycle: normalizeHourCycle(props.hourCycle) });
2832
- } else return getPlaceholder(part, "", locale.value);
2833
- } else {
2834
- if (isDateSegmentPart(part)) {
2835
- const value = segmentValues[part];
2836
- if (value !== null) {
2837
- if (part === "day") return formatter.part(props.dateRef.set({
2838
- [part]: value,
2839
- month: segmentValues.month ?? 1
2840
- }), part);
2841
- return formatter.part(props.dateRef.set({ [part]: value }), part);
2842
- } else return getPlaceholder(part, "", locale.value);
2843
- }
2844
- return "";
2845
- }
2846
- }
2847
- return Object.keys(segmentValues).reduce((obj, part) => {
2848
- if (!isSegmentPart(part)) return obj;
2849
- if ("hour" in segmentValues && part === "dayPeriod") {
2850
- const value = segmentValues[part];
2851
- if (value !== null) obj[part] = value;
2852
- else obj[part] = getPlaceholder(part, "AM", locale.value);
2853
- } else obj[part] = getPartContent(part);
2854
- return obj;
2855
- }, {});
2856
- }
2857
- function createContentArr(props) {
2858
- const { granularity, formatter, contentObj, hideTimeZone, hourCycle, isTimeValue } = props;
2859
- return formatter.toParts(props.dateRef, getOptsByGranularity(granularity, hourCycle, isTimeValue)).map((part) => {
2860
- if ([
2861
- "literal",
2862
- "timeZoneName",
2863
- null
2864
- ].includes(part.type) || !isSegmentPart(part.type)) return {
2865
- part: part.type,
2866
- value: part.value
2867
- };
2868
- return {
2869
- part: part.type,
2870
- value: contentObj[part.type]
2871
- };
2872
- }).filter((segment) => {
2873
- if (segment.part === null || segment.value === null) return false;
2874
- if (segment.part === "timeZoneName" && (!isZonedDateTime(props.dateRef) || hideTimeZone)) return false;
2875
- if ((!isZonedDateTime(props.dateRef) || hideTimeZone) && segment.part === "literal" && ["[", "]"].includes(segment.value.trim())) return false;
2876
- return true;
2877
- });
2878
- }
2879
- function createContent(props) {
2880
- const contentObj = createContentObj(props);
2881
- return {
2882
- obj: contentObj,
2883
- arr: createContentArr({
2884
- contentObj,
2885
- ...props
2886
- })
2887
- };
2888
- }
2889
- //#endregion
2890
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/segment.js
2891
- function isSegmentNavigationKey(key) {
2892
- const kbd = require_useKbd.useKbd();
2893
- if (key === kbd.ARROW_RIGHT || key === kbd.ARROW_LEFT) return true;
2894
- return false;
2895
- }
2896
- function isNumberString(value) {
2897
- if (Number.isNaN(Number.parseInt(value))) return false;
2898
- return true;
2899
- }
2900
- function isAcceptableSegmentKey(key) {
2901
- const kbd = require_useKbd.useKbd();
2902
- if ([
2903
- kbd.ENTER,
2904
- kbd.ARROW_UP,
2905
- kbd.ARROW_DOWN,
2906
- kbd.ARROW_LEFT,
2907
- kbd.ARROW_RIGHT,
2908
- kbd.BACKSPACE,
2909
- kbd.SPACE,
2910
- "a",
2911
- "A",
2912
- "p",
2913
- "P"
2914
- ].includes(key)) return true;
2915
- if (isNumberString(key)) return true;
2916
- return false;
2917
- }
2918
- function getSegmentElements(parentElement) {
2919
- return Array.from(parentElement.querySelectorAll("[data-reka-date-field-segment]")).filter((item) => item.getAttribute("data-reka-date-field-segment") !== "literal");
2920
- }
2921
- function getTimeFieldSegmentElements(parentElement) {
2922
- return Array.from(parentElement.querySelectorAll("[data-reka-time-field-segment]")).filter((item) => item.getAttribute("data-reka-time-field-segment") !== "literal");
2923
- }
2924
- //#endregion
2925
- //#region ../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/date/useDateField.js
2926
- function commonSegmentAttrs(props) {
2927
- return {
2928
- role: "spinbutton",
2929
- contenteditable: true,
2930
- tabindex: props.disabled ? void 0 : 0,
2931
- spellcheck: false,
2932
- inputmode: "numeric",
2933
- autocorrect: "off",
2934
- enterkeyhint: "next",
2935
- style: "caret-color: transparent;"
2936
- };
2937
- }
2938
- function daySegmentAttrs(props) {
2939
- const { segmentValues, placeholder } = props;
2940
- const isEmpty = segmentValues.day === null;
2941
- const dateFields = {};
2942
- if (segmentValues.day) dateFields.day = segmentValues.day;
2943
- if (segmentValues.month) dateFields.month = segmentValues.month;
2944
- const date = Object.keys(dateFields).length > 0 ? placeholder.set(dateFields) : placeholder;
2945
- const valueNow = date.day;
2946
- const valueMin = 1;
2947
- const valueMax = getDaysInMonth(date);
2948
- const valueText = isEmpty ? "Empty" : `${valueNow}`;
2949
- return {
2950
- ...commonSegmentAttrs(props),
2951
- "aria-label": "day,",
2952
- "aria-valuemin": valueMin,
2953
- "aria-valuemax": valueMax,
2954
- "aria-valuenow": valueNow,
2955
- "aria-valuetext": valueText,
2956
- "data-placeholder": isEmpty ? "" : void 0
2957
- };
2958
- }
2959
- function monthSegmentAttrs(props) {
2960
- const { segmentValues, placeholder, formatter } = props;
2961
- const isEmpty = segmentValues.month === null;
2962
- const date = segmentValues.month ? placeholder.set({ month: segmentValues.month }) : placeholder;
2963
- const valueNow = date.month;
2964
- const valueMin = 1;
2965
- const valueMax = 12;
2966
- const valueText = isEmpty ? "Empty" : `${valueNow} - ${formatter.fullMonth(toDate(date))}`;
2967
- return {
2968
- ...commonSegmentAttrs(props),
2969
- "aria-label": "month, ",
2970
- "contenteditable": true,
2971
- "aria-valuemin": valueMin,
2972
- "aria-valuemax": valueMax,
2973
- "aria-valuenow": valueNow,
2974
- "aria-valuetext": valueText,
2975
- "data-placeholder": isEmpty ? "" : void 0
2976
- };
2977
- }
2978
- function yearSegmentAttrs(props) {
2979
- const { segmentValues, placeholder } = props;
2980
- const isEmpty = segmentValues.year === null;
2981
- const date = segmentValues.year ? placeholder.set({ year: segmentValues.year }) : placeholder;
2982
- const valueMin = 1;
2983
- const valueMax = 9999;
2984
- const valueNow = date.year;
2985
- const valueText = isEmpty ? "Empty" : `${valueNow}`;
2986
- return {
2987
- ...commonSegmentAttrs(props),
2988
- "aria-label": "year, ",
2989
- "aria-valuemin": valueMin,
2990
- "aria-valuemax": valueMax,
2991
- "aria-valuenow": valueNow,
2992
- "aria-valuetext": valueText,
2993
- "data-placeholder": isEmpty ? "" : void 0
2994
- };
2995
- }
2996
- function hourSegmentAttrs(props) {
2997
- const { segmentValues, hourCycle, placeholder } = props;
2998
- if (!("hour" in segmentValues) || !("hour" in placeholder)) return {};
2999
- const isEmpty = segmentValues.hour === null;
3000
- const date = segmentValues.hour ? placeholder.set({ hour: segmentValues.hour }) : placeholder;
3001
- const valueMin = hourCycle === 12 ? 1 : 0;
3002
- const valueMax = hourCycle === 12 ? 12 : 23;
3003
- const valueNow = date.hour;
3004
- const valueText = isEmpty ? "Empty" : `${valueNow} ${segmentValues.dayPeriod ?? ""}`;
3005
- return {
3006
- ...commonSegmentAttrs(props),
3007
- "aria-label": "hour, ",
3008
- "aria-valuemin": valueMin,
3009
- "aria-valuemax": valueMax,
3010
- "aria-valuenow": valueNow,
3011
- "aria-valuetext": valueText,
3012
- "data-placeholder": isEmpty ? "" : void 0
3013
- };
3014
- }
3015
- function minuteSegmentAttrs(props) {
3016
- const { segmentValues, placeholder } = props;
3017
- if (!("minute" in segmentValues) || !("minute" in placeholder)) return {};
3018
- const isEmpty = segmentValues.minute === null;
3019
- const valueNow = (segmentValues.minute ? placeholder.set({ minute: segmentValues.minute }) : placeholder).minute;
3020
- const valueMin = 0;
3021
- const valueMax = 59;
3022
- const valueText = isEmpty ? "Empty" : `${valueNow}`;
3023
- return {
3024
- ...commonSegmentAttrs(props),
3025
- "aria-label": "minute, ",
3026
- "aria-valuemin": valueMin,
3027
- "aria-valuemax": valueMax,
3028
- "aria-valuenow": valueNow,
3029
- "aria-valuetext": valueText,
3030
- "data-placeholder": isEmpty ? "" : void 0
3031
- };
3032
- }
3033
- function secondSegmentAttrs(props) {
3034
- const { segmentValues, placeholder } = props;
3035
- if (!("second" in segmentValues) || !("second" in placeholder)) return {};
3036
- const isEmpty = segmentValues.second === null;
3037
- const valueNow = (segmentValues.second ? placeholder.set({ second: segmentValues.second }) : placeholder).second;
3038
- const valueMin = 0;
3039
- const valueMax = 59;
3040
- const valueText = isEmpty ? "Empty" : `${valueNow}`;
3041
- return {
3042
- ...commonSegmentAttrs(props),
3043
- "aria-label": "second, ",
3044
- "aria-valuemin": valueMin,
3045
- "aria-valuemax": valueMax,
3046
- "aria-valuenow": valueNow,
3047
- "aria-valuetext": valueText,
3048
- "data-placeholder": isEmpty ? "" : void 0
3049
- };
3050
- }
3051
- function dayPeriodSegmentAttrs(props) {
3052
- const { segmentValues } = props;
3053
- if (!("dayPeriod" in segmentValues)) return {};
3054
- const valueMin = 0;
3055
- const valueMax = 12;
3056
- const valueNow = segmentValues.hour ? segmentValues.hour > 12 ? segmentValues.hour - 12 : segmentValues.hour : 0;
3057
- const valueText = segmentValues.dayPeriod ?? "AM";
3058
- return {
3059
- ...commonSegmentAttrs(props),
3060
- "inputmode": "text",
3061
- "aria-label": "AM/PM",
3062
- "aria-valuemin": valueMin,
3063
- "aria-valuemax": valueMax,
3064
- "aria-valuenow": valueNow,
3065
- "aria-valuetext": valueText
3066
- };
3067
- }
3068
- function literalSegmentAttrs(_props) {
3069
- return {
3070
- "aria-hidden": true,
3071
- "data-segment": "literal"
3072
- };
3073
- }
3074
- function timeZoneSegmentAttrs(props) {
3075
- return {
3076
- "role": "textbox",
3077
- "aria-label": "timezone, ",
3078
- "data-readonly": true,
3079
- "data-segment": "timeZoneName",
3080
- "tabindex": props.disabled ? void 0 : 0,
3081
- "style": "caret-color: transparent;"
3082
- };
3083
- }
3084
- function eraSegmentAttrs(props) {
3085
- const { segmentValues, placeholder } = props;
3086
- const valueMin = 0;
3087
- const valueMax = 0;
3088
- const valueNow = 0;
3089
- const valueText = "era" in segmentValues ? segmentValues.era : placeholder.era;
3090
- return {
3091
- ...commonSegmentAttrs(props),
3092
- "aria-label": "era",
3093
- "aria-valuemin": valueMin,
3094
- "aria-valuemax": valueMax,
3095
- "aria-valuenow": valueNow,
3096
- "aria-valuetext": valueText
3097
- };
3098
- }
3099
- var segmentBuilders = {
3100
- day: { attrs: daySegmentAttrs },
3101
- month: { attrs: monthSegmentAttrs },
3102
- year: { attrs: yearSegmentAttrs },
3103
- hour: { attrs: hourSegmentAttrs },
3104
- minute: { attrs: minuteSegmentAttrs },
3105
- second: { attrs: secondSegmentAttrs },
3106
- dayPeriod: { attrs: dayPeriodSegmentAttrs },
3107
- literal: { attrs: literalSegmentAttrs },
3108
- timeZoneName: { attrs: timeZoneSegmentAttrs },
3109
- era: { attrs: eraSegmentAttrs }
3110
- };
3111
- function useDateField(props) {
3112
- const kbd = require_useKbd.useKbd();
3113
- function minuteSecondIncrementation({ e, part, dateRef, prevValue }) {
3114
- const step = props.step.value[part] ?? 1;
3115
- const sign = e.key === kbd.ARROW_UP ? step : -step;
3116
- const min = 0;
3117
- const max = 59;
3118
- if (prevValue === null) return sign > 0 ? min : max;
3119
- const cycleArgs = [part, sign];
3120
- return dateRef.set({ [part]: prevValue }).cycle(...cycleArgs)[part];
3121
- }
3122
- function deleteValue(prevValue) {
3123
- props.hasLeftFocus.value = false;
3124
- if (prevValue === null) return prevValue;
3125
- const str = prevValue.toString();
3126
- if (str.length === 1) {
3127
- props.modelValue.value = void 0;
3128
- return null;
3129
- }
3130
- return Number.parseInt(str.slice(0, -1));
3131
- }
3132
- function dateTimeValueIncrementation({ e, part, dateRef, prevValue }) {
3133
- const step = props.step.value[part] ?? 1;
3134
- const sign = e.key === kbd.ARROW_UP ? step : -step;
3135
- if (prevValue === null) return dateRef[part];
3136
- if (part === "hour" && "hour" in dateRef) {
3137
- const cycleArgs$1 = [part, sign];
3138
- return dateRef.set({ [part]: prevValue }).cycle(...cycleArgs$1)[part];
3139
- }
3140
- const cycleArgs = [part, sign];
3141
- if (part === "day") return dateRef.set({
3142
- [part]: prevValue,
3143
- month: props.segmentValues.value.month ?? 1
3144
- }).cycle(...cycleArgs)[part];
3145
- return dateRef.set({ [part]: prevValue }).cycle(...cycleArgs)[part];
3146
- }
3147
- function updateDayOrMonth(max, num, prev) {
3148
- let moveToNext = false;
3149
- const maxStart = Math.floor(max / 10);
3150
- /**
3151
- * If the user has left the segment, we want to reset the
3152
- * `prev` value so that we can start the segment over again
3153
- * when the user types a number.
3154
- */
3155
- if (props.hasLeftFocus.value) {
3156
- props.hasLeftFocus.value = false;
3157
- prev = null;
3158
- }
3159
- if (prev === null) {
3160
- /**
3161
- * If the user types a 0 as the first number, we want
3162
- * to keep track of that so that when they type the next
3163
- * number, we can move to the next segment.
3164
- */
3165
- if (num === 0) {
3166
- props.lastKeyZero.value = true;
3167
- return {
3168
- value: null,
3169
- moveToNext
3170
- };
3171
- }
3172
- /**
3173
- * If the last key was a 0, or if the first number is
3174
- * greater than the max start digit (0-3 in most cases), then
3175
- * we want to move to the next segment, since it's not possible
3176
- * to continue typing a valid number in this segment.
3177
- */
3178
- if (props.lastKeyZero.value || num > maxStart) moveToNext = true;
3179
- props.lastKeyZero.value = false;
3180
- /**
3181
- * If none of the above conditions are met, then we can just
3182
- * return the number as the segment value and continue typing
3183
- * in this segment.
3184
- */
3185
- return {
3186
- value: num,
3187
- moveToNext
3188
- };
3189
- }
3190
- /**
3191
- * If the number of digits is 2, or if the total with the existing digit
3192
- * and the pressed digit is greater than the maximum value for this
3193
- * month, then we will reset the segment as if the user had pressed the
3194
- * backspace key and then typed the number.
3195
- */
3196
- const digits = prev.toString().length;
3197
- const total = Number.parseInt(prev.toString() + num.toString());
3198
- /**
3199
- * If the number of digits is 2, or if the total with the existing digit
3200
- * and the pressed digit is greater than the maximum value for this
3201
- * month, then we will reset the segment as if the user had pressed the
3202
- * backspace key and then typed the number.
3203
- */
3204
- if (digits === 2 || total > max) {
3205
- /**
3206
- * As we're doing elsewhere, we're checking if the number is greater
3207
- * than the max start digit (0-3 in most months), and if so, we're
3208
- * going to move to the next segment.
3209
- */
3210
- if (num > maxStart || total > max) moveToNext = true;
3211
- return {
3212
- value: num,
3213
- moveToNext
3214
- };
3215
- }
3216
- moveToNext = true;
3217
- return {
3218
- value: total,
3219
- moveToNext
3220
- };
3221
- }
3222
- function updateMinuteOrSecond(num, prev) {
3223
- const max = 59;
3224
- let moveToNext = false;
3225
- const maxStart = Math.floor(max / 10);
3226
- /**
3227
- * If the user has left the segment, we want to reset the
3228
- * `prev` value so that we can start the segment over again
3229
- * when the user types a number.
3230
- */
3231
- if (props.hasLeftFocus.value) {
3232
- props.hasLeftFocus.value = false;
3233
- prev = null;
3234
- }
3235
- if (prev === null) {
3236
- /**
3237
- * If the user types a 0 as the first number, we want
3238
- * to keep track of that so that when they type the next
3239
- * number, we can move to the next segment.
3240
- */
3241
- if (num === 0) {
3242
- props.lastKeyZero.value = true;
3243
- return {
3244
- value: 0,
3245
- moveToNext
3246
- };
3247
- }
3248
- /**
3249
- * If the last key was a 0, or if the first number is
3250
- * greater than the max start digit (0-3 in most cases), then
3251
- * we want to move to the next segment, since it's not possible
3252
- * to continue typing a valid number in this segment.
3253
- */
3254
- if (props.lastKeyZero.value || num > maxStart) moveToNext = true;
3255
- props.lastKeyZero.value = false;
3256
- /**
3257
- * If none of the above conditions are met, then we can just
3258
- * return the number as the segment value and continue typing
3259
- * in this segment.
3260
- */
3261
- return {
3262
- value: num,
3263
- moveToNext
3264
- };
3265
- }
3266
- /**
3267
- * If the number of digits is 2, or if the total with the existing digit
3268
- * and the pressed digit is greater than the maximum value for this
3269
- * month, then we will reset the segment as if the user had pressed the
3270
- * backspace key and then typed the number.
3271
- */
3272
- const digits = prev.toString().length;
3273
- const total = Number.parseInt(prev.toString() + num.toString());
3274
- /**
3275
- * If the number of digits is 2, or if the total with the existing digit
3276
- * and the pressed digit is greater than the maximum value for this
3277
- * month, then we will reset the segment as if the user had pressed the
3278
- * backspace key and then typed the number.
3279
- */
3280
- if (digits === 2 || total > max) {
3281
- /**
3282
- * As we're doing elsewhere, we're checking if the number is greater
3283
- * than the max start digit (0-3 in most months), and if so, we're
3284
- * going to move to the next segment.
3285
- */
3286
- if (num > maxStart) moveToNext = true;
3287
- return {
3288
- value: num,
3289
- moveToNext
3290
- };
3291
- }
3292
- moveToNext = true;
3293
- return {
3294
- value: total,
3295
- moveToNext
3296
- };
3297
- }
3298
- function updateHour(max, num, prev) {
3299
- let moveToNext = false;
3300
- const maxStart = Math.floor(max / 10);
3301
- /**
3302
- * If the user has left the segment, we want to reset the
3303
- * `prev` value so that we can start the segment over again
3304
- * when the user types a number.
3305
- */
3306
- if (props.hasLeftFocus.value) {
3307
- props.hasLeftFocus.value = false;
3308
- prev = null;
3309
- }
3310
- if (prev === null) {
3311
- /**
3312
- * If the user types a 0 as the first number, we want
3313
- * to keep track of that so that when they type the next
3314
- * number, we can move to the next segment.
3315
- */
3316
- if (num === 0) {
3317
- props.lastKeyZero.value = true;
3318
- return {
3319
- value: 0,
3320
- moveToNext
3321
- };
3322
- }
3323
- /**
3324
- * If the last key was a 0, or if the first number is
3325
- * greater than the max start digit (0-3 in most cases), then
3326
- * we want to move to the next segment, since it's not possible
3327
- * to continue typing a valid number in this segment.
3328
- */
3329
- if (props.lastKeyZero.value || num > maxStart) moveToNext = true;
3330
- props.lastKeyZero.value = false;
3331
- /**
3332
- * If none of the above conditions are met, then we can just
3333
- * return the number as the segment value and continue typing
3334
- * in this segment.
3335
- */
3336
- return {
3337
- value: num,
3338
- moveToNext
3339
- };
3340
- }
3341
- /**
3342
- * If the number of digits is 2, or if the total with the existing digit
3343
- * and the pressed digit is greater than the maximum value for this
3344
- * month, then we will reset the segment as if the user had pressed the
3345
- * backspace key and then typed the number.
3346
- */
3347
- const digits = prev.toString().length;
3348
- const total = Number.parseInt(prev.toString() + num.toString());
3349
- /**
3350
- * If the number of digits is 2, or if the total with the existing digit
3351
- * and the pressed digit is greater than the maximum value for this
3352
- * month, then we will reset the segment as if the user had pressed the
3353
- * backspace key and then typed the number.
3354
- */
3355
- if (digits === 2 || total > max) {
3356
- /**
3357
- * As we're doing elsewhere, we're checking if the number is greater
3358
- * than the max start digit (0-3 in most months), and if so, we're
3359
- * going to move to the next segment.
3360
- */
3361
- if (num > maxStart) moveToNext = true;
3362
- return {
3363
- value: num,
3364
- moveToNext
3365
- };
3366
- }
3367
- moveToNext = true;
3368
- return {
3369
- value: total,
3370
- moveToNext
3371
- };
3372
- }
3373
- function updateYear(num, prev) {
3374
- let moveToNext = false;
3375
- /**
3376
- * If the user has left the segment, we want to reset the
3377
- * `prev` value so that we can start the segment over again
3378
- * when the user types a number.
3379
- */
3380
- if (props.hasLeftFocus.value) {
3381
- props.hasLeftFocus.value = false;
3382
- prev = null;
3383
- }
3384
- if (prev === null) return {
3385
- value: num === 0 ? 1 : num,
3386
- moveToNext
3387
- };
3388
- const str = prev.toString() + num.toString();
3389
- if (str.length > 4) return {
3390
- value: num === 0 ? 1 : num,
3391
- moveToNext
3392
- };
3393
- if (str.length === 4) moveToNext = true;
3394
- return {
3395
- value: Number.parseInt(str),
3396
- moveToNext
3397
- };
3398
- }
3399
- const attributes = (0, vue.computed)(() => segmentBuilders[props.part]?.attrs({
3400
- disabled: props.disabled.value,
3401
- placeholder: props.placeholder.value,
3402
- hourCycle: props.hourCycle,
3403
- segmentValues: props.segmentValues.value,
3404
- formatter: props.formatter
3405
- }) ?? {});
3406
- function handleDaySegmentKeydown(e) {
3407
- if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) return;
3408
- const prevValue = props.segmentValues.value.day;
3409
- if (e.key === kbd.ARROW_DOWN || e.key === kbd.ARROW_UP) {
3410
- props.segmentValues.value.day = dateTimeValueIncrementation({
3411
- e,
3412
- part: "day",
3413
- dateRef: props.placeholder.value,
3414
- prevValue
3415
- });
3416
- return;
3417
- }
3418
- if (isNumberString(e.key)) {
3419
- const num = Number.parseInt(e.key);
3420
- const segmentMonthValue = props.segmentValues.value.month;
3421
- const { value, moveToNext } = updateDayOrMonth(segmentMonthValue ? getDaysInMonth(props.placeholder.value.set({ month: segmentMonthValue })) : 31, num, prevValue);
3422
- props.segmentValues.value.day = value;
3423
- if (moveToNext) props.focusNext();
3424
- }
3425
- if (e.key === kbd.BACKSPACE) {
3426
- props.hasLeftFocus.value = false;
3427
- props.segmentValues.value.day = deleteValue(prevValue);
3428
- }
3429
- }
3430
- function handleMonthSegmentKeydown(e) {
3431
- if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) return;
3432
- const prevValue = props.segmentValues.value.month;
3433
- if (e.key === kbd.ARROW_DOWN || e.key === kbd.ARROW_UP) {
3434
- props.segmentValues.value.month = dateTimeValueIncrementation({
3435
- e,
3436
- part: "month",
3437
- dateRef: props.placeholder.value,
3438
- prevValue
3439
- });
3440
- return;
3441
- }
3442
- if (isNumberString(e.key)) {
3443
- const { value, moveToNext } = updateDayOrMonth(12, Number.parseInt(e.key), prevValue);
3444
- props.segmentValues.value.month = value;
3445
- if (moveToNext) props.focusNext();
3446
- }
3447
- if (e.key === kbd.BACKSPACE) {
3448
- props.hasLeftFocus.value = false;
3449
- props.segmentValues.value.month = deleteValue(prevValue);
3450
- }
3451
- }
3452
- function handleYearSegmentKeydown(e) {
3453
- if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) return;
3454
- const prevValue = props.segmentValues.value.year;
3455
- if (e.key === kbd.ARROW_DOWN || e.key === kbd.ARROW_UP) {
3456
- props.segmentValues.value.year = dateTimeValueIncrementation({
3457
- e,
3458
- part: "year",
3459
- dateRef: props.placeholder.value,
3460
- prevValue
3461
- });
3462
- return;
3463
- }
3464
- if (isNumberString(e.key)) {
3465
- const { value, moveToNext } = updateYear(Number.parseInt(e.key), prevValue);
3466
- props.segmentValues.value.year = value;
3467
- if (moveToNext) props.focusNext();
3468
- }
3469
- if (e.key === kbd.BACKSPACE) {
3470
- props.hasLeftFocus.value = false;
3471
- props.segmentValues.value.year = deleteValue(prevValue);
3472
- }
3473
- }
3474
- function uses12HourFormat(locale) {
3475
- const hourCycle = new $fb18d541ea1ad717$export$ad991b66133851cf(locale, { hour: "numeric" }).resolvedOptions().hourCycle;
3476
- return hourCycle === "h11" || hourCycle === "h12";
3477
- }
3478
- function handleHourSegmentKeydown(e) {
3479
- const dateRef = props.placeholder.value;
3480
- if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key) || !("hour" in dateRef) || !("hour" in props.segmentValues.value)) return;
3481
- const prevValue = props.segmentValues.value.hour;
3482
- if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) {
3483
- const newHour = dateTimeValueIncrementation({
3484
- e,
3485
- part: "hour",
3486
- dateRef: props.placeholder.value,
3487
- prevValue
3488
- });
3489
- props.segmentValues.value.hour = newHour;
3490
- if ("dayPeriod" in props.segmentValues.value && newHour !== null) props.segmentValues.value.dayPeriod = newHour >= 12 ? "PM" : "AM";
3491
- return;
3492
- }
3493
- if (isNumberString(e.key)) {
3494
- const num = Number.parseInt(e.key);
3495
- const is12Hour = props.hourCycle !== void 0 ? props.hourCycle === 12 : uses12HourFormat(props.formatter.getLocale());
3496
- const max = is12Hour ? 12 : 24;
3497
- let displayPrev = prevValue;
3498
- if (is12Hour && prevValue !== null) displayPrev = prevValue === 0 ? 12 : prevValue > 12 ? prevValue - 12 : prevValue;
3499
- const { value, moveToNext } = updateHour(max, num, displayPrev);
3500
- let internalValue = value;
3501
- if (is12Hour && value !== null) {
3502
- const period = props.segmentValues.value.dayPeriod || "AM";
3503
- if (value === 12) internalValue = period === "AM" ? 0 : 12;
3504
- else internalValue = period === "PM" ? value + 12 : value;
3505
- }
3506
- props.segmentValues.value.hour = internalValue;
3507
- if (moveToNext) props.focusNext();
3508
- }
3509
- if (e.key === kbd.BACKSPACE) {
3510
- props.hasLeftFocus.value = false;
3511
- props.segmentValues.value.hour = deleteValue(prevValue);
3512
- }
3513
- }
3514
- function handleMinuteSegmentKeydown(e) {
3515
- const dateRef = props.placeholder.value;
3516
- if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key) || !("minute" in dateRef) || !("minute" in props.segmentValues.value)) return;
3517
- const prevValue = props.segmentValues.value.minute;
3518
- if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) props.segmentValues.value.minute = minuteSecondIncrementation({
3519
- e,
3520
- part: "minute",
3521
- dateRef: props.placeholder.value,
3522
- prevValue
3523
- });
3524
- if (isNumberString(e.key)) {
3525
- const { value, moveToNext } = updateMinuteOrSecond(Number.parseInt(e.key), prevValue);
3526
- props.segmentValues.value.minute = value;
3527
- if (moveToNext) props.focusNext();
3528
- }
3529
- if (e.key === kbd.BACKSPACE) {
3530
- props.hasLeftFocus.value = false;
3531
- props.segmentValues.value.minute = deleteValue(prevValue);
3532
- }
3533
- }
3534
- function handleSecondSegmentKeydown(e) {
3535
- const dateRef = props.placeholder.value;
3536
- if (!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key) || !("second" in dateRef) || !("second" in props.segmentValues.value)) return;
3537
- const prevValue = props.segmentValues.value.second;
3538
- if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) props.segmentValues.value.second = minuteSecondIncrementation({
3539
- e,
3540
- part: "second",
3541
- dateRef: props.placeholder.value,
3542
- prevValue
3543
- });
3544
- if (isNumberString(e.key)) {
3545
- const { value, moveToNext } = updateMinuteOrSecond(Number.parseInt(e.key), prevValue);
3546
- props.segmentValues.value.second = value;
3547
- if (moveToNext) props.focusNext();
3548
- }
3549
- if (e.key === kbd.BACKSPACE) {
3550
- props.hasLeftFocus.value = false;
3551
- props.segmentValues.value.second = deleteValue(prevValue);
3552
- }
3553
- }
3554
- function handleDayPeriodSegmentKeydown(e) {
3555
- if ((!isAcceptableSegmentKey(e.key) || isSegmentNavigationKey(e.key)) && e.key !== "a" && e.key !== "p" || !("hour" in props.placeholder.value) || !("dayPeriod" in props.segmentValues.value)) return;
3556
- if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN) {
3557
- if (props.segmentValues.value.dayPeriod === "AM") {
3558
- props.segmentValues.value.dayPeriod = "PM";
3559
- props.segmentValues.value.hour = props.segmentValues.value.hour + 12;
3560
- return;
3561
- }
3562
- props.segmentValues.value.dayPeriod = "AM";
3563
- props.segmentValues.value.hour = props.segmentValues.value.hour - 12;
3564
- return;
3565
- }
3566
- if (["a", "A"].includes(e.key) && props.segmentValues.value.dayPeriod !== "AM") {
3567
- props.segmentValues.value.dayPeriod = "AM";
3568
- props.segmentValues.value.hour = props.segmentValues.value.hour - 12;
3569
- return;
3570
- }
3571
- if (["p", "P"].includes(e.key) && props.segmentValues.value.dayPeriod !== "PM") {
3572
- props.segmentValues.value.dayPeriod = "PM";
3573
- props.segmentValues.value.hour = props.segmentValues.value.hour + 12;
3574
- }
3575
- }
3576
- function handleSegmentClick(e) {
3577
- if (props.disabled.value) e.preventDefault();
3578
- }
3579
- function handleSegmentKeydown(e) {
3580
- const disabled = props.disabled.value;
3581
- const readonly = props.readonly.value;
3582
- if (disabled || readonly) return;
3583
- if (e.key !== kbd.TAB) e.preventDefault();
3584
- ({
3585
- day: handleDaySegmentKeydown,
3586
- month: handleMonthSegmentKeydown,
3587
- year: handleYearSegmentKeydown,
3588
- hour: handleHourSegmentKeydown,
3589
- minute: handleMinuteSegmentKeydown,
3590
- second: handleSecondSegmentKeydown,
3591
- dayPeriod: handleDayPeriodSegmentKeydown,
3592
- timeZoneName: () => {}
3593
- })[props.part](e);
3594
- if (![kbd.ARROW_LEFT, kbd.ARROW_RIGHT].includes(e.key) && e.key !== kbd.TAB && e.key !== kbd.SHIFT && isAcceptableSegmentKey(e.key)) {
3595
- if (Object.values(props.segmentValues.value).every((item) => item !== null)) {
3596
- const updateObject = { ...props.segmentValues.value };
3597
- const dateRef = props.placeholder.value.set(updateObject);
3598
- props.modelValue.value = dateRef.copy();
3599
- }
3600
- }
3601
- }
3602
- function handleSegmentFocusOut() {
3603
- if (!props.stepSnapping?.value) return;
3604
- if (props.part === "hour" && "hour" in props.segmentValues.value && props.segmentValues.value.hour !== null && props.step.value.hour && props.step.value.hour > 1) {
3605
- props.segmentValues.value.hour = snapValueToStep(props.segmentValues.value.hour, 0, 23, props.step.value.hour);
3606
- if ("dayPeriod" in props.segmentValues.value) {
3607
- if (props.segmentValues.value.hour < 12) props.segmentValues.value.dayPeriod = "AM";
3608
- else if (props.segmentValues.value.hour) props.segmentValues.value.dayPeriod = "PM";
3609
- }
3610
- } else if (props.part === "minute" && "minute" in props.segmentValues.value && props.segmentValues.value.minute !== null && props.step.value.minute && props.step.value.minute > 1) props.segmentValues.value.minute = snapValueToStep(props.segmentValues.value.minute, 0, 59, props.step.value.minute);
3611
- else if (props.part === "second" && "second" in props.segmentValues.value && props.segmentValues.value.second !== null && props.step.value.second && props.step.value.second > 1) props.segmentValues.value.second = snapValueToStep(props.segmentValues.value.second, 0, 59, props.step.value.second);
3612
- if (Object.values(props.segmentValues.value).every((item) => item !== null)) {
3613
- const dateRef = props.placeholder.value.set({ ...props.segmentValues.value });
3614
- props.modelValue.value = dateRef.copy();
3615
- }
3616
- }
3617
- return {
3618
- handleSegmentClick,
3619
- handleSegmentKeydown,
3620
- handleSegmentFocusOut,
3621
- attributes
3622
- };
3623
- }
3624
- //#endregion
3625
- Object.defineProperty(exports, "$11d87f3f76e88657$export$b21e0b124e224484", {
3626
- enumerable: true,
3627
- get: function() {
3628
- return $11d87f3f76e88657$export$b21e0b124e224484;
3629
- }
3630
- });
3631
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$2061056d06d7cdf7", {
3632
- enumerable: true,
3633
- get: function() {
3634
- return $14e0f24ef4ac5c92$export$2061056d06d7cdf7;
3635
- }
3636
- });
3637
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$5a8da0c44a3afdf2", {
3638
- enumerable: true,
3639
- get: function() {
3640
- return $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2;
3641
- }
3642
- });
3643
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$629b0a497aa65267", {
3644
- enumerable: true,
3645
- get: function() {
3646
- return $14e0f24ef4ac5c92$export$629b0a497aa65267;
3647
- }
3648
- });
3649
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$91b62ebf2ba703ee", {
3650
- enumerable: true,
3651
- get: function() {
3652
- return $14e0f24ef4ac5c92$export$91b62ebf2ba703ee;
3653
- }
3654
- });
3655
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$a18c89cbd24170ff", {
3656
- enumerable: true,
3657
- get: function() {
3658
- return $14e0f24ef4ac5c92$export$a18c89cbd24170ff;
3659
- }
3660
- });
3661
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$a2258d9c4118825c", {
3662
- enumerable: true,
3663
- get: function() {
3664
- return $14e0f24ef4ac5c92$export$a2258d9c4118825c;
3665
- }
3666
- });
3667
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$a5a3b454ada2268e", {
3668
- enumerable: true,
3669
- get: function() {
3670
- return $14e0f24ef4ac5c92$export$a5a3b454ada2268e;
3671
- }
3672
- });
3673
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$aa8b41735afcabd2", {
3674
- enumerable: true,
3675
- get: function() {
3676
- return $14e0f24ef4ac5c92$export$aa8b41735afcabd2;
3677
- }
3678
- });
3679
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3", {
3680
- enumerable: true,
3681
- get: function() {
3682
- return $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3;
3683
- }
3684
- });
3685
- Object.defineProperty(exports, "$14e0f24ef4ac5c92$export$ea39ec197993aef0", {
3686
- enumerable: true,
3687
- get: function() {
3688
- return $14e0f24ef4ac5c92$export$ea39ec197993aef0;
3689
- }
3690
- });
3691
- Object.defineProperty(exports, "$35ea8db9cb2ccb90$export$680ea196effce5f", {
3692
- enumerable: true,
3693
- get: function() {
3694
- return $35ea8db9cb2ccb90$export$680ea196effce5f;
3695
- }
3696
- });
3697
- Object.defineProperty(exports, "$35ea8db9cb2ccb90$export$99faa760c7908e4f", {
3698
- enumerable: true,
3699
- get: function() {
3700
- return $35ea8db9cb2ccb90$export$99faa760c7908e4f;
3701
- }
3702
- });
3703
- Object.defineProperty(exports, "areAllDaysBetweenValid", {
3704
- enumerable: true,
3705
- get: function() {
3706
- return areAllDaysBetweenValid;
3707
- }
3708
- });
3709
- Object.defineProperty(exports, "chunk", {
3710
- enumerable: true,
3711
- get: function() {
3712
- return chunk;
3713
- }
3714
- });
3715
- Object.defineProperty(exports, "createContent", {
3716
- enumerable: true,
3717
- get: function() {
3718
- return createContent;
3719
- }
3720
- });
3721
- Object.defineProperty(exports, "getDaysInMonth", {
3722
- enumerable: true,
3723
- get: function() {
3724
- return getDaysInMonth;
3725
- }
3726
- });
3727
- Object.defineProperty(exports, "getDefaultDate", {
3728
- enumerable: true,
3729
- get: function() {
3730
- return getDefaultDate;
3731
- }
3732
- });
3733
- Object.defineProperty(exports, "getDefaultTime", {
3734
- enumerable: true,
3735
- get: function() {
3736
- return getDefaultTime;
3737
- }
3738
- });
3739
- Object.defineProperty(exports, "getLastFirstDayOfWeek", {
3740
- enumerable: true,
3741
- get: function() {
3742
- return getLastFirstDayOfWeek;
3743
- }
3744
- });
3745
- Object.defineProperty(exports, "getNextLastDayOfWeek", {
3746
- enumerable: true,
3747
- get: function() {
3748
- return getNextLastDayOfWeek;
3749
- }
3750
- });
3751
- Object.defineProperty(exports, "getSegmentElements", {
3752
- enumerable: true,
3753
- get: function() {
3754
- return getSegmentElements;
3755
- }
3756
- });
3757
- Object.defineProperty(exports, "getTimeFieldSegmentElements", {
3758
- enumerable: true,
3759
- get: function() {
3760
- return getTimeFieldSegmentElements;
3761
- }
3762
- });
3763
- Object.defineProperty(exports, "handleCalendarInitialFocus", {
3764
- enumerable: true,
3765
- get: function() {
3766
- return handleCalendarInitialFocus;
3767
- }
3768
- });
3769
- Object.defineProperty(exports, "hasTime", {
3770
- enumerable: true,
3771
- get: function() {
3772
- return hasTime;
3773
- }
3774
- });
3775
- Object.defineProperty(exports, "initializeSegmentValues", {
3776
- enumerable: true,
3777
- get: function() {
3778
- return initializeSegmentValues;
3779
- }
3780
- });
3781
- Object.defineProperty(exports, "initializeTimeSegmentValues", {
3782
- enumerable: true,
3783
- get: function() {
3784
- return initializeTimeSegmentValues;
3785
- }
3786
- });
3787
- Object.defineProperty(exports, "isAfter", {
3788
- enumerable: true,
3789
- get: function() {
3790
- return isAfter;
3791
- }
3792
- });
3793
- Object.defineProperty(exports, "isBefore", {
3794
- enumerable: true,
3795
- get: function() {
3796
- return isBefore;
3797
- }
3798
- });
3799
- Object.defineProperty(exports, "isBeforeOrSame", {
3800
- enumerable: true,
3801
- get: function() {
3802
- return isBeforeOrSame;
3803
- }
3804
- });
3805
- Object.defineProperty(exports, "isBetween", {
3806
- enumerable: true,
3807
- get: function() {
3808
- return isBetween;
3809
- }
3810
- });
3811
- Object.defineProperty(exports, "isBetweenInclusive", {
3812
- enumerable: true,
3813
- get: function() {
3814
- return isBetweenInclusive;
3815
- }
3816
- });
3817
- Object.defineProperty(exports, "isSegmentNavigationKey", {
3818
- enumerable: true,
3819
- get: function() {
3820
- return isSegmentNavigationKey;
3821
- }
3822
- });
3823
- Object.defineProperty(exports, "normalizeDateStep", {
3824
- enumerable: true,
3825
- get: function() {
3826
- return normalizeDateStep;
3827
- }
3828
- });
3829
- Object.defineProperty(exports, "normalizeHourCycle", {
3830
- enumerable: true,
3831
- get: function() {
3832
- return normalizeHourCycle;
3833
- }
3834
- });
3835
- Object.defineProperty(exports, "syncSegmentValues", {
3836
- enumerable: true,
3837
- get: function() {
3838
- return syncSegmentValues;
3839
- }
3840
- });
3841
- Object.defineProperty(exports, "syncTimeSegmentValues", {
3842
- enumerable: true,
3843
- get: function() {
3844
- return syncTimeSegmentValues;
3845
- }
3846
- });
3847
- Object.defineProperty(exports, "toDate", {
3848
- enumerable: true,
3849
- get: function() {
3850
- return toDate;
3851
- }
3852
- });
3853
- Object.defineProperty(exports, "useDateField", {
3854
- enumerable: true,
3855
- get: function() {
3856
- return useDateField;
3857
- }
3858
- });
3859
- Object.defineProperty(exports, "useDateFormatter", {
3860
- enumerable: true,
3861
- get: function() {
3862
- return useDateFormatter;
3863
- }
3864
- });
3865
- Object.defineProperty(exports, "useLocale", {
3866
- enumerable: true,
3867
- get: function() {
3868
- return useLocale;
3869
- }
3870
- });
3871
-
3872
- //# sourceMappingURL=useDateField-DWv3600o.js.map