@unidy.io/sdk 1.2.0-alpha9 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (715) hide show
  1. package/dist/cjs/_commonjsHelpers-CFO10eej.js +10 -0
  2. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  3. package/dist/cjs/app-globals-C-Wl5lPS.js +10 -0
  4. package/dist/cjs/app-globals-C-Wl5lPS.js.map +1 -0
  5. package/dist/cjs/{auth-store-DPmGKHZ2.js → auth-store-0vv3uOib.js} +4 -4
  6. package/dist/cjs/{auth-store-DPmGKHZ2.js.map → auth-store-0vv3uOib.js.map} +1 -1
  7. package/dist/cjs/component-DLxnZCW6.js +34 -0
  8. package/dist/cjs/component-DLxnZCW6.js.map +1 -0
  9. package/dist/cjs/component-utils-XXctnOM9.js +38 -0
  10. package/dist/cjs/component-utils-XXctnOM9.js.map +1 -0
  11. package/dist/cjs/de-BWF6Glzg.js +704 -0
  12. package/dist/cjs/de-BWF6Glzg.js.map +1 -0
  13. package/dist/cjs/en-GB-DhD5mdQw.js +119 -0
  14. package/dist/cjs/en-GB-DhD5mdQw.js.map +1 -0
  15. package/dist/cjs/{flash-store-gbSYhPAV.js → flash-store-CR6Umh1O.js} +3 -3
  16. package/dist/cjs/{flash-store-gbSYhPAV.js.map → flash-store-CR6Umh1O.js.map} +1 -1
  17. package/dist/cjs/fr-j2wwoj-A.js +577 -0
  18. package/dist/cjs/fr-j2wwoj-A.js.map +1 -0
  19. package/dist/cjs/has-slot-content-CfJbU4t-.js +37 -0
  20. package/dist/cjs/has-slot-content-CfJbU4t-.js.map +1 -0
  21. package/dist/cjs/{i18n-D5j_Zl-4.js → i18n-ClWrNmGh.js} +100 -4
  22. package/dist/cjs/{i18n-D5j_Zl-4.js.map → i18n-ClWrNmGh.js.map} +1 -1
  23. package/dist/cjs/{index-B325yXfO.js → index-2Fz3r5o0.js} +5 -41
  24. package/dist/cjs/index-2Fz3r5o0.js.map +1 -0
  25. package/dist/cjs/{index-yaeiYlfa.js → index-C6ZBKFYr.js} +3 -3
  26. package/dist/cjs/{index-yaeiYlfa.js.map → index-C6ZBKFYr.js.map} +1 -1
  27. package/dist/cjs/{index-BzPYBLYC.js → index-CpPKy1CZ.js} +1170 -1087
  28. package/dist/cjs/index-CpPKy1CZ.js.map +1 -0
  29. package/dist/cjs/index.cjs.js +24 -11
  30. package/dist/cjs/index.cjs.js.map +1 -1
  31. package/dist/cjs/loader.cjs.js +3 -3
  32. package/dist/cjs/{newsletter-helpers-hdDC5X-V.js → newsletter-helpers-BHvOI8M4.js} +46 -9
  33. package/dist/cjs/newsletter-helpers-BHvOI8M4.js.map +1 -0
  34. package/dist/cjs/{newsletter-store-CupsLgO9.js → newsletter-store-22Jswiqe.js} +5 -3
  35. package/dist/cjs/newsletter-store-22Jswiqe.js.map +1 -0
  36. package/dist/cjs/nl-BE-yKvOp1-G.js +542 -0
  37. package/dist/cjs/nl-BE-yKvOp1-G.js.map +1 -0
  38. package/dist/cjs/{profile-helpers-Bprrm-Xl.js → profile-helpers-BBpAqHjK.js} +4 -4
  39. package/dist/cjs/{profile-helpers-Bprrm-Xl.js.map → profile-helpers-BBpAqHjK.js.map} +1 -1
  40. package/dist/cjs/{profile-store-C_q-TuA_.js → profile-store-CQEQhPQD.js} +4 -4
  41. package/dist/cjs/{profile-store-C_q-TuA_.js.map → profile-store-CQEQhPQD.js.map} +1 -1
  42. package/dist/cjs/redirect-with-token-wupYX97S.js +37 -0
  43. package/dist/cjs/redirect-with-token-wupYX97S.js.map +1 -0
  44. package/dist/cjs/ro-CXq9d1lv.js +578 -0
  45. package/dist/cjs/ro-CXq9d1lv.js.map +1 -0
  46. package/dist/cjs/sdk.cjs.js +3 -3
  47. package/dist/cjs/sv-CMln4V33.js +597 -0
  48. package/dist/cjs/sv-CMln4V33.js.map +1 -0
  49. package/dist/cjs/u-conditional-render.cjs.entry.js +14 -14
  50. package/dist/cjs/u-conditional-render.entry.cjs.js.map +1 -1
  51. package/dist/cjs/u-config.cjs.entry.js +24 -11
  52. package/dist/cjs/u-config.entry.cjs.js.map +1 -1
  53. package/dist/cjs/u-email-field.cjs.entry.js +7 -7
  54. package/dist/cjs/u-error-message.cjs.entry.js +49 -22
  55. package/dist/cjs/u-error-message.entry.cjs.js.map +1 -1
  56. package/dist/cjs/u-field.u-raw-field.entry.cjs.js.map +1 -1
  57. package/dist/cjs/u-field_2.cjs.entry.js +124 -12
  58. package/dist/cjs/u-flash-message.cjs.entry.js +3 -3
  59. package/dist/cjs/u-full-profile.cjs.entry.js +6 -6
  60. package/dist/cjs/u-jump-to-service.cjs.entry.js +23 -44
  61. package/dist/cjs/u-jump-to-service.entry.cjs.js.map +1 -1
  62. package/dist/cjs/u-jump-to-unidy.cjs.entry.js +22 -43
  63. package/dist/cjs/u-jump-to-unidy.entry.cjs.js.map +1 -1
  64. package/dist/cjs/u-logout-button.u-signed-in.entry.cjs.js.map +1 -1
  65. package/dist/cjs/u-logout-button_2.cjs.entry.js +15 -22
  66. package/dist/cjs/u-magic-code-field.cjs.entry.js +8 -9
  67. package/dist/cjs/u-magic-code-field.entry.cjs.js.map +1 -1
  68. package/dist/cjs/u-missing-field.cjs.entry.js +6 -5
  69. package/dist/cjs/u-missing-field.entry.cjs.js.map +1 -1
  70. package/dist/cjs/u-missing-fields-submit-button.cjs.entry.js +16 -14
  71. package/dist/cjs/u-missing-fields-submit-button.entry.cjs.js.map +1 -1
  72. package/dist/cjs/u-newsletter-checkbox.cjs.entry.js +11 -12
  73. package/dist/cjs/u-newsletter-checkbox.entry.cjs.js.map +1 -1
  74. package/dist/cjs/u-newsletter-consent-checkbox.cjs.entry.js +4 -4
  75. package/dist/cjs/u-newsletter-logout-button.cjs.entry.js +15 -20
  76. package/dist/cjs/u-newsletter-logout-button.entry.cjs.js.map +1 -1
  77. package/dist/cjs/u-newsletter-preference-checkbox.cjs.entry.js +11 -12
  78. package/dist/cjs/u-newsletter-preference-checkbox.entry.cjs.js.map +1 -1
  79. package/dist/cjs/u-newsletter-resend-doi-button.cjs.entry.js +10 -11
  80. package/dist/cjs/u-newsletter-resend-doi-button.entry.cjs.js.map +1 -1
  81. package/dist/cjs/u-newsletter-root.cjs.entry.js +45 -22
  82. package/dist/cjs/u-newsletter-root.entry.cjs.js.map +1 -1
  83. package/dist/cjs/u-newsletter-toggle-subscription-button.cjs.entry.js +11 -12
  84. package/dist/cjs/u-newsletter-toggle-subscription-button.entry.cjs.js.map +1 -1
  85. package/dist/cjs/u-pagination-button.cjs.entry.js +4 -4
  86. package/dist/cjs/u-pagination-button.entry.cjs.js.map +1 -1
  87. package/dist/cjs/u-pagination-page.cjs.entry.js +4 -4
  88. package/dist/cjs/u-pagination-page.entry.cjs.js.map +1 -1
  89. package/dist/cjs/u-passkey.cjs.entry.js +8 -9
  90. package/dist/cjs/u-passkey.entry.cjs.js.map +1 -1
  91. package/dist/cjs/u-password-field.cjs.entry.js +5 -5
  92. package/dist/cjs/u-profile.u-submit-button.entry.cjs.js.map +1 -1
  93. package/dist/cjs/u-profile_2.cjs.entry.js +31 -33
  94. package/dist/cjs/u-registration-button.cjs.entry.js +5 -5
  95. package/dist/cjs/u-reset-password-button.cjs.entry.js +12 -15
  96. package/dist/cjs/u-reset-password-button.entry.cjs.js.map +1 -1
  97. package/dist/cjs/u-send-magic-code-button.cjs.entry.js +8 -9
  98. package/dist/cjs/u-send-magic-code-button.entry.cjs.js.map +1 -1
  99. package/dist/cjs/u-signin-root.cjs.entry.js +6 -8
  100. package/dist/cjs/u-signin-root.entry.cjs.js.map +1 -1
  101. package/dist/cjs/u-signin-step.cjs.entry.js +17 -21
  102. package/dist/cjs/u-signin-step.entry.cjs.js.map +1 -1
  103. package/dist/cjs/u-social-login-button.cjs.entry.js +16 -15
  104. package/dist/cjs/u-social-login-button.entry.cjs.js.map +1 -1
  105. package/dist/cjs/u-spinner.cjs.entry.js +3 -3
  106. package/dist/cjs/u-spinner.entry.cjs.js.map +1 -1
  107. package/dist/cjs/u-ticketable-export.cjs.entry.js +76 -0
  108. package/dist/cjs/u-ticketable-export.entry.cjs.js.map +1 -0
  109. package/dist/cjs/u-ticketable-list-D3M8iA-g.js +3991 -0
  110. package/dist/cjs/u-ticketable-list-D3M8iA-g.js.map +1 -0
  111. package/dist/cjs/u-ticketable-list.cjs.entry.js +11 -6118
  112. package/dist/cjs/u-ticketable-list.entry.cjs.js.map +1 -1
  113. package/dist/cjs/{unidy-store-BGnWn9pc.js → unidy-store-Bvnl24i9.js} +3 -3
  114. package/dist/cjs/{unidy-store-BGnWn9pc.js.map → unidy-store-Bvnl24i9.js.map} +1 -1
  115. package/dist/collection/api/base-service.js.map +1 -1
  116. package/dist/collection/api/client.js.map +1 -1
  117. package/dist/collection/api/index.js +6 -6
  118. package/dist/collection/api/index.js.map +1 -1
  119. package/dist/collection/api/standalone.js +88 -39
  120. package/dist/collection/api/standalone.js.map +1 -1
  121. package/dist/collection/auth/api/auth.js.map +1 -1
  122. package/dist/collection/auth/api/schemas.js +5 -5
  123. package/dist/collection/auth/api/schemas.js.map +1 -1
  124. package/dist/collection/auth/auth-helpers.js +7 -8
  125. package/dist/collection/auth/auth-helpers.js.map +1 -1
  126. package/dist/collection/auth/auth.js +1 -0
  127. package/dist/collection/auth/auth.js.map +1 -1
  128. package/dist/collection/auth/components/jump-to-service/jump-to-service.js +20 -40
  129. package/dist/collection/auth/components/jump-to-service/jump-to-service.js.map +1 -1
  130. package/dist/collection/auth/components/jump-to-unidy/jump-to-unidy.js +20 -39
  131. package/dist/collection/auth/components/jump-to-unidy/jump-to-unidy.js.map +1 -1
  132. package/dist/collection/auth/components/logout-button/logout-button.js +7 -11
  133. package/dist/collection/auth/components/logout-button/logout-button.js.map +1 -1
  134. package/dist/collection/auth/components/missing-field/missing-field.js +25 -1
  135. package/dist/collection/auth/components/missing-field/missing-field.js.map +1 -1
  136. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js +33 -7
  137. package/dist/collection/auth/components/missing-fields-submit-button/missing-fields-submit-button.js.map +1 -1
  138. package/dist/collection/auth/components/password-field/password-field.js +1 -1
  139. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js +6 -8
  140. package/dist/collection/auth/components/reset-pass-button/reset-pass-button.js.map +1 -1
  141. package/dist/collection/auth/components/signed-in/signed-in.js +2 -5
  142. package/dist/collection/auth/components/signed-in/signed-in.js.map +1 -1
  143. package/dist/collection/auth/components/signin-root/signin-root.js +2 -5
  144. package/dist/collection/auth/components/signin-root/signin-root.js.map +1 -1
  145. package/dist/collection/auth/components/signin-step/signin-step.js +9 -13
  146. package/dist/collection/auth/components/signin-step/signin-step.js.map +1 -1
  147. package/dist/collection/auth/components/social-logins/social-login-button.css +1 -1
  148. package/dist/collection/auth/components/social-logins/social-login-button.js +11 -12
  149. package/dist/collection/auth/components/social-logins/social-login-button.js.map +1 -1
  150. package/dist/collection/auth/components/submit-button/auth-submit-button.js +10 -0
  151. package/dist/collection/auth/components/submit-button/auth-submit-button.js.map +1 -1
  152. package/dist/collection/collection-manifest.json +1 -0
  153. package/dist/collection/locales/de.json +16 -0
  154. package/dist/collection/locales/en.json +16 -0
  155. package/dist/collection/locales/fr.json +16 -0
  156. package/dist/collection/locales/it.json +16 -0
  157. package/dist/collection/locales/nl_be.json +16 -0
  158. package/dist/collection/locales/ro.json +16 -0
  159. package/dist/collection/logger.js +0 -37
  160. package/dist/collection/logger.js.map +1 -1
  161. package/dist/collection/newsletter/api/newsletters.js +19 -18
  162. package/dist/collection/newsletter/api/newsletters.js.map +1 -1
  163. package/dist/collection/newsletter/components/consent-checkbox/consent-checkbox.js +1 -1
  164. package/dist/collection/newsletter/components/logout-button/logout-button.js +6 -10
  165. package/dist/collection/newsletter/components/logout-button/logout-button.js.map +1 -1
  166. package/dist/collection/newsletter/components/newsletter-checkbox/newsletter-checkbox.js +1 -1
  167. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js +65 -10
  168. package/dist/collection/newsletter/components/newsletter-root/newsletter-root.js.map +1 -1
  169. package/dist/collection/newsletter/components/preference-checkbox/preference-checkbox.js +1 -1
  170. package/dist/collection/newsletter/components/toggle-subscription-button/toggle-subscription-button.js +1 -1
  171. package/dist/collection/newsletter/newsletter-helpers.js +39 -2
  172. package/dist/collection/newsletter/newsletter-helpers.js.map +1 -1
  173. package/dist/collection/newsletter/store/newsletter-store.js +2 -0
  174. package/dist/collection/newsletter/store/newsletter-store.js.map +1 -1
  175. package/dist/collection/profile/api/profile.js.map +1 -1
  176. package/dist/collection/profile/api/schemas.js +1 -1
  177. package/dist/collection/profile/api/schemas.js.map +1 -1
  178. package/dist/collection/profile/components/field/field.js +3 -1
  179. package/dist/collection/profile/components/field/field.js.map +1 -1
  180. package/dist/collection/profile/components/full-profile/full-profile.js +1 -1
  181. package/dist/collection/profile/components/raw-field/raw-field.js +40 -7
  182. package/dist/collection/profile/components/raw-field/raw-field.js.map +1 -1
  183. package/dist/collection/profile/store/profile-store.js +1 -1
  184. package/dist/collection/profile/store/profile-store.js.map +1 -1
  185. package/dist/collection/shared/base/component.js +28 -0
  186. package/dist/collection/shared/base/component.js.map +1 -0
  187. package/dist/collection/shared/base/has-slot-content.js +31 -0
  188. package/dist/collection/shared/base/has-slot-content.js.map +1 -0
  189. package/dist/collection/shared/component-utils.js +23 -27
  190. package/dist/collection/shared/component-utils.js.map +1 -1
  191. package/dist/collection/shared/components/conditional-render/conditional-render.js +4 -5
  192. package/dist/collection/shared/components/conditional-render/conditional-render.js.map +1 -1
  193. package/dist/collection/shared/components/config/config.js +18 -5
  194. package/dist/collection/shared/components/config/config.js.map +1 -1
  195. package/dist/collection/shared/components/email-field/email-field.js +1 -1
  196. package/dist/collection/shared/components/error-message/error-message.css +1 -1
  197. package/dist/collection/shared/components/error-message/error-message.js +44 -17
  198. package/dist/collection/shared/components/error-message/error-message.js.map +1 -1
  199. package/dist/collection/shared/components/spinner/spinner.css +1 -1
  200. package/dist/collection/shared/components/spinner/spinner.js +1 -1
  201. package/dist/collection/shared/components/submit-button/submit-button.css +1 -1
  202. package/dist/collection/shared/components/submit-button/submit-button.js +12 -23
  203. package/dist/collection/shared/components/submit-button/submit-button.js.map +1 -1
  204. package/dist/collection/shared/context-utils.js +96 -0
  205. package/dist/collection/shared/context-utils.js.map +1 -0
  206. package/dist/collection/shared/utils/redirect-with-token.js +30 -0
  207. package/dist/collection/shared/utils/redirect-with-token.js.map +1 -0
  208. package/dist/collection/shared/utils/url-utils.js +25 -0
  209. package/dist/collection/shared/utils/url-utils.js.map +1 -0
  210. package/dist/collection/ticketable/api/schemas.js +10 -2
  211. package/dist/collection/ticketable/api/schemas.js.map +1 -1
  212. package/dist/collection/ticketable/api/subscriptions.js +22 -1
  213. package/dist/collection/ticketable/api/subscriptions.js.map +1 -1
  214. package/dist/collection/ticketable/api/tickets.js +22 -1
  215. package/dist/collection/ticketable/api/tickets.js.map +1 -1
  216. package/dist/collection/ticketable/components/pagination/pagination-button.js +3 -5
  217. package/dist/collection/ticketable/components/pagination/pagination-button.js.map +1 -1
  218. package/dist/collection/ticketable/components/pagination/pagination-page.js +3 -5
  219. package/dist/collection/ticketable/components/pagination/pagination-page.js.map +1 -1
  220. package/dist/collection/ticketable/components/ticketable-export/ticketable-export.js +175 -0
  221. package/dist/collection/ticketable/components/ticketable-export/ticketable-export.js.map +1 -0
  222. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js +163 -25
  223. package/dist/collection/ticketable/components/ticketable-list/ticketable-list.js.map +1 -1
  224. package/dist/collection/ticketable/index.js +1 -0
  225. package/dist/collection/ticketable/index.js.map +1 -1
  226. package/dist/components/_commonjsHelpers.js +8 -0
  227. package/dist/components/_commonjsHelpers.js.map +1 -0
  228. package/dist/components/component-utils.js +25 -28
  229. package/dist/components/component-utils.js.map +1 -1
  230. package/dist/components/component.js +33 -0
  231. package/dist/components/component.js.map +1 -0
  232. package/dist/components/de.js +702 -0
  233. package/dist/components/de.js.map +1 -0
  234. package/dist/components/en-GB.js +117 -0
  235. package/dist/components/en-GB.js.map +1 -0
  236. package/dist/components/field.js +3 -1
  237. package/dist/components/field.js.map +1 -1
  238. package/dist/components/fr.js +575 -0
  239. package/dist/components/fr.js.map +1 -0
  240. package/dist/components/has-slot-content.js +35 -0
  241. package/dist/components/has-slot-content.js.map +1 -0
  242. package/dist/components/i18n.js +96 -0
  243. package/dist/components/i18n.js.map +1 -1
  244. package/dist/components/index.js +11 -3
  245. package/dist/components/index.js.map +1 -1
  246. package/dist/components/index2.js +1158 -1083
  247. package/dist/components/index2.js.map +1 -1
  248. package/dist/components/logger.js +1 -39
  249. package/dist/components/logger.js.map +1 -1
  250. package/dist/components/newsletter-helpers.js +39 -2
  251. package/dist/components/newsletter-helpers.js.map +1 -1
  252. package/dist/components/newsletter-store.js +2 -0
  253. package/dist/components/newsletter-store.js.map +1 -1
  254. package/dist/components/nl-BE.js +540 -0
  255. package/dist/components/nl-BE.js.map +1 -0
  256. package/dist/components/profile-store.js +1 -1
  257. package/dist/components/profile-store.js.map +1 -1
  258. package/dist/components/raw-field.js +116 -7
  259. package/dist/components/raw-field.js.map +1 -1
  260. package/dist/components/redirect-with-token.js +35 -0
  261. package/dist/components/redirect-with-token.js.map +1 -0
  262. package/dist/components/ro.js +576 -0
  263. package/dist/components/ro.js.map +1 -0
  264. package/dist/components/spinner.js +2 -2
  265. package/dist/components/spinner.js.map +1 -1
  266. package/dist/components/submit-button.js +21 -24
  267. package/dist/components/submit-button.js.map +1 -1
  268. package/dist/components/sv.js +595 -0
  269. package/dist/components/sv.js.map +1 -0
  270. package/dist/components/u-conditional-render.js +5 -6
  271. package/dist/components/u-conditional-render.js.map +1 -1
  272. package/dist/components/u-config.js +16 -3
  273. package/dist/components/u-config.js.map +1 -1
  274. package/dist/components/u-email-field.js +1 -1
  275. package/dist/components/u-error-message.js +44 -19
  276. package/dist/components/u-error-message.js.map +1 -1
  277. package/dist/components/u-full-profile.js +1 -1
  278. package/dist/components/u-jump-to-service.js +16 -38
  279. package/dist/components/u-jump-to-service.js.map +1 -1
  280. package/dist/components/u-jump-to-unidy.js +16 -37
  281. package/dist/components/u-jump-to-unidy.js.map +1 -1
  282. package/dist/components/u-logout-button.js +5 -11
  283. package/dist/components/u-logout-button.js.map +1 -1
  284. package/dist/components/u-missing-field.js +5 -2
  285. package/dist/components/u-missing-field.js.map +1 -1
  286. package/dist/components/u-missing-fields-submit-button.js +10 -8
  287. package/dist/components/u-missing-fields-submit-button.js.map +1 -1
  288. package/dist/components/u-newsletter-checkbox.js +1 -1
  289. package/dist/components/u-newsletter-consent-checkbox.js +1 -1
  290. package/dist/components/u-newsletter-logout-button.js +6 -12
  291. package/dist/components/u-newsletter-logout-button.js.map +1 -1
  292. package/dist/components/u-newsletter-preference-checkbox.js +1 -1
  293. package/dist/components/u-newsletter-root.js +35 -12
  294. package/dist/components/u-newsletter-root.js.map +1 -1
  295. package/dist/components/u-newsletter-toggle-subscription-button.js +1 -1
  296. package/dist/components/u-pagination-button.js +3 -4
  297. package/dist/components/u-pagination-button.js.map +1 -1
  298. package/dist/components/u-pagination-page.js +3 -4
  299. package/dist/components/u-pagination-page.js.map +1 -1
  300. package/dist/components/u-reset-password-button.js +4 -8
  301. package/dist/components/u-reset-password-button.js.map +1 -1
  302. package/dist/components/u-signed-in.js +3 -6
  303. package/dist/components/u-signed-in.js.map +1 -1
  304. package/dist/components/u-signin-root.js +3 -6
  305. package/dist/components/u-signin-root.js.map +1 -1
  306. package/dist/components/u-signin-step.js +10 -14
  307. package/dist/components/u-signin-step.js.map +1 -1
  308. package/dist/components/u-social-login-button.js +13 -14
  309. package/dist/components/u-social-login-button.js.map +1 -1
  310. package/dist/components/u-ticketable-export.d.ts +11 -0
  311. package/dist/components/u-ticketable-export.js +93 -0
  312. package/dist/components/u-ticketable-export.js.map +1 -0
  313. package/dist/components/u-ticketable-list.js +256 -2396
  314. package/dist/components/u-ticketable-list.js.map +1 -1
  315. package/dist/esm/_commonjsHelpers-B85MJLTf.js +8 -0
  316. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  317. package/dist/esm/app-globals-J743qnJf.js +8 -0
  318. package/dist/esm/app-globals-J743qnJf.js.map +1 -0
  319. package/dist/esm/{auth-store-DBlGNGhq.js → auth-store-CSpEdi46.js} +4 -4
  320. package/dist/esm/{auth-store-DBlGNGhq.js.map → auth-store-CSpEdi46.js.map} +1 -1
  321. package/dist/esm/component-qfegGRWr.js +32 -0
  322. package/dist/esm/component-qfegGRWr.js.map +1 -0
  323. package/dist/esm/component-utils-WEof9bTg.js +36 -0
  324. package/dist/esm/component-utils-WEof9bTg.js.map +1 -0
  325. package/dist/esm/de-C6AnCqsA.js +702 -0
  326. package/dist/esm/de-C6AnCqsA.js.map +1 -0
  327. package/dist/esm/en-GB-DO63WPxt.js +117 -0
  328. package/dist/esm/en-GB-DO63WPxt.js.map +1 -0
  329. package/dist/esm/{flash-store-Df2YkLTB.js → flash-store-Dn1Bava8.js} +3 -3
  330. package/dist/esm/{flash-store-Df2YkLTB.js.map → flash-store-Dn1Bava8.js.map} +1 -1
  331. package/dist/esm/fr-C0oU6-EJ.js +575 -0
  332. package/dist/esm/fr-C0oU6-EJ.js.map +1 -0
  333. package/dist/esm/has-slot-content-DSMkJu9G.js +35 -0
  334. package/dist/esm/has-slot-content-DSMkJu9G.js.map +1 -0
  335. package/dist/esm/{i18n-Da7S9Oqf.js → i18n-ioyZxWsT.js} +100 -4
  336. package/dist/esm/{i18n-Da7S9Oqf.js.map → i18n-ioyZxWsT.js.map} +1 -1
  337. package/dist/esm/{index-FTKB5a1d.js → index-BsJDptgj.js} +4 -40
  338. package/dist/esm/index-BsJDptgj.js.map +1 -0
  339. package/dist/esm/{index-BnAYOYR5.js → index-C8kmD3tu.js} +3 -3
  340. package/dist/esm/{index-BnAYOYR5.js.map → index-C8kmD3tu.js.map} +1 -1
  341. package/dist/esm/{index-BVlbCQEX.js → index-kgGjfc-n.js} +1163 -1088
  342. package/dist/esm/index-kgGjfc-n.js.map +1 -0
  343. package/dist/esm/index.js +18 -12
  344. package/dist/esm/index.js.map +1 -1
  345. package/dist/esm/loader.js +4 -4
  346. package/dist/esm/{newsletter-helpers-fCpxzovf.js → newsletter-helpers-DoKGN_Kq.js} +46 -9
  347. package/dist/esm/newsletter-helpers-DoKGN_Kq.js.map +1 -0
  348. package/dist/esm/{newsletter-store-BB618FgS.js → newsletter-store-DpR85vaC.js} +5 -3
  349. package/dist/esm/newsletter-store-DpR85vaC.js.map +1 -0
  350. package/dist/esm/nl-BE-C8uPYb_H.js +540 -0
  351. package/dist/esm/nl-BE-C8uPYb_H.js.map +1 -0
  352. package/dist/esm/{profile-helpers-CXK2X6Ts.js → profile-helpers-BMJy0ei_.js} +4 -4
  353. package/dist/esm/{profile-helpers-CXK2X6Ts.js.map → profile-helpers-BMJy0ei_.js.map} +1 -1
  354. package/dist/esm/{profile-store-CHlSKuTY.js → profile-store-7wBS3gBH.js} +4 -4
  355. package/dist/esm/{profile-store-CHlSKuTY.js.map → profile-store-7wBS3gBH.js.map} +1 -1
  356. package/dist/esm/redirect-with-token-StCLJlSp.js +35 -0
  357. package/dist/esm/redirect-with-token-StCLJlSp.js.map +1 -0
  358. package/dist/esm/ro-BlDHz7d-.js +576 -0
  359. package/dist/esm/ro-BlDHz7d-.js.map +1 -0
  360. package/dist/esm/sdk.js +4 -4
  361. package/dist/esm/sv-B_Gq29K0.js +595 -0
  362. package/dist/esm/sv-B_Gq29K0.js.map +1 -0
  363. package/dist/esm/u-conditional-render.entry.js +14 -14
  364. package/dist/esm/u-conditional-render.entry.js.map +1 -1
  365. package/dist/esm/u-config.entry.js +24 -11
  366. package/dist/esm/u-config.entry.js.map +1 -1
  367. package/dist/esm/u-email-field.entry.js +7 -7
  368. package/dist/esm/u-error-message.entry.js +49 -22
  369. package/dist/esm/u-error-message.entry.js.map +1 -1
  370. package/dist/esm/u-field.u-raw-field.entry.js.map +1 -1
  371. package/dist/esm/u-field_2.entry.js +124 -12
  372. package/dist/esm/u-flash-message.entry.js +3 -3
  373. package/dist/esm/u-full-profile.entry.js +6 -6
  374. package/dist/esm/u-jump-to-service.entry.js +23 -44
  375. package/dist/esm/u-jump-to-service.entry.js.map +1 -1
  376. package/dist/esm/u-jump-to-unidy.entry.js +22 -43
  377. package/dist/esm/u-jump-to-unidy.entry.js.map +1 -1
  378. package/dist/esm/u-logout-button.u-signed-in.entry.js.map +1 -1
  379. package/dist/esm/u-logout-button_2.entry.js +15 -22
  380. package/dist/esm/u-magic-code-field.entry.js +8 -9
  381. package/dist/esm/u-magic-code-field.entry.js.map +1 -1
  382. package/dist/esm/u-missing-field.entry.js +6 -5
  383. package/dist/esm/u-missing-field.entry.js.map +1 -1
  384. package/dist/esm/u-missing-fields-submit-button.entry.js +16 -14
  385. package/dist/esm/u-missing-fields-submit-button.entry.js.map +1 -1
  386. package/dist/esm/u-newsletter-checkbox.entry.js +11 -12
  387. package/dist/esm/u-newsletter-checkbox.entry.js.map +1 -1
  388. package/dist/esm/u-newsletter-consent-checkbox.entry.js +4 -4
  389. package/dist/esm/u-newsletter-logout-button.entry.js +15 -20
  390. package/dist/esm/u-newsletter-logout-button.entry.js.map +1 -1
  391. package/dist/esm/u-newsletter-preference-checkbox.entry.js +11 -12
  392. package/dist/esm/u-newsletter-preference-checkbox.entry.js.map +1 -1
  393. package/dist/esm/u-newsletter-resend-doi-button.entry.js +10 -11
  394. package/dist/esm/u-newsletter-resend-doi-button.entry.js.map +1 -1
  395. package/dist/esm/u-newsletter-root.entry.js +42 -19
  396. package/dist/esm/u-newsletter-root.entry.js.map +1 -1
  397. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js +11 -12
  398. package/dist/esm/u-newsletter-toggle-subscription-button.entry.js.map +1 -1
  399. package/dist/esm/u-pagination-button.entry.js +4 -4
  400. package/dist/esm/u-pagination-button.entry.js.map +1 -1
  401. package/dist/esm/u-pagination-page.entry.js +4 -4
  402. package/dist/esm/u-pagination-page.entry.js.map +1 -1
  403. package/dist/esm/u-passkey.entry.js +8 -9
  404. package/dist/esm/u-passkey.entry.js.map +1 -1
  405. package/dist/esm/u-password-field.entry.js +5 -5
  406. package/dist/esm/u-profile.u-submit-button.entry.js.map +1 -1
  407. package/dist/esm/u-profile_2.entry.js +31 -33
  408. package/dist/esm/u-registration-button.entry.js +5 -5
  409. package/dist/esm/u-reset-password-button.entry.js +12 -15
  410. package/dist/esm/u-reset-password-button.entry.js.map +1 -1
  411. package/dist/esm/u-send-magic-code-button.entry.js +8 -9
  412. package/dist/esm/u-send-magic-code-button.entry.js.map +1 -1
  413. package/dist/esm/u-signin-root.entry.js +6 -8
  414. package/dist/esm/u-signin-root.entry.js.map +1 -1
  415. package/dist/esm/u-signin-step.entry.js +17 -21
  416. package/dist/esm/u-signin-step.entry.js.map +1 -1
  417. package/dist/esm/u-social-login-button.entry.js +16 -15
  418. package/dist/esm/u-social-login-button.entry.js.map +1 -1
  419. package/dist/esm/u-spinner.entry.js +3 -3
  420. package/dist/esm/u-spinner.entry.js.map +1 -1
  421. package/dist/esm/u-ticketable-export.entry.js +74 -0
  422. package/dist/esm/u-ticketable-export.entry.js.map +1 -0
  423. package/dist/esm/u-ticketable-list-D2p21JjR.js +3981 -0
  424. package/dist/esm/u-ticketable-list-D2p21JjR.js.map +1 -0
  425. package/dist/esm/u-ticketable-list.entry.js +10 -6121
  426. package/dist/esm/u-ticketable-list.entry.js.map +1 -1
  427. package/dist/esm/{unidy-store-Bg7IaIMd.js → unidy-store-B5Bf4Vit.js} +3 -3
  428. package/dist/esm/{unidy-store-Bg7IaIMd.js.map → unidy-store-B5Bf4Vit.js.map} +1 -1
  429. package/dist/sdk/index.esm.js +1 -1
  430. package/dist/sdk/index.esm.js.map +1 -1
  431. package/dist/sdk/locales/de.json +16 -0
  432. package/dist/sdk/locales/en.json +16 -0
  433. package/dist/sdk/locales/fr.json +16 -0
  434. package/dist/sdk/locales/it.json +16 -0
  435. package/dist/sdk/locales/nl_be.json +16 -0
  436. package/dist/sdk/locales/ro.json +16 -0
  437. package/dist/sdk/p-02dce5da.entry.js +2 -0
  438. package/dist/sdk/p-02dce5da.entry.js.map +1 -0
  439. package/dist/sdk/p-043c7643.entry.js +2 -0
  440. package/dist/sdk/p-043c7643.entry.js.map +1 -0
  441. package/dist/sdk/p-18c17747.entry.js +2 -0
  442. package/dist/sdk/p-18c17747.entry.js.map +1 -0
  443. package/dist/sdk/p-1a1c1af0.entry.js +2 -0
  444. package/dist/sdk/p-1a1c1af0.entry.js.map +1 -0
  445. package/dist/sdk/p-271781c7.entry.js +2 -0
  446. package/dist/sdk/{p-1a8973a6.entry.js.map → p-271781c7.entry.js.map} +1 -1
  447. package/dist/sdk/p-29473a55.entry.js +2 -0
  448. package/dist/sdk/p-29473a55.entry.js.map +1 -0
  449. package/dist/sdk/p-2a25d62e.entry.js +2 -0
  450. package/dist/sdk/p-2a25d62e.entry.js.map +1 -0
  451. package/dist/sdk/{p-C8lRzJEX.js → p-2bKltz_F.js} +2 -2
  452. package/dist/sdk/{p-C8lRzJEX.js.map → p-2bKltz_F.js.map} +1 -1
  453. package/dist/sdk/p-2cc3a00d.entry.js +2 -0
  454. package/dist/sdk/p-2cc3a00d.entry.js.map +1 -0
  455. package/dist/sdk/p-2f49e0cb.entry.js +2 -0
  456. package/dist/sdk/p-2f49e0cb.entry.js.map +1 -0
  457. package/dist/sdk/p-34f5d201.entry.js +2 -0
  458. package/dist/sdk/p-34f5d201.entry.js.map +1 -0
  459. package/dist/sdk/p-52c4bdd9.entry.js +2 -0
  460. package/dist/sdk/p-52c4bdd9.entry.js.map +1 -0
  461. package/dist/sdk/p-585a0efa.entry.js +2 -0
  462. package/dist/sdk/p-585a0efa.entry.js.map +1 -0
  463. package/dist/sdk/p-60675019.entry.js +2 -0
  464. package/dist/sdk/p-60675019.entry.js.map +1 -0
  465. package/dist/sdk/p-79ef9a70.entry.js +2 -0
  466. package/dist/sdk/p-79ef9a70.entry.js.map +1 -0
  467. package/dist/sdk/p-7d88e21c.entry.js +2 -0
  468. package/dist/sdk/p-7d88e21c.entry.js.map +1 -0
  469. package/dist/sdk/p-7eaf3468.entry.js +2 -0
  470. package/dist/sdk/p-7eaf3468.entry.js.map +1 -0
  471. package/dist/sdk/{p-88beb872.entry.js → p-8412762c.entry.js} +2 -2
  472. package/dist/sdk/p-8ea70c08.entry.js +2 -0
  473. package/dist/sdk/p-8ea70c08.entry.js.map +1 -0
  474. package/dist/sdk/p-946cdb0a.entry.js +2 -0
  475. package/dist/sdk/p-946cdb0a.entry.js.map +1 -0
  476. package/dist/sdk/p-94bb0217.entry.js +2 -0
  477. package/dist/sdk/p-94bb0217.entry.js.map +1 -0
  478. package/dist/sdk/{p-bcca06f1.entry.js → p-96860b09.entry.js} +2 -2
  479. package/dist/sdk/p-B1A6Nu24.js +2 -0
  480. package/dist/sdk/p-B1A6Nu24.js.map +1 -0
  481. package/dist/sdk/p-B85MJLTf.js +2 -0
  482. package/dist/sdk/p-B85MJLTf.js.map +1 -0
  483. package/dist/sdk/p-B8N6Bwsa.js +2 -0
  484. package/dist/sdk/{p-DCG3L43i.js.map → p-B8N6Bwsa.js.map} +1 -1
  485. package/dist/sdk/p-Ba5szISo.js +2 -0
  486. package/dist/sdk/p-Ba5szISo.js.map +1 -0
  487. package/dist/sdk/p-BsJDptgj.js +14 -0
  488. package/dist/sdk/p-BsJDptgj.js.map +1 -0
  489. package/dist/sdk/{p-bpXpOZY_.js → p-C0Mo15qt.js} +2 -2
  490. package/dist/sdk/{p-bpXpOZY_.js.map → p-C0Mo15qt.js.map} +1 -1
  491. package/dist/sdk/p-C10MAuCE.js +2 -0
  492. package/dist/sdk/p-C10MAuCE.js.map +1 -0
  493. package/dist/sdk/p-CTy6pQSg.js +2 -0
  494. package/dist/sdk/p-CTy6pQSg.js.map +1 -0
  495. package/dist/sdk/p-CW6kGAuQ.js +2 -0
  496. package/dist/sdk/p-CW6kGAuQ.js.map +1 -0
  497. package/dist/sdk/{p-DdMKVWx8.js → p-CbSP8My1.js} +2 -2
  498. package/dist/sdk/{p-DdMKVWx8.js.map → p-CbSP8My1.js.map} +1 -1
  499. package/dist/sdk/p-CbzzI4uW.js +2 -0
  500. package/dist/sdk/p-CbzzI4uW.js.map +1 -0
  501. package/dist/sdk/p-CgT6fZjb.js +2 -0
  502. package/dist/sdk/p-CgT6fZjb.js.map +1 -0
  503. package/dist/sdk/p-CuHZ3IkE.js +2 -0
  504. package/dist/sdk/p-CuHZ3IkE.js.map +1 -0
  505. package/dist/sdk/p-Cysk_vik.js +2 -0
  506. package/dist/sdk/p-Cysk_vik.js.map +1 -0
  507. package/dist/sdk/p-D0ut3waq.js +2 -0
  508. package/dist/sdk/p-D0ut3waq.js.map +1 -0
  509. package/dist/sdk/{p-BigbTrKk.js → p-D2Rf-QGm.js} +2 -2
  510. package/dist/sdk/{p-BigbTrKk.js.map → p-D2Rf-QGm.js.map} +1 -1
  511. package/dist/sdk/{p-6rqGeAfT.js → p-D9yFO_ID.js} +2 -2
  512. package/dist/sdk/{p-6rqGeAfT.js.map → p-D9yFO_ID.js.map} +1 -1
  513. package/dist/sdk/p-DD_5soRi.js +2 -0
  514. package/dist/sdk/p-DD_5soRi.js.map +1 -0
  515. package/dist/sdk/p-DHuvvagO.js +2 -0
  516. package/dist/sdk/p-DHuvvagO.js.map +1 -0
  517. package/dist/sdk/p-DSMkJu9G.js +2 -0
  518. package/dist/sdk/p-DSMkJu9G.js.map +1 -0
  519. package/dist/sdk/p-DcirMfca.js +2 -0
  520. package/dist/sdk/p-DcirMfca.js.map +1 -0
  521. package/dist/sdk/p-J0cv5IOA.js +2 -0
  522. package/dist/sdk/p-J0cv5IOA.js.map +1 -0
  523. package/dist/sdk/p-_5evboqW.js +2 -0
  524. package/dist/sdk/{p-DSktNM_k.js.map → p-_5evboqW.js.map} +1 -1
  525. package/dist/sdk/{p-7ee2f2ab.entry.js → p-ac3a6bbf.entry.js} +2 -2
  526. package/dist/sdk/p-b498bcdd.entry.js +2 -0
  527. package/dist/sdk/p-b498bcdd.entry.js.map +1 -0
  528. package/dist/sdk/p-b5dd5b4c.entry.js +2 -0
  529. package/dist/sdk/p-b5dd5b4c.entry.js.map +1 -0
  530. package/dist/sdk/{p-6b061b18.entry.js → p-b99588a8.entry.js} +2 -2
  531. package/dist/sdk/p-bf9c27a8.entry.js +2 -0
  532. package/dist/sdk/p-bf9c27a8.entry.js.map +1 -0
  533. package/dist/sdk/p-c10d9b8e.entry.js +2 -0
  534. package/dist/sdk/p-c10d9b8e.entry.js.map +1 -0
  535. package/dist/sdk/{p-10e20afd.entry.js → p-c2634439.entry.js} +2 -2
  536. package/dist/sdk/p-d6777395.entry.js +2 -0
  537. package/dist/sdk/p-d6777395.entry.js.map +1 -0
  538. package/dist/sdk/p-dbfe7b29.entry.js +2 -0
  539. package/dist/sdk/p-dbfe7b29.entry.js.map +1 -0
  540. package/dist/sdk/p-def4e874.entry.js +2 -0
  541. package/dist/sdk/p-def4e874.entry.js.map +1 -0
  542. package/dist/sdk/p-e872a012.entry.js +2 -0
  543. package/dist/sdk/p-e872a012.entry.js.map +1 -0
  544. package/dist/sdk/p-eaaf3989.entry.js +2 -0
  545. package/dist/sdk/p-eaaf3989.entry.js.map +1 -0
  546. package/dist/sdk/p-fd46b459.entry.js +2 -0
  547. package/dist/sdk/{p-830778eb.entry.js.map → p-fd46b459.entry.js.map} +1 -1
  548. package/dist/sdk/sdk.esm.js +1 -1
  549. package/dist/sdk/u-conditional-render.entry.esm.js.map +1 -1
  550. package/dist/sdk/u-config.entry.esm.js.map +1 -1
  551. package/dist/sdk/u-error-message.entry.esm.js.map +1 -1
  552. package/dist/sdk/u-field.u-raw-field.entry.esm.js.map +1 -1
  553. package/dist/sdk/u-jump-to-service.entry.esm.js.map +1 -1
  554. package/dist/sdk/u-jump-to-unidy.entry.esm.js.map +1 -1
  555. package/dist/sdk/u-logout-button.u-signed-in.entry.esm.js.map +1 -1
  556. package/dist/sdk/u-magic-code-field.entry.esm.js.map +1 -1
  557. package/dist/sdk/u-missing-field.entry.esm.js.map +1 -1
  558. package/dist/sdk/u-missing-fields-submit-button.entry.esm.js.map +1 -1
  559. package/dist/sdk/u-newsletter-checkbox.entry.esm.js.map +1 -1
  560. package/dist/sdk/u-newsletter-logout-button.entry.esm.js.map +1 -1
  561. package/dist/sdk/u-newsletter-preference-checkbox.entry.esm.js.map +1 -1
  562. package/dist/sdk/u-newsletter-resend-doi-button.entry.esm.js.map +1 -1
  563. package/dist/sdk/u-newsletter-root.entry.esm.js.map +1 -1
  564. package/dist/sdk/u-newsletter-toggle-subscription-button.entry.esm.js.map +1 -1
  565. package/dist/sdk/u-pagination-button.entry.esm.js.map +1 -1
  566. package/dist/sdk/u-pagination-page.entry.esm.js.map +1 -1
  567. package/dist/sdk/u-passkey.entry.esm.js.map +1 -1
  568. package/dist/sdk/u-profile.u-submit-button.entry.esm.js.map +1 -1
  569. package/dist/sdk/u-reset-password-button.entry.esm.js.map +1 -1
  570. package/dist/sdk/u-send-magic-code-button.entry.esm.js.map +1 -1
  571. package/dist/sdk/u-signin-root.entry.esm.js.map +1 -1
  572. package/dist/sdk/u-signin-step.entry.esm.js.map +1 -1
  573. package/dist/sdk/u-social-login-button.entry.esm.js.map +1 -1
  574. package/dist/sdk/u-spinner.entry.esm.js.map +1 -1
  575. package/dist/sdk/u-ticketable-export.entry.esm.js.map +1 -0
  576. package/dist/sdk/u-ticketable-list.entry.esm.js.map +1 -1
  577. package/dist/types/api/client.d.ts +1 -1
  578. package/dist/types/api/index.d.ts +4 -4
  579. package/dist/types/api/standalone.d.ts +9 -9
  580. package/dist/types/auth/api/auth.d.ts +2 -3
  581. package/dist/types/auth/api/schemas.d.ts +19 -19
  582. package/dist/types/auth/auth-helpers.d.ts +1 -0
  583. package/dist/types/auth/components/jump-to-service/jump-to-service.d.ts +13 -5
  584. package/dist/types/auth/components/jump-to-unidy/jump-to-unidy.d.ts +13 -9
  585. package/dist/types/auth/components/logout-button/logout-button.d.ts +13 -4
  586. package/dist/types/auth/components/missing-field/missing-field.d.ts +1 -0
  587. package/dist/types/auth/components/missing-fields-submit-button/missing-fields-submit-button.d.ts +14 -2
  588. package/dist/types/auth/components/reset-pass-button/reset-pass-button.d.ts +13 -4
  589. package/dist/types/auth/components/social-logins/social-login-button.d.ts +11 -7
  590. package/dist/types/components.d.ts +73 -0
  591. package/dist/types/logger.d.ts +0 -34
  592. package/dist/types/newsletter/components/logout-button/logout-button.d.ts +13 -4
  593. package/dist/types/newsletter/components/newsletter-root/newsletter-root.d.ts +16 -2
  594. package/dist/types/newsletter/newsletter-helpers.d.ts +8 -2
  595. package/dist/types/newsletter/store/newsletter-store.d.ts +8 -1
  596. package/dist/types/profile/api/profile.d.ts +2 -2
  597. package/dist/types/profile/api/schemas.d.ts +21 -21
  598. package/dist/types/profile/components/raw-field/raw-field.d.ts +14 -2
  599. package/dist/types/shared/base/component.d.ts +46 -0
  600. package/dist/types/shared/base/has-slot-content.d.ts +10 -0
  601. package/dist/types/shared/component-utils.d.ts +20 -12
  602. package/dist/types/shared/components/conditional-render/conditional-render.d.ts +7 -2
  603. package/dist/types/shared/components/config/config.d.ts +7 -2
  604. package/dist/types/shared/components/error-message/error-message.d.ts +14 -2
  605. package/dist/types/shared/components/submit-button/submit-button.d.ts +13 -4
  606. package/dist/types/shared/context-utils.d.ts +73 -0
  607. package/dist/types/shared/utils/redirect-with-token.d.ts +21 -0
  608. package/dist/types/shared/utils/url-utils.d.ts +16 -0
  609. package/dist/types/ticketable/api/schemas.d.ts +16 -2
  610. package/dist/types/ticketable/api/subscriptions.d.ts +8 -3
  611. package/dist/types/ticketable/api/tickets.d.ts +8 -3
  612. package/dist/types/ticketable/components/pagination/pagination-button.d.ts +8 -4
  613. package/dist/types/ticketable/components/pagination/pagination-page.d.ts +8 -4
  614. package/dist/types/ticketable/components/ticketable-export/ticketable-export.d.ts +24 -0
  615. package/dist/types/ticketable/components/ticketable-list/ticketable-list.d.ts +10 -4
  616. package/dist/types/ticketable/index.d.ts +1 -0
  617. package/package.json +6 -2
  618. package/readme.md +248 -27
  619. package/dist/cjs/app-globals-hdkLqF51.js +0 -10
  620. package/dist/cjs/app-globals-hdkLqF51.js.map +0 -1
  621. package/dist/cjs/component-utils-bu3SY4dE.js +0 -42
  622. package/dist/cjs/component-utils-bu3SY4dE.js.map +0 -1
  623. package/dist/cjs/index-B325yXfO.js.map +0 -1
  624. package/dist/cjs/index-BzPYBLYC.js.map +0 -1
  625. package/dist/cjs/newsletter-helpers-hdDC5X-V.js.map +0 -1
  626. package/dist/cjs/newsletter-store-CupsLgO9.js.map +0 -1
  627. package/dist/cjs/pagination-store-zo48QpTm.js +0 -16
  628. package/dist/cjs/pagination-store-zo48QpTm.js.map +0 -1
  629. package/dist/components/pagination-store.js +0 -14
  630. package/dist/components/pagination-store.js.map +0 -1
  631. package/dist/esm/app-globals-iHhGdwBB.js +0 -8
  632. package/dist/esm/app-globals-iHhGdwBB.js.map +0 -1
  633. package/dist/esm/component-utils-BGq0leDV.js +0 -39
  634. package/dist/esm/component-utils-BGq0leDV.js.map +0 -1
  635. package/dist/esm/index-BVlbCQEX.js.map +0 -1
  636. package/dist/esm/index-FTKB5a1d.js.map +0 -1
  637. package/dist/esm/newsletter-helpers-fCpxzovf.js.map +0 -1
  638. package/dist/esm/newsletter-store-BB618FgS.js.map +0 -1
  639. package/dist/esm/pagination-store-DxmcQH8R.js +0 -14
  640. package/dist/esm/pagination-store-DxmcQH8R.js.map +0 -1
  641. package/dist/sdk/p-1a8973a6.entry.js +0 -2
  642. package/dist/sdk/p-35ad60ab.entry.js +0 -2
  643. package/dist/sdk/p-35ad60ab.entry.js.map +0 -1
  644. package/dist/sdk/p-3f352f38.entry.js +0 -2
  645. package/dist/sdk/p-3f352f38.entry.js.map +0 -1
  646. package/dist/sdk/p-468aaf62.entry.js +0 -2
  647. package/dist/sdk/p-468aaf62.entry.js.map +0 -1
  648. package/dist/sdk/p-4e2e6a13.entry.js +0 -2
  649. package/dist/sdk/p-4e2e6a13.entry.js.map +0 -1
  650. package/dist/sdk/p-57c8dc68.entry.js +0 -2
  651. package/dist/sdk/p-57c8dc68.entry.js.map +0 -1
  652. package/dist/sdk/p-594aec0c.entry.js +0 -2
  653. package/dist/sdk/p-594aec0c.entry.js.map +0 -1
  654. package/dist/sdk/p-60c8be64.entry.js +0 -2
  655. package/dist/sdk/p-60c8be64.entry.js.map +0 -1
  656. package/dist/sdk/p-760718d3.entry.js +0 -2
  657. package/dist/sdk/p-760718d3.entry.js.map +0 -1
  658. package/dist/sdk/p-77f541f3.entry.js +0 -2
  659. package/dist/sdk/p-77f541f3.entry.js.map +0 -1
  660. package/dist/sdk/p-830778eb.entry.js +0 -2
  661. package/dist/sdk/p-8839648e.entry.js +0 -2
  662. package/dist/sdk/p-8839648e.entry.js.map +0 -1
  663. package/dist/sdk/p-B6MYe-dh.js +0 -2
  664. package/dist/sdk/p-B6MYe-dh.js.map +0 -1
  665. package/dist/sdk/p-BGq0leDV.js +0 -2
  666. package/dist/sdk/p-BGq0leDV.js.map +0 -1
  667. package/dist/sdk/p-C_UZBwdm.js +0 -2
  668. package/dist/sdk/p-C_UZBwdm.js.map +0 -1
  669. package/dist/sdk/p-CbazSxaZ.js +0 -2
  670. package/dist/sdk/p-CbazSxaZ.js.map +0 -1
  671. package/dist/sdk/p-DCG3L43i.js +0 -2
  672. package/dist/sdk/p-DEUPZOH-.js +0 -2
  673. package/dist/sdk/p-DEUPZOH-.js.map +0 -1
  674. package/dist/sdk/p-DSktNM_k.js +0 -2
  675. package/dist/sdk/p-FTKB5a1d.js +0 -14
  676. package/dist/sdk/p-FTKB5a1d.js.map +0 -1
  677. package/dist/sdk/p-a7ffcff9.entry.js +0 -2
  678. package/dist/sdk/p-a7ffcff9.entry.js.map +0 -1
  679. package/dist/sdk/p-acaba1d5.entry.js +0 -2
  680. package/dist/sdk/p-acaba1d5.entry.js.map +0 -1
  681. package/dist/sdk/p-ae47a7a3.entry.js +0 -2
  682. package/dist/sdk/p-ae47a7a3.entry.js.map +0 -1
  683. package/dist/sdk/p-aec580e4.entry.js +0 -2
  684. package/dist/sdk/p-aec580e4.entry.js.map +0 -1
  685. package/dist/sdk/p-b63438ff.entry.js +0 -2
  686. package/dist/sdk/p-b63438ff.entry.js.map +0 -1
  687. package/dist/sdk/p-baaaa7f5.entry.js +0 -2
  688. package/dist/sdk/p-baaaa7f5.entry.js.map +0 -1
  689. package/dist/sdk/p-bba2da84.entry.js +0 -2
  690. package/dist/sdk/p-bba2da84.entry.js.map +0 -1
  691. package/dist/sdk/p-bc47f42b.entry.js +0 -2
  692. package/dist/sdk/p-bc47f42b.entry.js.map +0 -1
  693. package/dist/sdk/p-bd51e26f.entry.js +0 -2
  694. package/dist/sdk/p-bd51e26f.entry.js.map +0 -1
  695. package/dist/sdk/p-c3552f75.entry.js +0 -2
  696. package/dist/sdk/p-c3552f75.entry.js.map +0 -1
  697. package/dist/sdk/p-d9900482.entry.js +0 -2
  698. package/dist/sdk/p-d9900482.entry.js.map +0 -1
  699. package/dist/sdk/p-e6796c38.entry.js +0 -2
  700. package/dist/sdk/p-e6796c38.entry.js.map +0 -1
  701. package/dist/sdk/p-f272eb38.entry.js +0 -2
  702. package/dist/sdk/p-f272eb38.entry.js.map +0 -1
  703. package/dist/sdk/p-f4a47ef8.entry.js +0 -2
  704. package/dist/sdk/p-f4a47ef8.entry.js.map +0 -1
  705. package/dist/sdk/p-f608e64a.entry.js +0 -2
  706. package/dist/sdk/p-f608e64a.entry.js.map +0 -1
  707. package/dist/sdk/p-f762ac70.entry.js +0 -2
  708. package/dist/sdk/p-f762ac70.entry.js.map +0 -1
  709. package/dist/sdk/p-l6NinBiD.js +0 -2
  710. package/dist/sdk/p-l6NinBiD.js.map +0 -1
  711. /package/dist/sdk/{p-88beb872.entry.js.map → p-8412762c.entry.js.map} +0 -0
  712. /package/dist/sdk/{p-bcca06f1.entry.js.map → p-96860b09.entry.js.map} +0 -0
  713. /package/dist/sdk/{p-7ee2f2ab.entry.js.map → p-ac3a6bbf.entry.js.map} +0 -0
  714. /package/dist/sdk/{p-6b061b18.entry.js.map → p-b99588a8.entry.js.map} +0 -0
  715. /package/dist/sdk/{p-10e20afd.entry.js.map → p-c2634439.entry.js.map} +0 -0
