@paperless/core 0.1.0-alpha.43 → 0.1.0-alpha.430

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 (1091) hide show
  1. package/CHANGELOG.md +4109 -0
  2. package/README.md +9 -1
  3. package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
  4. package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
  5. package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
  6. package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
  7. package/dist/assets/i18n/table-header.i18n.en.json +6 -0
  8. package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
  9. package/dist/assets/i18n/table.i18n.en.json +13 -0
  10. package/dist/assets/i18n/table.i18n.nl.json +13 -0
  11. package/dist/assets/icons/camera.svg +10 -0
  12. package/dist/assets/icons/filter.svg +6 -13
  13. package/dist/assets/icons/menu.svg +25 -0
  14. package/dist/assets/icons/more.svg +18 -0
  15. package/dist/assets/icons/notification.svg +10 -0
  16. package/dist/assets/icons/reload.svg +10 -0
  17. package/dist/assets/icons/signout.svg +23 -0
  18. package/dist/assets/icons/switch.svg +20 -0
  19. package/dist/assets/illustrations/e-mail.svg +1 -0
  20. package/dist/assets/illustrations/empty-state-add.svg +65 -0
  21. package/dist/assets/illustrations/empty-state-overview.svg +58 -0
  22. package/dist/assets/illustrations/empty-state-search.svg +88 -0
  23. package/dist/assets/images/helper/helper-hover.svg +6 -6
  24. package/dist/assets/images/helper/helper.svg +2 -2
  25. package/dist/build/index.esm.js +2 -0
  26. package/dist/build/index.esm.js.map +1 -0
  27. package/dist/build/p-09ea2a1a.js +2 -0
  28. package/dist/build/p-09ea2a1a.js.map +1 -0
  29. package/dist/build/p-0a3f2fe8.entry.js +2 -0
  30. package/dist/build/p-0a3f2fe8.entry.js.map +1 -0
  31. package/dist/build/p-0cb97c5e.entry.js +2 -0
  32. package/dist/build/p-0cb97c5e.entry.js.map +1 -0
  33. package/dist/build/p-0e0bffb3.entry.js +2 -0
  34. package/dist/build/p-0e0bffb3.entry.js.map +1 -0
  35. package/dist/build/p-10ad607e.entry.js +2 -0
  36. package/dist/build/p-10ad607e.entry.js.map +1 -0
  37. package/dist/build/p-1b5292a3.entry.js +2 -0
  38. package/dist/build/p-1b5292a3.entry.js.map +1 -0
  39. package/dist/build/p-3d8b5cc4.entry.js +2 -0
  40. package/dist/build/p-3d8b5cc4.entry.js.map +1 -0
  41. package/dist/build/p-3dcc02d8.entry.js +2 -0
  42. package/dist/build/p-3dcc02d8.entry.js.map +1 -0
  43. package/dist/build/p-45dfd940.entry.js +2 -0
  44. package/dist/build/p-45dfd940.entry.js.map +1 -0
  45. package/dist/build/p-464569dc.entry.js +2 -0
  46. package/dist/build/p-464569dc.entry.js.map +1 -0
  47. package/dist/build/p-4e650fe4.js +2 -0
  48. package/dist/build/p-4e650fe4.js.map +1 -0
  49. package/dist/build/p-5236b565.entry.js +2 -0
  50. package/dist/build/p-5236b565.entry.js.map +1 -0
  51. package/dist/build/p-57411b2b.entry.js +2 -0
  52. package/dist/build/p-57411b2b.entry.js.map +1 -0
  53. package/dist/build/p-58b52568.entry.js +2 -0
  54. package/dist/build/p-58b52568.entry.js.map +1 -0
  55. package/dist/build/p-5d118f66.entry.js +2 -0
  56. package/dist/build/p-5d118f66.entry.js.map +1 -0
  57. package/dist/build/p-6b7d2d41.entry.js +2 -0
  58. package/dist/build/p-6b7d2d41.entry.js.map +1 -0
  59. package/dist/build/p-6c60fd3d.js +2 -0
  60. package/dist/build/p-6c60fd3d.js.map +1 -0
  61. package/dist/build/p-6f82a1e7.entry.js +2 -0
  62. package/dist/build/p-6f82a1e7.entry.js.map +1 -0
  63. package/dist/build/p-6fd261ab.entry.js +2 -0
  64. package/dist/build/p-6fd261ab.entry.js.map +1 -0
  65. package/dist/build/p-7010541f.entry.js +2 -0
  66. package/dist/build/p-7010541f.entry.js.map +1 -0
  67. package/dist/build/p-756c06ec.entry.js +2 -0
  68. package/dist/build/p-756c06ec.entry.js.map +1 -0
  69. package/dist/build/p-78948e08.entry.js +2 -0
  70. package/dist/build/p-78948e08.entry.js.map +1 -0
  71. package/dist/build/p-78ce77d2.entry.js +2 -0
  72. package/dist/build/p-78ce77d2.entry.js.map +1 -0
  73. package/dist/build/p-7b94bc6a.entry.js +2 -0
  74. package/dist/build/p-7b94bc6a.entry.js.map +1 -0
  75. package/dist/build/p-8a6728d5.js +2 -0
  76. package/dist/build/p-8a6728d5.js.map +1 -0
  77. package/dist/build/p-8fb43cc7.entry.js +2 -0
  78. package/dist/build/p-8fb43cc7.entry.js.map +1 -0
  79. package/dist/build/p-93fb216c.entry.js +2 -0
  80. package/dist/build/p-93fb216c.entry.js.map +1 -0
  81. package/dist/build/p-9ee7b088.entry.js +2 -0
  82. package/dist/build/p-9ee7b088.entry.js.map +1 -0
  83. package/dist/build/p-a2bd1a79.entry.js +2 -0
  84. package/dist/build/p-a2bd1a79.entry.js.map +1 -0
  85. package/dist/build/p-a3fcf8b6.entry.js +2 -0
  86. package/dist/build/p-a3fcf8b6.entry.js.map +1 -0
  87. package/dist/build/p-a89bc06c.entry.js +2 -0
  88. package/dist/build/p-a89bc06c.entry.js.map +1 -0
  89. package/dist/build/p-ac1af618.js +3 -0
  90. package/dist/build/p-ac1af618.js.map +1 -0
  91. package/dist/build/p-ac7b48ff.entry.js +2 -0
  92. package/dist/build/p-ac7b48ff.entry.js.map +1 -0
  93. package/dist/build/p-b13a0ee4.entry.js +2 -0
  94. package/dist/build/p-b13a0ee4.entry.js.map +1 -0
  95. package/dist/build/p-b273ac6d.js +2 -0
  96. package/dist/build/p-b273ac6d.js.map +1 -0
  97. package/dist/build/p-b450d46f.entry.js +2 -0
  98. package/dist/build/p-b450d46f.entry.js.map +1 -0
  99. package/dist/build/p-b7b1de31.entry.js +2 -0
  100. package/dist/build/p-b7b1de31.entry.js.map +1 -0
  101. package/dist/build/p-bd85ff72.entry.js +2 -0
  102. package/dist/build/p-bd85ff72.entry.js.map +1 -0
  103. package/dist/build/p-befde602.entry.js +2 -0
  104. package/dist/build/p-befde602.entry.js.map +1 -0
  105. package/dist/build/p-c6ef7b79.entry.js +2 -0
  106. package/dist/build/p-c6ef7b79.entry.js.map +1 -0
  107. package/dist/build/p-cccc37c0.entry.js +2 -0
  108. package/dist/build/p-cccc37c0.entry.js.map +1 -0
  109. package/dist/build/p-d7d7f5d0.entry.js +2 -0
  110. package/dist/build/p-d7d7f5d0.entry.js.map +1 -0
  111. package/dist/build/p-dc01e9eb.entry.js +2 -0
  112. package/dist/build/p-dc01e9eb.entry.js.map +1 -0
  113. package/dist/build/p-dd2a50d0.entry.js +2 -0
  114. package/dist/build/p-dd2a50d0.entry.js.map +1 -0
  115. package/dist/build/p-e0f41dd5.entry.js +2 -0
  116. package/dist/build/p-e0f41dd5.entry.js.map +1 -0
  117. package/dist/build/p-e621e34c.js +2 -0
  118. package/dist/build/p-e621e34c.js.map +1 -0
  119. package/dist/build/p-ea824ef3.entry.js +2 -0
  120. package/dist/build/p-ea824ef3.entry.js.map +1 -0
  121. package/dist/build/p-ebc2ae62.entry.js +2 -0
  122. package/dist/build/p-ebc2ae62.entry.js.map +1 -0
  123. package/dist/build/p-f07793f6.entry.js +2 -0
  124. package/dist/build/p-f07793f6.entry.js.map +1 -0
  125. package/dist/build/paperless.css +1 -92
  126. package/dist/build/paperless.esm.js +2 -1
  127. package/dist/build/paperless.esm.js.map +1 -0
  128. package/dist/cjs/child-of-e472f812.js +11 -0
  129. package/dist/cjs/child-of-e472f812.js.map +1 -0
  130. package/dist/cjs/constants-a4459ec9.js +9 -0
  131. package/dist/cjs/constants-a4459ec9.js.map +1 -0
  132. package/dist/cjs/floating-ui.dom.esm-4cb215a4.js +1324 -0
  133. package/dist/cjs/floating-ui.dom.esm-4cb215a4.js.map +1 -0
  134. package/dist/cjs/index-040ec3f9.js +2483 -0
  135. package/dist/cjs/index-040ec3f9.js.map +1 -0
  136. package/dist/cjs/{index-f9c302b6.js → index-13ea09e0.js} +975 -294
  137. package/dist/cjs/index-13ea09e0.js.map +1 -0
  138. package/dist/cjs/index.cjs.js +19 -0
  139. package/dist/cjs/index.cjs.js.map +1 -0
  140. package/dist/cjs/loader.cjs.js +6 -3
  141. package/dist/cjs/loader.cjs.js.map +1 -0
  142. package/dist/cjs/localization-9e2ac7f3.js +62 -0
  143. package/dist/cjs/localization-9e2ac7f3.js.map +1 -0
  144. package/dist/cjs/object-get-by-path-6dc21ed5.js +14 -0
  145. package/dist/cjs/object-get-by-path-6dc21ed5.js.map +1 -0
  146. package/dist/cjs/p-accordion.cjs.entry.js +36 -0
  147. package/dist/cjs/p-accordion.cjs.entry.js.map +1 -0
  148. package/dist/cjs/p-attachment.cjs.entry.js +39 -0
  149. package/dist/cjs/p-attachment.cjs.entry.js.map +1 -0
  150. package/dist/cjs/p-avatar-group.cjs.entry.js +22 -0
  151. package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -0
  152. package/dist/cjs/p-avatar.cjs.entry.js +20 -10
  153. package/dist/cjs/p-avatar.cjs.entry.js.map +1 -0
  154. package/dist/cjs/p-backdrop.cjs.entry.js +43 -0
  155. package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -0
  156. package/dist/cjs/p-button_3.cjs.entry.js +212 -109
  157. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
  158. package/dist/cjs/p-calendar.cjs.entry.js +710 -0
  159. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -0
  160. package/dist/cjs/p-card-body.cjs.entry.js +5 -6
  161. package/dist/cjs/p-card-body.cjs.entry.js.map +1 -0
  162. package/dist/cjs/p-card-container.cjs.entry.js +6 -6
  163. package/dist/cjs/p-card-container.cjs.entry.js.map +1 -0
  164. package/dist/cjs/p-card-header.cjs.entry.js +6 -6
  165. package/dist/cjs/p-card-header.cjs.entry.js.map +1 -0
  166. package/dist/cjs/p-content-slider.cjs.entry.js +212 -0
  167. package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -0
  168. package/dist/cjs/p-counter.cjs.entry.js +7 -3
  169. package/dist/cjs/p-counter.cjs.entry.js.map +1 -0
  170. package/dist/cjs/p-datepicker.cjs.entry.js +4083 -0
  171. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -0
  172. package/dist/cjs/p-divider.cjs.entry.js +8 -3
  173. package/dist/cjs/p-divider.cjs.entry.js.map +1 -0
  174. package/dist/cjs/p-drawer-body_3.cjs.entry.js +51 -0
  175. package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -0
  176. package/dist/cjs/p-drawer.cjs.entry.js +65 -0
  177. package/dist/cjs/p-drawer.cjs.entry.js.map +1 -0
  178. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +7 -3
  179. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -0
  180. package/dist/cjs/p-dropdown_2.cjs.entry.js +165 -0
  181. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -0
  182. package/dist/cjs/p-helper_3.cjs.entry.js +144 -0
  183. package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -0
  184. package/dist/cjs/p-illustration_6.cjs.entry.js +2798 -0
  185. package/dist/cjs/p-illustration_6.cjs.entry.js.map +1 -0
  186. package/dist/cjs/p-info-panel.cjs.entry.js +6 -8
  187. package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -0
  188. package/dist/cjs/p-label_3.cjs.entry.js +65 -0
  189. package/dist/cjs/p-label_3.cjs.entry.js.map +1 -0
  190. package/dist/cjs/p-layout.cjs.entry.js +22 -0
  191. package/dist/cjs/p-layout.cjs.entry.js.map +1 -0
  192. package/dist/cjs/p-modal-body_4.cjs.entry.js +79 -0
  193. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -0
  194. package/dist/cjs/p-modal.cjs.entry.js +36 -14
  195. package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
  196. package/dist/cjs/p-navbar.cjs.entry.js +30 -0
  197. package/dist/cjs/p-navbar.cjs.entry.js.map +1 -0
  198. package/dist/cjs/p-navigation-item.cjs.entry.js +9 -6
  199. package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -0
  200. package/dist/cjs/p-page-size-select_3.cjs.entry.js +224 -0
  201. package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -0
  202. package/dist/cjs/p-profile.cjs.entry.js +45 -0
  203. package/dist/cjs/p-profile.cjs.entry.js.map +1 -0
  204. package/dist/cjs/p-select.cjs.entry.js +246 -0
  205. package/dist/cjs/p-select.cjs.entry.js.map +1 -0
  206. package/dist/cjs/p-slider-indicator.cjs.entry.js +22 -0
  207. package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -0
  208. package/dist/cjs/p-status.cjs.entry.js +7 -5
  209. package/dist/cjs/p-status.cjs.entry.js.map +1 -0
  210. package/dist/cjs/p-stepper-item.cjs.entry.js +26 -0
  211. package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -0
  212. package/dist/cjs/p-stepper-line.cjs.entry.js +23 -0
  213. package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -0
  214. package/dist/cjs/p-stepper.cjs.entry.js +80 -0
  215. package/dist/cjs/p-stepper.cjs.entry.js.map +1 -0
  216. package/dist/cjs/p-tab-group.cjs.entry.js +20 -0
  217. package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -0
  218. package/dist/cjs/p-tab-item.cjs.entry.js +22 -0
  219. package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -0
  220. package/dist/cjs/p-table-column.cjs.entry.js +28 -0
  221. package/dist/cjs/p-table-column.cjs.entry.js.map +1 -0
  222. package/dist/cjs/p-table.cjs.entry.js +352 -0
  223. package/dist/cjs/p-table.cjs.entry.js.map +1 -0
  224. package/dist/cjs/p-toast-container.cjs.entry.js +22 -0
  225. package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -0
  226. package/dist/cjs/p-toast.cjs.entry.js +35 -0
  227. package/dist/cjs/p-toast.cjs.entry.js.map +1 -0
  228. package/dist/cjs/p-tooltip.cjs.entry.js +56 -55
  229. package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -0
  230. package/dist/cjs/paperless.cjs.js +12 -3
  231. package/dist/cjs/paperless.cjs.js.map +1 -0
  232. package/dist/collection/assets/icons/camera.svg +10 -0
  233. package/dist/collection/assets/icons/filter.svg +6 -13
  234. package/dist/collection/assets/icons/menu.svg +25 -0
  235. package/dist/collection/assets/icons/more.svg +18 -0
  236. package/dist/collection/assets/icons/notification.svg +10 -0
  237. package/dist/collection/assets/icons/reload.svg +10 -0
  238. package/dist/collection/assets/icons/signout.svg +23 -0
  239. package/dist/collection/assets/icons/switch.svg +20 -0
  240. package/dist/collection/assets/illustrations/e-mail.svg +1 -0
  241. package/dist/collection/assets/illustrations/empty-state-add.svg +65 -0
  242. package/dist/collection/assets/illustrations/empty-state-overview.svg +58 -0
  243. package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
  244. package/dist/collection/assets/images/helper/helper-hover.svg +6 -6
  245. package/dist/collection/assets/images/helper/helper.svg +2 -2
  246. package/dist/collection/collection-manifest.json +38 -5
  247. package/dist/collection/components/atoms/avatar/avatar.component.css +1 -31
  248. package/dist/collection/components/atoms/avatar/avatar.component.js +107 -89
  249. package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -0
  250. package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +1 -0
  251. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +42 -0
  252. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -0
  253. package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -0
  254. package/dist/collection/components/atoms/backdrop/backdrop.component.js +149 -0
  255. package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -0
  256. package/dist/collection/components/atoms/button/button.component.css +1 -93
  257. package/dist/collection/components/atoms/button/button.component.js +305 -297
  258. package/dist/collection/components/atoms/button/button.component.js.map +1 -0
  259. package/dist/collection/components/atoms/card-body/card-body.component.css +1 -9
  260. package/dist/collection/components/atoms/card-body/card-body.component.js +35 -32
  261. package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -0
  262. package/dist/collection/components/atoms/card-container/card-container.component.css +1 -13
  263. package/dist/collection/components/atoms/card-container/card-container.component.js +53 -31
  264. package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -0
  265. package/dist/collection/components/atoms/card-header/card-header.component.css +1 -17
  266. package/dist/collection/components/atoms/card-header/card-header.component.js +52 -50
  267. package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -0
  268. package/dist/collection/components/atoms/counter/counter.component.css +1 -5
  269. package/dist/collection/components/atoms/counter/counter.component.js +57 -9
  270. package/dist/collection/components/atoms/counter/counter.component.js.map +1 -0
  271. package/dist/collection/components/atoms/divider/divider.component.css +1 -3
  272. package/dist/collection/components/atoms/divider/divider.component.js +16 -8
  273. package/dist/collection/components/atoms/divider/divider.component.js.map +1 -0
  274. package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -0
  275. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +44 -0
  276. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -0
  277. package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -0
  278. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +48 -0
  279. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -0
  280. package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -0
  281. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +66 -0
  282. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -0
  283. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -5
  284. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +57 -9
  285. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -0
  286. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -13
  287. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +75 -30
  288. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -0
  289. package/dist/collection/components/atoms/helper/helper.component.css +1 -7
  290. package/dist/collection/components/atoms/helper/helper.component.js +43 -12
  291. package/dist/collection/components/atoms/helper/helper.component.js.map +1 -0
  292. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  293. package/dist/collection/components/atoms/icon/icon.component.js +103 -101
  294. package/dist/collection/components/atoms/icon/icon.component.js.map +1 -0
  295. package/dist/collection/components/atoms/illustration/illustration.component.js +30 -23
  296. package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -0
  297. package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -28
  298. package/dist/collection/components/atoms/info-panel/info-panel.component.js +86 -89
  299. package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -0
  300. package/dist/collection/components/atoms/label/label.component.css +1 -0
  301. package/dist/collection/components/atoms/label/label.component.js +171 -0
  302. package/dist/collection/components/atoms/label/label.component.js.map +1 -0
  303. package/dist/collection/components/atoms/layout/layout.component.css +1 -0
  304. package/dist/collection/components/atoms/layout/layout.component.js +44 -0
  305. package/dist/collection/components/atoms/layout/layout.component.js.map +1 -0
  306. package/dist/collection/components/atoms/loader/loader.component.css +1 -26
  307. package/dist/collection/components/atoms/loader/loader.component.js +113 -114
  308. package/dist/collection/components/atoms/loader/loader.component.js.map +1 -0
  309. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -7
  310. package/dist/collection/components/atoms/modal-body/modal-body.component.js +53 -31
  311. package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -0
  312. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -6
  313. package/dist/collection/components/atoms/modal-container/modal-container.component.js +58 -36
  314. package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -0
  315. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -4
  316. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +13 -10
  317. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -0
  318. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -6
  319. package/dist/collection/components/atoms/modal-header/modal-header.component.js +60 -9
  320. package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -0
  321. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -16
  322. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +35 -32
  323. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -0
  324. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -5
  325. package/dist/collection/components/atoms/segment-container/segment-container.component.js +13 -9
  326. package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -0
  327. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -21
  328. package/dist/collection/components/atoms/segment-item/segment-item.component.js +98 -91
  329. package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -0
  330. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -0
  331. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +44 -0
  332. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -0
  333. package/dist/collection/components/atoms/status/status.component.css +1 -16
  334. package/dist/collection/components/atoms/status/status.component.js +98 -93
  335. package/dist/collection/components/atoms/status/status.component.js.map +1 -0
  336. package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +1 -0
  337. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +120 -0
  338. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -0
  339. package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +1 -0
  340. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +63 -0
  341. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -0
  342. package/dist/collection/components/atoms/tab-group/tab-group.component.js +9 -0
  343. package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -0
  344. package/dist/collection/components/atoms/tab-item/tab-item.component.css +1 -0
  345. package/dist/collection/components/atoms/tab-item/tab-item.component.js +44 -0
  346. package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -0
  347. package/dist/collection/components/atoms/table-container/table-container.component.css +1 -0
  348. package/dist/collection/components/atoms/table-container/table-container.component.js +19 -0
  349. package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -0
  350. package/dist/collection/components/atoms/toast-container/toast-container.component.css +1 -0
  351. package/dist/collection/components/atoms/toast-container/toast-container.component.js +44 -0
  352. package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -0
  353. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -40
  354. package/dist/collection/components/atoms/tooltip/tooltip.component.js +236 -192
  355. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -0
  356. package/dist/collection/components/helpers/table-column/table-column.component.js +151 -0
  357. package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -0
  358. package/dist/collection/components/molecules/accordion/accordion.component.css +1 -0
  359. package/dist/collection/components/molecules/accordion/accordion.component.js +128 -0
  360. package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -0
  361. package/dist/collection/components/molecules/attachment/attachment.component.css +1 -0
  362. package/dist/collection/components/molecules/attachment/attachment.component.js +145 -0
  363. package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -0
  364. package/dist/collection/components/molecules/calendar/calendar.component.css +1 -0
  365. package/dist/collection/components/molecules/calendar/calendar.component.js +503 -0
  366. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -0
  367. package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -0
  368. package/dist/collection/components/molecules/content-slider/content-slider.component.js +317 -0
  369. package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -0
  370. package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -0
  371. package/dist/collection/components/molecules/datepicker/datepicker.component.js +509 -0
  372. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -0
  373. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -9
  374. package/dist/collection/components/molecules/dropdown/dropdown.component.js +294 -156
  375. package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -0
  376. package/dist/collection/components/molecules/input-error/input-error.component.js +60 -0
  377. package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -0
  378. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -0
  379. package/dist/collection/components/molecules/input-group/input-group.component.js +379 -0
  380. package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -0
  381. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -28
  382. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +107 -104
  383. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -0
  384. package/dist/collection/components/molecules/page-size-select/constants.js +3 -0
  385. package/dist/collection/components/molecules/page-size-select/constants.js.map +1 -0
  386. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +207 -0
  387. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -0
  388. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -3
  389. package/dist/collection/components/molecules/pagination/pagination.component.js +119 -94
  390. package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -0
  391. package/dist/collection/components/molecules/profile/profile.component.css +1 -0
  392. package/dist/collection/components/molecules/profile/profile.component.js +90 -0
  393. package/dist/collection/components/molecules/profile/profile.component.js.map +1 -0
  394. package/dist/collection/components/molecules/select/select.component.css +1 -0
  395. package/dist/collection/components/molecules/select/select.component.js +724 -0
  396. package/dist/collection/components/molecules/select/select.component.js.map +1 -0
  397. package/dist/collection/components/molecules/stepper/stepper.component.css +1 -0
  398. package/dist/collection/components/molecules/stepper/stepper.component.js +141 -0
  399. package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -0
  400. package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -0
  401. package/dist/collection/components/molecules/table-cell/table-cell.component.js +263 -0
  402. package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -0
  403. package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -0
  404. package/dist/collection/components/molecules/table-footer/table-footer.component.js +276 -0
  405. package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -0
  406. package/dist/collection/components/molecules/table-header/table-header.component.css +1 -0
  407. package/dist/collection/components/molecules/table-header/table-header.component.js +452 -0
  408. package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -0
  409. package/dist/collection/components/molecules/table-row/table-row.component.css +1 -0
  410. package/dist/collection/components/molecules/table-row/table-row.component.js +65 -0
  411. package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -0
  412. package/dist/collection/components/molecules/toast/toast.component.css +1 -0
  413. package/dist/collection/components/molecules/toast/toast.component.js +197 -0
  414. package/dist/collection/components/molecules/toast/toast.component.js.map +1 -0
  415. package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
  416. package/dist/collection/components/organisms/drawer/drawer.component.js +234 -0
  417. package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -0
  418. package/dist/collection/components/organisms/modal/modal.component.js +259 -0
  419. package/dist/collection/components/organisms/modal/modal.component.js.map +1 -0
  420. package/dist/collection/components/organisms/navbar/navbar.component.css +1 -0
  421. package/dist/collection/components/organisms/navbar/navbar.component.js +90 -0
  422. package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -0
  423. package/dist/collection/components/organisms/table/table.component.css +1 -0
  424. package/dist/collection/components/organisms/table/table.component.js +1292 -0
  425. package/dist/collection/components/organisms/table/table.component.js.map +1 -0
  426. package/dist/collection/index.js +3 -1
  427. package/dist/collection/index.js.map +1 -0
  428. package/dist/collection/tailwind/animation.js +72 -2
  429. package/dist/collection/tailwind/border-radius.js +1 -0
  430. package/dist/collection/tailwind/height.js +5 -0
  431. package/dist/collection/tailwind/plugins/safe-area.js +98 -0
  432. package/dist/collection/tailwind/screens.js +8 -0
  433. package/dist/collection/tailwind/shadows.js +11 -5
  434. package/dist/collection/tailwind/spacing.js +10 -0
  435. package/dist/collection/tailwind/width.js +20 -0
  436. package/dist/collection/tailwind/z-index.js +15 -1
  437. package/dist/collection/tailwind.config.js +14 -3
  438. package/dist/collection/types/index.js +3 -0
  439. package/dist/collection/types/index.js.map +1 -0
  440. package/dist/collection/types/table.js +2 -0
  441. package/dist/collection/types/table.js.map +1 -0
  442. package/dist/collection/types/tailwind.js +2 -0
  443. package/dist/collection/types/tailwind.js.map +1 -0
  444. package/dist/collection/utils/child-of.js +1 -0
  445. package/dist/collection/utils/child-of.js.map +1 -0
  446. package/dist/collection/utils/icons.js +15 -0
  447. package/dist/collection/utils/icons.js.map +1 -0
  448. package/dist/collection/utils/illustrations.js +9 -0
  449. package/dist/collection/utils/illustrations.js.map +1 -0
  450. package/dist/collection/utils/index.js +7 -0
  451. package/dist/collection/utils/index.js.map +1 -0
  452. package/dist/collection/utils/localization.js +56 -0
  453. package/dist/collection/utils/localization.js.map +1 -0
  454. package/dist/collection/utils/object-get-by-path.js +9 -0
  455. package/dist/collection/utils/object-get-by-path.js.map +1 -0
  456. package/dist/collection/utils/transformers.js +5 -0
  457. package/dist/collection/utils/transformers.js.map +1 -0
  458. package/dist/components/backdrop.component.js +59 -0
  459. package/dist/components/backdrop.component.js.map +1 -0
  460. package/dist/components/button.component.js +102 -0
  461. package/dist/components/button.component.js.map +1 -0
  462. package/dist/components/calendar.component.js +3198 -0
  463. package/dist/components/calendar.component.js.map +1 -0
  464. package/dist/components/child-of.js +9 -0
  465. package/dist/components/child-of.js.map +1 -0
  466. package/dist/components/counter.component.js +11 -4
  467. package/dist/components/counter.component.js.map +1 -0
  468. package/dist/components/divider.component.js +8 -3
  469. package/dist/components/divider.component.js.map +1 -0
  470. package/dist/components/drawer-body.component.js +35 -0
  471. package/dist/components/drawer-body.component.js.map +1 -0
  472. package/dist/components/drawer-container.component.js +34 -0
  473. package/dist/components/drawer-container.component.js.map +1 -0
  474. package/dist/components/drawer-header.component.js +54 -0
  475. package/dist/components/drawer-header.component.js.map +1 -0
  476. package/dist/components/dropdown-menu-container.component.js +11 -4
  477. package/dist/components/dropdown-menu-container.component.js.map +1 -0
  478. package/dist/components/dropdown-menu-item.component.js +45 -0
  479. package/dist/components/dropdown-menu-item.component.js.map +1 -0
  480. package/dist/components/dropdown.component.js +177 -0
  481. package/dist/components/dropdown.component.js.map +1 -0
  482. package/dist/components/floating-ui.dom.esm.js +1317 -0
  483. package/dist/components/floating-ui.dom.esm.js.map +1 -0
  484. package/dist/components/helper.component.js +41 -0
  485. package/dist/components/helper.component.js.map +1 -0
  486. package/dist/components/icon.component.js +147 -25
  487. package/dist/components/icon.component.js.map +1 -0
  488. package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +250 -16
  489. package/dist/components/illustration.component.js.map +1 -0
  490. package/dist/components/index.d.ts +9 -31
  491. package/dist/components/index.js +13 -29
  492. package/dist/components/index.js.map +1 -0
  493. package/dist/components/input-error.component.js +50 -0
  494. package/dist/components/input-error.component.js.map +1 -0
  495. package/dist/components/input-group.component.js +165 -0
  496. package/dist/components/input-group.component.js.map +1 -0
  497. package/dist/components/label.component.js +54 -0
  498. package/dist/components/label.component.js.map +1 -0
  499. package/dist/components/loader.component.js +12 -14
  500. package/dist/components/loader.component.js.map +1 -0
  501. package/dist/components/localization.js +59 -0
  502. package/dist/components/localization.js.map +1 -0
  503. package/dist/components/modal-body.component.js +8 -7
  504. package/dist/components/modal-body.component.js.map +1 -0
  505. package/dist/components/modal-container.component.js +13 -12
  506. package/dist/components/modal-container.component.js.map +1 -0
  507. package/dist/components/modal-footer.component.js +5 -3
  508. package/dist/components/modal-footer.component.js.map +1 -0
  509. package/dist/components/modal-header.component.js +30 -6
  510. package/dist/components/modal-header.component.js.map +1 -0
  511. package/dist/components/object-get-by-path.js +12 -0
  512. package/dist/components/object-get-by-path.js.map +1 -0
  513. package/dist/components/p-accordion.d.ts +11 -0
  514. package/dist/components/p-accordion.js +67 -0
  515. package/dist/components/p-accordion.js.map +1 -0
  516. package/dist/components/p-attachment.d.ts +11 -0
  517. package/dist/components/p-attachment.js +88 -0
  518. package/dist/components/p-attachment.js.map +1 -0
  519. package/dist/components/p-avatar-group.d.ts +11 -0
  520. package/dist/components/p-avatar-group.js +37 -0
  521. package/dist/components/p-avatar-group.js.map +1 -0
  522. package/dist/components/p-avatar.js +23 -14
  523. package/dist/components/p-avatar.js.map +1 -0
  524. package/dist/components/p-backdrop.d.ts +11 -0
  525. package/dist/components/p-backdrop.js +8 -0
  526. package/dist/components/p-backdrop.js.map +1 -0
  527. package/dist/components/p-button.js +3 -112
  528. package/dist/components/p-button.js.map +1 -0
  529. package/dist/components/p-calendar.d.ts +11 -0
  530. package/dist/components/p-calendar.js +8 -0
  531. package/dist/components/p-calendar.js.map +1 -0
  532. package/dist/components/p-card-body.js +6 -7
  533. package/dist/components/p-card-body.js.map +1 -0
  534. package/dist/components/p-card-container.js +8 -7
  535. package/dist/components/p-card-container.js.map +1 -0
  536. package/dist/components/p-card-header.js +7 -7
  537. package/dist/components/p-card-header.js.map +1 -0
  538. package/dist/components/{p-modal-backdrop.d.ts → p-content-slider.d.ts} +4 -4
  539. package/dist/components/p-content-slider.js +241 -0
  540. package/dist/components/p-content-slider.js.map +1 -0
  541. package/dist/components/p-counter.js +2 -0
  542. package/dist/components/p-counter.js.map +1 -0
  543. package/dist/components/p-datepicker.d.ts +11 -0
  544. package/dist/components/p-datepicker.js +4164 -0
  545. package/dist/components/p-datepicker.js.map +1 -0
  546. package/dist/components/p-divider.js +2 -0
  547. package/dist/components/p-divider.js.map +1 -0
  548. package/dist/components/p-drawer-body.d.ts +11 -0
  549. package/dist/components/p-drawer-body.js +8 -0
  550. package/dist/components/p-drawer-body.js.map +1 -0
  551. package/dist/components/p-drawer-container.d.ts +11 -0
  552. package/dist/components/p-drawer-container.js +8 -0
  553. package/dist/components/p-drawer-container.js.map +1 -0
  554. package/dist/components/p-drawer-header.d.ts +11 -0
  555. package/dist/components/p-drawer-header.js +8 -0
  556. package/dist/components/p-drawer-header.js.map +1 -0
  557. package/dist/components/p-drawer.d.ts +11 -0
  558. package/dist/components/p-drawer.js +130 -0
  559. package/dist/components/p-drawer.js.map +1 -0
  560. package/dist/components/p-dropdown-menu-container.js +2 -0
  561. package/dist/components/p-dropdown-menu-container.js.map +1 -0
  562. package/dist/components/p-dropdown-menu-item.js +3 -34
  563. package/dist/components/p-dropdown-menu-item.js.map +1 -0
  564. package/dist/components/p-dropdown.js +3 -161
  565. package/dist/components/p-dropdown.js.map +1 -0
  566. package/dist/components/p-helper.js +3 -34
  567. package/dist/components/p-helper.js.map +1 -0
  568. package/dist/components/p-icon.js +2 -0
  569. package/dist/components/p-icon.js.map +1 -0
  570. package/dist/components/p-illustration.js +3 -1432
  571. package/dist/components/p-illustration.js.map +1 -0
  572. package/dist/components/p-info-panel.js +6 -8
  573. package/dist/components/p-info-panel.js.map +1 -0
  574. package/dist/components/p-input-error.d.ts +11 -0
  575. package/dist/components/p-input-error.js +8 -0
  576. package/dist/components/p-input-error.js.map +1 -0
  577. package/dist/components/p-input-group.d.ts +11 -0
  578. package/dist/components/p-input-group.js +8 -0
  579. package/dist/components/p-input-group.js.map +1 -0
  580. package/dist/components/p-label.d.ts +11 -0
  581. package/dist/components/p-label.js +8 -0
  582. package/dist/components/p-label.js.map +1 -0
  583. package/dist/components/p-layout.d.ts +11 -0
  584. package/dist/components/p-layout.js +38 -0
  585. package/dist/components/p-layout.js.map +1 -0
  586. package/dist/components/p-loader.js +2 -0
  587. package/dist/components/p-loader.js.map +1 -0
  588. package/dist/components/p-modal-body.js +2 -0
  589. package/dist/components/p-modal-body.js.map +1 -0
  590. package/dist/components/p-modal-container.js +2 -0
  591. package/dist/components/p-modal-container.js.map +1 -0
  592. package/dist/components/p-modal-footer.js +2 -0
  593. package/dist/components/p-modal-footer.js.map +1 -0
  594. package/dist/components/p-modal-header.js +2 -0
  595. package/dist/components/p-modal-header.js.map +1 -0
  596. package/dist/components/p-modal.js +67 -21
  597. package/dist/components/p-modal.js.map +1 -0
  598. package/dist/components/p-navbar.d.ts +11 -0
  599. package/dist/components/p-navbar.js +72 -0
  600. package/dist/components/p-navbar.js.map +1 -0
  601. package/dist/components/p-navigation-item.js +9 -6
  602. package/dist/components/p-navigation-item.js.map +1 -0
  603. package/dist/components/p-page-size-select.d.ts +11 -0
  604. package/dist/components/p-page-size-select.js +8 -0
  605. package/dist/components/p-page-size-select.js.map +1 -0
  606. package/dist/components/p-pagination-item.js +2 -0
  607. package/dist/components/p-pagination-item.js.map +1 -0
  608. package/dist/components/p-pagination.js +3 -195
  609. package/dist/components/p-pagination.js.map +1 -0
  610. package/dist/components/p-profile.d.ts +11 -0
  611. package/dist/components/p-profile.js +81 -0
  612. package/dist/components/p-profile.js.map +1 -0
  613. package/dist/components/p-segment-container.js +3 -27
  614. package/dist/components/p-segment-container.js.map +1 -0
  615. package/dist/components/p-segment-item.js +3 -49
  616. package/dist/components/p-segment-item.js.map +1 -0
  617. package/dist/components/p-select.d.ts +11 -0
  618. package/dist/components/p-select.js +341 -0
  619. package/dist/components/p-select.js.map +1 -0
  620. package/dist/components/p-slider-indicator.d.ts +11 -0
  621. package/dist/components/p-slider-indicator.js +8 -0
  622. package/dist/components/p-slider-indicator.js.map +1 -0
  623. package/dist/components/p-status.js +7 -5
  624. package/dist/components/p-status.js.map +1 -0
  625. package/dist/components/p-stepper-item.d.ts +11 -0
  626. package/dist/components/p-stepper-item.js +52 -0
  627. package/dist/components/p-stepper-item.js.map +1 -0
  628. package/dist/components/p-stepper-line.d.ts +11 -0
  629. package/dist/components/p-stepper-line.js +8 -0
  630. package/dist/components/p-stepper-line.js.map +1 -0
  631. package/dist/components/p-stepper.d.ts +11 -0
  632. package/dist/components/p-stepper.js +104 -0
  633. package/dist/components/p-stepper.js.map +1 -0
  634. package/dist/components/p-tab-group.d.ts +11 -0
  635. package/dist/components/p-tab-group.js +38 -0
  636. package/dist/components/p-tab-group.js.map +1 -0
  637. package/dist/components/p-tab-item.d.ts +11 -0
  638. package/dist/components/p-tab-item.js +38 -0
  639. package/dist/components/p-tab-item.js.map +1 -0
  640. package/dist/components/p-table-cell.d.ts +11 -0
  641. package/dist/components/p-table-cell.js +8 -0
  642. package/dist/components/p-table-cell.js.map +1 -0
  643. package/dist/components/p-table-column.d.ts +11 -0
  644. package/dist/components/p-table-column.js +48 -0
  645. package/dist/components/p-table-column.js.map +1 -0
  646. package/dist/components/p-table-container.d.ts +11 -0
  647. package/dist/components/p-table-container.js +8 -0
  648. package/dist/components/p-table-container.js.map +1 -0
  649. package/dist/components/p-table-footer.d.ts +11 -0
  650. package/dist/components/p-table-footer.js +8 -0
  651. package/dist/components/p-table-footer.js.map +1 -0
  652. package/dist/components/p-table-header.d.ts +11 -0
  653. package/dist/components/p-table-header.js +8 -0
  654. package/dist/components/p-table-header.js.map +1 -0
  655. package/dist/components/p-table-row.d.ts +11 -0
  656. package/dist/components/p-table-row.js +8 -0
  657. package/dist/components/p-table-row.js.map +1 -0
  658. package/dist/components/p-table.d.ts +11 -0
  659. package/dist/components/p-table.js +544 -0
  660. package/dist/components/p-table.js.map +1 -0
  661. package/dist/components/p-toast-container.d.ts +11 -0
  662. package/dist/components/p-toast-container.js +38 -0
  663. package/dist/components/p-toast-container.js.map +1 -0
  664. package/dist/components/p-toast.d.ts +11 -0
  665. package/dist/components/p-toast.js +75 -0
  666. package/dist/components/p-toast.js.map +1 -0
  667. package/dist/components/p-tooltip.js +2 -0
  668. package/dist/components/p-tooltip.js.map +1 -0
  669. package/dist/components/page-size-select.component.js +107 -0
  670. package/dist/components/page-size-select.component.js.map +1 -0
  671. package/dist/components/pagination-item.component.js +4 -5
  672. package/dist/components/pagination-item.component.js.map +1 -0
  673. package/dist/components/pagination.component.js +196 -0
  674. package/dist/components/pagination.component.js.map +1 -0
  675. package/dist/components/segment-container.component.js +31 -0
  676. package/dist/components/segment-container.component.js.map +1 -0
  677. package/dist/components/segment-item.component.js +53 -0
  678. package/dist/components/segment-item.component.js.map +1 -0
  679. package/dist/components/slider-indicator.component.js +35 -0
  680. package/dist/components/slider-indicator.component.js.map +1 -0
  681. package/dist/components/stepper-line.component.js +37 -0
  682. package/dist/components/stepper-line.component.js.map +1 -0
  683. package/dist/components/table-cell.component.js +137 -0
  684. package/dist/components/table-cell.component.js.map +1 -0
  685. package/dist/components/table-container.component.js +32 -0
  686. package/dist/components/table-container.component.js.map +1 -0
  687. package/dist/components/table-footer.component.js +129 -0
  688. package/dist/components/table-footer.component.js.map +1 -0
  689. package/dist/components/table-header.component.js +1070 -0
  690. package/dist/components/table-header.component.js.map +1 -0
  691. package/dist/components/table-row.component.js +45 -0
  692. package/dist/components/table-row.component.js.map +1 -0
  693. package/dist/components/tooltip.component.js +58 -56
  694. package/dist/components/tooltip.component.js.map +1 -0
  695. package/dist/esm/child-of-90a8c4b5.js +9 -0
  696. package/dist/esm/child-of-90a8c4b5.js.map +1 -0
  697. package/dist/esm/constants-826f9460.js +6 -0
  698. package/dist/esm/constants-826f9460.js.map +1 -0
  699. package/dist/esm/floating-ui.dom.esm-82b72251.js +1317 -0
  700. package/dist/esm/floating-ui.dom.esm-82b72251.js.map +1 -0
  701. package/dist/esm/index-340e085c.js +2460 -0
  702. package/dist/esm/index-340e085c.js.map +1 -0
  703. package/dist/esm/{index-fff70567.js → index-94339e77.js} +975 -295
  704. package/dist/esm/index-94339e77.js.map +1 -0
  705. package/dist/esm/index.js +11 -0
  706. package/dist/esm/index.js.map +1 -0
  707. package/dist/esm/loader.js +6 -3
  708. package/dist/esm/loader.js.map +1 -0
  709. package/dist/esm/localization-901dc2d3.js +59 -0
  710. package/dist/esm/localization-901dc2d3.js.map +1 -0
  711. package/dist/esm/object-get-by-path-d6427a61.js +12 -0
  712. package/dist/esm/object-get-by-path-d6427a61.js.map +1 -0
  713. package/dist/esm/p-accordion.entry.js +32 -0
  714. package/dist/esm/p-accordion.entry.js.map +1 -0
  715. package/dist/esm/p-attachment.entry.js +35 -0
  716. package/dist/esm/p-attachment.entry.js.map +1 -0
  717. package/dist/esm/p-avatar-group.entry.js +18 -0
  718. package/dist/esm/p-avatar-group.entry.js.map +1 -0
  719. package/dist/esm/p-avatar.entry.js +20 -10
  720. package/dist/esm/p-avatar.entry.js.map +1 -0
  721. package/dist/esm/p-backdrop.entry.js +39 -0
  722. package/dist/esm/p-backdrop.entry.js.map +1 -0
  723. package/dist/esm/p-button_3.entry.js +212 -109
  724. package/dist/esm/p-button_3.entry.js.map +1 -0
  725. package/dist/esm/p-calendar.entry.js +706 -0
  726. package/dist/esm/p-calendar.entry.js.map +1 -0
  727. package/dist/esm/p-card-body.entry.js +5 -6
  728. package/dist/esm/p-card-body.entry.js.map +1 -0
  729. package/dist/esm/p-card-container.entry.js +6 -6
  730. package/dist/esm/p-card-container.entry.js.map +1 -0
  731. package/dist/esm/p-card-header.entry.js +6 -6
  732. package/dist/esm/p-card-header.entry.js.map +1 -0
  733. package/dist/esm/p-content-slider.entry.js +208 -0
  734. package/dist/esm/p-content-slider.entry.js.map +1 -0
  735. package/dist/esm/p-counter.entry.js +7 -3
  736. package/dist/esm/p-counter.entry.js.map +1 -0
  737. package/dist/esm/p-datepicker.entry.js +4079 -0
  738. package/dist/esm/p-datepicker.entry.js.map +1 -0
  739. package/dist/esm/p-divider.entry.js +8 -3
  740. package/dist/esm/p-divider.entry.js.map +1 -0
  741. package/dist/esm/p-drawer-body_3.entry.js +45 -0
  742. package/dist/esm/p-drawer-body_3.entry.js.map +1 -0
  743. package/dist/esm/p-drawer.entry.js +61 -0
  744. package/dist/esm/p-drawer.entry.js.map +1 -0
  745. package/dist/esm/p-dropdown-menu-container.entry.js +7 -3
  746. package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -0
  747. package/dist/esm/p-dropdown_2.entry.js +160 -0
  748. package/dist/esm/p-dropdown_2.entry.js.map +1 -0
  749. package/dist/esm/p-helper_3.entry.js +138 -0
  750. package/dist/esm/p-helper_3.entry.js.map +1 -0
  751. package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1378 -8
  752. package/dist/esm/p-illustration_6.entry.js.map +1 -0
  753. package/dist/esm/p-info-panel.entry.js +6 -8
  754. package/dist/esm/p-info-panel.entry.js.map +1 -0
  755. package/dist/esm/p-label_3.entry.js +59 -0
  756. package/dist/esm/p-label_3.entry.js.map +1 -0
  757. package/dist/esm/p-layout.entry.js +18 -0
  758. package/dist/esm/p-layout.entry.js.map +1 -0
  759. package/dist/esm/p-modal-body_4.entry.js +72 -0
  760. package/dist/esm/p-modal-body_4.entry.js.map +1 -0
  761. package/dist/esm/p-modal.entry.js +36 -14
  762. package/dist/esm/p-modal.entry.js.map +1 -0
  763. package/dist/esm/p-navbar.entry.js +26 -0
  764. package/dist/esm/p-navbar.entry.js.map +1 -0
  765. package/dist/esm/p-navigation-item.entry.js +9 -6
  766. package/dist/esm/p-navigation-item.entry.js.map +1 -0
  767. package/dist/esm/p-page-size-select_3.entry.js +218 -0
  768. package/dist/esm/p-page-size-select_3.entry.js.map +1 -0
  769. package/dist/esm/p-profile.entry.js +41 -0
  770. package/dist/esm/p-profile.entry.js.map +1 -0
  771. package/dist/esm/p-select.entry.js +242 -0
  772. package/dist/esm/p-select.entry.js.map +1 -0
  773. package/dist/esm/p-slider-indicator.entry.js +18 -0
  774. package/dist/esm/p-slider-indicator.entry.js.map +1 -0
  775. package/dist/esm/p-status.entry.js +7 -5
  776. package/dist/esm/p-status.entry.js.map +1 -0
  777. package/dist/esm/p-stepper-item.entry.js +22 -0
  778. package/dist/esm/p-stepper-item.entry.js.map +1 -0
  779. package/dist/esm/p-stepper-line.entry.js +19 -0
  780. package/dist/esm/p-stepper-line.entry.js.map +1 -0
  781. package/dist/esm/p-stepper.entry.js +76 -0
  782. package/dist/esm/p-stepper.entry.js.map +1 -0
  783. package/dist/esm/p-tab-group.entry.js +16 -0
  784. package/dist/esm/p-tab-group.entry.js.map +1 -0
  785. package/dist/esm/p-tab-item.entry.js +18 -0
  786. package/dist/esm/p-tab-item.entry.js.map +1 -0
  787. package/dist/esm/p-table-column.entry.js +24 -0
  788. package/dist/esm/p-table-column.entry.js.map +1 -0
  789. package/dist/esm/p-table.entry.js +348 -0
  790. package/dist/esm/p-table.entry.js.map +1 -0
  791. package/dist/esm/p-toast-container.entry.js +18 -0
  792. package/dist/esm/p-toast-container.entry.js.map +1 -0
  793. package/dist/esm/p-toast.entry.js +31 -0
  794. package/dist/esm/p-toast.entry.js.map +1 -0
  795. package/dist/esm/p-tooltip.entry.js +56 -55
  796. package/dist/esm/p-tooltip.entry.js.map +1 -0
  797. package/dist/esm/paperless.js +9 -3
  798. package/dist/esm/paperless.js.map +1 -0
  799. package/dist/esm/polyfills/core-js.js +0 -0
  800. package/dist/esm/polyfills/css-shim.js +1 -1
  801. package/dist/esm/polyfills/dom.js +0 -0
  802. package/dist/esm/polyfills/es5-html-element.js +0 -0
  803. package/dist/esm/polyfills/index.js +0 -0
  804. package/dist/esm/polyfills/system.js +0 -0
  805. package/dist/index.html +1 -1
  806. package/dist/paperless/index.esm.js +2 -0
  807. package/dist/paperless/index.esm.js.map +1 -0
  808. package/dist/paperless/p-09ea2a1a.js +2 -0
  809. package/dist/paperless/p-09ea2a1a.js.map +1 -0
  810. package/dist/paperless/p-0a3f2fe8.entry.js +2 -0
  811. package/dist/paperless/p-0a3f2fe8.entry.js.map +1 -0
  812. package/dist/paperless/p-0cb97c5e.entry.js +2 -0
  813. package/dist/paperless/p-0cb97c5e.entry.js.map +1 -0
  814. package/dist/paperless/p-0e0bffb3.entry.js +2 -0
  815. package/dist/paperless/p-0e0bffb3.entry.js.map +1 -0
  816. package/dist/paperless/p-10ad607e.entry.js +2 -0
  817. package/dist/paperless/p-10ad607e.entry.js.map +1 -0
  818. package/dist/paperless/p-1b5292a3.entry.js +2 -0
  819. package/dist/paperless/p-1b5292a3.entry.js.map +1 -0
  820. package/dist/paperless/p-3d8b5cc4.entry.js +2 -0
  821. package/dist/paperless/p-3d8b5cc4.entry.js.map +1 -0
  822. package/dist/paperless/p-3dcc02d8.entry.js +2 -0
  823. package/dist/paperless/p-3dcc02d8.entry.js.map +1 -0
  824. package/dist/paperless/p-45dfd940.entry.js +2 -0
  825. package/dist/paperless/p-45dfd940.entry.js.map +1 -0
  826. package/dist/paperless/p-464569dc.entry.js +2 -0
  827. package/dist/paperless/p-464569dc.entry.js.map +1 -0
  828. package/dist/paperless/p-4e650fe4.js +2 -0
  829. package/dist/paperless/p-4e650fe4.js.map +1 -0
  830. package/dist/paperless/p-5236b565.entry.js +2 -0
  831. package/dist/paperless/p-5236b565.entry.js.map +1 -0
  832. package/dist/paperless/p-57411b2b.entry.js +2 -0
  833. package/dist/paperless/p-57411b2b.entry.js.map +1 -0
  834. package/dist/paperless/p-58b52568.entry.js +2 -0
  835. package/dist/paperless/p-58b52568.entry.js.map +1 -0
  836. package/dist/paperless/p-5d118f66.entry.js +2 -0
  837. package/dist/paperless/p-5d118f66.entry.js.map +1 -0
  838. package/dist/paperless/p-6b7d2d41.entry.js +2 -0
  839. package/dist/paperless/p-6b7d2d41.entry.js.map +1 -0
  840. package/dist/paperless/p-6c60fd3d.js +2 -0
  841. package/dist/paperless/p-6c60fd3d.js.map +1 -0
  842. package/dist/paperless/p-6f82a1e7.entry.js +2 -0
  843. package/dist/paperless/p-6f82a1e7.entry.js.map +1 -0
  844. package/dist/paperless/p-6fd261ab.entry.js +2 -0
  845. package/dist/paperless/p-6fd261ab.entry.js.map +1 -0
  846. package/dist/paperless/p-7010541f.entry.js +2 -0
  847. package/dist/paperless/p-7010541f.entry.js.map +1 -0
  848. package/dist/paperless/p-756c06ec.entry.js +2 -0
  849. package/dist/paperless/p-756c06ec.entry.js.map +1 -0
  850. package/dist/paperless/p-78948e08.entry.js +2 -0
  851. package/dist/paperless/p-78948e08.entry.js.map +1 -0
  852. package/dist/paperless/p-78ce77d2.entry.js +2 -0
  853. package/dist/paperless/p-78ce77d2.entry.js.map +1 -0
  854. package/dist/paperless/p-7b94bc6a.entry.js +2 -0
  855. package/dist/paperless/p-7b94bc6a.entry.js.map +1 -0
  856. package/dist/paperless/p-8a6728d5.js +2 -0
  857. package/dist/paperless/p-8a6728d5.js.map +1 -0
  858. package/dist/paperless/p-8fb43cc7.entry.js +2 -0
  859. package/dist/paperless/p-8fb43cc7.entry.js.map +1 -0
  860. package/dist/paperless/p-93fb216c.entry.js +2 -0
  861. package/dist/paperless/p-93fb216c.entry.js.map +1 -0
  862. package/dist/paperless/p-9ee7b088.entry.js +2 -0
  863. package/dist/paperless/p-9ee7b088.entry.js.map +1 -0
  864. package/dist/paperless/p-a2bd1a79.entry.js +2 -0
  865. package/dist/paperless/p-a2bd1a79.entry.js.map +1 -0
  866. package/dist/paperless/p-a3fcf8b6.entry.js +2 -0
  867. package/dist/paperless/p-a3fcf8b6.entry.js.map +1 -0
  868. package/dist/paperless/p-a89bc06c.entry.js +2 -0
  869. package/dist/paperless/p-a89bc06c.entry.js.map +1 -0
  870. package/dist/paperless/p-ac1af618.js +3 -0
  871. package/dist/paperless/p-ac1af618.js.map +1 -0
  872. package/dist/paperless/p-ac7b48ff.entry.js +2 -0
  873. package/dist/paperless/p-ac7b48ff.entry.js.map +1 -0
  874. package/dist/paperless/p-b13a0ee4.entry.js +2 -0
  875. package/dist/paperless/p-b13a0ee4.entry.js.map +1 -0
  876. package/dist/paperless/p-b273ac6d.js +2 -0
  877. package/dist/paperless/p-b273ac6d.js.map +1 -0
  878. package/dist/paperless/p-b450d46f.entry.js +2 -0
  879. package/dist/paperless/p-b450d46f.entry.js.map +1 -0
  880. package/dist/paperless/p-b7b1de31.entry.js +2 -0
  881. package/dist/paperless/p-b7b1de31.entry.js.map +1 -0
  882. package/dist/paperless/p-bd85ff72.entry.js +2 -0
  883. package/dist/paperless/p-bd85ff72.entry.js.map +1 -0
  884. package/dist/paperless/p-befde602.entry.js +2 -0
  885. package/dist/paperless/p-befde602.entry.js.map +1 -0
  886. package/dist/paperless/p-c6ef7b79.entry.js +2 -0
  887. package/dist/paperless/p-c6ef7b79.entry.js.map +1 -0
  888. package/dist/paperless/p-cccc37c0.entry.js +2 -0
  889. package/dist/paperless/p-cccc37c0.entry.js.map +1 -0
  890. package/dist/paperless/p-d7d7f5d0.entry.js +2 -0
  891. package/dist/paperless/p-d7d7f5d0.entry.js.map +1 -0
  892. package/dist/paperless/p-dc01e9eb.entry.js +2 -0
  893. package/dist/paperless/p-dc01e9eb.entry.js.map +1 -0
  894. package/dist/paperless/p-dd2a50d0.entry.js +2 -0
  895. package/dist/paperless/p-dd2a50d0.entry.js.map +1 -0
  896. package/dist/paperless/p-e0f41dd5.entry.js +2 -0
  897. package/dist/paperless/p-e0f41dd5.entry.js.map +1 -0
  898. package/dist/paperless/p-e621e34c.js +2 -0
  899. package/dist/paperless/p-e621e34c.js.map +1 -0
  900. package/dist/paperless/p-ea824ef3.entry.js +2 -0
  901. package/dist/paperless/p-ea824ef3.entry.js.map +1 -0
  902. package/dist/paperless/p-ebc2ae62.entry.js +2 -0
  903. package/dist/paperless/p-ebc2ae62.entry.js.map +1 -0
  904. package/dist/paperless/p-f07793f6.entry.js +2 -0
  905. package/dist/paperless/p-f07793f6.entry.js.map +1 -0
  906. package/dist/paperless/paperless.css +980 -576
  907. package/dist/paperless/paperless.esm.js +2 -1
  908. package/dist/paperless/paperless.esm.js.map +1 -0
  909. package/dist/style/_fonts.scss +70 -0
  910. package/dist/style/_helpers.scss +5 -0
  911. package/dist/style/_mixins.scss +1 -0
  912. package/dist/style/_reset.scss +30 -0
  913. package/dist/style/_tailwind.scss +3 -0
  914. package/dist/style/_typograhpy.scss +29 -0
  915. package/dist/style/_variables.scss +2 -0
  916. package/dist/style/form/_checkbox.scss +111 -0
  917. package/dist/style/form/_input.scss +31 -0
  918. package/dist/style/form/_mixins.scss +108 -0
  919. package/dist/style/form/_radio.scss +58 -0
  920. package/dist/style/form/_textarea.scss +18 -0
  921. package/dist/style/form/index.scss +4 -0
  922. package/dist/style/mixins/_scrollbar.scss +32 -0
  923. package/dist/style/paperless.scss +12 -0
  924. package/dist/sw.js +2 -906
  925. package/dist/sw.js.map +1 -0
  926. package/dist/tailwind/animation.js +72 -2
  927. package/dist/tailwind/border-radius.js +1 -0
  928. package/dist/tailwind/height.js +5 -0
  929. package/dist/tailwind/plugins/safe-area.js +98 -0
  930. package/dist/tailwind/screens.js +8 -0
  931. package/dist/tailwind/shadows.js +11 -5
  932. package/dist/tailwind/spacing.js +10 -0
  933. package/dist/tailwind/width.js +20 -0
  934. package/dist/tailwind/z-index.js +15 -1
  935. package/dist/tailwind.config.js +14 -3
  936. package/dist/types/components/atoms/avatar/avatar.component.d.ts +3 -1
  937. package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
  938. package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +31 -0
  939. package/dist/types/components/atoms/button/button.component.d.ts +5 -1
  940. package/dist/types/components/atoms/card-container/card-container.component.d.ts +4 -0
  941. package/dist/types/components/atoms/card-header/card-header.component.d.ts +2 -2
  942. package/dist/types/components/atoms/counter/counter.component.d.ts +8 -0
  943. package/dist/types/components/atoms/divider/divider.component.d.ts +4 -0
  944. package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +7 -0
  945. package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +7 -0
  946. package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +12 -0
  947. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +8 -0
  948. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +9 -0
  949. package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
  950. package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
  951. package/dist/types/components/atoms/illustration/illustration.component.d.ts +1 -1
  952. package/dist/types/components/atoms/label/label.component.d.ts +33 -0
  953. package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
  954. package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
  955. package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +4 -0
  956. package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +4 -0
  957. package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +9 -0
  958. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +1 -1
  959. package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
  960. package/dist/types/components/atoms/status/status.component.d.ts +1 -1
  961. package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +23 -0
  962. package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
  963. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
  964. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
  965. package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
  966. package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +7 -0
  967. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +14 -4
  968. package/dist/types/components/helpers/table-column/table-column.component.d.ts +34 -0
  969. package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
  970. package/dist/types/components/molecules/attachment/attachment.component.d.ts +28 -0
  971. package/dist/types/components/molecules/calendar/calendar.component.d.ts +76 -0
  972. package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +53 -0
  973. package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +93 -0
  974. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +33 -5
  975. package/dist/types/components/molecules/input-error/input-error.component.d.ts +12 -0
  976. package/dist/types/components/molecules/input-group/input-group.component.d.ts +68 -0
  977. package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
  978. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +50 -0
  979. package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
  980. package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
  981. package/dist/types/components/molecules/select/select.component.d.ts +139 -0
  982. package/dist/types/components/molecules/stepper/stepper.component.d.ts +21 -0
  983. package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -0
  984. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +63 -0
  985. package/dist/types/components/molecules/table-header/table-header.component.d.ts +101 -0
  986. package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
  987. package/dist/types/components/molecules/toast/toast.component.d.ts +39 -0
  988. package/dist/types/components/organisms/drawer/drawer.component.d.ts +52 -0
  989. package/dist/types/components/organisms/modal/modal.component.d.ts +58 -0
  990. package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
  991. package/dist/types/components/organisms/table/table.component.d.ts +240 -0
  992. package/dist/types/components.d.ts +2788 -275
  993. package/dist/types/index.d.ts +2 -0
  994. package/dist/types/stencil-public-runtime.d.ts +91 -19
  995. package/dist/types/types/index.d.ts +2 -0
  996. package/dist/types/types/table.d.ts +27 -0
  997. package/dist/types/types/tailwind.d.ts +2 -0
  998. package/dist/types/utils/icons.d.ts +7 -0
  999. package/dist/types/utils/illustrations.d.ts +4 -0
  1000. package/dist/types/utils/index.d.ts +6 -0
  1001. package/dist/types/utils/localization.d.ts +2 -0
  1002. package/dist/types/utils/object-get-by-path.d.ts +1 -0
  1003. package/dist/types/utils/transformers.d.ts +2 -0
  1004. package/dist/workbox-5b279812.js +2 -0
  1005. package/dist/workbox-5b279812.js.map +1 -0
  1006. package/hydrate/index.d.ts +218 -0
  1007. package/hydrate/index.js +22266 -0
  1008. package/hydrate/package.json +6 -0
  1009. package/loader/index.d.ts +9 -0
  1010. package/loader/package.json +1 -0
  1011. package/package.json +28 -22
  1012. package/dist/build/p-0100c1a2.js +0 -2
  1013. package/dist/build/p-11d24001.entry.js +0 -1
  1014. package/dist/build/p-19d84fe7.entry.js +0 -1
  1015. package/dist/build/p-2120a0b7.entry.js +0 -1
  1016. package/dist/build/p-3b491ca2.entry.js +0 -1
  1017. package/dist/build/p-3f6d3736.entry.js +0 -1
  1018. package/dist/build/p-463f354c.entry.js +0 -1
  1019. package/dist/build/p-4a85b858.entry.js +0 -1
  1020. package/dist/build/p-5101f35f.entry.js +0 -1
  1021. package/dist/build/p-5438d70e.entry.js +0 -1
  1022. package/dist/build/p-63e5f5e1.entry.js +0 -1
  1023. package/dist/build/p-67fc89a6.entry.js +0 -1
  1024. package/dist/build/p-6e60b92a.entry.js +0 -1
  1025. package/dist/build/p-7784ee14.entry.js +0 -1
  1026. package/dist/build/p-864ac423.entry.js +0 -1
  1027. package/dist/build/p-94cef335.entry.js +0 -1
  1028. package/dist/build/p-a7086ffa.js +0 -1
  1029. package/dist/build/p-b68368f3.entry.js +0 -1
  1030. package/dist/build/p-c64e2313.entry.js +0 -1
  1031. package/dist/build/p-ccbddcbb.entry.js +0 -1
  1032. package/dist/build/p-d069673f.entry.js +0 -1
  1033. package/dist/build/p-f50c6e5b.entry.js +0 -1
  1034. package/dist/build/p-fb1e33eb.entry.js +0 -1
  1035. package/dist/build/p-ffeed7c6.entry.js +0 -1
  1036. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
  1037. package/dist/cjs/p-dropdown.cjs.entry.js +0 -141
  1038. package/dist/cjs/p-helper.cjs.entry.js +0 -19
  1039. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +0 -92
  1040. package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
  1041. package/dist/cjs/p-pagination.cjs.entry.js +0 -171
  1042. package/dist/cjs/p-segment-container.cjs.entry.js +0 -19
  1043. package/dist/cjs/p-segment-item.cjs.entry.js +0 -29
  1044. package/dist/cjs/popper-e0c4ed4c.js +0 -1790
  1045. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +0 -7
  1046. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +0 -15
  1047. package/dist/collection/components/molecules/modal/modal.component.js +0 -111
  1048. package/dist/collection/tailwind/grid.js +0 -26
  1049. package/dist/collection/utils/types.js +0 -1
  1050. package/dist/collection/utils/utils.js +0 -3
  1051. package/dist/components/modal-backdrop.component.js +0 -30
  1052. package/dist/components/p-modal-backdrop.js +0 -6
  1053. package/dist/components/popper.js +0 -1788
  1054. package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
  1055. package/dist/esm/p-dropdown.entry.js +0 -137
  1056. package/dist/esm/p-helper.entry.js +0 -15
  1057. package/dist/esm/p-modal-backdrop_5.entry.js +0 -84
  1058. package/dist/esm/p-pagination-item.entry.js +0 -19
  1059. package/dist/esm/p-pagination.entry.js +0 -167
  1060. package/dist/esm/p-segment-container.entry.js +0 -15
  1061. package/dist/esm/p-segment-item.entry.js +0 -25
  1062. package/dist/esm/popper-41c6f9cd.js +0 -1788
  1063. package/dist/paperless/p-0100c1a2.js +0 -2
  1064. package/dist/paperless/p-11d24001.entry.js +0 -1
  1065. package/dist/paperless/p-19d84fe7.entry.js +0 -1
  1066. package/dist/paperless/p-2120a0b7.entry.js +0 -1
  1067. package/dist/paperless/p-3b491ca2.entry.js +0 -1
  1068. package/dist/paperless/p-3f6d3736.entry.js +0 -1
  1069. package/dist/paperless/p-463f354c.entry.js +0 -1
  1070. package/dist/paperless/p-4a85b858.entry.js +0 -1
  1071. package/dist/paperless/p-5101f35f.entry.js +0 -1
  1072. package/dist/paperless/p-5438d70e.entry.js +0 -1
  1073. package/dist/paperless/p-63e5f5e1.entry.js +0 -1
  1074. package/dist/paperless/p-67fc89a6.entry.js +0 -1
  1075. package/dist/paperless/p-6e60b92a.entry.js +0 -1
  1076. package/dist/paperless/p-7784ee14.entry.js +0 -1
  1077. package/dist/paperless/p-864ac423.entry.js +0 -1
  1078. package/dist/paperless/p-94cef335.entry.js +0 -1
  1079. package/dist/paperless/p-a7086ffa.js +0 -1
  1080. package/dist/paperless/p-b68368f3.entry.js +0 -1
  1081. package/dist/paperless/p-c64e2313.entry.js +0 -1
  1082. package/dist/paperless/p-ccbddcbb.entry.js +0 -1
  1083. package/dist/paperless/p-d069673f.entry.js +0 -1
  1084. package/dist/paperless/p-f50c6e5b.entry.js +0 -1
  1085. package/dist/paperless/p-fb1e33eb.entry.js +0 -1
  1086. package/dist/paperless/p-ffeed7c6.entry.js +0 -1
  1087. package/dist/tailwind/grid.js +0 -26
  1088. package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +0 -3
  1089. package/dist/types/components/molecules/modal/modal.component.d.ts +0 -25
  1090. package/dist/types/utils/types.d.ts +0 -2
  1091. package/dist/types/utils/utils.d.ts +0 -1
