@televet/kibble-ui 4.0.0-beta.7 → 4.0.0-beta.71

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 (969) hide show
  1. package/README.md +40 -0
  2. package/dist/chunks/IconLogo-C4aZqkn1.js +2 -0
  3. package/dist/chunks/IconLogo-C4aZqkn1.js.map +1 -0
  4. package/dist/chunks/IconLogo-D8EHZ4Is.js +62 -0
  5. package/dist/chunks/IconLogo-D8EHZ4Is.js.map +1 -0
  6. package/dist/chunks/alert.types-8JN84Qgi.js +219 -0
  7. package/dist/chunks/alert.types-8JN84Qgi.js.map +1 -0
  8. package/dist/chunks/alert.types-eZV4C-Lo.js +2 -0
  9. package/dist/chunks/alert.types-eZV4C-Lo.js.map +1 -0
  10. package/dist/chunks/attr-BMs6szZx.js +2 -0
  11. package/dist/chunks/attr-BMs6szZx.js.map +1 -0
  12. package/dist/chunks/attr-sm10PXOd.js +5 -0
  13. package/dist/chunks/attr-sm10PXOd.js.map +1 -0
  14. package/dist/chunks/avatar.component-DFECejcq.js +2 -0
  15. package/dist/chunks/avatar.component-DFECejcq.js.map +1 -0
  16. package/dist/chunks/avatar.component-DHEnOmiw.js +420 -0
  17. package/dist/chunks/avatar.component-DHEnOmiw.js.map +1 -0
  18. package/dist/chunks/{avatarGroup.component-CceV-fW0.js → avatarGroup.component-BivC9ghH.js} +27 -28
  19. package/dist/chunks/{avatarGroup.component-CceV-fW0.js.map → avatarGroup.component-BivC9ghH.js.map} +1 -1
  20. package/dist/chunks/avatarGroup.component-CidA0JNq.js +2 -0
  21. package/dist/chunks/{avatarGroup.component-Q43nemix.js.map → avatarGroup.component-CidA0JNq.js.map} +1 -1
  22. package/dist/chunks/box-Baq7UBls.js +2 -0
  23. package/dist/chunks/box-Baq7UBls.js.map +1 -0
  24. package/dist/chunks/box-Ck9I7FYv.js +7 -0
  25. package/dist/chunks/box-Ck9I7FYv.js.map +1 -0
  26. package/dist/chunks/{button.component-BtkAjIWe.js → button.component-BpF3MzbZ.js} +10 -10
  27. package/dist/chunks/button.component-BpF3MzbZ.js.map +1 -0
  28. package/dist/chunks/button.component-Dd9AfGox.js +2 -0
  29. package/dist/chunks/button.component-Dd9AfGox.js.map +1 -0
  30. package/dist/chunks/buttonGroup.component-B6Z97Z5w.js +77 -0
  31. package/dist/chunks/buttonGroup.component-B6Z97Z5w.js.map +1 -0
  32. package/dist/chunks/buttonGroup.component-dEH5U2U9.js +2 -0
  33. package/dist/chunks/buttonGroup.component-dEH5U2U9.js.map +1 -0
  34. package/dist/chunks/card.component-DNX41NGG.js +59 -0
  35. package/dist/chunks/card.component-DNX41NGG.js.map +1 -0
  36. package/dist/chunks/card.component-KNc4HKSh.js +2 -0
  37. package/dist/chunks/card.component-KNc4HKSh.js.map +1 -0
  38. package/dist/chunks/card.types-Cixp7ouC.js +5 -0
  39. package/dist/chunks/card.types-Cixp7ouC.js.map +1 -0
  40. package/dist/chunks/card.types-MvkQTTZF.js +2 -0
  41. package/dist/chunks/card.types-MvkQTTZF.js.map +1 -0
  42. package/dist/chunks/{characterCounter.component-DhiMcztY.js → characterCounter.component-BnJlAXbZ.js} +14 -12
  43. package/dist/chunks/{characterCounter.component-DhiMcztY.js.map → characterCounter.component-BnJlAXbZ.js.map} +1 -1
  44. package/dist/chunks/characterCounter.component-D32B_18y.js +2 -0
  45. package/dist/chunks/{characterCounter.component-BXxyn_IB.js.map → characterCounter.component-D32B_18y.js.map} +1 -1
  46. package/dist/chunks/checkbox.component-Oc8lxpMw.js +2 -0
  47. package/dist/chunks/checkbox.component-Oc8lxpMw.js.map +1 -0
  48. package/dist/chunks/checkbox.component-PJondNuh.js +310 -0
  49. package/dist/chunks/checkbox.component-PJondNuh.js.map +1 -0
  50. package/dist/chunks/checkbox.records-B1tMW87O.js +2 -0
  51. package/dist/chunks/checkbox.records-B1tMW87O.js.map +1 -0
  52. package/dist/chunks/checkbox.records-BtZVOsgd.js +266 -0
  53. package/dist/chunks/checkbox.records-BtZVOsgd.js.map +1 -0
  54. package/dist/chunks/checkboxGroup.component-DUlVhjLO.js +52 -0
  55. package/dist/chunks/{checkboxGroup.component-DcIdfbbl.js.map → checkboxGroup.component-DUlVhjLO.js.map} +1 -1
  56. package/dist/chunks/checkboxGroup.component-Du63au-w.js +2 -0
  57. package/dist/chunks/{checkboxGroup.component-BYKUQW4y.js.map → checkboxGroup.component-Du63au-w.js.map} +1 -1
  58. package/dist/chunks/config-BFcXpdZo.js +2 -0
  59. package/dist/chunks/config-BFcXpdZo.js.map +1 -0
  60. package/dist/chunks/config-DlTdf-Yt.js +57 -0
  61. package/dist/chunks/config-DlTdf-Yt.js.map +1 -0
  62. package/dist/chunks/conversationCard.component-C1PQnKmJ.js +2 -0
  63. package/dist/chunks/conversationCard.component-C1PQnKmJ.js.map +1 -0
  64. package/dist/chunks/{conversationCard.component-BSfDNuuw.js → conversationCard.component-CYnBgT3a.js} +51 -49
  65. package/dist/chunks/conversationCard.component-CYnBgT3a.js.map +1 -0
  66. package/dist/chunks/create-recipe-context-D7FewUR4.js +62 -0
  67. package/dist/chunks/create-recipe-context-D7FewUR4.js.map +1 -0
  68. package/dist/chunks/create-recipe-context-sESms8Eo.js +2 -0
  69. package/dist/chunks/create-recipe-context-sESms8Eo.js.map +1 -0
  70. package/dist/chunks/create-slot-recipe-context-BJmsuxih.js +97 -0
  71. package/dist/chunks/create-slot-recipe-context-BJmsuxih.js.map +1 -0
  72. package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js +2 -0
  73. package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js.map +1 -0
  74. package/dist/chunks/datePicker.component-B7jzOKQ9.js +15 -0
  75. package/dist/chunks/datePicker.component-B7jzOKQ9.js.map +1 -0
  76. package/dist/chunks/datePicker.component-Cu0sCxMB.js +3165 -0
  77. package/dist/chunks/datePicker.component-Cu0sCxMB.js.map +1 -0
  78. package/dist/chunks/dialog-trigger-B5NK0lr-.js +2 -0
  79. package/dist/chunks/dialog-trigger-B5NK0lr-.js.map +1 -0
  80. package/dist/chunks/dialog-trigger-BPlPzPU-.js +78 -0
  81. package/dist/chunks/dialog-trigger-BPlPzPU-.js.map +1 -0
  82. package/dist/chunks/divider.types-0j5qRXed.js +47 -0
  83. package/dist/chunks/divider.types-0j5qRXed.js.map +1 -0
  84. package/dist/chunks/divider.types-CK5oFy-i.js +2 -0
  85. package/dist/chunks/divider.types-CK5oFy-i.js.map +1 -0
  86. package/dist/chunks/empty-B5_AO6Pg.js +2 -0
  87. package/dist/chunks/empty-B5_AO6Pg.js.map +1 -0
  88. package/dist/chunks/empty-BU2EAux9.js +8 -0
  89. package/dist/chunks/empty-BU2EAux9.js.map +1 -0
  90. package/dist/chunks/factory-Ctbv0Ozn.js +500 -0
  91. package/dist/chunks/factory-Ctbv0Ozn.js.map +1 -0
  92. package/dist/chunks/factory-D6tdBUPG.js +3 -0
  93. package/dist/chunks/factory-D6tdBUPG.js.map +1 -0
  94. package/dist/chunks/flex-D14H6HbP.js +2 -0
  95. package/dist/chunks/flex-D14H6HbP.js.map +1 -0
  96. package/dist/chunks/flex-smlF8uQG.js +40 -0
  97. package/dist/chunks/flex-smlF8uQG.js.map +1 -0
  98. package/dist/chunks/float-DYLtz2A6.js +64 -0
  99. package/dist/chunks/float-DYLtz2A6.js.map +1 -0
  100. package/dist/chunks/float-OQXnYWBw.js +2 -0
  101. package/dist/chunks/float-OQXnYWBw.js.map +1 -0
  102. package/dist/chunks/format-BRt-TIiQ.js +2 -0
  103. package/dist/chunks/format-BRt-TIiQ.js.map +1 -0
  104. package/dist/chunks/format-DgHM6wFr.js +1275 -0
  105. package/dist/chunks/format-DgHM6wFr.js.map +1 -0
  106. package/dist/chunks/grid-item-BV4dwEBP.js +90 -0
  107. package/dist/chunks/grid-item-BV4dwEBP.js.map +1 -0
  108. package/dist/chunks/grid-item-CR-sXrjU.js +2 -0
  109. package/dist/chunks/grid-item-CR-sXrjU.js.map +1 -0
  110. package/dist/chunks/group-Cv7AQw1b.js +2 -0
  111. package/dist/chunks/group-Cv7AQw1b.js.map +1 -0
  112. package/dist/chunks/group-DPCVolOl.js +139 -0
  113. package/dist/chunks/group-DPCVolOl.js.map +1 -0
  114. package/dist/chunks/h-stack-Bjx9hlJo.js +2 -0
  115. package/dist/chunks/h-stack-Bjx9hlJo.js.map +1 -0
  116. package/dist/chunks/h-stack-Ce6JSBK2.js +12 -0
  117. package/dist/chunks/h-stack-Ce6JSBK2.js.map +1 -0
  118. package/dist/chunks/heading.component-D4rtbYK8.js +12 -0
  119. package/dist/chunks/heading.component-D4rtbYK8.js.map +1 -0
  120. package/dist/chunks/heading.component-uv536wYF.js +2 -0
  121. package/dist/chunks/heading.component-uv536wYF.js.map +1 -0
  122. package/dist/chunks/icon-button-DTZOklQ9.js +119 -0
  123. package/dist/chunks/icon-button-DTZOklQ9.js.map +1 -0
  124. package/dist/chunks/icon-button-DtjZ-SdQ.js +2 -0
  125. package/dist/chunks/icon-button-DtjZ-SdQ.js.map +1 -0
  126. package/dist/chunks/icon.component-C0e0UGBw.js +2 -0
  127. package/dist/chunks/icon.component-C0e0UGBw.js.map +1 -0
  128. package/dist/chunks/{icon.component-DjNY589M.js → icon.component-DGNCL1Yc.js} +14 -16
  129. package/dist/chunks/icon.component-DGNCL1Yc.js.map +1 -0
  130. package/dist/chunks/icons-BXxdrBrf.js +216 -0
  131. package/dist/chunks/icons-BXxdrBrf.js.map +1 -0
  132. package/dist/chunks/icons-CTpAjbC-.js +2 -0
  133. package/dist/chunks/icons-CTpAjbC-.js.map +1 -0
  134. package/dist/chunks/index-BBZxmcrY.js +2 -0
  135. package/dist/chunks/index-BBZxmcrY.js.map +1 -0
  136. package/dist/chunks/index-BDnnTdaJ.js +2 -0
  137. package/dist/chunks/index-BDnnTdaJ.js.map +1 -0
  138. package/dist/chunks/index-BGwwyukg.js +2 -0
  139. package/dist/chunks/index-BGwwyukg.js.map +1 -0
  140. package/dist/chunks/index-BNYygzo-.js +376 -0
  141. package/dist/chunks/index-BNYygzo-.js.map +1 -0
  142. package/dist/chunks/index-BYf7SZUC.js +2 -0
  143. package/dist/chunks/index-BYf7SZUC.js.map +1 -0
  144. package/dist/chunks/index-BknUKotT.js +38 -0
  145. package/dist/chunks/index-BknUKotT.js.map +1 -0
  146. package/dist/chunks/index-C2kxTsiE.js +291 -0
  147. package/dist/chunks/index-C2kxTsiE.js.map +1 -0
  148. package/dist/chunks/index-COoMV9Mh.js +2 -0
  149. package/dist/chunks/index-COoMV9Mh.js.map +1 -0
  150. package/dist/chunks/index-CYk-7wwG.js +1018 -0
  151. package/dist/chunks/index-CYk-7wwG.js.map +1 -0
  152. package/dist/chunks/index-CZ42b9rT.js +3 -0
  153. package/dist/chunks/index-CZ42b9rT.js.map +1 -0
  154. package/dist/chunks/index-CZz7hHWb.js +2 -0
  155. package/dist/chunks/index-CZz7hHWb.js.map +1 -0
  156. package/dist/chunks/index-CgivotaP.js +20 -0
  157. package/dist/chunks/index-CgivotaP.js.map +1 -0
  158. package/dist/chunks/index-CjNAJEk5.js +6313 -0
  159. package/dist/chunks/index-CjNAJEk5.js.map +1 -0
  160. package/dist/chunks/index-CkYZf9Pm.js +2 -0
  161. package/dist/chunks/index-CkYZf9Pm.js.map +1 -0
  162. package/dist/chunks/index-Co91SHhW.js +141 -0
  163. package/dist/chunks/index-Co91SHhW.js.map +1 -0
  164. package/dist/chunks/index-CzrXl0uD.js +2 -0
  165. package/dist/chunks/index-CzrXl0uD.js.map +1 -0
  166. package/dist/chunks/index-D9DU-5GF.js +1196 -0
  167. package/dist/chunks/index-D9DU-5GF.js.map +1 -0
  168. package/dist/chunks/index-DAWHN3cH.js +86 -0
  169. package/dist/chunks/index-DAWHN3cH.js.map +1 -0
  170. package/dist/chunks/index-DD49WSSW.js +2 -0
  171. package/dist/chunks/index-DD49WSSW.js.map +1 -0
  172. package/dist/chunks/index-DUHFrLMI.js +389 -0
  173. package/dist/chunks/index-DUHFrLMI.js.map +1 -0
  174. package/dist/chunks/index-DcJZ8q0f.js +1190 -0
  175. package/dist/chunks/index-DcJZ8q0f.js.map +1 -0
  176. package/dist/chunks/index-MlhL0PDC.js +2 -0
  177. package/dist/chunks/index-MlhL0PDC.js.map +1 -0
  178. package/dist/chunks/index-S1uNQPZj.js +444 -0
  179. package/dist/chunks/index-S1uNQPZj.js.map +1 -0
  180. package/dist/chunks/index-UWtj4ULm.js +8 -0
  181. package/dist/chunks/index-UWtj4ULm.js.map +1 -0
  182. package/dist/chunks/index-ZaGEDS_0.js +2 -0
  183. package/dist/chunks/index-ZaGEDS_0.js.map +1 -0
  184. package/dist/chunks/index-iyefwwxw.js +2 -0
  185. package/dist/chunks/index-iyefwwxw.js.map +1 -0
  186. package/dist/chunks/index-j7W9Hyzx.js +322 -0
  187. package/dist/chunks/index-j7W9Hyzx.js.map +1 -0
  188. package/dist/chunks/index-z-FFv-gK.js +257 -0
  189. package/dist/chunks/index-z-FFv-gK.js.map +1 -0
  190. package/dist/chunks/jsx-runtime-BjDatQAs.js +23 -0
  191. package/dist/chunks/jsx-runtime-BjDatQAs.js.map +1 -0
  192. package/dist/chunks/jsx-runtime-C5mzlN2N.js +285 -0
  193. package/dist/chunks/jsx-runtime-C5mzlN2N.js.map +1 -0
  194. package/dist/chunks/link.component-CCFg-LIe.js +2 -0
  195. package/dist/chunks/link.component-CCFg-LIe.js.map +1 -0
  196. package/dist/chunks/link.component-DprieyUG.js +60 -0
  197. package/dist/chunks/link.component-DprieyUG.js.map +1 -0
  198. package/dist/chunks/list-C_LmDoyW.js +2 -0
  199. package/dist/chunks/list-C_LmDoyW.js.map +1 -0
  200. package/dist/chunks/list-DqH5ttQG.js +20 -0
  201. package/dist/chunks/list-DqH5ttQG.js.map +1 -0
  202. package/dist/chunks/logo.types-By8TqyNf.js +76 -0
  203. package/dist/chunks/logo.types-By8TqyNf.js.map +1 -0
  204. package/dist/chunks/logo.types-CA_5hGAi.js +2 -0
  205. package/dist/chunks/logo.types-CA_5hGAi.js.map +1 -0
  206. package/dist/chunks/menu.component-DCtztozy.js +2 -0
  207. package/dist/chunks/menu.component-DCtztozy.js.map +1 -0
  208. package/dist/chunks/menu.component-DaWlH0RE.js +678 -0
  209. package/dist/chunks/menu.component-DaWlH0RE.js.map +1 -0
  210. package/dist/chunks/modal.types-Cx0d9C_x.js +206 -0
  211. package/dist/chunks/modal.types-Cx0d9C_x.js.map +1 -0
  212. package/dist/chunks/modal.types-DBKm96OL.js +2 -0
  213. package/dist/chunks/modal.types-DBKm96OL.js.map +1 -0
  214. package/dist/chunks/{notificationCounter.component-DU5P6Ilh.js → notificationCounter.component-Bei8mHSZ.js} +10 -8
  215. package/dist/chunks/{notificationCounter.component-DU5P6Ilh.js.map → notificationCounter.component-Bei8mHSZ.js.map} +1 -1
  216. package/dist/chunks/notificationCounter.component-BhZcuBmr.js +2 -0
  217. package/dist/chunks/{notificationCounter.component-D6v39lna.js.map → notificationCounter.component-BhZcuBmr.js.map} +1 -1
  218. package/dist/chunks/notificationCounter.types-B_-siNfi.js +2 -0
  219. package/dist/chunks/notificationCounter.types-B_-siNfi.js.map +1 -0
  220. package/dist/chunks/notificationCounter.types-S7ENT1Oj.js +11 -0
  221. package/dist/chunks/notificationCounter.types-S7ENT1Oj.js.map +1 -0
  222. package/dist/chunks/omit-C-j4TrF5.js +10 -0
  223. package/dist/chunks/omit-C-j4TrF5.js.map +1 -0
  224. package/dist/chunks/omit-DqNeoZ8h.js +2 -0
  225. package/dist/chunks/omit-DqNeoZ8h.js.map +1 -0
  226. package/dist/chunks/picture.component-C2C2r_BU.js +2 -0
  227. package/dist/chunks/picture.component-C2C2r_BU.js.map +1 -0
  228. package/dist/chunks/picture.component-DKbaaL64.js +35 -0
  229. package/dist/chunks/picture.component-DKbaaL64.js.map +1 -0
  230. package/dist/chunks/pinInput.types-DG_lLcFk.js +2 -0
  231. package/dist/chunks/pinInput.types-DG_lLcFk.js.map +1 -0
  232. package/dist/chunks/pinInput.types-HUZl_UUD.js +161 -0
  233. package/dist/chunks/pinInput.types-HUZl_UUD.js.map +1 -0
  234. package/dist/chunks/popover-80QH8HEJ.js +2 -0
  235. package/dist/chunks/popover-80QH8HEJ.js.map +1 -0
  236. package/dist/chunks/popover-B9rNOU0g.js +110 -0
  237. package/dist/chunks/popover-B9rNOU0g.js.map +1 -0
  238. package/dist/chunks/popover-root-provider-CeLLpesI.js +43 -0
  239. package/dist/chunks/popover-root-provider-CeLLpesI.js.map +1 -0
  240. package/dist/chunks/popover-root-provider-DAMDDAHQ.js +2 -0
  241. package/dist/chunks/popover-root-provider-DAMDDAHQ.js.map +1 -0
  242. package/dist/chunks/popover.component-D27f6GTu.js +322 -0
  243. package/dist/chunks/popover.component-D27f6GTu.js.map +1 -0
  244. package/dist/chunks/popover.component-KGVUAj9L.js +2 -0
  245. package/dist/chunks/popover.component-KGVUAj9L.js.map +1 -0
  246. package/dist/chunks/popover.recipe--gMRcQTS.js +479 -0
  247. package/dist/chunks/popover.recipe--gMRcQTS.js.map +1 -0
  248. package/dist/chunks/popover.recipe-DLeyokHo.js +2 -0
  249. package/dist/chunks/popover.recipe-DLeyokHo.js.map +1 -0
  250. package/dist/chunks/provider-ClCAdPxy.js +47 -0
  251. package/dist/chunks/provider-ClCAdPxy.js.map +1 -0
  252. package/dist/chunks/provider-NDo8kOkE.js +2 -0
  253. package/dist/chunks/provider-NDo8kOkE.js.map +1 -0
  254. package/dist/chunks/radio.records-C-MuxSPZ.js +2 -0
  255. package/dist/chunks/radio.records-C-MuxSPZ.js.map +1 -0
  256. package/dist/chunks/radio.records-DzITb4sg.js +382 -0
  257. package/dist/chunks/radio.records-DzITb4sg.js.map +1 -0
  258. package/dist/chunks/radioGroup.component-PdVYD3bp.js +275 -0
  259. package/dist/chunks/radioGroup.component-PdVYD3bp.js.map +1 -0
  260. package/dist/chunks/radioGroup.component-wgmJPLDW.js +2 -0
  261. package/dist/chunks/radioGroup.component-wgmJPLDW.js.map +1 -0
  262. package/dist/chunks/ratingDots.component-CUPAiIW_.js +2 -0
  263. package/dist/chunks/{ratingDots.component-DOZX6EE0.js.map → ratingDots.component-CUPAiIW_.js.map} +1 -1
  264. package/dist/chunks/{ratingDots.component-B4OK_lXC.js → ratingDots.component-ClZHNCmw.js} +31 -28
  265. package/dist/chunks/{ratingDots.component-B4OK_lXC.js.map → ratingDots.component-ClZHNCmw.js.map} +1 -1
  266. package/dist/chunks/render-strategy-BmWbSgqh.js +2 -0
  267. package/dist/chunks/render-strategy-BmWbSgqh.js.map +1 -0
  268. package/dist/chunks/render-strategy-C8hwN3bm.js +12 -0
  269. package/dist/chunks/render-strategy-C8hwN3bm.js.map +1 -0
  270. package/dist/chunks/select.component-CGqMFhui.js +2 -0
  271. package/dist/chunks/select.component-CGqMFhui.js.map +1 -0
  272. package/dist/chunks/select.component-DHP33P1O.js +391 -0
  273. package/dist/chunks/select.component-DHP33P1O.js.map +1 -0
  274. package/dist/chunks/{dnd-DDR6viHX.js → sortableList.component-1gWWNAQS.js} +1015 -887
  275. package/dist/chunks/sortableList.component-1gWWNAQS.js.map +1 -0
  276. package/dist/chunks/sortableList.component-BLYlOg_f.js +6 -0
  277. package/dist/chunks/sortableList.component-BLYlOg_f.js.map +1 -0
  278. package/dist/chunks/spinner-BWqSIW6m.js +8 -0
  279. package/dist/chunks/spinner-BWqSIW6m.js.map +1 -0
  280. package/dist/chunks/spinner-BnpL14kK.js +2 -0
  281. package/dist/chunks/spinner-BnpL14kK.js.map +1 -0
  282. package/dist/chunks/{spinner.component-D5tkelNc.js → spinner.component-BnWQ5OjN.js} +21 -19
  283. package/dist/chunks/spinner.component-BnWQ5OjN.js.map +1 -0
  284. package/dist/chunks/spinner.component-Ebdkd2br.js +2 -0
  285. package/dist/chunks/{spinner.component-CUuidnSK.js.map → spinner.component-Ebdkd2br.js.map} +1 -1
  286. package/dist/chunks/stack-BKu3hWEQ.js +2 -0
  287. package/dist/chunks/stack-BKu3hWEQ.js.map +1 -0
  288. package/dist/chunks/stack-Dnuh5Zgf.js +85 -0
  289. package/dist/chunks/stack-Dnuh5Zgf.js.map +1 -0
  290. package/dist/chunks/styledAvatar.types-B1WPMZAS.js +2 -0
  291. package/dist/chunks/styledAvatar.types-B1WPMZAS.js.map +1 -0
  292. package/dist/chunks/{styledAvatar.types-CoxQchLt.js → styledAvatar.types-C0KWX23C.js} +3 -3
  293. package/dist/chunks/styledAvatar.types-C0KWX23C.js.map +1 -0
  294. package/dist/chunks/swatch.types-DbgA3RWc.js +67 -0
  295. package/dist/chunks/swatch.types-DbgA3RWc.js.map +1 -0
  296. package/dist/chunks/swatch.types-DiX-4lpJ.js +2 -0
  297. package/dist/chunks/swatch.types-DiX-4lpJ.js.map +1 -0
  298. package/dist/chunks/switch.component-CbZlg5Iz.js +166 -0
  299. package/dist/chunks/switch.component-CbZlg5Iz.js.map +1 -0
  300. package/dist/chunks/switch.component-D5kgSKKx.js +2 -0
  301. package/dist/chunks/switch.component-D5kgSKKx.js.map +1 -0
  302. package/dist/chunks/tabs.component-Bi1vanBo.js +639 -0
  303. package/dist/chunks/tabs.component-Bi1vanBo.js.map +1 -0
  304. package/dist/chunks/tabs.component-SlXJb1rB.js +2 -0
  305. package/dist/chunks/tabs.component-SlXJb1rB.js.map +1 -0
  306. package/dist/chunks/tag.component-C6a6EzZB.js +2 -0
  307. package/dist/chunks/tag.component-C6a6EzZB.js.map +1 -0
  308. package/dist/chunks/tag.component-pexJ0TAT.js +82 -0
  309. package/dist/chunks/tag.component-pexJ0TAT.js.map +1 -0
  310. package/dist/chunks/{tagBlock.component-LX4_ve_f.js → tagBlock.component-C6cfZb0d.js} +18 -17
  311. package/dist/chunks/tagBlock.component-C6cfZb0d.js.map +1 -0
  312. package/dist/chunks/tagBlock.component-CLB4ggMT.js +2 -0
  313. package/dist/chunks/tagBlock.component-CLB4ggMT.js.map +1 -0
  314. package/dist/chunks/text.component-BZQWS29V.js +2 -0
  315. package/dist/chunks/text.component-BZQWS29V.js.map +1 -0
  316. package/dist/chunks/text.component-BZSCPJLf.js +12 -0
  317. package/dist/chunks/text.component-BZSCPJLf.js.map +1 -0
  318. package/dist/chunks/textInput.component-B0VClMq5.js +2 -0
  319. package/dist/chunks/textInput.component-B0VClMq5.js.map +1 -0
  320. package/dist/chunks/textInput.component-kSJAjj78.js +180 -0
  321. package/dist/chunks/textInput.component-kSJAjj78.js.map +1 -0
  322. package/dist/chunks/textarea.component-BubrZCI9.js +98 -0
  323. package/dist/chunks/textarea.component-BubrZCI9.js.map +1 -0
  324. package/dist/chunks/textarea.component-DZ89XNHw.js +2 -0
  325. package/dist/chunks/textarea.component-DZ89XNHw.js.map +1 -0
  326. package/dist/chunks/{chakra-BqBkjpvZ.js → theme.provider-BK05OKFS.js} +5186 -4303
  327. package/dist/chunks/theme.provider-BK05OKFS.js.map +1 -0
  328. package/dist/chunks/theme.provider-DNwKSEWO.js +48 -0
  329. package/dist/chunks/theme.provider-DNwKSEWO.js.map +1 -0
  330. package/dist/chunks/timePicker.component-DyoR0UBJ.js +2 -0
  331. package/dist/chunks/{timePicker.component-Dw_FjiQX.js.map → timePicker.component-DyoR0UBJ.js.map} +1 -1
  332. package/dist/chunks/{timePicker.component--ABdI3GF.js → timePicker.component-hHOzJUi7.js} +46 -43
  333. package/dist/chunks/{timePicker.component--ABdI3GF.js.map → timePicker.component-hHOzJUi7.js.map} +1 -1
  334. package/dist/chunks/timeRange.component-C2anTUsM.js +2 -0
  335. package/dist/chunks/{timeRange.component-RLisXhuw.js.map → timeRange.component-C2anTUsM.js.map} +1 -1
  336. package/dist/chunks/timeRange.component-PlO6xxkd.js +18 -0
  337. package/dist/chunks/{timeRange.component-B3OvVyo_.js.map → timeRange.component-PlO6xxkd.js.map} +1 -1
  338. package/dist/chunks/timestamp.component-C__DC7oq.js +54 -0
  339. package/dist/chunks/timestamp.component-C__DC7oq.js.map +1 -0
  340. package/dist/chunks/timestamp.component-T3aszXN_.js +2 -0
  341. package/dist/chunks/timestamp.component-T3aszXN_.js.map +1 -0
  342. package/dist/chunks/toaster.records-BGfpUOVt.js +824 -0
  343. package/dist/chunks/toaster.records-BGfpUOVt.js.map +1 -0
  344. package/dist/chunks/toaster.records-BJo0j1IZ.js +2 -0
  345. package/dist/chunks/toaster.records-BJo0j1IZ.js.map +1 -0
  346. package/dist/chunks/tooltip.component-G-RF87Zw.js +750 -0
  347. package/dist/chunks/tooltip.component-G-RF87Zw.js.map +1 -0
  348. package/dist/chunks/tooltip.component-Vo-2841s.js +2 -0
  349. package/dist/chunks/tooltip.component-Vo-2841s.js.map +1 -0
  350. package/dist/chunks/typography-Cqrokog3.js.map +1 -1
  351. package/dist/chunks/typography-CtiaGoJG.js.map +1 -1
  352. package/dist/chunks/typography.records-C6G_65b4.js +2 -0
  353. package/dist/chunks/typography.records-C6G_65b4.js.map +1 -0
  354. package/dist/chunks/typography.records-jnjWfTLS.js +66 -0
  355. package/dist/chunks/typography.records-jnjWfTLS.js.map +1 -0
  356. package/dist/chunks/use-breakpoint-MQ7agQJe.js +72 -0
  357. package/dist/chunks/use-breakpoint-MQ7agQJe.js.map +1 -0
  358. package/dist/chunks/use-breakpoint-uBg4-8yY.js +2 -0
  359. package/dist/chunks/use-breakpoint-uBg4-8yY.js.map +1 -0
  360. package/dist/chunks/use-field-context--wBJQY1R.js +2 -0
  361. package/dist/chunks/use-field-context--wBJQY1R.js.map +1 -0
  362. package/dist/chunks/use-field-context-B_G7Yziz.js +12 -0
  363. package/dist/chunks/use-field-context-B_G7Yziz.js.map +1 -0
  364. package/dist/chunks/use-locale-context-BdqHZ8L8.js +22 -0
  365. package/dist/chunks/use-locale-context-BdqHZ8L8.js.map +1 -0
  366. package/dist/chunks/use-locale-context-D-agiW5E.js +2301 -0
  367. package/dist/chunks/use-locale-context-D-agiW5E.js.map +1 -0
  368. package/dist/chunks/use-recipe-DaPWl_pL.js +2 -0
  369. package/dist/chunks/use-recipe-DaPWl_pL.js.map +1 -0
  370. package/dist/chunks/use-recipe-d63ABaZ3.js +13 -0
  371. package/dist/chunks/use-recipe-d63ABaZ3.js.map +1 -0
  372. package/dist/chunks/use-slot-recipe-8liupslO.js +2 -0
  373. package/dist/chunks/use-slot-recipe-8liupslO.js.map +1 -0
  374. package/dist/chunks/use-slot-recipe-DhtQ1j_5.js +13 -0
  375. package/dist/chunks/use-slot-recipe-DhtQ1j_5.js.map +1 -0
  376. package/dist/chunks/v-stack-BZT7R_9f.js +12 -0
  377. package/dist/chunks/v-stack-BZT7R_9f.js.map +1 -0
  378. package/dist/chunks/v-stack-DxjgpeJ0.js +2 -0
  379. package/dist/chunks/v-stack-DxjgpeJ0.js.map +1 -0
  380. package/dist/chunks/walk-object-BrTExCqQ.js +2 -0
  381. package/dist/chunks/walk-object-BrTExCqQ.js.map +1 -0
  382. package/dist/chunks/walk-object-_CL3Bkm9.js +28 -0
  383. package/dist/chunks/walk-object-_CL3Bkm9.js.map +1 -0
  384. package/dist/chunks/withFormControl-5ywq6Y2v.js +376 -0
  385. package/dist/chunks/withFormControl-5ywq6Y2v.js.map +1 -0
  386. package/dist/chunks/withFormControl-_nV7mlmV.js +2 -0
  387. package/dist/chunks/withFormControl-_nV7mlmV.js.map +1 -0
  388. package/dist/chunks/{withTruncation-C2xFKhgB.js → withTruncation-D4DrwvZ2.js} +21 -28
  389. package/dist/chunks/{withTruncation-BskZBBVs.js.map → withTruncation-D4DrwvZ2.js.map} +1 -1
  390. package/dist/chunks/withTruncation-DH07KRFn.js +2 -0
  391. package/dist/chunks/{withTruncation-C2xFKhgB.js.map → withTruncation-DH07KRFn.js.map} +1 -1
  392. package/dist/chunks/wrap-B8tBNeBY.js +45 -0
  393. package/dist/chunks/wrap-B8tBNeBY.js.map +1 -0
  394. package/dist/chunks/wrap-CNn1kyJX.js +2 -0
  395. package/dist/chunks/wrap-CNn1kyJX.js.map +1 -0
  396. package/dist/cjs/chakra/index.cjs +2 -0
  397. package/dist/cjs/chakra/index.cjs.map +1 -0
  398. package/dist/cjs/cli/generate-theme-types.cjs +6 -0
  399. package/dist/cjs/cli/generate-theme-types.cjs.map +1 -0
  400. package/dist/cjs/cli/postinstall.cjs +3 -0
  401. package/dist/cjs/cli/postinstall.cjs.map +1 -0
  402. package/dist/cjs/components/Alert/index.cjs +1 -1
  403. package/dist/cjs/components/Avatar/index.cjs +1 -1
  404. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  405. package/dist/cjs/components/Button/index.cjs +1 -1
  406. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  407. package/dist/cjs/components/Card/index.cjs +1 -1
  408. package/dist/cjs/components/Card/index.cjs.map +1 -1
  409. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  410. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  411. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  412. package/dist/cjs/{patterns → components}/ConversationCard/index.cjs +1 -1
  413. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  414. package/dist/cjs/components/Divider/index.cjs +2 -0
  415. package/dist/cjs/components/Heading/index.cjs +1 -1
  416. package/dist/cjs/components/Icon/generated/index.cjs +1 -1
  417. package/dist/cjs/components/Icon/generated/index.cjs.map +1 -1
  418. package/dist/cjs/components/Icon/index.cjs +1 -1
  419. package/dist/cjs/components/Link/index.cjs +1 -1
  420. package/dist/cjs/components/Logo/generated/index.cjs +2 -0
  421. package/dist/cjs/components/Logo/index.cjs +2 -0
  422. package/dist/cjs/components/Menu/index.cjs +1 -1
  423. package/dist/cjs/components/Modal/index.cjs +1 -1
  424. package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
  425. package/dist/cjs/components/NotificationCounter/index.cjs.map +1 -1
  426. package/dist/cjs/components/Picture/index.cjs +1 -1
  427. package/dist/cjs/components/Picture/index.cjs.map +1 -1
  428. package/dist/cjs/components/PinInput/index.cjs +2 -0
  429. package/dist/cjs/components/Popover/index.cjs +1 -1
  430. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  431. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  432. package/dist/cjs/components/Select/index.cjs +1 -1
  433. package/dist/cjs/components/SortableList/index.cjs +1 -1
  434. package/dist/cjs/components/Spinner/index.cjs +1 -1
  435. package/dist/cjs/{patterns → components}/StyledAvatar/index.cjs +1 -1
  436. package/dist/cjs/components/StyledAvatar/index.cjs.map +1 -0
  437. package/dist/cjs/components/Swatch/index.cjs +1 -1
  438. package/dist/cjs/components/Swatch/index.cjs.map +1 -1
  439. package/dist/cjs/components/Switch/index.cjs +1 -1
  440. package/dist/cjs/components/Tabs/index.cjs +1 -1
  441. package/dist/cjs/components/Tag/index.cjs +1 -1
  442. package/dist/cjs/{patterns → components}/TagBlock/index.cjs +1 -1
  443. package/dist/cjs/components/TagBlock/index.cjs.map +1 -0
  444. package/dist/cjs/components/Text/index.cjs +1 -1
  445. package/dist/cjs/components/TextInput/index.cjs +1 -1
  446. package/dist/cjs/components/Textarea/index.cjs +1 -1
  447. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  448. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  449. package/dist/cjs/{patterns → components}/Timestamp/index.cjs +1 -1
  450. package/dist/cjs/components/Timestamp/index.cjs.map +1 -0
  451. package/dist/cjs/components/Toast/index.cjs +2 -0
  452. package/dist/cjs/components/Toast/index.cjs.map +1 -0
  453. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  454. package/dist/cjs/components/index.cjs +1 -1
  455. package/dist/cjs/hocs/index.cjs +1 -1
  456. package/dist/cjs/hocs/index.cjs.map +1 -1
  457. package/dist/cjs/hooks/index.cjs +1 -1
  458. package/dist/cjs/hooks/index.cjs.map +1 -1
  459. package/dist/cjs/hooks/useBreakpoint/index.cjs +2 -0
  460. package/dist/cjs/hooks/useBreakpoint/index.cjs.map +1 -0
  461. package/dist/cjs/hooks/useDeviceType/index.cjs +2 -0
  462. package/dist/cjs/hooks/useDeviceType/index.cjs.map +1 -0
  463. package/dist/cjs/index.cjs +1 -1
  464. package/dist/cjs/shared/index.cjs +2 -0
  465. package/dist/cjs/shared/index.cjs.map +1 -0
  466. package/dist/cjs/shared/records/index.cjs +2 -0
  467. package/dist/cjs/shared/records/index.cjs.map +1 -0
  468. package/dist/cjs/theme/index.cjs +1 -23
  469. package/dist/cjs/theme/index.cjs.map +1 -1
  470. package/dist/cjs/theme/tokens/blurs/index.cjs +1 -1
  471. package/dist/cjs/theme/tokens/blurs/index.cjs.map +1 -1
  472. package/dist/cjs/theme/tokens/borders/index.cjs +1 -1
  473. package/dist/cjs/theme/tokens/borders/index.cjs.map +1 -1
  474. package/dist/cjs/theme/tokens/index.cjs +1 -1
  475. package/dist/cjs/theme/tokens/shadows/index.cjs +1 -1
  476. package/dist/cjs/theme/tokens/shadows/index.cjs.map +1 -1
  477. package/dist/cjs/theme/tokens/sizes/index.cjs +1 -1
  478. package/dist/cjs/theme/tokens/sizes/index.cjs.map +1 -1
  479. package/dist/cjs/theme/tokens/spacing/index.cjs +1 -1
  480. package/dist/cjs/theme/tokens/spacing/index.cjs.map +1 -1
  481. package/dist/cjs/theme/tokens/transitions/index.cjs +1 -1
  482. package/dist/cjs/theme/tokens/transitions/index.cjs.map +1 -1
  483. package/dist/cjs/theme/tokens/typography/index.cjs +1 -1
  484. package/dist/cjs/theme/tokens/typography/index.cjs.map +1 -1
  485. package/dist/cjs/theme/tokens/zIndices/index.cjs +1 -1
  486. package/dist/cjs/theme/tokens/zIndices/index.cjs.map +1 -1
  487. package/dist/esm/chakra/index.js +3227 -0
  488. package/dist/esm/chakra/index.js.map +1 -0
  489. package/dist/esm/cli/generate-theme-types.js +22 -0
  490. package/dist/esm/cli/generate-theme-types.js.map +1 -0
  491. package/dist/esm/cli/postinstall.js +21 -0
  492. package/dist/esm/cli/postinstall.js.map +1 -0
  493. package/dist/esm/components/Alert/index.js +3 -5
  494. package/dist/esm/components/Avatar/index.js +1 -1
  495. package/dist/esm/components/AvatarGroup/index.js +1 -1
  496. package/dist/esm/components/Button/index.js +1 -1
  497. package/dist/esm/components/ButtonGroup/index.js +1 -1
  498. package/dist/esm/components/Card/index.js +4 -5
  499. package/dist/esm/components/Card/index.js.map +1 -1
  500. package/dist/esm/components/CharacterCounter/index.js +1 -1
  501. package/dist/esm/components/Checkbox/index.js +1 -1
  502. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  503. package/dist/esm/{patterns → components}/ConversationCard/index.js +1 -1
  504. package/dist/esm/components/DatePicker/index.js +3 -4
  505. package/dist/esm/components/Divider/index.js +8 -0
  506. package/dist/esm/components/Heading/index.js +2 -4
  507. package/dist/esm/components/Heading/index.js.map +1 -1
  508. package/dist/esm/components/Icon/generated/index.js +373 -338
  509. package/dist/esm/components/Icon/generated/index.js.map +1 -1
  510. package/dist/esm/components/Icon/index.js +4 -6
  511. package/dist/esm/components/Link/index.js +1 -1
  512. package/dist/esm/components/Logo/generated/index.js +6 -0
  513. package/dist/esm/components/Logo/index.js +7 -0
  514. package/dist/esm/components/Menu/index.js +1 -1
  515. package/dist/esm/components/Modal/index.js +1 -1
  516. package/dist/esm/components/NotificationCounter/index.js +5 -11
  517. package/dist/esm/components/NotificationCounter/index.js.map +1 -1
  518. package/dist/esm/components/Picture/index.js +1 -16
  519. package/dist/esm/components/Picture/index.js.map +1 -1
  520. package/dist/esm/components/PinInput/index.js +6 -0
  521. package/dist/esm/components/PinInput/index.js.map +1 -0
  522. package/dist/esm/components/Popover/index.js +1 -1
  523. package/dist/esm/components/RadioGroup/index.js +1 -1
  524. package/dist/esm/components/RatingDots/index.js +1 -1
  525. package/dist/esm/components/Select/index.js +1 -1
  526. package/dist/esm/components/SortableList/index.js +1 -1
  527. package/dist/esm/components/Spinner/index.js +1 -1
  528. package/dist/esm/{patterns → components}/StyledAvatar/index.js +1 -1
  529. package/dist/esm/components/StyledAvatar/index.js.map +1 -0
  530. package/dist/esm/components/Swatch/index.js +3 -62
  531. package/dist/esm/components/Swatch/index.js.map +1 -1
  532. package/dist/esm/components/Switch/index.js +1 -1
  533. package/dist/esm/components/Tabs/index.js +1 -1
  534. package/dist/esm/components/Tag/index.js +5 -6
  535. package/dist/esm/{patterns → components}/TagBlock/index.js +1 -1
  536. package/dist/esm/components/TagBlock/index.js.map +1 -0
  537. package/dist/esm/components/Text/index.js +2 -4
  538. package/dist/esm/components/Text/index.js.map +1 -1
  539. package/dist/esm/components/TextInput/index.js +2 -3
  540. package/dist/esm/components/Textarea/index.js +1 -1
  541. package/dist/esm/components/TimePicker/index.js +1 -1
  542. package/dist/esm/components/TimeRange/index.js +1 -1
  543. package/dist/esm/components/Timestamp/index.js +5 -0
  544. package/dist/esm/components/Timestamp/index.js.map +1 -0
  545. package/dist/esm/components/Toast/index.js +59 -0
  546. package/dist/esm/components/Toast/index.js.map +1 -0
  547. package/dist/esm/components/Tooltip/index.js +1 -1
  548. package/dist/esm/components/index.js +122 -111
  549. package/dist/esm/components/index.js.map +1 -1
  550. package/dist/esm/hocs/index.js +3 -35
  551. package/dist/esm/hocs/index.js.map +1 -1
  552. package/dist/esm/hooks/index.js +7 -17
  553. package/dist/esm/hooks/index.js.map +1 -1
  554. package/dist/esm/hooks/useBreakpoint/index.js +12 -0
  555. package/dist/esm/hooks/useBreakpoint/index.js.map +1 -0
  556. package/dist/esm/hooks/useDeviceType/index.js +12 -0
  557. package/dist/esm/hooks/useDeviceType/index.js.map +1 -0
  558. package/dist/esm/index.js +141 -115
  559. package/dist/esm/index.js.map +1 -1
  560. package/dist/esm/shared/index.js +9 -0
  561. package/dist/esm/shared/index.js.map +1 -0
  562. package/dist/esm/shared/records/index.js +18 -0
  563. package/dist/esm/shared/records/index.js.map +1 -0
  564. package/dist/esm/theme/index.js +4 -2477
  565. package/dist/esm/theme/index.js.map +1 -1
  566. package/dist/esm/theme/tokens/blurs/index.js +1 -13
  567. package/dist/esm/theme/tokens/blurs/index.js.map +1 -1
  568. package/dist/esm/theme/tokens/borders/index.js +1 -22
  569. package/dist/esm/theme/tokens/borders/index.js.map +1 -1
  570. package/dist/esm/theme/tokens/index.js +2 -26
  571. package/dist/esm/theme/tokens/index.js.map +1 -1
  572. package/dist/esm/theme/tokens/shadows/index.js +1 -55
  573. package/dist/esm/theme/tokens/shadows/index.js.map +1 -1
  574. package/dist/esm/theme/tokens/sizes/index.js +1 -28
  575. package/dist/esm/theme/tokens/sizes/index.js.map +1 -1
  576. package/dist/esm/theme/tokens/spacing/index.js +1 -38
  577. package/dist/esm/theme/tokens/spacing/index.js.map +1 -1
  578. package/dist/esm/theme/tokens/transitions/index.js +1 -17
  579. package/dist/esm/theme/tokens/transitions/index.js.map +1 -1
  580. package/dist/esm/theme/tokens/typography/index.js +1 -53
  581. package/dist/esm/theme/tokens/typography/index.js.map +1 -1
  582. package/dist/esm/theme/tokens/zIndices/index.js +1 -19
  583. package/dist/esm/theme/tokens/zIndices/index.js.map +1 -1
  584. package/dist/types/chakra/index.d.ts +52 -0
  585. package/dist/types/cli/generate-theme-types.d.ts +2 -0
  586. package/dist/types/cli/postinstall.d.ts +2 -0
  587. package/dist/types/components/Alert/alert.component.d.ts +5 -13
  588. package/dist/types/components/Alert/alert.recipe.d.ts +1 -1
  589. package/dist/types/components/Alert/index.d.ts +0 -1
  590. package/dist/types/components/Avatar/avatar.recipe.d.ts +1 -1
  591. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +1 -1
  592. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.recipe.d.ts +2 -2
  593. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.types.d.ts +1 -1
  594. package/dist/types/components/Button/button.component.d.ts +2 -3
  595. package/dist/types/components/Button/button.recipe.d.ts +2 -2
  596. package/dist/types/components/Card/card.component.d.ts +1 -1
  597. package/dist/types/components/Card/index.d.ts +0 -1
  598. package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +1 -1
  599. package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +1 -1
  600. package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +2 -2
  601. package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +1 -1
  602. package/dist/types/{patterns → components}/ConversationCard/conversationCard.component.d.ts +1 -1
  603. package/dist/types/components/DatePicker/index.d.ts +0 -1
  604. package/dist/types/components/Divider/divider.component.d.ts +4 -0
  605. package/dist/types/components/Divider/divider.types.d.ts +6 -0
  606. package/dist/types/components/Divider/index.d.ts +2 -0
  607. package/dist/types/components/Heading/heading.component.d.ts +1 -2
  608. package/dist/types/components/Heading/heading.recipe.d.ts +1 -1
  609. package/dist/types/components/Heading/heading.types.d.ts +1 -1
  610. package/dist/types/components/Heading/index.d.ts +0 -1
  611. package/dist/types/components/Icon/generated/AiMicrophone.d.ts +10 -0
  612. package/dist/types/components/Icon/generated/index.d.ts +1 -1
  613. package/dist/types/components/Icon/icon.component.d.ts +2 -3
  614. package/dist/types/components/Icon/index.d.ts +0 -1
  615. package/dist/types/components/Link/link.recipe.d.ts +1 -1
  616. package/dist/types/components/Logo/generated/FullLogo.d.ts +10 -0
  617. package/dist/types/components/Logo/generated/IconLogo.d.ts +10 -0
  618. package/dist/types/components/Logo/generated/index.d.ts +4 -0
  619. package/dist/types/components/Logo/index.d.ts +2 -0
  620. package/dist/types/components/Logo/logo.component.d.ts +10 -0
  621. package/dist/types/components/Logo/logo.recipe.d.ts +9 -0
  622. package/dist/types/components/Logo/logo.types.d.ts +4 -0
  623. package/dist/types/components/Menu/components/MenuItem/menuItem.component.d.ts +3 -2
  624. package/dist/types/components/Menu/menu.component.d.ts +1 -1
  625. package/dist/types/components/Modal/context/modal.context.d.ts +6 -0
  626. package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
  627. package/dist/types/components/NotificationCounter/index.d.ts +0 -1
  628. package/dist/types/components/NotificationCounter/notificationCounter.recipe.d.ts +2 -2
  629. package/dist/types/components/PinInput/index.d.ts +2 -0
  630. package/dist/types/components/PinInput/pinInput.component.d.ts +10 -0
  631. package/dist/types/components/PinInput/pinInput.recipe.d.ts +21 -0
  632. package/dist/types/components/PinInput/pinInput.records.d.ts +1 -0
  633. package/dist/types/components/PinInput/pinInput.types.d.ts +2 -0
  634. package/dist/types/components/Popover/popover.recipe.d.ts +1 -1
  635. package/dist/types/components/RadioGroup/index.d.ts +1 -0
  636. package/dist/types/components/Select/select.component.d.ts +3 -0
  637. package/dist/types/components/SortableList/index.d.ts +1 -0
  638. package/dist/types/components/Spinner/spinner.component.d.ts +1 -1
  639. package/dist/types/components/Spinner/spinner.recipe.d.ts +2 -2
  640. package/dist/types/{patterns → components}/StyledAvatar/styledAvatar.component.d.ts +1 -1
  641. package/dist/types/components/Swatch/swatch.recipe.d.ts +1 -1
  642. package/dist/types/components/Tabs/tabs.recipe.d.ts +1 -1
  643. package/dist/types/components/Tag/index.d.ts +0 -1
  644. package/dist/types/components/Tag/tag.recipe.d.ts +1 -1
  645. package/dist/types/{patterns → components}/TagBlock/tagBlock.component.d.ts +1 -1
  646. package/dist/types/components/Text/index.d.ts +0 -1
  647. package/dist/types/components/Text/text.component.d.ts +1 -2
  648. package/dist/types/components/Text/text.recipe.d.ts +1 -2
  649. package/dist/types/components/Text/text.types.d.ts +1 -1
  650. package/dist/types/components/TextInput/index.d.ts +0 -1
  651. package/dist/types/{patterns → components}/Timestamp/timestamp.component.d.ts +1 -1
  652. package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +12 -0
  653. package/dist/types/components/Toast/components/Toaster/toaster.component.d.ts +7 -0
  654. package/dist/types/components/Toast/components/Toaster/toaster.records.d.ts +11 -0
  655. package/dist/types/components/Toast/components/Toaster/toaster.types.d.ts +12 -0
  656. package/dist/types/components/Toast/index.d.ts +2 -0
  657. package/dist/types/components/Toast/toast.component.d.ts +14 -0
  658. package/dist/types/components/Toast/toast.recipe.d.ts +21 -0
  659. package/dist/types/components/Toast/toast.types.d.ts +19 -0
  660. package/dist/types/components/Toast/useToast.d.ts +3 -0
  661. package/dist/types/components/Tooltip/tooltip.recipe.d.ts +1 -0
  662. package/dist/types/components/index.d.ts +9 -1
  663. package/dist/types/hocs/withFormControl/withFormControl.d.ts +2 -1
  664. package/dist/types/hooks/index.d.ts +2 -0
  665. package/dist/types/hooks/useBreakpoint/index.d.ts +1 -0
  666. package/dist/types/hooks/useDeviceType/index.d.ts +3 -0
  667. package/dist/types/index.d.ts +2 -0
  668. package/dist/types/shared/index.d.ts +1 -0
  669. package/dist/types/shared/records/index.d.ts +1 -0
  670. package/dist/types/shared/records/status.d.ts +5 -0
  671. package/dist/types/shared/records/typography.d.ts +1 -1
  672. package/dist/types/theme/index.d.ts +2 -1
  673. package/dist/types/theme/providers/theme.provider.d.ts +3 -1
  674. package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +4 -0
  675. package/dist/types/theme/semanticTokens/semanticTokens.records.d.ts +8 -0
  676. package/dist/types/theme/theme.config.d.ts +2 -0
  677. package/dist/types/theme/tokens/blurs/blurs.config.d.ts +6 -6
  678. package/dist/types/theme/tokens/blurs/index.d.ts +0 -1
  679. package/dist/types/theme/tokens/borders/borders.config.d.ts +9 -9
  680. package/dist/types/theme/tokens/borders/index.d.ts +0 -1
  681. package/dist/types/theme/tokens/shadows/index.d.ts +0 -1
  682. package/dist/types/theme/tokens/shadows/shadows.config.d.ts +11 -11
  683. package/dist/types/theme/tokens/sizes/index.d.ts +0 -1
  684. package/dist/types/theme/tokens/sizes/sizes.config.d.ts +24 -10
  685. package/dist/types/theme/tokens/spacing/index.d.ts +0 -1
  686. package/dist/types/theme/tokens/spacing/spacing.config.d.ts +21 -21
  687. package/dist/types/theme/tokens/transitions/index.d.ts +0 -1
  688. package/dist/types/theme/tokens/transitions/transitions.config.d.ts +6 -6
  689. package/dist/types/theme/tokens/typography/index.d.ts +0 -1
  690. package/dist/types/theme/tokens/typography/typography.config.d.ts +29 -74
  691. package/dist/types/theme/tokens/zIndices/index.d.ts +0 -1
  692. package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +11 -11
  693. package/package.json +73 -43
  694. package/dist/chunks/alert.types-BgmtNKXK.js +0 -2
  695. package/dist/chunks/alert.types-BgmtNKXK.js.map +0 -1
  696. package/dist/chunks/alert.types-Bxdx-xbS.js +0 -172
  697. package/dist/chunks/alert.types-Bxdx-xbS.js.map +0 -1
  698. package/dist/chunks/avatar.component-BdxN6QYq.js +0 -307
  699. package/dist/chunks/avatar.component-BdxN6QYq.js.map +0 -1
  700. package/dist/chunks/avatar.component-BzPaBLJu.js +0 -2
  701. package/dist/chunks/avatar.component-BzPaBLJu.js.map +0 -1
  702. package/dist/chunks/avatarGroup.component-Q43nemix.js +0 -2
  703. package/dist/chunks/button.component-B0GkYzVz.js +0 -2
  704. package/dist/chunks/button.component-B0GkYzVz.js.map +0 -1
  705. package/dist/chunks/button.component-BtkAjIWe.js.map +0 -1
  706. package/dist/chunks/buttonGroup.component-B2VRV-q9.js +0 -2
  707. package/dist/chunks/buttonGroup.component-B2VRV-q9.js.map +0 -1
  708. package/dist/chunks/buttonGroup.component-ZElXi_Hz.js +0 -67
  709. package/dist/chunks/buttonGroup.component-ZElXi_Hz.js.map +0 -1
  710. package/dist/chunks/card.component-HX-4Y0j7.js +0 -51
  711. package/dist/chunks/card.component-HX-4Y0j7.js.map +0 -1
  712. package/dist/chunks/card.component-ZIoJIWVV.js +0 -2
  713. package/dist/chunks/card.component-ZIoJIWVV.js.map +0 -1
  714. package/dist/chunks/chakra-BqBkjpvZ.js.map +0 -1
  715. package/dist/chunks/chakra-DmF8Cxqs.js +0 -5
  716. package/dist/chunks/chakra-DmF8Cxqs.js.map +0 -1
  717. package/dist/chunks/characterCounter.component-BXxyn_IB.js +0 -2
  718. package/dist/chunks/checkbox.component-DCdt-YxF.js +0 -90
  719. package/dist/chunks/checkbox.component-DCdt-YxF.js.map +0 -1
  720. package/dist/chunks/checkbox.component-jiWqSWP0.js +0 -2
  721. package/dist/chunks/checkbox.component-jiWqSWP0.js.map +0 -1
  722. package/dist/chunks/checkbox.records-DJfdKuOe.js +0 -2
  723. package/dist/chunks/checkbox.records-DJfdKuOe.js.map +0 -1
  724. package/dist/chunks/checkbox.records-JWbKQ684.js +0 -14
  725. package/dist/chunks/checkbox.records-JWbKQ684.js.map +0 -1
  726. package/dist/chunks/checkboxGroup.component-BYKUQW4y.js +0 -2
  727. package/dist/chunks/checkboxGroup.component-DcIdfbbl.js +0 -51
  728. package/dist/chunks/conversationCard.component-BSfDNuuw.js.map +0 -1
  729. package/dist/chunks/conversationCard.component-BcHNpQ76.js +0 -2
  730. package/dist/chunks/conversationCard.component-BcHNpQ76.js.map +0 -1
  731. package/dist/chunks/date-1NFv48Qu.js +0 -3598
  732. package/dist/chunks/date-1NFv48Qu.js.map +0 -1
  733. package/dist/chunks/date-Du64Exix.js +0 -15
  734. package/dist/chunks/date-Du64Exix.js.map +0 -1
  735. package/dist/chunks/datePicker.component-CnRDt24V.js +0 -2
  736. package/dist/chunks/datePicker.component-CnRDt24V.js.map +0 -1
  737. package/dist/chunks/datePicker.component-DubnEnlU.js +0 -750
  738. package/dist/chunks/datePicker.component-DubnEnlU.js.map +0 -1
  739. package/dist/chunks/dnd-4IMP_kRN.js +0 -6
  740. package/dist/chunks/dnd-4IMP_kRN.js.map +0 -1
  741. package/dist/chunks/dnd-DDR6viHX.js.map +0 -1
  742. package/dist/chunks/heading.component-B8niLTxz.js +0 -10
  743. package/dist/chunks/heading.component-B8niLTxz.js.map +0 -1
  744. package/dist/chunks/heading.component-CExbjSBi.js +0 -2
  745. package/dist/chunks/heading.component-CExbjSBi.js.map +0 -1
  746. package/dist/chunks/heading.records-BaWnrbgl.js +0 -14
  747. package/dist/chunks/heading.records-BaWnrbgl.js.map +0 -1
  748. package/dist/chunks/heading.records-CbR05iL_.js +0 -2
  749. package/dist/chunks/heading.records-CbR05iL_.js.map +0 -1
  750. package/dist/chunks/icon.component-DjNY589M.js.map +0 -1
  751. package/dist/chunks/icon.component-DtX9HDyk.js +0 -2
  752. package/dist/chunks/icon.component-DtX9HDyk.js.map +0 -1
  753. package/dist/chunks/link.component-DjkiASIu.js +0 -58
  754. package/dist/chunks/link.component-DjkiASIu.js.map +0 -1
  755. package/dist/chunks/link.component-XWINESZ0.js +0 -2
  756. package/dist/chunks/link.component-XWINESZ0.js.map +0 -1
  757. package/dist/chunks/menu.component-CT28-CuT.js +0 -2
  758. package/dist/chunks/menu.component-CT28-CuT.js.map +0 -1
  759. package/dist/chunks/menu.component-gxhQh-pU.js +0 -390
  760. package/dist/chunks/menu.component-gxhQh-pU.js.map +0 -1
  761. package/dist/chunks/modal.types-CcUqszK6.js +0 -2
  762. package/dist/chunks/modal.types-CcUqszK6.js.map +0 -1
  763. package/dist/chunks/modal.types-pXkUwszR.js +0 -146
  764. package/dist/chunks/modal.types-pXkUwszR.js.map +0 -1
  765. package/dist/chunks/notificationCounter.component-D6v39lna.js +0 -2
  766. package/dist/chunks/popover.component-CnJmg9qf.js +0 -221
  767. package/dist/chunks/popover.component-CnJmg9qf.js.map +0 -1
  768. package/dist/chunks/popover.component-DdC0CY7-.js +0 -2
  769. package/dist/chunks/popover.component-DdC0CY7-.js.map +0 -1
  770. package/dist/chunks/popover.recipe-DnCuZJd3.js +0 -123
  771. package/dist/chunks/popover.recipe-DnCuZJd3.js.map +0 -1
  772. package/dist/chunks/popover.recipe-Pfz3evii.js +0 -2
  773. package/dist/chunks/popover.recipe-Pfz3evii.js.map +0 -1
  774. package/dist/chunks/radio.records-BxCn4oUd.js +0 -2
  775. package/dist/chunks/radio.records-BxCn4oUd.js.map +0 -1
  776. package/dist/chunks/radio.records-Cc3kP4Vn.js +0 -14
  777. package/dist/chunks/radio.records-Cc3kP4Vn.js.map +0 -1
  778. package/dist/chunks/radioGroup.component-Cmi6MDqq.js +0 -2
  779. package/dist/chunks/radioGroup.component-Cmi6MDqq.js.map +0 -1
  780. package/dist/chunks/radioGroup.component-D96ItNYx.js +0 -151
  781. package/dist/chunks/radioGroup.component-D96ItNYx.js.map +0 -1
  782. package/dist/chunks/ratingDots.component-DOZX6EE0.js +0 -2
  783. package/dist/chunks/select.component-CqhmG4oz.js +0 -2
  784. package/dist/chunks/select.component-CqhmG4oz.js.map +0 -1
  785. package/dist/chunks/select.component-_JVxRL_-.js +0 -129
  786. package/dist/chunks/select.component-_JVxRL_-.js.map +0 -1
  787. package/dist/chunks/sortableList.component-BH9-C_Pe.js +0 -2
  788. package/dist/chunks/sortableList.component-BH9-C_Pe.js.map +0 -1
  789. package/dist/chunks/sortableList.component-CdDArkRq.js +0 -145
  790. package/dist/chunks/sortableList.component-CdDArkRq.js.map +0 -1
  791. package/dist/chunks/spinner.component-CUuidnSK.js +0 -2
  792. package/dist/chunks/spinner.component-D5tkelNc.js.map +0 -1
  793. package/dist/chunks/styledAvatar.types-CMdLnJHx.js +0 -2
  794. package/dist/chunks/styledAvatar.types-CMdLnJHx.js.map +0 -1
  795. package/dist/chunks/styledAvatar.types-CoxQchLt.js.map +0 -1
  796. package/dist/chunks/switch.component-6jkW8-JB.js +0 -2
  797. package/dist/chunks/switch.component-6jkW8-JB.js.map +0 -1
  798. package/dist/chunks/switch.component-BopLXT0i.js +0 -53
  799. package/dist/chunks/switch.component-BopLXT0i.js.map +0 -1
  800. package/dist/chunks/tabs.component-BJv145kf.js +0 -2
  801. package/dist/chunks/tabs.component-BJv145kf.js.map +0 -1
  802. package/dist/chunks/tabs.component-DTvdLvkX.js +0 -87
  803. package/dist/chunks/tabs.component-DTvdLvkX.js.map +0 -1
  804. package/dist/chunks/tag.component-DK64cZSr.js +0 -67
  805. package/dist/chunks/tag.component-DK64cZSr.js.map +0 -1
  806. package/dist/chunks/tag.component-D_hbxu6m.js +0 -2
  807. package/dist/chunks/tag.component-D_hbxu6m.js.map +0 -1
  808. package/dist/chunks/tagBlock.component-LX4_ve_f.js.map +0 -1
  809. package/dist/chunks/tagBlock.component-a2gERgrx.js +0 -2
  810. package/dist/chunks/tagBlock.component-a2gERgrx.js.map +0 -1
  811. package/dist/chunks/text.component-CBa_saMP.js +0 -2
  812. package/dist/chunks/text.component-CBa_saMP.js.map +0 -1
  813. package/dist/chunks/text.component-XYjOAc2s.js +0 -10
  814. package/dist/chunks/text.component-XYjOAc2s.js.map +0 -1
  815. package/dist/chunks/text.records-BK_JBYsT.js +0 -16
  816. package/dist/chunks/text.records-BK_JBYsT.js.map +0 -1
  817. package/dist/chunks/text.records-CIL3bbY0.js +0 -2
  818. package/dist/chunks/text.records-CIL3bbY0.js.map +0 -1
  819. package/dist/chunks/textInput.component-Bk7D4sbG.js +0 -99
  820. package/dist/chunks/textInput.component-Bk7D4sbG.js.map +0 -1
  821. package/dist/chunks/textInput.component-GSpfSqUc.js +0 -2
  822. package/dist/chunks/textInput.component-GSpfSqUc.js.map +0 -1
  823. package/dist/chunks/textarea.component-B8U8KcND.js +0 -2
  824. package/dist/chunks/textarea.component-B8U8KcND.js.map +0 -1
  825. package/dist/chunks/textarea.component-CT8iVuNX.js +0 -51
  826. package/dist/chunks/textarea.component-CT8iVuNX.js.map +0 -1
  827. package/dist/chunks/timePicker.component-Dw_FjiQX.js +0 -2
  828. package/dist/chunks/timeRange.component-B3OvVyo_.js +0 -17
  829. package/dist/chunks/timeRange.component-RLisXhuw.js +0 -2
  830. package/dist/chunks/timestamp.component-CuqY4euh.js +0 -2
  831. package/dist/chunks/timestamp.component-CuqY4euh.js.map +0 -1
  832. package/dist/chunks/timestamp.component-D764INLm.js +0 -37
  833. package/dist/chunks/timestamp.component-D764INLm.js.map +0 -1
  834. package/dist/chunks/tooltip.component-C3v2m2T2.js +0 -70
  835. package/dist/chunks/tooltip.component-C3v2m2T2.js.map +0 -1
  836. package/dist/chunks/tooltip.component-qWFa28S5.js +0 -2
  837. package/dist/chunks/tooltip.component-qWFa28S5.js.map +0 -1
  838. package/dist/chunks/vendor-BBfll6i3.js +0 -11757
  839. package/dist/chunks/vendor-BBfll6i3.js.map +0 -1
  840. package/dist/chunks/vendor-D-x6W6ez.js +0 -57
  841. package/dist/chunks/vendor-D-x6W6ez.js.map +0 -1
  842. package/dist/chunks/withFormControl-B269FujS.js +0 -149
  843. package/dist/chunks/withFormControl-B269FujS.js.map +0 -1
  844. package/dist/chunks/withFormControl-Cy6Bwv0i.js +0 -2
  845. package/dist/chunks/withFormControl-Cy6Bwv0i.js.map +0 -1
  846. package/dist/chunks/withTruncation-BskZBBVs.js +0 -2
  847. package/dist/cjs/patterns/index.cjs +0 -2
  848. package/dist/esm/patterns/Timestamp/index.js +0 -5
  849. package/dist/esm/patterns/index.js +0 -13
  850. package/dist/esm/patterns/index.js.map +0 -1
  851. package/dist/types/components/Alert/alert.records.d.ts +0 -5
  852. package/dist/types/components/Alert/docs/alert.argTypes.d.ts +0 -5
  853. package/dist/types/components/Alert.d.ts +0 -2
  854. package/dist/types/components/Avatar/components/AvatarBadge/docs/avatarBadge.argTypes.d.ts +0 -3
  855. package/dist/types/components/Avatar/docs/avatar.argTypes.d.ts +0 -3
  856. package/dist/types/components/Avatar.d.ts +0 -2
  857. package/dist/types/components/AvatarGroup/docs/avatarGroup.argTypes.d.ts +0 -3
  858. package/dist/types/components/AvatarGroup.d.ts +0 -2
  859. package/dist/types/components/Button/docs/button.argTypes.d.ts +0 -3
  860. package/dist/types/components/Button.d.ts +0 -2
  861. package/dist/types/components/ButtonGroup/docs/buttonGroup.argTypes.d.ts +0 -3
  862. package/dist/types/components/ButtonGroup.d.ts +0 -2
  863. package/dist/types/components/Card/docs/card.argTypes.d.ts +0 -3
  864. package/dist/types/components/Card.d.ts +0 -2
  865. package/dist/types/components/CharacterCounter/docs/characterCounter.argTypes.d.ts +0 -3
  866. package/dist/types/components/CharacterCounter.d.ts +0 -2
  867. package/dist/types/components/Checkbox/docs/checkbox.argTypes.d.ts +0 -3
  868. package/dist/types/components/Checkbox.d.ts +0 -2
  869. package/dist/types/components/CheckboxGroup/docs/checkboxGroup.argTypes.d.ts +0 -3
  870. package/dist/types/components/CheckboxGroup.d.ts +0 -2
  871. package/dist/types/components/DatePicker/docs/datePicker.argTypes.d.ts +0 -3
  872. package/dist/types/components/DatePicker.d.ts +0 -2
  873. package/dist/types/components/Heading/docs/heading.argTypes.d.ts +0 -3
  874. package/dist/types/components/Heading.d.ts +0 -2
  875. package/dist/types/components/Icon/docs/icon.argTypes.d.ts +0 -3
  876. package/dist/types/components/Icon/generated.d.ts +0 -2
  877. package/dist/types/components/Icon.d.ts +0 -2
  878. package/dist/types/components/Link/docs/link.argTypes.d.ts +0 -5
  879. package/dist/types/components/Link.d.ts +0 -2
  880. package/dist/types/components/Menu/docs/menu.argTypes.d.ts +0 -4
  881. package/dist/types/components/Menu.d.ts +0 -2
  882. package/dist/types/components/Modal/docs/modal.argTypes.d.ts +0 -3
  883. package/dist/types/components/Modal.d.ts +0 -2
  884. package/dist/types/components/NotificationCounter/docs/notificationCounter.argTypes.d.ts +0 -3
  885. package/dist/types/components/NotificationCounter.d.ts +0 -2
  886. package/dist/types/components/Picture/docs/picture.argTypes.d.ts +0 -3
  887. package/dist/types/components/Picture.d.ts +0 -2
  888. package/dist/types/components/Popover/docs/popover.argTypes.d.ts +0 -3
  889. package/dist/types/components/Popover.d.ts +0 -2
  890. package/dist/types/components/RadioGroup/components/Radio/docs/radio.argTypes.d.ts +0 -3
  891. package/dist/types/components/RadioGroup/docs/radioGroup.argTypes.d.ts +0 -3
  892. package/dist/types/components/RadioGroup.d.ts +0 -2
  893. package/dist/types/components/RatingDots/docs/ratingDots.argTypes.d.ts +0 -3
  894. package/dist/types/components/RatingDots.d.ts +0 -2
  895. package/dist/types/components/Select/docs/select.argTypes.d.ts +0 -3
  896. package/dist/types/components/Select.d.ts +0 -2
  897. package/dist/types/components/SortableList/docs/sortableList.argTypes.d.ts +0 -3
  898. package/dist/types/components/SortableList.d.ts +0 -2
  899. package/dist/types/components/Spinner/docs/spinner.argTypes.d.ts +0 -3
  900. package/dist/types/components/Spinner.d.ts +0 -2
  901. package/dist/types/components/Swatch/docs/swatch.argTypes.d.ts +0 -3
  902. package/dist/types/components/Swatch.d.ts +0 -2
  903. package/dist/types/components/Switch/docs/switch.argTypes.d.ts +0 -3
  904. package/dist/types/components/Switch.d.ts +0 -2
  905. package/dist/types/components/Tabs/components/Tab/docs/tab.argTypes.d.ts +0 -3
  906. package/dist/types/components/Tabs/docs/tabs.argTypes.d.ts +0 -3
  907. package/dist/types/components/Tabs.d.ts +0 -2
  908. package/dist/types/components/Tag/docs/tag.argTypes.d.ts +0 -3
  909. package/dist/types/components/Tag.d.ts +0 -2
  910. package/dist/types/components/Text/docs/text.argTypes.d.ts +0 -3
  911. package/dist/types/components/Text.d.ts +0 -2
  912. package/dist/types/components/TextInput/docs/textInput.argTypes.d.ts +0 -3
  913. package/dist/types/components/TextInput.d.ts +0 -2
  914. package/dist/types/components/Textarea/docs/textarea.argTypes.d.ts +0 -3
  915. package/dist/types/components/Textarea.d.ts +0 -2
  916. package/dist/types/components/TimePicker/docs/timePicker.argTypes.d.ts +0 -3
  917. package/dist/types/components/TimePicker.d.ts +0 -2
  918. package/dist/types/components/TimeRange/docs/timeRange.argTypes.d.ts +0 -3
  919. package/dist/types/components/TimeRange.d.ts +0 -2
  920. package/dist/types/components/Tooltip/docs/tooltip.argTypes.d.ts +0 -3
  921. package/dist/types/components/Tooltip.d.ts +0 -2
  922. package/dist/types/components.d.ts +0 -2
  923. package/dist/types/hocs.d.ts +0 -2
  924. package/dist/types/hooks.d.ts +0 -2
  925. package/dist/types/patterns/ConversationCard/docs/conversationCard.argTypes.d.ts +0 -12
  926. package/dist/types/patterns/ConversationCard/docs/conversationCard.storiesData.d.ts +0 -22
  927. package/dist/types/patterns/ConversationCard.d.ts +0 -2
  928. package/dist/types/patterns/StyledAvatar/docs/styledAvatar.argTypes.d.ts +0 -3
  929. package/dist/types/patterns/StyledAvatar.d.ts +0 -2
  930. package/dist/types/patterns/TagBlock/docs/tagBlock.argTypes.d.ts +0 -3
  931. package/dist/types/patterns/TagBlock.d.ts +0 -2
  932. package/dist/types/patterns/Timestamp/docs/timestamp.argTypes.d.ts +0 -3
  933. package/dist/types/patterns/Timestamp.d.ts +0 -2
  934. package/dist/types/patterns/index.d.ts +0 -4
  935. package/dist/types/patterns.d.ts +0 -2
  936. package/dist/types/shared/types.d.ts +0 -2
  937. package/dist/types/theme/semanticTokens/docs/semanticTokens.d.ts +0 -7
  938. package/dist/types/theme/semanticTokens.d.ts +0 -2
  939. package/dist/types/theme/tokens/blurs.d.ts +0 -2
  940. package/dist/types/theme/tokens/borders/docs/borders.d.ts +0 -5
  941. package/dist/types/theme/tokens/borders.d.ts +0 -2
  942. package/dist/types/theme/tokens/colors.d.ts +0 -2
  943. package/dist/types/theme/tokens/shadows/docs/shadows.d.ts +0 -6
  944. package/dist/types/theme/tokens/shadows.d.ts +0 -2
  945. package/dist/types/theme/tokens/sizes.d.ts +0 -2
  946. package/dist/types/theme/tokens/spacing.d.ts +0 -2
  947. package/dist/types/theme/tokens/transitions.d.ts +0 -2
  948. package/dist/types/theme/tokens/typography/docs/typography.d.ts +0 -2
  949. package/dist/types/theme/tokens/typography.d.ts +0 -2
  950. package/dist/types/theme/tokens/zIndices.d.ts +0 -2
  951. package/dist/types/theme/tokens.d.ts +0 -2
  952. package/dist/types/theme.d.ts +0 -2
  953. /package/dist/cjs/{patterns → components}/ConversationCard/index.cjs.map +0 -0
  954. /package/dist/cjs/{patterns/StyledAvatar → components/Divider}/index.cjs.map +0 -0
  955. /package/dist/cjs/{patterns/TagBlock → components/Logo/generated}/index.cjs.map +0 -0
  956. /package/dist/cjs/{patterns/Timestamp → components/Logo}/index.cjs.map +0 -0
  957. /package/dist/cjs/{patterns → components/PinInput}/index.cjs.map +0 -0
  958. /package/dist/esm/{patterns → components}/ConversationCard/index.js.map +0 -0
  959. /package/dist/esm/{patterns/StyledAvatar → components/Divider}/index.js.map +0 -0
  960. /package/dist/esm/{patterns/TagBlock → components/Logo/generated}/index.js.map +0 -0
  961. /package/dist/esm/{patterns/Timestamp → components/Logo}/index.js.map +0 -0
  962. /package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardAvatarGroup/conversationCardAvatarGroup.component.d.ts +0 -0
  963. /package/dist/types/{patterns → components}/ConversationCard/components/ConversationCardHeader/conversationCardHeader.component.d.ts +0 -0
  964. /package/dist/types/{patterns → components}/ConversationCard/index.d.ts +0 -0
  965. /package/dist/types/{patterns → components}/StyledAvatar/index.d.ts +0 -0
  966. /package/dist/types/{patterns → components}/StyledAvatar/styledAvatar.types.d.ts +0 -0
  967. /package/dist/types/{patterns → components}/TagBlock/index.d.ts +0 -0
  968. /package/dist/types/{patterns → components}/TagBlock/tagBlock.types.d.ts +0 -0
  969. /package/dist/types/{patterns → components}/Timestamp/index.d.ts +0 -0