@@ -0,0 +1,3981 @@
1
+ import { r as registerInstance, d as createEvent, h, e as Host } from './index-BsJDptgj.js';
2
+ import { i as Auth, g as getUnidyClient } from './index-kgGjfc-n.js';
3
+ import { b as authStoreOnChange } from './auth-store-CSpEdi46.js';
4
+ import { t } from './i18n-ioyZxWsT.js';
5
+ import { U as UnidyComponent } from './component-qfegGRWr.js';
6
+ import { w as waitForConfig, u as unidyState } from './unidy-store-B5Bf4Vit.js';
7
+
8
+ var format = {};
9
+
10
+ var defaultLocale = {};
11
+
12
+ var enUS = {};
13
+
14
+ var formatDistance = {};
15
+
16
+ var hasRequiredFormatDistance;
17
+
18
+ function requireFormatDistance () {
19
+ if (hasRequiredFormatDistance) return formatDistance;
20
+ hasRequiredFormatDistance = 1;
21
+ formatDistance.formatDistance = void 0;
22
+
23
+ const formatDistanceLocale = {
24
+ lessThanXSeconds: {
25
+ one: "less than a second",
26
+ other: "less than {{count}} seconds",
27
+ },
28
+
29
+ xSeconds: {
30
+ one: "1 second",
31
+ other: "{{count}} seconds",
32
+ },
33
+
34
+ halfAMinute: "half a minute",
35
+
36
+ lessThanXMinutes: {
37
+ one: "less than a minute",
38
+ other: "less than {{count}} minutes",
39
+ },
40
+
41
+ xMinutes: {
42
+ one: "1 minute",
43
+ other: "{{count}} minutes",
44
+ },
45
+
46
+ aboutXHours: {
47
+ one: "about 1 hour",
48
+ other: "about {{count}} hours",
49
+ },
50
+
51
+ xHours: {
52
+ one: "1 hour",
53
+ other: "{{count}} hours",
54
+ },
55
+
56
+ xDays: {
57
+ one: "1 day",
58
+ other: "{{count}} days",
59
+ },
60
+
61
+ aboutXWeeks: {
62
+ one: "about 1 week",
63
+ other: "about {{count}} weeks",
64
+ },
65
+
66
+ xWeeks: {
67
+ one: "1 week",
68
+ other: "{{count}} weeks",
69
+ },
70
+
71
+ aboutXMonths: {
72
+ one: "about 1 month",
73
+ other: "about {{count}} months",
74
+ },
75
+
76
+ xMonths: {
77
+ one: "1 month",
78
+ other: "{{count}} months",
79
+ },
80
+
81
+ aboutXYears: {
82
+ one: "about 1 year",
83
+ other: "about {{count}} years",
84
+ },
85
+
86
+ xYears: {
87
+ one: "1 year",
88
+ other: "{{count}} years",
89
+ },
90
+
91
+ overXYears: {
92
+ one: "over 1 year",
93
+ other: "over {{count}} years",
94
+ },
95
+
96
+ almostXYears: {
97
+ one: "almost 1 year",
98
+ other: "almost {{count}} years",
99
+ },
100
+ };
101
+
102
+ const formatDistance$1 = (token, count, options) => {
103
+ let result;
104
+
105
+ const tokenValue = formatDistanceLocale[token];
106
+ if (typeof tokenValue === "string") {
107
+ result = tokenValue;
108
+ } else if (count === 1) {
109
+ result = tokenValue.one;
110
+ } else {
111
+ result = tokenValue.other.replace("{{count}}", count.toString());
112
+ }
113
+
114
+ if (options?.addSuffix) {
115
+ if (options.comparison && options.comparison > 0) {
116
+ return "in " + result;
117
+ } else {
118
+ return result + " ago";
119
+ }
120
+ }
121
+
122
+ return result;
123
+ };
124
+ formatDistance.formatDistance = formatDistance$1;
125
+ return formatDistance;
126
+ }
127
+
128
+ var formatLong = {};
129
+
130
+ var buildFormatLongFn = {};
131
+
132
+ var hasRequiredBuildFormatLongFn;
133
+
134
+ function requireBuildFormatLongFn () {
135
+ if (hasRequiredBuildFormatLongFn) return buildFormatLongFn;
136
+ hasRequiredBuildFormatLongFn = 1;
137
+ buildFormatLongFn.buildFormatLongFn = buildFormatLongFn$1;
138
+
139
+ function buildFormatLongFn$1(args) {
140
+ return (options = {}) => {
141
+ // TODO: Remove String()
142
+ const width = options.width ? String(options.width) : args.defaultWidth;
143
+ const format = args.formats[width] || args.formats[args.defaultWidth];
144
+ return format;
145
+ };
146
+ }
147
+ return buildFormatLongFn;
148
+ }
149
+
150
+ var hasRequiredFormatLong;
151
+
152
+ function requireFormatLong () {
153
+ if (hasRequiredFormatLong) return formatLong;
154
+ hasRequiredFormatLong = 1;
155
+ formatLong.formatLong = void 0;
156
+ var _index = /*@__PURE__*/ requireBuildFormatLongFn();
157
+
158
+ const dateFormats = {
159
+ full: "EEEE, MMMM do, y",
160
+ long: "MMMM do, y",
161
+ medium: "MMM d, y",
162
+ short: "MM/dd/yyyy",
163
+ };
164
+
165
+ const timeFormats = {
166
+ full: "h:mm:ss a zzzz",
167
+ long: "h:mm:ss a z",
168
+ medium: "h:mm:ss a",
169
+ short: "h:mm a",
170
+ };
171
+
172
+ const dateTimeFormats = {
173
+ full: "{{date}} 'at' {{time}}",
174
+ long: "{{date}} 'at' {{time}}",
175
+ medium: "{{date}}, {{time}}",
176
+ short: "{{date}}, {{time}}",
177
+ };
178
+
179
+ (formatLong.formatLong = {
180
+ date: (0, _index.buildFormatLongFn)({
181
+ formats: dateFormats,
182
+ defaultWidth: "full",
183
+ }),
184
+
185
+ time: (0, _index.buildFormatLongFn)({
186
+ formats: timeFormats,
187
+ defaultWidth: "full",
188
+ }),
189
+
190
+ dateTime: (0, _index.buildFormatLongFn)({
191
+ formats: dateTimeFormats,
192
+ defaultWidth: "full",
193
+ }),
194
+ });
195
+ return formatLong;
196
+ }
197
+
198
+ var formatRelative = {};
199
+
200
+ var hasRequiredFormatRelative;
201
+
202
+ function requireFormatRelative () {
203
+ if (hasRequiredFormatRelative) return formatRelative;
204
+ hasRequiredFormatRelative = 1;
205
+ formatRelative.formatRelative = void 0;
206
+
207
+ const formatRelativeLocale = {
208
+ lastWeek: "'last' eeee 'at' p",
209
+ yesterday: "'yesterday at' p",
210
+ today: "'today at' p",
211
+ tomorrow: "'tomorrow at' p",
212
+ nextWeek: "eeee 'at' p",
213
+ other: "P",
214
+ };
215
+
216
+ const formatRelative$1 = (token, _date, _baseDate, _options) =>
217
+ formatRelativeLocale[token];
218
+ formatRelative.formatRelative = formatRelative$1;
219
+ return formatRelative;
220
+ }
221
+
222
+ var localize = {};
223
+
224
+ var buildLocalizeFn = {};
225
+
226
+ var hasRequiredBuildLocalizeFn;
227
+
228
+ function requireBuildLocalizeFn () {
229
+ if (hasRequiredBuildLocalizeFn) return buildLocalizeFn;
230
+ hasRequiredBuildLocalizeFn = 1;
231
+ buildLocalizeFn.buildLocalizeFn = buildLocalizeFn$1;
232
+
233
+ /**
234
+ * The localize function argument callback which allows to convert raw value to
235
+ * the actual type.
236
+ *
237
+ * @param value - The value to convert
238
+ *
239
+ * @returns The converted value
240
+ */
241
+
242
+ /**
243
+ * The map of localized values for each width.
244
+ */
245
+
246
+ /**
247
+ * The index type of the locale unit value. It types conversion of units of
248
+ * values that don't start at 0 (i.e. quarters).
249
+ */
250
+
251
+ /**
252
+ * Converts the unit value to the tuple of values.
253
+ */
254
+
255
+ /**
256
+ * The tuple of localized era values. The first element represents BC,
257
+ * the second element represents AD.
258
+ */
259
+
260
+ /**
261
+ * The tuple of localized quarter values. The first element represents Q1.
262
+ */
263
+
264
+ /**
265
+ * The tuple of localized day values. The first element represents Sunday.
266
+ */
267
+
268
+ /**
269
+ * The tuple of localized month values. The first element represents January.
270
+ */
271
+
272
+ function buildLocalizeFn$1(args) {
273
+ return (value, options) => {
274
+ const context = options?.context ? String(options.context) : "standalone";
275
+
276
+ let valuesArray;
277
+ if (context === "formatting" && args.formattingValues) {
278
+ const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
279
+ const width = options?.width ? String(options.width) : defaultWidth;
280
+
281
+ valuesArray =
282
+ args.formattingValues[width] || args.formattingValues[defaultWidth];
283
+ } else {
284
+ const defaultWidth = args.defaultWidth;
285
+ const width = options?.width ? String(options.width) : args.defaultWidth;
286
+
287
+ valuesArray = args.values[width] || args.values[defaultWidth];
288
+ }
289
+ const index = args.argumentCallback ? args.argumentCallback(value) : value;
290
+
291
+ // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
292
+ return valuesArray[index];
293
+ };
294
+ }
295
+ return buildLocalizeFn;
296
+ }
297
+
298
+ var hasRequiredLocalize;
299
+
300
+ function requireLocalize () {
301
+ if (hasRequiredLocalize) return localize;
302
+ hasRequiredLocalize = 1;
303
+ localize.localize = void 0;
304
+ var _index = /*@__PURE__*/ requireBuildLocalizeFn();
305
+
306
+ const eraValues = {
307
+ narrow: ["B", "A"],
308
+ abbreviated: ["BC", "AD"],
309
+ wide: ["Before Christ", "Anno Domini"],
310
+ };
311
+
312
+ const quarterValues = {
313
+ narrow: ["1", "2", "3", "4"],
314
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
315
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
316
+ };
317
+
318
+ // Note: in English, the names of days of the week and months are capitalized.
319
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
320
+ // Generally, formatted dates should look like they are in the middle of a sentence,
321
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
322
+ const monthValues = {
323
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
324
+ abbreviated: [
325
+ "Jan",
326
+ "Feb",
327
+ "Mar",
328
+ "Apr",
329
+ "May",
330
+ "Jun",
331
+ "Jul",
332
+ "Aug",
333
+ "Sep",
334
+ "Oct",
335
+ "Nov",
336
+ "Dec",
337
+ ],
338
+
339
+ wide: [
340
+ "January",
341
+ "February",
342
+ "March",
343
+ "April",
344
+ "May",
345
+ "June",
346
+ "July",
347
+ "August",
348
+ "September",
349
+ "October",
350
+ "November",
351
+ "December",
352
+ ],
353
+ };
354
+
355
+ const dayValues = {
356
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
357
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
358
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
359
+ wide: [
360
+ "Sunday",
361
+ "Monday",
362
+ "Tuesday",
363
+ "Wednesday",
364
+ "Thursday",
365
+ "Friday",
366
+ "Saturday",
367
+ ],
368
+ };
369
+
370
+ const dayPeriodValues = {
371
+ narrow: {
372
+ am: "a",
373
+ pm: "p",
374
+ midnight: "mi",
375
+ noon: "n",
376
+ morning: "morning",
377
+ afternoon: "afternoon",
378
+ evening: "evening",
379
+ night: "night",
380
+ },
381
+ abbreviated: {
382
+ am: "AM",
383
+ pm: "PM",
384
+ midnight: "midnight",
385
+ noon: "noon",
386
+ morning: "morning",
387
+ afternoon: "afternoon",
388
+ evening: "evening",
389
+ night: "night",
390
+ },
391
+ wide: {
392
+ am: "a.m.",
393
+ pm: "p.m.",
394
+ midnight: "midnight",
395
+ noon: "noon",
396
+ morning: "morning",
397
+ afternoon: "afternoon",
398
+ evening: "evening",
399
+ night: "night",
400
+ },
401
+ };
402
+
403
+ const formattingDayPeriodValues = {
404
+ narrow: {
405
+ am: "a",
406
+ pm: "p",
407
+ midnight: "mi",
408
+ noon: "n",
409
+ morning: "in the morning",
410
+ afternoon: "in the afternoon",
411
+ evening: "in the evening",
412
+ night: "at night",
413
+ },
414
+ abbreviated: {
415
+ am: "AM",
416
+ pm: "PM",
417
+ midnight: "midnight",
418
+ noon: "noon",
419
+ morning: "in the morning",
420
+ afternoon: "in the afternoon",
421
+ evening: "in the evening",
422
+ night: "at night",
423
+ },
424
+ wide: {
425
+ am: "a.m.",
426
+ pm: "p.m.",
427
+ midnight: "midnight",
428
+ noon: "noon",
429
+ morning: "in the morning",
430
+ afternoon: "in the afternoon",
431
+ evening: "in the evening",
432
+ night: "at night",
433
+ },
434
+ };
435
+
436
+ const ordinalNumber = (dirtyNumber, _options) => {
437
+ const number = Number(dirtyNumber);
438
+
439
+ // If ordinal numbers depend on context, for example,
440
+ // if they are different for different grammatical genders,
441
+ // use `options.unit`.
442
+ //
443
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
444
+ // 'day', 'hour', 'minute', 'second'.
445
+
446
+ const rem100 = number % 100;
447
+ if (rem100 > 20 || rem100 < 10) {
448
+ switch (rem100 % 10) {
449
+ case 1:
450
+ return number + "st";
451
+ case 2:
452
+ return number + "nd";
453
+ case 3:
454
+ return number + "rd";
455
+ }
456
+ }
457
+ return number + "th";
458
+ };
459
+
460
+ (localize.localize = {
461
+ ordinalNumber,
462
+
463
+ era: (0, _index.buildLocalizeFn)({
464
+ values: eraValues,
465
+ defaultWidth: "wide",
466
+ }),
467
+
468
+ quarter: (0, _index.buildLocalizeFn)({
469
+ values: quarterValues,
470
+ defaultWidth: "wide",
471
+ argumentCallback: (quarter) => quarter - 1,
472
+ }),
473
+
474
+ month: (0, _index.buildLocalizeFn)({
475
+ values: monthValues,
476
+ defaultWidth: "wide",
477
+ }),
478
+
479
+ day: (0, _index.buildLocalizeFn)({
480
+ values: dayValues,
481
+ defaultWidth: "wide",
482
+ }),
483
+
484
+ dayPeriod: (0, _index.buildLocalizeFn)({
485
+ values: dayPeriodValues,
486
+ defaultWidth: "wide",
487
+ formattingValues: formattingDayPeriodValues,
488
+ defaultFormattingWidth: "wide",
489
+ }),
490
+ });
491
+ return localize;
492
+ }
493
+
494
+ var match = {};
495
+
496
+ var buildMatchFn = {};
497
+
498
+ var hasRequiredBuildMatchFn;
499
+
500
+ function requireBuildMatchFn () {
501
+ if (hasRequiredBuildMatchFn) return buildMatchFn;
502
+ hasRequiredBuildMatchFn = 1;
503
+ buildMatchFn.buildMatchFn = buildMatchFn$1;
504
+
505
+ function buildMatchFn$1(args) {
506
+ return (string, options = {}) => {
507
+ const width = options.width;
508
+
509
+ const matchPattern =
510
+ (width && args.matchPatterns[width]) ||
511
+ args.matchPatterns[args.defaultMatchWidth];
512
+ const matchResult = string.match(matchPattern);
513
+
514
+ if (!matchResult) {
515
+ return null;
516
+ }
517
+ const matchedString = matchResult[0];
518
+
519
+ const parsePatterns =
520
+ (width && args.parsePatterns[width]) ||
521
+ args.parsePatterns[args.defaultParseWidth];
522
+
523
+ const key = Array.isArray(parsePatterns)
524
+ ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
525
+ : // [TODO] -- I challenge you to fix the type
526
+ findKey(parsePatterns, (pattern) => pattern.test(matchedString));
527
+
528
+ let value;
529
+
530
+ value = args.valueCallback ? args.valueCallback(key) : key;
531
+ value = options.valueCallback
532
+ ? // [TODO] -- I challenge you to fix the type
533
+ options.valueCallback(value)
534
+ : value;
535
+
536
+ const rest = string.slice(matchedString.length);
537
+
538
+ return { value, rest };
539
+ };
540
+ }
541
+
542
+ function findKey(object, predicate) {
543
+ for (const key in object) {
544
+ if (
545
+ Object.prototype.hasOwnProperty.call(object, key) &&
546
+ predicate(object[key])
547
+ ) {
548
+ return key;
549
+ }
550
+ }
551
+ return undefined;
552
+ }
553
+
554
+ function findIndex(array, predicate) {
555
+ for (let key = 0; key < array.length; key++) {
556
+ if (predicate(array[key])) {
557
+ return key;
558
+ }
559
+ }
560
+ return undefined;
561
+ }
562
+ return buildMatchFn;
563
+ }
564
+
565
+ var buildMatchPatternFn = {};
566
+
567
+ var hasRequiredBuildMatchPatternFn;
568
+
569
+ function requireBuildMatchPatternFn () {
570
+ if (hasRequiredBuildMatchPatternFn) return buildMatchPatternFn;
571
+ hasRequiredBuildMatchPatternFn = 1;
572
+ buildMatchPatternFn.buildMatchPatternFn = buildMatchPatternFn$1;
573
+
574
+ function buildMatchPatternFn$1(args) {
575
+ return (string, options = {}) => {
576
+ const matchResult = string.match(args.matchPattern);
577
+ if (!matchResult) return null;
578
+ const matchedString = matchResult[0];
579
+
580
+ const parseResult = string.match(args.parsePattern);
581
+ if (!parseResult) return null;
582
+ let value = args.valueCallback
583
+ ? args.valueCallback(parseResult[0])
584
+ : parseResult[0];
585
+
586
+ // [TODO] I challenge you to fix the type
587
+ value = options.valueCallback ? options.valueCallback(value) : value;
588
+
589
+ const rest = string.slice(matchedString.length);
590
+
591
+ return { value, rest };
592
+ };
593
+ }
594
+ return buildMatchPatternFn;
595
+ }
596
+
597
+ var hasRequiredMatch;
598
+
599
+ function requireMatch () {
600
+ if (hasRequiredMatch) return match;
601
+ hasRequiredMatch = 1;
602
+ match.match = void 0;
603
+
604
+ var _index = /*@__PURE__*/ requireBuildMatchFn();
605
+ var _index2 = /*@__PURE__*/ requireBuildMatchPatternFn();
606
+
607
+ const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
608
+ const parseOrdinalNumberPattern = /\d+/i;
609
+
610
+ const matchEraPatterns = {
611
+ narrow: /^(b|a)/i,
612
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
613
+ wide: /^(before christ|before common era|anno domini|common era)/i,
614
+ };
615
+ const parseEraPatterns = {
616
+ any: [/^b/i, /^(a|c)/i],
617
+ };
618
+
619
+ const matchQuarterPatterns = {
620
+ narrow: /^[1234]/i,
621
+ abbreviated: /^q[1234]/i,
622
+ wide: /^[1234](th|st|nd|rd)? quarter/i,
623
+ };
624
+ const parseQuarterPatterns = {
625
+ any: [/1/i, /2/i, /3/i, /4/i],
626
+ };
627
+
628
+ const matchMonthPatterns = {
629
+ narrow: /^[jfmasond]/i,
630
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
631
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,
632
+ };
633
+ const parseMonthPatterns = {
634
+ narrow: [
635
+ /^j/i,
636
+ /^f/i,
637
+ /^m/i,
638
+ /^a/i,
639
+ /^m/i,
640
+ /^j/i,
641
+ /^j/i,
642
+ /^a/i,
643
+ /^s/i,
644
+ /^o/i,
645
+ /^n/i,
646
+ /^d/i,
647
+ ],
648
+
649
+ any: [
650
+ /^ja/i,
651
+ /^f/i,
652
+ /^mar/i,
653
+ /^ap/i,
654
+ /^may/i,
655
+ /^jun/i,
656
+ /^jul/i,
657
+ /^au/i,
658
+ /^s/i,
659
+ /^o/i,
660
+ /^n/i,
661
+ /^d/i,
662
+ ],
663
+ };
664
+
665
+ const matchDayPatterns = {
666
+ narrow: /^[smtwf]/i,
667
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
668
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
669
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,
670
+ };
671
+ const parseDayPatterns = {
672
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
673
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
674
+ };
675
+
676
+ const matchDayPeriodPatterns = {
677
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
678
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,
679
+ };
680
+ const parseDayPeriodPatterns = {
681
+ any: {
682
+ am: /^a/i,
683
+ pm: /^p/i,
684
+ midnight: /^mi/i,
685
+ noon: /^no/i,
686
+ morning: /morning/i,
687
+ afternoon: /afternoon/i,
688
+ evening: /evening/i,
689
+ night: /night/i,
690
+ },
691
+ };
692
+
693
+ (match.match = {
694
+ ordinalNumber: (0, _index2.buildMatchPatternFn)({
695
+ matchPattern: matchOrdinalNumberPattern,
696
+ parsePattern: parseOrdinalNumberPattern,
697
+ valueCallback: (value) => parseInt(value, 10),
698
+ }),
699
+
700
+ era: (0, _index.buildMatchFn)({
701
+ matchPatterns: matchEraPatterns,
702
+ defaultMatchWidth: "wide",
703
+ parsePatterns: parseEraPatterns,
704
+ defaultParseWidth: "any",
705
+ }),
706
+
707
+ quarter: (0, _index.buildMatchFn)({
708
+ matchPatterns: matchQuarterPatterns,
709
+ defaultMatchWidth: "wide",
710
+ parsePatterns: parseQuarterPatterns,
711
+ defaultParseWidth: "any",
712
+ valueCallback: (index) => index + 1,
713
+ }),
714
+
715
+ month: (0, _index.buildMatchFn)({
716
+ matchPatterns: matchMonthPatterns,
717
+ defaultMatchWidth: "wide",
718
+ parsePatterns: parseMonthPatterns,
719
+ defaultParseWidth: "any",
720
+ }),
721
+
722
+ day: (0, _index.buildMatchFn)({
723
+ matchPatterns: matchDayPatterns,
724
+ defaultMatchWidth: "wide",
725
+ parsePatterns: parseDayPatterns,
726
+ defaultParseWidth: "any",
727
+ }),
728
+
729
+ dayPeriod: (0, _index.buildMatchFn)({
730
+ matchPatterns: matchDayPeriodPatterns,
731
+ defaultMatchWidth: "any",
732
+ parsePatterns: parseDayPeriodPatterns,
733
+ defaultParseWidth: "any",
734
+ }),
735
+ });
736
+ return match;
737
+ }
738
+
739
+ var hasRequiredEnUS;
740
+
741
+ function requireEnUS () {
742
+ if (hasRequiredEnUS) return enUS;
743
+ hasRequiredEnUS = 1;
744
+ enUS.enUS = void 0;
745
+ var _index = /*@__PURE__*/ requireFormatDistance();
746
+ var _index2 = /*@__PURE__*/ requireFormatLong();
747
+ var _index3 = /*@__PURE__*/ requireFormatRelative();
748
+ var _index4 = /*@__PURE__*/ requireLocalize();
749
+ var _index5 = /*@__PURE__*/ requireMatch();
750
+
751
+ /**
752
+ * @category Locales
753
+ * @summary English locale (United States).
754
+ * @language English
755
+ * @iso-639-2 eng
756
+ * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
757
+ * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
758
+ */
759
+ (enUS.enUS = {
760
+ code: "en-US",
761
+ formatDistance: _index.formatDistance,
762
+ formatLong: _index2.formatLong,
763
+ formatRelative: _index3.formatRelative,
764
+ localize: _index4.localize,
765
+ match: _index5.match,
766
+ options: {
767
+ weekStartsOn: 0 /* Sunday */,
768
+ firstWeekContainsDate: 1,
769
+ },
770
+ });
771
+ return enUS;
772
+ }
773
+
774
+ var hasRequiredDefaultLocale;
775
+
776
+ function requireDefaultLocale () {
777
+ if (hasRequiredDefaultLocale) return defaultLocale;
778
+ hasRequiredDefaultLocale = 1;
779
+ (function (exports) {
780
+ Object.defineProperty(exports, "defaultLocale", {
781
+ enumerable: true,
782
+ get: function () {
783
+ return _index.enUS;
784
+ },
785
+ });
786
+ var _index = /*@__PURE__*/ requireEnUS();
787
+ } (defaultLocale));
788
+ return defaultLocale;
789
+ }
790
+
791
+ var defaultOptions = {};
792
+
793
+ var hasRequiredDefaultOptions;
794
+
795
+ function requireDefaultOptions () {
796
+ if (hasRequiredDefaultOptions) return defaultOptions;
797
+ hasRequiredDefaultOptions = 1;
798
+ defaultOptions.getDefaultOptions = getDefaultOptions;
799
+ defaultOptions.setDefaultOptions = setDefaultOptions;
800
+
801
+ let defaultOptions$1 = {};
802
+
803
+ function getDefaultOptions() {
804
+ return defaultOptions$1;
805
+ }
806
+
807
+ function setDefaultOptions(newOptions) {
808
+ defaultOptions$1 = newOptions;
809
+ }
810
+ return defaultOptions;
811
+ }
812
+
813
+ var formatters = {};
814
+
815
+ var getDayOfYear = {};
816
+
817
+ var differenceInCalendarDays = {};
818
+
819
+ var getTimezoneOffsetInMilliseconds = {};
820
+
821
+ var toDate = {};
822
+
823
+ var constructFrom = {};
824
+
825
+ var constants = {};
826
+
827
+ var hasRequiredConstants;
828
+
829
+ function requireConstants () {
830
+ if (hasRequiredConstants) return constants;
831
+ hasRequiredConstants = 1;
832
+ constants.secondsInYear =
833
+ constants.secondsInWeek =
834
+ constants.secondsInQuarter =
835
+ constants.secondsInMonth =
836
+ constants.secondsInMinute =
837
+ constants.secondsInHour =
838
+ constants.secondsInDay =
839
+ constants.quartersInYear =
840
+ constants.monthsInYear =
841
+ constants.monthsInQuarter =
842
+ constants.minutesInYear =
843
+ constants.minutesInMonth =
844
+ constants.minutesInHour =
845
+ constants.minutesInDay =
846
+ constants.minTime =
847
+ constants.millisecondsInWeek =
848
+ constants.millisecondsInSecond =
849
+ constants.millisecondsInMinute =
850
+ constants.millisecondsInHour =
851
+ constants.millisecondsInDay =
852
+ constants.maxTime =
853
+ constants.daysInYear =
854
+ constants.daysInWeek =
855
+ constants.constructFromSymbol =
856
+ void 0; /**
857
+ * @module constants
858
+ * @summary Useful constants
859
+ * @description
860
+ * Collection of useful date constants.
861
+ *
862
+ * The constants could be imported from `date-fns/constants`:
863
+ *
864
+ * ```ts
865
+ * import { maxTime, minTime } from "date-fns/constants";
866
+ *
867
+ * function isAllowedTime(time) {
868
+ * return time <= maxTime && time >= minTime;
869
+ * }
870
+ * ```
871
+ */
872
+
873
+ /**
874
+ * @constant
875
+ * @name daysInWeek
876
+ * @summary Days in 1 week.
877
+ */
878
+ (constants.daysInWeek = 7);
879
+
880
+ /**
881
+ * @constant
882
+ * @name daysInYear
883
+ * @summary Days in 1 year.
884
+ *
885
+ * @description
886
+ * How many days in a year.
887
+ *
888
+ * One years equals 365.2425 days according to the formula:
889
+ *
890
+ * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.
891
+ * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
892
+ */
893
+ const daysInYear = (constants.daysInYear = 365.2425);
894
+
895
+ /**
896
+ * @constant
897
+ * @name maxTime
898
+ * @summary Maximum allowed time.
899
+ *
900
+ * @example
901
+ * import { maxTime } from "date-fns/constants";
902
+ *
903
+ * const isValid = 8640000000000001 <= maxTime;
904
+ * //=> false
905
+ *
906
+ * new Date(8640000000000001);
907
+ * //=> Invalid Date
908
+ */
909
+ const maxTime = (constants.maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000);
910
+
911
+ /**
912
+ * @constant
913
+ * @name minTime
914
+ * @summary Minimum allowed time.
915
+ *
916
+ * @example
917
+ * import { minTime } from "date-fns/constants";
918
+ *
919
+ * const isValid = -8640000000000001 >= minTime;
920
+ * //=> false
921
+ *
922
+ * new Date(-8640000000000001)
923
+ * //=> Invalid Date
924
+ */
925
+ (constants.minTime = -maxTime);
926
+
927
+ /**
928
+ * @constant
929
+ * @name millisecondsInWeek
930
+ * @summary Milliseconds in 1 week.
931
+ */
932
+ (constants.millisecondsInWeek = 604800000);
933
+
934
+ /**
935
+ * @constant
936
+ * @name millisecondsInDay
937
+ * @summary Milliseconds in 1 day.
938
+ */
939
+ (constants.millisecondsInDay = 86400000);
940
+
941
+ /**
942
+ * @constant
943
+ * @name millisecondsInMinute
944
+ * @summary Milliseconds in 1 minute
945
+ */
946
+ (constants.millisecondsInMinute = 60000);
947
+
948
+ /**
949
+ * @constant
950
+ * @name millisecondsInHour
951
+ * @summary Milliseconds in 1 hour
952
+ */
953
+ (constants.millisecondsInHour = 3600000);
954
+
955
+ /**
956
+ * @constant
957
+ * @name millisecondsInSecond
958
+ * @summary Milliseconds in 1 second
959
+ */
960
+ (constants.millisecondsInSecond = 1000);
961
+
962
+ /**
963
+ * @constant
964
+ * @name minutesInYear
965
+ * @summary Minutes in 1 year.
966
+ */
967
+ (constants.minutesInYear = 525600);
968
+
969
+ /**
970
+ * @constant
971
+ * @name minutesInMonth
972
+ * @summary Minutes in 1 month.
973
+ */
974
+ (constants.minutesInMonth = 43200);
975
+
976
+ /**
977
+ * @constant
978
+ * @name minutesInDay
979
+ * @summary Minutes in 1 day.
980
+ */
981
+ (constants.minutesInDay = 1440);
982
+
983
+ /**
984
+ * @constant
985
+ * @name minutesInHour
986
+ * @summary Minutes in 1 hour.
987
+ */
988
+ (constants.minutesInHour = 60);
989
+
990
+ /**
991
+ * @constant
992
+ * @name monthsInQuarter
993
+ * @summary Months in 1 quarter.
994
+ */
995
+ (constants.monthsInQuarter = 3);
996
+
997
+ /**
998
+ * @constant
999
+ * @name monthsInYear
1000
+ * @summary Months in 1 year.
1001
+ */
1002
+ (constants.monthsInYear = 12);
1003
+
1004
+ /**
1005
+ * @constant
1006
+ * @name quartersInYear
1007
+ * @summary Quarters in 1 year
1008
+ */
1009
+ (constants.quartersInYear = 4);
1010
+
1011
+ /**
1012
+ * @constant
1013
+ * @name secondsInHour
1014
+ * @summary Seconds in 1 hour.
1015
+ */
1016
+ const secondsInHour = (constants.secondsInHour = 3600);
1017
+
1018
+ /**
1019
+ * @constant
1020
+ * @name secondsInMinute
1021
+ * @summary Seconds in 1 minute.
1022
+ */
1023
+ (constants.secondsInMinute = 60);
1024
+
1025
+ /**
1026
+ * @constant
1027
+ * @name secondsInDay
1028
+ * @summary Seconds in 1 day.
1029
+ */
1030
+ const secondsInDay = (constants.secondsInDay = secondsInHour * 24);
1031
+
1032
+ /**
1033
+ * @constant
1034
+ * @name secondsInWeek
1035
+ * @summary Seconds in 1 week.
1036
+ */
1037
+ (constants.secondsInWeek = secondsInDay * 7);
1038
+
1039
+ /**
1040
+ * @constant
1041
+ * @name secondsInYear
1042
+ * @summary Seconds in 1 year.
1043
+ */
1044
+ const secondsInYear = (constants.secondsInYear = secondsInDay * daysInYear);
1045
+
1046
+ /**
1047
+ * @constant
1048
+ * @name secondsInMonth
1049
+ * @summary Seconds in 1 month
1050
+ */
1051
+ const secondsInMonth = (constants.secondsInMonth = secondsInYear / 12);
1052
+
1053
+ /**
1054
+ * @constant
1055
+ * @name secondsInQuarter
1056
+ * @summary Seconds in 1 quarter.
1057
+ */
1058
+ (constants.secondsInQuarter = secondsInMonth * 3);
1059
+
1060
+ /**
1061
+ * @constant
1062
+ * @name constructFromSymbol
1063
+ * @summary Symbol enabling Date extensions to inherit properties from the reference date.
1064
+ *
1065
+ * The symbol is used to enable the `constructFrom` function to construct a date
1066
+ * using a reference date and a value. It allows to transfer extra properties
1067
+ * from the reference date to the new date. It's useful for extensions like
1068
+ * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as
1069
+ * a constructor argument.
1070
+ */
1071
+ (constants.constructFromSymbol =
1072
+ Symbol.for("constructDateFrom"));
1073
+ return constants;
1074
+ }
1075
+
1076
+ var hasRequiredConstructFrom;
1077
+
1078
+ function requireConstructFrom () {
1079
+ if (hasRequiredConstructFrom) return constructFrom;
1080
+ hasRequiredConstructFrom = 1;
1081
+ constructFrom.constructFrom = constructFrom$1;
1082
+ var _index = /*@__PURE__*/ requireConstants();
1083
+
1084
+ /**
1085
+ * @name constructFrom
1086
+ * @category Generic Helpers
1087
+ * @summary Constructs a date using the reference date and the value
1088
+ *
1089
+ * @description
1090
+ * The function constructs a new date using the constructor from the reference
1091
+ * date and the given value. It helps to build generic functions that accept
1092
+ * date extensions.
1093
+ *
1094
+ * It defaults to `Date` if the passed reference date is a number or a string.
1095
+ *
1096
+ * Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]`
1097
+ * enabling to transfer extra properties from the reference date to the new date.
1098
+ * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
1099
+ * that accept a time zone as a constructor argument.
1100
+ *
1101
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1102
+ *
1103
+ * @param date - The reference date to take constructor from
1104
+ * @param value - The value to create the date
1105
+ *
1106
+ * @returns Date initialized using the given date and value
1107
+ *
1108
+ * @example
1109
+ * import { constructFrom } from "date-fns";
1110
+ *
1111
+ * // A function that clones a date preserving the original type
1112
+ * function cloneDate<DateType extends Date>(date: DateType): DateType {
1113
+ * return constructFrom(
1114
+ * date, // Use constructor from the given date
1115
+ * date.getTime() // Use the date value to create a new date
1116
+ * );
1117
+ * }
1118
+ */
1119
+ function constructFrom$1(date, value) {
1120
+ if (typeof date === "function") return date(value);
1121
+
1122
+ if (date && typeof date === "object" && _index.constructFromSymbol in date)
1123
+ return date[_index.constructFromSymbol](value);
1124
+
1125
+ if (date instanceof Date) return new date.constructor(value);
1126
+
1127
+ return new Date(value);
1128
+ }
1129
+ return constructFrom;
1130
+ }
1131
+
1132
+ var hasRequiredToDate;
1133
+
1134
+ function requireToDate () {
1135
+ if (hasRequiredToDate) return toDate;
1136
+ hasRequiredToDate = 1;
1137
+ toDate.toDate = toDate$1;
1138
+ var _index = /*@__PURE__*/ requireConstructFrom();
1139
+
1140
+ /**
1141
+ * @name toDate
1142
+ * @category Common Helpers
1143
+ * @summary Convert the given argument to an instance of Date.
1144
+ *
1145
+ * @description
1146
+ * Convert the given argument to an instance of Date.
1147
+ *
1148
+ * If the argument is an instance of Date, the function returns its clone.
1149
+ *
1150
+ * If the argument is a number, it is treated as a timestamp.
1151
+ *
1152
+ * If the argument is none of the above, the function returns Invalid Date.
1153
+ *
1154
+ * Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]`
1155
+ * enabling to transfer extra properties from the reference date to the new date.
1156
+ * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
1157
+ * that accept a time zone as a constructor argument.
1158
+ *
1159
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
1160
+ *
1161
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1162
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1163
+ *
1164
+ * @param argument - The value to convert
1165
+ *
1166
+ * @returns The parsed date in the local time zone
1167
+ *
1168
+ * @example
1169
+ * // Clone the date:
1170
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
1171
+ * //=> Tue Feb 11 2014 11:30:30
1172
+ *
1173
+ * @example
1174
+ * // Convert the timestamp to date:
1175
+ * const result = toDate(1392098430000)
1176
+ * //=> Tue Feb 11 2014 11:30:30
1177
+ */
1178
+ function toDate$1(argument, context) {
1179
+ // [TODO] Get rid of `toDate` or `constructFrom`?
1180
+ return (0, _index.constructFrom)(context || argument, argument);
1181
+ }
1182
+ return toDate;
1183
+ }
1184
+
1185
+ var hasRequiredGetTimezoneOffsetInMilliseconds;
1186
+
1187
+ function requireGetTimezoneOffsetInMilliseconds () {
1188
+ if (hasRequiredGetTimezoneOffsetInMilliseconds) return getTimezoneOffsetInMilliseconds;
1189
+ hasRequiredGetTimezoneOffsetInMilliseconds = 1;
1190
+ getTimezoneOffsetInMilliseconds.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds$1;
1191
+ var _index = /*@__PURE__*/ requireToDate();
1192
+
1193
+ /**
1194
+ * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
1195
+ * They usually appear for dates that denote time before the timezones were introduced
1196
+ * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
1197
+ * and GMT+01:00:00 after that date)
1198
+ *
1199
+ * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
1200
+ * which would lead to incorrect calculations.
1201
+ *
1202
+ * This function returns the timezone offset in milliseconds that takes seconds in account.
1203
+ */
1204
+ function getTimezoneOffsetInMilliseconds$1(date) {
1205
+ const _date = (0, _index.toDate)(date);
1206
+ const utcDate = new Date(
1207
+ Date.UTC(
1208
+ _date.getFullYear(),
1209
+ _date.getMonth(),
1210
+ _date.getDate(),
1211
+ _date.getHours(),
1212
+ _date.getMinutes(),
1213
+ _date.getSeconds(),
1214
+ _date.getMilliseconds(),
1215
+ ),
1216
+ );
1217
+ utcDate.setUTCFullYear(_date.getFullYear());
1218
+ return +date - +utcDate;
1219
+ }
1220
+ return getTimezoneOffsetInMilliseconds;
1221
+ }
1222
+
1223
+ var normalizeDates = {};
1224
+
1225
+ var hasRequiredNormalizeDates;
1226
+
1227
+ function requireNormalizeDates () {
1228
+ if (hasRequiredNormalizeDates) return normalizeDates;
1229
+ hasRequiredNormalizeDates = 1;
1230
+ normalizeDates.normalizeDates = normalizeDates$1;
1231
+ var _index = /*@__PURE__*/ requireConstructFrom();
1232
+
1233
+ function normalizeDates$1(context, ...dates) {
1234
+ const normalize = _index.constructFrom.bind(
1235
+ null,
1236
+ context || dates.find((date) => typeof date === "object"),
1237
+ );
1238
+ return dates.map(normalize);
1239
+ }
1240
+ return normalizeDates;
1241
+ }
1242
+
1243
+ var startOfDay = {};
1244
+
1245
+ var hasRequiredStartOfDay;
1246
+
1247
+ function requireStartOfDay () {
1248
+ if (hasRequiredStartOfDay) return startOfDay;
1249
+ hasRequiredStartOfDay = 1;
1250
+ startOfDay.startOfDay = startOfDay$1;
1251
+ var _index = /*@__PURE__*/ requireToDate();
1252
+
1253
+ /**
1254
+ * The {@link startOfDay} function options.
1255
+ */
1256
+
1257
+ /**
1258
+ * @name startOfDay
1259
+ * @category Day Helpers
1260
+ * @summary Return the start of a day for the given date.
1261
+ *
1262
+ * @description
1263
+ * Return the start of a day for the given date.
1264
+ * The result will be in the local timezone.
1265
+ *
1266
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1267
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1268
+ *
1269
+ * @param date - The original date
1270
+ * @param options - The options
1271
+ *
1272
+ * @returns The start of a day
1273
+ *
1274
+ * @example
1275
+ * // The start of a day for 2 September 2014 11:55:00:
1276
+ * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
1277
+ * //=> Tue Sep 02 2014 00:00:00
1278
+ */
1279
+ function startOfDay$1(date, options) {
1280
+ const _date = (0, _index.toDate)(date, options?.in);
1281
+ _date.setHours(0, 0, 0, 0);
1282
+ return _date;
1283
+ }
1284
+ return startOfDay;
1285
+ }
1286
+
1287
+ var hasRequiredDifferenceInCalendarDays;
1288
+
1289
+ function requireDifferenceInCalendarDays () {
1290
+ if (hasRequiredDifferenceInCalendarDays) return differenceInCalendarDays;
1291
+ hasRequiredDifferenceInCalendarDays = 1;
1292
+ differenceInCalendarDays.differenceInCalendarDays = differenceInCalendarDays$1;
1293
+ var _index = /*@__PURE__*/ requireGetTimezoneOffsetInMilliseconds();
1294
+ var _index2 = /*@__PURE__*/ requireNormalizeDates();
1295
+ var _index3 = /*@__PURE__*/ requireConstants();
1296
+ var _index4 = /*@__PURE__*/ requireStartOfDay();
1297
+
1298
+ /**
1299
+ * The {@link differenceInCalendarDays} function options.
1300
+ */
1301
+
1302
+ /**
1303
+ * @name differenceInCalendarDays
1304
+ * @category Day Helpers
1305
+ * @summary Get the number of calendar days between the given dates.
1306
+ *
1307
+ * @description
1308
+ * Get the number of calendar days between the given dates. This means that the times are removed
1309
+ * from the dates and then the difference in days is calculated.
1310
+ *
1311
+ * @param laterDate - The later date
1312
+ * @param earlierDate - The earlier date
1313
+ * @param options - The options object
1314
+ *
1315
+ * @returns The number of calendar days
1316
+ *
1317
+ * @example
1318
+ * // How many calendar days are between
1319
+ * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
1320
+ * const result = differenceInCalendarDays(
1321
+ * new Date(2012, 6, 2, 0, 0),
1322
+ * new Date(2011, 6, 2, 23, 0)
1323
+ * )
1324
+ * //=> 366
1325
+ * // How many calendar days are between
1326
+ * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
1327
+ * const result = differenceInCalendarDays(
1328
+ * new Date(2011, 6, 3, 0, 1),
1329
+ * new Date(2011, 6, 2, 23, 59)
1330
+ * )
1331
+ * //=> 1
1332
+ */
1333
+ function differenceInCalendarDays$1(laterDate, earlierDate, options) {
1334
+ const [laterDate_, earlierDate_] = (0, _index2.normalizeDates)(
1335
+ options?.in,
1336
+ laterDate,
1337
+ earlierDate,
1338
+ );
1339
+
1340
+ const laterStartOfDay = (0, _index4.startOfDay)(laterDate_);
1341
+ const earlierStartOfDay = (0, _index4.startOfDay)(earlierDate_);
1342
+
1343
+ const laterTimestamp =
1344
+ +laterStartOfDay -
1345
+ (0, _index.getTimezoneOffsetInMilliseconds)(laterStartOfDay);
1346
+ const earlierTimestamp =
1347
+ +earlierStartOfDay -
1348
+ (0, _index.getTimezoneOffsetInMilliseconds)(earlierStartOfDay);
1349
+
1350
+ // Round the number of days to the nearest integer because the number of
1351
+ // milliseconds in a day is not constant (e.g. it's different in the week of
1352
+ // the daylight saving time clock shift).
1353
+ return Math.round(
1354
+ (laterTimestamp - earlierTimestamp) / _index3.millisecondsInDay,
1355
+ );
1356
+ }
1357
+ return differenceInCalendarDays;
1358
+ }
1359
+
1360
+ var startOfYear = {};
1361
+
1362
+ var hasRequiredStartOfYear;
1363
+
1364
+ function requireStartOfYear () {
1365
+ if (hasRequiredStartOfYear) return startOfYear;
1366
+ hasRequiredStartOfYear = 1;
1367
+ startOfYear.startOfYear = startOfYear$1;
1368
+ var _index = /*@__PURE__*/ requireToDate();
1369
+
1370
+ /**
1371
+ * The {@link startOfYear} function options.
1372
+ */
1373
+
1374
+ /**
1375
+ * @name startOfYear
1376
+ * @category Year Helpers
1377
+ * @summary Return the start of a year for the given date.
1378
+ *
1379
+ * @description
1380
+ * Return the start of a year for the given date.
1381
+ * The result will be in the local timezone.
1382
+ *
1383
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1384
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1385
+ *
1386
+ * @param date - The original date
1387
+ * @param options - The options
1388
+ *
1389
+ * @returns The start of a year
1390
+ *
1391
+ * @example
1392
+ * // The start of a year for 2 September 2014 11:55:00:
1393
+ * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
1394
+ * //=> Wed Jan 01 2014 00:00:00
1395
+ */
1396
+ function startOfYear$1(date, options) {
1397
+ const date_ = (0, _index.toDate)(date, options?.in);
1398
+ date_.setFullYear(date_.getFullYear(), 0, 1);
1399
+ date_.setHours(0, 0, 0, 0);
1400
+ return date_;
1401
+ }
1402
+ return startOfYear;
1403
+ }
1404
+
1405
+ var hasRequiredGetDayOfYear;
1406
+
1407
+ function requireGetDayOfYear () {
1408
+ if (hasRequiredGetDayOfYear) return getDayOfYear;
1409
+ hasRequiredGetDayOfYear = 1;
1410
+ getDayOfYear.getDayOfYear = getDayOfYear$1;
1411
+ var _index = /*@__PURE__*/ requireDifferenceInCalendarDays();
1412
+ var _index2 = /*@__PURE__*/ requireStartOfYear();
1413
+ var _index3 = /*@__PURE__*/ requireToDate();
1414
+
1415
+ /**
1416
+ * The {@link getDayOfYear} function options.
1417
+ */
1418
+
1419
+ /**
1420
+ * @name getDayOfYear
1421
+ * @category Day Helpers
1422
+ * @summary Get the day of the year of the given date.
1423
+ *
1424
+ * @description
1425
+ * Get the day of the year of the given date.
1426
+ *
1427
+ * @param date - The given date
1428
+ * @param options - The options
1429
+ *
1430
+ * @returns The day of year
1431
+ *
1432
+ * @example
1433
+ * // Which day of the year is 2 July 2014?
1434
+ * const result = getDayOfYear(new Date(2014, 6, 2))
1435
+ * //=> 183
1436
+ */
1437
+ function getDayOfYear$1(date, options) {
1438
+ const _date = (0, _index3.toDate)(date, options?.in);
1439
+ const diff = (0, _index.differenceInCalendarDays)(
1440
+ _date,
1441
+ (0, _index2.startOfYear)(_date),
1442
+ );
1443
+ const dayOfYear = diff + 1;
1444
+ return dayOfYear;
1445
+ }
1446
+ return getDayOfYear;
1447
+ }
1448
+
1449
+ var getISOWeek = {};
1450
+
1451
+ var startOfISOWeek = {};
1452
+
1453
+ var startOfWeek = {};
1454
+
1455
+ var hasRequiredStartOfWeek;
1456
+
1457
+ function requireStartOfWeek () {
1458
+ if (hasRequiredStartOfWeek) return startOfWeek;
1459
+ hasRequiredStartOfWeek = 1;
1460
+ startOfWeek.startOfWeek = startOfWeek$1;
1461
+ var _index = /*@__PURE__*/ requireDefaultOptions();
1462
+ var _index2 = /*@__PURE__*/ requireToDate();
1463
+
1464
+ /**
1465
+ * The {@link startOfWeek} function options.
1466
+ */
1467
+
1468
+ /**
1469
+ * @name startOfWeek
1470
+ * @category Week Helpers
1471
+ * @summary Return the start of a week for the given date.
1472
+ *
1473
+ * @description
1474
+ * Return the start of a week for the given date.
1475
+ * The result will be in the local timezone.
1476
+ *
1477
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1478
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1479
+ *
1480
+ * @param date - The original date
1481
+ * @param options - An object with options
1482
+ *
1483
+ * @returns The start of a week
1484
+ *
1485
+ * @example
1486
+ * // The start of a week for 2 September 2014 11:55:00:
1487
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
1488
+ * //=> Sun Aug 31 2014 00:00:00
1489
+ *
1490
+ * @example
1491
+ * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
1492
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
1493
+ * //=> Mon Sep 01 2014 00:00:00
1494
+ */
1495
+ function startOfWeek$1(date, options) {
1496
+ const defaultOptions = (0, _index.getDefaultOptions)();
1497
+ const weekStartsOn =
1498
+ options?.weekStartsOn ??
1499
+ options?.locale?.options?.weekStartsOn ??
1500
+ defaultOptions.weekStartsOn ??
1501
+ defaultOptions.locale?.options?.weekStartsOn ??
1502
+ 0;
1503
+
1504
+ const _date = (0, _index2.toDate)(date, options?.in);
1505
+ const day = _date.getDay();
1506
+ const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
1507
+
1508
+ _date.setDate(_date.getDate() - diff);
1509
+ _date.setHours(0, 0, 0, 0);
1510
+ return _date;
1511
+ }
1512
+ return startOfWeek;
1513
+ }
1514
+
1515
+ var hasRequiredStartOfISOWeek;
1516
+
1517
+ function requireStartOfISOWeek () {
1518
+ if (hasRequiredStartOfISOWeek) return startOfISOWeek;
1519
+ hasRequiredStartOfISOWeek = 1;
1520
+ startOfISOWeek.startOfISOWeek = startOfISOWeek$1;
1521
+ var _index = /*@__PURE__*/ requireStartOfWeek();
1522
+
1523
+ /**
1524
+ * The {@link startOfISOWeek} function options.
1525
+ */
1526
+
1527
+ /**
1528
+ * @name startOfISOWeek
1529
+ * @category ISO Week Helpers
1530
+ * @summary Return the start of an ISO week for the given date.
1531
+ *
1532
+ * @description
1533
+ * Return the start of an ISO week for the given date.
1534
+ * The result will be in the local timezone.
1535
+ *
1536
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1537
+ *
1538
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1539
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1540
+ *
1541
+ * @param date - The original date
1542
+ * @param options - An object with options
1543
+ *
1544
+ * @returns The start of an ISO week
1545
+ *
1546
+ * @example
1547
+ * // The start of an ISO week for 2 September 2014 11:55:00:
1548
+ * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
1549
+ * //=> Mon Sep 01 2014 00:00:00
1550
+ */
1551
+ function startOfISOWeek$1(date, options) {
1552
+ return (0, _index.startOfWeek)(date, { ...options, weekStartsOn: 1 });
1553
+ }
1554
+ return startOfISOWeek;
1555
+ }
1556
+
1557
+ var startOfISOWeekYear = {};
1558
+
1559
+ var getISOWeekYear = {};
1560
+
1561
+ var hasRequiredGetISOWeekYear;
1562
+
1563
+ function requireGetISOWeekYear () {
1564
+ if (hasRequiredGetISOWeekYear) return getISOWeekYear;
1565
+ hasRequiredGetISOWeekYear = 1;
1566
+ getISOWeekYear.getISOWeekYear = getISOWeekYear$1;
1567
+ var _index = /*@__PURE__*/ requireConstructFrom();
1568
+ var _index2 = /*@__PURE__*/ requireStartOfISOWeek();
1569
+ var _index3 = /*@__PURE__*/ requireToDate();
1570
+
1571
+ /**
1572
+ * The {@link getISOWeekYear} function options.
1573
+ */
1574
+
1575
+ /**
1576
+ * @name getISOWeekYear
1577
+ * @category ISO Week-Numbering Year Helpers
1578
+ * @summary Get the ISO week-numbering year of the given date.
1579
+ *
1580
+ * @description
1581
+ * Get the ISO week-numbering year of the given date,
1582
+ * which always starts 3 days before the year's first Thursday.
1583
+ *
1584
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1585
+ *
1586
+ * @param date - The given date
1587
+ *
1588
+ * @returns The ISO week-numbering year
1589
+ *
1590
+ * @example
1591
+ * // Which ISO-week numbering year is 2 January 2005?
1592
+ * const result = getISOWeekYear(new Date(2005, 0, 2))
1593
+ * //=> 2004
1594
+ */
1595
+ function getISOWeekYear$1(date, options) {
1596
+ const _date = (0, _index3.toDate)(date, options?.in);
1597
+ const year = _date.getFullYear();
1598
+
1599
+ const fourthOfJanuaryOfNextYear = (0, _index.constructFrom)(_date, 0);
1600
+ fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
1601
+ fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
1602
+ const startOfNextYear = (0, _index2.startOfISOWeek)(
1603
+ fourthOfJanuaryOfNextYear,
1604
+ );
1605
+
1606
+ const fourthOfJanuaryOfThisYear = (0, _index.constructFrom)(_date, 0);
1607
+ fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
1608
+ fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
1609
+ const startOfThisYear = (0, _index2.startOfISOWeek)(
1610
+ fourthOfJanuaryOfThisYear,
1611
+ );
1612
+
1613
+ if (_date.getTime() >= startOfNextYear.getTime()) {
1614
+ return year + 1;
1615
+ } else if (_date.getTime() >= startOfThisYear.getTime()) {
1616
+ return year;
1617
+ } else {
1618
+ return year - 1;
1619
+ }
1620
+ }
1621
+ return getISOWeekYear;
1622
+ }
1623
+
1624
+ var hasRequiredStartOfISOWeekYear;
1625
+
1626
+ function requireStartOfISOWeekYear () {
1627
+ if (hasRequiredStartOfISOWeekYear) return startOfISOWeekYear;
1628
+ hasRequiredStartOfISOWeekYear = 1;
1629
+ startOfISOWeekYear.startOfISOWeekYear = startOfISOWeekYear$1;
1630
+ var _index = /*@__PURE__*/ requireConstructFrom();
1631
+ var _index2 = /*@__PURE__*/ requireGetISOWeekYear();
1632
+ var _index3 = /*@__PURE__*/ requireStartOfISOWeek();
1633
+
1634
+ /**
1635
+ * The {@link startOfISOWeekYear} function options.
1636
+ */
1637
+
1638
+ /**
1639
+ * @name startOfISOWeekYear
1640
+ * @category ISO Week-Numbering Year Helpers
1641
+ * @summary Return the start of an ISO week-numbering year for the given date.
1642
+ *
1643
+ * @description
1644
+ * Return the start of an ISO week-numbering year,
1645
+ * which always starts 3 days before the year's first Thursday.
1646
+ * The result will be in the local timezone.
1647
+ *
1648
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1649
+ *
1650
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1651
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1652
+ *
1653
+ * @param date - The original date
1654
+ * @param options - An object with options
1655
+ *
1656
+ * @returns The start of an ISO week-numbering year
1657
+ *
1658
+ * @example
1659
+ * // The start of an ISO week-numbering year for 2 July 2005:
1660
+ * const result = startOfISOWeekYear(new Date(2005, 6, 2))
1661
+ * //=> Mon Jan 03 2005 00:00:00
1662
+ */
1663
+ function startOfISOWeekYear$1(date, options) {
1664
+ const year = (0, _index2.getISOWeekYear)(date, options);
1665
+ const fourthOfJanuary = (0, _index.constructFrom)(options?.in || date, 0);
1666
+ fourthOfJanuary.setFullYear(year, 0, 4);
1667
+ fourthOfJanuary.setHours(0, 0, 0, 0);
1668
+ return (0, _index3.startOfISOWeek)(fourthOfJanuary);
1669
+ }
1670
+ return startOfISOWeekYear;
1671
+ }
1672
+
1673
+ var hasRequiredGetISOWeek;
1674
+
1675
+ function requireGetISOWeek () {
1676
+ if (hasRequiredGetISOWeek) return getISOWeek;
1677
+ hasRequiredGetISOWeek = 1;
1678
+ getISOWeek.getISOWeek = getISOWeek$1;
1679
+ var _index = /*@__PURE__*/ requireConstants();
1680
+ var _index2 = /*@__PURE__*/ requireStartOfISOWeek();
1681
+ var _index3 = /*@__PURE__*/ requireStartOfISOWeekYear();
1682
+ var _index4 = /*@__PURE__*/ requireToDate();
1683
+
1684
+ /**
1685
+ * The {@link getISOWeek} function options.
1686
+ */
1687
+
1688
+ /**
1689
+ * @name getISOWeek
1690
+ * @category ISO Week Helpers
1691
+ * @summary Get the ISO week of the given date.
1692
+ *
1693
+ * @description
1694
+ * Get the ISO week of the given date.
1695
+ *
1696
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1697
+ *
1698
+ * @param date - The given date
1699
+ * @param options - The options
1700
+ *
1701
+ * @returns The ISO week
1702
+ *
1703
+ * @example
1704
+ * // Which week of the ISO-week numbering year is 2 January 2005?
1705
+ * const result = getISOWeek(new Date(2005, 0, 2))
1706
+ * //=> 53
1707
+ */
1708
+ function getISOWeek$1(date, options) {
1709
+ const _date = (0, _index4.toDate)(date, options?.in);
1710
+ const diff =
1711
+ +(0, _index2.startOfISOWeek)(_date) -
1712
+ +(0, _index3.startOfISOWeekYear)(_date);
1713
+
1714
+ // Round the number of weeks to the nearest integer because the number of
1715
+ // milliseconds in a week is not constant (e.g. it's different in the week of
1716
+ // the daylight saving time clock shift).
1717
+ return Math.round(diff / _index.millisecondsInWeek) + 1;
1718
+ }
1719
+ return getISOWeek;
1720
+ }
1721
+
1722
+ var getWeek = {};
1723
+
1724
+ var startOfWeekYear = {};
1725
+
1726
+ var getWeekYear = {};
1727
+
1728
+ var hasRequiredGetWeekYear;
1729
+
1730
+ function requireGetWeekYear () {
1731
+ if (hasRequiredGetWeekYear) return getWeekYear;
1732
+ hasRequiredGetWeekYear = 1;
1733
+ getWeekYear.getWeekYear = getWeekYear$1;
1734
+ var _index = /*@__PURE__*/ requireDefaultOptions();
1735
+ var _index2 = /*@__PURE__*/ requireConstructFrom();
1736
+ var _index3 = /*@__PURE__*/ requireStartOfWeek();
1737
+ var _index4 = /*@__PURE__*/ requireToDate();
1738
+
1739
+ /**
1740
+ * The {@link getWeekYear} function options.
1741
+ */
1742
+
1743
+ /**
1744
+ * @name getWeekYear
1745
+ * @category Week-Numbering Year Helpers
1746
+ * @summary Get the local week-numbering year of the given date.
1747
+ *
1748
+ * @description
1749
+ * Get the local week-numbering year of the given date.
1750
+ * The exact calculation depends on the values of
1751
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1752
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1753
+ * the first week of the week-numbering year)
1754
+ *
1755
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1756
+ *
1757
+ * @param date - The given date
1758
+ * @param options - An object with options.
1759
+ *
1760
+ * @returns The local week-numbering year
1761
+ *
1762
+ * @example
1763
+ * // Which week numbering year is 26 December 2004 with the default settings?
1764
+ * const result = getWeekYear(new Date(2004, 11, 26))
1765
+ * //=> 2005
1766
+ *
1767
+ * @example
1768
+ * // Which week numbering year is 26 December 2004 if week starts on Saturday?
1769
+ * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
1770
+ * //=> 2004
1771
+ *
1772
+ * @example
1773
+ * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
1774
+ * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
1775
+ * //=> 2004
1776
+ */
1777
+ function getWeekYear$1(date, options) {
1778
+ const _date = (0, _index4.toDate)(date, options?.in);
1779
+ const year = _date.getFullYear();
1780
+
1781
+ const defaultOptions = (0, _index.getDefaultOptions)();
1782
+ const firstWeekContainsDate =
1783
+ options?.firstWeekContainsDate ??
1784
+ options?.locale?.options?.firstWeekContainsDate ??
1785
+ defaultOptions.firstWeekContainsDate ??
1786
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
1787
+ 1;
1788
+
1789
+ const firstWeekOfNextYear = (0, _index2.constructFrom)(
1790
+ options?.in || date,
1791
+ 0,
1792
+ );
1793
+ firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
1794
+ firstWeekOfNextYear.setHours(0, 0, 0, 0);
1795
+ const startOfNextYear = (0, _index3.startOfWeek)(
1796
+ firstWeekOfNextYear,
1797
+ options,
1798
+ );
1799
+
1800
+ const firstWeekOfThisYear = (0, _index2.constructFrom)(
1801
+ options?.in || date,
1802
+ 0,
1803
+ );
1804
+ firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
1805
+ firstWeekOfThisYear.setHours(0, 0, 0, 0);
1806
+ const startOfThisYear = (0, _index3.startOfWeek)(
1807
+ firstWeekOfThisYear,
1808
+ options,
1809
+ );
1810
+
1811
+ if (+_date >= +startOfNextYear) {
1812
+ return year + 1;
1813
+ } else if (+_date >= +startOfThisYear) {
1814
+ return year;
1815
+ } else {
1816
+ return year - 1;
1817
+ }
1818
+ }
1819
+ return getWeekYear;
1820
+ }
1821
+
1822
+ var hasRequiredStartOfWeekYear;
1823
+
1824
+ function requireStartOfWeekYear () {
1825
+ if (hasRequiredStartOfWeekYear) return startOfWeekYear;
1826
+ hasRequiredStartOfWeekYear = 1;
1827
+ startOfWeekYear.startOfWeekYear = startOfWeekYear$1;
1828
+ var _index = /*@__PURE__*/ requireDefaultOptions();
1829
+ var _index2 = /*@__PURE__*/ requireConstructFrom();
1830
+ var _index3 = /*@__PURE__*/ requireGetWeekYear();
1831
+ var _index4 = /*@__PURE__*/ requireStartOfWeek();
1832
+
1833
+ /**
1834
+ * The {@link startOfWeekYear} function options.
1835
+ */
1836
+
1837
+ /**
1838
+ * @name startOfWeekYear
1839
+ * @category Week-Numbering Year Helpers
1840
+ * @summary Return the start of a local week-numbering year for the given date.
1841
+ *
1842
+ * @description
1843
+ * Return the start of a local week-numbering year.
1844
+ * The exact calculation depends on the values of
1845
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1846
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1847
+ * the first week of the week-numbering year)
1848
+ *
1849
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1850
+ *
1851
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1852
+ * @typeParam ResultDate - The result `Date` type.
1853
+ *
1854
+ * @param date - The original date
1855
+ * @param options - An object with options
1856
+ *
1857
+ * @returns The start of a week-numbering year
1858
+ *
1859
+ * @example
1860
+ * // The start of an a week-numbering year for 2 July 2005 with default settings:
1861
+ * const result = startOfWeekYear(new Date(2005, 6, 2))
1862
+ * //=> Sun Dec 26 2004 00:00:00
1863
+ *
1864
+ * @example
1865
+ * // The start of a week-numbering year for 2 July 2005
1866
+ * // if Monday is the first day of week
1867
+ * // and 4 January is always in the first week of the year:
1868
+ * const result = startOfWeekYear(new Date(2005, 6, 2), {
1869
+ * weekStartsOn: 1,
1870
+ * firstWeekContainsDate: 4
1871
+ * })
1872
+ * //=> Mon Jan 03 2005 00:00:00
1873
+ */
1874
+ function startOfWeekYear$1(date, options) {
1875
+ const defaultOptions = (0, _index.getDefaultOptions)();
1876
+ const firstWeekContainsDate =
1877
+ options?.firstWeekContainsDate ??
1878
+ options?.locale?.options?.firstWeekContainsDate ??
1879
+ defaultOptions.firstWeekContainsDate ??
1880
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
1881
+ 1;
1882
+
1883
+ const year = (0, _index3.getWeekYear)(date, options);
1884
+ const firstWeek = (0, _index2.constructFrom)(options?.in || date, 0);
1885
+ firstWeek.setFullYear(year, 0, firstWeekContainsDate);
1886
+ firstWeek.setHours(0, 0, 0, 0);
1887
+ const _date = (0, _index4.startOfWeek)(firstWeek, options);
1888
+ return _date;
1889
+ }
1890
+ return startOfWeekYear;
1891
+ }
1892
+
1893
+ var hasRequiredGetWeek;
1894
+
1895
+ function requireGetWeek () {
1896
+ if (hasRequiredGetWeek) return getWeek;
1897
+ hasRequiredGetWeek = 1;
1898
+ getWeek.getWeek = getWeek$1;
1899
+ var _index = /*@__PURE__*/ requireConstants();
1900
+ var _index2 = /*@__PURE__*/ requireStartOfWeek();
1901
+ var _index3 = /*@__PURE__*/ requireStartOfWeekYear();
1902
+ var _index4 = /*@__PURE__*/ requireToDate();
1903
+
1904
+ /**
1905
+ * The {@link getWeek} function options.
1906
+ */
1907
+
1908
+ /**
1909
+ * @name getWeek
1910
+ * @category Week Helpers
1911
+ * @summary Get the local week index of the given date.
1912
+ *
1913
+ * @description
1914
+ * Get the local week index of the given date.
1915
+ * The exact calculation depends on the values of
1916
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1917
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1918
+ * the first week of the week-numbering year)
1919
+ *
1920
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1921
+ *
1922
+ * @param date - The given date
1923
+ * @param options - An object with options
1924
+ *
1925
+ * @returns The week
1926
+ *
1927
+ * @example
1928
+ * // Which week of the local week numbering year is 2 January 2005 with default options?
1929
+ * const result = getWeek(new Date(2005, 0, 2))
1930
+ * //=> 2
1931
+ *
1932
+ * @example
1933
+ * // Which week of the local week numbering year is 2 January 2005,
1934
+ * // if Monday is the first day of the week,
1935
+ * // and the first week of the year always contains 4 January?
1936
+ * const result = getWeek(new Date(2005, 0, 2), {
1937
+ * weekStartsOn: 1,
1938
+ * firstWeekContainsDate: 4
1939
+ * })
1940
+ * //=> 53
1941
+ */
1942
+ function getWeek$1(date, options) {
1943
+ const _date = (0, _index4.toDate)(date, options?.in);
1944
+ const diff =
1945
+ +(0, _index2.startOfWeek)(_date, options) -
1946
+ +(0, _index3.startOfWeekYear)(_date, options);
1947
+
1948
+ // Round the number of weeks to the nearest integer because the number of
1949
+ // milliseconds in a week is not constant (e.g. it's different in the week of
1950
+ // the daylight saving time clock shift).
1951
+ return Math.round(diff / _index.millisecondsInWeek) + 1;
1952
+ }
1953
+ return getWeek;
1954
+ }
1955
+
1956
+ var addLeadingZeros = {};
1957
+
1958
+ var hasRequiredAddLeadingZeros;
1959
+
1960
+ function requireAddLeadingZeros () {
1961
+ if (hasRequiredAddLeadingZeros) return addLeadingZeros;
1962
+ hasRequiredAddLeadingZeros = 1;
1963
+ addLeadingZeros.addLeadingZeros = addLeadingZeros$1;
1964
+ function addLeadingZeros$1(number, targetLength) {
1965
+ const sign = number < 0 ? "-" : "";
1966
+ const output = Math.abs(number).toString().padStart(targetLength, "0");
1967
+ return sign + output;
1968
+ }
1969
+ return addLeadingZeros;
1970
+ }
1971
+
1972
+ var lightFormatters = {};
1973
+
1974
+ var hasRequiredLightFormatters;
1975
+
1976
+ function requireLightFormatters () {
1977
+ if (hasRequiredLightFormatters) return lightFormatters;
1978
+ hasRequiredLightFormatters = 1;
1979
+ lightFormatters.lightFormatters = void 0;
1980
+ var _index = /*@__PURE__*/ requireAddLeadingZeros();
1981
+
1982
+ /*
1983
+ * | | Unit | | Unit |
1984
+ * |-----|--------------------------------|-----|--------------------------------|
1985
+ * | a | AM, PM | A* | |
1986
+ * | d | Day of month | D | |
1987
+ * | h | Hour [1-12] | H | Hour [0-23] |
1988
+ * | m | Minute | M | Month |
1989
+ * | s | Second | S | Fraction of second |
1990
+ * | y | Year (abs) | Y | |
1991
+ *
1992
+ * Letters marked by * are not implemented but reserved by Unicode standard.
1993
+ */
1994
+
1995
+ (lightFormatters.lightFormatters = {
1996
+ // Year
1997
+ y(date, token) {
1998
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
1999
+ // | Year | y | yy | yyy | yyyy | yyyyy |
2000
+ // |----------|-------|----|-------|-------|-------|
2001
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
2002
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
2003
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
2004
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
2005
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
2006
+
2007
+ const signedYear = date.getFullYear();
2008
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
2009
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
2010
+ return (0, _index.addLeadingZeros)(
2011
+ token === "yy" ? year % 100 : year,
2012
+ token.length,
2013
+ );
2014
+ },
2015
+
2016
+ // Month
2017
+ M(date, token) {
2018
+ const month = date.getMonth();
2019
+ return token === "M"
2020
+ ? String(month + 1)
2021
+ : (0, _index.addLeadingZeros)(month + 1, 2);
2022
+ },
2023
+
2024
+ // Day of the month
2025
+ d(date, token) {
2026
+ return (0, _index.addLeadingZeros)(date.getDate(), token.length);
2027
+ },
2028
+
2029
+ // AM or PM
2030
+ a(date, token) {
2031
+ const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am";
2032
+
2033
+ switch (token) {
2034
+ case "a":
2035
+ case "aa":
2036
+ return dayPeriodEnumValue.toUpperCase();
2037
+ case "aaa":
2038
+ return dayPeriodEnumValue;
2039
+ case "aaaaa":
2040
+ return dayPeriodEnumValue[0];
2041
+ case "aaaa":
2042
+ default:
2043
+ return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
2044
+ }
2045
+ },
2046
+
2047
+ // Hour [1-12]
2048
+ h(date, token) {
2049
+ return (0, _index.addLeadingZeros)(
2050
+ date.getHours() % 12 || 12,
2051
+ token.length,
2052
+ );
2053
+ },
2054
+
2055
+ // Hour [0-23]
2056
+ H(date, token) {
2057
+ return (0, _index.addLeadingZeros)(date.getHours(), token.length);
2058
+ },
2059
+
2060
+ // Minute
2061
+ m(date, token) {
2062
+ return (0, _index.addLeadingZeros)(date.getMinutes(), token.length);
2063
+ },
2064
+
2065
+ // Second
2066
+ s(date, token) {
2067
+ return (0, _index.addLeadingZeros)(date.getSeconds(), token.length);
2068
+ },
2069
+
2070
+ // Fraction of second
2071
+ S(date, token) {
2072
+ const numberOfDigits = token.length;
2073
+ const milliseconds = date.getMilliseconds();
2074
+ const fractionalSeconds = Math.trunc(
2075
+ milliseconds * Math.pow(10, numberOfDigits - 3),
2076
+ );
2077
+ return (0, _index.addLeadingZeros)(fractionalSeconds, token.length);
2078
+ },
2079
+ });
2080
+ return lightFormatters;
2081
+ }
2082
+
2083
+ var hasRequiredFormatters;
2084
+
2085
+ function requireFormatters () {
2086
+ if (hasRequiredFormatters) return formatters;
2087
+ hasRequiredFormatters = 1;
2088
+ formatters.formatters = void 0;
2089
+ var _index = /*@__PURE__*/ requireGetDayOfYear();
2090
+ var _index2 = /*@__PURE__*/ requireGetISOWeek();
2091
+ var _index3 = /*@__PURE__*/ requireGetISOWeekYear();
2092
+ var _index4 = /*@__PURE__*/ requireGetWeek();
2093
+ var _index5 = /*@__PURE__*/ requireGetWeekYear();
2094
+
2095
+ var _index6 = /*@__PURE__*/ requireAddLeadingZeros();
2096
+ var _index7 = /*@__PURE__*/ requireLightFormatters();
2097
+
2098
+ const dayPeriodEnum = {
2099
+ midnight: "midnight",
2100
+ noon: "noon",
2101
+ morning: "morning",
2102
+ afternoon: "afternoon",
2103
+ evening: "evening",
2104
+ night: "night",
2105
+ };
2106
+
2107
+ /*
2108
+ * | | Unit | | Unit |
2109
+ * |-----|--------------------------------|-----|--------------------------------|
2110
+ * | a | AM, PM | A* | Milliseconds in day |
2111
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
2112
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
2113
+ * | d | Day of month | D | Day of year |
2114
+ * | e | Local day of week | E | Day of week |
2115
+ * | f | | F* | Day of week in month |
2116
+ * | g* | Modified Julian day | G | Era |
2117
+ * | h | Hour [1-12] | H | Hour [0-23] |
2118
+ * | i! | ISO day of week | I! | ISO week of year |
2119
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
2120
+ * | k | Hour [1-24] | K | Hour [0-11] |
2121
+ * | l* | (deprecated) | L | Stand-alone month |
2122
+ * | m | Minute | M | Month |
2123
+ * | n | | N | |
2124
+ * | o! | Ordinal number modifier | O | Timezone (GMT) |
2125
+ * | p! | Long localized time | P! | Long localized date |
2126
+ * | q | Stand-alone quarter | Q | Quarter |
2127
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
2128
+ * | s | Second | S | Fraction of second |
2129
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
2130
+ * | u | Extended year | U* | Cyclic year |
2131
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
2132
+ * | w | Local week of year | W* | Week of month |
2133
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
2134
+ * | y | Year (abs) | Y | Local week-numbering year |
2135
+ * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
2136
+ *
2137
+ * Letters marked by * are not implemented but reserved by Unicode standard.
2138
+ *
2139
+ * Letters marked by ! are non-standard, but implemented by date-fns:
2140
+ * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
2141
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
2142
+ * i.e. 7 for Sunday, 1 for Monday, etc.
2143
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
2144
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
2145
+ * `R` is supposed to be used in conjunction with `I` and `i`
2146
+ * for universal ISO week-numbering date, whereas
2147
+ * `Y` is supposed to be used in conjunction with `w` and `e`
2148
+ * for week-numbering date specific to the locale.
2149
+ * - `P` is long localized date format
2150
+ * - `p` is long localized time format
2151
+ */
2152
+
2153
+ (formatters.formatters = {
2154
+ // Era
2155
+ G: function (date, token, localize) {
2156
+ const era = date.getFullYear() > 0 ? 1 : 0;
2157
+ switch (token) {
2158
+ // AD, BC
2159
+ case "G":
2160
+ case "GG":
2161
+ case "GGG":
2162
+ return localize.era(era, { width: "abbreviated" });
2163
+ // A, B
2164
+ case "GGGGG":
2165
+ return localize.era(era, { width: "narrow" });
2166
+ // Anno Domini, Before Christ
2167
+ case "GGGG":
2168
+ default:
2169
+ return localize.era(era, { width: "wide" });
2170
+ }
2171
+ },
2172
+
2173
+ // Year
2174
+ y: function (date, token, localize) {
2175
+ // Ordinal number
2176
+ if (token === "yo") {
2177
+ const signedYear = date.getFullYear();
2178
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
2179
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
2180
+ return localize.ordinalNumber(year, { unit: "year" });
2181
+ }
2182
+
2183
+ return _index7.lightFormatters.y(date, token);
2184
+ },
2185
+
2186
+ // Local week-numbering year
2187
+ Y: function (date, token, localize, options) {
2188
+ const signedWeekYear = (0, _index5.getWeekYear)(date, options);
2189
+ // Returns 1 for 1 BC (which is year 0 in JavaScript)
2190
+ const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
2191
+
2192
+ // Two digit year
2193
+ if (token === "YY") {
2194
+ const twoDigitYear = weekYear % 100;
2195
+ return (0, _index6.addLeadingZeros)(twoDigitYear, 2);
2196
+ }
2197
+
2198
+ // Ordinal number
2199
+ if (token === "Yo") {
2200
+ return localize.ordinalNumber(weekYear, { unit: "year" });
2201
+ }
2202
+
2203
+ // Padding
2204
+ return (0, _index6.addLeadingZeros)(weekYear, token.length);
2205
+ },
2206
+
2207
+ // ISO week-numbering year
2208
+ R: function (date, token) {
2209
+ const isoWeekYear = (0, _index3.getISOWeekYear)(date);
2210
+
2211
+ // Padding
2212
+ return (0, _index6.addLeadingZeros)(isoWeekYear, token.length);
2213
+ },
2214
+
2215
+ // Extended year. This is a single number designating the year of this calendar system.
2216
+ // The main difference between `y` and `u` localizers are B.C. years:
2217
+ // | Year | `y` | `u` |
2218
+ // |------|-----|-----|
2219
+ // | AC 1 | 1 | 1 |
2220
+ // | BC 1 | 1 | 0 |
2221
+ // | BC 2 | 2 | -1 |
2222
+ // Also `yy` always returns the last two digits of a year,
2223
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
2224
+ u: function (date, token) {
2225
+ const year = date.getFullYear();
2226
+ return (0, _index6.addLeadingZeros)(year, token.length);
2227
+ },
2228
+
2229
+ // Quarter
2230
+ Q: function (date, token, localize) {
2231
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
2232
+ switch (token) {
2233
+ // 1, 2, 3, 4
2234
+ case "Q":
2235
+ return String(quarter);
2236
+ // 01, 02, 03, 04
2237
+ case "QQ":
2238
+ return (0, _index6.addLeadingZeros)(quarter, 2);
2239
+ // 1st, 2nd, 3rd, 4th
2240
+ case "Qo":
2241
+ return localize.ordinalNumber(quarter, { unit: "quarter" });
2242
+ // Q1, Q2, Q3, Q4
2243
+ case "QQQ":
2244
+ return localize.quarter(quarter, {
2245
+ width: "abbreviated",
2246
+ context: "formatting",
2247
+ });
2248
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2249
+ case "QQQQQ":
2250
+ return localize.quarter(quarter, {
2251
+ width: "narrow",
2252
+ context: "formatting",
2253
+ });
2254
+ // 1st quarter, 2nd quarter, ...
2255
+ case "QQQQ":
2256
+ default:
2257
+ return localize.quarter(quarter, {
2258
+ width: "wide",
2259
+ context: "formatting",
2260
+ });
2261
+ }
2262
+ },
2263
+
2264
+ // Stand-alone quarter
2265
+ q: function (date, token, localize) {
2266
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
2267
+ switch (token) {
2268
+ // 1, 2, 3, 4
2269
+ case "q":
2270
+ return String(quarter);
2271
+ // 01, 02, 03, 04
2272
+ case "qq":
2273
+ return (0, _index6.addLeadingZeros)(quarter, 2);
2274
+ // 1st, 2nd, 3rd, 4th
2275
+ case "qo":
2276
+ return localize.ordinalNumber(quarter, { unit: "quarter" });
2277
+ // Q1, Q2, Q3, Q4
2278
+ case "qqq":
2279
+ return localize.quarter(quarter, {
2280
+ width: "abbreviated",
2281
+ context: "standalone",
2282
+ });
2283
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
2284
+ case "qqqqq":
2285
+ return localize.quarter(quarter, {
2286
+ width: "narrow",
2287
+ context: "standalone",
2288
+ });
2289
+ // 1st quarter, 2nd quarter, ...
2290
+ case "qqqq":
2291
+ default:
2292
+ return localize.quarter(quarter, {
2293
+ width: "wide",
2294
+ context: "standalone",
2295
+ });
2296
+ }
2297
+ },
2298
+
2299
+ // Month
2300
+ M: function (date, token, localize) {
2301
+ const month = date.getMonth();
2302
+ switch (token) {
2303
+ case "M":
2304
+ case "MM":
2305
+ return _index7.lightFormatters.M(date, token);
2306
+ // 1st, 2nd, ..., 12th
2307
+ case "Mo":
2308
+ return localize.ordinalNumber(month + 1, { unit: "month" });
2309
+ // Jan, Feb, ..., Dec
2310
+ case "MMM":
2311
+ return localize.month(month, {
2312
+ width: "abbreviated",
2313
+ context: "formatting",
2314
+ });
2315
+ // J, F, ..., D
2316
+ case "MMMMM":
2317
+ return localize.month(month, {
2318
+ width: "narrow",
2319
+ context: "formatting",
2320
+ });
2321
+ // January, February, ..., December
2322
+ case "MMMM":
2323
+ default:
2324
+ return localize.month(month, { width: "wide", context: "formatting" });
2325
+ }
2326
+ },
2327
+
2328
+ // Stand-alone month
2329
+ L: function (date, token, localize) {
2330
+ const month = date.getMonth();
2331
+ switch (token) {
2332
+ // 1, 2, ..., 12
2333
+ case "L":
2334
+ return String(month + 1);
2335
+ // 01, 02, ..., 12
2336
+ case "LL":
2337
+ return (0, _index6.addLeadingZeros)(month + 1, 2);
2338
+ // 1st, 2nd, ..., 12th
2339
+ case "Lo":
2340
+ return localize.ordinalNumber(month + 1, { unit: "month" });
2341
+ // Jan, Feb, ..., Dec
2342
+ case "LLL":
2343
+ return localize.month(month, {
2344
+ width: "abbreviated",
2345
+ context: "standalone",
2346
+ });
2347
+ // J, F, ..., D
2348
+ case "LLLLL":
2349
+ return localize.month(month, {
2350
+ width: "narrow",
2351
+ context: "standalone",
2352
+ });
2353
+ // January, February, ..., December
2354
+ case "LLLL":
2355
+ default:
2356
+ return localize.month(month, { width: "wide", context: "standalone" });
2357
+ }
2358
+ },
2359
+
2360
+ // Local week of year
2361
+ w: function (date, token, localize, options) {
2362
+ const week = (0, _index4.getWeek)(date, options);
2363
+
2364
+ if (token === "wo") {
2365
+ return localize.ordinalNumber(week, { unit: "week" });
2366
+ }
2367
+
2368
+ return (0, _index6.addLeadingZeros)(week, token.length);
2369
+ },
2370
+
2371
+ // ISO week of year
2372
+ I: function (date, token, localize) {
2373
+ const isoWeek = (0, _index2.getISOWeek)(date);
2374
+
2375
+ if (token === "Io") {
2376
+ return localize.ordinalNumber(isoWeek, { unit: "week" });
2377
+ }
2378
+
2379
+ return (0, _index6.addLeadingZeros)(isoWeek, token.length);
2380
+ },
2381
+
2382
+ // Day of the month
2383
+ d: function (date, token, localize) {
2384
+ if (token === "do") {
2385
+ return localize.ordinalNumber(date.getDate(), { unit: "date" });
2386
+ }
2387
+
2388
+ return _index7.lightFormatters.d(date, token);
2389
+ },
2390
+
2391
+ // Day of year
2392
+ D: function (date, token, localize) {
2393
+ const dayOfYear = (0, _index.getDayOfYear)(date);
2394
+
2395
+ if (token === "Do") {
2396
+ return localize.ordinalNumber(dayOfYear, { unit: "dayOfYear" });
2397
+ }
2398
+
2399
+ return (0, _index6.addLeadingZeros)(dayOfYear, token.length);
2400
+ },
2401
+
2402
+ // Day of week
2403
+ E: function (date, token, localize) {
2404
+ const dayOfWeek = date.getDay();
2405
+ switch (token) {
2406
+ // Tue
2407
+ case "E":
2408
+ case "EE":
2409
+ case "EEE":
2410
+ return localize.day(dayOfWeek, {
2411
+ width: "abbreviated",
2412
+ context: "formatting",
2413
+ });
2414
+ // T
2415
+ case "EEEEE":
2416
+ return localize.day(dayOfWeek, {
2417
+ width: "narrow",
2418
+ context: "formatting",
2419
+ });
2420
+ // Tu
2421
+ case "EEEEEE":
2422
+ return localize.day(dayOfWeek, {
2423
+ width: "short",
2424
+ context: "formatting",
2425
+ });
2426
+ // Tuesday
2427
+ case "EEEE":
2428
+ default:
2429
+ return localize.day(dayOfWeek, {
2430
+ width: "wide",
2431
+ context: "formatting",
2432
+ });
2433
+ }
2434
+ },
2435
+
2436
+ // Local day of week
2437
+ e: function (date, token, localize, options) {
2438
+ const dayOfWeek = date.getDay();
2439
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2440
+ switch (token) {
2441
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
2442
+ case "e":
2443
+ return String(localDayOfWeek);
2444
+ // Padded numerical value
2445
+ case "ee":
2446
+ return (0, _index6.addLeadingZeros)(localDayOfWeek, 2);
2447
+ // 1st, 2nd, ..., 7th
2448
+ case "eo":
2449
+ return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
2450
+ case "eee":
2451
+ return localize.day(dayOfWeek, {
2452
+ width: "abbreviated",
2453
+ context: "formatting",
2454
+ });
2455
+ // T
2456
+ case "eeeee":
2457
+ return localize.day(dayOfWeek, {
2458
+ width: "narrow",
2459
+ context: "formatting",
2460
+ });
2461
+ // Tu
2462
+ case "eeeeee":
2463
+ return localize.day(dayOfWeek, {
2464
+ width: "short",
2465
+ context: "formatting",
2466
+ });
2467
+ // Tuesday
2468
+ case "eeee":
2469
+ default:
2470
+ return localize.day(dayOfWeek, {
2471
+ width: "wide",
2472
+ context: "formatting",
2473
+ });
2474
+ }
2475
+ },
2476
+
2477
+ // Stand-alone local day of week
2478
+ c: function (date, token, localize, options) {
2479
+ const dayOfWeek = date.getDay();
2480
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2481
+ switch (token) {
2482
+ // Numerical value (same as in `e`)
2483
+ case "c":
2484
+ return String(localDayOfWeek);
2485
+ // Padded numerical value
2486
+ case "cc":
2487
+ return (0, _index6.addLeadingZeros)(localDayOfWeek, token.length);
2488
+ // 1st, 2nd, ..., 7th
2489
+ case "co":
2490
+ return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
2491
+ case "ccc":
2492
+ return localize.day(dayOfWeek, {
2493
+ width: "abbreviated",
2494
+ context: "standalone",
2495
+ });
2496
+ // T
2497
+ case "ccccc":
2498
+ return localize.day(dayOfWeek, {
2499
+ width: "narrow",
2500
+ context: "standalone",
2501
+ });
2502
+ // Tu
2503
+ case "cccccc":
2504
+ return localize.day(dayOfWeek, {
2505
+ width: "short",
2506
+ context: "standalone",
2507
+ });
2508
+ // Tuesday
2509
+ case "cccc":
2510
+ default:
2511
+ return localize.day(dayOfWeek, {
2512
+ width: "wide",
2513
+ context: "standalone",
2514
+ });
2515
+ }
2516
+ },
2517
+
2518
+ // ISO day of week
2519
+ i: function (date, token, localize) {
2520
+ const dayOfWeek = date.getDay();
2521
+ const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
2522
+ switch (token) {
2523
+ // 2
2524
+ case "i":
2525
+ return String(isoDayOfWeek);
2526
+ // 02
2527
+ case "ii":
2528
+ return (0, _index6.addLeadingZeros)(isoDayOfWeek, token.length);
2529
+ // 2nd
2530
+ case "io":
2531
+ return localize.ordinalNumber(isoDayOfWeek, { unit: "day" });
2532
+ // Tue
2533
+ case "iii":
2534
+ return localize.day(dayOfWeek, {
2535
+ width: "abbreviated",
2536
+ context: "formatting",
2537
+ });
2538
+ // T
2539
+ case "iiiii":
2540
+ return localize.day(dayOfWeek, {
2541
+ width: "narrow",
2542
+ context: "formatting",
2543
+ });
2544
+ // Tu
2545
+ case "iiiiii":
2546
+ return localize.day(dayOfWeek, {
2547
+ width: "short",
2548
+ context: "formatting",
2549
+ });
2550
+ // Tuesday
2551
+ case "iiii":
2552
+ default:
2553
+ return localize.day(dayOfWeek, {
2554
+ width: "wide",
2555
+ context: "formatting",
2556
+ });
2557
+ }
2558
+ },
2559
+
2560
+ // AM or PM
2561
+ a: function (date, token, localize) {
2562
+ const hours = date.getHours();
2563
+ const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
2564
+
2565
+ switch (token) {
2566
+ case "a":
2567
+ case "aa":
2568
+ return localize.dayPeriod(dayPeriodEnumValue, {
2569
+ width: "abbreviated",
2570
+ context: "formatting",
2571
+ });
2572
+ case "aaa":
2573
+ return localize
2574
+ .dayPeriod(dayPeriodEnumValue, {
2575
+ width: "abbreviated",
2576
+ context: "formatting",
2577
+ })
2578
+ .toLowerCase();
2579
+ case "aaaaa":
2580
+ return localize.dayPeriod(dayPeriodEnumValue, {
2581
+ width: "narrow",
2582
+ context: "formatting",
2583
+ });
2584
+ case "aaaa":
2585
+ default:
2586
+ return localize.dayPeriod(dayPeriodEnumValue, {
2587
+ width: "wide",
2588
+ context: "formatting",
2589
+ });
2590
+ }
2591
+ },
2592
+
2593
+ // AM, PM, midnight, noon
2594
+ b: function (date, token, localize) {
2595
+ const hours = date.getHours();
2596
+ let dayPeriodEnumValue;
2597
+ if (hours === 12) {
2598
+ dayPeriodEnumValue = dayPeriodEnum.noon;
2599
+ } else if (hours === 0) {
2600
+ dayPeriodEnumValue = dayPeriodEnum.midnight;
2601
+ } else {
2602
+ dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
2603
+ }
2604
+
2605
+ switch (token) {
2606
+ case "b":
2607
+ case "bb":
2608
+ return localize.dayPeriod(dayPeriodEnumValue, {
2609
+ width: "abbreviated",
2610
+ context: "formatting",
2611
+ });
2612
+ case "bbb":
2613
+ return localize
2614
+ .dayPeriod(dayPeriodEnumValue, {
2615
+ width: "abbreviated",
2616
+ context: "formatting",
2617
+ })
2618
+ .toLowerCase();
2619
+ case "bbbbb":
2620
+ return localize.dayPeriod(dayPeriodEnumValue, {
2621
+ width: "narrow",
2622
+ context: "formatting",
2623
+ });
2624
+ case "bbbb":
2625
+ default:
2626
+ return localize.dayPeriod(dayPeriodEnumValue, {
2627
+ width: "wide",
2628
+ context: "formatting",
2629
+ });
2630
+ }
2631
+ },
2632
+
2633
+ // in the morning, in the afternoon, in the evening, at night
2634
+ B: function (date, token, localize) {
2635
+ const hours = date.getHours();
2636
+ let dayPeriodEnumValue;
2637
+ if (hours >= 17) {
2638
+ dayPeriodEnumValue = dayPeriodEnum.evening;
2639
+ } else if (hours >= 12) {
2640
+ dayPeriodEnumValue = dayPeriodEnum.afternoon;
2641
+ } else if (hours >= 4) {
2642
+ dayPeriodEnumValue = dayPeriodEnum.morning;
2643
+ } else {
2644
+ dayPeriodEnumValue = dayPeriodEnum.night;
2645
+ }
2646
+
2647
+ switch (token) {
2648
+ case "B":
2649
+ case "BB":
2650
+ case "BBB":
2651
+ return localize.dayPeriod(dayPeriodEnumValue, {
2652
+ width: "abbreviated",
2653
+ context: "formatting",
2654
+ });
2655
+ case "BBBBB":
2656
+ return localize.dayPeriod(dayPeriodEnumValue, {
2657
+ width: "narrow",
2658
+ context: "formatting",
2659
+ });
2660
+ case "BBBB":
2661
+ default:
2662
+ return localize.dayPeriod(dayPeriodEnumValue, {
2663
+ width: "wide",
2664
+ context: "formatting",
2665
+ });
2666
+ }
2667
+ },
2668
+
2669
+ // Hour [1-12]
2670
+ h: function (date, token, localize) {
2671
+ if (token === "ho") {
2672
+ let hours = date.getHours() % 12;
2673
+ if (hours === 0) hours = 12;
2674
+ return localize.ordinalNumber(hours, { unit: "hour" });
2675
+ }
2676
+
2677
+ return _index7.lightFormatters.h(date, token);
2678
+ },
2679
+
2680
+ // Hour [0-23]
2681
+ H: function (date, token, localize) {
2682
+ if (token === "Ho") {
2683
+ return localize.ordinalNumber(date.getHours(), { unit: "hour" });
2684
+ }
2685
+
2686
+ return _index7.lightFormatters.H(date, token);
2687
+ },
2688
+
2689
+ // Hour [0-11]
2690
+ K: function (date, token, localize) {
2691
+ const hours = date.getHours() % 12;
2692
+
2693
+ if (token === "Ko") {
2694
+ return localize.ordinalNumber(hours, { unit: "hour" });
2695
+ }
2696
+
2697
+ return (0, _index6.addLeadingZeros)(hours, token.length);
2698
+ },
2699
+
2700
+ // Hour [1-24]
2701
+ k: function (date, token, localize) {
2702
+ let hours = date.getHours();
2703
+ if (hours === 0) hours = 24;
2704
+
2705
+ if (token === "ko") {
2706
+ return localize.ordinalNumber(hours, { unit: "hour" });
2707
+ }
2708
+
2709
+ return (0, _index6.addLeadingZeros)(hours, token.length);
2710
+ },
2711
+
2712
+ // Minute
2713
+ m: function (date, token, localize) {
2714
+ if (token === "mo") {
2715
+ return localize.ordinalNumber(date.getMinutes(), { unit: "minute" });
2716
+ }
2717
+
2718
+ return _index7.lightFormatters.m(date, token);
2719
+ },
2720
+
2721
+ // Second
2722
+ s: function (date, token, localize) {
2723
+ if (token === "so") {
2724
+ return localize.ordinalNumber(date.getSeconds(), { unit: "second" });
2725
+ }
2726
+
2727
+ return _index7.lightFormatters.s(date, token);
2728
+ },
2729
+
2730
+ // Fraction of second
2731
+ S: function (date, token) {
2732
+ return _index7.lightFormatters.S(date, token);
2733
+ },
2734
+
2735
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
2736
+ X: function (date, token, _localize) {
2737
+ const timezoneOffset = date.getTimezoneOffset();
2738
+
2739
+ if (timezoneOffset === 0) {
2740
+ return "Z";
2741
+ }
2742
+
2743
+ switch (token) {
2744
+ // Hours and optional minutes
2745
+ case "X":
2746
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
2747
+
2748
+ // Hours, minutes and optional seconds without `:` delimiter
2749
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2750
+ // so this token always has the same output as `XX`
2751
+ case "XXXX":
2752
+ case "XX": // Hours and minutes without `:` delimiter
2753
+ return formatTimezone(timezoneOffset);
2754
+
2755
+ // Hours, minutes and optional seconds with `:` delimiter
2756
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2757
+ // so this token always has the same output as `XXX`
2758
+ case "XXXXX":
2759
+ case "XXX": // Hours and minutes with `:` delimiter
2760
+ default:
2761
+ return formatTimezone(timezoneOffset, ":");
2762
+ }
2763
+ },
2764
+
2765
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
2766
+ x: function (date, token, _localize) {
2767
+ const timezoneOffset = date.getTimezoneOffset();
2768
+
2769
+ switch (token) {
2770
+ // Hours and optional minutes
2771
+ case "x":
2772
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
2773
+
2774
+ // Hours, minutes and optional seconds without `:` delimiter
2775
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2776
+ // so this token always has the same output as `xx`
2777
+ case "xxxx":
2778
+ case "xx": // Hours and minutes without `:` delimiter
2779
+ return formatTimezone(timezoneOffset);
2780
+
2781
+ // Hours, minutes and optional seconds with `:` delimiter
2782
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2783
+ // so this token always has the same output as `xxx`
2784
+ case "xxxxx":
2785
+ case "xxx": // Hours and minutes with `:` delimiter
2786
+ default:
2787
+ return formatTimezone(timezoneOffset, ":");
2788
+ }
2789
+ },
2790
+
2791
+ // Timezone (GMT)
2792
+ O: function (date, token, _localize) {
2793
+ const timezoneOffset = date.getTimezoneOffset();
2794
+
2795
+ switch (token) {
2796
+ // Short
2797
+ case "O":
2798
+ case "OO":
2799
+ case "OOO":
2800
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2801
+ // Long
2802
+ case "OOOO":
2803
+ default:
2804
+ return "GMT" + formatTimezone(timezoneOffset, ":");
2805
+ }
2806
+ },
2807
+
2808
+ // Timezone (specific non-location)
2809
+ z: function (date, token, _localize) {
2810
+ const timezoneOffset = date.getTimezoneOffset();
2811
+
2812
+ switch (token) {
2813
+ // Short
2814
+ case "z":
2815
+ case "zz":
2816
+ case "zzz":
2817
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2818
+ // Long
2819
+ case "zzzz":
2820
+ default:
2821
+ return "GMT" + formatTimezone(timezoneOffset, ":");
2822
+ }
2823
+ },
2824
+
2825
+ // Seconds timestamp
2826
+ t: function (date, token, _localize) {
2827
+ const timestamp = Math.trunc(+date / 1000);
2828
+ return (0, _index6.addLeadingZeros)(timestamp, token.length);
2829
+ },
2830
+
2831
+ // Milliseconds timestamp
2832
+ T: function (date, token, _localize) {
2833
+ return (0, _index6.addLeadingZeros)(+date, token.length);
2834
+ },
2835
+ });
2836
+
2837
+ function formatTimezoneShort(offset, delimiter = "") {
2838
+ const sign = offset > 0 ? "-" : "+";
2839
+ const absOffset = Math.abs(offset);
2840
+ const hours = Math.trunc(absOffset / 60);
2841
+ const minutes = absOffset % 60;
2842
+ if (minutes === 0) {
2843
+ return sign + String(hours);
2844
+ }
2845
+ return (
2846
+ sign + String(hours) + delimiter + (0, _index6.addLeadingZeros)(minutes, 2)
2847
+ );
2848
+ }
2849
+
2850
+ function formatTimezoneWithOptionalMinutes(offset, delimiter) {
2851
+ if (offset % 60 === 0) {
2852
+ const sign = offset > 0 ? "-" : "+";
2853
+ return sign + (0, _index6.addLeadingZeros)(Math.abs(offset) / 60, 2);
2854
+ }
2855
+ return formatTimezone(offset, delimiter);
2856
+ }
2857
+
2858
+ function formatTimezone(offset, delimiter = "") {
2859
+ const sign = offset > 0 ? "-" : "+";
2860
+ const absOffset = Math.abs(offset);
2861
+ const hours = (0, _index6.addLeadingZeros)(Math.trunc(absOffset / 60), 2);
2862
+ const minutes = (0, _index6.addLeadingZeros)(absOffset % 60, 2);
2863
+ return sign + hours + delimiter + minutes;
2864
+ }
2865
+ return formatters;
2866
+ }
2867
+
2868
+ var longFormatters = {};
2869
+
2870
+ var hasRequiredLongFormatters;
2871
+
2872
+ function requireLongFormatters () {
2873
+ if (hasRequiredLongFormatters) return longFormatters;
2874
+ hasRequiredLongFormatters = 1;
2875
+ longFormatters.longFormatters = void 0;
2876
+
2877
+ const dateLongFormatter = (pattern, formatLong) => {
2878
+ switch (pattern) {
2879
+ case "P":
2880
+ return formatLong.date({ width: "short" });
2881
+ case "PP":
2882
+ return formatLong.date({ width: "medium" });
2883
+ case "PPP":
2884
+ return formatLong.date({ width: "long" });
2885
+ case "PPPP":
2886
+ default:
2887
+ return formatLong.date({ width: "full" });
2888
+ }
2889
+ };
2890
+
2891
+ const timeLongFormatter = (pattern, formatLong) => {
2892
+ switch (pattern) {
2893
+ case "p":
2894
+ return formatLong.time({ width: "short" });
2895
+ case "pp":
2896
+ return formatLong.time({ width: "medium" });
2897
+ case "ppp":
2898
+ return formatLong.time({ width: "long" });
2899
+ case "pppp":
2900
+ default:
2901
+ return formatLong.time({ width: "full" });
2902
+ }
2903
+ };
2904
+
2905
+ const dateTimeLongFormatter = (pattern, formatLong) => {
2906
+ const matchResult = pattern.match(/(P+)(p+)?/) || [];
2907
+ const datePattern = matchResult[1];
2908
+ const timePattern = matchResult[2];
2909
+
2910
+ if (!timePattern) {
2911
+ return dateLongFormatter(pattern, formatLong);
2912
+ }
2913
+
2914
+ let dateTimeFormat;
2915
+
2916
+ switch (datePattern) {
2917
+ case "P":
2918
+ dateTimeFormat = formatLong.dateTime({ width: "short" });
2919
+ break;
2920
+ case "PP":
2921
+ dateTimeFormat = formatLong.dateTime({ width: "medium" });
2922
+ break;
2923
+ case "PPP":
2924
+ dateTimeFormat = formatLong.dateTime({ width: "long" });
2925
+ break;
2926
+ case "PPPP":
2927
+ default:
2928
+ dateTimeFormat = formatLong.dateTime({ width: "full" });
2929
+ break;
2930
+ }
2931
+
2932
+ return dateTimeFormat
2933
+ .replace("{{date}}", dateLongFormatter(datePattern, formatLong))
2934
+ .replace("{{time}}", timeLongFormatter(timePattern, formatLong));
2935
+ };
2936
+
2937
+ (longFormatters.longFormatters = {
2938
+ p: timeLongFormatter,
2939
+ P: dateTimeLongFormatter,
2940
+ });
2941
+ return longFormatters;
2942
+ }
2943
+
2944
+ var protectedTokens = {};
2945
+
2946
+ var hasRequiredProtectedTokens;
2947
+
2948
+ function requireProtectedTokens () {
2949
+ if (hasRequiredProtectedTokens) return protectedTokens;
2950
+ hasRequiredProtectedTokens = 1;
2951
+ protectedTokens.isProtectedDayOfYearToken = isProtectedDayOfYearToken;
2952
+ protectedTokens.isProtectedWeekYearToken = isProtectedWeekYearToken;
2953
+ protectedTokens.warnOrThrowProtectedError = warnOrThrowProtectedError;
2954
+ const dayOfYearTokenRE = /^D+$/;
2955
+ const weekYearTokenRE = /^Y+$/;
2956
+
2957
+ const throwTokens = ["D", "DD", "YY", "YYYY"];
2958
+
2959
+ function isProtectedDayOfYearToken(token) {
2960
+ return dayOfYearTokenRE.test(token);
2961
+ }
2962
+
2963
+ function isProtectedWeekYearToken(token) {
2964
+ return weekYearTokenRE.test(token);
2965
+ }
2966
+
2967
+ function warnOrThrowProtectedError(token, format, input) {
2968
+ const _message = message(token, format, input);
2969
+ console.warn(_message);
2970
+ if (throwTokens.includes(token)) throw new RangeError(_message);
2971
+ }
2972
+
2973
+ function message(token, format, input) {
2974
+ const subject = token[0] === "Y" ? "years" : "days of the month";
2975
+ return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2976
+ }
2977
+ return protectedTokens;
2978
+ }
2979
+
2980
+ var isValid = {};
2981
+
2982
+ var isDate = {};
2983
+
2984
+ var hasRequiredIsDate;
2985
+
2986
+ function requireIsDate () {
2987
+ if (hasRequiredIsDate) return isDate;
2988
+ hasRequiredIsDate = 1;
2989
+ isDate.isDate = isDate$1; /**
2990
+ * @name isDate
2991
+ * @category Common Helpers
2992
+ * @summary Is the given value a date?
2993
+ *
2994
+ * @description
2995
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
2996
+ *
2997
+ * @param value - The value to check
2998
+ *
2999
+ * @returns True if the given value is a date
3000
+ *
3001
+ * @example
3002
+ * // For a valid date:
3003
+ * const result = isDate(new Date())
3004
+ * //=> true
3005
+ *
3006
+ * @example
3007
+ * // For an invalid date:
3008
+ * const result = isDate(new Date(NaN))
3009
+ * //=> true
3010
+ *
3011
+ * @example
3012
+ * // For some value:
3013
+ * const result = isDate('2014-02-31')
3014
+ * //=> false
3015
+ *
3016
+ * @example
3017
+ * // For an object:
3018
+ * const result = isDate({})
3019
+ * //=> false
3020
+ */
3021
+ function isDate$1(value) {
3022
+ return (
3023
+ value instanceof Date ||
3024
+ (typeof value === "object" &&
3025
+ Object.prototype.toString.call(value) === "[object Date]")
3026
+ );
3027
+ }
3028
+ return isDate;
3029
+ }
3030
+
3031
+ var hasRequiredIsValid;
3032
+
3033
+ function requireIsValid () {
3034
+ if (hasRequiredIsValid) return isValid;
3035
+ hasRequiredIsValid = 1;
3036
+ isValid.isValid = isValid$1;
3037
+ var _index = /*@__PURE__*/ requireIsDate();
3038
+ var _index2 = /*@__PURE__*/ requireToDate();
3039
+
3040
+ /**
3041
+ * @name isValid
3042
+ * @category Common Helpers
3043
+ * @summary Is the given date valid?
3044
+ *
3045
+ * @description
3046
+ * Returns false if argument is Invalid Date and true otherwise.
3047
+ * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)
3048
+ * Invalid Date is a Date, whose time value is NaN.
3049
+ *
3050
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
3051
+ *
3052
+ * @param date - The date to check
3053
+ *
3054
+ * @returns The date is valid
3055
+ *
3056
+ * @example
3057
+ * // For the valid date:
3058
+ * const result = isValid(new Date(2014, 1, 31))
3059
+ * //=> true
3060
+ *
3061
+ * @example
3062
+ * // For the value, convertible into a date:
3063
+ * const result = isValid(1393804800000)
3064
+ * //=> true
3065
+ *
3066
+ * @example
3067
+ * // For the invalid date:
3068
+ * const result = isValid(new Date(''))
3069
+ * //=> false
3070
+ */
3071
+ function isValid$1(date) {
3072
+ return !(
3073
+ (!(0, _index.isDate)(date) && typeof date !== "number") ||
3074
+ isNaN(+(0, _index2.toDate)(date))
3075
+ );
3076
+ }
3077
+ return isValid;
3078
+ }
3079
+
3080
+ var hasRequiredFormat;
3081
+
3082
+ function requireFormat () {
3083
+ if (hasRequiredFormat) return format;
3084
+ hasRequiredFormat = 1;
3085
+ (function (exports) {
3086
+ exports.format = exports.formatDate = format;
3087
+ Object.defineProperty(exports, "formatters", {
3088
+ enumerable: true,
3089
+ get: function () {
3090
+ return _index3.formatters;
3091
+ },
3092
+ });
3093
+ Object.defineProperty(exports, "longFormatters", {
3094
+ enumerable: true,
3095
+ get: function () {
3096
+ return _index4.longFormatters;
3097
+ },
3098
+ });
3099
+ var _index = /*@__PURE__*/ requireDefaultLocale();
3100
+ var _index2 = /*@__PURE__*/ requireDefaultOptions();
3101
+ var _index3 = /*@__PURE__*/ requireFormatters();
3102
+ var _index4 = /*@__PURE__*/ requireLongFormatters();
3103
+ var _index5 = /*@__PURE__*/ requireProtectedTokens();
3104
+
3105
+ var _index6 = /*@__PURE__*/ requireIsValid();
3106
+ var _index7 = /*@__PURE__*/ requireToDate();
3107
+
3108
+ // Rexports of internal for libraries to use.
3109
+ // See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874
3110
+
3111
+ // This RegExp consists of three parts separated by `|`:
3112
+ // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
3113
+ // (one of the certain letters followed by `o`)
3114
+ // - (\w)\1* matches any sequences of the same letter
3115
+ // - '' matches two quote characters in a row
3116
+ // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
3117
+ // except a single quote symbol, which ends the sequence.
3118
+ // Two quote characters do not end the sequence.
3119
+ // If there is no matching single quote
3120
+ // then the sequence will continue until the end of the string.
3121
+ // - . matches any single character unmatched by previous parts of the RegExps
3122
+ const formattingTokensRegExp =
3123
+ /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
3124
+
3125
+ // This RegExp catches symbols escaped by quotes, and also
3126
+ // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
3127
+ const longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
3128
+
3129
+ const escapedStringRegExp = /^'([^]*?)'?$/;
3130
+ const doubleQuoteRegExp = /''/g;
3131
+ const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
3132
+
3133
+ /**
3134
+ * The {@link format} function options.
3135
+ */
3136
+
3137
+ /**
3138
+ * @name format
3139
+ * @alias formatDate
3140
+ * @category Common Helpers
3141
+ * @summary Format the date.
3142
+ *
3143
+ * @description
3144
+ * Return the formatted date string in the given format. The result may vary by locale.
3145
+ *
3146
+ * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
3147
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3148
+ *
3149
+ * The characters wrapped between two single quotes characters (') are escaped.
3150
+ * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
3151
+ * (see the last example)
3152
+ *
3153
+ * Format of the string is based on Unicode Technical Standard #35:
3154
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
3155
+ * with a few additions (see note 7 below the table).
3156
+ *
3157
+ * Accepted patterns:
3158
+ * | Unit | Pattern | Result examples | Notes |
3159
+ * |---------------------------------|---------|-----------------------------------|-------|
3160
+ * | Era | G..GGG | AD, BC | |
3161
+ * | | GGGG | Anno Domini, Before Christ | 2 |
3162
+ * | | GGGGG | A, B | |
3163
+ * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
3164
+ * | | yo | 44th, 1st, 0th, 17th | 5,7 |
3165
+ * | | yy | 44, 01, 00, 17 | 5 |
3166
+ * | | yyy | 044, 001, 1900, 2017 | 5 |
3167
+ * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
3168
+ * | | yyyyy | ... | 3,5 |
3169
+ * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
3170
+ * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
3171
+ * | | YY | 44, 01, 00, 17 | 5,8 |
3172
+ * | | YYY | 044, 001, 1900, 2017 | 5 |
3173
+ * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
3174
+ * | | YYYYY | ... | 3,5 |
3175
+ * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
3176
+ * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
3177
+ * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
3178
+ * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
3179
+ * | | RRRRR | ... | 3,5,7 |
3180
+ * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
3181
+ * | | uu | -43, 01, 1900, 2017 | 5 |
3182
+ * | | uuu | -043, 001, 1900, 2017 | 5 |
3183
+ * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
3184
+ * | | uuuuu | ... | 3,5 |
3185
+ * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
3186
+ * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
3187
+ * | | QQ | 01, 02, 03, 04 | |
3188
+ * | | QQQ | Q1, Q2, Q3, Q4 | |
3189
+ * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
3190
+ * | | QQQQQ | 1, 2, 3, 4 | 4 |
3191
+ * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
3192
+ * | | qo | 1st, 2nd, 3rd, 4th | 7 |
3193
+ * | | qq | 01, 02, 03, 04 | |
3194
+ * | | qqq | Q1, Q2, Q3, Q4 | |
3195
+ * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
3196
+ * | | qqqqq | 1, 2, 3, 4 | 4 |
3197
+ * | Month (formatting) | M | 1, 2, ..., 12 | |
3198
+ * | | Mo | 1st, 2nd, ..., 12th | 7 |
3199
+ * | | MM | 01, 02, ..., 12 | |
3200
+ * | | MMM | Jan, Feb, ..., Dec | |
3201
+ * | | MMMM | January, February, ..., December | 2 |
3202
+ * | | MMMMM | J, F, ..., D | |
3203
+ * | Month (stand-alone) | L | 1, 2, ..., 12 | |
3204
+ * | | Lo | 1st, 2nd, ..., 12th | 7 |
3205
+ * | | LL | 01, 02, ..., 12 | |
3206
+ * | | LLL | Jan, Feb, ..., Dec | |
3207
+ * | | LLLL | January, February, ..., December | 2 |
3208
+ * | | LLLLL | J, F, ..., D | |
3209
+ * | Local week of year | w | 1, 2, ..., 53 | |
3210
+ * | | wo | 1st, 2nd, ..., 53th | 7 |
3211
+ * | | ww | 01, 02, ..., 53 | |
3212
+ * | ISO week of year | I | 1, 2, ..., 53 | 7 |
3213
+ * | | Io | 1st, 2nd, ..., 53th | 7 |
3214
+ * | | II | 01, 02, ..., 53 | 7 |
3215
+ * | Day of month | d | 1, 2, ..., 31 | |
3216
+ * | | do | 1st, 2nd, ..., 31st | 7 |
3217
+ * | | dd | 01, 02, ..., 31 | |
3218
+ * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
3219
+ * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
3220
+ * | | DD | 01, 02, ..., 365, 366 | 9 |
3221
+ * | | DDD | 001, 002, ..., 365, 366 | |
3222
+ * | | DDDD | ... | 3 |
3223
+ * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
3224
+ * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
3225
+ * | | EEEEE | M, T, W, T, F, S, S | |
3226
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
3227
+ * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
3228
+ * | | io | 1st, 2nd, ..., 7th | 7 |
3229
+ * | | ii | 01, 02, ..., 07 | 7 |
3230
+ * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
3231
+ * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
3232
+ * | | iiiii | M, T, W, T, F, S, S | 7 |
3233
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
3234
+ * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
3235
+ * | | eo | 2nd, 3rd, ..., 1st | 7 |
3236
+ * | | ee | 02, 03, ..., 01 | |
3237
+ * | | eee | Mon, Tue, Wed, ..., Sun | |
3238
+ * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
3239
+ * | | eeeee | M, T, W, T, F, S, S | |
3240
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
3241
+ * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
3242
+ * | | co | 2nd, 3rd, ..., 1st | 7 |
3243
+ * | | cc | 02, 03, ..., 01 | |
3244
+ * | | ccc | Mon, Tue, Wed, ..., Sun | |
3245
+ * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
3246
+ * | | ccccc | M, T, W, T, F, S, S | |
3247
+ * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
3248
+ * | AM, PM | a..aa | AM, PM | |
3249
+ * | | aaa | am, pm | |
3250
+ * | | aaaa | a.m., p.m. | 2 |
3251
+ * | | aaaaa | a, p | |
3252
+ * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
3253
+ * | | bbb | am, pm, noon, midnight | |
3254
+ * | | bbbb | a.m., p.m., noon, midnight | 2 |
3255
+ * | | bbbbb | a, p, n, mi | |
3256
+ * | Flexible day period | B..BBB | at night, in the morning, ... | |
3257
+ * | | BBBB | at night, in the morning, ... | 2 |
3258
+ * | | BBBBB | at night, in the morning, ... | |
3259
+ * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
3260
+ * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
3261
+ * | | hh | 01, 02, ..., 11, 12 | |
3262
+ * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
3263
+ * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
3264
+ * | | HH | 00, 01, 02, ..., 23 | |
3265
+ * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
3266
+ * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
3267
+ * | | KK | 01, 02, ..., 11, 00 | |
3268
+ * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
3269
+ * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
3270
+ * | | kk | 24, 01, 02, ..., 23 | |
3271
+ * | Minute | m | 0, 1, ..., 59 | |
3272
+ * | | mo | 0th, 1st, ..., 59th | 7 |
3273
+ * | | mm | 00, 01, ..., 59 | |
3274
+ * | Second | s | 0, 1, ..., 59 | |
3275
+ * | | so | 0th, 1st, ..., 59th | 7 |
3276
+ * | | ss | 00, 01, ..., 59 | |
3277
+ * | Fraction of second | S | 0, 1, ..., 9 | |
3278
+ * | | SS | 00, 01, ..., 99 | |
3279
+ * | | SSS | 000, 001, ..., 999 | |
3280
+ * | | SSSS | ... | 3 |
3281
+ * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
3282
+ * | | XX | -0800, +0530, Z | |
3283
+ * | | XXX | -08:00, +05:30, Z | |
3284
+ * | | XXXX | -0800, +0530, Z, +123456 | 2 |
3285
+ * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
3286
+ * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
3287
+ * | | xx | -0800, +0530, +0000 | |
3288
+ * | | xxx | -08:00, +05:30, +00:00 | 2 |
3289
+ * | | xxxx | -0800, +0530, +0000, +123456 | |
3290
+ * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
3291
+ * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
3292
+ * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
3293
+ * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
3294
+ * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
3295
+ * | Seconds timestamp | t | 512969520 | 7 |
3296
+ * | | tt | ... | 3,7 |
3297
+ * | Milliseconds timestamp | T | 512969520900 | 7 |
3298
+ * | | TT | ... | 3,7 |
3299
+ * | Long localized date | P | 04/29/1453 | 7 |
3300
+ * | | PP | Apr 29, 1453 | 7 |
3301
+ * | | PPP | April 29th, 1453 | 7 |
3302
+ * | | PPPP | Friday, April 29th, 1453 | 2,7 |
3303
+ * | Long localized time | p | 12:00 AM | 7 |
3304
+ * | | pp | 12:00:00 AM | 7 |
3305
+ * | | ppp | 12:00:00 AM GMT+2 | 7 |
3306
+ * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
3307
+ * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
3308
+ * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
3309
+ * | | PPPppp | April 29th, 1453 at ... | 7 |
3310
+ * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
3311
+ * Notes:
3312
+ * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
3313
+ * are the same as "stand-alone" units, but are different in some languages.
3314
+ * "Formatting" units are declined according to the rules of the language
3315
+ * in the context of a date. "Stand-alone" units are always nominative singular:
3316
+ *
3317
+ * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
3318
+ *
3319
+ * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
3320
+ *
3321
+ * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
3322
+ * the single quote characters (see below).
3323
+ * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
3324
+ * the output will be the same as default pattern for this unit, usually
3325
+ * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
3326
+ * are marked with "2" in the last column of the table.
3327
+ *
3328
+ * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
3329
+ *
3330
+ * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
3331
+ *
3332
+ * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
3333
+ *
3334
+ * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
3335
+ *
3336
+ * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
3337
+ *
3338
+ * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
3339
+ * The output will be padded with zeros to match the length of the pattern.
3340
+ *
3341
+ * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
3342
+ *
3343
+ * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
3344
+ * These tokens represent the shortest form of the quarter.
3345
+ *
3346
+ * 5. The main difference between `y` and `u` patterns are B.C. years:
3347
+ *
3348
+ * | Year | `y` | `u` |
3349
+ * |------|-----|-----|
3350
+ * | AC 1 | 1 | 1 |
3351
+ * | BC 1 | 1 | 0 |
3352
+ * | BC 2 | 2 | -1 |
3353
+ *
3354
+ * Also `yy` always returns the last two digits of a year,
3355
+ * while `uu` pads single digit years to 2 characters and returns other years unchanged:
3356
+ *
3357
+ * | Year | `yy` | `uu` |
3358
+ * |------|------|------|
3359
+ * | 1 | 01 | 01 |
3360
+ * | 14 | 14 | 14 |
3361
+ * | 376 | 76 | 376 |
3362
+ * | 1453 | 53 | 1453 |
3363
+ *
3364
+ * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
3365
+ * except local week-numbering years are dependent on `options.weekStartsOn`
3366
+ * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)
3367
+ * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).
3368
+ *
3369
+ * 6. Specific non-location timezones are currently unavailable in `date-fns`,
3370
+ * so right now these tokens fall back to GMT timezones.
3371
+ *
3372
+ * 7. These patterns are not in the Unicode Technical Standard #35:
3373
+ * - `i`: ISO day of week
3374
+ * - `I`: ISO week of year
3375
+ * - `R`: ISO week-numbering year
3376
+ * - `t`: seconds timestamp
3377
+ * - `T`: milliseconds timestamp
3378
+ * - `o`: ordinal number modifier
3379
+ * - `P`: long localized date
3380
+ * - `p`: long localized time
3381
+ *
3382
+ * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
3383
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3384
+ *
3385
+ * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
3386
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3387
+ *
3388
+ * @param date - The original date
3389
+ * @param format - The string of tokens
3390
+ * @param options - An object with options
3391
+ *
3392
+ * @returns The formatted date string
3393
+ *
3394
+ * @throws `date` must not be Invalid Date
3395
+ * @throws `options.locale` must contain `localize` property
3396
+ * @throws `options.locale` must contain `formatLong` property
3397
+ * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3398
+ * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3399
+ * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3400
+ * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
3401
+ * @throws format string contains an unescaped latin alphabet character
3402
+ *
3403
+ * @example
3404
+ * // Represent 11 February 2014 in middle-endian format:
3405
+ * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
3406
+ * //=> '02/11/2014'
3407
+ *
3408
+ * @example
3409
+ * // Represent 2 July 2014 in Esperanto:
3410
+ * import { eoLocale } from 'date-fns/locale/eo'
3411
+ * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
3412
+ * locale: eoLocale
3413
+ * })
3414
+ * //=> '2-a de julio 2014'
3415
+ *
3416
+ * @example
3417
+ * // Escape string by single quote characters:
3418
+ * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
3419
+ * //=> "3 o'clock"
3420
+ */
3421
+ function format(date, formatStr, options) {
3422
+ const defaultOptions = (0, _index2.getDefaultOptions)();
3423
+ const locale =
3424
+ options?.locale ?? defaultOptions.locale ?? _index.defaultLocale;
3425
+
3426
+ const firstWeekContainsDate =
3427
+ options?.firstWeekContainsDate ??
3428
+ options?.locale?.options?.firstWeekContainsDate ??
3429
+ defaultOptions.firstWeekContainsDate ??
3430
+ defaultOptions.locale?.options?.firstWeekContainsDate ??
3431
+ 1;
3432
+
3433
+ const weekStartsOn =
3434
+ options?.weekStartsOn ??
3435
+ options?.locale?.options?.weekStartsOn ??
3436
+ defaultOptions.weekStartsOn ??
3437
+ defaultOptions.locale?.options?.weekStartsOn ??
3438
+ 0;
3439
+
3440
+ const originalDate = (0, _index7.toDate)(date, options?.in);
3441
+
3442
+ if (!(0, _index6.isValid)(originalDate)) {
3443
+ throw new RangeError("Invalid time value");
3444
+ }
3445
+
3446
+ let parts = formatStr
3447
+ .match(longFormattingTokensRegExp)
3448
+ .map((substring) => {
3449
+ const firstCharacter = substring[0];
3450
+ if (firstCharacter === "p" || firstCharacter === "P") {
3451
+ const longFormatter = _index4.longFormatters[firstCharacter];
3452
+ return longFormatter(substring, locale.formatLong);
3453
+ }
3454
+ return substring;
3455
+ })
3456
+ .join("")
3457
+ .match(formattingTokensRegExp)
3458
+ .map((substring) => {
3459
+ // Replace two single quote characters with one single quote character
3460
+ if (substring === "''") {
3461
+ return { isToken: false, value: "'" };
3462
+ }
3463
+
3464
+ const firstCharacter = substring[0];
3465
+ if (firstCharacter === "'") {
3466
+ return { isToken: false, value: cleanEscapedString(substring) };
3467
+ }
3468
+
3469
+ if (_index3.formatters[firstCharacter]) {
3470
+ return { isToken: true, value: substring };
3471
+ }
3472
+
3473
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
3474
+ throw new RangeError(
3475
+ "Format string contains an unescaped latin alphabet character `" +
3476
+ firstCharacter +
3477
+ "`",
3478
+ );
3479
+ }
3480
+
3481
+ return { isToken: false, value: substring };
3482
+ });
3483
+
3484
+ // invoke localize preprocessor (only for french locales at the moment)
3485
+ if (locale.localize.preprocessor) {
3486
+ parts = locale.localize.preprocessor(originalDate, parts);
3487
+ }
3488
+
3489
+ const formatterOptions = {
3490
+ firstWeekContainsDate,
3491
+ weekStartsOn,
3492
+ locale,
3493
+ };
3494
+
3495
+ return parts
3496
+ .map((part) => {
3497
+ if (!part.isToken) return part.value;
3498
+
3499
+ const token = part.value;
3500
+
3501
+ if (
3502
+ (!options?.useAdditionalWeekYearTokens &&
3503
+ (0, _index5.isProtectedWeekYearToken)(token)) ||
3504
+ (!options?.useAdditionalDayOfYearTokens &&
3505
+ (0, _index5.isProtectedDayOfYearToken)(token))
3506
+ ) {
3507
+ (0, _index5.warnOrThrowProtectedError)(token, formatStr, String(date));
3508
+ }
3509
+
3510
+ const formatter = _index3.formatters[token[0]];
3511
+ return formatter(originalDate, token, locale.localize, formatterOptions);
3512
+ })
3513
+ .join("");
3514
+ }
3515
+
3516
+ function cleanEscapedString(input) {
3517
+ const matched = input.match(escapedStringRegExp);
3518
+
3519
+ if (!matched) {
3520
+ return input;
3521
+ }
3522
+
3523
+ return matched[1].replace(doubleQuoteRegExp, "'");
3524
+ }
3525
+ } (format));
3526
+ return format;
3527
+ }
3528
+
3529
+ var formatExports = /*@__PURE__*/ requireFormat();
3530
+
3531
+ /**
3532
+ * Creates a skeleton loader HTML string with animated placeholder
3533
+ * @param text - The text to use as a placeholder (will be transparent)
3534
+ * @returns HTML string for skeleton loader
3535
+ */
3536
+ function createSkeletonLoader(text) {
3537
+ return `
3538
+ <span style="position: relative;">
3539
+ <span style="color: transparent;">${text}</span>
3540
+ <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: 0; left: 0; pointer-events: none;">
3541
+ <rect width="100%" height="100%" fill="#e0e0e0" rx="4">
3542
+ <animate attributeName="fill" values="#e0e0e0;#f0f0f0;#e0e0e0" dur="1.5s" repeatCount="indefinite"/>
3543
+ </rect>
3544
+ </svg>
3545
+ </span>
3546
+ `;
3547
+ }
3548
+ /**
3549
+ * Replaces text nodes in a DOM tree with skeleton loaders
3550
+ * Skips text nodes inside ticketable-value elements
3551
+ * @param node - The root node to process
3552
+ * @param createSkeletonFn - Function to create skeleton HTML (defaults to createSkeletonLoader)
3553
+ */
3554
+ function replaceTextNodesWithSkeletons(node, createSkeletonFn = createSkeletonLoader) {
3555
+ const walker = document.createTreeWalker(node, NodeFilter.SHOW_TEXT, null);
3556
+ const textNodes = [];
3557
+ for (let curTextNode = walker.nextNode(); curTextNode; curTextNode = walker.nextNode()) {
3558
+ if (curTextNode.textContent?.trim()) {
3559
+ let parent = curTextNode.parentNode;
3560
+ let isInsideTicketableValue = false;
3561
+ while (parent) {
3562
+ if (parent.nodeName.toLowerCase() === "ticketable-value") {
3563
+ isInsideTicketableValue = true;
3564
+ break;
3565
+ }
3566
+ parent = parent.parentNode;
3567
+ }
3568
+ if (!isInsideTicketableValue) {
3569
+ textNodes.push(curTextNode);
3570
+ }
3571
+ }
3572
+ }
3573
+ for (const textNode of textNodes) {
3574
+ const parent = textNode.parentNode;
3575
+ if (!parent)
3576
+ continue;
3577
+ const text = textNode.textContent || "";
3578
+ const placeholderText = text.trim() || "Sample Text";
3579
+ const skeletonSpan = document.createElement("span");
3580
+ skeletonSpan.innerHTML = createSkeletonFn(placeholderText);
3581
+ parent.replaceChild(skeletonSpan, textNode);
3582
+ }
3583
+ }
3584
+
3585
+ const LOCALES = {};
3586
+ /**
3587
+ * Extracts a nested value from an object using a path string.
3588
+ * Supports dot notation for object properties and bracket notation for arrays.
3589
+ * Paths must use dot notation throughout, e.g., "metadata.foo.bar.[1]"
3590
+ * Examples:
3591
+ * - "metadata.foo.bar" -> item.metadata.foo.bar
3592
+ * - "metadata.foo.bar.[1]" -> item.metadata.foo.bar[1]
3593
+ * - "wallet_export.[0].address" -> item.wallet_export[0].address
3594
+ */
3595
+ // biome-ignore lint/suspicious/noExplicitAny: Dynamic nested property access requires any
3596
+ function getNestedValue(obj, path) {
3597
+ if (!path || !obj)
3598
+ return undefined;
3599
+ // Split by dots and process each part
3600
+ const parts = path.split(".").filter(Boolean);
3601
+ let result = obj;
3602
+ for (const part of parts) {
3603
+ if (result == null)
3604
+ return undefined;
3605
+ // Check if this part is an array index like "[1]"
3606
+ if (part.startsWith("[") && part.endsWith("]")) {
3607
+ const indexStr = part.slice(1, -1);
3608
+ const index = /^\d+$/.test(indexStr) ? Number.parseInt(indexStr, 10) : indexStr;
3609
+ result = result[index];
3610
+ }
3611
+ else {
3612
+ result = result[part];
3613
+ }
3614
+ }
3615
+ if (typeof result === "object" && result != null) {
3616
+ return JSON.stringify(result);
3617
+ }
3618
+ return result;
3619
+ }
3620
+ async function loadLocales() {
3621
+ // TODO: This should be pulled into a shared component
3622
+ await Promise.all([
3623
+ !LOCALES.en &&
3624
+ import('./en-GB-DO63WPxt.js').then(function (n) { return n.e; }).then((module) => {
3625
+ LOCALES.en = module.enGB;
3626
+ }),
3627
+ !LOCALES.de &&
3628
+ import('./de-C6AnCqsA.js').then(function (n) { return n.d; }).then((module) => {
3629
+ LOCALES.de = module.de;
3630
+ }),
3631
+ !LOCALES.fr &&
3632
+ import('./fr-C0oU6-EJ.js').then(function (n) { return n.f; }).then((module) => {
3633
+ LOCALES.fr = module.fr;
3634
+ }),
3635
+ !LOCALES.nl_be &&
3636
+ import('./nl-BE-C8uPYb_H.js').then(function (n) { return n.n; }).then((module) => {
3637
+ LOCALES.nl_be = module.nlBE;
3638
+ }),
3639
+ !LOCALES.ro &&
3640
+ import('./ro-BlDHz7d-.js').then(function (n) { return n.r; }).then((module) => {
3641
+ LOCALES.ro = module.ro;
3642
+ }),
3643
+ !LOCALES.sv &&
3644
+ import('./sv-B_Gq29K0.js').then(function (n) { return n.s; }).then((module) => {
3645
+ LOCALES.sv = module.sv;
3646
+ }),
3647
+ ]);
3648
+ }
3649
+ const TicketableList = class extends UnidyComponent() {
3650
+ constructor(hostRef) {
3651
+ super();
3652
+ registerInstance(this, hostRef);
3653
+ this.uTicketableListSuccess = createEvent(this, "uTicketableListSuccess", 7);
3654
+ this.uTicketableListError = createEvent(this, "uTicketableListError", 7);
3655
+ }
3656
+ unsubscribeAuth;
3657
+ // TODO: move into a generic store, since we'll have this kind of fetching all over the app (also implement SWR and other things inside of it)
3658
+ items = [];
3659
+ loading = true;
3660
+ error = null;
3661
+ paginationMeta = null;
3662
+ target;
3663
+ containerClass;
3664
+ // TODO: add a component that can override this
3665
+ filter = "";
3666
+ // TODO: Add pagination component to override all of this
3667
+ limit = 10;
3668
+ page = 1;
3669
+ skeletonCount;
3670
+ skeletonAllText = false;
3671
+ ticketableType;
3672
+ async fetchData() {
3673
+ await this.loadData();
3674
+ }
3675
+ store = null;
3676
+ uTicketableListSuccess;
3677
+ uTicketableListError;
3678
+ async componentWillLoad() {
3679
+ await waitForConfig();
3680
+ loadLocales().catch((err) => {
3681
+ console.error("[u-ticketable-list] Failed to load locales, falling back to 'en'", err);
3682
+ });
3683
+ }
3684
+ async componentDidLoad() {
3685
+ this.logger.trace("start componentDidLoad");
3686
+ await waitForConfig();
3687
+ this.logger.trace("UnidyConfig loaded, start to load data");
3688
+ const authInstance = await Auth.getInstance();
3689
+ if (await authInstance.isAuthenticated()) {
3690
+ await this.loadData();
3691
+ this.logger.debug(`data loaded, items: ${this.items}, paginationMeta: ${this.paginationMeta}`);
3692
+ }
3693
+ else {
3694
+ this.logger.debug("user is not authenticated, skipping data load");
3695
+ }
3696
+ // Listen for auth changes to refresh data when user logs in
3697
+ this.unsubscribeAuth = authStoreOnChange("token", (newToken) => {
3698
+ if (newToken) {
3699
+ this.logger.debug("auth token changed, refreshing data");
3700
+ this.loadData();
3701
+ }
3702
+ });
3703
+ }
3704
+ disconnectedCallback() {
3705
+ this.unsubscribeAuth?.();
3706
+ }
3707
+ async loadData() {
3708
+ this.loading = true;
3709
+ if (!this.ticketableType) {
3710
+ this.error = "[u-ticketable-list] ticketable-type attribute is required";
3711
+ this.loading = false;
3712
+ this.uTicketableListError.emit({ error: this.error });
3713
+ return;
3714
+ }
3715
+ if (this.ticketableType !== "ticket" && this.ticketableType !== "subscription") {
3716
+ this.error = `[u-ticketable-list] Invalid ticketable-type: ${this.ticketableType}. Must be 'ticket' or 'subscription'`;
3717
+ this.loading = false;
3718
+ this.uTicketableListError.emit({ error: this.error });
3719
+ return;
3720
+ }
3721
+ // TODO: Add a simple shared way of doing this
3722
+ const auth = await Auth.getInstance();
3723
+ if (!auth) {
3724
+ this.error = "[u-ticketable-list] Auth instance not found";
3725
+ this.loading = false;
3726
+ return;
3727
+ }
3728
+ // TODO: Handle auth on change THAT SHOULD EXIST ON THE AUTH INSTANCE
3729
+ const idToken = await auth.getToken();
3730
+ if (typeof idToken !== "string") {
3731
+ this.error = "[u-ticketable-list] Failed to get ID token";
3732
+ this.loading = false;
3733
+ return;
3734
+ }
3735
+ try {
3736
+ const unidyClient = await getUnidyClient();
3737
+ // Parse filter string into typed args using URLSearchParams (treats ; as separator)
3738
+ const filterArgs = Object.fromEntries(new URLSearchParams((this.filter || "").replace(/;/g, "&")).entries());
3739
+ // Common args for both services
3740
+ const commonArgs = {
3741
+ page: this.page,
3742
+ perPage: this.limit,
3743
+ state: filterArgs.state,
3744
+ paymentState: filterArgs.payment_state,
3745
+ orderBy: filterArgs.order_by,
3746
+ orderDirection: filterArgs.order_direction,
3747
+ serviceId: filterArgs.service_id ? Number(filterArgs.service_id) : undefined,
3748
+ };
3749
+ // Call the appropriate service with type-safe args
3750
+ const [error, data] = this.ticketableType === "ticket"
3751
+ ? await unidyClient.tickets.list({
3752
+ ...commonArgs,
3753
+ ticketCategoryId: filterArgs.ticket_category_id,
3754
+ })
3755
+ : await unidyClient.subscriptions.list({
3756
+ ...commonArgs,
3757
+ subscriptionCategoryId: filterArgs.subscription_category_id,
3758
+ });
3759
+ if (error !== null || !data || !("results" in data)) {
3760
+ this.error = this.getTranslatedError(error);
3761
+ this.loading = false;
3762
+ this.uTicketableListError.emit({ error: this.error });
3763
+ return;
3764
+ }
3765
+ this.items = data.results;
3766
+ this.paginationMeta = data.meta;
3767
+ // Update the store with pagination data
3768
+ if (this.store) {
3769
+ this.store.state.paginationMeta = data.meta;
3770
+ }
3771
+ this.loading = false;
3772
+ this.uTicketableListSuccess.emit({ ticketableType: this.ticketableType, items: this.items, paginationMeta: this.paginationMeta });
3773
+ }
3774
+ catch (err) {
3775
+ this.error = err instanceof Error ? err.message : "[u-ticketable-list] An error occurred";
3776
+ this.loading = false;
3777
+ this.uTicketableListError.emit({ error: this.error });
3778
+ }
3779
+ }
3780
+ getTranslatedError(error) {
3781
+ if (!error) {
3782
+ return t("ticketable.errors.fetch_failed", { defaultValue: "Failed to load data" });
3783
+ }
3784
+ const errorMessages = {
3785
+ connection_failed: t("errors.connection_failed", { defaultValue: "Connection failed. Please check your internet connection." }),
3786
+ schema_validation_error: t("errors.schema_validation", { defaultValue: "Invalid data received from server." }),
3787
+ internal_error: t("errors.internal", { defaultValue: "An internal error occurred." }),
3788
+ missing_id_token: t("errors.unauthorized", { defaultValue: "You must be logged in to view this content." }),
3789
+ unauthorized: t("errors.unauthorized", { defaultValue: "You are not authorized to view this content." }),
3790
+ server_error: t("errors.server", { defaultValue: "A server error occurred. Please try again later." }),
3791
+ invalid_response: t("errors.invalid_response", { defaultValue: "Invalid response from server." }),
3792
+ };
3793
+ return errorMessages[error] || t("errors.unknown", { defaultValue: "An unknown error occurred." });
3794
+ }
3795
+ renderFragment(template, item) {
3796
+ const fragment = template.content.cloneNode(true);
3797
+ const isSkeleton = !item;
3798
+ for (const elem of fragment.querySelectorAll("[unidy-attr]")) {
3799
+ for (const [unidyAttr, newValue] of Array.from(elem.attributes)
3800
+ .filter((attr) => attr.name.startsWith("unidy-attr-"))
3801
+ .map((attr) => {
3802
+ if (isSkeleton) {
3803
+ return [attr, "#"];
3804
+ }
3805
+ let value = attr.value;
3806
+ // Find all template strings like {{path}} and replace them with nested values
3807
+ const templateRegex = /\{\{([^}]+)\}\}/g;
3808
+ value = value.replace(templateRegex, (match, path) => {
3809
+ const nestedValue = getNestedValue(item, path.trim());
3810
+ return nestedValue != null ? String(nestedValue) : match;
3811
+ });
3812
+ return [attr, value];
3813
+ })) {
3814
+ elem.setAttribute(unidyAttr.name.replace("unidy-attr-", ""), newValue);
3815
+ elem.removeAttribute(unidyAttr.name);
3816
+ }
3817
+ }
3818
+ if (isSkeleton && this.skeletonAllText) {
3819
+ replaceTextNodesWithSkeletons(fragment);
3820
+ }
3821
+ for (const valueEl of fragment.querySelectorAll("ticketable-value")) {
3822
+ if (isSkeleton) {
3823
+ valueEl.innerHTML = createSkeletonLoader("Sample Text");
3824
+ }
3825
+ else {
3826
+ const key = valueEl.getAttribute("name");
3827
+ if (!key)
3828
+ continue;
3829
+ const value = getNestedValue(item, key);
3830
+ const formatAttr = valueEl.getAttribute("format");
3831
+ const dateFormatAttr = valueEl.getAttribute("date-format");
3832
+ let finalValue;
3833
+ if (typeof value === "object" && value instanceof Date) {
3834
+ finalValue = formatExports.format(value, dateFormatAttr || "yyyy-MM-dd", { locale: LOCALES[unidyState.locale] || LOCALES.en });
3835
+ }
3836
+ else if (typeof value === "number" && key === "price") {
3837
+ finalValue = new Intl.NumberFormat(unidyState.locale, { style: "currency", currency: item.currency || "EUR" }).format(value);
3838
+ }
3839
+ else if (typeof value === "number") {
3840
+ if (Number.isInteger(value)) {
3841
+ finalValue = value.toString();
3842
+ }
3843
+ else {
3844
+ finalValue = value.toFixed(2);
3845
+ }
3846
+ }
3847
+ else if (value != null) {
3848
+ finalValue = String(value);
3849
+ }
3850
+ else {
3851
+ finalValue = valueEl.getAttribute("default") || "";
3852
+ }
3853
+ if (formatAttr) {
3854
+ finalValue = formatAttr.replaceAll("{{value}}", finalValue);
3855
+ }
3856
+ valueEl.textContent = finalValue;
3857
+ }
3858
+ }
3859
+ // Process ticketable-conditional elements
3860
+ // Shows/hides content based on item property values.
3861
+ // Example:
3862
+ // <ticketable-conditional when="metadata.vip">
3863
+ // <span class="vip-badge">VIP</span>
3864
+ // </ticketable-conditional>
3865
+ // The children are rendered only if the "when" property is truthy.
3866
+ // Convert to array to avoid issues when modifying the DOM
3867
+ const conditionalElements = Array.from(fragment.querySelectorAll("ticketable-conditional"));
3868
+ for (const conditionalEl of conditionalElements) {
3869
+ const whenAttr = conditionalEl.getAttribute("when");
3870
+ if (!whenAttr) {
3871
+ // If no 'when' attribute, remove the element
3872
+ conditionalEl.remove();
3873
+ continue;
3874
+ }
3875
+ if (isSkeleton) {
3876
+ // For skeleton state, remove conditionals
3877
+ conditionalEl.remove();
3878
+ continue;
3879
+ }
3880
+ // Check if the item property is truthy
3881
+ const value = getNestedValue(item, whenAttr);
3882
+ const isTruthy = Boolean(value);
3883
+ if (isTruthy) {
3884
+ // Replace the conditional element with its children
3885
+ const parent = conditionalEl.parentNode;
3886
+ if (parent) {
3887
+ // Move all children before the conditional element
3888
+ while (conditionalEl.firstChild) {
3889
+ parent.insertBefore(conditionalEl.firstChild, conditionalEl);
3890
+ }
3891
+ // Remove the conditional element
3892
+ parent.removeChild(conditionalEl);
3893
+ }
3894
+ }
3895
+ else {
3896
+ // Remove the conditional element and its children
3897
+ conditionalEl.remove();
3898
+ }
3899
+ }
3900
+ // Set ticketable context on export buttons
3901
+ for (const exportEl of fragment.querySelectorAll("u-ticketable-export")) {
3902
+ if (item) {
3903
+ exportEl.setAttribute("data-ticketable-id", item.id);
3904
+ exportEl.setAttribute("data-ticketable-type", this.ticketableType);
3905
+ exportEl.setAttribute("exportable", item.exportable_to_wallet ? "true" : "false");
3906
+ }
3907
+ else {
3908
+ exportEl.setAttribute("exportable", "false");
3909
+ }
3910
+ }
3911
+ return fragment;
3912
+ }
3913
+ componentDidUpdate() {
3914
+ if (this.target) {
3915
+ requestAnimationFrame(() => this.renderToTarget());
3916
+ }
3917
+ }
3918
+ componentDidRender() {
3919
+ if (this.target) {
3920
+ requestAnimationFrame(() => this.renderToTarget());
3921
+ }
3922
+ }
3923
+ renderToTarget() {
3924
+ const template = this.element.querySelector("template");
3925
+ if (!template)
3926
+ return;
3927
+ const targetElement = document.querySelector(this.target);
3928
+ if (!targetElement) {
3929
+ this.logger.warn("targetElement not found");
3930
+ return;
3931
+ }
3932
+ // Clear existing content
3933
+ targetElement.innerHTML = "";
3934
+ this.renderContent(targetElement, template);
3935
+ }
3936
+ renderContent(target, template) {
3937
+ if (this.loading) {
3938
+ // Use skeletonCount if provided, otherwise use limit
3939
+ const skeletonCount = this.skeletonCount || this.limit;
3940
+ for (const _item of Array.from({ length: skeletonCount })) {
3941
+ target.appendChild(this.renderFragment(template));
3942
+ }
3943
+ }
3944
+ else if (!this.error) {
3945
+ for (const item of this.items) {
3946
+ target.appendChild(this.renderFragment(template, item));
3947
+ }
3948
+ }
3949
+ else {
3950
+ this.logger.error(`failed to load content: ${this.error}`);
3951
+ target.innerHTML = `<h1>${t("errors.prefix")} ${this.error}</h1>`;
3952
+ }
3953
+ }
3954
+ render() {
3955
+ if (this.error) {
3956
+ this.logger.error(`can't render content: ${this.error}`);
3957
+ return (h("h1", null, t("errors.prefix"), " ", this.error));
3958
+ }
3959
+ const template = this.element.querySelector("template");
3960
+ if (!template) {
3961
+ this.logger.error("template not found");
3962
+ return h("h1", null, "No template found - fix config");
3963
+ }
3964
+ if (this.target) {
3965
+ return (h(Host, null, h("slot", null)));
3966
+ }
3967
+ const element = document.createElement("div");
3968
+ this.renderContent(element, template);
3969
+ return (h(Host, null, h("div", { class: this.containerClass, innerHTML: element.innerHTML }), h("slot", { name: "pagination" })));
3970
+ }
3971
+ static get watchers() { return {
3972
+ "page": ["fetchData"],
3973
+ "limit": ["fetchData"],
3974
+ "filter": ["fetchData"]
3975
+ }; }
3976
+ };
3977
+
3978
+ export { TicketableList as T, requireMatch as a, requireLocalize as b, requireFormatRelative as c, requireFormatDistance as d, requireBuildLocalizeFn as e, requireBuildMatchFn as f, requireBuildMatchPatternFn as g, requireBuildFormatLongFn as r };
3979
+ //# sourceMappingURL=u-ticketable-list-D2p21JjR.js.map
3980
+
3981
+ //# sourceMappingURL=u-ticketable-list-D2p21JjR.js.map