@@ -0,0 +1,2460 @@
1
+ function toInteger(dirtyNumber) {
2
+ if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
3
+ return NaN;
4
+ }
5
+
6
+ var number = Number(dirtyNumber);
7
+
8
+ if (isNaN(number)) {
9
+ return number;
10
+ }
11
+
12
+ return number < 0 ? Math.ceil(number) : Math.floor(number);
13
+ }
14
+
15
+ function requiredArgs(required, args) {
16
+ if (args.length < required) {
17
+ throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
18
+ }
19
+ }
20
+
21
+ function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
22
+ /**
23
+ * @name toDate
24
+ * @category Common Helpers
25
+ * @summary Convert the given argument to an instance of Date.
26
+ *
27
+ * @description
28
+ * Convert the given argument to an instance of Date.
29
+ *
30
+ * If the argument is an instance of Date, the function returns its clone.
31
+ *
32
+ * If the argument is a number, it is treated as a timestamp.
33
+ *
34
+ * If the argument is none of the above, the function returns Invalid Date.
35
+ *
36
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
37
+ *
38
+ * @param {Date|Number} argument - the value to convert
39
+ * @returns {Date} the parsed date in the local time zone
40
+ * @throws {TypeError} 1 argument required
41
+ *
42
+ * @example
43
+ * // Clone the date:
44
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
45
+ * //=> Tue Feb 11 2014 11:30:30
46
+ *
47
+ * @example
48
+ * // Convert the timestamp to date:
49
+ * const result = toDate(1392098430000)
50
+ * //=> Tue Feb 11 2014 11:30:30
51
+ */
52
+
53
+ function toDate(argument) {
54
+ requiredArgs(1, arguments);
55
+ var argStr = Object.prototype.toString.call(argument); // Clone the date
56
+
57
+ if (argument instanceof Date || _typeof$1(argument) === 'object' && argStr === '[object Date]') {
58
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
59
+ return new Date(argument.getTime());
60
+ } else if (typeof argument === 'number' || argStr === '[object Number]') {
61
+ return new Date(argument);
62
+ } else {
63
+ if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
64
+ // eslint-disable-next-line no-console
65
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
66
+
67
+ console.warn(new Error().stack);
68
+ }
69
+
70
+ return new Date(NaN);
71
+ }
72
+ }
73
+
74
+ /**
75
+ * @name addMilliseconds
76
+ * @category Millisecond Helpers
77
+ * @summary Add the specified number of milliseconds to the given date.
78
+ *
79
+ * @description
80
+ * Add the specified number of milliseconds to the given date.
81
+ *
82
+ * @param {Date|Number} date - the date to be changed
83
+ * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
84
+ * @returns {Date} the new date with the milliseconds added
85
+ * @throws {TypeError} 2 arguments required
86
+ *
87
+ * @example
88
+ * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
89
+ * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
90
+ * //=> Thu Jul 10 2014 12:45:30.750
91
+ */
92
+
93
+ function addMilliseconds(dirtyDate, dirtyAmount) {
94
+ requiredArgs(2, arguments);
95
+ var timestamp = toDate(dirtyDate).getTime();
96
+ var amount = toInteger(dirtyAmount);
97
+ return new Date(timestamp + amount);
98
+ }
99
+
100
+ var defaultOptions = {};
101
+ function getDefaultOptions() {
102
+ return defaultOptions;
103
+ }
104
+
105
+ /**
106
+ * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
107
+ * They usually appear for dates that denote time before the timezones were introduced
108
+ * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
109
+ * and GMT+01:00:00 after that date)
110
+ *
111
+ * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
112
+ * which would lead to incorrect calculations.
113
+ *
114
+ * This function returns the timezone offset in milliseconds that takes seconds in account.
115
+ */
116
+ function getTimezoneOffsetInMilliseconds(date) {
117
+ var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
118
+ utcDate.setUTCFullYear(date.getFullYear());
119
+ return date.getTime() - utcDate.getTime();
120
+ }
121
+
122
+ /**
123
+ * @name startOfDay
124
+ * @category Day Helpers
125
+ * @summary Return the start of a day for the given date.
126
+ *
127
+ * @description
128
+ * Return the start of a day for the given date.
129
+ * The result will be in the local timezone.
130
+ *
131
+ * @param {Date|Number} date - the original date
132
+ * @returns {Date} the start of a day
133
+ * @throws {TypeError} 1 argument required
134
+ *
135
+ * @example
136
+ * // The start of a day for 2 September 2014 11:55:00:
137
+ * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
138
+ * //=> Tue Sep 02 2014 00:00:00
139
+ */
140
+
141
+ function startOfDay(dirtyDate) {
142
+ requiredArgs(1, arguments);
143
+ var date = toDate(dirtyDate);
144
+ date.setHours(0, 0, 0, 0);
145
+ return date;
146
+ }
147
+
148
+ /**
149
+ * @name isSameDay
150
+ * @category Day Helpers
151
+ * @summary Are the given dates in the same day (and year and month)?
152
+ *
153
+ * @description
154
+ * Are the given dates in the same day (and year and month)?
155
+ *
156
+ * @param {Date|Number} dateLeft - the first date to check
157
+ * @param {Date|Number} dateRight - the second date to check
158
+ * @returns {Boolean} the dates are in the same day (and year and month)
159
+ * @throws {TypeError} 2 arguments required
160
+ *
161
+ * @example
162
+ * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
163
+ * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
164
+ * //=> true
165
+ *
166
+ * @example
167
+ * // Are 4 September and 4 October in the same day?
168
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
169
+ * //=> false
170
+ *
171
+ * @example
172
+ * // Are 4 September, 2014 and 4 September, 2015 in the same day?
173
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
174
+ * //=> false
175
+ */
176
+
177
+ function isSameDay(dirtyDateLeft, dirtyDateRight) {
178
+ requiredArgs(2, arguments);
179
+ var dateLeftStartOfDay = startOfDay(dirtyDateLeft);
180
+ var dateRightStartOfDay = startOfDay(dirtyDateRight);
181
+ return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
182
+ }
183
+
184
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
185
+ /**
186
+ * @name isDate
187
+ * @category Common Helpers
188
+ * @summary Is the given value a date?
189
+ *
190
+ * @description
191
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
192
+ *
193
+ * @param {*} value - the value to check
194
+ * @returns {boolean} true if the given value is a date
195
+ * @throws {TypeError} 1 arguments required
196
+ *
197
+ * @example
198
+ * // For a valid date:
199
+ * const result = isDate(new Date())
200
+ * //=> true
201
+ *
202
+ * @example
203
+ * // For an invalid date:
204
+ * const result = isDate(new Date(NaN))
205
+ * //=> true
206
+ *
207
+ * @example
208
+ * // For some value:
209
+ * const result = isDate('2014-02-31')
210
+ * //=> false
211
+ *
212
+ * @example
213
+ * // For an object:
214
+ * const result = isDate({})
215
+ * //=> false
216
+ */
217
+
218
+ function isDate(value) {
219
+ requiredArgs(1, arguments);
220
+ return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
221
+ }
222
+
223
+ /**
224
+ * @name isValid
225
+ * @category Common Helpers
226
+ * @summary Is the given date valid?
227
+ *
228
+ * @description
229
+ * Returns false if argument is Invalid Date and true otherwise.
230
+ * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
231
+ * Invalid Date is a Date, whose time value is NaN.
232
+ *
233
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
234
+ *
235
+ * @param {*} date - the date to check
236
+ * @returns {Boolean} the date is valid
237
+ * @throws {TypeError} 1 argument required
238
+ *
239
+ * @example
240
+ * // For the valid date:
241
+ * const result = isValid(new Date(2014, 1, 31))
242
+ * //=> true
243
+ *
244
+ * @example
245
+ * // For the value, convertable into a date:
246
+ * const result = isValid(1393804800000)
247
+ * //=> true
248
+ *
249
+ * @example
250
+ * // For the invalid date:
251
+ * const result = isValid(new Date(''))
252
+ * //=> false
253
+ */
254
+
255
+ function isValid(dirtyDate) {
256
+ requiredArgs(1, arguments);
257
+
258
+ if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
259
+ return false;
260
+ }
261
+
262
+ var date = toDate(dirtyDate);
263
+ return !isNaN(Number(date));
264
+ }
265
+
266
+ /**
267
+ * @name subMilliseconds
268
+ * @category Millisecond Helpers
269
+ * @summary Subtract the specified number of milliseconds from the given date.
270
+ *
271
+ * @description
272
+ * Subtract the specified number of milliseconds from the given date.
273
+ *
274
+ * @param {Date|Number} date - the date to be changed
275
+ * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
276
+ * @returns {Date} the new date with the milliseconds subtracted
277
+ * @throws {TypeError} 2 arguments required
278
+ *
279
+ * @example
280
+ * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
281
+ * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
282
+ * //=> Thu Jul 10 2014 12:45:29.250
283
+ */
284
+
285
+ function subMilliseconds(dirtyDate, dirtyAmount) {
286
+ requiredArgs(2, arguments);
287
+ var amount = toInteger(dirtyAmount);
288
+ return addMilliseconds(dirtyDate, -amount);
289
+ }
290
+
291
+ var MILLISECONDS_IN_DAY = 86400000;
292
+ function getUTCDayOfYear(dirtyDate) {
293
+ requiredArgs(1, arguments);
294
+ var date = toDate(dirtyDate);
295
+ var timestamp = date.getTime();
296
+ date.setUTCMonth(0, 1);
297
+ date.setUTCHours(0, 0, 0, 0);
298
+ var startOfYearTimestamp = date.getTime();
299
+ var difference = timestamp - startOfYearTimestamp;
300
+ return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
301
+ }
302
+
303
+ function startOfUTCISOWeek(dirtyDate) {
304
+ requiredArgs(1, arguments);
305
+ var weekStartsOn = 1;
306
+ var date = toDate(dirtyDate);
307
+ var day = date.getUTCDay();
308
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
309
+ date.setUTCDate(date.getUTCDate() - diff);
310
+ date.setUTCHours(0, 0, 0, 0);
311
+ return date;
312
+ }
313
+
314
+ function getUTCISOWeekYear(dirtyDate) {
315
+ requiredArgs(1, arguments);
316
+ var date = toDate(dirtyDate);
317
+ var year = date.getUTCFullYear();
318
+ var fourthOfJanuaryOfNextYear = new Date(0);
319
+ fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
320
+ fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
321
+ var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
322
+ var fourthOfJanuaryOfThisYear = new Date(0);
323
+ fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
324
+ fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
325
+ var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
326
+
327
+ if (date.getTime() >= startOfNextYear.getTime()) {
328
+ return year + 1;
329
+ } else if (date.getTime() >= startOfThisYear.getTime()) {
330
+ return year;
331
+ } else {
332
+ return year - 1;
333
+ }
334
+ }
335
+
336
+ function startOfUTCISOWeekYear(dirtyDate) {
337
+ requiredArgs(1, arguments);
338
+ var year = getUTCISOWeekYear(dirtyDate);
339
+ var fourthOfJanuary = new Date(0);
340
+ fourthOfJanuary.setUTCFullYear(year, 0, 4);
341
+ fourthOfJanuary.setUTCHours(0, 0, 0, 0);
342
+ var date = startOfUTCISOWeek(fourthOfJanuary);
343
+ return date;
344
+ }
345
+
346
+ var MILLISECONDS_IN_WEEK$1 = 604800000;
347
+ function getUTCISOWeek(dirtyDate) {
348
+ requiredArgs(1, arguments);
349
+ var date = toDate(dirtyDate);
350
+ var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
351
+ // because the number of milliseconds in a week is not constant
352
+ // (e.g. it's different in the week of the daylight saving time clock shift)
353
+
354
+ return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
355
+ }
356
+
357
+ function startOfUTCWeek(dirtyDate, options) {
358
+ var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
359
+
360
+ requiredArgs(1, arguments);
361
+ var defaultOptions = getDefaultOptions();
362
+ var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
363
+
364
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
365
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
366
+ }
367
+
368
+ var date = toDate(dirtyDate);
369
+ var day = date.getUTCDay();
370
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
371
+ date.setUTCDate(date.getUTCDate() - diff);
372
+ date.setUTCHours(0, 0, 0, 0);
373
+ return date;
374
+ }
375
+
376
+ function getUTCWeekYear(dirtyDate, options) {
377
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
378
+
379
+ requiredArgs(1, arguments);
380
+ var date = toDate(dirtyDate);
381
+ var year = date.getUTCFullYear();
382
+ var defaultOptions = getDefaultOptions();
383
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
384
+
385
+ if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
386
+ throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
387
+ }
388
+
389
+ var firstWeekOfNextYear = new Date(0);
390
+ firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
391
+ firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
392
+ var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
393
+ var firstWeekOfThisYear = new Date(0);
394
+ firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
395
+ firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
396
+ var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
397
+
398
+ if (date.getTime() >= startOfNextYear.getTime()) {
399
+ return year + 1;
400
+ } else if (date.getTime() >= startOfThisYear.getTime()) {
401
+ return year;
402
+ } else {
403
+ return year - 1;
404
+ }
405
+ }
406
+
407
+ function startOfUTCWeekYear(dirtyDate, options) {
408
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
409
+
410
+ requiredArgs(1, arguments);
411
+ var defaultOptions = getDefaultOptions();
412
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
413
+ var year = getUTCWeekYear(dirtyDate, options);
414
+ var firstWeek = new Date(0);
415
+ firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
416
+ firstWeek.setUTCHours(0, 0, 0, 0);
417
+ var date = startOfUTCWeek(firstWeek, options);
418
+ return date;
419
+ }
420
+
421
+ var MILLISECONDS_IN_WEEK = 604800000;
422
+ function getUTCWeek(dirtyDate, options) {
423
+ requiredArgs(1, arguments);
424
+ var date = toDate(dirtyDate);
425
+ var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
426
+ // because the number of milliseconds in a week is not constant
427
+ // (e.g. it's different in the week of the daylight saving time clock shift)
428
+
429
+ return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
430
+ }
431
+
432
+ function addLeadingZeros(number, targetLength) {
433
+ var sign = number < 0 ? '-' : '';
434
+ var output = Math.abs(number).toString();
435
+
436
+ while (output.length < targetLength) {
437
+ output = '0' + output;
438
+ }
439
+
440
+ return sign + output;
441
+ }
442
+
443
+ /*
444
+ * | | Unit | | Unit |
445
+ * |-----|--------------------------------|-----|--------------------------------|
446
+ * | a | AM, PM | A* | |
447
+ * | d | Day of month | D | |
448
+ * | h | Hour [1-12] | H | Hour [0-23] |
449
+ * | m | Minute | M | Month |
450
+ * | s | Second | S | Fraction of second |
451
+ * | y | Year (abs) | Y | |
452
+ *
453
+ * Letters marked by * are not implemented but reserved by Unicode standard.
454
+ */
455
+
456
+ var formatters$1 = {
457
+ // Year
458
+ y: function y(date, token) {
459
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
460
+ // | Year | y | yy | yyy | yyyy | yyyyy |
461
+ // |----------|-------|----|-------|-------|-------|
462
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
463
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
464
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
465
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
466
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
467
+ var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
468
+
469
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
470
+ return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
471
+ },
472
+ // Month
473
+ M: function M(date, token) {
474
+ var month = date.getUTCMonth();
475
+ return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
476
+ },
477
+ // Day of the month
478
+ d: function d(date, token) {
479
+ return addLeadingZeros(date.getUTCDate(), token.length);
480
+ },
481
+ // AM or PM
482
+ a: function a(date, token) {
483
+ var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
484
+
485
+ switch (token) {
486
+ case 'a':
487
+ case 'aa':
488
+ return dayPeriodEnumValue.toUpperCase();
489
+
490
+ case 'aaa':
491
+ return dayPeriodEnumValue;
492
+
493
+ case 'aaaaa':
494
+ return dayPeriodEnumValue[0];
495
+
496
+ case 'aaaa':
497
+ default:
498
+ return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
499
+ }
500
+ },
501
+ // Hour [1-12]
502
+ h: function h(date, token) {
503
+ return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
504
+ },
505
+ // Hour [0-23]
506
+ H: function H(date, token) {
507
+ return addLeadingZeros(date.getUTCHours(), token.length);
508
+ },
509
+ // Minute
510
+ m: function m(date, token) {
511
+ return addLeadingZeros(date.getUTCMinutes(), token.length);
512
+ },
513
+ // Second
514
+ s: function s(date, token) {
515
+ return addLeadingZeros(date.getUTCSeconds(), token.length);
516
+ },
517
+ // Fraction of second
518
+ S: function S(date, token) {
519
+ var numberOfDigits = token.length;
520
+ var milliseconds = date.getUTCMilliseconds();
521
+ var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
522
+ return addLeadingZeros(fractionalSeconds, token.length);
523
+ }
524
+ };
525
+
526
+ var dayPeriodEnum = {
527
+ am: 'am',
528
+ pm: 'pm',
529
+ midnight: 'midnight',
530
+ noon: 'noon',
531
+ morning: 'morning',
532
+ afternoon: 'afternoon',
533
+ evening: 'evening',
534
+ night: 'night'
535
+ };
536
+
537
+ /*
538
+ * | | Unit | | Unit |
539
+ * |-----|--------------------------------|-----|--------------------------------|
540
+ * | a | AM, PM | A* | Milliseconds in day |
541
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
542
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
543
+ * | d | Day of month | D | Day of year |
544
+ * | e | Local day of week | E | Day of week |
545
+ * | f | | F* | Day of week in month |
546
+ * | g* | Modified Julian day | G | Era |
547
+ * | h | Hour [1-12] | H | Hour [0-23] |
548
+ * | i! | ISO day of week | I! | ISO week of year |
549
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
550
+ * | k | Hour [1-24] | K | Hour [0-11] |
551
+ * | l* | (deprecated) | L | Stand-alone month |
552
+ * | m | Minute | M | Month |
553
+ * | n | | N | |
554
+ * | o! | Ordinal number modifier | O | Timezone (GMT) |
555
+ * | p! | Long localized time | P! | Long localized date |
556
+ * | q | Stand-alone quarter | Q | Quarter |
557
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
558
+ * | s | Second | S | Fraction of second |
559
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
560
+ * | u | Extended year | U* | Cyclic year |
561
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
562
+ * | w | Local week of year | W* | Week of month |
563
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
564
+ * | y | Year (abs) | Y | Local week-numbering year |
565
+ * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
566
+ *
567
+ * Letters marked by * are not implemented but reserved by Unicode standard.
568
+ *
569
+ * Letters marked by ! are non-standard, but implemented by date-fns:
570
+ * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
571
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
572
+ * i.e. 7 for Sunday, 1 for Monday, etc.
573
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
574
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
575
+ * `R` is supposed to be used in conjunction with `I` and `i`
576
+ * for universal ISO week-numbering date, whereas
577
+ * `Y` is supposed to be used in conjunction with `w` and `e`
578
+ * for week-numbering date specific to the locale.
579
+ * - `P` is long localized date format
580
+ * - `p` is long localized time format
581
+ */
582
+ var formatters = {
583
+ // Era
584
+ G: function G(date, token, localize) {
585
+ var era = date.getUTCFullYear() > 0 ? 1 : 0;
586
+
587
+ switch (token) {
588
+ // AD, BC
589
+ case 'G':
590
+ case 'GG':
591
+ case 'GGG':
592
+ return localize.era(era, {
593
+ width: 'abbreviated'
594
+ });
595
+ // A, B
596
+
597
+ case 'GGGGG':
598
+ return localize.era(era, {
599
+ width: 'narrow'
600
+ });
601
+ // Anno Domini, Before Christ
602
+
603
+ case 'GGGG':
604
+ default:
605
+ return localize.era(era, {
606
+ width: 'wide'
607
+ });
608
+ }
609
+ },
610
+ // Year
611
+ y: function y(date, token, localize) {
612
+ // Ordinal number
613
+ if (token === 'yo') {
614
+ var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
615
+
616
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
617
+ return localize.ordinalNumber(year, {
618
+ unit: 'year'
619
+ });
620
+ }
621
+
622
+ return formatters$1.y(date, token);
623
+ },
624
+ // Local week-numbering year
625
+ Y: function Y(date, token, localize, options) {
626
+ var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
627
+
628
+ var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
629
+
630
+ if (token === 'YY') {
631
+ var twoDigitYear = weekYear % 100;
632
+ return addLeadingZeros(twoDigitYear, 2);
633
+ } // Ordinal number
634
+
635
+
636
+ if (token === 'Yo') {
637
+ return localize.ordinalNumber(weekYear, {
638
+ unit: 'year'
639
+ });
640
+ } // Padding
641
+
642
+
643
+ return addLeadingZeros(weekYear, token.length);
644
+ },
645
+ // ISO week-numbering year
646
+ R: function R(date, token) {
647
+ var isoWeekYear = getUTCISOWeekYear(date); // Padding
648
+
649
+ return addLeadingZeros(isoWeekYear, token.length);
650
+ },
651
+ // Extended year. This is a single number designating the year of this calendar system.
652
+ // The main difference between `y` and `u` localizers are B.C. years:
653
+ // | Year | `y` | `u` |
654
+ // |------|-----|-----|
655
+ // | AC 1 | 1 | 1 |
656
+ // | BC 1 | 1 | 0 |
657
+ // | BC 2 | 2 | -1 |
658
+ // Also `yy` always returns the last two digits of a year,
659
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
660
+ u: function u(date, token) {
661
+ var year = date.getUTCFullYear();
662
+ return addLeadingZeros(year, token.length);
663
+ },
664
+ // Quarter
665
+ Q: function Q(date, token, localize) {
666
+ var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
667
+
668
+ switch (token) {
669
+ // 1, 2, 3, 4
670
+ case 'Q':
671
+ return String(quarter);
672
+ // 01, 02, 03, 04
673
+
674
+ case 'QQ':
675
+ return addLeadingZeros(quarter, 2);
676
+ // 1st, 2nd, 3rd, 4th
677
+
678
+ case 'Qo':
679
+ return localize.ordinalNumber(quarter, {
680
+ unit: 'quarter'
681
+ });
682
+ // Q1, Q2, Q3, Q4
683
+
684
+ case 'QQQ':
685
+ return localize.quarter(quarter, {
686
+ width: 'abbreviated',
687
+ context: 'formatting'
688
+ });
689
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
690
+
691
+ case 'QQQQQ':
692
+ return localize.quarter(quarter, {
693
+ width: 'narrow',
694
+ context: 'formatting'
695
+ });
696
+ // 1st quarter, 2nd quarter, ...
697
+
698
+ case 'QQQQ':
699
+ default:
700
+ return localize.quarter(quarter, {
701
+ width: 'wide',
702
+ context: 'formatting'
703
+ });
704
+ }
705
+ },
706
+ // Stand-alone quarter
707
+ q: function q(date, token, localize) {
708
+ var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
709
+
710
+ switch (token) {
711
+ // 1, 2, 3, 4
712
+ case 'q':
713
+ return String(quarter);
714
+ // 01, 02, 03, 04
715
+
716
+ case 'qq':
717
+ return addLeadingZeros(quarter, 2);
718
+ // 1st, 2nd, 3rd, 4th
719
+
720
+ case 'qo':
721
+ return localize.ordinalNumber(quarter, {
722
+ unit: 'quarter'
723
+ });
724
+ // Q1, Q2, Q3, Q4
725
+
726
+ case 'qqq':
727
+ return localize.quarter(quarter, {
728
+ width: 'abbreviated',
729
+ context: 'standalone'
730
+ });
731
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
732
+
733
+ case 'qqqqq':
734
+ return localize.quarter(quarter, {
735
+ width: 'narrow',
736
+ context: 'standalone'
737
+ });
738
+ // 1st quarter, 2nd quarter, ...
739
+
740
+ case 'qqqq':
741
+ default:
742
+ return localize.quarter(quarter, {
743
+ width: 'wide',
744
+ context: 'standalone'
745
+ });
746
+ }
747
+ },
748
+ // Month
749
+ M: function M(date, token, localize) {
750
+ var month = date.getUTCMonth();
751
+
752
+ switch (token) {
753
+ case 'M':
754
+ case 'MM':
755
+ return formatters$1.M(date, token);
756
+ // 1st, 2nd, ..., 12th
757
+
758
+ case 'Mo':
759
+ return localize.ordinalNumber(month + 1, {
760
+ unit: 'month'
761
+ });
762
+ // Jan, Feb, ..., Dec
763
+
764
+ case 'MMM':
765
+ return localize.month(month, {
766
+ width: 'abbreviated',
767
+ context: 'formatting'
768
+ });
769
+ // J, F, ..., D
770
+
771
+ case 'MMMMM':
772
+ return localize.month(month, {
773
+ width: 'narrow',
774
+ context: 'formatting'
775
+ });
776
+ // January, February, ..., December
777
+
778
+ case 'MMMM':
779
+ default:
780
+ return localize.month(month, {
781
+ width: 'wide',
782
+ context: 'formatting'
783
+ });
784
+ }
785
+ },
786
+ // Stand-alone month
787
+ L: function L(date, token, localize) {
788
+ var month = date.getUTCMonth();
789
+
790
+ switch (token) {
791
+ // 1, 2, ..., 12
792
+ case 'L':
793
+ return String(month + 1);
794
+ // 01, 02, ..., 12
795
+
796
+ case 'LL':
797
+ return addLeadingZeros(month + 1, 2);
798
+ // 1st, 2nd, ..., 12th
799
+
800
+ case 'Lo':
801
+ return localize.ordinalNumber(month + 1, {
802
+ unit: 'month'
803
+ });
804
+ // Jan, Feb, ..., Dec
805
+
806
+ case 'LLL':
807
+ return localize.month(month, {
808
+ width: 'abbreviated',
809
+ context: 'standalone'
810
+ });
811
+ // J, F, ..., D
812
+
813
+ case 'LLLLL':
814
+ return localize.month(month, {
815
+ width: 'narrow',
816
+ context: 'standalone'
817
+ });
818
+ // January, February, ..., December
819
+
820
+ case 'LLLL':
821
+ default:
822
+ return localize.month(month, {
823
+ width: 'wide',
824
+ context: 'standalone'
825
+ });
826
+ }
827
+ },
828
+ // Local week of year
829
+ w: function w(date, token, localize, options) {
830
+ var week = getUTCWeek(date, options);
831
+
832
+ if (token === 'wo') {
833
+ return localize.ordinalNumber(week, {
834
+ unit: 'week'
835
+ });
836
+ }
837
+
838
+ return addLeadingZeros(week, token.length);
839
+ },
840
+ // ISO week of year
841
+ I: function I(date, token, localize) {
842
+ var isoWeek = getUTCISOWeek(date);
843
+
844
+ if (token === 'Io') {
845
+ return localize.ordinalNumber(isoWeek, {
846
+ unit: 'week'
847
+ });
848
+ }
849
+
850
+ return addLeadingZeros(isoWeek, token.length);
851
+ },
852
+ // Day of the month
853
+ d: function d(date, token, localize) {
854
+ if (token === 'do') {
855
+ return localize.ordinalNumber(date.getUTCDate(), {
856
+ unit: 'date'
857
+ });
858
+ }
859
+
860
+ return formatters$1.d(date, token);
861
+ },
862
+ // Day of year
863
+ D: function D(date, token, localize) {
864
+ var dayOfYear = getUTCDayOfYear(date);
865
+
866
+ if (token === 'Do') {
867
+ return localize.ordinalNumber(dayOfYear, {
868
+ unit: 'dayOfYear'
869
+ });
870
+ }
871
+
872
+ return addLeadingZeros(dayOfYear, token.length);
873
+ },
874
+ // Day of week
875
+ E: function E(date, token, localize) {
876
+ var dayOfWeek = date.getUTCDay();
877
+
878
+ switch (token) {
879
+ // Tue
880
+ case 'E':
881
+ case 'EE':
882
+ case 'EEE':
883
+ return localize.day(dayOfWeek, {
884
+ width: 'abbreviated',
885
+ context: 'formatting'
886
+ });
887
+ // T
888
+
889
+ case 'EEEEE':
890
+ return localize.day(dayOfWeek, {
891
+ width: 'narrow',
892
+ context: 'formatting'
893
+ });
894
+ // Tu
895
+
896
+ case 'EEEEEE':
897
+ return localize.day(dayOfWeek, {
898
+ width: 'short',
899
+ context: 'formatting'
900
+ });
901
+ // Tuesday
902
+
903
+ case 'EEEE':
904
+ default:
905
+ return localize.day(dayOfWeek, {
906
+ width: 'wide',
907
+ context: 'formatting'
908
+ });
909
+ }
910
+ },
911
+ // Local day of week
912
+ e: function e(date, token, localize, options) {
913
+ var dayOfWeek = date.getUTCDay();
914
+ var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
915
+
916
+ switch (token) {
917
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
918
+ case 'e':
919
+ return String(localDayOfWeek);
920
+ // Padded numerical value
921
+
922
+ case 'ee':
923
+ return addLeadingZeros(localDayOfWeek, 2);
924
+ // 1st, 2nd, ..., 7th
925
+
926
+ case 'eo':
927
+ return localize.ordinalNumber(localDayOfWeek, {
928
+ unit: 'day'
929
+ });
930
+
931
+ case 'eee':
932
+ return localize.day(dayOfWeek, {
933
+ width: 'abbreviated',
934
+ context: 'formatting'
935
+ });
936
+ // T
937
+
938
+ case 'eeeee':
939
+ return localize.day(dayOfWeek, {
940
+ width: 'narrow',
941
+ context: 'formatting'
942
+ });
943
+ // Tu
944
+
945
+ case 'eeeeee':
946
+ return localize.day(dayOfWeek, {
947
+ width: 'short',
948
+ context: 'formatting'
949
+ });
950
+ // Tuesday
951
+
952
+ case 'eeee':
953
+ default:
954
+ return localize.day(dayOfWeek, {
955
+ width: 'wide',
956
+ context: 'formatting'
957
+ });
958
+ }
959
+ },
960
+ // Stand-alone local day of week
961
+ c: function c(date, token, localize, options) {
962
+ var dayOfWeek = date.getUTCDay();
963
+ var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
964
+
965
+ switch (token) {
966
+ // Numerical value (same as in `e`)
967
+ case 'c':
968
+ return String(localDayOfWeek);
969
+ // Padded numerical value
970
+
971
+ case 'cc':
972
+ return addLeadingZeros(localDayOfWeek, token.length);
973
+ // 1st, 2nd, ..., 7th
974
+
975
+ case 'co':
976
+ return localize.ordinalNumber(localDayOfWeek, {
977
+ unit: 'day'
978
+ });
979
+
980
+ case 'ccc':
981
+ return localize.day(dayOfWeek, {
982
+ width: 'abbreviated',
983
+ context: 'standalone'
984
+ });
985
+ // T
986
+
987
+ case 'ccccc':
988
+ return localize.day(dayOfWeek, {
989
+ width: 'narrow',
990
+ context: 'standalone'
991
+ });
992
+ // Tu
993
+
994
+ case 'cccccc':
995
+ return localize.day(dayOfWeek, {
996
+ width: 'short',
997
+ context: 'standalone'
998
+ });
999
+ // Tuesday
1000
+
1001
+ case 'cccc':
1002
+ default:
1003
+ return localize.day(dayOfWeek, {
1004
+ width: 'wide',
1005
+ context: 'standalone'
1006
+ });
1007
+ }
1008
+ },
1009
+ // ISO day of week
1010
+ i: function i(date, token, localize) {
1011
+ var dayOfWeek = date.getUTCDay();
1012
+ var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
1013
+
1014
+ switch (token) {
1015
+ // 2
1016
+ case 'i':
1017
+ return String(isoDayOfWeek);
1018
+ // 02
1019
+
1020
+ case 'ii':
1021
+ return addLeadingZeros(isoDayOfWeek, token.length);
1022
+ // 2nd
1023
+
1024
+ case 'io':
1025
+ return localize.ordinalNumber(isoDayOfWeek, {
1026
+ unit: 'day'
1027
+ });
1028
+ // Tue
1029
+
1030
+ case 'iii':
1031
+ return localize.day(dayOfWeek, {
1032
+ width: 'abbreviated',
1033
+ context: 'formatting'
1034
+ });
1035
+ // T
1036
+
1037
+ case 'iiiii':
1038
+ return localize.day(dayOfWeek, {
1039
+ width: 'narrow',
1040
+ context: 'formatting'
1041
+ });
1042
+ // Tu
1043
+
1044
+ case 'iiiiii':
1045
+ return localize.day(dayOfWeek, {
1046
+ width: 'short',
1047
+ context: 'formatting'
1048
+ });
1049
+ // Tuesday
1050
+
1051
+ case 'iiii':
1052
+ default:
1053
+ return localize.day(dayOfWeek, {
1054
+ width: 'wide',
1055
+ context: 'formatting'
1056
+ });
1057
+ }
1058
+ },
1059
+ // AM or PM
1060
+ a: function a(date, token, localize) {
1061
+ var hours = date.getUTCHours();
1062
+ var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1063
+
1064
+ switch (token) {
1065
+ case 'a':
1066
+ case 'aa':
1067
+ return localize.dayPeriod(dayPeriodEnumValue, {
1068
+ width: 'abbreviated',
1069
+ context: 'formatting'
1070
+ });
1071
+
1072
+ case 'aaa':
1073
+ return localize.dayPeriod(dayPeriodEnumValue, {
1074
+ width: 'abbreviated',
1075
+ context: 'formatting'
1076
+ }).toLowerCase();
1077
+
1078
+ case 'aaaaa':
1079
+ return localize.dayPeriod(dayPeriodEnumValue, {
1080
+ width: 'narrow',
1081
+ context: 'formatting'
1082
+ });
1083
+
1084
+ case 'aaaa':
1085
+ default:
1086
+ return localize.dayPeriod(dayPeriodEnumValue, {
1087
+ width: 'wide',
1088
+ context: 'formatting'
1089
+ });
1090
+ }
1091
+ },
1092
+ // AM, PM, midnight, noon
1093
+ b: function b(date, token, localize) {
1094
+ var hours = date.getUTCHours();
1095
+ var dayPeriodEnumValue;
1096
+
1097
+ if (hours === 12) {
1098
+ dayPeriodEnumValue = dayPeriodEnum.noon;
1099
+ } else if (hours === 0) {
1100
+ dayPeriodEnumValue = dayPeriodEnum.midnight;
1101
+ } else {
1102
+ dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1103
+ }
1104
+
1105
+ switch (token) {
1106
+ case 'b':
1107
+ case 'bb':
1108
+ return localize.dayPeriod(dayPeriodEnumValue, {
1109
+ width: 'abbreviated',
1110
+ context: 'formatting'
1111
+ });
1112
+
1113
+ case 'bbb':
1114
+ return localize.dayPeriod(dayPeriodEnumValue, {
1115
+ width: 'abbreviated',
1116
+ context: 'formatting'
1117
+ }).toLowerCase();
1118
+
1119
+ case 'bbbbb':
1120
+ return localize.dayPeriod(dayPeriodEnumValue, {
1121
+ width: 'narrow',
1122
+ context: 'formatting'
1123
+ });
1124
+
1125
+ case 'bbbb':
1126
+ default:
1127
+ return localize.dayPeriod(dayPeriodEnumValue, {
1128
+ width: 'wide',
1129
+ context: 'formatting'
1130
+ });
1131
+ }
1132
+ },
1133
+ // in the morning, in the afternoon, in the evening, at night
1134
+ B: function B(date, token, localize) {
1135
+ var hours = date.getUTCHours();
1136
+ var dayPeriodEnumValue;
1137
+
1138
+ if (hours >= 17) {
1139
+ dayPeriodEnumValue = dayPeriodEnum.evening;
1140
+ } else if (hours >= 12) {
1141
+ dayPeriodEnumValue = dayPeriodEnum.afternoon;
1142
+ } else if (hours >= 4) {
1143
+ dayPeriodEnumValue = dayPeriodEnum.morning;
1144
+ } else {
1145
+ dayPeriodEnumValue = dayPeriodEnum.night;
1146
+ }
1147
+
1148
+ switch (token) {
1149
+ case 'B':
1150
+ case 'BB':
1151
+ case 'BBB':
1152
+ return localize.dayPeriod(dayPeriodEnumValue, {
1153
+ width: 'abbreviated',
1154
+ context: 'formatting'
1155
+ });
1156
+
1157
+ case 'BBBBB':
1158
+ return localize.dayPeriod(dayPeriodEnumValue, {
1159
+ width: 'narrow',
1160
+ context: 'formatting'
1161
+ });
1162
+
1163
+ case 'BBBB':
1164
+ default:
1165
+ return localize.dayPeriod(dayPeriodEnumValue, {
1166
+ width: 'wide',
1167
+ context: 'formatting'
1168
+ });
1169
+ }
1170
+ },
1171
+ // Hour [1-12]
1172
+ h: function h(date, token, localize) {
1173
+ if (token === 'ho') {
1174
+ var hours = date.getUTCHours() % 12;
1175
+ if (hours === 0) hours = 12;
1176
+ return localize.ordinalNumber(hours, {
1177
+ unit: 'hour'
1178
+ });
1179
+ }
1180
+
1181
+ return formatters$1.h(date, token);
1182
+ },
1183
+ // Hour [0-23]
1184
+ H: function H(date, token, localize) {
1185
+ if (token === 'Ho') {
1186
+ return localize.ordinalNumber(date.getUTCHours(), {
1187
+ unit: 'hour'
1188
+ });
1189
+ }
1190
+
1191
+ return formatters$1.H(date, token);
1192
+ },
1193
+ // Hour [0-11]
1194
+ K: function K(date, token, localize) {
1195
+ var hours = date.getUTCHours() % 12;
1196
+
1197
+ if (token === 'Ko') {
1198
+ return localize.ordinalNumber(hours, {
1199
+ unit: 'hour'
1200
+ });
1201
+ }
1202
+
1203
+ return addLeadingZeros(hours, token.length);
1204
+ },
1205
+ // Hour [1-24]
1206
+ k: function k(date, token, localize) {
1207
+ var hours = date.getUTCHours();
1208
+ if (hours === 0) hours = 24;
1209
+
1210
+ if (token === 'ko') {
1211
+ return localize.ordinalNumber(hours, {
1212
+ unit: 'hour'
1213
+ });
1214
+ }
1215
+
1216
+ return addLeadingZeros(hours, token.length);
1217
+ },
1218
+ // Minute
1219
+ m: function m(date, token, localize) {
1220
+ if (token === 'mo') {
1221
+ return localize.ordinalNumber(date.getUTCMinutes(), {
1222
+ unit: 'minute'
1223
+ });
1224
+ }
1225
+
1226
+ return formatters$1.m(date, token);
1227
+ },
1228
+ // Second
1229
+ s: function s(date, token, localize) {
1230
+ if (token === 'so') {
1231
+ return localize.ordinalNumber(date.getUTCSeconds(), {
1232
+ unit: 'second'
1233
+ });
1234
+ }
1235
+
1236
+ return formatters$1.s(date, token);
1237
+ },
1238
+ // Fraction of second
1239
+ S: function S(date, token) {
1240
+ return formatters$1.S(date, token);
1241
+ },
1242
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1243
+ X: function X(date, token, _localize, options) {
1244
+ var originalDate = options._originalDate || date;
1245
+ var timezoneOffset = originalDate.getTimezoneOffset();
1246
+
1247
+ if (timezoneOffset === 0) {
1248
+ return 'Z';
1249
+ }
1250
+
1251
+ switch (token) {
1252
+ // Hours and optional minutes
1253
+ case 'X':
1254
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
1255
+ // Hours, minutes and optional seconds without `:` delimiter
1256
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1257
+ // so this token always has the same output as `XX`
1258
+
1259
+ case 'XXXX':
1260
+ case 'XX':
1261
+ // Hours and minutes without `:` delimiter
1262
+ return formatTimezone(timezoneOffset);
1263
+ // Hours, minutes and optional seconds with `:` delimiter
1264
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1265
+ // so this token always has the same output as `XXX`
1266
+
1267
+ case 'XXXXX':
1268
+ case 'XXX': // Hours and minutes with `:` delimiter
1269
+
1270
+ default:
1271
+ return formatTimezone(timezoneOffset, ':');
1272
+ }
1273
+ },
1274
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1275
+ x: function x(date, token, _localize, options) {
1276
+ var originalDate = options._originalDate || date;
1277
+ var timezoneOffset = originalDate.getTimezoneOffset();
1278
+
1279
+ switch (token) {
1280
+ // Hours and optional minutes
1281
+ case 'x':
1282
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
1283
+ // Hours, minutes and optional seconds without `:` delimiter
1284
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1285
+ // so this token always has the same output as `xx`
1286
+
1287
+ case 'xxxx':
1288
+ case 'xx':
1289
+ // Hours and minutes without `:` delimiter
1290
+ return formatTimezone(timezoneOffset);
1291
+ // Hours, minutes and optional seconds with `:` delimiter
1292
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1293
+ // so this token always has the same output as `xxx`
1294
+
1295
+ case 'xxxxx':
1296
+ case 'xxx': // Hours and minutes with `:` delimiter
1297
+
1298
+ default:
1299
+ return formatTimezone(timezoneOffset, ':');
1300
+ }
1301
+ },
1302
+ // Timezone (GMT)
1303
+ O: function O(date, token, _localize, options) {
1304
+ var originalDate = options._originalDate || date;
1305
+ var timezoneOffset = originalDate.getTimezoneOffset();
1306
+
1307
+ switch (token) {
1308
+ // Short
1309
+ case 'O':
1310
+ case 'OO':
1311
+ case 'OOO':
1312
+ return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1313
+ // Long
1314
+
1315
+ case 'OOOO':
1316
+ default:
1317
+ return 'GMT' + formatTimezone(timezoneOffset, ':');
1318
+ }
1319
+ },
1320
+ // Timezone (specific non-location)
1321
+ z: function z(date, token, _localize, options) {
1322
+ var originalDate = options._originalDate || date;
1323
+ var timezoneOffset = originalDate.getTimezoneOffset();
1324
+
1325
+ switch (token) {
1326
+ // Short
1327
+ case 'z':
1328
+ case 'zz':
1329
+ case 'zzz':
1330
+ return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1331
+ // Long
1332
+
1333
+ case 'zzzz':
1334
+ default:
1335
+ return 'GMT' + formatTimezone(timezoneOffset, ':');
1336
+ }
1337
+ },
1338
+ // Seconds timestamp
1339
+ t: function t(date, token, _localize, options) {
1340
+ var originalDate = options._originalDate || date;
1341
+ var timestamp = Math.floor(originalDate.getTime() / 1000);
1342
+ return addLeadingZeros(timestamp, token.length);
1343
+ },
1344
+ // Milliseconds timestamp
1345
+ T: function T(date, token, _localize, options) {
1346
+ var originalDate = options._originalDate || date;
1347
+ var timestamp = originalDate.getTime();
1348
+ return addLeadingZeros(timestamp, token.length);
1349
+ }
1350
+ };
1351
+
1352
+ function formatTimezoneShort(offset, dirtyDelimiter) {
1353
+ var sign = offset > 0 ? '-' : '+';
1354
+ var absOffset = Math.abs(offset);
1355
+ var hours = Math.floor(absOffset / 60);
1356
+ var minutes = absOffset % 60;
1357
+
1358
+ if (minutes === 0) {
1359
+ return sign + String(hours);
1360
+ }
1361
+
1362
+ var delimiter = dirtyDelimiter || '';
1363
+ return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
1364
+ }
1365
+
1366
+ function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
1367
+ if (offset % 60 === 0) {
1368
+ var sign = offset > 0 ? '-' : '+';
1369
+ return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
1370
+ }
1371
+
1372
+ return formatTimezone(offset, dirtyDelimiter);
1373
+ }
1374
+
1375
+ function formatTimezone(offset, dirtyDelimiter) {
1376
+ var delimiter = dirtyDelimiter || '';
1377
+ var sign = offset > 0 ? '-' : '+';
1378
+ var absOffset = Math.abs(offset);
1379
+ var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
1380
+ var minutes = addLeadingZeros(absOffset % 60, 2);
1381
+ return sign + hours + delimiter + minutes;
1382
+ }
1383
+
1384
+ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
1385
+ switch (pattern) {
1386
+ case 'P':
1387
+ return formatLong.date({
1388
+ width: 'short'
1389
+ });
1390
+
1391
+ case 'PP':
1392
+ return formatLong.date({
1393
+ width: 'medium'
1394
+ });
1395
+
1396
+ case 'PPP':
1397
+ return formatLong.date({
1398
+ width: 'long'
1399
+ });
1400
+
1401
+ case 'PPPP':
1402
+ default:
1403
+ return formatLong.date({
1404
+ width: 'full'
1405
+ });
1406
+ }
1407
+ };
1408
+
1409
+ var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
1410
+ switch (pattern) {
1411
+ case 'p':
1412
+ return formatLong.time({
1413
+ width: 'short'
1414
+ });
1415
+
1416
+ case 'pp':
1417
+ return formatLong.time({
1418
+ width: 'medium'
1419
+ });
1420
+
1421
+ case 'ppp':
1422
+ return formatLong.time({
1423
+ width: 'long'
1424
+ });
1425
+
1426
+ case 'pppp':
1427
+ default:
1428
+ return formatLong.time({
1429
+ width: 'full'
1430
+ });
1431
+ }
1432
+ };
1433
+
1434
+ var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
1435
+ var matchResult = pattern.match(/(P+)(p+)?/) || [];
1436
+ var datePattern = matchResult[1];
1437
+ var timePattern = matchResult[2];
1438
+
1439
+ if (!timePattern) {
1440
+ return dateLongFormatter(pattern, formatLong);
1441
+ }
1442
+
1443
+ var dateTimeFormat;
1444
+
1445
+ switch (datePattern) {
1446
+ case 'P':
1447
+ dateTimeFormat = formatLong.dateTime({
1448
+ width: 'short'
1449
+ });
1450
+ break;
1451
+
1452
+ case 'PP':
1453
+ dateTimeFormat = formatLong.dateTime({
1454
+ width: 'medium'
1455
+ });
1456
+ break;
1457
+
1458
+ case 'PPP':
1459
+ dateTimeFormat = formatLong.dateTime({
1460
+ width: 'long'
1461
+ });
1462
+ break;
1463
+
1464
+ case 'PPPP':
1465
+ default:
1466
+ dateTimeFormat = formatLong.dateTime({
1467
+ width: 'full'
1468
+ });
1469
+ break;
1470
+ }
1471
+
1472
+ return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
1473
+ };
1474
+
1475
+ var longFormatters = {
1476
+ p: timeLongFormatter,
1477
+ P: dateTimeLongFormatter
1478
+ };
1479
+
1480
+ var protectedDayOfYearTokens = ['D', 'DD'];
1481
+ var protectedWeekYearTokens = ['YY', 'YYYY'];
1482
+ function isProtectedDayOfYearToken(token) {
1483
+ return protectedDayOfYearTokens.indexOf(token) !== -1;
1484
+ }
1485
+ function isProtectedWeekYearToken(token) {
1486
+ return protectedWeekYearTokens.indexOf(token) !== -1;
1487
+ }
1488
+ function throwProtectedError(token, format, input) {
1489
+ if (token === 'YYYY') {
1490
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1491
+ } else if (token === 'YY') {
1492
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1493
+ } else if (token === 'D') {
1494
+ throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1495
+ } else if (token === 'DD') {
1496
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1497
+ }
1498
+ }
1499
+
1500
+ var formatDistanceLocale = {
1501
+ lessThanXSeconds: {
1502
+ one: 'less than a second',
1503
+ other: 'less than {{count}} seconds'
1504
+ },
1505
+ xSeconds: {
1506
+ one: '1 second',
1507
+ other: '{{count}} seconds'
1508
+ },
1509
+ halfAMinute: 'half a minute',
1510
+ lessThanXMinutes: {
1511
+ one: 'less than a minute',
1512
+ other: 'less than {{count}} minutes'
1513
+ },
1514
+ xMinutes: {
1515
+ one: '1 minute',
1516
+ other: '{{count}} minutes'
1517
+ },
1518
+ aboutXHours: {
1519
+ one: 'about 1 hour',
1520
+ other: 'about {{count}} hours'
1521
+ },
1522
+ xHours: {
1523
+ one: '1 hour',
1524
+ other: '{{count}} hours'
1525
+ },
1526
+ xDays: {
1527
+ one: '1 day',
1528
+ other: '{{count}} days'
1529
+ },
1530
+ aboutXWeeks: {
1531
+ one: 'about 1 week',
1532
+ other: 'about {{count}} weeks'
1533
+ },
1534
+ xWeeks: {
1535
+ one: '1 week',
1536
+ other: '{{count}} weeks'
1537
+ },
1538
+ aboutXMonths: {
1539
+ one: 'about 1 month',
1540
+ other: 'about {{count}} months'
1541
+ },
1542
+ xMonths: {
1543
+ one: '1 month',
1544
+ other: '{{count}} months'
1545
+ },
1546
+ aboutXYears: {
1547
+ one: 'about 1 year',
1548
+ other: 'about {{count}} years'
1549
+ },
1550
+ xYears: {
1551
+ one: '1 year',
1552
+ other: '{{count}} years'
1553
+ },
1554
+ overXYears: {
1555
+ one: 'over 1 year',
1556
+ other: 'over {{count}} years'
1557
+ },
1558
+ almostXYears: {
1559
+ one: 'almost 1 year',
1560
+ other: 'almost {{count}} years'
1561
+ }
1562
+ };
1563
+
1564
+ var formatDistance = function formatDistance(token, count, options) {
1565
+ var result;
1566
+ var tokenValue = formatDistanceLocale[token];
1567
+
1568
+ if (typeof tokenValue === 'string') {
1569
+ result = tokenValue;
1570
+ } else if (count === 1) {
1571
+ result = tokenValue.one;
1572
+ } else {
1573
+ result = tokenValue.other.replace('{{count}}', count.toString());
1574
+ }
1575
+
1576
+ if (options !== null && options !== void 0 && options.addSuffix) {
1577
+ if (options.comparison && options.comparison > 0) {
1578
+ return 'in ' + result;
1579
+ } else {
1580
+ return result + ' ago';
1581
+ }
1582
+ }
1583
+
1584
+ return result;
1585
+ };
1586
+
1587
+ function buildFormatLongFn(args) {
1588
+ return function () {
1589
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1590
+ // TODO: Remove String()
1591
+ var width = options.width ? String(options.width) : args.defaultWidth;
1592
+ var format = args.formats[width] || args.formats[args.defaultWidth];
1593
+ return format;
1594
+ };
1595
+ }
1596
+
1597
+ var dateFormats = {
1598
+ full: 'EEEE, MMMM do, y',
1599
+ long: 'MMMM do, y',
1600
+ medium: 'MMM d, y',
1601
+ short: 'MM/dd/yyyy'
1602
+ };
1603
+ var timeFormats = {
1604
+ full: 'h:mm:ss a zzzz',
1605
+ long: 'h:mm:ss a z',
1606
+ medium: 'h:mm:ss a',
1607
+ short: 'h:mm a'
1608
+ };
1609
+ var dateTimeFormats = {
1610
+ full: "{{date}} 'at' {{time}}",
1611
+ long: "{{date}} 'at' {{time}}",
1612
+ medium: '{{date}}, {{time}}',
1613
+ short: '{{date}}, {{time}}'
1614
+ };
1615
+ var formatLong = {
1616
+ date: buildFormatLongFn({
1617
+ formats: dateFormats,
1618
+ defaultWidth: 'full'
1619
+ }),
1620
+ time: buildFormatLongFn({
1621
+ formats: timeFormats,
1622
+ defaultWidth: 'full'
1623
+ }),
1624
+ dateTime: buildFormatLongFn({
1625
+ formats: dateTimeFormats,
1626
+ defaultWidth: 'full'
1627
+ })
1628
+ };
1629
+
1630
+ var formatRelativeLocale = {
1631
+ lastWeek: "'last' eeee 'at' p",
1632
+ yesterday: "'yesterday at' p",
1633
+ today: "'today at' p",
1634
+ tomorrow: "'tomorrow at' p",
1635
+ nextWeek: "eeee 'at' p",
1636
+ other: 'P'
1637
+ };
1638
+
1639
+ var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
1640
+ return formatRelativeLocale[token];
1641
+ };
1642
+
1643
+ function buildLocalizeFn(args) {
1644
+ return function (dirtyIndex, options) {
1645
+ var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
1646
+ var valuesArray;
1647
+
1648
+ if (context === 'formatting' && args.formattingValues) {
1649
+ var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
1650
+ var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
1651
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
1652
+ } else {
1653
+ var _defaultWidth = args.defaultWidth;
1654
+
1655
+ var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
1656
+
1657
+ valuesArray = args.values[_width] || args.values[_defaultWidth];
1658
+ }
1659
+
1660
+ var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: 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!
1661
+
1662
+ return valuesArray[index];
1663
+ };
1664
+ }
1665
+
1666
+ var eraValues = {
1667
+ narrow: ['B', 'A'],
1668
+ abbreviated: ['BC', 'AD'],
1669
+ wide: ['Before Christ', 'Anno Domini']
1670
+ };
1671
+ var quarterValues = {
1672
+ narrow: ['1', '2', '3', '4'],
1673
+ abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
1674
+ wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
1675
+ }; // Note: in English, the names of days of the week and months are capitalized.
1676
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
1677
+ // Generally, formatted dates should look like they are in the middle of a sentence,
1678
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
1679
+
1680
+ var monthValues = {
1681
+ narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
1682
+ abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
1683
+ wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
1684
+ };
1685
+ var dayValues = {
1686
+ narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
1687
+ short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
1688
+ abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
1689
+ wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
1690
+ };
1691
+ var dayPeriodValues = {
1692
+ narrow: {
1693
+ am: 'a',
1694
+ pm: 'p',
1695
+ midnight: 'mi',
1696
+ noon: 'n',
1697
+ morning: 'morning',
1698
+ afternoon: 'afternoon',
1699
+ evening: 'evening',
1700
+ night: 'night'
1701
+ },
1702
+ abbreviated: {
1703
+ am: 'AM',
1704
+ pm: 'PM',
1705
+ midnight: 'midnight',
1706
+ noon: 'noon',
1707
+ morning: 'morning',
1708
+ afternoon: 'afternoon',
1709
+ evening: 'evening',
1710
+ night: 'night'
1711
+ },
1712
+ wide: {
1713
+ am: 'a.m.',
1714
+ pm: 'p.m.',
1715
+ midnight: 'midnight',
1716
+ noon: 'noon',
1717
+ morning: 'morning',
1718
+ afternoon: 'afternoon',
1719
+ evening: 'evening',
1720
+ night: 'night'
1721
+ }
1722
+ };
1723
+ var formattingDayPeriodValues = {
1724
+ narrow: {
1725
+ am: 'a',
1726
+ pm: 'p',
1727
+ midnight: 'mi',
1728
+ noon: 'n',
1729
+ morning: 'in the morning',
1730
+ afternoon: 'in the afternoon',
1731
+ evening: 'in the evening',
1732
+ night: 'at night'
1733
+ },
1734
+ abbreviated: {
1735
+ am: 'AM',
1736
+ pm: 'PM',
1737
+ midnight: 'midnight',
1738
+ noon: 'noon',
1739
+ morning: 'in the morning',
1740
+ afternoon: 'in the afternoon',
1741
+ evening: 'in the evening',
1742
+ night: 'at night'
1743
+ },
1744
+ wide: {
1745
+ am: 'a.m.',
1746
+ pm: 'p.m.',
1747
+ midnight: 'midnight',
1748
+ noon: 'noon',
1749
+ morning: 'in the morning',
1750
+ afternoon: 'in the afternoon',
1751
+ evening: 'in the evening',
1752
+ night: 'at night'
1753
+ }
1754
+ };
1755
+
1756
+ var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
1757
+ var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
1758
+ // if they are different for different grammatical genders,
1759
+ // use `options.unit`.
1760
+ //
1761
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
1762
+ // 'day', 'hour', 'minute', 'second'.
1763
+
1764
+ var rem100 = number % 100;
1765
+
1766
+ if (rem100 > 20 || rem100 < 10) {
1767
+ switch (rem100 % 10) {
1768
+ case 1:
1769
+ return number + 'st';
1770
+
1771
+ case 2:
1772
+ return number + 'nd';
1773
+
1774
+ case 3:
1775
+ return number + 'rd';
1776
+ }
1777
+ }
1778
+
1779
+ return number + 'th';
1780
+ };
1781
+
1782
+ var localize = {
1783
+ ordinalNumber: ordinalNumber,
1784
+ era: buildLocalizeFn({
1785
+ values: eraValues,
1786
+ defaultWidth: 'wide'
1787
+ }),
1788
+ quarter: buildLocalizeFn({
1789
+ values: quarterValues,
1790
+ defaultWidth: 'wide',
1791
+ argumentCallback: function argumentCallback(quarter) {
1792
+ return quarter - 1;
1793
+ }
1794
+ }),
1795
+ month: buildLocalizeFn({
1796
+ values: monthValues,
1797
+ defaultWidth: 'wide'
1798
+ }),
1799
+ day: buildLocalizeFn({
1800
+ values: dayValues,
1801
+ defaultWidth: 'wide'
1802
+ }),
1803
+ dayPeriod: buildLocalizeFn({
1804
+ values: dayPeriodValues,
1805
+ defaultWidth: 'wide',
1806
+ formattingValues: formattingDayPeriodValues,
1807
+ defaultFormattingWidth: 'wide'
1808
+ })
1809
+ };
1810
+
1811
+ function buildMatchFn(args) {
1812
+ return function (string) {
1813
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1814
+ var width = options.width;
1815
+ var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
1816
+ var matchResult = string.match(matchPattern);
1817
+
1818
+ if (!matchResult) {
1819
+ return null;
1820
+ }
1821
+
1822
+ var matchedString = matchResult[0];
1823
+ var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
1824
+ var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
1825
+ return pattern.test(matchedString);
1826
+ }) : findKey(parsePatterns, function (pattern) {
1827
+ return pattern.test(matchedString);
1828
+ });
1829
+ var value;
1830
+ value = args.valueCallback ? args.valueCallback(key) : key;
1831
+ value = options.valueCallback ? options.valueCallback(value) : value;
1832
+ var rest = string.slice(matchedString.length);
1833
+ return {
1834
+ value: value,
1835
+ rest: rest
1836
+ };
1837
+ };
1838
+ }
1839
+
1840
+ function findKey(object, predicate) {
1841
+ for (var key in object) {
1842
+ if (object.hasOwnProperty(key) && predicate(object[key])) {
1843
+ return key;
1844
+ }
1845
+ }
1846
+
1847
+ return undefined;
1848
+ }
1849
+
1850
+ function findIndex(array, predicate) {
1851
+ for (var key = 0; key < array.length; key++) {
1852
+ if (predicate(array[key])) {
1853
+ return key;
1854
+ }
1855
+ }
1856
+
1857
+ return undefined;
1858
+ }
1859
+
1860
+ function buildMatchPatternFn(args) {
1861
+ return function (string) {
1862
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1863
+ var matchResult = string.match(args.matchPattern);
1864
+ if (!matchResult) return null;
1865
+ var matchedString = matchResult[0];
1866
+ var parseResult = string.match(args.parsePattern);
1867
+ if (!parseResult) return null;
1868
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
1869
+ value = options.valueCallback ? options.valueCallback(value) : value;
1870
+ var rest = string.slice(matchedString.length);
1871
+ return {
1872
+ value: value,
1873
+ rest: rest
1874
+ };
1875
+ };
1876
+ }
1877
+
1878
+ var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
1879
+ var parseOrdinalNumberPattern = /\d+/i;
1880
+ var matchEraPatterns = {
1881
+ narrow: /^(b|a)/i,
1882
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1883
+ wide: /^(before christ|before common era|anno domini|common era)/i
1884
+ };
1885
+ var parseEraPatterns = {
1886
+ any: [/^b/i, /^(a|c)/i]
1887
+ };
1888
+ var matchQuarterPatterns = {
1889
+ narrow: /^[1234]/i,
1890
+ abbreviated: /^q[1234]/i,
1891
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1892
+ };
1893
+ var parseQuarterPatterns = {
1894
+ any: [/1/i, /2/i, /3/i, /4/i]
1895
+ };
1896
+ var matchMonthPatterns = {
1897
+ narrow: /^[jfmasond]/i,
1898
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1899
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1900
+ };
1901
+ var parseMonthPatterns = {
1902
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1903
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1904
+ };
1905
+ var matchDayPatterns = {
1906
+ narrow: /^[smtwf]/i,
1907
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1908
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1909
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1910
+ };
1911
+ var parseDayPatterns = {
1912
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1913
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1914
+ };
1915
+ var matchDayPeriodPatterns = {
1916
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1917
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1918
+ };
1919
+ var parseDayPeriodPatterns = {
1920
+ any: {
1921
+ am: /^a/i,
1922
+ pm: /^p/i,
1923
+ midnight: /^mi/i,
1924
+ noon: /^no/i,
1925
+ morning: /morning/i,
1926
+ afternoon: /afternoon/i,
1927
+ evening: /evening/i,
1928
+ night: /night/i
1929
+ }
1930
+ };
1931
+ var match = {
1932
+ ordinalNumber: buildMatchPatternFn({
1933
+ matchPattern: matchOrdinalNumberPattern,
1934
+ parsePattern: parseOrdinalNumberPattern,
1935
+ valueCallback: function valueCallback(value) {
1936
+ return parseInt(value, 10);
1937
+ }
1938
+ }),
1939
+ era: buildMatchFn({
1940
+ matchPatterns: matchEraPatterns,
1941
+ defaultMatchWidth: 'wide',
1942
+ parsePatterns: parseEraPatterns,
1943
+ defaultParseWidth: 'any'
1944
+ }),
1945
+ quarter: buildMatchFn({
1946
+ matchPatterns: matchQuarterPatterns,
1947
+ defaultMatchWidth: 'wide',
1948
+ parsePatterns: parseQuarterPatterns,
1949
+ defaultParseWidth: 'any',
1950
+ valueCallback: function valueCallback(index) {
1951
+ return index + 1;
1952
+ }
1953
+ }),
1954
+ month: buildMatchFn({
1955
+ matchPatterns: matchMonthPatterns,
1956
+ defaultMatchWidth: 'wide',
1957
+ parsePatterns: parseMonthPatterns,
1958
+ defaultParseWidth: 'any'
1959
+ }),
1960
+ day: buildMatchFn({
1961
+ matchPatterns: matchDayPatterns,
1962
+ defaultMatchWidth: 'wide',
1963
+ parsePatterns: parseDayPatterns,
1964
+ defaultParseWidth: 'any'
1965
+ }),
1966
+ dayPeriod: buildMatchFn({
1967
+ matchPatterns: matchDayPeriodPatterns,
1968
+ defaultMatchWidth: 'any',
1969
+ parsePatterns: parseDayPeriodPatterns,
1970
+ defaultParseWidth: 'any'
1971
+ })
1972
+ };
1973
+
1974
+ /**
1975
+ * @type {Locale}
1976
+ * @category Locales
1977
+ * @summary English locale (United States).
1978
+ * @language English
1979
+ * @iso-639-2 eng
1980
+ * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
1981
+ * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
1982
+ */
1983
+ var locale = {
1984
+ code: 'en-US',
1985
+ formatDistance: formatDistance,
1986
+ formatLong: formatLong,
1987
+ formatRelative: formatRelative,
1988
+ localize: localize,
1989
+ match: match,
1990
+ options: {
1991
+ weekStartsOn: 0
1992
+ /* Sunday */
1993
+ ,
1994
+ firstWeekContainsDate: 1
1995
+ }
1996
+ };
1997
+
1998
+ // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1999
+ // (one of the certain letters followed by `o`)
2000
+ // - (\w)\1* matches any sequences of the same letter
2001
+ // - '' matches two quote characters in a row
2002
+ // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
2003
+ // except a single quote symbol, which ends the sequence.
2004
+ // Two quote characters do not end the sequence.
2005
+ // If there is no matching single quote
2006
+ // then the sequence will continue until the end of the string.
2007
+ // - . matches any single character unmatched by previous parts of the RegExps
2008
+
2009
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
2010
+ // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
2011
+
2012
+ var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
2013
+ var escapedStringRegExp = /^'([^]*?)'?$/;
2014
+ var doubleQuoteRegExp = /''/g;
2015
+ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
2016
+ /**
2017
+ * @name format
2018
+ * @category Common Helpers
2019
+ * @summary Format the date.
2020
+ *
2021
+ * @description
2022
+ * Return the formatted date string in the given format. The result may vary by locale.
2023
+ *
2024
+ * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
2025
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2026
+ *
2027
+ * The characters wrapped between two single quotes characters (') are escaped.
2028
+ * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
2029
+ * (see the last example)
2030
+ *
2031
+ * Format of the string is based on Unicode Technical Standard #35:
2032
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
2033
+ * with a few additions (see note 7 below the table).
2034
+ *
2035
+ * Accepted patterns:
2036
+ * | Unit | Pattern | Result examples | Notes |
2037
+ * |---------------------------------|---------|-----------------------------------|-------|
2038
+ * | Era | G..GGG | AD, BC | |
2039
+ * | | GGGG | Anno Domini, Before Christ | 2 |
2040
+ * | | GGGGG | A, B | |
2041
+ * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
2042
+ * | | yo | 44th, 1st, 0th, 17th | 5,7 |
2043
+ * | | yy | 44, 01, 00, 17 | 5 |
2044
+ * | | yyy | 044, 001, 1900, 2017 | 5 |
2045
+ * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
2046
+ * | | yyyyy | ... | 3,5 |
2047
+ * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
2048
+ * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
2049
+ * | | YY | 44, 01, 00, 17 | 5,8 |
2050
+ * | | YYY | 044, 001, 1900, 2017 | 5 |
2051
+ * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
2052
+ * | | YYYYY | ... | 3,5 |
2053
+ * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
2054
+ * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
2055
+ * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
2056
+ * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
2057
+ * | | RRRRR | ... | 3,5,7 |
2058
+ * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
2059
+ * | | uu | -43, 01, 1900, 2017 | 5 |
2060
+ * | | uuu | -043, 001, 1900, 2017 | 5 |
2061
+ * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
2062
+ * | | uuuuu | ... | 3,5 |
2063
+ * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
2064
+ * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
2065
+ * | | QQ | 01, 02, 03, 04 | |
2066
+ * | | QQQ | Q1, Q2, Q3, Q4 | |
2067
+ * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
2068
+ * | | QQQQQ | 1, 2, 3, 4 | 4 |
2069
+ * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
2070
+ * | | qo | 1st, 2nd, 3rd, 4th | 7 |
2071
+ * | | qq | 01, 02, 03, 04 | |
2072
+ * | | qqq | Q1, Q2, Q3, Q4 | |
2073
+ * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
2074
+ * | | qqqqq | 1, 2, 3, 4 | 4 |
2075
+ * | Month (formatting) | M | 1, 2, ..., 12 | |
2076
+ * | | Mo | 1st, 2nd, ..., 12th | 7 |
2077
+ * | | MM | 01, 02, ..., 12 | |
2078
+ * | | MMM | Jan, Feb, ..., Dec | |
2079
+ * | | MMMM | January, February, ..., December | 2 |
2080
+ * | | MMMMM | J, F, ..., D | |
2081
+ * | Month (stand-alone) | L | 1, 2, ..., 12 | |
2082
+ * | | Lo | 1st, 2nd, ..., 12th | 7 |
2083
+ * | | LL | 01, 02, ..., 12 | |
2084
+ * | | LLL | Jan, Feb, ..., Dec | |
2085
+ * | | LLLL | January, February, ..., December | 2 |
2086
+ * | | LLLLL | J, F, ..., D | |
2087
+ * | Local week of year | w | 1, 2, ..., 53 | |
2088
+ * | | wo | 1st, 2nd, ..., 53th | 7 |
2089
+ * | | ww | 01, 02, ..., 53 | |
2090
+ * | ISO week of year | I | 1, 2, ..., 53 | 7 |
2091
+ * | | Io | 1st, 2nd, ..., 53th | 7 |
2092
+ * | | II | 01, 02, ..., 53 | 7 |
2093
+ * | Day of month | d | 1, 2, ..., 31 | |
2094
+ * | | do | 1st, 2nd, ..., 31st | 7 |
2095
+ * | | dd | 01, 02, ..., 31 | |
2096
+ * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
2097
+ * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
2098
+ * | | DD | 01, 02, ..., 365, 366 | 9 |
2099
+ * | | DDD | 001, 002, ..., 365, 366 | |
2100
+ * | | DDDD | ... | 3 |
2101
+ * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
2102
+ * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
2103
+ * | | EEEEE | M, T, W, T, F, S, S | |
2104
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
2105
+ * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
2106
+ * | | io | 1st, 2nd, ..., 7th | 7 |
2107
+ * | | ii | 01, 02, ..., 07 | 7 |
2108
+ * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
2109
+ * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
2110
+ * | | iiiii | M, T, W, T, F, S, S | 7 |
2111
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
2112
+ * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
2113
+ * | | eo | 2nd, 3rd, ..., 1st | 7 |
2114
+ * | | ee | 02, 03, ..., 01 | |
2115
+ * | | eee | Mon, Tue, Wed, ..., Sun | |
2116
+ * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
2117
+ * | | eeeee | M, T, W, T, F, S, S | |
2118
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
2119
+ * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
2120
+ * | | co | 2nd, 3rd, ..., 1st | 7 |
2121
+ * | | cc | 02, 03, ..., 01 | |
2122
+ * | | ccc | Mon, Tue, Wed, ..., Sun | |
2123
+ * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
2124
+ * | | ccccc | M, T, W, T, F, S, S | |
2125
+ * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
2126
+ * | AM, PM | a..aa | AM, PM | |
2127
+ * | | aaa | am, pm | |
2128
+ * | | aaaa | a.m., p.m. | 2 |
2129
+ * | | aaaaa | a, p | |
2130
+ * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
2131
+ * | | bbb | am, pm, noon, midnight | |
2132
+ * | | bbbb | a.m., p.m., noon, midnight | 2 |
2133
+ * | | bbbbb | a, p, n, mi | |
2134
+ * | Flexible day period | B..BBB | at night, in the morning, ... | |
2135
+ * | | BBBB | at night, in the morning, ... | 2 |
2136
+ * | | BBBBB | at night, in the morning, ... | |
2137
+ * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
2138
+ * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
2139
+ * | | hh | 01, 02, ..., 11, 12 | |
2140
+ * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
2141
+ * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
2142
+ * | | HH | 00, 01, 02, ..., 23 | |
2143
+ * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
2144
+ * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
2145
+ * | | KK | 01, 02, ..., 11, 00 | |
2146
+ * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
2147
+ * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
2148
+ * | | kk | 24, 01, 02, ..., 23 | |
2149
+ * | Minute | m | 0, 1, ..., 59 | |
2150
+ * | | mo | 0th, 1st, ..., 59th | 7 |
2151
+ * | | mm | 00, 01, ..., 59 | |
2152
+ * | Second | s | 0, 1, ..., 59 | |
2153
+ * | | so | 0th, 1st, ..., 59th | 7 |
2154
+ * | | ss | 00, 01, ..., 59 | |
2155
+ * | Fraction of second | S | 0, 1, ..., 9 | |
2156
+ * | | SS | 00, 01, ..., 99 | |
2157
+ * | | SSS | 000, 001, ..., 999 | |
2158
+ * | | SSSS | ... | 3 |
2159
+ * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
2160
+ * | | XX | -0800, +0530, Z | |
2161
+ * | | XXX | -08:00, +05:30, Z | |
2162
+ * | | XXXX | -0800, +0530, Z, +123456 | 2 |
2163
+ * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
2164
+ * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
2165
+ * | | xx | -0800, +0530, +0000 | |
2166
+ * | | xxx | -08:00, +05:30, +00:00 | 2 |
2167
+ * | | xxxx | -0800, +0530, +0000, +123456 | |
2168
+ * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
2169
+ * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
2170
+ * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
2171
+ * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
2172
+ * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
2173
+ * | Seconds timestamp | t | 512969520 | 7 |
2174
+ * | | tt | ... | 3,7 |
2175
+ * | Milliseconds timestamp | T | 512969520900 | 7 |
2176
+ * | | TT | ... | 3,7 |
2177
+ * | Long localized date | P | 04/29/1453 | 7 |
2178
+ * | | PP | Apr 29, 1453 | 7 |
2179
+ * | | PPP | April 29th, 1453 | 7 |
2180
+ * | | PPPP | Friday, April 29th, 1453 | 2,7 |
2181
+ * | Long localized time | p | 12:00 AM | 7 |
2182
+ * | | pp | 12:00:00 AM | 7 |
2183
+ * | | ppp | 12:00:00 AM GMT+2 | 7 |
2184
+ * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
2185
+ * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
2186
+ * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
2187
+ * | | PPPppp | April 29th, 1453 at ... | 7 |
2188
+ * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
2189
+ * Notes:
2190
+ * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
2191
+ * are the same as "stand-alone" units, but are different in some languages.
2192
+ * "Formatting" units are declined according to the rules of the language
2193
+ * in the context of a date. "Stand-alone" units are always nominative singular:
2194
+ *
2195
+ * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
2196
+ *
2197
+ * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
2198
+ *
2199
+ * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
2200
+ * the single quote characters (see below).
2201
+ * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
2202
+ * the output will be the same as default pattern for this unit, usually
2203
+ * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
2204
+ * are marked with "2" in the last column of the table.
2205
+ *
2206
+ * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
2207
+ *
2208
+ * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
2209
+ *
2210
+ * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
2211
+ *
2212
+ * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
2213
+ *
2214
+ * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
2215
+ *
2216
+ * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
2217
+ * The output will be padded with zeros to match the length of the pattern.
2218
+ *
2219
+ * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
2220
+ *
2221
+ * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
2222
+ * These tokens represent the shortest form of the quarter.
2223
+ *
2224
+ * 5. The main difference between `y` and `u` patterns are B.C. years:
2225
+ *
2226
+ * | Year | `y` | `u` |
2227
+ * |------|-----|-----|
2228
+ * | AC 1 | 1 | 1 |
2229
+ * | BC 1 | 1 | 0 |
2230
+ * | BC 2 | 2 | -1 |
2231
+ *
2232
+ * Also `yy` always returns the last two digits of a year,
2233
+ * while `uu` pads single digit years to 2 characters and returns other years unchanged:
2234
+ *
2235
+ * | Year | `yy` | `uu` |
2236
+ * |------|------|------|
2237
+ * | 1 | 01 | 01 |
2238
+ * | 14 | 14 | 14 |
2239
+ * | 376 | 76 | 376 |
2240
+ * | 1453 | 53 | 1453 |
2241
+ *
2242
+ * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
2243
+ * except local week-numbering years are dependent on `options.weekStartsOn`
2244
+ * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}
2245
+ * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).
2246
+ *
2247
+ * 6. Specific non-location timezones are currently unavailable in `date-fns`,
2248
+ * so right now these tokens fall back to GMT timezones.
2249
+ *
2250
+ * 7. These patterns are not in the Unicode Technical Standard #35:
2251
+ * - `i`: ISO day of week
2252
+ * - `I`: ISO week of year
2253
+ * - `R`: ISO week-numbering year
2254
+ * - `t`: seconds timestamp
2255
+ * - `T`: milliseconds timestamp
2256
+ * - `o`: ordinal number modifier
2257
+ * - `P`: long localized date
2258
+ * - `p`: long localized time
2259
+ *
2260
+ * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
2261
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2262
+ *
2263
+ * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
2264
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2265
+ *
2266
+ * @param {Date|Number} date - the original date
2267
+ * @param {String} format - the string of tokens
2268
+ * @param {Object} [options] - an object with options.
2269
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
2270
+ * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
2271
+ * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
2272
+ * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
2273
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2274
+ * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
2275
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2276
+ * @returns {String} the formatted date string
2277
+ * @throws {TypeError} 2 arguments required
2278
+ * @throws {RangeError} `date` must not be Invalid Date
2279
+ * @throws {RangeError} `options.locale` must contain `localize` property
2280
+ * @throws {RangeError} `options.locale` must contain `formatLong` property
2281
+ * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
2282
+ * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
2283
+ * @throws {RangeError} 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
2284
+ * @throws {RangeError} 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
2285
+ * @throws {RangeError} 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
2286
+ * @throws {RangeError} 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
2287
+ * @throws {RangeError} format string contains an unescaped latin alphabet character
2288
+ *
2289
+ * @example
2290
+ * // Represent 11 February 2014 in middle-endian format:
2291
+ * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
2292
+ * //=> '02/11/2014'
2293
+ *
2294
+ * @example
2295
+ * // Represent 2 July 2014 in Esperanto:
2296
+ * import { eoLocale } from 'date-fns/locale/eo'
2297
+ * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
2298
+ * locale: eoLocale
2299
+ * })
2300
+ * //=> '2-a de julio 2014'
2301
+ *
2302
+ * @example
2303
+ * // Escape string by single quote characters:
2304
+ * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
2305
+ * //=> "3 o'clock"
2306
+ */
2307
+
2308
+ function format(dirtyDate, dirtyFormatStr, options) {
2309
+ var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
2310
+
2311
+ requiredArgs(2, arguments);
2312
+ var formatStr = String(dirtyFormatStr);
2313
+ var defaultOptions = getDefaultOptions();
2314
+ var locale$1 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : locale;
2315
+ var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2316
+
2317
+ if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2318
+ throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2319
+ }
2320
+
2321
+ var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2322
+
2323
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2324
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2325
+ }
2326
+
2327
+ if (!locale$1.localize) {
2328
+ throw new RangeError('locale must contain localize property');
2329
+ }
2330
+
2331
+ if (!locale$1.formatLong) {
2332
+ throw new RangeError('locale must contain formatLong property');
2333
+ }
2334
+
2335
+ var originalDate = toDate(dirtyDate);
2336
+
2337
+ if (!isValid(originalDate)) {
2338
+ throw new RangeError('Invalid time value');
2339
+ } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2340
+ // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2341
+ // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
2342
+
2343
+
2344
+ var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
2345
+ var utcDate = subMilliseconds(originalDate, timezoneOffset);
2346
+ var formatterOptions = {
2347
+ firstWeekContainsDate: firstWeekContainsDate,
2348
+ weekStartsOn: weekStartsOn,
2349
+ locale: locale$1,
2350
+ _originalDate: originalDate
2351
+ };
2352
+ var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
2353
+ var firstCharacter = substring[0];
2354
+
2355
+ if (firstCharacter === 'p' || firstCharacter === 'P') {
2356
+ var longFormatter = longFormatters[firstCharacter];
2357
+ return longFormatter(substring, locale$1.formatLong);
2358
+ }
2359
+
2360
+ return substring;
2361
+ }).join('').match(formattingTokensRegExp).map(function (substring) {
2362
+ // Replace two single quote characters with one single quote character
2363
+ if (substring === "''") {
2364
+ return "'";
2365
+ }
2366
+
2367
+ var firstCharacter = substring[0];
2368
+
2369
+ if (firstCharacter === "'") {
2370
+ return cleanEscapedString(substring);
2371
+ }
2372
+
2373
+ var formatter = formatters[firstCharacter];
2374
+
2375
+ if (formatter) {
2376
+ if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
2377
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2378
+ }
2379
+
2380
+ if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
2381
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2382
+ }
2383
+
2384
+ return formatter(utcDate, substring, locale$1.localize, formatterOptions);
2385
+ }
2386
+
2387
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2388
+ throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2389
+ }
2390
+
2391
+ return substring;
2392
+ }).join('');
2393
+ return result;
2394
+ }
2395
+
2396
+ function cleanEscapedString(input) {
2397
+ var matched = input.match(escapedStringRegExp);
2398
+
2399
+ if (!matched) {
2400
+ return input;
2401
+ }
2402
+
2403
+ return matched[1].replace(doubleQuoteRegExp, "'");
2404
+ }
2405
+
2406
+ /**
2407
+ * @name isAfter
2408
+ * @category Common Helpers
2409
+ * @summary Is the first date after the second one?
2410
+ *
2411
+ * @description
2412
+ * Is the first date after the second one?
2413
+ *
2414
+ * @param {Date|Number} date - the date that should be after the other one to return true
2415
+ * @param {Date|Number} dateToCompare - the date to compare with
2416
+ * @returns {Boolean} the first date is after the second date
2417
+ * @throws {TypeError} 2 arguments required
2418
+ *
2419
+ * @example
2420
+ * // Is 10 July 1989 after 11 February 1987?
2421
+ * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
2422
+ * //=> true
2423
+ */
2424
+
2425
+ function isAfter(dirtyDate, dirtyDateToCompare) {
2426
+ requiredArgs(2, arguments);
2427
+ var date = toDate(dirtyDate);
2428
+ var dateToCompare = toDate(dirtyDateToCompare);
2429
+ return date.getTime() > dateToCompare.getTime();
2430
+ }
2431
+
2432
+ /**
2433
+ * @name isBefore
2434
+ * @category Common Helpers
2435
+ * @summary Is the first date before the second one?
2436
+ *
2437
+ * @description
2438
+ * Is the first date before the second one?
2439
+ *
2440
+ * @param {Date|Number} date - the date that should be before the other one to return true
2441
+ * @param {Date|Number} dateToCompare - the date to compare with
2442
+ * @returns {Boolean} the first date is before the second date
2443
+ * @throws {TypeError} 2 arguments required
2444
+ *
2445
+ * @example
2446
+ * // Is 10 July 1989 before 11 February 1987?
2447
+ * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
2448
+ * //=> false
2449
+ */
2450
+
2451
+ function isBefore(dirtyDate, dirtyDateToCompare) {
2452
+ requiredArgs(2, arguments);
2453
+ var date = toDate(dirtyDate);
2454
+ var dateToCompare = toDate(dirtyDateToCompare);
2455
+ return date.getTime() < dateToCompare.getTime();
2456
+ }
2457
+
2458
+ export { startOfUTCISOWeek as a, getUTCWeek as b, toInteger as c, getUTCISOWeek as d, getDefaultOptions as e, subMilliseconds as f, getUTCWeekYear as g, getTimezoneOffsetInMilliseconds as h, locale as i, isProtectedWeekYearToken as j, throwProtectedError as k, longFormatters as l, isProtectedDayOfYearToken as m, format as n, isValid as o, isBefore as p, isAfter as q, requiredArgs as r, startOfUTCWeek as s, toDate as t, startOfDay as u, isSameDay as v };
2459
+
2460
+ //# sourceMappingURL=index-340e085c.js.map