@@ -1,3598 +0,0 @@
1
- import { useState as Wt, useEffect as We, useCallback as I, useMemo as Lt } from "react";
2
- const Ue = {
3
- lessThanXSeconds: {
4
- one: "less than a second",
5
- other: "less than {{count}} seconds"
6
- },
7
- xSeconds: {
8
- one: "1 second",
9
- other: "{{count}} seconds"
10
- },
11
- halfAMinute: "half a minute",
12
- lessThanXMinutes: {
13
- one: "less than a minute",
14
- other: "less than {{count}} minutes"
15
- },
16
- xMinutes: {
17
- one: "1 minute",
18
- other: "{{count}} minutes"
19
- },
20
- aboutXHours: {
21
- one: "about 1 hour",
22
- other: "about {{count}} hours"
23
- },
24
- xHours: {
25
- one: "1 hour",
26
- other: "{{count}} hours"
27
- },
28
- xDays: {
29
- one: "1 day",
30
- other: "{{count}} days"
31
- },
32
- aboutXWeeks: {
33
- one: "about 1 week",
34
- other: "about {{count}} weeks"
35
- },
36
- xWeeks: {
37
- one: "1 week",
38
- other: "{{count}} weeks"
39
- },
40
- aboutXMonths: {
41
- one: "about 1 month",
42
- other: "about {{count}} months"
43
- },
44
- xMonths: {
45
- one: "1 month",
46
- other: "{{count}} months"
47
- },
48
- aboutXYears: {
49
- one: "about 1 year",
50
- other: "about {{count}} years"
51
- },
52
- xYears: {
53
- one: "1 year",
54
- other: "{{count}} years"
55
- },
56
- overXYears: {
57
- one: "over 1 year",
58
- other: "over {{count}} years"
59
- },
60
- almostXYears: {
61
- one: "almost 1 year",
62
- other: "almost {{count}} years"
63
- }
64
- }, Ne = (t, e, n) => {
65
- let r;
66
- const a = Ue[t];
67
- return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
68
- };
69
- function Ut(t) {
70
- return (e = {}) => {
71
- const n = e.width ? String(e.width) : t.defaultWidth;
72
- return t.formats[n] || t.formats[t.defaultWidth];
73
- };
74
- }
75
- const Ee = {
76
- full: "EEEE, MMMM do, y",
77
- long: "MMMM do, y",
78
- medium: "MMM d, y",
79
- short: "MM/dd/yyyy"
80
- }, qe = {
81
- full: "h:mm:ss a zzzz",
82
- long: "h:mm:ss a z",
83
- medium: "h:mm:ss a",
84
- short: "h:mm a"
85
- }, Fe = {
86
- full: "{{date}} 'at' {{time}}",
87
- long: "{{date}} 'at' {{time}}",
88
- medium: "{{date}}, {{time}}",
89
- short: "{{date}}, {{time}}"
90
- }, He = {
91
- date: Ut({
92
- formats: Ee,
93
- defaultWidth: "full"
94
- }),
95
- time: Ut({
96
- formats: qe,
97
- defaultWidth: "full"
98
- }),
99
- dateTime: Ut({
100
- formats: Fe,
101
- defaultWidth: "full"
102
- })
103
- }, Be = {
104
- lastWeek: "'last' eeee 'at' p",
105
- yesterday: "'yesterday at' p",
106
- today: "'today at' p",
107
- tomorrow: "'tomorrow at' p",
108
- nextWeek: "eeee 'at' p",
109
- other: "P"
110
- }, Le = (t, e, n, r) => Be[t];
111
- function mt(t) {
112
- return (e, n) => {
113
- const r = n?.context ? String(n.context) : "standalone";
114
- let a;
115
- if (r === "formatting" && t.formattingValues) {
116
- const o = t.defaultFormattingWidth || t.defaultWidth, u = n?.width ? String(n.width) : o;
117
- a = t.formattingValues[u] || t.formattingValues[o];
118
- } else {
119
- const o = t.defaultWidth, u = n?.width ? String(n.width) : t.defaultWidth;
120
- a = t.values[u] || t.values[o];
121
- }
122
- const i = t.argumentCallback ? t.argumentCallback(e) : e;
123
- return a[i];
124
- };
125
- }
126
- const Qe = {
127
- narrow: ["B", "A"],
128
- abbreviated: ["BC", "AD"],
129
- wide: ["Before Christ", "Anno Domini"]
130
- }, Re = {
131
- narrow: ["1", "2", "3", "4"],
132
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
133
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
134
- }, Xe = {
135
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
136
- abbreviated: [
137
- "Jan",
138
- "Feb",
139
- "Mar",
140
- "Apr",
141
- "May",
142
- "Jun",
143
- "Jul",
144
- "Aug",
145
- "Sep",
146
- "Oct",
147
- "Nov",
148
- "Dec"
149
- ],
150
- wide: [
151
- "January",
152
- "February",
153
- "March",
154
- "April",
155
- "May",
156
- "June",
157
- "July",
158
- "August",
159
- "September",
160
- "October",
161
- "November",
162
- "December"
163
- ]
164
- }, Ge = {
165
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
166
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
167
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
168
- wide: [
169
- "Sunday",
170
- "Monday",
171
- "Tuesday",
172
- "Wednesday",
173
- "Thursday",
174
- "Friday",
175
- "Saturday"
176
- ]
177
- }, Ae = {
178
- narrow: {
179
- am: "a",
180
- pm: "p",
181
- midnight: "mi",
182
- noon: "n",
183
- morning: "morning",
184
- afternoon: "afternoon",
185
- evening: "evening",
186
- night: "night"
187
- },
188
- abbreviated: {
189
- am: "AM",
190
- pm: "PM",
191
- midnight: "midnight",
192
- noon: "noon",
193
- morning: "morning",
194
- afternoon: "afternoon",
195
- evening: "evening",
196
- night: "night"
197
- },
198
- wide: {
199
- am: "a.m.",
200
- pm: "p.m.",
201
- midnight: "midnight",
202
- noon: "noon",
203
- morning: "morning",
204
- afternoon: "afternoon",
205
- evening: "evening",
206
- night: "night"
207
- }
208
- }, Ie = {
209
- narrow: {
210
- am: "a",
211
- pm: "p",
212
- midnight: "mi",
213
- noon: "n",
214
- morning: "in the morning",
215
- afternoon: "in the afternoon",
216
- evening: "in the evening",
217
- night: "at night"
218
- },
219
- abbreviated: {
220
- am: "AM",
221
- pm: "PM",
222
- midnight: "midnight",
223
- noon: "noon",
224
- morning: "in the morning",
225
- afternoon: "in the afternoon",
226
- evening: "in the evening",
227
- night: "at night"
228
- },
229
- wide: {
230
- am: "a.m.",
231
- pm: "p.m.",
232
- midnight: "midnight",
233
- noon: "noon",
234
- morning: "in the morning",
235
- afternoon: "in the afternoon",
236
- evening: "in the evening",
237
- night: "at night"
238
- }
239
- }, je = (t, e) => {
240
- const n = Number(t), r = n % 100;
241
- if (r > 20 || r < 10)
242
- switch (r % 10) {
243
- case 1:
244
- return n + "st";
245
- case 2:
246
- return n + "nd";
247
- case 3:
248
- return n + "rd";
249
- }
250
- return n + "th";
251
- }, _e = {
252
- ordinalNumber: je,
253
- era: mt({
254
- values: Qe,
255
- defaultWidth: "wide"
256
- }),
257
- quarter: mt({
258
- values: Re,
259
- defaultWidth: "wide",
260
- argumentCallback: (t) => t - 1
261
- }),
262
- month: mt({
263
- values: Xe,
264
- defaultWidth: "wide"
265
- }),
266
- day: mt({
267
- values: Ge,
268
- defaultWidth: "wide"
269
- }),
270
- dayPeriod: mt({
271
- values: Ae,
272
- defaultWidth: "wide",
273
- formattingValues: Ie,
274
- defaultFormattingWidth: "wide"
275
- })
276
- };
277
- function gt(t) {
278
- return (e, n = {}) => {
279
- const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
280
- if (!i)
281
- return null;
282
- const o = i[0], u = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(u) ? Je(u, (c) => c.test(o)) : (
283
- // [TODO] -- I challenge you to fix the type
284
- ze(u, (c) => c.test(o))
285
- );
286
- let d;
287
- d = t.valueCallback ? t.valueCallback(s) : s, d = n.valueCallback ? (
288
- // [TODO] -- I challenge you to fix the type
289
- n.valueCallback(d)
290
- ) : d;
291
- const l = e.slice(o.length);
292
- return { value: d, rest: l };
293
- };
294
- }
295
- function ze(t, e) {
296
- for (const n in t)
297
- if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
298
- return n;
299
- }
300
- function Je(t, e) {
301
- for (let n = 0; n < t.length; n++)
302
- if (e(t[n]))
303
- return n;
304
- }
305
- function Ve(t) {
306
- return (e, n = {}) => {
307
- const r = e.match(t.matchPattern);
308
- if (!r) return null;
309
- const a = r[0], i = e.match(t.parsePattern);
310
- if (!i) return null;
311
- let o = t.valueCallback ? t.valueCallback(i[0]) : i[0];
312
- o = n.valueCallback ? n.valueCallback(o) : o;
313
- const u = e.slice(a.length);
314
- return { value: o, rest: u };
315
- };
316
- }
317
- const Ke = /^(\d+)(th|st|nd|rd)?/i, $e = /\d+/i, Ze = {
318
- narrow: /^(b|a)/i,
319
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
320
- wide: /^(before christ|before common era|anno domini|common era)/i
321
- }, tn = {
322
- any: [/^b/i, /^(a|c)/i]
323
- }, en = {
324
- narrow: /^[1234]/i,
325
- abbreviated: /^q[1234]/i,
326
- wide: /^[1234](th|st|nd|rd)? quarter/i
327
- }, nn = {
328
- any: [/1/i, /2/i, /3/i, /4/i]
329
- }, rn = {
330
- narrow: /^[jfmasond]/i,
331
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
332
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
333
- }, an = {
334
- narrow: [
335
- /^j/i,
336
- /^f/i,
337
- /^m/i,
338
- /^a/i,
339
- /^m/i,
340
- /^j/i,
341
- /^j/i,
342
- /^a/i,
343
- /^s/i,
344
- /^o/i,
345
- /^n/i,
346
- /^d/i
347
- ],
348
- any: [
349
- /^ja/i,
350
- /^f/i,
351
- /^mar/i,
352
- /^ap/i,
353
- /^may/i,
354
- /^jun/i,
355
- /^jul/i,
356
- /^au/i,
357
- /^s/i,
358
- /^o/i,
359
- /^n/i,
360
- /^d/i
361
- ]
362
- }, on = {
363
- narrow: /^[smtwf]/i,
364
- short: /^(su|mo|tu|we|th|fr|sa)/i,
365
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
366
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
367
- }, un = {
368
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
369
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
370
- }, sn = {
371
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
372
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
373
- }, cn = {
374
- any: {
375
- am: /^a/i,
376
- pm: /^p/i,
377
- midnight: /^mi/i,
378
- noon: /^no/i,
379
- morning: /morning/i,
380
- afternoon: /afternoon/i,
381
- evening: /evening/i,
382
- night: /night/i
383
- }
384
- }, dn = {
385
- ordinalNumber: Ve({
386
- matchPattern: Ke,
387
- parsePattern: $e,
388
- valueCallback: (t) => parseInt(t, 10)
389
- }),
390
- era: gt({
391
- matchPatterns: Ze,
392
- defaultMatchWidth: "wide",
393
- parsePatterns: tn,
394
- defaultParseWidth: "any"
395
- }),
396
- quarter: gt({
397
- matchPatterns: en,
398
- defaultMatchWidth: "wide",
399
- parsePatterns: nn,
400
- defaultParseWidth: "any",
401
- valueCallback: (t) => t + 1
402
- }),
403
- month: gt({
404
- matchPatterns: rn,
405
- defaultMatchWidth: "wide",
406
- parsePatterns: an,
407
- defaultParseWidth: "any"
408
- }),
409
- day: gt({
410
- matchPatterns: on,
411
- defaultMatchWidth: "wide",
412
- parsePatterns: un,
413
- defaultParseWidth: "any"
414
- }),
415
- dayPeriod: gt({
416
- matchPatterns: sn,
417
- defaultMatchWidth: "any",
418
- parsePatterns: cn,
419
- defaultParseWidth: "any"
420
- })
421
- }, fn = {
422
- code: "en-US",
423
- formatDistance: Ne,
424
- formatLong: He,
425
- formatRelative: Le,
426
- localize: _e,
427
- match: dn,
428
- options: {
429
- weekStartsOn: 0,
430
- firstWeekContainsDate: 1
431
- }
432
- };
433
- let ln = {};
434
- function Ot() {
435
- return ln;
436
- }
437
- const se = 6048e5, hn = 864e5, Qt = Symbol.for("constructDateFrom");
438
- function S(t, e) {
439
- return typeof t == "function" ? t(e) : t && typeof t == "object" && Qt in t ? t[Qt](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
440
- }
441
- function x(t, e) {
442
- return S(e || t, t);
443
- }
444
- function Rt(t) {
445
- const e = x(t), n = new Date(
446
- Date.UTC(
447
- e.getFullYear(),
448
- e.getMonth(),
449
- e.getDate(),
450
- e.getHours(),
451
- e.getMinutes(),
452
- e.getSeconds(),
453
- e.getMilliseconds()
454
- )
455
- );
456
- return n.setUTCFullYear(e.getFullYear()), +t - +n;
457
- }
458
- function ce(t, ...e) {
459
- const n = S.bind(
460
- null,
461
- e.find((r) => typeof r == "object")
462
- );
463
- return e.map(n);
464
- }
465
- function Mt(t, e) {
466
- const n = x(t, e?.in);
467
- return n.setHours(0, 0, 0, 0), n;
468
- }
469
- function mn(t, e, n) {
470
- const [r, a] = ce(
471
- n?.in,
472
- t,
473
- e
474
- ), i = Mt(r), o = Mt(a), u = +i - Rt(i), s = +o - Rt(o);
475
- return Math.round((u - s) / hn);
476
- }
477
- function gn(t, e) {
478
- const n = x(t, e?.in);
479
- return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
480
- }
481
- function wn(t, e) {
482
- const n = x(t, e?.in);
483
- return mn(n, gn(n)) + 1;
484
- }
485
- function Tt(t, e) {
486
- const n = Ot(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = x(t, e?.in), i = a.getDay(), o = (i < r ? 7 : 0) + i - r;
487
- return a.setDate(a.getDate() - o), a.setHours(0, 0, 0, 0), a;
488
- }
489
- function Ct(t, e) {
490
- return Tt(t, { ...e, weekStartsOn: 1 });
491
- }
492
- function de(t, e) {
493
- const n = x(t, e?.in), r = n.getFullYear(), a = S(n, 0);
494
- a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
495
- const i = Ct(a), o = S(n, 0);
496
- o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
497
- const u = Ct(o);
498
- return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
499
- }
500
- function yn(t, e) {
501
- const n = de(t, e), r = S(t, 0);
502
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Ct(r);
503
- }
504
- function bn(t, e) {
505
- const n = x(t, e?.in), r = +Ct(n) - +yn(n);
506
- return Math.round(r / se) + 1;
507
- }
508
- function fe(t, e) {
509
- const n = x(t, e?.in), r = n.getFullYear(), a = Ot(), i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, o = S(e?.in || t, 0);
510
- o.setFullYear(r + 1, 0, i), o.setHours(0, 0, 0, 0);
511
- const u = Tt(o, e), s = S(e?.in || t, 0);
512
- s.setFullYear(r, 0, i), s.setHours(0, 0, 0, 0);
513
- const d = Tt(s, e);
514
- return +n >= +u ? r + 1 : +n >= +d ? r : r - 1;
515
- }
516
- function vn(t, e) {
517
- const n = Ot(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = fe(t, e), i = S(e?.in || t, 0);
518
- return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), Tt(i, e);
519
- }
520
- function pn(t, e) {
521
- const n = x(t, e?.in), r = +Tt(n, e) - +vn(n, e);
522
- return Math.round(r / se) + 1;
523
- }
524
- function y(t, e) {
525
- const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
526
- return n + r;
527
- }
528
- const _ = {
529
- // Year
530
- y(t, e) {
531
- const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
532
- return y(e === "yy" ? r % 100 : r, e.length);
533
- },
534
- // Month
535
- M(t, e) {
536
- const n = t.getMonth();
537
- return e === "M" ? String(n + 1) : y(n + 1, 2);
538
- },
539
- // Day of the month
540
- d(t, e) {
541
- return y(t.getDate(), e.length);
542
- },
543
- // AM or PM
544
- a(t, e) {
545
- const n = t.getHours() / 12 >= 1 ? "pm" : "am";
546
- switch (e) {
547
- case "a":
548
- case "aa":
549
- return n.toUpperCase();
550
- case "aaa":
551
- return n;
552
- case "aaaaa":
553
- return n[0];
554
- case "aaaa":
555
- default:
556
- return n === "am" ? "a.m." : "p.m.";
557
- }
558
- },
559
- // Hour [1-12]
560
- h(t, e) {
561
- return y(t.getHours() % 12 || 12, e.length);
562
- },
563
- // Hour [0-23]
564
- H(t, e) {
565
- return y(t.getHours(), e.length);
566
- },
567
- // Minute
568
- m(t, e) {
569
- return y(t.getMinutes(), e.length);
570
- },
571
- // Second
572
- s(t, e) {
573
- return y(t.getSeconds(), e.length);
574
- },
575
- // Fraction of second
576
- S(t, e) {
577
- const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
578
- r * Math.pow(10, n - 3)
579
- );
580
- return y(a, e.length);
581
- }
582
- }, it = {
583
- midnight: "midnight",
584
- noon: "noon",
585
- morning: "morning",
586
- afternoon: "afternoon",
587
- evening: "evening",
588
- night: "night"
589
- }, Xt = {
590
- // Era
591
- G: function(t, e, n) {
592
- const r = t.getFullYear() > 0 ? 1 : 0;
593
- switch (e) {
594
- // AD, BC
595
- case "G":
596
- case "GG":
597
- case "GGG":
598
- return n.era(r, { width: "abbreviated" });
599
- // A, B
600
- case "GGGGG":
601
- return n.era(r, { width: "narrow" });
602
- // Anno Domini, Before Christ
603
- case "GGGG":
604
- default:
605
- return n.era(r, { width: "wide" });
606
- }
607
- },
608
- // Year
609
- y: function(t, e, n) {
610
- if (e === "yo") {
611
- const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
612
- return n.ordinalNumber(a, { unit: "year" });
613
- }
614
- return _.y(t, e);
615
- },
616
- // Local week-numbering year
617
- Y: function(t, e, n, r) {
618
- const a = fe(t, r), i = a > 0 ? a : 1 - a;
619
- if (e === "YY") {
620
- const o = i % 100;
621
- return y(o, 2);
622
- }
623
- return e === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : y(i, e.length);
624
- },
625
- // ISO week-numbering year
626
- R: function(t, e) {
627
- const n = de(t);
628
- return y(n, e.length);
629
- },
630
- // Extended year. This is a single number designating the year of this calendar system.
631
- // The main difference between `y` and `u` localizers are B.C. years:
632
- // | Year | `y` | `u` |
633
- // |------|-----|-----|
634
- // | AC 1 | 1 | 1 |
635
- // | BC 1 | 1 | 0 |
636
- // | BC 2 | 2 | -1 |
637
- // Also `yy` always returns the last two digits of a year,
638
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
639
- u: function(t, e) {
640
- const n = t.getFullYear();
641
- return y(n, e.length);
642
- },
643
- // Quarter
644
- Q: function(t, e, n) {
645
- const r = Math.ceil((t.getMonth() + 1) / 3);
646
- switch (e) {
647
- // 1, 2, 3, 4
648
- case "Q":
649
- return String(r);
650
- // 01, 02, 03, 04
651
- case "QQ":
652
- return y(r, 2);
653
- // 1st, 2nd, 3rd, 4th
654
- case "Qo":
655
- return n.ordinalNumber(r, { unit: "quarter" });
656
- // Q1, Q2, Q3, Q4
657
- case "QQQ":
658
- return n.quarter(r, {
659
- width: "abbreviated",
660
- context: "formatting"
661
- });
662
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
663
- case "QQQQQ":
664
- return n.quarter(r, {
665
- width: "narrow",
666
- context: "formatting"
667
- });
668
- // 1st quarter, 2nd quarter, ...
669
- case "QQQQ":
670
- default:
671
- return n.quarter(r, {
672
- width: "wide",
673
- context: "formatting"
674
- });
675
- }
676
- },
677
- // Stand-alone quarter
678
- q: function(t, e, n) {
679
- const r = Math.ceil((t.getMonth() + 1) / 3);
680
- switch (e) {
681
- // 1, 2, 3, 4
682
- case "q":
683
- return String(r);
684
- // 01, 02, 03, 04
685
- case "qq":
686
- return y(r, 2);
687
- // 1st, 2nd, 3rd, 4th
688
- case "qo":
689
- return n.ordinalNumber(r, { unit: "quarter" });
690
- // Q1, Q2, Q3, Q4
691
- case "qqq":
692
- return n.quarter(r, {
693
- width: "abbreviated",
694
- context: "standalone"
695
- });
696
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
697
- case "qqqqq":
698
- return n.quarter(r, {
699
- width: "narrow",
700
- context: "standalone"
701
- });
702
- // 1st quarter, 2nd quarter, ...
703
- case "qqqq":
704
- default:
705
- return n.quarter(r, {
706
- width: "wide",
707
- context: "standalone"
708
- });
709
- }
710
- },
711
- // Month
712
- M: function(t, e, n) {
713
- const r = t.getMonth();
714
- switch (e) {
715
- case "M":
716
- case "MM":
717
- return _.M(t, e);
718
- // 1st, 2nd, ..., 12th
719
- case "Mo":
720
- return n.ordinalNumber(r + 1, { unit: "month" });
721
- // Jan, Feb, ..., Dec
722
- case "MMM":
723
- return n.month(r, {
724
- width: "abbreviated",
725
- context: "formatting"
726
- });
727
- // J, F, ..., D
728
- case "MMMMM":
729
- return n.month(r, {
730
- width: "narrow",
731
- context: "formatting"
732
- });
733
- // January, February, ..., December
734
- case "MMMM":
735
- default:
736
- return n.month(r, { width: "wide", context: "formatting" });
737
- }
738
- },
739
- // Stand-alone month
740
- L: function(t, e, n) {
741
- const r = t.getMonth();
742
- switch (e) {
743
- // 1, 2, ..., 12
744
- case "L":
745
- return String(r + 1);
746
- // 01, 02, ..., 12
747
- case "LL":
748
- return y(r + 1, 2);
749
- // 1st, 2nd, ..., 12th
750
- case "Lo":
751
- return n.ordinalNumber(r + 1, { unit: "month" });
752
- // Jan, Feb, ..., Dec
753
- case "LLL":
754
- return n.month(r, {
755
- width: "abbreviated",
756
- context: "standalone"
757
- });
758
- // J, F, ..., D
759
- case "LLLLL":
760
- return n.month(r, {
761
- width: "narrow",
762
- context: "standalone"
763
- });
764
- // January, February, ..., December
765
- case "LLLL":
766
- default:
767
- return n.month(r, { width: "wide", context: "standalone" });
768
- }
769
- },
770
- // Local week of year
771
- w: function(t, e, n, r) {
772
- const a = pn(t, r);
773
- return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : y(a, e.length);
774
- },
775
- // ISO week of year
776
- I: function(t, e, n) {
777
- const r = bn(t);
778
- return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : y(r, e.length);
779
- },
780
- // Day of the month
781
- d: function(t, e, n) {
782
- return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : _.d(t, e);
783
- },
784
- // Day of year
785
- D: function(t, e, n) {
786
- const r = wn(t);
787
- return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : y(r, e.length);
788
- },
789
- // Day of week
790
- E: function(t, e, n) {
791
- const r = t.getDay();
792
- switch (e) {
793
- // Tue
794
- case "E":
795
- case "EE":
796
- case "EEE":
797
- return n.day(r, {
798
- width: "abbreviated",
799
- context: "formatting"
800
- });
801
- // T
802
- case "EEEEE":
803
- return n.day(r, {
804
- width: "narrow",
805
- context: "formatting"
806
- });
807
- // Tu
808
- case "EEEEEE":
809
- return n.day(r, {
810
- width: "short",
811
- context: "formatting"
812
- });
813
- // Tuesday
814
- case "EEEE":
815
- default:
816
- return n.day(r, {
817
- width: "wide",
818
- context: "formatting"
819
- });
820
- }
821
- },
822
- // Local day of week
823
- e: function(t, e, n, r) {
824
- const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
825
- switch (e) {
826
- // Numerical value (Nth day of week with current locale or weekStartsOn)
827
- case "e":
828
- return String(i);
829
- // Padded numerical value
830
- case "ee":
831
- return y(i, 2);
832
- // 1st, 2nd, ..., 7th
833
- case "eo":
834
- return n.ordinalNumber(i, { unit: "day" });
835
- case "eee":
836
- return n.day(a, {
837
- width: "abbreviated",
838
- context: "formatting"
839
- });
840
- // T
841
- case "eeeee":
842
- return n.day(a, {
843
- width: "narrow",
844
- context: "formatting"
845
- });
846
- // Tu
847
- case "eeeeee":
848
- return n.day(a, {
849
- width: "short",
850
- context: "formatting"
851
- });
852
- // Tuesday
853
- case "eeee":
854
- default:
855
- return n.day(a, {
856
- width: "wide",
857
- context: "formatting"
858
- });
859
- }
860
- },
861
- // Stand-alone local day of week
862
- c: function(t, e, n, r) {
863
- const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
864
- switch (e) {
865
- // Numerical value (same as in `e`)
866
- case "c":
867
- return String(i);
868
- // Padded numerical value
869
- case "cc":
870
- return y(i, e.length);
871
- // 1st, 2nd, ..., 7th
872
- case "co":
873
- return n.ordinalNumber(i, { unit: "day" });
874
- case "ccc":
875
- return n.day(a, {
876
- width: "abbreviated",
877
- context: "standalone"
878
- });
879
- // T
880
- case "ccccc":
881
- return n.day(a, {
882
- width: "narrow",
883
- context: "standalone"
884
- });
885
- // Tu
886
- case "cccccc":
887
- return n.day(a, {
888
- width: "short",
889
- context: "standalone"
890
- });
891
- // Tuesday
892
- case "cccc":
893
- default:
894
- return n.day(a, {
895
- width: "wide",
896
- context: "standalone"
897
- });
898
- }
899
- },
900
- // ISO day of week
901
- i: function(t, e, n) {
902
- const r = t.getDay(), a = r === 0 ? 7 : r;
903
- switch (e) {
904
- // 2
905
- case "i":
906
- return String(a);
907
- // 02
908
- case "ii":
909
- return y(a, e.length);
910
- // 2nd
911
- case "io":
912
- return n.ordinalNumber(a, { unit: "day" });
913
- // Tue
914
- case "iii":
915
- return n.day(r, {
916
- width: "abbreviated",
917
- context: "formatting"
918
- });
919
- // T
920
- case "iiiii":
921
- return n.day(r, {
922
- width: "narrow",
923
- context: "formatting"
924
- });
925
- // Tu
926
- case "iiiiii":
927
- return n.day(r, {
928
- width: "short",
929
- context: "formatting"
930
- });
931
- // Tuesday
932
- case "iiii":
933
- default:
934
- return n.day(r, {
935
- width: "wide",
936
- context: "formatting"
937
- });
938
- }
939
- },
940
- // AM or PM
941
- a: function(t, e, n) {
942
- const a = t.getHours() / 12 >= 1 ? "pm" : "am";
943
- switch (e) {
944
- case "a":
945
- case "aa":
946
- return n.dayPeriod(a, {
947
- width: "abbreviated",
948
- context: "formatting"
949
- });
950
- case "aaa":
951
- return n.dayPeriod(a, {
952
- width: "abbreviated",
953
- context: "formatting"
954
- }).toLowerCase();
955
- case "aaaaa":
956
- return n.dayPeriod(a, {
957
- width: "narrow",
958
- context: "formatting"
959
- });
960
- case "aaaa":
961
- default:
962
- return n.dayPeriod(a, {
963
- width: "wide",
964
- context: "formatting"
965
- });
966
- }
967
- },
968
- // AM, PM, midnight, noon
969
- b: function(t, e, n) {
970
- const r = t.getHours();
971
- let a;
972
- switch (r === 12 ? a = it.noon : r === 0 ? a = it.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
973
- case "b":
974
- case "bb":
975
- return n.dayPeriod(a, {
976
- width: "abbreviated",
977
- context: "formatting"
978
- });
979
- case "bbb":
980
- return n.dayPeriod(a, {
981
- width: "abbreviated",
982
- context: "formatting"
983
- }).toLowerCase();
984
- case "bbbbb":
985
- return n.dayPeriod(a, {
986
- width: "narrow",
987
- context: "formatting"
988
- });
989
- case "bbbb":
990
- default:
991
- return n.dayPeriod(a, {
992
- width: "wide",
993
- context: "formatting"
994
- });
995
- }
996
- },
997
- // in the morning, in the afternoon, in the evening, at night
998
- B: function(t, e, n) {
999
- const r = t.getHours();
1000
- let a;
1001
- switch (r >= 17 ? a = it.evening : r >= 12 ? a = it.afternoon : r >= 4 ? a = it.morning : a = it.night, e) {
1002
- case "B":
1003
- case "BB":
1004
- case "BBB":
1005
- return n.dayPeriod(a, {
1006
- width: "abbreviated",
1007
- context: "formatting"
1008
- });
1009
- case "BBBBB":
1010
- return n.dayPeriod(a, {
1011
- width: "narrow",
1012
- context: "formatting"
1013
- });
1014
- case "BBBB":
1015
- default:
1016
- return n.dayPeriod(a, {
1017
- width: "wide",
1018
- context: "formatting"
1019
- });
1020
- }
1021
- },
1022
- // Hour [1-12]
1023
- h: function(t, e, n) {
1024
- if (e === "ho") {
1025
- let r = t.getHours() % 12;
1026
- return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
1027
- }
1028
- return _.h(t, e);
1029
- },
1030
- // Hour [0-23]
1031
- H: function(t, e, n) {
1032
- return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : _.H(t, e);
1033
- },
1034
- // Hour [0-11]
1035
- K: function(t, e, n) {
1036
- const r = t.getHours() % 12;
1037
- return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : y(r, e.length);
1038
- },
1039
- // Hour [1-24]
1040
- k: function(t, e, n) {
1041
- let r = t.getHours();
1042
- return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : y(r, e.length);
1043
- },
1044
- // Minute
1045
- m: function(t, e, n) {
1046
- return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : _.m(t, e);
1047
- },
1048
- // Second
1049
- s: function(t, e, n) {
1050
- return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : _.s(t, e);
1051
- },
1052
- // Fraction of second
1053
- S: function(t, e) {
1054
- return _.S(t, e);
1055
- },
1056
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1057
- X: function(t, e, n) {
1058
- const r = t.getTimezoneOffset();
1059
- if (r === 0)
1060
- return "Z";
1061
- switch (e) {
1062
- // Hours and optional minutes
1063
- case "X":
1064
- return At(r);
1065
- // Hours, minutes and optional seconds without `:` delimiter
1066
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1067
- // so this token always has the same output as `XX`
1068
- case "XXXX":
1069
- case "XX":
1070
- return $(r);
1071
- // Hours, minutes and optional seconds with `:` delimiter
1072
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1073
- // so this token always has the same output as `XXX`
1074
- case "XXXXX":
1075
- case "XXX":
1076
- // Hours and minutes with `:` delimiter
1077
- default:
1078
- return $(r, ":");
1079
- }
1080
- },
1081
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1082
- x: function(t, e, n) {
1083
- const r = t.getTimezoneOffset();
1084
- switch (e) {
1085
- // Hours and optional minutes
1086
- case "x":
1087
- return At(r);
1088
- // Hours, minutes and optional seconds without `:` delimiter
1089
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1090
- // so this token always has the same output as `xx`
1091
- case "xxxx":
1092
- case "xx":
1093
- return $(r);
1094
- // Hours, minutes and optional seconds with `:` delimiter
1095
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1096
- // so this token always has the same output as `xxx`
1097
- case "xxxxx":
1098
- case "xxx":
1099
- // Hours and minutes with `:` delimiter
1100
- default:
1101
- return $(r, ":");
1102
- }
1103
- },
1104
- // Timezone (GMT)
1105
- O: function(t, e, n) {
1106
- const r = t.getTimezoneOffset();
1107
- switch (e) {
1108
- // Short
1109
- case "O":
1110
- case "OO":
1111
- case "OOO":
1112
- return "GMT" + Gt(r, ":");
1113
- // Long
1114
- case "OOOO":
1115
- default:
1116
- return "GMT" + $(r, ":");
1117
- }
1118
- },
1119
- // Timezone (specific non-location)
1120
- z: function(t, e, n) {
1121
- const r = t.getTimezoneOffset();
1122
- switch (e) {
1123
- // Short
1124
- case "z":
1125
- case "zz":
1126
- case "zzz":
1127
- return "GMT" + Gt(r, ":");
1128
- // Long
1129
- case "zzzz":
1130
- default:
1131
- return "GMT" + $(r, ":");
1132
- }
1133
- },
1134
- // Seconds timestamp
1135
- t: function(t, e, n) {
1136
- const r = Math.trunc(+t / 1e3);
1137
- return y(r, e.length);
1138
- },
1139
- // Milliseconds timestamp
1140
- T: function(t, e, n) {
1141
- return y(+t, e.length);
1142
- }
1143
- };
1144
- function Gt(t, e = "") {
1145
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
1146
- return i === 0 ? n + String(a) : n + String(a) + e + y(i, 2);
1147
- }
1148
- function At(t, e) {
1149
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + y(Math.abs(t) / 60, 2) : $(t, e);
1150
- }
1151
- function $(t, e = "") {
1152
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = y(Math.trunc(r / 60), 2), i = y(r % 60, 2);
1153
- return n + a + e + i;
1154
- }
1155
- const It = (t, e) => {
1156
- switch (t) {
1157
- case "P":
1158
- return e.date({ width: "short" });
1159
- case "PP":
1160
- return e.date({ width: "medium" });
1161
- case "PPP":
1162
- return e.date({ width: "long" });
1163
- case "PPPP":
1164
- default:
1165
- return e.date({ width: "full" });
1166
- }
1167
- }, le = (t, e) => {
1168
- switch (t) {
1169
- case "p":
1170
- return e.time({ width: "short" });
1171
- case "pp":
1172
- return e.time({ width: "medium" });
1173
- case "ppp":
1174
- return e.time({ width: "long" });
1175
- case "pppp":
1176
- default:
1177
- return e.time({ width: "full" });
1178
- }
1179
- }, Dn = (t, e) => {
1180
- const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1181
- if (!a)
1182
- return It(t, e);
1183
- let i;
1184
- switch (r) {
1185
- case "P":
1186
- i = e.dateTime({ width: "short" });
1187
- break;
1188
- case "PP":
1189
- i = e.dateTime({ width: "medium" });
1190
- break;
1191
- case "PPP":
1192
- i = e.dateTime({ width: "long" });
1193
- break;
1194
- case "PPPP":
1195
- default:
1196
- i = e.dateTime({ width: "full" });
1197
- break;
1198
- }
1199
- return i.replace("{{date}}", It(r, e)).replace("{{time}}", le(a, e));
1200
- }, Tn = {
1201
- p: le,
1202
- P: Dn
1203
- }, kn = /^D+$/, xn = /^Y+$/, Mn = ["D", "DD", "YY", "YYYY"];
1204
- function Cn(t) {
1205
- return kn.test(t);
1206
- }
1207
- function Pn(t) {
1208
- return xn.test(t);
1209
- }
1210
- function On(t, e, n) {
1211
- const r = Sn(t, e, n);
1212
- if (console.warn(r), Mn.includes(t)) throw new RangeError(r);
1213
- }
1214
- function Sn(t, e, n) {
1215
- const r = t[0] === "Y" ? "years" : "days of the month";
1216
- return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1217
- }
1218
- function Yn(t) {
1219
- return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
1220
- }
1221
- function Wn(t) {
1222
- return !(!Yn(t) && typeof t != "number" || isNaN(+x(t)));
1223
- }
1224
- const Un = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Nn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, En = /^'([^]*?)'?$/, qn = /''/g, Fn = /[a-zA-Z]/;
1225
- function sa(t, e, n) {
1226
- const r = Ot(), a = r.locale ?? fn, i = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, u = x(t, n?.in);
1227
- if (!Wn(u))
1228
- throw new RangeError("Invalid time value");
1229
- let s = e.match(Nn).map((l) => {
1230
- const c = l[0];
1231
- if (c === "p" || c === "P") {
1232
- const m = Tn[c];
1233
- return m(l, a.formatLong);
1234
- }
1235
- return l;
1236
- }).join("").match(Un).map((l) => {
1237
- if (l === "''")
1238
- return { isToken: !1, value: "'" };
1239
- const c = l[0];
1240
- if (c === "'")
1241
- return { isToken: !1, value: Hn(l) };
1242
- if (Xt[c])
1243
- return { isToken: !0, value: l };
1244
- if (c.match(Fn))
1245
- throw new RangeError(
1246
- "Format string contains an unescaped latin alphabet character `" + c + "`"
1247
- );
1248
- return { isToken: !1, value: l };
1249
- });
1250
- a.localize.preprocessor && (s = a.localize.preprocessor(u, s));
1251
- const d = {
1252
- firstWeekContainsDate: i,
1253
- weekStartsOn: o,
1254
- locale: a
1255
- };
1256
- return s.map((l) => {
1257
- if (!l.isToken) return l.value;
1258
- const c = l.value;
1259
- (Pn(c) || Cn(c)) && On(c, e, String(t));
1260
- const m = Xt[c[0]];
1261
- return m(u, c, a.localize, d);
1262
- }).join("");
1263
- }
1264
- function Hn(t) {
1265
- const e = t.match(En);
1266
- return e ? e[1].replace(qn, "'") : t;
1267
- }
1268
- var xt = {
1269
- lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" },
1270
- xSeconds: { one: "1 second", other: "{{count}} seconds" },
1271
- halfAMinute: "half a minute",
1272
- lessThanXMinutes: { one: "less than a minute", other: "less than {{count}} minutes" },
1273
- xMinutes: { one: "1 minute", other: "{{count}} minutes" },
1274
- aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" },
1275
- xHours: { one: "1 hour", other: "{{count}} hours" },
1276
- xDays: { one: "1 day", other: "{{count}} days" },
1277
- aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" },
1278
- xWeeks: { one: "1 week", other: "{{count}} weeks" },
1279
- aboutXMonths: { one: "about 1 month", other: "about {{count}} months" },
1280
- xMonths: { one: "1 month", other: "{{count}} months" },
1281
- aboutXYears: { one: "about 1 year", other: "about {{count}} years" },
1282
- xYears: { one: "1 year", other: "{{count}} years" },
1283
- overXYears: { one: "over 1 year", other: "over {{count}} years" },
1284
- almostXYears: { one: "almost 1 year", other: "almost {{count}} years" }
1285
- };
1286
- function Nt(t) {
1287
- return function(e) {
1288
- var n = e || {}, r = n.width ? String(n.width) : t.defaultWidth;
1289
- return t.formats[r] || t.formats[t.defaultWidth];
1290
- };
1291
- }
1292
- var Bn = {
1293
- date: Nt({
1294
- formats: {
1295
- full: "EEEE, MMMM do, y",
1296
- long: "MMMM do, y",
1297
- medium: "MMM d, y",
1298
- short: "MM/dd/yyyy"
1299
- },
1300
- defaultWidth: "full"
1301
- }),
1302
- time: Nt({
1303
- formats: { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" },
1304
- defaultWidth: "full"
1305
- }),
1306
- dateTime: Nt({
1307
- formats: {
1308
- full: "{{date}} 'at' {{time}}",
1309
- long: "{{date}} 'at' {{time}}",
1310
- medium: "{{date}}, {{time}}",
1311
- short: "{{date}}, {{time}}"
1312
- },
1313
- defaultWidth: "full"
1314
- })
1315
- }, Ln = {
1316
- lastWeek: "'last' eeee 'at' p",
1317
- yesterday: "'yesterday at' p",
1318
- today: "'today at' p",
1319
- tomorrow: "'tomorrow at' p",
1320
- nextWeek: "eeee 'at' p",
1321
- other: "P"
1322
- };
1323
- function wt(t) {
1324
- return function(e, n) {
1325
- var r, a = n || {};
1326
- if ((a.context ? String(a.context) : "standalone") === "formatting" && t.formattingValues) {
1327
- var i = t.defaultFormattingWidth || t.defaultWidth, o = a.width ? String(a.width) : i;
1328
- r = t.formattingValues[o] || t.formattingValues[i];
1329
- } else {
1330
- var u = t.defaultWidth, s = a.width ? String(a.width) : t.defaultWidth;
1331
- r = t.values[s] || t.values[u];
1332
- }
1333
- return r[t.argumentCallback ? t.argumentCallback(e) : e];
1334
- };
1335
- }
1336
- function yt(t) {
1337
- return function(e, n) {
1338
- var r = String(e), a = n || {}, i = a.width, o = i && t.matchPatterns[i] || t.matchPatterns[t.defaultMatchWidth], u = r.match(o);
1339
- if (!u) return null;
1340
- var s, d = u[0], l = i && t.parsePatterns[i] || t.parsePatterns[t.defaultParseWidth];
1341
- return s = Object.prototype.toString.call(l) === "[object Array]" ? function(c, m) {
1342
- for (var h = 0; h < c.length; h++) if (m(c[h])) return h;
1343
- }(l, function(c) {
1344
- return c.test(d);
1345
- }) : function(c, m) {
1346
- for (var h in c) if (c.hasOwnProperty(h) && m(c[h])) return h;
1347
- }(l, function(c) {
1348
- return c.test(d);
1349
- }), s = t.valueCallback ? t.valueCallback(s) : s, { value: s = a.valueCallback ? a.valueCallback(s) : s, rest: r.slice(d.length) };
1350
- };
1351
- }
1352
- var bt, he = {
1353
- code: "en-US",
1354
- formatDistance: function(t, e, n) {
1355
- var r;
1356
- return n = n || {}, r = typeof xt[t] == "string" ? xt[t] : e === 1 ? xt[t].one : xt[t].other.replace("{{count}}", e), n.addSuffix ? n.comparison > 0 ? "in " + r : r + " ago" : r;
1357
- },
1358
- formatLong: Bn,
1359
- formatRelative: function(t, e, n, r) {
1360
- return Ln[t];
1361
- },
1362
- localize: {
1363
- ordinalNumber: function(t, e) {
1364
- var n = Number(t), r = n % 100;
1365
- if (r > 20 || r < 10)
1366
- switch (r % 10) {
1367
- case 1:
1368
- return n + "st";
1369
- case 2:
1370
- return n + "nd";
1371
- case 3:
1372
- return n + "rd";
1373
- }
1374
- return n + "th";
1375
- },
1376
- era: wt({
1377
- values: {
1378
- narrow: ["B", "A"],
1379
- abbreviated: ["BC", "AD"],
1380
- wide: ["Before Christ", "Anno Domini"]
1381
- },
1382
- defaultWidth: "wide"
1383
- }),
1384
- quarter: wt({
1385
- values: {
1386
- narrow: ["1", "2", "3", "4"],
1387
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1388
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1389
- },
1390
- defaultWidth: "wide",
1391
- argumentCallback: function(t) {
1392
- return Number(t) - 1;
1393
- }
1394
- }),
1395
- month: wt({
1396
- values: {
1397
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1398
- abbreviated: [
1399
- "Jan",
1400
- "Feb",
1401
- "Mar",
1402
- "Apr",
1403
- "May",
1404
- "Jun",
1405
- "Jul",
1406
- "Aug",
1407
- "Sep",
1408
- "Oct",
1409
- "Nov",
1410
- "Dec"
1411
- ],
1412
- wide: [
1413
- "January",
1414
- "February",
1415
- "March",
1416
- "April",
1417
- "May",
1418
- "June",
1419
- "July",
1420
- "August",
1421
- "September",
1422
- "October",
1423
- "November",
1424
- "December"
1425
- ]
1426
- },
1427
- defaultWidth: "wide"
1428
- }),
1429
- day: wt({
1430
- values: {
1431
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
1432
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1433
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1434
- wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1435
- },
1436
- defaultWidth: "wide"
1437
- }),
1438
- dayPeriod: wt({
1439
- values: {
1440
- narrow: {
1441
- am: "a",
1442
- pm: "p",
1443
- midnight: "mi",
1444
- noon: "n",
1445
- morning: "morning",
1446
- afternoon: "afternoon",
1447
- evening: "evening",
1448
- night: "night"
1449
- },
1450
- abbreviated: {
1451
- am: "AM",
1452
- pm: "PM",
1453
- midnight: "midnight",
1454
- noon: "noon",
1455
- morning: "morning",
1456
- afternoon: "afternoon",
1457
- evening: "evening",
1458
- night: "night"
1459
- },
1460
- wide: {
1461
- am: "a.m.",
1462
- pm: "p.m.",
1463
- midnight: "midnight",
1464
- noon: "noon",
1465
- morning: "morning",
1466
- afternoon: "afternoon",
1467
- evening: "evening",
1468
- night: "night"
1469
- }
1470
- },
1471
- defaultWidth: "wide",
1472
- formattingValues: {
1473
- narrow: {
1474
- am: "a",
1475
- pm: "p",
1476
- midnight: "mi",
1477
- noon: "n",
1478
- morning: "in the morning",
1479
- afternoon: "in the afternoon",
1480
- evening: "in the evening",
1481
- night: "at night"
1482
- },
1483
- abbreviated: {
1484
- am: "AM",
1485
- pm: "PM",
1486
- midnight: "midnight",
1487
- noon: "noon",
1488
- morning: "in the morning",
1489
- afternoon: "in the afternoon",
1490
- evening: "in the evening",
1491
- night: "at night"
1492
- },
1493
- wide: {
1494
- am: "a.m.",
1495
- pm: "p.m.",
1496
- midnight: "midnight",
1497
- noon: "noon",
1498
- morning: "in the morning",
1499
- afternoon: "in the afternoon",
1500
- evening: "in the evening",
1501
- night: "at night"
1502
- }
1503
- },
1504
- defaultFormattingWidth: "wide"
1505
- })
1506
- },
1507
- match: {
1508
- ordinalNumber: (bt = {
1509
- matchPattern: /^(\d+)(th|st|nd|rd)?/i,
1510
- parsePattern: /\d+/i,
1511
- valueCallback: function(t) {
1512
- return parseInt(t, 10);
1513
- }
1514
- }, function(t, e) {
1515
- var n = String(t), r = e || {}, a = n.match(bt.matchPattern);
1516
- if (!a) return null;
1517
- var i = a[0], o = n.match(bt.parsePattern);
1518
- if (!o) return null;
1519
- var u = bt.valueCallback ? bt.valueCallback(o[0]) : o[0];
1520
- return { value: u = r.valueCallback ? r.valueCallback(u) : u, rest: n.slice(i.length) };
1521
- }),
1522
- era: yt({
1523
- matchPatterns: {
1524
- narrow: /^(b|a)/i,
1525
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1526
- wide: /^(before christ|before common era|anno domini|common era)/i
1527
- },
1528
- defaultMatchWidth: "wide",
1529
- parsePatterns: { any: [/^b/i, /^(a|c)/i] },
1530
- defaultParseWidth: "any"
1531
- }),
1532
- quarter: yt({
1533
- matchPatterns: {
1534
- narrow: /^[1234]/i,
1535
- abbreviated: /^q[1234]/i,
1536
- wide: /^[1234](th|st|nd|rd)? quarter/i
1537
- },
1538
- defaultMatchWidth: "wide",
1539
- parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] },
1540
- defaultParseWidth: "any",
1541
- valueCallback: function(t) {
1542
- return t + 1;
1543
- }
1544
- }),
1545
- month: yt({
1546
- matchPatterns: {
1547
- narrow: /^[jfmasond]/i,
1548
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1549
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1550
- },
1551
- defaultMatchWidth: "wide",
1552
- parsePatterns: {
1553
- narrow: [
1554
- /^j/i,
1555
- /^f/i,
1556
- /^m/i,
1557
- /^a/i,
1558
- /^m/i,
1559
- /^j/i,
1560
- /^j/i,
1561
- /^a/i,
1562
- /^s/i,
1563
- /^o/i,
1564
- /^n/i,
1565
- /^d/i
1566
- ],
1567
- any: [
1568
- /^ja/i,
1569
- /^f/i,
1570
- /^mar/i,
1571
- /^ap/i,
1572
- /^may/i,
1573
- /^jun/i,
1574
- /^jul/i,
1575
- /^au/i,
1576
- /^s/i,
1577
- /^o/i,
1578
- /^n/i,
1579
- /^d/i
1580
- ]
1581
- },
1582
- defaultParseWidth: "any"
1583
- }),
1584
- day: yt({
1585
- matchPatterns: {
1586
- narrow: /^[smtwf]/i,
1587
- short: /^(su|mo|tu|we|th|fr|sa)/i,
1588
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1589
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1590
- },
1591
- defaultMatchWidth: "wide",
1592
- parsePatterns: {
1593
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1594
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1595
- },
1596
- defaultParseWidth: "any"
1597
- }),
1598
- dayPeriod: yt({
1599
- matchPatterns: {
1600
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1601
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1602
- },
1603
- defaultMatchWidth: "any",
1604
- parsePatterns: {
1605
- any: {
1606
- am: /^a/i,
1607
- pm: /^p/i,
1608
- midnight: /^mi/i,
1609
- noon: /^no/i,
1610
- morning: /morning/i,
1611
- afternoon: /afternoon/i,
1612
- evening: /evening/i,
1613
- night: /night/i
1614
- }
1615
- },
1616
- defaultParseWidth: "any"
1617
- })
1618
- },
1619
- options: { weekStartsOn: 0, firstWeekContainsDate: 1 }
1620
- };
1621
- function v(t) {
1622
- if (t === null || t === !0 || t === !1) return NaN;
1623
- var e = Number(t);
1624
- return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
1625
- }
1626
- function w(t, e) {
1627
- if (e.length < t)
1628
- throw new TypeError(
1629
- t + " argument" + (t > 1 ? "s" : "") + " required, but only " + e.length + " present"
1630
- );
1631
- }
1632
- function g(t) {
1633
- w(1, arguments);
1634
- var e = Object.prototype.toString.call(t);
1635
- return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || e === "[object Number]" ? new Date(t) : (typeof t != "string" && e !== "[object String]" || typeof console > "u" || (console.warn(
1636
- "Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"
1637
- ), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
1638
- }
1639
- function Qn(t, e) {
1640
- w(2, arguments);
1641
- var n = g(t).getTime(), r = v(e);
1642
- return new Date(n + r);
1643
- }
1644
- function me(t, e) {
1645
- w(2, arguments);
1646
- var n = v(e);
1647
- return Qn(t, -n);
1648
- }
1649
- function Rn(t, e) {
1650
- if (t == null)
1651
- throw new TypeError("assign requires that input parameter not be null or undefined");
1652
- for (var n in e = e || {}) e.hasOwnProperty(n) && (t[n] = e[n]);
1653
- return t;
1654
- }
1655
- function jt(t, e) {
1656
- switch (t) {
1657
- case "P":
1658
- return e.date({ width: "short" });
1659
- case "PP":
1660
- return e.date({ width: "medium" });
1661
- case "PPP":
1662
- return e.date({ width: "long" });
1663
- case "PPPP":
1664
- default:
1665
- return e.date({ width: "full" });
1666
- }
1667
- }
1668
- function _t(t, e) {
1669
- switch (t) {
1670
- case "p":
1671
- return e.time({ width: "short" });
1672
- case "pp":
1673
- return e.time({ width: "medium" });
1674
- case "ppp":
1675
- return e.time({ width: "long" });
1676
- case "pppp":
1677
- default:
1678
- return e.time({ width: "full" });
1679
- }
1680
- }
1681
- var ge = {
1682
- p: _t,
1683
- P: function(t, e) {
1684
- var n, r = t.match(/(P+)(p+)?/), a = r[1], i = r[2];
1685
- if (!i) return jt(t, e);
1686
- switch (a) {
1687
- case "P":
1688
- n = e.dateTime({ width: "short" });
1689
- break;
1690
- case "PP":
1691
- n = e.dateTime({ width: "medium" });
1692
- break;
1693
- case "PPP":
1694
- n = e.dateTime({ width: "long" });
1695
- break;
1696
- case "PPPP":
1697
- default:
1698
- n = e.dateTime({ width: "full" });
1699
- }
1700
- return n.replace("{{date}}", jt(a, e)).replace("{{time}}", _t(i, e));
1701
- }
1702
- };
1703
- function zt(t) {
1704
- return t.getTime() % 6e4;
1705
- }
1706
- function we(t) {
1707
- var e = new Date(t.getTime()), n = Math.ceil(e.getTimezoneOffset());
1708
- return e.setSeconds(0, 0), 6e4 * n + (n > 0 ? (6e4 + zt(e)) % 6e4 : zt(e));
1709
- }
1710
- var Xn = ["D", "DD"], Gn = ["YY", "YYYY"];
1711
- function ye(t) {
1712
- return Xn.indexOf(t) !== -1;
1713
- }
1714
- function be(t) {
1715
- return Gn.indexOf(t) !== -1;
1716
- }
1717
- function Pt(t) {
1718
- if (t === "YYYY")
1719
- throw new RangeError(
1720
- "Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr"
1721
- );
1722
- if (t === "YY")
1723
- throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");
1724
- if (t === "D")
1725
- throw new RangeError(
1726
- "Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr"
1727
- );
1728
- if (t === "DD")
1729
- throw new RangeError(
1730
- "Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr"
1731
- );
1732
- }
1733
- function tt(t, e) {
1734
- w(1, arguments);
1735
- var n = e || {}, r = n.locale, a = r && r.options && r.options.weekStartsOn, i = a == null ? 0 : v(a), o = n.weekStartsOn == null ? i : v(n.weekStartsOn);
1736
- if (!(o >= 0 && o <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1737
- var u = g(t), s = u.getUTCDay(), d = (s < o ? 7 : 0) + s - o;
1738
- return u.setUTCDate(u.getUTCDate() - d), u.setUTCHours(0, 0, 0, 0), u;
1739
- }
1740
- function Bt(t, e) {
1741
- w(1, arguments);
1742
- var n = g(t, e), r = n.getUTCFullYear(), a = e || {}, i = a.locale, o = i && i.options && i.options.firstWeekContainsDate, u = o == null ? 1 : v(o), s = a.firstWeekContainsDate == null ? u : v(a.firstWeekContainsDate);
1743
- if (!(s >= 1 && s <= 7))
1744
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1745
- var d = /* @__PURE__ */ new Date(0);
1746
- d.setUTCFullYear(r + 1, 0, s), d.setUTCHours(0, 0, 0, 0);
1747
- var l = tt(d, e), c = /* @__PURE__ */ new Date(0);
1748
- c.setUTCFullYear(r, 0, s), c.setUTCHours(0, 0, 0, 0);
1749
- var m = tt(c, e);
1750
- return n.getTime() >= l.getTime() ? r + 1 : n.getTime() >= m.getTime() ? r : r - 1;
1751
- }
1752
- function Et(t, e, n) {
1753
- w(2, arguments);
1754
- var r = n || {}, a = r.locale, i = a && a.options && a.options.weekStartsOn, o = i == null ? 0 : v(i), u = r.weekStartsOn == null ? o : v(r.weekStartsOn);
1755
- if (!(u >= 0 && u <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1756
- var s = g(t), d = v(e), l = s.getUTCDay(), c = d % 7, m = (c + 7) % 7, h = (m < u ? 7 : 0) + d - l;
1757
- return s.setUTCDate(s.getUTCDate() + h), s;
1758
- }
1759
- function st(t) {
1760
- w(1, arguments);
1761
- var e = 1, n = g(t), r = n.getUTCDay(), a = (r < e ? 7 : 0) + r - e;
1762
- return n.setUTCDate(n.getUTCDate() - a), n.setUTCHours(0, 0, 0, 0), n;
1763
- }
1764
- function ve(t) {
1765
- w(1, arguments);
1766
- var e = g(t), n = e.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
1767
- r.setUTCFullYear(n + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
1768
- var a = st(r), i = /* @__PURE__ */ new Date(0);
1769
- i.setUTCFullYear(n, 0, 4), i.setUTCHours(0, 0, 0, 0);
1770
- var o = st(i);
1771
- return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= o.getTime() ? n : n - 1;
1772
- }
1773
- function An(t) {
1774
- w(1, arguments);
1775
- var e = ve(t), n = /* @__PURE__ */ new Date(0);
1776
- n.setUTCFullYear(e, 0, 4), n.setUTCHours(0, 0, 0, 0);
1777
- var r = st(n);
1778
- return r;
1779
- }
1780
- function pe(t) {
1781
- w(1, arguments);
1782
- var e = g(t), n = st(e).getTime() - An(e).getTime();
1783
- return Math.round(n / 6048e5) + 1;
1784
- }
1785
- function In(t, e) {
1786
- w(1, arguments);
1787
- var n = e || {}, r = n.locale, a = r && r.options && r.options.firstWeekContainsDate, i = a == null ? 1 : v(a), o = n.firstWeekContainsDate == null ? i : v(n.firstWeekContainsDate), u = Bt(t, e), s = /* @__PURE__ */ new Date(0);
1788
- s.setUTCFullYear(u, 0, o), s.setUTCHours(0, 0, 0, 0);
1789
- var d = tt(s, e);
1790
- return d;
1791
- }
1792
- function De(t, e) {
1793
- w(1, arguments);
1794
- var n = g(t), r = tt(n, e).getTime() - In(n, e).getTime();
1795
- return Math.round(r / 6048e5) + 1;
1796
- }
1797
- var Jt = /^(1[0-2]|0?\d)/, jn = /^(3[0-1]|[0-2]?\d)/, _n = /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, Vt = /^(5[0-3]|[0-4]?\d)/, zn = /^(2[0-3]|[0-1]?\d)/, Jn = /^(2[0-4]|[0-1]?\d)/, Vn = /^(1[0-1]|0?\d)/, Kn = /^(1[0-2]|0?\d)/, $n = /^[0-5]?\d/, Zn = /^[0-5]?\d/, tr = /^\d/, er = /^\d{1,2}/, nr = /^\d{1,3}/, rr = /^\d{1,4}/, ar = /^-?\d+/, ir = /^-?\d/, or = /^-?\d{1,2}/, ur = /^-?\d{1,3}/, sr = /^-?\d{1,4}/, Kt = /^([+-])(\d{2})(\d{2})?|Z/, $t = /^([+-])(\d{2})(\d{2})|Z/, Zt = /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, te = /^([+-])(\d{2}):(\d{2})|Z/, ee = /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;
1798
- function p(t, e, n) {
1799
- var r = e.match(t);
1800
- if (!r) return null;
1801
- var a = parseInt(r[0], 10);
1802
- return { value: n ? n(a) : a, rest: e.slice(r[0].length) };
1803
- }
1804
- function X(t, e) {
1805
- var n = e.match(t);
1806
- return n ? n[0] === "Z" ? { value: 0, rest: e.slice(1) } : {
1807
- value: (n[1] === "+" ? 1 : -1) * (36e5 * (n[2] ? parseInt(n[2], 10) : 0) + 6e4 * (n[3] ? parseInt(n[3], 10) : 0) + 1e3 * (n[5] ? parseInt(n[5], 10) : 0)),
1808
- rest: e.slice(n[0].length)
1809
- } : null;
1810
- }
1811
- function ne(t, e) {
1812
- return p(ar, t, e);
1813
- }
1814
- function k(t, e, n) {
1815
- switch (t) {
1816
- case 1:
1817
- return p(tr, e, n);
1818
- case 2:
1819
- return p(er, e, n);
1820
- case 3:
1821
- return p(nr, e, n);
1822
- case 4:
1823
- return p(rr, e, n);
1824
- default:
1825
- return p(new RegExp("^\\d{1," + t + "}"), e, n);
1826
- }
1827
- }
1828
- function re(t, e, n) {
1829
- switch (t) {
1830
- case 1:
1831
- return p(ir, e, n);
1832
- case 2:
1833
- return p(or, e, n);
1834
- case 3:
1835
- return p(ur, e, n);
1836
- case 4:
1837
- return p(sr, e, n);
1838
- default:
1839
- return p(new RegExp("^-?\\d{1," + t + "}"), e, n);
1840
- }
1841
- }
1842
- function qt(t) {
1843
- switch (t) {
1844
- case "morning":
1845
- return 4;
1846
- case "evening":
1847
- return 17;
1848
- case "pm":
1849
- case "noon":
1850
- case "afternoon":
1851
- return 12;
1852
- case "am":
1853
- case "midnight":
1854
- case "night":
1855
- default:
1856
- return 0;
1857
- }
1858
- }
1859
- function ae(t, e) {
1860
- var n, r = e > 0, a = r ? e : 1 - e;
1861
- if (a <= 50) n = t || 100;
1862
- else {
1863
- var i = a + 50;
1864
- n = t + 100 * Math.floor(i / 100) - (t >= i % 100 ? 100 : 0);
1865
- }
1866
- return r ? n : 1 - n;
1867
- }
1868
- var cr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], dr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
1869
- function ie(t) {
1870
- return t % 400 == 0 || t % 4 == 0 && t % 100 != 0;
1871
- }
1872
- var fr = {
1873
- G: {
1874
- priority: 140,
1875
- parse: function(t, e, n, r) {
1876
- switch (e) {
1877
- case "G":
1878
- case "GG":
1879
- case "GGG":
1880
- return n.era(t, { width: "abbreviated" }) || n.era(t, { width: "narrow" });
1881
- case "GGGGG":
1882
- return n.era(t, { width: "narrow" });
1883
- case "GGGG":
1884
- default:
1885
- return n.era(t, { width: "wide" }) || n.era(t, { width: "abbreviated" }) || n.era(t, { width: "narrow" });
1886
- }
1887
- },
1888
- set: function(t, e, n, r) {
1889
- return e.era = n, t.setUTCFullYear(n, 0, 1), t.setUTCHours(0, 0, 0, 0), t;
1890
- },
1891
- incompatibleTokens: ["R", "u", "t", "T"]
1892
- },
1893
- y: {
1894
- priority: 130,
1895
- parse: function(t, e, n, r) {
1896
- var a = function(i) {
1897
- return { year: i, isTwoDigitYear: e === "yy" };
1898
- };
1899
- switch (e) {
1900
- case "y":
1901
- return k(4, t, a);
1902
- case "yo":
1903
- return n.ordinalNumber(t, { unit: "year", valueCallback: a });
1904
- default:
1905
- return k(e.length, t, a);
1906
- }
1907
- },
1908
- validate: function(t, e, n) {
1909
- return e.isTwoDigitYear || e.year > 0;
1910
- },
1911
- set: function(t, e, n, r) {
1912
- var a = t.getUTCFullYear();
1913
- if (n.isTwoDigitYear) {
1914
- var i = ae(n.year, a);
1915
- return t.setUTCFullYear(i, 0, 1), t.setUTCHours(0, 0, 0, 0), t;
1916
- }
1917
- var o = "era" in e && e.era !== 1 ? 1 - n.year : n.year;
1918
- return t.setUTCFullYear(o, 0, 1), t.setUTCHours(0, 0, 0, 0), t;
1919
- },
1920
- incompatibleTokens: ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]
1921
- },
1922
- Y: {
1923
- priority: 130,
1924
- parse: function(t, e, n, r) {
1925
- var a = function(i) {
1926
- return { year: i, isTwoDigitYear: e === "YY" };
1927
- };
1928
- switch (e) {
1929
- case "Y":
1930
- return k(4, t, a);
1931
- case "Yo":
1932
- return n.ordinalNumber(t, { unit: "year", valueCallback: a });
1933
- default:
1934
- return k(e.length, t, a);
1935
- }
1936
- },
1937
- validate: function(t, e, n) {
1938
- return e.isTwoDigitYear || e.year > 0;
1939
- },
1940
- set: function(t, e, n, r) {
1941
- var a = Bt(t, r);
1942
- if (n.isTwoDigitYear) {
1943
- var i = ae(n.year, a);
1944
- return t.setUTCFullYear(i, 0, r.firstWeekContainsDate), t.setUTCHours(0, 0, 0, 0), tt(t, r);
1945
- }
1946
- var o = "era" in e && e.era !== 1 ? 1 - n.year : n.year;
1947
- return t.setUTCFullYear(o, 0, r.firstWeekContainsDate), t.setUTCHours(0, 0, 0, 0), tt(t, r);
1948
- },
1949
- incompatibleTokens: ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]
1950
- },
1951
- R: {
1952
- priority: 130,
1953
- parse: function(t, e, n, r) {
1954
- return re(e === "R" ? 4 : e.length, t);
1955
- },
1956
- set: function(t, e, n, r) {
1957
- var a = /* @__PURE__ */ new Date(0);
1958
- return a.setUTCFullYear(n, 0, 4), a.setUTCHours(0, 0, 0, 0), st(a);
1959
- },
1960
- incompatibleTokens: [
1961
- "G",
1962
- "y",
1963
- "Y",
1964
- "u",
1965
- "Q",
1966
- "q",
1967
- "M",
1968
- "L",
1969
- "w",
1970
- "d",
1971
- "D",
1972
- "e",
1973
- "c",
1974
- "t",
1975
- "T"
1976
- ]
1977
- },
1978
- u: {
1979
- priority: 130,
1980
- parse: function(t, e, n, r) {
1981
- return re(e === "u" ? 4 : e.length, t);
1982
- },
1983
- set: function(t, e, n, r) {
1984
- return t.setUTCFullYear(n, 0, 1), t.setUTCHours(0, 0, 0, 0), t;
1985
- },
1986
- incompatibleTokens: ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]
1987
- },
1988
- Q: {
1989
- priority: 120,
1990
- parse: function(t, e, n, r) {
1991
- switch (e) {
1992
- case "Q":
1993
- case "QQ":
1994
- return k(e.length, t);
1995
- case "Qo":
1996
- return n.ordinalNumber(t, { unit: "quarter" });
1997
- case "QQQ":
1998
- return n.quarter(t, { width: "abbreviated", context: "formatting" }) || n.quarter(t, { width: "narrow", context: "formatting" });
1999
- case "QQQQQ":
2000
- return n.quarter(t, { width: "narrow", context: "formatting" });
2001
- case "QQQQ":
2002
- default:
2003
- return n.quarter(t, { width: "wide", context: "formatting" }) || n.quarter(t, { width: "abbreviated", context: "formatting" }) || n.quarter(t, { width: "narrow", context: "formatting" });
2004
- }
2005
- },
2006
- validate: function(t, e, n) {
2007
- return e >= 1 && e <= 4;
2008
- },
2009
- set: function(t, e, n, r) {
2010
- return t.setUTCMonth(3 * (n - 1), 1), t.setUTCHours(0, 0, 0, 0), t;
2011
- },
2012
- incompatibleTokens: ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]
2013
- },
2014
- q: {
2015
- priority: 120,
2016
- parse: function(t, e, n, r) {
2017
- switch (e) {
2018
- case "q":
2019
- case "qq":
2020
- return k(e.length, t);
2021
- case "qo":
2022
- return n.ordinalNumber(t, { unit: "quarter" });
2023
- case "qqq":
2024
- return n.quarter(t, { width: "abbreviated", context: "standalone" }) || n.quarter(t, { width: "narrow", context: "standalone" });
2025
- case "qqqqq":
2026
- return n.quarter(t, { width: "narrow", context: "standalone" });
2027
- case "qqqq":
2028
- default:
2029
- return n.quarter(t, { width: "wide", context: "standalone" }) || n.quarter(t, { width: "abbreviated", context: "standalone" }) || n.quarter(t, { width: "narrow", context: "standalone" });
2030
- }
2031
- },
2032
- validate: function(t, e, n) {
2033
- return e >= 1 && e <= 4;
2034
- },
2035
- set: function(t, e, n, r) {
2036
- return t.setUTCMonth(3 * (n - 1), 1), t.setUTCHours(0, 0, 0, 0), t;
2037
- },
2038
- incompatibleTokens: ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]
2039
- },
2040
- M: {
2041
- priority: 110,
2042
- parse: function(t, e, n, r) {
2043
- var a = function(i) {
2044
- return i - 1;
2045
- };
2046
- switch (e) {
2047
- case "M":
2048
- return p(Jt, t, a);
2049
- case "MM":
2050
- return k(2, t, a);
2051
- case "Mo":
2052
- return n.ordinalNumber(t, { unit: "month", valueCallback: a });
2053
- case "MMM":
2054
- return n.month(t, { width: "abbreviated", context: "formatting" }) || n.month(t, { width: "narrow", context: "formatting" });
2055
- case "MMMMM":
2056
- return n.month(t, { width: "narrow", context: "formatting" });
2057
- case "MMMM":
2058
- default:
2059
- return n.month(t, { width: "wide", context: "formatting" }) || n.month(t, { width: "abbreviated", context: "formatting" }) || n.month(t, { width: "narrow", context: "formatting" });
2060
- }
2061
- },
2062
- validate: function(t, e, n) {
2063
- return e >= 0 && e <= 11;
2064
- },
2065
- set: function(t, e, n, r) {
2066
- return t.setUTCMonth(n, 1), t.setUTCHours(0, 0, 0, 0), t;
2067
- },
2068
- incompatibleTokens: ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]
2069
- },
2070
- L: {
2071
- priority: 110,
2072
- parse: function(t, e, n, r) {
2073
- var a = function(i) {
2074
- return i - 1;
2075
- };
2076
- switch (e) {
2077
- case "L":
2078
- return p(Jt, t, a);
2079
- case "LL":
2080
- return k(2, t, a);
2081
- case "Lo":
2082
- return n.ordinalNumber(t, { unit: "month", valueCallback: a });
2083
- case "LLL":
2084
- return n.month(t, { width: "abbreviated", context: "standalone" }) || n.month(t, { width: "narrow", context: "standalone" });
2085
- case "LLLLL":
2086
- return n.month(t, { width: "narrow", context: "standalone" });
2087
- case "LLLL":
2088
- default:
2089
- return n.month(t, { width: "wide", context: "standalone" }) || n.month(t, { width: "abbreviated", context: "standalone" }) || n.month(t, { width: "narrow", context: "standalone" });
2090
- }
2091
- },
2092
- validate: function(t, e, n) {
2093
- return e >= 0 && e <= 11;
2094
- },
2095
- set: function(t, e, n, r) {
2096
- return t.setUTCMonth(n, 1), t.setUTCHours(0, 0, 0, 0), t;
2097
- },
2098
- incompatibleTokens: ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]
2099
- },
2100
- w: {
2101
- priority: 100,
2102
- parse: function(t, e, n, r) {
2103
- switch (e) {
2104
- case "w":
2105
- return p(Vt, t);
2106
- case "wo":
2107
- return n.ordinalNumber(t, { unit: "week" });
2108
- default:
2109
- return k(e.length, t);
2110
- }
2111
- },
2112
- validate: function(t, e, n) {
2113
- return e >= 1 && e <= 53;
2114
- },
2115
- set: function(t, e, n, r) {
2116
- return tt(
2117
- function(a, i, o) {
2118
- w(2, arguments);
2119
- var u = g(a), s = v(i), d = De(u, o) - s;
2120
- return u.setUTCDate(u.getUTCDate() - 7 * d), u;
2121
- }(t, n, r),
2122
- r
2123
- );
2124
- },
2125
- incompatibleTokens: ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]
2126
- },
2127
- I: {
2128
- priority: 100,
2129
- parse: function(t, e, n, r) {
2130
- switch (e) {
2131
- case "I":
2132
- return p(Vt, t);
2133
- case "Io":
2134
- return n.ordinalNumber(t, { unit: "week" });
2135
- default:
2136
- return k(e.length, t);
2137
- }
2138
- },
2139
- validate: function(t, e, n) {
2140
- return e >= 1 && e <= 53;
2141
- },
2142
- set: function(t, e, n, r) {
2143
- return st(
2144
- function(a, i) {
2145
- w(2, arguments);
2146
- var o = g(a), u = v(i), s = pe(o) - u;
2147
- return o.setUTCDate(o.getUTCDate() - 7 * s), o;
2148
- }(t, n, r),
2149
- r
2150
- );
2151
- },
2152
- incompatibleTokens: ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]
2153
- },
2154
- d: {
2155
- priority: 90,
2156
- parse: function(t, e, n, r) {
2157
- switch (e) {
2158
- case "d":
2159
- return p(jn, t);
2160
- case "do":
2161
- return n.ordinalNumber(t, { unit: "date" });
2162
- default:
2163
- return k(e.length, t);
2164
- }
2165
- },
2166
- validate: function(t, e, n) {
2167
- var r = ie(t.getUTCFullYear()), a = t.getUTCMonth();
2168
- return r ? e >= 1 && e <= dr[a] : e >= 1 && e <= cr[a];
2169
- },
2170
- set: function(t, e, n, r) {
2171
- return t.setUTCDate(n), t.setUTCHours(0, 0, 0, 0), t;
2172
- },
2173
- incompatibleTokens: ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]
2174
- },
2175
- D: {
2176
- priority: 90,
2177
- parse: function(t, e, n, r) {
2178
- switch (e) {
2179
- case "D":
2180
- case "DD":
2181
- return p(_n, t);
2182
- case "Do":
2183
- return n.ordinalNumber(t, { unit: "date" });
2184
- default:
2185
- return k(e.length, t);
2186
- }
2187
- },
2188
- validate: function(t, e, n) {
2189
- return ie(t.getUTCFullYear()) ? e >= 1 && e <= 366 : e >= 1 && e <= 365;
2190
- },
2191
- set: function(t, e, n, r) {
2192
- return t.setUTCMonth(0, n), t.setUTCHours(0, 0, 0, 0), t;
2193
- },
2194
- incompatibleTokens: [
2195
- "Y",
2196
- "R",
2197
- "q",
2198
- "Q",
2199
- "M",
2200
- "L",
2201
- "w",
2202
- "I",
2203
- "d",
2204
- "E",
2205
- "i",
2206
- "e",
2207
- "c",
2208
- "t",
2209
- "T"
2210
- ]
2211
- },
2212
- E: {
2213
- priority: 90,
2214
- parse: function(t, e, n, r) {
2215
- switch (e) {
2216
- case "E":
2217
- case "EE":
2218
- case "EEE":
2219
- return n.day(t, { width: "abbreviated", context: "formatting" }) || n.day(t, { width: "short", context: "formatting" }) || n.day(t, { width: "narrow", context: "formatting" });
2220
- case "EEEEE":
2221
- return n.day(t, { width: "narrow", context: "formatting" });
2222
- case "EEEEEE":
2223
- return n.day(t, { width: "short", context: "formatting" }) || n.day(t, { width: "narrow", context: "formatting" });
2224
- case "EEEE":
2225
- default:
2226
- return n.day(t, { width: "wide", context: "formatting" }) || n.day(t, { width: "abbreviated", context: "formatting" }) || n.day(t, { width: "short", context: "formatting" }) || n.day(t, { width: "narrow", context: "formatting" });
2227
- }
2228
- },
2229
- validate: function(t, e, n) {
2230
- return e >= 0 && e <= 6;
2231
- },
2232
- set: function(t, e, n, r) {
2233
- return (t = Et(t, n, r)).setUTCHours(0, 0, 0, 0), t;
2234
- },
2235
- incompatibleTokens: ["D", "i", "e", "c", "t", "T"]
2236
- },
2237
- e: {
2238
- priority: 90,
2239
- parse: function(t, e, n, r) {
2240
- var a = function(i) {
2241
- var o = 7 * Math.floor((i - 1) / 7);
2242
- return (i + r.weekStartsOn + 6) % 7 + o;
2243
- };
2244
- switch (e) {
2245
- case "e":
2246
- case "ee":
2247
- return k(e.length, t, a);
2248
- case "eo":
2249
- return n.ordinalNumber(t, { unit: "day", valueCallback: a });
2250
- case "eee":
2251
- return n.day(t, { width: "abbreviated", context: "formatting" }) || n.day(t, { width: "short", context: "formatting" }) || n.day(t, { width: "narrow", context: "formatting" });
2252
- case "eeeee":
2253
- return n.day(t, { width: "narrow", context: "formatting" });
2254
- case "eeeeee":
2255
- return n.day(t, { width: "short", context: "formatting" }) || n.day(t, { width: "narrow", context: "formatting" });
2256
- case "eeee":
2257
- default:
2258
- return n.day(t, { width: "wide", context: "formatting" }) || n.day(t, { width: "abbreviated", context: "formatting" }) || n.day(t, { width: "short", context: "formatting" }) || n.day(t, { width: "narrow", context: "formatting" });
2259
- }
2260
- },
2261
- validate: function(t, e, n) {
2262
- return e >= 0 && e <= 6;
2263
- },
2264
- set: function(t, e, n, r) {
2265
- return (t = Et(t, n, r)).setUTCHours(0, 0, 0, 0), t;
2266
- },
2267
- incompatibleTokens: [
2268
- "y",
2269
- "R",
2270
- "u",
2271
- "q",
2272
- "Q",
2273
- "M",
2274
- "L",
2275
- "I",
2276
- "d",
2277
- "D",
2278
- "E",
2279
- "i",
2280
- "c",
2281
- "t",
2282
- "T"
2283
- ]
2284
- },
2285
- c: {
2286
- priority: 90,
2287
- parse: function(t, e, n, r) {
2288
- var a = function(i) {
2289
- var o = 7 * Math.floor((i - 1) / 7);
2290
- return (i + r.weekStartsOn + 6) % 7 + o;
2291
- };
2292
- switch (e) {
2293
- case "c":
2294
- case "cc":
2295
- return k(e.length, t, a);
2296
- case "co":
2297
- return n.ordinalNumber(t, { unit: "day", valueCallback: a });
2298
- case "ccc":
2299
- return n.day(t, { width: "abbreviated", context: "standalone" }) || n.day(t, { width: "short", context: "standalone" }) || n.day(t, { width: "narrow", context: "standalone" });
2300
- case "ccccc":
2301
- return n.day(t, { width: "narrow", context: "standalone" });
2302
- case "cccccc":
2303
- return n.day(t, { width: "short", context: "standalone" }) || n.day(t, { width: "narrow", context: "standalone" });
2304
- case "cccc":
2305
- default:
2306
- return n.day(t, { width: "wide", context: "standalone" }) || n.day(t, { width: "abbreviated", context: "standalone" }) || n.day(t, { width: "short", context: "standalone" }) || n.day(t, { width: "narrow", context: "standalone" });
2307
- }
2308
- },
2309
- validate: function(t, e, n) {
2310
- return e >= 0 && e <= 6;
2311
- },
2312
- set: function(t, e, n, r) {
2313
- return (t = Et(t, n, r)).setUTCHours(0, 0, 0, 0), t;
2314
- },
2315
- incompatibleTokens: [
2316
- "y",
2317
- "R",
2318
- "u",
2319
- "q",
2320
- "Q",
2321
- "M",
2322
- "L",
2323
- "I",
2324
- "d",
2325
- "D",
2326
- "E",
2327
- "i",
2328
- "e",
2329
- "t",
2330
- "T"
2331
- ]
2332
- },
2333
- i: {
2334
- priority: 90,
2335
- parse: function(t, e, n, r) {
2336
- var a = function(i) {
2337
- return i === 0 ? 7 : i;
2338
- };
2339
- switch (e) {
2340
- case "i":
2341
- case "ii":
2342
- return k(e.length, t);
2343
- case "io":
2344
- return n.ordinalNumber(t, { unit: "day" });
2345
- case "iii":
2346
- return n.day(t, { width: "abbreviated", context: "formatting", valueCallback: a }) || n.day(t, { width: "short", context: "formatting", valueCallback: a }) || n.day(t, { width: "narrow", context: "formatting", valueCallback: a });
2347
- case "iiiii":
2348
- return n.day(t, { width: "narrow", context: "formatting", valueCallback: a });
2349
- case "iiiiii":
2350
- return n.day(t, { width: "short", context: "formatting", valueCallback: a }) || n.day(t, { width: "narrow", context: "formatting", valueCallback: a });
2351
- case "iiii":
2352
- default:
2353
- return n.day(t, { width: "wide", context: "formatting", valueCallback: a }) || n.day(t, { width: "abbreviated", context: "formatting", valueCallback: a }) || n.day(t, { width: "short", context: "formatting", valueCallback: a }) || n.day(t, { width: "narrow", context: "formatting", valueCallback: a });
2354
- }
2355
- },
2356
- validate: function(t, e, n) {
2357
- return e >= 1 && e <= 7;
2358
- },
2359
- set: function(t, e, n, r) {
2360
- return (t = function(a, i) {
2361
- w(2, arguments);
2362
- var o = v(i);
2363
- o % 7 == 0 && (o -= 7);
2364
- var u = 1, s = g(a), d = s.getUTCDay(), l = o % 7, c = (l + 7) % 7, m = (c < u ? 7 : 0) + o - d;
2365
- return s.setUTCDate(s.getUTCDate() + m), s;
2366
- }(t, n, r)).setUTCHours(0, 0, 0, 0), t;
2367
- },
2368
- incompatibleTokens: [
2369
- "y",
2370
- "Y",
2371
- "u",
2372
- "q",
2373
- "Q",
2374
- "M",
2375
- "L",
2376
- "w",
2377
- "d",
2378
- "D",
2379
- "E",
2380
- "e",
2381
- "c",
2382
- "t",
2383
- "T"
2384
- ]
2385
- },
2386
- a: {
2387
- priority: 80,
2388
- parse: function(t, e, n, r) {
2389
- switch (e) {
2390
- case "a":
2391
- case "aa":
2392
- case "aaa":
2393
- return n.dayPeriod(t, { width: "abbreviated", context: "formatting" }) || n.dayPeriod(t, { width: "narrow", context: "formatting" });
2394
- case "aaaaa":
2395
- return n.dayPeriod(t, { width: "narrow", context: "formatting" });
2396
- case "aaaa":
2397
- default:
2398
- return n.dayPeriod(t, { width: "wide", context: "formatting" }) || n.dayPeriod(t, { width: "abbreviated", context: "formatting" }) || n.dayPeriod(t, { width: "narrow", context: "formatting" });
2399
- }
2400
- },
2401
- set: function(t, e, n, r) {
2402
- return t.setUTCHours(qt(n), 0, 0, 0), t;
2403
- },
2404
- incompatibleTokens: ["b", "B", "H", "K", "k", "t", "T"]
2405
- },
2406
- b: {
2407
- priority: 80,
2408
- parse: function(t, e, n, r) {
2409
- switch (e) {
2410
- case "b":
2411
- case "bb":
2412
- case "bbb":
2413
- return n.dayPeriod(t, { width: "abbreviated", context: "formatting" }) || n.dayPeriod(t, { width: "narrow", context: "formatting" });
2414
- case "bbbbb":
2415
- return n.dayPeriod(t, { width: "narrow", context: "formatting" });
2416
- case "bbbb":
2417
- default:
2418
- return n.dayPeriod(t, { width: "wide", context: "formatting" }) || n.dayPeriod(t, { width: "abbreviated", context: "formatting" }) || n.dayPeriod(t, { width: "narrow", context: "formatting" });
2419
- }
2420
- },
2421
- set: function(t, e, n, r) {
2422
- return t.setUTCHours(qt(n), 0, 0, 0), t;
2423
- },
2424
- incompatibleTokens: ["a", "B", "H", "K", "k", "t", "T"]
2425
- },
2426
- B: {
2427
- priority: 80,
2428
- parse: function(t, e, n, r) {
2429
- switch (e) {
2430
- case "B":
2431
- case "BB":
2432
- case "BBB":
2433
- return n.dayPeriod(t, { width: "abbreviated", context: "formatting" }) || n.dayPeriod(t, { width: "narrow", context: "formatting" });
2434
- case "BBBBB":
2435
- return n.dayPeriod(t, { width: "narrow", context: "formatting" });
2436
- case "BBBB":
2437
- default:
2438
- return n.dayPeriod(t, { width: "wide", context: "formatting" }) || n.dayPeriod(t, { width: "abbreviated", context: "formatting" }) || n.dayPeriod(t, { width: "narrow", context: "formatting" });
2439
- }
2440
- },
2441
- set: function(t, e, n, r) {
2442
- return t.setUTCHours(qt(n), 0, 0, 0), t;
2443
- },
2444
- incompatibleTokens: ["a", "b", "t", "T"]
2445
- },
2446
- h: {
2447
- priority: 70,
2448
- parse: function(t, e, n, r) {
2449
- switch (e) {
2450
- case "h":
2451
- return p(Kn, t);
2452
- case "ho":
2453
- return n.ordinalNumber(t, { unit: "hour" });
2454
- default:
2455
- return k(e.length, t);
2456
- }
2457
- },
2458
- validate: function(t, e, n) {
2459
- return e >= 1 && e <= 12;
2460
- },
2461
- set: function(t, e, n, r) {
2462
- var a = t.getUTCHours() >= 12;
2463
- return a && n < 12 ? t.setUTCHours(n + 12, 0, 0, 0) : a || n !== 12 ? t.setUTCHours(n, 0, 0, 0) : t.setUTCHours(0, 0, 0, 0), t;
2464
- },
2465
- incompatibleTokens: ["H", "K", "k", "t", "T"]
2466
- },
2467
- H: {
2468
- priority: 70,
2469
- parse: function(t, e, n, r) {
2470
- switch (e) {
2471
- case "H":
2472
- return p(zn, t);
2473
- case "Ho":
2474
- return n.ordinalNumber(t, { unit: "hour" });
2475
- default:
2476
- return k(e.length, t);
2477
- }
2478
- },
2479
- validate: function(t, e, n) {
2480
- return e >= 0 && e <= 23;
2481
- },
2482
- set: function(t, e, n, r) {
2483
- return t.setUTCHours(n, 0, 0, 0), t;
2484
- },
2485
- incompatibleTokens: ["a", "b", "h", "K", "k", "t", "T"]
2486
- },
2487
- K: {
2488
- priority: 70,
2489
- parse: function(t, e, n, r) {
2490
- switch (e) {
2491
- case "K":
2492
- return p(Vn, t);
2493
- case "Ko":
2494
- return n.ordinalNumber(t, { unit: "hour" });
2495
- default:
2496
- return k(e.length, t);
2497
- }
2498
- },
2499
- validate: function(t, e, n) {
2500
- return e >= 0 && e <= 11;
2501
- },
2502
- set: function(t, e, n, r) {
2503
- return t.getUTCHours() >= 12 && n < 12 ? t.setUTCHours(n + 12, 0, 0, 0) : t.setUTCHours(n, 0, 0, 0), t;
2504
- },
2505
- incompatibleTokens: ["a", "b", "h", "H", "k", "t", "T"]
2506
- },
2507
- k: {
2508
- priority: 70,
2509
- parse: function(t, e, n, r) {
2510
- switch (e) {
2511
- case "k":
2512
- return p(Jn, t);
2513
- case "ko":
2514
- return n.ordinalNumber(t, { unit: "hour" });
2515
- default:
2516
- return k(e.length, t);
2517
- }
2518
- },
2519
- validate: function(t, e, n) {
2520
- return e >= 1 && e <= 24;
2521
- },
2522
- set: function(t, e, n, r) {
2523
- var a = n <= 24 ? n % 24 : n;
2524
- return t.setUTCHours(a, 0, 0, 0), t;
2525
- },
2526
- incompatibleTokens: ["a", "b", "h", "H", "K", "t", "T"]
2527
- },
2528
- m: {
2529
- priority: 60,
2530
- parse: function(t, e, n, r) {
2531
- switch (e) {
2532
- case "m":
2533
- return p($n, t);
2534
- case "mo":
2535
- return n.ordinalNumber(t, { unit: "minute" });
2536
- default:
2537
- return k(e.length, t);
2538
- }
2539
- },
2540
- validate: function(t, e, n) {
2541
- return e >= 0 && e <= 59;
2542
- },
2543
- set: function(t, e, n, r) {
2544
- return t.setUTCMinutes(n, 0, 0), t;
2545
- },
2546
- incompatibleTokens: ["t", "T"]
2547
- },
2548
- s: {
2549
- priority: 50,
2550
- parse: function(t, e, n, r) {
2551
- switch (e) {
2552
- case "s":
2553
- return p(Zn, t);
2554
- case "so":
2555
- return n.ordinalNumber(t, { unit: "second" });
2556
- default:
2557
- return k(e.length, t);
2558
- }
2559
- },
2560
- validate: function(t, e, n) {
2561
- return e >= 0 && e <= 59;
2562
- },
2563
- set: function(t, e, n, r) {
2564
- return t.setUTCSeconds(n, 0), t;
2565
- },
2566
- incompatibleTokens: ["t", "T"]
2567
- },
2568
- S: {
2569
- priority: 30,
2570
- parse: function(t, e, n, r) {
2571
- return k(e.length, t, function(a) {
2572
- return Math.floor(a * Math.pow(10, 3 - e.length));
2573
- });
2574
- },
2575
- set: function(t, e, n, r) {
2576
- return t.setUTCMilliseconds(n), t;
2577
- },
2578
- incompatibleTokens: ["t", "T"]
2579
- },
2580
- X: {
2581
- priority: 10,
2582
- parse: function(t, e, n, r) {
2583
- switch (e) {
2584
- case "X":
2585
- return X(Kt, t);
2586
- case "XX":
2587
- return X($t, t);
2588
- case "XXXX":
2589
- return X(Zt, t);
2590
- case "XXXXX":
2591
- return X(ee, t);
2592
- case "XXX":
2593
- default:
2594
- return X(te, t);
2595
- }
2596
- },
2597
- set: function(t, e, n, r) {
2598
- return e.timestampIsSet ? t : new Date(t.getTime() - n);
2599
- },
2600
- incompatibleTokens: ["t", "T", "x"]
2601
- },
2602
- x: {
2603
- priority: 10,
2604
- parse: function(t, e, n, r) {
2605
- switch (e) {
2606
- case "x":
2607
- return X(Kt, t);
2608
- case "xx":
2609
- return X($t, t);
2610
- case "xxxx":
2611
- return X(Zt, t);
2612
- case "xxxxx":
2613
- return X(ee, t);
2614
- case "xxx":
2615
- default:
2616
- return X(te, t);
2617
- }
2618
- },
2619
- set: function(t, e, n, r) {
2620
- return e.timestampIsSet ? t : new Date(t.getTime() - n);
2621
- },
2622
- incompatibleTokens: ["t", "T", "X"]
2623
- },
2624
- t: {
2625
- priority: 40,
2626
- parse: function(t, e, n, r) {
2627
- return ne(t);
2628
- },
2629
- set: function(t, e, n, r) {
2630
- return [new Date(1e3 * n), { timestampIsSet: !0 }];
2631
- },
2632
- incompatibleTokens: "*"
2633
- },
2634
- T: {
2635
- priority: 20,
2636
- parse: function(t, e, n, r) {
2637
- return ne(t);
2638
- },
2639
- set: function(t, e, n, r) {
2640
- return [new Date(n), { timestampIsSet: !0 }];
2641
- },
2642
- incompatibleTokens: "*"
2643
- }
2644
- }, lr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, hr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, mr = /^'([^]*?)'?$/, gr = /''/g, wr = /\S/, yr = /[a-zA-Z]/;
2645
- function ca(t, e, n, r) {
2646
- w(3, arguments);
2647
- var a = String(t), i = String(e), o = {}, u = o.locale || he;
2648
- if (!u.match) throw new RangeError("locale must contain match property");
2649
- var s = u.options && u.options.firstWeekContainsDate, d = s == null ? 1 : v(s), l = o.firstWeekContainsDate == null ? d : v(o.firstWeekContainsDate);
2650
- if (!(l >= 1 && l <= 7))
2651
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
2652
- var c = u.options && u.options.weekStartsOn, m = c == null ? 0 : v(c), h = o.weekStartsOn == null ? m : v(o.weekStartsOn);
2653
- if (!(h >= 0 && h <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2654
- if (i === "") return a === "" ? g(n) : /* @__PURE__ */ new Date(NaN);
2655
- var D, N = { firstWeekContainsDate: l, weekStartsOn: h, locale: u }, H = [{ priority: 10, set: br, index: 0 }], T = i.match(hr).map(function(W) {
2656
- var B = W[0];
2657
- return B === "p" || B === "P" ? (0, ge[B])(W, u.formatLong, N) : W;
2658
- }).join("").match(lr), C = [];
2659
- for (D = 0; D < T.length; D++) {
2660
- var M = T[D];
2661
- !o.useAdditionalWeekYearTokens && be(M) && Pt(M), !o.useAdditionalDayOfYearTokens && ye(M) && Pt(M);
2662
- var G = M[0], A = fr[G];
2663
- if (A) {
2664
- var dt = A.incompatibleTokens;
2665
- if (Array.isArray(dt)) {
2666
- for (var O = void 0, U = 0; U < C.length; U++) {
2667
- var ft = C[U].token;
2668
- if (dt.indexOf(ft) !== -1 || ft === G) {
2669
- O = C[U];
2670
- break;
2671
- }
2672
- }
2673
- if (O)
2674
- throw new RangeError(
2675
- "The format string mustn't contain `".concat(O.fullToken, "` and `").concat(M, "` at the same time")
2676
- );
2677
- } else if (A.incompatibleTokens === "*" && C.length)
2678
- throw new RangeError(
2679
- "The format string mustn't contain `".concat(M, "` and any other token at the same time")
2680
- );
2681
- C.push({ token: G, fullToken: M });
2682
- var J = A.parse(a, M, u.match, N);
2683
- if (!J) return /* @__PURE__ */ new Date(NaN);
2684
- H.push({
2685
- priority: A.priority,
2686
- set: A.set,
2687
- validate: A.validate,
2688
- value: J.value,
2689
- index: H.length
2690
- }), a = J.rest;
2691
- } else {
2692
- if (G.match(yr))
2693
- throw new RangeError(
2694
- "Format string contains an unescaped latin alphabet character `" + G + "`"
2695
- );
2696
- if (M === "''" ? M = "'" : G === "'" && (M = vr(M)), a.indexOf(M) !== 0)
2697
- return /* @__PURE__ */ new Date(NaN);
2698
- a = a.slice(M.length);
2699
- }
2700
- }
2701
- if (a.length > 0 && wr.test(a)) return /* @__PURE__ */ new Date(NaN);
2702
- var nt = H.map(function(W) {
2703
- return W.priority;
2704
- }).sort(function(W, B) {
2705
- return B - W;
2706
- }).filter(function(W, B, St) {
2707
- return St.indexOf(W) === B;
2708
- }).map(function(W) {
2709
- return H.filter(function(B) {
2710
- return B.priority === W;
2711
- }).reverse();
2712
- }).map(function(W) {
2713
- return W[0];
2714
- }), rt = g(n);
2715
- if (isNaN(rt)) return /* @__PURE__ */ new Date(NaN);
2716
- var Y = me(rt, we(rt)), Q = {};
2717
- for (D = 0; D < nt.length; D++) {
2718
- var E = nt[D];
2719
- if (E.validate && !E.validate(Y, E.value, N)) return /* @__PURE__ */ new Date(NaN);
2720
- var V = E.set(Y, Q, E.value, N);
2721
- V[0] ? (Y = V[0], Rn(Q, V[1])) : Y = V;
2722
- }
2723
- return Y;
2724
- }
2725
- function br(t, e) {
2726
- if (e.timestampIsSet) return t;
2727
- var n = /* @__PURE__ */ new Date(0);
2728
- return n.setFullYear(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()), n.setHours(t.getUTCHours(), t.getUTCMinutes(), t.getUTCSeconds(), t.getUTCMilliseconds()), n;
2729
- }
2730
- function vr(t) {
2731
- return t.match(mr)[1].replace(gr, "'");
2732
- }
2733
- function pr(t) {
2734
- w(1, arguments);
2735
- var e = g(t);
2736
- return !isNaN(e);
2737
- }
2738
- function b(t, e) {
2739
- for (var n = t < 0 ? "-" : "", r = Math.abs(t).toString(); r.length < e; ) r = "0" + r;
2740
- return n + r;
2741
- }
2742
- var Dr = function(t, e) {
2743
- var n = t.getUTCFullYear(), r = n > 0 ? n : 1 - n;
2744
- return b(e === "yy" ? r % 100 : r, e.length);
2745
- }, Tr = function(t, e) {
2746
- var n = t.getUTCMonth();
2747
- return e === "M" ? String(n + 1) : b(n + 1, 2);
2748
- }, kr = function(t, e) {
2749
- return b(t.getUTCDate(), e.length);
2750
- }, xr = function(t, e) {
2751
- return b(t.getUTCHours() % 12 || 12, e.length);
2752
- }, Mr = function(t, e) {
2753
- return b(t.getUTCHours(), e.length);
2754
- }, Cr = function(t, e) {
2755
- return b(t.getUTCMinutes(), e.length);
2756
- }, Pr = function(t, e) {
2757
- return b(t.getUTCSeconds(), e.length);
2758
- }, Or = function(t, e) {
2759
- var n = e.length, r = t.getUTCMilliseconds();
2760
- return b(Math.floor(r * Math.pow(10, n - 3)), e.length);
2761
- }, Sr = "midnight", Yr = "noon", Wr = "morning", Ur = "afternoon", Nr = "evening", Er = "night", qr = {
2762
- G: function(t, e, n) {
2763
- var r = t.getUTCFullYear() > 0 ? 1 : 0;
2764
- switch (e) {
2765
- case "G":
2766
- case "GG":
2767
- case "GGG":
2768
- return n.era(r, { width: "abbreviated" });
2769
- case "GGGGG":
2770
- return n.era(r, { width: "narrow" });
2771
- case "GGGG":
2772
- default:
2773
- return n.era(r, { width: "wide" });
2774
- }
2775
- },
2776
- y: function(t, e, n) {
2777
- if (e === "yo") {
2778
- var r = t.getUTCFullYear(), a = r > 0 ? r : 1 - r;
2779
- return n.ordinalNumber(a, { unit: "year" });
2780
- }
2781
- return Dr(t, e);
2782
- },
2783
- Y: function(t, e, n, r) {
2784
- var a = Bt(t, r), i = a > 0 ? a : 1 - a;
2785
- return e === "YY" ? b(i % 100, 2) : e === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : b(i, e.length);
2786
- },
2787
- R: function(t, e) {
2788
- return b(ve(t), e.length);
2789
- },
2790
- u: function(t, e) {
2791
- return b(t.getUTCFullYear(), e.length);
2792
- },
2793
- Q: function(t, e, n) {
2794
- var r = Math.ceil((t.getUTCMonth() + 1) / 3);
2795
- switch (e) {
2796
- case "Q":
2797
- return String(r);
2798
- case "QQ":
2799
- return b(r, 2);
2800
- case "Qo":
2801
- return n.ordinalNumber(r, { unit: "quarter" });
2802
- case "QQQ":
2803
- return n.quarter(r, { width: "abbreviated", context: "formatting" });
2804
- case "QQQQQ":
2805
- return n.quarter(r, { width: "narrow", context: "formatting" });
2806
- case "QQQQ":
2807
- default:
2808
- return n.quarter(r, { width: "wide", context: "formatting" });
2809
- }
2810
- },
2811
- q: function(t, e, n) {
2812
- var r = Math.ceil((t.getUTCMonth() + 1) / 3);
2813
- switch (e) {
2814
- case "q":
2815
- return String(r);
2816
- case "qq":
2817
- return b(r, 2);
2818
- case "qo":
2819
- return n.ordinalNumber(r, { unit: "quarter" });
2820
- case "qqq":
2821
- return n.quarter(r, { width: "abbreviated", context: "standalone" });
2822
- case "qqqqq":
2823
- return n.quarter(r, { width: "narrow", context: "standalone" });
2824
- case "qqqq":
2825
- default:
2826
- return n.quarter(r, { width: "wide", context: "standalone" });
2827
- }
2828
- },
2829
- M: function(t, e, n) {
2830
- var r = t.getUTCMonth();
2831
- switch (e) {
2832
- case "M":
2833
- case "MM":
2834
- return Tr(t, e);
2835
- case "Mo":
2836
- return n.ordinalNumber(r + 1, { unit: "month" });
2837
- case "MMM":
2838
- return n.month(r, { width: "abbreviated", context: "formatting" });
2839
- case "MMMMM":
2840
- return n.month(r, { width: "narrow", context: "formatting" });
2841
- case "MMMM":
2842
- default:
2843
- return n.month(r, { width: "wide", context: "formatting" });
2844
- }
2845
- },
2846
- L: function(t, e, n) {
2847
- var r = t.getUTCMonth();
2848
- switch (e) {
2849
- case "L":
2850
- return String(r + 1);
2851
- case "LL":
2852
- return b(r + 1, 2);
2853
- case "Lo":
2854
- return n.ordinalNumber(r + 1, { unit: "month" });
2855
- case "LLL":
2856
- return n.month(r, { width: "abbreviated", context: "standalone" });
2857
- case "LLLLL":
2858
- return n.month(r, { width: "narrow", context: "standalone" });
2859
- case "LLLL":
2860
- default:
2861
- return n.month(r, { width: "wide", context: "standalone" });
2862
- }
2863
- },
2864
- w: function(t, e, n, r) {
2865
- var a = De(t, r);
2866
- return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : b(a, e.length);
2867
- },
2868
- I: function(t, e, n) {
2869
- var r = pe(t);
2870
- return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : b(r, e.length);
2871
- },
2872
- d: function(t, e, n) {
2873
- return e === "do" ? n.ordinalNumber(t.getUTCDate(), { unit: "date" }) : kr(t, e);
2874
- },
2875
- D: function(t, e, n) {
2876
- var r = function(a) {
2877
- w(1, arguments);
2878
- var i = g(a), o = i.getTime();
2879
- i.setUTCMonth(0, 1), i.setUTCHours(0, 0, 0, 0);
2880
- var u = i.getTime(), s = o - u;
2881
- return Math.floor(s / 864e5) + 1;
2882
- }(t);
2883
- return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : b(r, e.length);
2884
- },
2885
- E: function(t, e, n) {
2886
- var r = t.getUTCDay();
2887
- switch (e) {
2888
- case "E":
2889
- case "EE":
2890
- case "EEE":
2891
- return n.day(r, { width: "abbreviated", context: "formatting" });
2892
- case "EEEEE":
2893
- return n.day(r, { width: "narrow", context: "formatting" });
2894
- case "EEEEEE":
2895
- return n.day(r, { width: "short", context: "formatting" });
2896
- case "EEEE":
2897
- default:
2898
- return n.day(r, { width: "wide", context: "formatting" });
2899
- }
2900
- },
2901
- e: function(t, e, n, r) {
2902
- var a = t.getUTCDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
2903
- switch (e) {
2904
- case "e":
2905
- return String(i);
2906
- case "ee":
2907
- return b(i, 2);
2908
- case "eo":
2909
- return n.ordinalNumber(i, { unit: "day" });
2910
- case "eee":
2911
- return n.day(a, { width: "abbreviated", context: "formatting" });
2912
- case "eeeee":
2913
- return n.day(a, { width: "narrow", context: "formatting" });
2914
- case "eeeeee":
2915
- return n.day(a, { width: "short", context: "formatting" });
2916
- case "eeee":
2917
- default:
2918
- return n.day(a, { width: "wide", context: "formatting" });
2919
- }
2920
- },
2921
- c: function(t, e, n, r) {
2922
- var a = t.getUTCDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
2923
- switch (e) {
2924
- case "c":
2925
- return String(i);
2926
- case "cc":
2927
- return b(i, e.length);
2928
- case "co":
2929
- return n.ordinalNumber(i, { unit: "day" });
2930
- case "ccc":
2931
- return n.day(a, { width: "abbreviated", context: "standalone" });
2932
- case "ccccc":
2933
- return n.day(a, { width: "narrow", context: "standalone" });
2934
- case "cccccc":
2935
- return n.day(a, { width: "short", context: "standalone" });
2936
- case "cccc":
2937
- default:
2938
- return n.day(a, { width: "wide", context: "standalone" });
2939
- }
2940
- },
2941
- i: function(t, e, n) {
2942
- var r = t.getUTCDay(), a = r === 0 ? 7 : r;
2943
- switch (e) {
2944
- case "i":
2945
- return String(a);
2946
- case "ii":
2947
- return b(a, e.length);
2948
- case "io":
2949
- return n.ordinalNumber(a, { unit: "day" });
2950
- case "iii":
2951
- return n.day(r, { width: "abbreviated", context: "formatting" });
2952
- case "iiiii":
2953
- return n.day(r, { width: "narrow", context: "formatting" });
2954
- case "iiiiii":
2955
- return n.day(r, { width: "short", context: "formatting" });
2956
- case "iiii":
2957
- default:
2958
- return n.day(r, { width: "wide", context: "formatting" });
2959
- }
2960
- },
2961
- a: function(t, e, n) {
2962
- var r = t.getUTCHours() / 12 >= 1 ? "pm" : "am";
2963
- switch (e) {
2964
- case "a":
2965
- case "aa":
2966
- case "aaa":
2967
- return n.dayPeriod(r, { width: "abbreviated", context: "formatting" });
2968
- case "aaaaa":
2969
- return n.dayPeriod(r, { width: "narrow", context: "formatting" });
2970
- case "aaaa":
2971
- default:
2972
- return n.dayPeriod(r, { width: "wide", context: "formatting" });
2973
- }
2974
- },
2975
- b: function(t, e, n) {
2976
- var r, a = t.getUTCHours();
2977
- switch (r = a === 12 ? Yr : a === 0 ? Sr : a / 12 >= 1 ? "pm" : "am", e) {
2978
- case "b":
2979
- case "bb":
2980
- case "bbb":
2981
- return n.dayPeriod(r, { width: "abbreviated", context: "formatting" });
2982
- case "bbbbb":
2983
- return n.dayPeriod(r, { width: "narrow", context: "formatting" });
2984
- case "bbbb":
2985
- default:
2986
- return n.dayPeriod(r, { width: "wide", context: "formatting" });
2987
- }
2988
- },
2989
- B: function(t, e, n) {
2990
- var r, a = t.getUTCHours();
2991
- switch (r = a >= 17 ? Nr : a >= 12 ? Ur : a >= 4 ? Wr : Er, e) {
2992
- case "B":
2993
- case "BB":
2994
- case "BBB":
2995
- return n.dayPeriod(r, { width: "abbreviated", context: "formatting" });
2996
- case "BBBBB":
2997
- return n.dayPeriod(r, { width: "narrow", context: "formatting" });
2998
- case "BBBB":
2999
- default:
3000
- return n.dayPeriod(r, { width: "wide", context: "formatting" });
3001
- }
3002
- },
3003
- h: function(t, e, n) {
3004
- if (e === "ho") {
3005
- var r = t.getUTCHours() % 12;
3006
- return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
3007
- }
3008
- return xr(t, e);
3009
- },
3010
- H: function(t, e, n) {
3011
- return e === "Ho" ? n.ordinalNumber(t.getUTCHours(), { unit: "hour" }) : Mr(t, e);
3012
- },
3013
- K: function(t, e, n) {
3014
- var r = t.getUTCHours() % 12;
3015
- return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : b(r, e.length);
3016
- },
3017
- k: function(t, e, n) {
3018
- var r = t.getUTCHours();
3019
- return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : b(r, e.length);
3020
- },
3021
- m: function(t, e, n) {
3022
- return e === "mo" ? n.ordinalNumber(t.getUTCMinutes(), { unit: "minute" }) : Cr(t, e);
3023
- },
3024
- s: function(t, e, n) {
3025
- return e === "so" ? n.ordinalNumber(t.getUTCSeconds(), { unit: "second" }) : Pr(t, e);
3026
- },
3027
- S: function(t, e) {
3028
- return Or(t, e);
3029
- },
3030
- X: function(t, e, n, r) {
3031
- var a = (r._originalDate || t).getTimezoneOffset();
3032
- if (a === 0) return "Z";
3033
- switch (e) {
3034
- case "X":
3035
- return ue(a);
3036
- case "XXXX":
3037
- case "XX":
3038
- return Z(a);
3039
- case "XXXXX":
3040
- case "XXX":
3041
- default:
3042
- return Z(a, ":");
3043
- }
3044
- },
3045
- x: function(t, e, n, r) {
3046
- var a = (r._originalDate || t).getTimezoneOffset();
3047
- switch (e) {
3048
- case "x":
3049
- return ue(a);
3050
- case "xxxx":
3051
- case "xx":
3052
- return Z(a);
3053
- case "xxxxx":
3054
- case "xxx":
3055
- default:
3056
- return Z(a, ":");
3057
- }
3058
- },
3059
- O: function(t, e, n, r) {
3060
- var a = (r._originalDate || t).getTimezoneOffset();
3061
- switch (e) {
3062
- case "O":
3063
- case "OO":
3064
- case "OOO":
3065
- return "GMT" + oe(a, ":");
3066
- case "OOOO":
3067
- default:
3068
- return "GMT" + Z(a, ":");
3069
- }
3070
- },
3071
- z: function(t, e, n, r) {
3072
- var a = (r._originalDate || t).getTimezoneOffset();
3073
- switch (e) {
3074
- case "z":
3075
- case "zz":
3076
- case "zzz":
3077
- return "GMT" + oe(a, ":");
3078
- case "zzzz":
3079
- default:
3080
- return "GMT" + Z(a, ":");
3081
- }
3082
- },
3083
- t: function(t, e, n, r) {
3084
- var a = r._originalDate || t;
3085
- return b(Math.floor(a.getTime() / 1e3), e.length);
3086
- },
3087
- T: function(t, e, n, r) {
3088
- return b((r._originalDate || t).getTime(), e.length);
3089
- }
3090
- };
3091
- function oe(t, e) {
3092
- var n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.floor(r / 60), i = r % 60;
3093
- if (i === 0) return n + String(a);
3094
- var o = e;
3095
- return n + String(a) + o + b(i, 2);
3096
- }
3097
- function ue(t, e) {
3098
- return t % 60 == 0 ? (t > 0 ? "-" : "+") + b(Math.abs(t) / 60, 2) : Z(t, e);
3099
- }
3100
- function Z(t, e) {
3101
- var n = e || "", r = t > 0 ? "-" : "+", a = Math.abs(t);
3102
- return r + b(Math.floor(a / 60), 2) + n + b(a % 60, 2);
3103
- }
3104
- var Fr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Br = /^'([^]*?)'?$/, Lr = /''/g, Qr = /[a-zA-Z]/;
3105
- function ct(t, e, n) {
3106
- w(2, arguments);
3107
- var r = String(e), a = {}, i = a.locale || he, o = i.options && i.options.firstWeekContainsDate, u = o == null ? 1 : v(o), s = a.firstWeekContainsDate == null ? u : v(a.firstWeekContainsDate);
3108
- if (!(s >= 1 && s <= 7))
3109
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
3110
- var d = i.options && i.options.weekStartsOn, l = d == null ? 0 : v(d), c = a.weekStartsOn == null ? l : v(a.weekStartsOn);
3111
- if (!(c >= 0 && c <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
3112
- if (!i.localize) throw new RangeError("locale must contain localize property");
3113
- if (!i.formatLong) throw new RangeError("locale must contain formatLong property");
3114
- var m = g(t);
3115
- if (!pr(m)) throw new RangeError("Invalid time value");
3116
- var h = we(m), D = me(m, h), N = { firstWeekContainsDate: s, weekStartsOn: c, locale: i, _originalDate: m }, H = r.match(Hr).map(function(T) {
3117
- var C = T[0];
3118
- return C === "p" || C === "P" ? (0, ge[C])(T, i.formatLong, N) : T;
3119
- }).join("").match(Fr).map(function(T) {
3120
- if (T === "''") return "'";
3121
- var C = T[0];
3122
- if (C === "'") return Rr(T);
3123
- var M = qr[C];
3124
- if (M)
3125
- return !a.useAdditionalWeekYearTokens && be(T) && Pt(T), !a.useAdditionalDayOfYearTokens && ye(T) && Pt(T), M(D, T, i.localize, N);
3126
- if (C.match(Qr))
3127
- throw new RangeError(
3128
- "Format string contains an unescaped latin alphabet character `" + C + "`"
3129
- );
3130
- return T;
3131
- }).join("");
3132
- return H;
3133
- }
3134
- function Rr(t) {
3135
- return t.match(Br)[1].replace(Lr, "'");
3136
- }
3137
- /*! *****************************************************************************
3138
- Copyright (c) Microsoft Corporation.
3139
-
3140
- Permission to use, copy, modify, and/or distribute this software for any
3141
- purpose with or without fee is hereby granted.
3142
-
3143
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3144
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3145
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3146
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3147
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3148
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3149
- PERFORMANCE OF THIS SOFTWARE.
3150
- ***************************************************************************** */
3151
- function P(t, e) {
3152
- w(2, arguments);
3153
- var n = g(t), r = v(e);
3154
- return isNaN(r) ? /* @__PURE__ */ new Date(NaN) : (r && n.setDate(n.getDate() + r), n);
3155
- }
3156
- function et(t, e) {
3157
- w(1, arguments);
3158
- var n = t || {}, r = g(n.start), a = g(n.end), i = a.getTime();
3159
- if (!(r.getTime() <= i)) throw new RangeError("Invalid interval");
3160
- var o = [], u = r;
3161
- u.setHours(0, 0, 0, 0);
3162
- var s = 1;
3163
- if (isNaN(s)) throw new RangeError("`options.step` must be a number greater than 1");
3164
- for (; u.getTime() <= i; ) o.push(g(u)), u.setDate(u.getDate() + s), u.setHours(0, 0, 0, 0);
3165
- return o;
3166
- }
3167
- function Xr(t, e) {
3168
- w(1, arguments);
3169
- var n = {}, r = n.locale, a = r && r.options && r.options.weekStartsOn, i = a == null ? 0 : v(a), o = n.weekStartsOn == null ? i : v(n.weekStartsOn);
3170
- if (!(o >= 0 && o <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
3171
- var u = g(t), s = u.getDay(), d = 6 + (s < o ? -7 : 0) - (s - o);
3172
- return u.setDate(u.getDate() + d), u.setHours(23, 59, 59, 999), u;
3173
- }
3174
- function Te(t) {
3175
- w(1, arguments);
3176
- var e = g(t);
3177
- return e.setDate(1), e.setHours(0, 0, 0, 0), e;
3178
- }
3179
- function Gr(t, e) {
3180
- w(1, arguments);
3181
- var n = {}, r = n.locale, a = r && r.options && r.options.weekStartsOn, i = a == null ? 0 : v(a), o = n.weekStartsOn == null ? i : v(n.weekStartsOn);
3182
- if (!(o >= 0 && o <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
3183
- var u = g(t), s = u.getDay(), d = (s < o ? 7 : 0) + s - o;
3184
- return u.setDate(u.getDate() - d), u.setHours(0, 0, 0, 0), u;
3185
- }
3186
- function Ar(t) {
3187
- var e = t === void 0 ? {} : t, n = e.firstDayOfWeek, r = n === void 0 ? 1 : n, a = e.weekdayLabelFormat, i = a === void 0 ? function(u) {
3188
- return ct(u, "iiiiii");
3189
- } : a, o = /* @__PURE__ */ new Date();
3190
- return et({ start: P(Gr(o), r), end: P(Xr(o), r) }).reduce(function(u, s) {
3191
- return u.push(i(s)), u;
3192
- }, []);
3193
- }
3194
- function Ir(t) {
3195
- var e = t.year, n = t.month, r = t.firstDayOfWeek, a = r === void 0 ? 1 : r, i = t.dayLabelFormat, o = i === void 0 ? function(c) {
3196
- return ct(c, "dd");
3197
- } : i, u = new Date(e, n), s = Te(u), d = function(c) {
3198
- w(1, arguments);
3199
- var m = g(c), h = m.getDay();
3200
- return h;
3201
- }(s), l = function(c) {
3202
- w(1, arguments);
3203
- var m = g(c), h = m.getMonth();
3204
- return m.setFullYear(m.getFullYear(), h + 1, 0), m.setHours(23, 59, 59, 999), m;
3205
- }(u);
3206
- return function() {
3207
- for (var c = 0, m = 0, h = arguments.length; m < h; m++) c += arguments[m].length;
3208
- var D = Array(c), N = 0;
3209
- for (m = 0; m < h; m++)
3210
- for (var H = arguments[m], T = 0, C = H.length; T < C; T++, N++) D[N] = H[T];
3211
- return D;
3212
- }(
3213
- Array.from(Array(d >= a ? d - a : 6 - a + d + 1).keys()).fill(0),
3214
- et({ start: s, end: l }).map(function(c) {
3215
- return { date: c, dayLabel: o(c) };
3216
- })
3217
- );
3218
- }
3219
- var jr = function(t) {
3220
- return ct(t, "dd");
3221
- }, _r = function(t) {
3222
- return ct(t, "eeeeee");
3223
- }, zr = function(t) {
3224
- return ct(t, "MMMM yyyy");
3225
- };
3226
- function da(t) {
3227
- var e = t.year, n = t.month, r = t.firstDayOfWeek, a = r === void 0 ? 1 : r, i = t.dayLabelFormat, o = i === void 0 ? jr : i, u = t.weekdayLabelFormat, s = u === void 0 ? _r : u, d = t.monthLabelFormat, l = d === void 0 ? zr : d;
3228
- return {
3229
- days: Lt(
3230
- function() {
3231
- return Ir({ year: e, month: n, firstDayOfWeek: a, dayLabelFormat: o });
3232
- },
3233
- [e, n, a, o]
3234
- ),
3235
- weekdayLabels: Lt(
3236
- function() {
3237
- return Ar({ firstDayOfWeek: a, weekdayLabelFormat: s });
3238
- },
3239
- [a, s]
3240
- ),
3241
- monthLabel: l(new Date(e, n))
3242
- };
3243
- }
3244
- function z(t, e) {
3245
- w(2, arguments);
3246
- var n = g(t), r = g(e);
3247
- return n.getTime() < r.getTime();
3248
- }
3249
- function Dt(t, e) {
3250
- w(2, arguments);
3251
- var n = g(t), r = g(e);
3252
- return n.getTime() > r.getTime();
3253
- }
3254
- function ut(t, e) {
3255
- w(2, arguments);
3256
- var n = e || {}, r = g(t).getTime(), a = g(n.start).getTime(), i = g(n.end).getTime();
3257
- if (!(a <= i)) throw new RangeError("Invalid interval");
3258
- return r >= a && r <= i;
3259
- }
3260
- function Ft(t) {
3261
- w(1, arguments);
3262
- var e = g(t);
3263
- return e.setHours(0, 0, 0, 0), e;
3264
- }
3265
- function R(t, e) {
3266
- w(2, arguments);
3267
- var n = Ft(t), r = Ft(e);
3268
- return n.getTime() === r.getTime();
3269
- }
3270
- function Ht(t, e) {
3271
- w(2, arguments);
3272
- var n = g(t), r = v(e);
3273
- if (isNaN(r)) return /* @__PURE__ */ new Date(NaN);
3274
- if (!r) return n;
3275
- var a = n.getDate(), i = new Date(n.getTime());
3276
- i.setMonth(n.getMonth() + r + 1, 0);
3277
- var o = i.getDate();
3278
- return a >= o ? i : (n.setFullYear(i.getFullYear(), i.getMonth(), a), n);
3279
- }
3280
- var ke = function(t, e) {
3281
- return t === void 0 && (t = []), t.some(function(n) {
3282
- return R(e, n);
3283
- });
3284
- };
3285
- function Jr(t, e, n) {
3286
- return !(!e || !n) && ut(t, { start: e, end: n });
3287
- }
3288
- function Vr(t, e, n) {
3289
- return !!(e && R(t, e) || n && R(t, n));
3290
- }
3291
- function Kr(t, e) {
3292
- return !(!e || !R(t, e));
3293
- }
3294
- function $r(t, e) {
3295
- return !(!e || !R(t, e));
3296
- }
3297
- function Zr(t) {
3298
- var e = t.date, n = t.minBookingDate, r = t.maxBookingDate, a = t.isDateBlockedFn, i = t.startDate, o = t.endDate, u = t.minBookingDays, s = u === void 0 ? 1 : u, d = t.unavailableDates, l = d === void 0 ? [] : d, c = n && new Date(n.getFullYear(), n.getMonth(), n.getDate(), 0, 0, 0), m = r && new Date(r.getFullYear(), r.getMonth(), r.getDate(), 0, 0, 0);
3299
- return !!(ke(l, e) || c && z(e, c) || m && Dt(e, m) || i && !o && s > 1 && ut(e, { start: i, end: P(i, s - 2) }) || a && a(e));
3300
- }
3301
- function kt(t) {
3302
- var e = Te(t);
3303
- return {
3304
- year: function(n) {
3305
- w(1, arguments);
3306
- var r = g(n), a = r.getFullYear();
3307
- return a;
3308
- }(e),
3309
- month: function(n) {
3310
- w(1, arguments);
3311
- var r = g(n), a = r.getMonth();
3312
- return a;
3313
- }(e),
3314
- date: e
3315
- };
3316
- }
3317
- function ta() {
3318
- return kt(Ft(Date.now()));
3319
- }
3320
- function vt(t, e) {
3321
- var n = e ? kt(e) : ta(), r = n.date, a = [n];
3322
- return t > 1 && (a = Array.from(Array(t - 1).keys()).reduce(function(i) {
3323
- return r = Ht(i[i.length - 1].date, 1), i.concat([kt(r)]);
3324
- }, a)), a;
3325
- }
3326
- function ot(t, e, n, r) {
3327
- var a = t[r ? n > 0 ? 0 : t.length - r : n > 0 ? t.length - 1 : 0].date;
3328
- return Array.from(Array(e).keys()).reduce(function(i) {
3329
- return a = i.length === 0 ? Ht(a, n) : Ht(a, n >= 0 ? 1 : -1), n > 0 ? i.concat([kt(a)]) : [kt(a)].concat(i);
3330
- }, []);
3331
- }
3332
- function fa(t, e, n) {
3333
- return t && typeof e == "string" ? ct(t, e) : t && typeof e == "function" ? e(t) : n;
3334
- }
3335
- function pt(t) {
3336
- var e = t.startDate, n = t.endDate, r = t.isDateBlocked, a = t.minBookingDays, i = t.exactMinBookingDays, o = t.minBookingDate, u = t.maxBookingDate, s = !o || !z(e, P(o, -1)), d = !u || !Dt(P(e, a - 1), u);
3337
- return !(!e || a !== 1 || n || r(e)) || (e && a > 1 && !n && !i || e && a > 0 && i && s && d || e && a > 0 && i && !o && !u ? !et({ start: e, end: P(e, a - 1) }).some(function(l) {
3338
- return r(l);
3339
- }) : !(!e || !n || i) && !z(n, P(e, a - 1)) && !et({ start: e, end: n }).some(function(l) {
3340
- return r(l);
3341
- }));
3342
- }
3343
- function la(t) {
3344
- var e = t.startDate, n = t.endDate, r = t.focusedInput, a = t.minBookingDate, i = t.maxBookingDate, o = t.onDatesChange, u = t.initialVisibleMonth, s = t.exactMinBookingDays, d = s !== void 0 && s, l = t.minBookingDays, c = l === void 0 ? 1 : l, m = t.numberOfMonths, h = m === void 0 ? 2 : m, D = t.firstDayOfWeek, N = D === void 0 ? 1 : D, H = t.isDateBlocked, T = H === void 0 ? function() {
3345
- return !1;
3346
- } : H, C = t.unavailableDates, M = C === void 0 ? [] : C, G = t.changeActiveMonthOnSelect, A = G === void 0 || G, dt = Wt(function() {
3347
- return vt(h, e || u || null);
3348
- }), O = dt[0], U = dt[1], ft = Wt(null), J = ft[0], nt = ft[1], rt = Wt(e), Y = rt[0], Q = rt[1];
3349
- We(function() {
3350
- return typeof window < "u" && window.addEventListener && window.addEventListener("keydown", B), function() {
3351
- window.removeEventListener && window.removeEventListener("keydown", B);
3352
- };
3353
- });
3354
- var E = function(f) {
3355
- return ke(M, f) || T(f);
3356
- }, V = function(f) {
3357
- Q(f), (!Y || Y && !R(f, Y)) && U(vt(h, f));
3358
- }, W = function(f) {
3359
- return Zr({
3360
- date: f,
3361
- minBookingDate: a,
3362
- maxBookingDate: i,
3363
- startDate: e,
3364
- endDate: n,
3365
- minBookingDays: c,
3366
- isDateBlockedFn: E
3367
- });
3368
- };
3369
- function B(f) {
3370
- if ((f.key === "ArrowRight" || f.key === "ArrowLeft" || f.key === "ArrowDown" || f.key === "ArrowUp") && !Y) {
3371
- var L = O[0];
3372
- V(L.date), U(vt(h, L.date));
3373
- }
3374
- }
3375
- var St = I(
3376
- function() {
3377
- U(ot(O, h, -1)), Q(null);
3378
- },
3379
- [O, h]
3380
- ), xe = I(
3381
- function() {
3382
- U(ot(O, h, -1, 1)), Q(null);
3383
- },
3384
- [O, h]
3385
- ), Me = I(
3386
- function() {
3387
- U(ot(O, h, 1)), Q(null);
3388
- },
3389
- [O, h]
3390
- ), Ce = I(
3391
- function() {
3392
- U(ot(O, h, 1, 1)), Q(null);
3393
- },
3394
- [O, h]
3395
- ), Pe = I(
3396
- function(f) {
3397
- U(vt(h, f)), Q(null);
3398
- },
3399
- [h]
3400
- ), Oe = I(
3401
- function(f) {
3402
- f === void 0 && (f = 1), U(ot(O, h, -(12 * f - h + 1))), Q(null);
3403
- },
3404
- [O, h]
3405
- ), Se = I(
3406
- function(f) {
3407
- f === void 0 && (f = 1), U(ot(O, h, 12 * f - h + 1)), Q(null);
3408
- },
3409
- [O, h]
3410
- );
3411
- return {
3412
- firstDayOfWeek: N,
3413
- activeMonths: O,
3414
- isDateSelected: function(f) {
3415
- return Jr(f, e, n);
3416
- },
3417
- isDateHovered: function(f) {
3418
- return function(L) {
3419
- var at = L.date, q = L.startDate, lt = L.endDate, ht = L.isDateBlocked, F = L.hoveredDate, j = L.minBookingDays, Yt = L.exactMinBookingDays;
3420
- return F && j > 1 && Yt && ut(at, { start: F, end: P(F, j - 1) }) ? !et({ start: F, end: P(F, j - 1) }).some(function(K) {
3421
- return ht(K);
3422
- }) : q && !lt && F && ut(at, { start: q, end: P(q, j - 1) }) && R(q, F) && j > 1 ? !et({ start: q, end: P(q, j - 1) }).some(function(K) {
3423
- return ht(K);
3424
- }) : !(!q || lt || !F || z(F, q) || !ut(at, { start: q, end: F })) && !et({ start: q, end: F }).some(function(K) {
3425
- return ht(K);
3426
- });
3427
- }({
3428
- date: f,
3429
- hoveredDate: J,
3430
- startDate: e,
3431
- endDate: n,
3432
- minBookingDays: c,
3433
- exactMinBookingDays: d,
3434
- isDateBlocked: E
3435
- });
3436
- },
3437
- isFirstOrLastSelectedDate: function(f) {
3438
- return Vr(f, e, n);
3439
- },
3440
- isStartDate: function(f) {
3441
- return Kr(f, e);
3442
- },
3443
- isEndDate: function(f) {
3444
- return $r(f, n);
3445
- },
3446
- isDateBlocked: W,
3447
- numberOfMonths: h,
3448
- isDateFocused: function(f) {
3449
- return !!Y && R(f, Y);
3450
- },
3451
- focusedDate: Y,
3452
- hoveredDate: J,
3453
- onResetDates: function() {
3454
- o({ startDate: null, endDate: null, focusedInput: "startDate" });
3455
- },
3456
- onDateHover: function(f) {
3457
- if (f) {
3458
- if (f) {
3459
- var L = !W(f) || e && R(f, e), at = !a || !z(f, P(a, -1)), q = !i || !Dt(f, i), lt = P(f, c - 1), ht = !a || !z(lt, a), F = !i || !Dt(lt, i), j = d && c > 1 && at && q && ht && F, Yt = e && !n && !d && at && q, K = !(c > 1 && e) || ut(f, { start: e, end: P(e, c - 2) }), Ye = e && R(f, e) && K;
3460
- L && (j || Yt || Ye) ? nt(f) : J !== null && nt(null);
3461
- }
3462
- } else nt(null);
3463
- },
3464
- onDateSelect: function(f) {
3465
- (r === "endDate" || r === "startDate") && c > 0 && d && pt({
3466
- minBookingDays: c,
3467
- exactMinBookingDays: d,
3468
- minBookingDate: a,
3469
- maxBookingDate: i,
3470
- isDateBlocked: E,
3471
- startDate: f,
3472
- endDate: null
3473
- }) ? o({ startDate: f, endDate: P(f, c - 1), focusedInput: null }) : (r === "endDate" && e && z(f, e) || r === "startDate" && n && Dt(f, n)) && !d && pt({ minBookingDays: c, isDateBlocked: E, startDate: f, endDate: null }) ? o({ endDate: null, startDate: f, focusedInput: "endDate" }) : r === "startDate" && !d && pt({ minBookingDays: c, isDateBlocked: E, endDate: n, startDate: f }) ? o({ endDate: n, startDate: f, focusedInput: "endDate" }) : r === "startDate" && !d && pt({ minBookingDays: c, isDateBlocked: E, endDate: null, startDate: f }) ? o({ endDate: null, startDate: f, focusedInput: "endDate" }) : r === "endDate" && e && !z(f, e) && !d && pt({ minBookingDays: c, isDateBlocked: E, startDate: e, endDate: f }) && o({ startDate: e, endDate: f, focusedInput: null }), r !== "endDate" && (!Y || Y && !R(f, Y)) && A && U(vt(h, f));
3474
- },
3475
- onDateFocus: V,
3476
- goToPreviousMonths: St,
3477
- goToPreviousMonthsByOneMonth: xe,
3478
- goToNextMonths: Me,
3479
- goToNextMonthsByOneMonth: Ce,
3480
- goToDate: Pe,
3481
- goToPreviousYear: Oe,
3482
- goToNextYear: Se
3483
- };
3484
- }
3485
- function ha(t) {
3486
- var e = t.date, n = t.focusedDate, r = t.isDateSelected, a = t.isDateFocused, i = t.isFirstOrLastSelectedDate, o = t.isDateHovered, u = t.isDateBlocked, s = t.onDateSelect, d = t.onDateFocus, l = t.onDateHover, c = I(
3487
- function() {
3488
- return s(e);
3489
- },
3490
- [e, s]
3491
- ), m = I(
3492
- function() {
3493
- return l(e);
3494
- },
3495
- [e, l]
3496
- ), h = u(e) && !o(e);
3497
- return {
3498
- tabIndex: n === null || a(e) ? 0 : -1,
3499
- isSelected: r(e),
3500
- isSelectedStartOrEnd: i(e),
3501
- isWithinHoverRange: o(e),
3502
- disabledDate: h,
3503
- onKeyDown: function(D) {
3504
- D.key === "ArrowRight" ? d(P(e, 1)) : D.key === "ArrowLeft" ? d(P(e, -1)) : D.key === "ArrowUp" ? d(P(e, -7)) : D.key === "ArrowDown" && d(P(e, 7));
3505
- },
3506
- onClick: h ? function() {
3507
- } : c,
3508
- onMouseEnter: m
3509
- };
3510
- }
3511
- function ma(t, e) {
3512
- const n = x(t, e?.in);
3513
- return n.setHours(23, 59, 59, 999), n;
3514
- }
3515
- function ea(t, e, n) {
3516
- const r = x(t, n?.in);
3517
- return isNaN(e) ? S(t, NaN) : (e && r.setDate(r.getDate() + e), r);
3518
- }
3519
- function na(t, e, n) {
3520
- const r = x(t, n?.in);
3521
- if (isNaN(e)) return S(t, NaN);
3522
- if (!e)
3523
- return r;
3524
- const a = r.getDate(), i = S(t, r.getTime());
3525
- i.setMonth(r.getMonth() + e + 1, 0);
3526
- const o = i.getDate();
3527
- return a >= o ? i : (r.setFullYear(
3528
- i.getFullYear(),
3529
- i.getMonth(),
3530
- a
3531
- ), r);
3532
- }
3533
- function ga(t, e, n) {
3534
- const {
3535
- years: r = 0,
3536
- months: a = 0,
3537
- weeks: i = 0,
3538
- days: o = 0,
3539
- hours: u = 0,
3540
- minutes: s = 0,
3541
- seconds: d = 0
3542
- } = e, l = x(t, n?.in), c = a || r ? na(l, a + r * 12) : l, m = o || i ? ea(c, o + i * 7) : c, h = s + u * 60, N = (d + h * 60) * 1e3;
3543
- return S(t, +m + N);
3544
- }
3545
- function wa(t, e) {
3546
- return +x(t) > +x(e);
3547
- }
3548
- function ya(t, e) {
3549
- return +x(t) < +x(e);
3550
- }
3551
- function ra(t, e) {
3552
- const n = x(t, e?.in), r = n.getFullYear(), a = n.getMonth(), i = S(n, 0);
3553
- return i.setFullYear(r, a + 1, 0), i.setHours(0, 0, 0, 0), i.getDate();
3554
- }
3555
- function aa(t, e, n) {
3556
- const r = x(t, n?.in), a = r.getFullYear(), i = r.getDate(), o = S(t, 0);
3557
- o.setFullYear(a, e, 15), o.setHours(0, 0, 0, 0);
3558
- const u = ra(o);
3559
- return r.setMonth(e, Math.min(i, u)), r;
3560
- }
3561
- function ba(t, e, n) {
3562
- let r = x(t, n?.in);
3563
- return isNaN(+r) ? S(t, NaN) : (e.year != null && r.setFullYear(e.year), e.month != null && (r = aa(r, e.month)), e.date != null && r.setDate(e.date), e.hours != null && r.setHours(e.hours), e.minutes != null && r.setMinutes(e.minutes), e.seconds != null && r.setSeconds(e.seconds), e.milliseconds != null && r.setMilliseconds(e.milliseconds), r);
3564
- }
3565
- function ia(t) {
3566
- return S(t, Date.now());
3567
- }
3568
- function oa(t, e, n) {
3569
- const [r, a] = ce(
3570
- n?.in,
3571
- t,
3572
- e
3573
- );
3574
- return +Mt(r) == +Mt(a);
3575
- }
3576
- function va(t, e) {
3577
- return oa(
3578
- S(t, t),
3579
- ia(t)
3580
- );
3581
- }
3582
- export {
3583
- ha as N,
3584
- fa as U,
3585
- la as Y,
3586
- ga as a,
3587
- wa as b,
3588
- ya as c,
3589
- Yn as d,
3590
- ma as e,
3591
- sa as f,
3592
- ba as g,
3593
- da as h,
3594
- va as i,
3595
- Mt as s,
3596
- ca as x
3597
- };
3598
- //# sourceMappingURL=date-1NFv48Qu.js.map