prometeo-design-system 3.1.5 → 3.1.7

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 (465) hide show
  1. package/dist/Avatar.d.ts +4 -0
  2. package/dist/Avatar.es.js +94 -0
  3. package/dist/Button.d.ts +6 -0
  4. package/dist/Button.es.js +400 -0
  5. package/dist/CardProfile-y9Knsg26.js +280 -0
  6. package/dist/CardProfile.d.ts +6 -0
  7. package/dist/CardProfile.es.js +5 -0
  8. package/dist/CheckBox.d.ts +6 -0
  9. package/dist/CheckBox.es.js +112 -0
  10. package/dist/DatePicker-6eb-0Ns5.js +3733 -0
  11. package/dist/DatePicker.d.ts +6 -0
  12. package/dist/DatePicker.es.js +5 -0
  13. package/dist/DialogModal.d.ts +6 -0
  14. package/dist/DialogModal.es.js +75 -0
  15. package/dist/DrawerDesktop.d.ts +6 -0
  16. package/dist/DrawerDesktop.es.js +217 -0
  17. package/dist/DrawerMobile.d.ts +6 -0
  18. package/dist/DrawerMobile.es.js +243 -0
  19. package/dist/DropZone.d.ts +6 -0
  20. package/dist/DropZone.es.js +88 -0
  21. package/dist/FAButton.d.ts +4 -0
  22. package/dist/FAButton.es.js +111 -0
  23. package/dist/Header.d.ts +6 -0
  24. package/dist/Header.es.js +32 -0
  25. package/dist/HelperComponent-ljsn0xD6.js +26 -0
  26. package/dist/Icons/AccountCircle.d.ts +6 -0
  27. package/dist/Icons/AccountCircle.es.js +21 -0
  28. package/dist/Icons/Add.d.ts +6 -0
  29. package/dist/Icons/Add.es.js +19 -0
  30. package/dist/Icons/ArrowLeft.d.ts +6 -0
  31. package/dist/Icons/ArrowLeft.es.js +19 -0
  32. package/dist/Icons/ArrowUpDown.d.ts +6 -0
  33. package/dist/Icons/ArrowUpDown.es.js +21 -0
  34. package/dist/Icons/AttachFile.d.ts +6 -0
  35. package/dist/Icons/AttachFile.es.js +19 -0
  36. package/dist/Icons/Boards.d.ts +6 -0
  37. package/dist/Icons/Boards.es.js +19 -0
  38. package/dist/Icons/Calendar.d.ts +6 -0
  39. package/dist/Icons/Calendar.es.js +19 -0
  40. package/dist/Icons/Cancel.d.ts +6 -0
  41. package/dist/Icons/Cancel.es.js +19 -0
  42. package/dist/Icons/Check.d.ts +6 -0
  43. package/dist/Icons/Check.es.js +19 -0
  44. package/dist/Icons/CheckCircle.d.ts +6 -0
  45. package/dist/Icons/CheckCircle.es.js +21 -0
  46. package/dist/Icons/CheckList.d.ts +6 -0
  47. package/dist/Icons/CheckList.es.js +25 -0
  48. package/dist/Icons/ChevronDown.d.ts +6 -0
  49. package/dist/Icons/ChevronDown.es.js +21 -0
  50. package/dist/Icons/Clock.d.ts +6 -0
  51. package/dist/Icons/Clock.es.js +19 -0
  52. package/dist/Icons/Close.d.ts +6 -0
  53. package/dist/Icons/Close.es.js +19 -0
  54. package/dist/Icons/CloseNavBarDesktop.d.ts +6 -0
  55. package/dist/Icons/CloseNavBarDesktop.es.js +36 -0
  56. package/dist/Icons/Collapse.d.ts +6 -0
  57. package/dist/Icons/Collapse.es.js +19 -0
  58. package/dist/Icons/Company.d.ts +6 -0
  59. package/dist/Icons/Company.es.js +25 -0
  60. package/dist/Icons/Copy.d.ts +6 -0
  61. package/dist/Icons/Copy.es.js +19 -0
  62. package/dist/Icons/CrevronLeft.d.ts +6 -0
  63. package/dist/Icons/CrevronLeft.es.js +21 -0
  64. package/dist/Icons/CrevronRight.d.ts +6 -0
  65. package/dist/Icons/CrevronRight.es.js +21 -0
  66. package/dist/Icons/DocumentFill.d.ts +6 -0
  67. package/dist/Icons/DocumentFill.es.js +27 -0
  68. package/dist/Icons/Download.d.ts +6 -0
  69. package/dist/Icons/Download.es.js +25 -0
  70. package/dist/Icons/Edit.d.ts +6 -0
  71. package/dist/Icons/Edit.es.js +19 -0
  72. package/dist/Icons/EditFill.d.ts +6 -0
  73. package/dist/Icons/EditFill.es.js +25 -0
  74. package/dist/Icons/Email.d.ts +6 -0
  75. package/dist/Icons/Email.es.js +25 -0
  76. package/dist/Icons/Error.d.ts +6 -0
  77. package/dist/Icons/Error.es.js +19 -0
  78. package/dist/Icons/EyeVisibility.d.ts +6 -0
  79. package/dist/Icons/EyeVisibility.es.js +21 -0
  80. package/dist/Icons/EyeVisibilityOff.d.ts +6 -0
  81. package/dist/Icons/EyeVisibilityOff.es.js +21 -0
  82. package/dist/Icons/FaLock.d.ts +6 -0
  83. package/dist/Icons/FaLock.es.js +19 -0
  84. package/dist/Icons/FastForward.d.ts +6 -0
  85. package/dist/Icons/FastForward.es.js +27 -0
  86. package/dist/Icons/File.d.ts +6 -0
  87. package/dist/Icons/File.es.js +25 -0
  88. package/dist/Icons/Filter.d.ts +6 -0
  89. package/dist/Icons/Filter.es.js +19 -0
  90. package/dist/Icons/FormatColorText.d.ts +6 -0
  91. package/dist/Icons/FormatColorText.es.js +26 -0
  92. package/dist/Icons/Help.d.ts +6 -0
  93. package/dist/Icons/Help.es.js +19 -0
  94. package/dist/Icons/HistoryActivity.d.ts +6 -0
  95. package/dist/Icons/HistoryActivity.es.js +21 -0
  96. package/dist/Icons/Home.d.ts +6 -0
  97. package/dist/Icons/Home.es.js +19 -0
  98. package/dist/Icons/Image.d.ts +6 -0
  99. package/dist/Icons/Image.es.js +25 -0
  100. package/dist/Icons/Info.d.ts +6 -0
  101. package/dist/Icons/Info.es.js +19 -0
  102. package/dist/Icons/Logout.d.ts +6 -0
  103. package/dist/Icons/Logout.es.js +19 -0
  104. package/dist/Icons/MessageSquare.d.ts +6 -0
  105. package/dist/Icons/MessageSquare.es.js +21 -0
  106. package/dist/Icons/MessageSquareFill.d.ts +6 -0
  107. package/dist/Icons/MessageSquareFill.es.js +27 -0
  108. package/dist/Icons/MoreVert.d.ts +6 -0
  109. package/dist/Icons/MoreVert.es.js +19 -0
  110. package/dist/Icons/Notifications.d.ts +6 -0
  111. package/dist/Icons/Notifications.es.js +21 -0
  112. package/dist/Icons/Pause.d.ts +6 -0
  113. package/dist/Icons/Pause.es.js +19 -0
  114. package/dist/Icons/Reassignment.d.ts +6 -0
  115. package/dist/Icons/Reassignment.es.js +22 -0
  116. package/dist/Icons/ReassignmentFill.d.ts +6 -0
  117. package/dist/Icons/ReassignmentFill.es.js +52 -0
  118. package/dist/Icons/Reload.d.ts +6 -0
  119. package/dist/Icons/Reload.es.js +25 -0
  120. package/dist/Icons/Search.d.ts +6 -0
  121. package/dist/Icons/Search.es.js +19 -0
  122. package/dist/Icons/Send.d.ts +6 -0
  123. package/dist/Icons/Send.es.js +24 -0
  124. package/dist/Icons/Settings.d.ts +6 -0
  125. package/dist/Icons/Settings.es.js +19 -0
  126. package/dist/Icons/Shared.d.ts +6 -0
  127. package/dist/Icons/Shared.es.js +19 -0
  128. package/dist/Icons/Sort.d.ts +6 -0
  129. package/dist/Icons/Sort.es.js +19 -0
  130. package/dist/Icons/Stars.d.ts +6 -0
  131. package/dist/Icons/Stars.es.js +19 -0
  132. package/dist/Icons/Ticket.d.ts +6 -0
  133. package/dist/Icons/Ticket.es.js +19 -0
  134. package/dist/Icons/TicketFilled.d.ts +6 -0
  135. package/dist/Icons/TicketFilled.es.js +21 -0
  136. package/dist/Icons/Trash.d.ts +6 -0
  137. package/dist/Icons/Trash.es.js +19 -0
  138. package/dist/Icons/TrashFill.d.ts +6 -0
  139. package/dist/Icons/TrashFill.es.js +25 -0
  140. package/dist/Icons/Upload.d.ts +6 -0
  141. package/dist/Icons/Upload.es.js +19 -0
  142. package/dist/Icons/UploadCloud.d.ts +6 -0
  143. package/dist/Icons/UploadCloud.es.js +21 -0
  144. package/dist/Icons/UserAdd.d.ts +6 -0
  145. package/dist/Icons/UserAdd.es.js +19 -0
  146. package/dist/Icons/UserAddFill.d.ts +6 -0
  147. package/dist/Icons/UserAddFill.es.js +27 -0
  148. package/dist/Icons/UserPerson.d.ts +6 -0
  149. package/dist/Icons/UserPerson.es.js +19 -0
  150. package/dist/Icons/WhatsApp.d.ts +6 -0
  151. package/dist/Icons/WhatsApp.es.js +76 -0
  152. package/dist/Icons/components/AccountCircle.d.ts +4 -0
  153. package/dist/Icons/components/Add.d.ts +4 -0
  154. package/dist/Icons/components/ArrowLeft.d.ts +4 -0
  155. package/dist/Icons/components/ArrowUpDown.d.ts +4 -0
  156. package/dist/Icons/components/AttachFile.d.ts +4 -0
  157. package/dist/Icons/components/Boards.d.ts +4 -0
  158. package/dist/Icons/components/Calendar.d.ts +4 -0
  159. package/dist/Icons/components/Cancel.d.ts +4 -0
  160. package/dist/Icons/components/Check.d.ts +4 -0
  161. package/dist/Icons/components/CheckCircle.d.ts +4 -0
  162. package/dist/Icons/components/CheckList.d.ts +4 -0
  163. package/dist/Icons/components/ChevronDown.d.ts +4 -0
  164. package/dist/Icons/components/Clock.d.ts +4 -0
  165. package/dist/Icons/components/Close.d.ts +4 -0
  166. package/dist/Icons/components/CloseNavBarDesktop.d.ts +4 -0
  167. package/dist/Icons/components/Collapse.d.ts +4 -0
  168. package/dist/Icons/components/Company.d.ts +4 -0
  169. package/dist/Icons/components/Copy.d.ts +4 -0
  170. package/dist/Icons/components/CrevronLeft.d.ts +4 -0
  171. package/dist/Icons/components/CrevronRight.d.ts +4 -0
  172. package/dist/Icons/components/DocumentFill.d.ts +4 -0
  173. package/dist/Icons/components/Download.d.ts +4 -0
  174. package/dist/Icons/components/Edit.d.ts +4 -0
  175. package/dist/Icons/components/EditFill.d.ts +4 -0
  176. package/dist/Icons/components/Email.d.ts +4 -0
  177. package/dist/Icons/components/Error.d.ts +4 -0
  178. package/dist/Icons/components/EyeVisibility.d.ts +4 -0
  179. package/dist/Icons/components/EyeVisibilityOff.d.ts +4 -0
  180. package/dist/Icons/components/FaLock.d.ts +4 -0
  181. package/dist/Icons/components/FastForward.d.ts +4 -0
  182. package/dist/Icons/components/File.d.ts +4 -0
  183. package/dist/Icons/components/Filter.d.ts +4 -0
  184. package/dist/Icons/components/FormatColorText.d.ts +4 -0
  185. package/dist/Icons/components/Help.d.ts +4 -0
  186. package/dist/Icons/components/HistoryActivity.d.ts +4 -0
  187. package/dist/Icons/components/Home.d.ts +4 -0
  188. package/dist/Icons/components/Image.d.ts +4 -0
  189. package/dist/Icons/components/Info.d.ts +4 -0
  190. package/dist/Icons/components/Logout.d.ts +4 -0
  191. package/dist/Icons/components/MessageSquare.d.ts +4 -0
  192. package/dist/Icons/components/MessageSquareFill.d.ts +4 -0
  193. package/dist/Icons/components/MoreVert.d.ts +4 -0
  194. package/dist/Icons/components/Notifications.d.ts +4 -0
  195. package/dist/Icons/components/Pause.d.ts +4 -0
  196. package/dist/Icons/components/Reassignment.d.ts +4 -0
  197. package/dist/Icons/components/ReassignmentFill.d.ts +4 -0
  198. package/dist/Icons/components/Reload.d.ts +4 -0
  199. package/dist/Icons/components/Search.d.ts +4 -0
  200. package/dist/Icons/components/Send.d.ts +4 -0
  201. package/dist/Icons/components/Settings.d.ts +4 -0
  202. package/dist/Icons/components/Shared.d.ts +4 -0
  203. package/dist/Icons/components/Sort.d.ts +4 -0
  204. package/dist/Icons/components/Stars.d.ts +4 -0
  205. package/dist/Icons/components/Ticket.d.ts +4 -0
  206. package/dist/Icons/components/TicketFilled.d.ts +4 -0
  207. package/dist/Icons/components/Trash.d.ts +4 -0
  208. package/dist/Icons/components/TrashFill.d.ts +4 -0
  209. package/dist/Icons/components/Upload.d.ts +4 -0
  210. package/dist/Icons/components/UploadCloud.d.ts +4 -0
  211. package/dist/Icons/components/UserAdd.d.ts +4 -0
  212. package/dist/Icons/components/UserAddFill.d.ts +4 -0
  213. package/dist/Icons/components/UserPerson.d.ts +4 -0
  214. package/dist/Icons/components/WhatsApp.d.ts +4 -0
  215. package/dist/Icons/iconUtils.d.ts +7 -0
  216. package/dist/Icons/index.d.ts +65 -0
  217. package/dist/Icons/types.d.ts +130 -0
  218. package/dist/Icons.d.ts +2 -0
  219. package/dist/Icons.es.js +128 -0
  220. package/dist/Image.d.ts +4 -0
  221. package/dist/Image.es.js +91 -0
  222. package/dist/ImageGallery-DG9ovlQ-.js +319 -0
  223. package/dist/ImageGallery.d.ts +6 -0
  224. package/dist/ImageGallery.es.js +23 -0
  225. package/dist/Input.d.ts +6 -0
  226. package/dist/Input.es.js +220 -0
  227. package/dist/InputMultiple.d.ts +6 -0
  228. package/dist/InputMultiple.es.js +265 -0
  229. package/dist/LayoutGeneric-CfWhV1ov.js +26 -0
  230. package/dist/LayoutGeneric.d.ts +6 -0
  231. package/dist/LayoutGeneric.es.js +4 -0
  232. package/dist/Logo.d.ts +4 -0
  233. package/dist/Logo.es.js +9 -0
  234. package/dist/Menu.d.ts +6 -0
  235. package/dist/Menu.es.js +77 -0
  236. package/dist/NotificationCard.d.ts +6 -0
  237. package/dist/NotificationCard.es.js +50 -0
  238. package/dist/OtpInput.d.ts +6 -0
  239. package/dist/OtpInput.es.js +302 -0
  240. package/dist/Pagination.d.ts +6 -0
  241. package/dist/Pagination.es.js +97 -0
  242. package/dist/ProfilePictureUpload.d.ts +6 -0
  243. package/dist/ProfilePictureUpload.es.js +189 -0
  244. package/dist/ProgressBar.d.ts +6 -0
  245. package/dist/ProgressBar.es.js +70 -0
  246. package/dist/PyrionNavigationDrawer.d.ts +6 -0
  247. package/dist/PyrionNavigationDrawer.es.js +962 -0
  248. package/dist/RadioButton.d.ts +6 -0
  249. package/dist/RadioButton.es.js +78 -0
  250. package/dist/RecurrentDatePicker.d.ts +2 -0
  251. package/dist/RecurrentDatePicker.es.js +694 -0
  252. package/dist/RecurrentDatePickerRRule.d.ts +2 -0
  253. package/dist/RecurrentDatePickerRRule.es.js +1682 -0
  254. package/dist/Scrollable.d.ts +2 -0
  255. package/dist/Scrollable.es.js +260 -0
  256. package/dist/SegmentedButton.d.ts +6 -0
  257. package/dist/SegmentedButton.es.js +185 -0
  258. package/dist/Select.d.ts +6 -0
  259. package/dist/Select.es.js +1061 -0
  260. package/dist/SelectSearch.d.ts +6 -0
  261. package/dist/SelectSearch.es.js +284 -0
  262. package/dist/Skeleton.d.ts +6 -0
  263. package/dist/Skeleton.es.js +74 -0
  264. package/dist/Spinner.d.ts +6 -0
  265. package/dist/Spinner.es.js +178 -0
  266. package/dist/Steps.d.ts +6 -0
  267. package/dist/Steps.es.js +214 -0
  268. package/dist/SwipeContainer.d.ts +4 -0
  269. package/dist/SwipeContainer.es.js +185 -0
  270. package/dist/Switch.d.ts +6 -0
  271. package/dist/Switch.es.js +97 -0
  272. package/dist/TabLinks.d.ts +4 -0
  273. package/dist/TabLinks.es.js +94 -0
  274. package/dist/Table.d.ts +2 -0
  275. package/dist/Table.es.js +121 -0
  276. package/dist/TextArea.d.ts +4 -0
  277. package/dist/TextArea.es.js +66 -0
  278. package/dist/TicketCard.d.ts +6 -0
  279. package/dist/TicketCard.es.js +130 -0
  280. package/dist/Toast.d.ts +6 -0
  281. package/dist/Toast.es.js +150 -0
  282. package/dist/ToastProvider.d.ts +6 -0
  283. package/dist/ToastProvider.es.js +6 -0
  284. package/dist/Tooltip.d.ts +6 -0
  285. package/dist/Tooltip.es.js +62 -0
  286. package/dist/assets/psmlogo.png +0 -0
  287. package/dist/badge-B1IK_-i5.js +87 -0
  288. package/dist/cn-B6yFEsav.js +8 -0
  289. package/dist/components/Autocomplete/Autocomplete.d.ts +20 -0
  290. package/dist/components/Autocomplete/useAutocomplete.d.ts +43 -0
  291. package/dist/components/Avatar/Avatar.d.ts +11 -0
  292. package/dist/components/Avatar/index.d.ts +1 -0
  293. package/dist/components/Button/Button.d.ts +23 -0
  294. package/dist/components/Button/index.d.ts +2 -0
  295. package/dist/components/Card/Card.d.ts +12 -0
  296. package/dist/components/CardProfile/CardProfile.d.ts +55 -0
  297. package/dist/components/CheckBox/CheckBox.d.ts +11 -0
  298. package/dist/components/DatePicker/DatePicker.d.ts +82 -0
  299. package/dist/components/Dialog/Dialog.d.ts +35 -0
  300. package/dist/components/Dialog/DialogV2.d.ts +35 -0
  301. package/dist/components/Dialog/useDialogControl.d.ts +8 -0
  302. package/dist/components/Drawer/DrawerDesktop.d.ts +21 -0
  303. package/dist/components/Drawer/DrawerMobile.d.ts +24 -0
  304. package/dist/components/Drawer/useDrawerDesktop.d.ts +8 -0
  305. package/dist/components/Drawer/useDrawerMobile.d.ts +8 -0
  306. package/dist/components/DropZone/DropZone.d.ts +16 -0
  307. package/dist/components/DropZone/DropzoneCompossable.d.ts +54 -0
  308. package/dist/components/DropZone/useFileDropzone.d.ts +21 -0
  309. package/dist/components/FAB/FAButton.d.ts +21 -0
  310. package/dist/components/FileCard/FileCard.d.ts +52 -0
  311. package/dist/components/Header/Header.d.ts +11 -0
  312. package/dist/components/Image/GalleryPreview.d.ts +8 -0
  313. package/dist/components/Image/Image.d.ts +23 -0
  314. package/dist/components/Image/ImageGallery.d.ts +18 -0
  315. package/dist/components/Image/LightBox.d.ts +14 -0
  316. package/dist/components/Image/index.d.ts +5 -0
  317. package/dist/components/Image/useImageGallery.d.ts +10 -0
  318. package/dist/components/Input/Input.d.ts +34 -0
  319. package/dist/components/InputMultiple/InputMultiple.d.ts +25 -0
  320. package/dist/components/Layout/LayoutGeneric.d.ts +6 -0
  321. package/dist/components/Logo/Logo.d.ts +2 -0
  322. package/dist/components/Menu/MenuComposable.d.ts +15 -0
  323. package/dist/components/NavigationDrawer/NavItemSecondary.d.ts +10 -0
  324. package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +49 -0
  325. package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +16 -0
  326. package/dist/components/NavigationDrawer/NavigationDrawerActions.d.ts +9 -0
  327. package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +18 -0
  328. package/dist/components/NavigationDrawer/NavigationDrawerLinkItem.d.ts +30 -0
  329. package/dist/components/NavigationDrawer/NavigationDrawerNavlinks.d.ts +11 -0
  330. package/dist/components/NavigationDrawer/index.d.ts +2 -0
  331. package/dist/components/NotificationCard/NotificationCard.d.ts +25 -0
  332. package/dist/components/NotificationCard/index.d.ts +3 -0
  333. package/dist/components/OtpInput/OtpInput.d.ts +30 -0
  334. package/dist/components/Pagination/Pagination.d.ts +6 -0
  335. package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +19 -0
  336. package/dist/components/ProgressBar/ProgressBar.d.ts +18 -0
  337. package/dist/components/PyrionNavigationDrawer/PyrionHelpSection.d.ts +8 -0
  338. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawer.d.ts +130 -0
  339. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerMobileAppSwitcher.d.ts +10 -0
  340. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerSystemLogo.d.ts +7 -0
  341. package/dist/components/PyrionNavigationDrawer/PyrionNotificationsList.d.ts +8 -0
  342. package/dist/components/PyrionNavigationDrawer/SidebarContent.d.ts +13 -0
  343. package/dist/components/PyrionNavigationDrawer/SystemSessions.d.ts +12 -0
  344. package/dist/components/PyrionNavigationDrawer/index.d.ts +3 -0
  345. package/dist/components/RadioButton/RadioButton.d.ts +14 -0
  346. package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +40 -0
  347. package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +13 -0
  348. package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +35 -0
  349. package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +5 -0
  350. package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +39 -0
  351. package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +13 -0
  352. package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +13 -0
  353. package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +9 -0
  354. package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +21 -0
  355. package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +69 -0
  356. package/dist/components/Scrollable/Scrollable.d.ts +31 -0
  357. package/dist/components/SegmentedButton/SegmentedButton.d.ts +20 -0
  358. package/dist/components/Select/Select.d.ts +123 -0
  359. package/dist/components/SelectSearch/SelectSearch.d.ts +40 -0
  360. package/dist/components/Shared/Chip.d.ts +15 -0
  361. package/dist/components/Shared/HelperComponent.d.ts +13 -0
  362. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +32 -0
  363. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +2 -0
  364. package/dist/components/Sidebar/SecondaryBar/index.d.ts +1 -0
  365. package/dist/components/Sidebar/SidebarComposable.d.ts +43 -0
  366. package/dist/components/Sidebar/components/NavigationLink.d.ts +11 -0
  367. package/dist/components/Sidebar/components/badge.d.ts +10 -0
  368. package/dist/components/Sidebar/components/changue-account.d.ts +5 -0
  369. package/dist/components/Sidebar/components/collapse-button.d.ts +5 -0
  370. package/dist/components/Sidebar/components/company-logo.d.ts +5 -0
  371. package/dist/components/Sidebar/components/nav-actions.d.ts +7 -0
  372. package/dist/components/Sidebar/components/nav-links.d.ts +7 -0
  373. package/dist/components/Sidebar/context/SidebarContext.d.ts +13 -0
  374. package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +3 -0
  375. package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +9 -0
  376. package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +4 -0
  377. package/dist/components/Sidebar/hooks/useNavLinks.d.ts +32 -0
  378. package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +13 -0
  379. package/dist/components/Sidebar/index.d.ts +12 -0
  380. package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +2 -0
  381. package/dist/components/Skeleton/Skeleton.d.ts +13 -0
  382. package/dist/components/Spinner/Spinner.d.ts +12 -0
  383. package/dist/components/Steps/Steps.d.ts +21 -0
  384. package/dist/components/SwipeContainer/SwipeContainer.d.ts +19 -0
  385. package/dist/components/Switch/Switch.d.ts +11 -0
  386. package/dist/components/TabLinks/TabLinks.d.ts +23 -0
  387. package/dist/components/TabSwitch/TabSwitch.d.ts +16 -0
  388. package/dist/components/Table/Table.d.ts +14 -0
  389. package/dist/components/Table/TableWithPagination.d.ts +11 -0
  390. package/dist/components/TextArea/TextArea.d.ts +15 -0
  391. package/dist/components/TicketCard/TicketCard.d.ts +32 -0
  392. package/dist/components/TicketCard/index.d.ts +3 -0
  393. package/dist/components/Toaster/ToastProvider.d.ts +5 -0
  394. package/dist/components/Toaster/Toaster.d.ts +36 -0
  395. package/dist/components/Tooltip/Tootip.d.ts +10 -0
  396. package/dist/components/UserCard/UserCard.d.ts +12 -0
  397. package/dist/exports/Autocomplete.d.ts +1 -0
  398. package/dist/exports/Avatar.d.ts +1 -0
  399. package/dist/exports/Button.d.ts +2 -0
  400. package/dist/exports/CardProfile.d.ts +3 -0
  401. package/dist/exports/CheckBox.d.ts +2 -0
  402. package/dist/exports/DatePicker.d.ts +3 -0
  403. package/dist/exports/DialogModal.d.ts +2 -0
  404. package/dist/exports/DrawerDesktop.d.ts +4 -0
  405. package/dist/exports/DrawerMobile.d.ts +4 -0
  406. package/dist/exports/DropZone.d.ts +3 -0
  407. package/dist/exports/FAButton.d.ts +1 -0
  408. package/dist/exports/Header.d.ts +2 -0
  409. package/dist/exports/Icons.d.ts +1 -0
  410. package/dist/exports/Image.d.ts +1 -0
  411. package/dist/exports/ImageGallery.d.ts +2 -0
  412. package/dist/exports/Input.d.ts +2 -0
  413. package/dist/exports/InputMultiple.d.ts +3 -0
  414. package/dist/exports/LayoutGeneric.d.ts +2 -0
  415. package/dist/exports/Logo.d.ts +1 -0
  416. package/dist/exports/Menu.d.ts +3 -0
  417. package/dist/exports/NotificationCard.d.ts +2 -0
  418. package/dist/exports/OtpInput.d.ts +2 -0
  419. package/dist/exports/Pagination.d.ts +2 -0
  420. package/dist/exports/ProfilePictureUpload.d.ts +3 -0
  421. package/dist/exports/ProgressBar.d.ts +2 -0
  422. package/dist/exports/PyrionNavigationDrawer.d.ts +2 -0
  423. package/dist/exports/RadioButton.d.ts +3 -0
  424. package/dist/exports/RecurrentDatePicker.d.ts +5 -0
  425. package/dist/exports/RecurrentDatePickerRRule.d.ts +2 -0
  426. package/dist/exports/Scrollable.d.ts +2 -0
  427. package/dist/exports/SegmentedButton.d.ts +3 -0
  428. package/dist/exports/Select.d.ts +5 -0
  429. package/dist/exports/SelectSearch.d.ts +3 -0
  430. package/dist/exports/Skeleton.d.ts +3 -0
  431. package/dist/exports/Spinner.d.ts +3 -0
  432. package/dist/exports/Steps.d.ts +3 -0
  433. package/dist/exports/SwipeContainer.d.ts +1 -0
  434. package/dist/exports/Switch.d.ts +3 -0
  435. package/dist/exports/TabLinks.d.ts +1 -0
  436. package/dist/exports/Table.d.ts +1 -0
  437. package/dist/exports/TextArea.d.ts +1 -0
  438. package/dist/exports/TicketCard.d.ts +2 -0
  439. package/dist/exports/Toast.d.ts +3 -0
  440. package/dist/exports/ToastProvider.d.ts +2 -0
  441. package/dist/exports/Tooltip.d.ts +2 -0
  442. package/dist/exports/useDevice.d.ts +1 -0
  443. package/dist/exports/usePyrionNavigation.d.ts +1 -0
  444. package/dist/hooks/useClickOutside.d.ts +8 -0
  445. package/dist/hooks/useDevice.d.ts +1 -0
  446. package/dist/hooks/useDragScroll.d.ts +29 -0
  447. package/dist/hooks/useLabelBackground.d.ts +6 -0
  448. package/dist/iconUtils-D0lVAgGT.js +5 -0
  449. package/dist/index-BOQuZ0gG.js +34 -0
  450. package/dist/index.d.ts +104 -0
  451. package/dist/jsx-runtime-GkKLlHH4.js +263 -0
  452. package/dist/lib/cn.d.ts +2 -0
  453. package/dist/lib/utils.d.ts +3 -0
  454. package/dist/prometeo-design-system.es.js +918 -0
  455. package/dist/styles.css +1 -0
  456. package/dist/styles.d.ts +1 -0
  457. package/dist/useDevice.d.ts +2 -0
  458. package/dist/useDevice.es.js +13 -0
  459. package/dist/useDragScroll-CHN9OMwn.js +165 -0
  460. package/dist/useLabelBackground-BDIHUdND.js +26 -0
  461. package/dist/usePyrionNavigation.d.ts +4 -0
  462. package/dist/usePyrionNavigation.es.js +4 -0
  463. package/dist/utils-X4-h3cum.js +54 -0
  464. package/dist/vite.svg +1 -0
  465. package/package.json +1 -1
@@ -0,0 +1,1682 @@
1
+ import { j as J } from "./jsx-runtime-GkKLlHH4.js";
2
+ import { memo as Ie, useState as he, useRef as _e, useEffect as ye } from "react";
3
+ import { RecurrentDatePicker as We } from "./RecurrentDatePicker.es.js";
4
+ import { C as He } from "./DatePicker-6eb-0Ns5.js";
5
+ var re = [
6
+ "MO",
7
+ "TU",
8
+ "WE",
9
+ "TH",
10
+ "FR",
11
+ "SA",
12
+ "SU"
13
+ ], x = (
14
+ /** @class */
15
+ (function() {
16
+ function t(e, r) {
17
+ if (r === 0)
18
+ throw new Error("Can't create weekday with n == 0");
19
+ this.weekday = e, this.n = r;
20
+ }
21
+ return t.fromStr = function(e) {
22
+ return new t(re.indexOf(e));
23
+ }, t.prototype.nth = function(e) {
24
+ return this.n === e ? this : new t(this.weekday, e);
25
+ }, t.prototype.equals = function(e) {
26
+ return this.weekday === e.weekday && this.n === e.n;
27
+ }, t.prototype.toString = function() {
28
+ var e = re[this.weekday];
29
+ return this.n && (e = (this.n > 0 ? "+" : "") + String(this.n) + e), e;
30
+ }, t.prototype.getJsWeekday = function() {
31
+ return this.weekday === 6 ? 0 : this.weekday + 1;
32
+ }, t;
33
+ })()
34
+ ), E = function(t) {
35
+ return t != null;
36
+ }, L = function(t) {
37
+ return typeof t == "number";
38
+ }, le = function(t) {
39
+ return typeof t == "string" && re.includes(t);
40
+ }, S = Array.isArray, R = function(t, e) {
41
+ e === void 0 && (e = t), arguments.length === 1 && (e = t, t = 0);
42
+ for (var r = [], n = t; n < e; n++)
43
+ r.push(n);
44
+ return r;
45
+ }, p = function(t, e) {
46
+ var r = 0, n = [];
47
+ if (S(t))
48
+ for (; r < e; r++)
49
+ n[r] = [].concat(t);
50
+ else
51
+ for (; r < e; r++)
52
+ n[r] = t;
53
+ return n;
54
+ }, qe = function(t) {
55
+ return S(t) ? t : [t];
56
+ };
57
+ function K(t, e, r) {
58
+ r === void 0 && (r = " ");
59
+ var n = String(t);
60
+ return e = e >> 0, n.length > e ? String(n) : (e = e - n.length, e > r.length && (r += p(r, e / r.length)), r.slice(0, e) + String(n));
61
+ }
62
+ var U = function(t, e) {
63
+ var r = t % e;
64
+ return r * e < 0 ? r + e : r;
65
+ }, ee = function(t, e) {
66
+ return { div: Math.floor(t / e), mod: U(t, e) };
67
+ }, A = function(t) {
68
+ return !E(t) || t.length === 0;
69
+ }, D = function(t) {
70
+ return !A(t);
71
+ }, T = function(t, e) {
72
+ return D(t) && t.indexOf(e) !== -1;
73
+ }, P = function(t, e, r, n, a, i) {
74
+ return n === void 0 && (n = 0), a === void 0 && (a = 0), i === void 0 && (i = 0), new Date(Date.UTC(t, e - 1, r, n, a, i));
75
+ }, Pe = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ee = 1e3 * 60 * 60 * 24, De = 9999, Oe = P(1970, 1, 1), je = [6, 0, 1, 2, 3, 4, 5], Q = function(t) {
76
+ return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
77
+ }, Ye = function(t) {
78
+ return t instanceof Date;
79
+ }, G = function(t) {
80
+ return Ye(t) && !isNaN(t.getTime());
81
+ }, Ke = function(t, e) {
82
+ var r = t.getTime(), n = e.getTime(), a = r - n;
83
+ return Math.round(a / Ee);
84
+ }, ne = function(t) {
85
+ return Ke(t, Oe);
86
+ }, xe = function(t) {
87
+ return new Date(Oe.getTime() + t * Ee);
88
+ }, Fe = function(t) {
89
+ var e = t.getUTCMonth();
90
+ return e === 1 && Q(t.getUTCFullYear()) ? 29 : Pe[e];
91
+ }, z = function(t) {
92
+ return je[t.getUTCDay()];
93
+ }, ce = function(t, e) {
94
+ var r = P(t, e + 1, 1);
95
+ return [z(r), Fe(r)];
96
+ }, Me = function(t, e) {
97
+ return e = e || t, new Date(Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
98
+ }, ie = function(t) {
99
+ var e = new Date(t.getTime());
100
+ return e;
101
+ }, de = function(t) {
102
+ for (var e = [], r = 0; r < t.length; r++)
103
+ e.push(ie(t[r]));
104
+ return e;
105
+ }, ae = function(t) {
106
+ t.sort(function(e, r) {
107
+ return e.getTime() - r.getTime();
108
+ });
109
+ }, Se = function(t, e) {
110
+ e === void 0 && (e = !0);
111
+ var r = new Date(t);
112
+ return [
113
+ K(r.getUTCFullYear().toString(), 4, "0"),
114
+ K(r.getUTCMonth() + 1, 2, "0"),
115
+ K(r.getUTCDate(), 2, "0"),
116
+ "T",
117
+ K(r.getUTCHours(), 2, "0"),
118
+ K(r.getUTCMinutes(), 2, "0"),
119
+ K(r.getUTCSeconds(), 2, "0"),
120
+ e ? "Z" : ""
121
+ ].join("");
122
+ }, Ue = function(t) {
123
+ var e = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/, r = e.exec(t);
124
+ if (!r)
125
+ throw new Error("Invalid UNTIL value: ".concat(t));
126
+ return new Date(Date.UTC(parseInt(r[1], 10), parseInt(r[2], 10) - 1, parseInt(r[3], 10), parseInt(r[5], 10) || 0, parseInt(r[6], 10) || 0, parseInt(r[7], 10) || 0));
127
+ }, be = function(t, e) {
128
+ var r = t.toLocaleString("sv-SE", { timeZone: e });
129
+ return r.replace(" ", "T") + "Z";
130
+ }, ze = function(t, e) {
131
+ var r = Intl.DateTimeFormat().resolvedOptions().timeZone, n = new Date(be(t, r)), a = new Date(be(t, e ?? "UTC")), i = a.getTime() - n.getTime();
132
+ return new Date(t.getTime() - i);
133
+ }, F = (
134
+ /** @class */
135
+ (function() {
136
+ function t(e, r) {
137
+ this.minDate = null, this.maxDate = null, this._result = [], this.total = 0, this.method = e, this.args = r, e === "between" ? (this.maxDate = r.inc ? r.before : new Date(r.before.getTime() - 1), this.minDate = r.inc ? r.after : new Date(r.after.getTime() + 1)) : e === "before" ? this.maxDate = r.inc ? r.dt : new Date(r.dt.getTime() - 1) : e === "after" && (this.minDate = r.inc ? r.dt : new Date(r.dt.getTime() + 1));
138
+ }
139
+ return t.prototype.accept = function(e) {
140
+ ++this.total;
141
+ var r = this.minDate && e < this.minDate, n = this.maxDate && e > this.maxDate;
142
+ if (this.method === "between") {
143
+ if (r)
144
+ return !0;
145
+ if (n)
146
+ return !1;
147
+ } else if (this.method === "before") {
148
+ if (n)
149
+ return !1;
150
+ } else if (this.method === "after")
151
+ return r ? !0 : (this.add(e), !1);
152
+ return this.add(e);
153
+ }, t.prototype.add = function(e) {
154
+ return this._result.push(e), !0;
155
+ }, t.prototype.getValue = function() {
156
+ var e = this._result;
157
+ switch (this.method) {
158
+ case "all":
159
+ case "between":
160
+ return e;
161
+ default:
162
+ return e.length ? e[e.length - 1] : null;
163
+ }
164
+ }, t.prototype.clone = function() {
165
+ return new t(this.method, this.args);
166
+ }, t;
167
+ })()
168
+ ), se = function(t, e) {
169
+ return se = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
170
+ r.__proto__ = n;
171
+ } || function(r, n) {
172
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]);
173
+ }, se(t, e);
174
+ };
175
+ function Ne(t, e) {
176
+ if (typeof e != "function" && e !== null)
177
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
178
+ se(t, e);
179
+ function r() {
180
+ this.constructor = t;
181
+ }
182
+ t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
183
+ }
184
+ var I = function() {
185
+ return I = Object.assign || function(e) {
186
+ for (var r, n = 1, a = arguments.length; n < a; n++) {
187
+ r = arguments[n];
188
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (e[i] = r[i]);
189
+ }
190
+ return e;
191
+ }, I.apply(this, arguments);
192
+ };
193
+ function f(t, e, r) {
194
+ if (r || arguments.length === 2) for (var n = 0, a = e.length, i; n < a; n++)
195
+ (i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
196
+ return t.concat(i || Array.prototype.slice.call(e));
197
+ }
198
+ var me = (
199
+ /** @class */
200
+ (function(t) {
201
+ Ne(e, t);
202
+ function e(r, n, a) {
203
+ var i = t.call(this, r, n) || this;
204
+ return i.iterator = a, i;
205
+ }
206
+ return e.prototype.add = function(r) {
207
+ return this.iterator(r, this._result.length) ? (this._result.push(r), !0) : !1;
208
+ }, e;
209
+ })(F)
210
+ ), V = {
211
+ dayNames: [
212
+ "Sunday",
213
+ "Monday",
214
+ "Tuesday",
215
+ "Wednesday",
216
+ "Thursday",
217
+ "Friday",
218
+ "Saturday"
219
+ ],
220
+ monthNames: [
221
+ "January",
222
+ "February",
223
+ "March",
224
+ "April",
225
+ "May",
226
+ "June",
227
+ "July",
228
+ "August",
229
+ "September",
230
+ "October",
231
+ "November",
232
+ "December"
233
+ ],
234
+ tokens: {
235
+ SKIP: /^[ \r\n\t]+|^\.$/,
236
+ number: /^[1-9][0-9]*/,
237
+ numberAsText: /^(one|two|three)/i,
238
+ every: /^every/i,
239
+ "day(s)": /^days?/i,
240
+ "weekday(s)": /^weekdays?/i,
241
+ "week(s)": /^weeks?/i,
242
+ "hour(s)": /^hours?/i,
243
+ "minute(s)": /^minutes?/i,
244
+ "month(s)": /^months?/i,
245
+ "year(s)": /^years?/i,
246
+ on: /^(on|in)/i,
247
+ at: /^(at)/i,
248
+ the: /^the/i,
249
+ first: /^first/i,
250
+ second: /^second/i,
251
+ third: /^third/i,
252
+ nth: /^([1-9][0-9]*)(\.|th|nd|rd|st)/i,
253
+ last: /^last/i,
254
+ for: /^for/i,
255
+ "time(s)": /^times?/i,
256
+ until: /^(un)?til/i,
257
+ monday: /^mo(n(day)?)?/i,
258
+ tuesday: /^tu(e(s(day)?)?)?/i,
259
+ wednesday: /^we(d(n(esday)?)?)?/i,
260
+ thursday: /^th(u(r(sday)?)?)?/i,
261
+ friday: /^fr(i(day)?)?/i,
262
+ saturday: /^sa(t(urday)?)?/i,
263
+ sunday: /^su(n(day)?)?/i,
264
+ january: /^jan(uary)?/i,
265
+ february: /^feb(ruary)?/i,
266
+ march: /^mar(ch)?/i,
267
+ april: /^apr(il)?/i,
268
+ may: /^may/i,
269
+ june: /^june?/i,
270
+ july: /^july?/i,
271
+ august: /^aug(ust)?/i,
272
+ september: /^sep(t(ember)?)?/i,
273
+ october: /^oct(ober)?/i,
274
+ november: /^nov(ember)?/i,
275
+ december: /^dec(ember)?/i,
276
+ comma: /^(,\s*|(and|or)\s*)+/i
277
+ }
278
+ }, pe = function(t, e) {
279
+ return t.indexOf(e) !== -1;
280
+ }, Be = function(t) {
281
+ return t.toString();
282
+ }, Ze = function(t, e, r) {
283
+ return "".concat(e, " ").concat(r, ", ").concat(t);
284
+ }, _ = (
285
+ /** @class */
286
+ (function() {
287
+ function t(e, r, n, a) {
288
+ if (r === void 0 && (r = Be), n === void 0 && (n = V), a === void 0 && (a = Ze), this.text = [], this.language = n || V, this.gettext = r, this.dateFormatter = a, this.rrule = e, this.options = e.options, this.origOptions = e.origOptions, this.origOptions.bymonthday) {
289
+ var i = [].concat(this.options.bymonthday), o = [].concat(this.options.bynmonthday);
290
+ i.sort(function(c, b) {
291
+ return c - b;
292
+ }), o.sort(function(c, b) {
293
+ return b - c;
294
+ }), this.bymonthday = i.concat(o), this.bymonthday.length || (this.bymonthday = null);
295
+ }
296
+ if (E(this.origOptions.byweekday)) {
297
+ var s = S(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], u = String(s);
298
+ this.byweekday = {
299
+ allWeeks: s.filter(function(c) {
300
+ return !c.n;
301
+ }),
302
+ someWeeks: s.filter(function(c) {
303
+ return !!c.n;
304
+ }),
305
+ isWeekdays: u.indexOf("MO") !== -1 && u.indexOf("TU") !== -1 && u.indexOf("WE") !== -1 && u.indexOf("TH") !== -1 && u.indexOf("FR") !== -1 && u.indexOf("SA") === -1 && u.indexOf("SU") === -1,
306
+ isEveryDay: u.indexOf("MO") !== -1 && u.indexOf("TU") !== -1 && u.indexOf("WE") !== -1 && u.indexOf("TH") !== -1 && u.indexOf("FR") !== -1 && u.indexOf("SA") !== -1 && u.indexOf("SU") !== -1
307
+ };
308
+ var h = function(c, b) {
309
+ return c.weekday - b.weekday;
310
+ };
311
+ this.byweekday.allWeeks.sort(h), this.byweekday.someWeeks.sort(h), this.byweekday.allWeeks.length || (this.byweekday.allWeeks = null), this.byweekday.someWeeks.length || (this.byweekday.someWeeks = null);
312
+ } else
313
+ this.byweekday = null;
314
+ }
315
+ return t.isFullyConvertible = function(e) {
316
+ var r = !0;
317
+ if (!(e.options.freq in t.IMPLEMENTED) || e.origOptions.until && e.origOptions.count)
318
+ return !1;
319
+ for (var n in e.origOptions) {
320
+ if (pe(["dtstart", "tzid", "wkst", "freq"], n))
321
+ return !0;
322
+ if (!pe(t.IMPLEMENTED[e.options.freq], n))
323
+ return !1;
324
+ }
325
+ return r;
326
+ }, t.prototype.isFullyConvertible = function() {
327
+ return t.isFullyConvertible(this.rrule);
328
+ }, t.prototype.toString = function() {
329
+ var e = this.gettext;
330
+ if (!(this.options.freq in t.IMPLEMENTED))
331
+ return e("RRule error: Unable to fully convert this rrule to text");
332
+ if (this.text = [e("every")], this[y.FREQUENCIES[this.options.freq]](), this.options.until) {
333
+ this.add(e("until"));
334
+ var r = this.options.until;
335
+ this.add(this.dateFormatter(r.getUTCFullYear(), this.language.monthNames[r.getUTCMonth()], r.getUTCDate()));
336
+ } else this.options.count && this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count) ? e("times") : e("time"));
337
+ return this.isFullyConvertible() || this.add(e("(~ approximate)")), this.text.join("");
338
+ }, t.prototype.HOURLY = function() {
339
+ var e = this.gettext;
340
+ this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("hours") : e("hour"));
341
+ }, t.prototype.MINUTELY = function() {
342
+ var e = this.gettext;
343
+ this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("minutes") : e("minute"));
344
+ }, t.prototype.DAILY = function() {
345
+ var e = this.gettext;
346
+ this.options.interval !== 1 && this.add(this.options.interval.toString()), this.byweekday && this.byweekday.isWeekdays ? this.add(this.plural(this.options.interval) ? e("weekdays") : e("weekday")) : this.add(this.plural(this.options.interval) ? e("days") : e("day")), this.origOptions.bymonth && (this.add(e("in")), this._bymonth()), this.bymonthday ? this._bymonthday() : this.byweekday ? this._byweekday() : this.origOptions.byhour && this._byhour();
347
+ }, t.prototype.WEEKLY = function() {
348
+ var e = this.gettext;
349
+ this.options.interval !== 1 && this.add(this.options.interval.toString()).add(this.plural(this.options.interval) ? e("weeks") : e("week")), this.byweekday && this.byweekday.isWeekdays ? this.options.interval === 1 ? this.add(this.plural(this.options.interval) ? e("weekdays") : e("weekday")) : this.add(e("on")).add(e("weekdays")) : this.byweekday && this.byweekday.isEveryDay ? this.add(this.plural(this.options.interval) ? e("days") : e("day")) : (this.options.interval === 1 && this.add(e("week")), this.origOptions.bymonth && (this.add(e("in")), this._bymonth()), this.bymonthday ? this._bymonthday() : this.byweekday && this._byweekday(), this.origOptions.byhour && this._byhour());
350
+ }, t.prototype.MONTHLY = function() {
351
+ var e = this.gettext;
352
+ this.origOptions.bymonth ? (this.options.interval !== 1 && (this.add(this.options.interval.toString()).add(e("months")), this.plural(this.options.interval) && this.add(e("in"))), this._bymonth()) : (this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("months") : e("month"))), this.bymonthday ? this._bymonthday() : this.byweekday && this.byweekday.isWeekdays ? this.add(e("on")).add(e("weekdays")) : this.byweekday && this._byweekday();
353
+ }, t.prototype.YEARLY = function() {
354
+ var e = this.gettext;
355
+ this.origOptions.bymonth ? (this.options.interval !== 1 && (this.add(this.options.interval.toString()), this.add(e("years"))), this._bymonth()) : (this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("years") : e("year"))), this.bymonthday ? this._bymonthday() : this.byweekday && this._byweekday(), this.options.byyearday && this.add(e("on the")).add(this.list(this.options.byyearday, this.nth, e("and"))).add(e("day")), this.options.byweekno && this.add(e("in")).add(this.plural(this.options.byweekno.length) ? e("weeks") : e("week")).add(this.list(this.options.byweekno, void 0, e("and")));
356
+ }, t.prototype._bymonthday = function() {
357
+ var e = this.gettext;
358
+ this.byweekday && this.byweekday.allWeeks ? this.add(e("on")).add(this.list(this.byweekday.allWeeks, this.weekdaytext, e("or"))).add(e("the")).add(this.list(this.bymonthday, this.nth, e("or"))) : this.add(e("on the")).add(this.list(this.bymonthday, this.nth, e("and")));
359
+ }, t.prototype._byweekday = function() {
360
+ var e = this.gettext;
361
+ this.byweekday.allWeeks && !this.byweekday.isWeekdays && this.add(e("on")).add(this.list(this.byweekday.allWeeks, this.weekdaytext)), this.byweekday.someWeeks && (this.byweekday.allWeeks && this.add(e("and")), this.add(e("on the")).add(this.list(this.byweekday.someWeeks, this.weekdaytext, e("and"))));
362
+ }, t.prototype._byhour = function() {
363
+ var e = this.gettext;
364
+ this.add(e("at")).add(this.list(this.origOptions.byhour, void 0, e("and")));
365
+ }, t.prototype._bymonth = function() {
366
+ this.add(this.list(this.options.bymonth, this.monthtext, this.gettext("and")));
367
+ }, t.prototype.nth = function(e) {
368
+ e = parseInt(e.toString(), 10);
369
+ var r, n = this.gettext;
370
+ if (e === -1)
371
+ return n("last");
372
+ var a = Math.abs(e);
373
+ switch (a) {
374
+ case 1:
375
+ case 21:
376
+ case 31:
377
+ r = a + n("st");
378
+ break;
379
+ case 2:
380
+ case 22:
381
+ r = a + n("nd");
382
+ break;
383
+ case 3:
384
+ case 23:
385
+ r = a + n("rd");
386
+ break;
387
+ default:
388
+ r = a + n("th");
389
+ }
390
+ return e < 0 ? r + " " + n("last") : r;
391
+ }, t.prototype.monthtext = function(e) {
392
+ return this.language.monthNames[e - 1];
393
+ }, t.prototype.weekdaytext = function(e) {
394
+ var r = L(e) ? (e + 1) % 7 : e.getJsWeekday();
395
+ return (e.n ? this.nth(e.n) + " " : "") + this.language.dayNames[r];
396
+ }, t.prototype.plural = function(e) {
397
+ return e % 100 !== 1;
398
+ }, t.prototype.add = function(e) {
399
+ return this.text.push(" "), this.text.push(e), this;
400
+ }, t.prototype.list = function(e, r, n, a) {
401
+ var i = this;
402
+ a === void 0 && (a = ","), S(e) || (e = [e]);
403
+ var o = function(u, h, c) {
404
+ for (var b = "", l = 0; l < u.length; l++)
405
+ l !== 0 && (l === u.length - 1 ? b += " " + c + " " : b += h + " "), b += u[l];
406
+ return b;
407
+ };
408
+ r = r || function(u) {
409
+ return u.toString();
410
+ };
411
+ var s = function(u) {
412
+ return r && r.call(i, u);
413
+ };
414
+ return n ? o(e.map(s), a, n) : e.map(s).join(a + " ");
415
+ }, t;
416
+ })()
417
+ ), Ge = (
418
+ /** @class */
419
+ (function() {
420
+ function t(e) {
421
+ this.done = !0, this.rules = e;
422
+ }
423
+ return t.prototype.start = function(e) {
424
+ return this.text = e, this.done = !1, this.nextSymbol();
425
+ }, t.prototype.isDone = function() {
426
+ return this.done && this.symbol === null;
427
+ }, t.prototype.nextSymbol = function() {
428
+ var e, r;
429
+ this.symbol = null, this.value = null;
430
+ do {
431
+ if (this.done)
432
+ return !1;
433
+ var n = void 0;
434
+ e = null;
435
+ for (var a in this.rules) {
436
+ n = this.rules[a];
437
+ var i = n.exec(this.text);
438
+ i && (e === null || i[0].length > e[0].length) && (e = i, r = a);
439
+ }
440
+ if (e != null && (this.text = this.text.substr(e[0].length), this.text === "" && (this.done = !0)), e == null) {
441
+ this.done = !0, this.symbol = null, this.value = null;
442
+ return;
443
+ }
444
+ } while (r === "SKIP");
445
+ return this.symbol = r, this.value = e, !0;
446
+ }, t.prototype.accept = function(e) {
447
+ if (this.symbol === e) {
448
+ if (this.value) {
449
+ var r = this.value;
450
+ return this.nextSymbol(), r;
451
+ }
452
+ return this.nextSymbol(), !0;
453
+ }
454
+ return !1;
455
+ }, t.prototype.acceptNumber = function() {
456
+ return this.accept("number");
457
+ }, t.prototype.expect = function(e) {
458
+ if (this.accept(e))
459
+ return !0;
460
+ throw new Error("expected " + e + " but found " + this.symbol);
461
+ }, t;
462
+ })()
463
+ );
464
+ function Le(t, e) {
465
+ e === void 0 && (e = V);
466
+ var r = {}, n = new Ge(e.tokens);
467
+ if (!n.start(t))
468
+ return null;
469
+ return a(), r;
470
+ function a() {
471
+ n.expect("every");
472
+ var l = n.acceptNumber();
473
+ if (l && (r.interval = parseInt(l[0], 10)), n.isDone())
474
+ throw new Error("Unexpected end");
475
+ switch (n.symbol) {
476
+ case "day(s)":
477
+ r.freq = y.DAILY, n.nextSymbol() && (o(), b());
478
+ break;
479
+ // FIXME Note: every 2 weekdays != every two weeks on weekdays.
480
+ // DAILY on weekdays is not a valid rule
481
+ case "weekday(s)":
482
+ r.freq = y.WEEKLY, r.byweekday = [y.MO, y.TU, y.WE, y.TH, y.FR], n.nextSymbol(), o(), b();
483
+ break;
484
+ case "week(s)":
485
+ r.freq = y.WEEKLY, n.nextSymbol() && (i(), o(), b());
486
+ break;
487
+ case "hour(s)":
488
+ r.freq = y.HOURLY, n.nextSymbol() && (i(), b());
489
+ break;
490
+ case "minute(s)":
491
+ r.freq = y.MINUTELY, n.nextSymbol() && (i(), b());
492
+ break;
493
+ case "month(s)":
494
+ r.freq = y.MONTHLY, n.nextSymbol() && (i(), b());
495
+ break;
496
+ case "year(s)":
497
+ r.freq = y.YEARLY, n.nextSymbol() && (i(), b());
498
+ break;
499
+ case "monday":
500
+ case "tuesday":
501
+ case "wednesday":
502
+ case "thursday":
503
+ case "friday":
504
+ case "saturday":
505
+ case "sunday":
506
+ r.freq = y.WEEKLY;
507
+ var d = n.symbol.substr(0, 2).toUpperCase();
508
+ if (r.byweekday = [y[d]], !n.nextSymbol())
509
+ return;
510
+ for (; n.accept("comma"); ) {
511
+ if (n.isDone())
512
+ throw new Error("Unexpected end");
513
+ var w = u();
514
+ if (!w)
515
+ throw new Error("Unexpected symbol " + n.symbol + ", expected weekday");
516
+ r.byweekday.push(y[w]), n.nextSymbol();
517
+ }
518
+ o(), c(), b();
519
+ break;
520
+ case "january":
521
+ case "february":
522
+ case "march":
523
+ case "april":
524
+ case "may":
525
+ case "june":
526
+ case "july":
527
+ case "august":
528
+ case "september":
529
+ case "october":
530
+ case "november":
531
+ case "december":
532
+ if (r.freq = y.YEARLY, r.bymonth = [s()], !n.nextSymbol())
533
+ return;
534
+ for (; n.accept("comma"); ) {
535
+ if (n.isDone())
536
+ throw new Error("Unexpected end");
537
+ var k = s();
538
+ if (!k)
539
+ throw new Error("Unexpected symbol " + n.symbol + ", expected month");
540
+ r.bymonth.push(k), n.nextSymbol();
541
+ }
542
+ i(), b();
543
+ break;
544
+ default:
545
+ throw new Error("Unknown symbol");
546
+ }
547
+ }
548
+ function i() {
549
+ var l = n.accept("on"), d = n.accept("the");
550
+ if (l || d)
551
+ do {
552
+ var w = h(), k = u(), m = s();
553
+ if (w)
554
+ k ? (n.nextSymbol(), r.byweekday || (r.byweekday = []), r.byweekday.push(y[k].nth(w))) : (r.bymonthday || (r.bymonthday = []), r.bymonthday.push(w), n.accept("day(s)"));
555
+ else if (k)
556
+ n.nextSymbol(), r.byweekday || (r.byweekday = []), r.byweekday.push(y[k]);
557
+ else if (n.symbol === "weekday(s)")
558
+ n.nextSymbol(), r.byweekday || (r.byweekday = [y.MO, y.TU, y.WE, y.TH, y.FR]);
559
+ else if (n.symbol === "week(s)") {
560
+ n.nextSymbol();
561
+ var g = n.acceptNumber();
562
+ if (!g)
563
+ throw new Error("Unexpected symbol " + n.symbol + ", expected week number");
564
+ for (r.byweekno = [parseInt(g[0], 10)]; n.accept("comma"); ) {
565
+ if (g = n.acceptNumber(), !g)
566
+ throw new Error("Unexpected symbol " + n.symbol + "; expected monthday");
567
+ r.byweekno.push(parseInt(g[0], 10));
568
+ }
569
+ } else if (m)
570
+ n.nextSymbol(), r.bymonth || (r.bymonth = []), r.bymonth.push(m);
571
+ else
572
+ return;
573
+ } while (n.accept("comma") || n.accept("the") || n.accept("on"));
574
+ }
575
+ function o() {
576
+ var l = n.accept("at");
577
+ if (l)
578
+ do {
579
+ var d = n.acceptNumber();
580
+ if (!d)
581
+ throw new Error("Unexpected symbol " + n.symbol + ", expected hour");
582
+ for (r.byhour = [parseInt(d[0], 10)]; n.accept("comma"); ) {
583
+ if (d = n.acceptNumber(), !d)
584
+ throw new Error("Unexpected symbol " + n.symbol + "; expected hour");
585
+ r.byhour.push(parseInt(d[0], 10));
586
+ }
587
+ } while (n.accept("comma") || n.accept("at"));
588
+ }
589
+ function s() {
590
+ switch (n.symbol) {
591
+ case "january":
592
+ return 1;
593
+ case "february":
594
+ return 2;
595
+ case "march":
596
+ return 3;
597
+ case "april":
598
+ return 4;
599
+ case "may":
600
+ return 5;
601
+ case "june":
602
+ return 6;
603
+ case "july":
604
+ return 7;
605
+ case "august":
606
+ return 8;
607
+ case "september":
608
+ return 9;
609
+ case "october":
610
+ return 10;
611
+ case "november":
612
+ return 11;
613
+ case "december":
614
+ return 12;
615
+ default:
616
+ return !1;
617
+ }
618
+ }
619
+ function u() {
620
+ switch (n.symbol) {
621
+ case "monday":
622
+ case "tuesday":
623
+ case "wednesday":
624
+ case "thursday":
625
+ case "friday":
626
+ case "saturday":
627
+ case "sunday":
628
+ return n.symbol.substr(0, 2).toUpperCase();
629
+ default:
630
+ return !1;
631
+ }
632
+ }
633
+ function h() {
634
+ switch (n.symbol) {
635
+ case "last":
636
+ return n.nextSymbol(), -1;
637
+ case "first":
638
+ return n.nextSymbol(), 1;
639
+ case "second":
640
+ return n.nextSymbol(), n.accept("last") ? -2 : 2;
641
+ case "third":
642
+ return n.nextSymbol(), n.accept("last") ? -3 : 3;
643
+ case "nth":
644
+ var l = parseInt(n.value[1], 10);
645
+ if (l < -366 || l > 366)
646
+ throw new Error("Nth out of range: " + l);
647
+ return n.nextSymbol(), n.accept("last") ? -l : l;
648
+ default:
649
+ return !1;
650
+ }
651
+ }
652
+ function c() {
653
+ n.accept("on"), n.accept("the");
654
+ var l = h();
655
+ if (l)
656
+ for (r.bymonthday = [l], n.nextSymbol(); n.accept("comma"); ) {
657
+ if (l = h(), !l)
658
+ throw new Error("Unexpected symbol " + n.symbol + "; expected monthday");
659
+ r.bymonthday.push(l), n.nextSymbol();
660
+ }
661
+ }
662
+ function b() {
663
+ if (n.symbol === "until") {
664
+ var l = Date.parse(n.text);
665
+ if (!l)
666
+ throw new Error("Cannot parse until date:" + n.text);
667
+ r.until = new Date(l);
668
+ } else n.accept("for") && (r.count = parseInt(n.value[0], 10), n.expect("number"));
669
+ }
670
+ }
671
+ var v;
672
+ (function(t) {
673
+ t[t.YEARLY = 0] = "YEARLY", t[t.MONTHLY = 1] = "MONTHLY", t[t.WEEKLY = 2] = "WEEKLY", t[t.DAILY = 3] = "DAILY", t[t.HOURLY = 4] = "HOURLY", t[t.MINUTELY = 5] = "MINUTELY", t[t.SECONDLY = 6] = "SECONDLY";
674
+ })(v || (v = {}));
675
+ function ue(t) {
676
+ return t < v.HOURLY;
677
+ }
678
+ var Je = function(t, e) {
679
+ return e === void 0 && (e = V), new y(Le(t, e) || void 0);
680
+ }, B = [
681
+ "count",
682
+ "until",
683
+ "interval",
684
+ "byweekday",
685
+ "bymonthday",
686
+ "bymonth"
687
+ ];
688
+ _.IMPLEMENTED = [];
689
+ _.IMPLEMENTED[v.HOURLY] = B;
690
+ _.IMPLEMENTED[v.MINUTELY] = B;
691
+ _.IMPLEMENTED[v.DAILY] = ["byhour"].concat(B);
692
+ _.IMPLEMENTED[v.WEEKLY] = B;
693
+ _.IMPLEMENTED[v.MONTHLY] = B;
694
+ _.IMPLEMENTED[v.YEARLY] = ["byweekno", "byyearday"].concat(B);
695
+ var Qe = function(t, e, r, n) {
696
+ return new _(t, e, r, n).toString();
697
+ }, Ve = _.isFullyConvertible, $ = (
698
+ /** @class */
699
+ (function() {
700
+ function t(e, r, n, a) {
701
+ this.hour = e, this.minute = r, this.second = n, this.millisecond = a || 0;
702
+ }
703
+ return t.prototype.getHours = function() {
704
+ return this.hour;
705
+ }, t.prototype.getMinutes = function() {
706
+ return this.minute;
707
+ }, t.prototype.getSeconds = function() {
708
+ return this.second;
709
+ }, t.prototype.getMilliseconds = function() {
710
+ return this.millisecond;
711
+ }, t.prototype.getTime = function() {
712
+ return (this.hour * 60 * 60 + this.minute * 60 + this.second) * 1e3 + this.millisecond;
713
+ }, t;
714
+ })()
715
+ ), $e = (
716
+ /** @class */
717
+ (function(t) {
718
+ Ne(e, t);
719
+ function e(r, n, a, i, o, s, u) {
720
+ var h = t.call(this, i, o, s, u) || this;
721
+ return h.year = r, h.month = n, h.day = a, h;
722
+ }
723
+ return e.fromDate = function(r) {
724
+ return new this(r.getUTCFullYear(), r.getUTCMonth() + 1, r.getUTCDate(), r.getUTCHours(), r.getUTCMinutes(), r.getUTCSeconds(), r.valueOf() % 1e3);
725
+ }, e.prototype.getWeekday = function() {
726
+ return z(new Date(this.getTime()));
727
+ }, e.prototype.getTime = function() {
728
+ return new Date(Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second, this.millisecond)).getTime();
729
+ }, e.prototype.getDay = function() {
730
+ return this.day;
731
+ }, e.prototype.getMonth = function() {
732
+ return this.month;
733
+ }, e.prototype.getYear = function() {
734
+ return this.year;
735
+ }, e.prototype.addYears = function(r) {
736
+ this.year += r;
737
+ }, e.prototype.addMonths = function(r) {
738
+ if (this.month += r, this.month > 12) {
739
+ var n = Math.floor(this.month / 12), a = U(this.month, 12);
740
+ this.month = a, this.year += n, this.month === 0 && (this.month = 12, --this.year);
741
+ }
742
+ }, e.prototype.addWeekly = function(r, n) {
743
+ n > this.getWeekday() ? this.day += -(this.getWeekday() + 1 + (6 - n)) + r * 7 : this.day += -(this.getWeekday() - n) + r * 7, this.fixDay();
744
+ }, e.prototype.addDaily = function(r) {
745
+ this.day += r, this.fixDay();
746
+ }, e.prototype.addHours = function(r, n, a) {
747
+ for (n && (this.hour += Math.floor((23 - this.hour) / r) * r); ; ) {
748
+ this.hour += r;
749
+ var i = ee(this.hour, 24), o = i.div, s = i.mod;
750
+ if (o && (this.hour = s, this.addDaily(o)), A(a) || T(a, this.hour))
751
+ break;
752
+ }
753
+ }, e.prototype.addMinutes = function(r, n, a, i) {
754
+ for (n && (this.minute += Math.floor((1439 - (this.hour * 60 + this.minute)) / r) * r); ; ) {
755
+ this.minute += r;
756
+ var o = ee(this.minute, 60), s = o.div, u = o.mod;
757
+ if (s && (this.minute = u, this.addHours(s, !1, a)), (A(a) || T(a, this.hour)) && (A(i) || T(i, this.minute)))
758
+ break;
759
+ }
760
+ }, e.prototype.addSeconds = function(r, n, a, i, o) {
761
+ for (n && (this.second += Math.floor((86399 - (this.hour * 3600 + this.minute * 60 + this.second)) / r) * r); ; ) {
762
+ this.second += r;
763
+ var s = ee(this.second, 60), u = s.div, h = s.mod;
764
+ if (u && (this.second = h, this.addMinutes(u, !1, a, i)), (A(a) || T(a, this.hour)) && (A(i) || T(i, this.minute)) && (A(o) || T(o, this.second)))
765
+ break;
766
+ }
767
+ }, e.prototype.fixDay = function() {
768
+ if (!(this.day <= 28)) {
769
+ var r = ce(this.year, this.month - 1)[1];
770
+ if (!(this.day <= r))
771
+ for (; this.day > r; ) {
772
+ if (this.day -= r, ++this.month, this.month === 13 && (this.month = 1, ++this.year, this.year > De))
773
+ return;
774
+ r = ce(this.year, this.month - 1)[1];
775
+ }
776
+ }
777
+ }, e.prototype.add = function(r, n) {
778
+ var a = r.freq, i = r.interval, o = r.wkst, s = r.byhour, u = r.byminute, h = r.bysecond;
779
+ switch (a) {
780
+ case v.YEARLY:
781
+ return this.addYears(i);
782
+ case v.MONTHLY:
783
+ return this.addMonths(i);
784
+ case v.WEEKLY:
785
+ return this.addWeekly(i, o);
786
+ case v.DAILY:
787
+ return this.addDaily(i);
788
+ case v.HOURLY:
789
+ return this.addHours(i, n, s);
790
+ case v.MINUTELY:
791
+ return this.addMinutes(i, n, s, u);
792
+ case v.SECONDLY:
793
+ return this.addSeconds(i, n, s, u, h);
794
+ }
795
+ }, e;
796
+ })($)
797
+ );
798
+ function Ae(t) {
799
+ for (var e = [], r = Object.keys(t), n = 0, a = r; n < a.length; n++) {
800
+ var i = a[n];
801
+ T(Ut, i) || e.push(i), Ye(t[i]) && !G(t[i]) && e.push(i);
802
+ }
803
+ if (e.length)
804
+ throw new Error("Invalid options: " + e.join(", "));
805
+ return I({}, t);
806
+ }
807
+ function Xe(t) {
808
+ var e = I(I({}, fe), Ae(t));
809
+ if (E(e.byeaster) && (e.freq = y.YEARLY), !(E(e.freq) && y.FREQUENCIES[e.freq]))
810
+ throw new Error("Invalid frequency: ".concat(e.freq, " ").concat(t.freq));
811
+ if (e.dtstart || (e.dtstart = new Date((/* @__PURE__ */ new Date()).setMilliseconds(0))), E(e.wkst) ? L(e.wkst) || (e.wkst = e.wkst.weekday) : e.wkst = y.MO.weekday, E(e.bysetpos)) {
812
+ L(e.bysetpos) && (e.bysetpos = [e.bysetpos]);
813
+ for (var r = 0; r < e.bysetpos.length; r++) {
814
+ var n = e.bysetpos[r];
815
+ if (n === 0 || !(n >= -366 && n <= 366))
816
+ throw new Error("bysetpos must be between 1 and 366, or between -366 and -1");
817
+ }
818
+ }
819
+ if (!(e.byweekno || D(e.byweekno) || D(e.byyearday) || e.bymonthday || D(e.bymonthday) || E(e.byweekday) || E(e.byeaster)))
820
+ switch (e.freq) {
821
+ case y.YEARLY:
822
+ e.bymonth || (e.bymonth = e.dtstart.getUTCMonth() + 1), e.bymonthday = e.dtstart.getUTCDate();
823
+ break;
824
+ case y.MONTHLY:
825
+ e.bymonthday = e.dtstart.getUTCDate();
826
+ break;
827
+ case y.WEEKLY:
828
+ e.byweekday = [z(e.dtstart)];
829
+ break;
830
+ }
831
+ if (E(e.bymonth) && !S(e.bymonth) && (e.bymonth = [e.bymonth]), E(e.byyearday) && !S(e.byyearday) && L(e.byyearday) && (e.byyearday = [e.byyearday]), !E(e.bymonthday))
832
+ e.bymonthday = [], e.bynmonthday = [];
833
+ else if (S(e.bymonthday)) {
834
+ for (var a = [], i = [], r = 0; r < e.bymonthday.length; r++) {
835
+ var n = e.bymonthday[r];
836
+ n > 0 ? a.push(n) : n < 0 && i.push(n);
837
+ }
838
+ e.bymonthday = a, e.bynmonthday = i;
839
+ } else e.bymonthday < 0 ? (e.bynmonthday = [e.bymonthday], e.bymonthday = []) : (e.bynmonthday = [], e.bymonthday = [e.bymonthday]);
840
+ if (E(e.byweekno) && !S(e.byweekno) && (e.byweekno = [e.byweekno]), !E(e.byweekday))
841
+ e.bynweekday = null;
842
+ else if (L(e.byweekday))
843
+ e.byweekday = [e.byweekday], e.bynweekday = null;
844
+ else if (le(e.byweekday))
845
+ e.byweekday = [x.fromStr(e.byweekday).weekday], e.bynweekday = null;
846
+ else if (e.byweekday instanceof x)
847
+ !e.byweekday.n || e.freq > y.MONTHLY ? (e.byweekday = [e.byweekday.weekday], e.bynweekday = null) : (e.bynweekday = [[e.byweekday.weekday, e.byweekday.n]], e.byweekday = null);
848
+ else {
849
+ for (var o = [], s = [], r = 0; r < e.byweekday.length; r++) {
850
+ var u = e.byweekday[r];
851
+ if (L(u)) {
852
+ o.push(u);
853
+ continue;
854
+ } else if (le(u)) {
855
+ o.push(x.fromStr(u).weekday);
856
+ continue;
857
+ }
858
+ !u.n || e.freq > y.MONTHLY ? o.push(u.weekday) : s.push([u.weekday, u.n]);
859
+ }
860
+ e.byweekday = D(o) ? o : null, e.bynweekday = D(s) ? s : null;
861
+ }
862
+ return E(e.byhour) ? L(e.byhour) && (e.byhour = [e.byhour]) : e.byhour = e.freq < y.HOURLY ? [e.dtstart.getUTCHours()] : null, E(e.byminute) ? L(e.byminute) && (e.byminute = [e.byminute]) : e.byminute = e.freq < y.MINUTELY ? [e.dtstart.getUTCMinutes()] : null, E(e.bysecond) ? L(e.bysecond) && (e.bysecond = [e.bysecond]) : e.bysecond = e.freq < y.SECONDLY ? [e.dtstart.getUTCSeconds()] : null, { parsedOptions: e };
863
+ }
864
+ function et(t) {
865
+ var e = t.dtstart.getTime() % 1e3;
866
+ if (!ue(t.freq))
867
+ return [];
868
+ var r = [];
869
+ return t.byhour.forEach(function(n) {
870
+ t.byminute.forEach(function(a) {
871
+ t.bysecond.forEach(function(i) {
872
+ r.push(new $(n, a, i, e));
873
+ });
874
+ });
875
+ }), r;
876
+ }
877
+ function tt(t) {
878
+ var e = t.split(`
879
+ `).map(rt).filter(function(r) {
880
+ return r !== null;
881
+ });
882
+ return I(I({}, e[0]), e[1]);
883
+ }
884
+ function oe(t) {
885
+ var e = {}, r = /DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);
886
+ if (!r)
887
+ return e;
888
+ var n = r[1], a = r[2];
889
+ return n && (e.tzid = n), e.dtstart = Ue(a), e;
890
+ }
891
+ function rt(t) {
892
+ if (t = t.replace(/^\s+|\s+$/, ""), !t.length)
893
+ return null;
894
+ var e = /^([A-Z]+?)[:;]/.exec(t.toUpperCase());
895
+ if (!e)
896
+ return ve(t);
897
+ var r = e[1];
898
+ switch (r.toUpperCase()) {
899
+ case "RRULE":
900
+ case "EXRULE":
901
+ return ve(t);
902
+ case "DTSTART":
903
+ return oe(t);
904
+ default:
905
+ throw new Error("Unsupported RFC prop ".concat(r, " in ").concat(t));
906
+ }
907
+ }
908
+ function ve(t) {
909
+ var e = t.replace(/^RRULE:/i, ""), r = oe(e), n = t.replace(/^(?:RRULE|EXRULE):/i, "").split(";");
910
+ return n.forEach(function(a) {
911
+ var i = a.split("="), o = i[0], s = i[1];
912
+ switch (o.toUpperCase()) {
913
+ case "FREQ":
914
+ r.freq = v[s.toUpperCase()];
915
+ break;
916
+ case "WKST":
917
+ r.wkst = N[s.toUpperCase()];
918
+ break;
919
+ case "COUNT":
920
+ case "INTERVAL":
921
+ case "BYSETPOS":
922
+ case "BYMONTH":
923
+ case "BYMONTHDAY":
924
+ case "BYYEARDAY":
925
+ case "BYWEEKNO":
926
+ case "BYHOUR":
927
+ case "BYMINUTE":
928
+ case "BYSECOND":
929
+ var u = nt(s), h = o.toLowerCase();
930
+ r[h] = u;
931
+ break;
932
+ case "BYWEEKDAY":
933
+ case "BYDAY":
934
+ r.byweekday = it(s);
935
+ break;
936
+ case "DTSTART":
937
+ case "TZID":
938
+ var c = oe(t);
939
+ r.tzid = c.tzid, r.dtstart = c.dtstart;
940
+ break;
941
+ case "UNTIL":
942
+ r.until = Ue(s);
943
+ break;
944
+ case "BYEASTER":
945
+ r.byeaster = Number(s);
946
+ break;
947
+ default:
948
+ throw new Error("Unknown RRULE property '" + o + "'");
949
+ }
950
+ }), r;
951
+ }
952
+ function nt(t) {
953
+ if (t.indexOf(",") !== -1) {
954
+ var e = t.split(",");
955
+ return e.map(we);
956
+ }
957
+ return we(t);
958
+ }
959
+ function we(t) {
960
+ return /^[+-]?\d+$/.test(t) ? Number(t) : t;
961
+ }
962
+ function it(t) {
963
+ var e = t.split(",");
964
+ return e.map(function(r) {
965
+ if (r.length === 2)
966
+ return N[r];
967
+ var n = r.match(/^([+-]?\d{1,2})([A-Z]{2})$/);
968
+ if (!n || n.length < 3)
969
+ throw new SyntaxError("Invalid weekday string: ".concat(r));
970
+ var a = Number(n[1]), i = n[2], o = N[i].weekday;
971
+ return new x(o, a);
972
+ });
973
+ }
974
+ var Re = (
975
+ /** @class */
976
+ (function() {
977
+ function t(e, r) {
978
+ if (isNaN(e.getTime()))
979
+ throw new RangeError("Invalid date passed to DateWithZone");
980
+ this.date = e, this.tzid = r;
981
+ }
982
+ return Object.defineProperty(t.prototype, "isUTC", {
983
+ get: function() {
984
+ return !this.tzid || this.tzid.toUpperCase() === "UTC";
985
+ },
986
+ enumerable: !1,
987
+ configurable: !0
988
+ }), t.prototype.toString = function() {
989
+ var e = Se(this.date.getTime(), this.isUTC);
990
+ return this.isUTC ? ":".concat(e) : ";TZID=".concat(this.tzid, ":").concat(e);
991
+ }, t.prototype.getTime = function() {
992
+ return this.date.getTime();
993
+ }, t.prototype.rezonedDate = function() {
994
+ return this.isUTC ? this.date : ze(this.date, this.tzid);
995
+ }, t;
996
+ })()
997
+ );
998
+ function ke(t) {
999
+ for (var e = [], r = "", n = Object.keys(t), a = Object.keys(fe), i = 0; i < n.length; i++)
1000
+ if (n[i] !== "tzid" && T(a, n[i])) {
1001
+ var o = n[i].toUpperCase(), s = t[n[i]], u = "";
1002
+ if (!(!E(s) || S(s) && !s.length)) {
1003
+ switch (o) {
1004
+ case "FREQ":
1005
+ u = y.FREQUENCIES[t.freq];
1006
+ break;
1007
+ case "WKST":
1008
+ L(s) ? u = new x(s).toString() : u = s.toString();
1009
+ break;
1010
+ case "BYWEEKDAY":
1011
+ o = "BYDAY", u = qe(s).map(function(d) {
1012
+ return d instanceof x ? d : S(d) ? new x(d[0], d[1]) : new x(d);
1013
+ }).toString();
1014
+ break;
1015
+ case "DTSTART":
1016
+ r = at(s, t.tzid);
1017
+ break;
1018
+ case "UNTIL":
1019
+ u = Se(s, !t.tzid);
1020
+ break;
1021
+ default:
1022
+ if (S(s)) {
1023
+ for (var h = [], c = 0; c < s.length; c++)
1024
+ h[c] = String(s[c]);
1025
+ u = h.toString();
1026
+ } else
1027
+ u = String(s);
1028
+ }
1029
+ u && e.push([o, u]);
1030
+ }
1031
+ }
1032
+ var b = e.map(function(d) {
1033
+ var w = d[0], k = d[1];
1034
+ return "".concat(w, "=").concat(k.toString());
1035
+ }).join(";"), l = "";
1036
+ return b !== "" && (l = "RRULE:".concat(b)), [r, l].filter(function(d) {
1037
+ return !!d;
1038
+ }).join(`
1039
+ `);
1040
+ }
1041
+ function at(t, e) {
1042
+ return t ? "DTSTART" + new Re(new Date(t), e).toString() : "";
1043
+ }
1044
+ function st(t, e) {
1045
+ return Array.isArray(t) ? !Array.isArray(e) || t.length !== e.length ? !1 : t.every(function(r, n) {
1046
+ return r.getTime() === e[n].getTime();
1047
+ }) : t instanceof Date ? e instanceof Date && t.getTime() === e.getTime() : t === e;
1048
+ }
1049
+ var ot = (
1050
+ /** @class */
1051
+ (function() {
1052
+ function t() {
1053
+ this.all = !1, this.before = [], this.after = [], this.between = [];
1054
+ }
1055
+ return t.prototype._cacheAdd = function(e, r, n) {
1056
+ r && (r = r instanceof Date ? ie(r) : de(r)), e === "all" ? this.all = r : (n._value = r, this[e].push(n));
1057
+ }, t.prototype._cacheGet = function(e, r) {
1058
+ var n = !1, a = r ? Object.keys(r) : [], i = function(c) {
1059
+ for (var b = 0; b < a.length; b++) {
1060
+ var l = a[b];
1061
+ if (!st(r[l], c[l]))
1062
+ return !0;
1063
+ }
1064
+ return !1;
1065
+ }, o = this[e];
1066
+ if (e === "all")
1067
+ n = this.all;
1068
+ else if (S(o))
1069
+ for (var s = 0; s < o.length; s++) {
1070
+ var u = o[s];
1071
+ if (!(a.length && i(u))) {
1072
+ n = u._value;
1073
+ break;
1074
+ }
1075
+ }
1076
+ if (!n && this.all) {
1077
+ for (var h = new F(e, r), s = 0; s < this.all.length && h.accept(this.all[s]); s++)
1078
+ ;
1079
+ n = h.getValue(), this._cacheAdd(e, n, r);
1080
+ }
1081
+ return S(n) ? de(n) : n instanceof Date ? ie(n) : n;
1082
+ }, t;
1083
+ })()
1084
+ ), ut = f(f(f(f(f(f(f(f(f(f(f(f(f([], p(1, 31), !0), p(2, 28), !0), p(3, 31), !0), p(4, 30), !0), p(5, 31), !0), p(6, 30), !0), p(7, 31), !0), p(8, 31), !0), p(9, 30), !0), p(10, 31), !0), p(11, 30), !0), p(12, 31), !0), p(1, 7), !0), ft = f(f(f(f(f(f(f(f(f(f(f(f(f([], p(1, 31), !0), p(2, 29), !0), p(3, 31), !0), p(4, 30), !0), p(5, 31), !0), p(6, 30), !0), p(7, 31), !0), p(8, 31), !0), p(9, 30), !0), p(10, 31), !0), p(11, 30), !0), p(12, 31), !0), p(1, 7), !0), ht = R(1, 29), yt = R(1, 30), W = R(1, 31), O = R(1, 32), lt = f(f(f(f(f(f(f(f(f(f(f(f(f([], O, !0), yt, !0), O, !0), W, !0), O, !0), W, !0), O, !0), O, !0), W, !0), O, !0), W, !0), O, !0), O.slice(0, 7), !0), ct = f(f(f(f(f(f(f(f(f(f(f(f(f([], O, !0), ht, !0), O, !0), W, !0), O, !0), W, !0), O, !0), O, !0), W, !0), O, !0), W, !0), O, !0), O.slice(0, 7), !0), dt = R(-28, 0), bt = R(-29, 0), H = R(-30, 0), Y = R(-31, 0), mt = f(f(f(f(f(f(f(f(f(f(f(f(f([], Y, !0), bt, !0), Y, !0), H, !0), Y, !0), H, !0), Y, !0), Y, !0), H, !0), Y, !0), H, !0), Y, !0), Y.slice(0, 7), !0), pt = f(f(f(f(f(f(f(f(f(f(f(f(f([], Y, !0), dt, !0), Y, !0), H, !0), Y, !0), H, !0), Y, !0), Y, !0), H, !0), Y, !0), H, !0), Y, !0), Y.slice(0, 7), !0), vt = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366], wt = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], ge = (function() {
1085
+ for (var t = [], e = 0; e < 55; e++)
1086
+ t = t.concat(R(7));
1087
+ return t;
1088
+ })();
1089
+ function kt(t, e) {
1090
+ var r = P(t, 1, 1), n = Q(t) ? 366 : 365, a = Q(t + 1) ? 366 : 365, i = ne(r), o = z(r), s = I(I({ yearlen: n, nextyearlen: a, yearordinal: i, yearweekday: o }, gt(t)), { wnomask: null });
1091
+ if (A(e.byweekno))
1092
+ return s;
1093
+ s.wnomask = p(0, n + 7);
1094
+ var u, h, c = u = U(7 - o + e.wkst, 7);
1095
+ c >= 4 ? (c = 0, h = s.yearlen + U(o - e.wkst, 7)) : h = n - c;
1096
+ for (var b = Math.floor(h / 7), l = U(h, 7), d = Math.floor(b + l / 4), w = 0; w < e.byweekno.length; w++) {
1097
+ var k = e.byweekno[w];
1098
+ if (k < 0 && (k += d + 1), k > 0 && k <= d) {
1099
+ var m = void 0;
1100
+ k > 1 ? (m = c + (k - 1) * 7, c !== u && (m -= 7 - u)) : m = c;
1101
+ for (var g = 0; g < 7 && (s.wnomask[m] = 1, m++, s.wdaymask[m] !== e.wkst); g++)
1102
+ ;
1103
+ }
1104
+ }
1105
+ if (T(e.byweekno, 1)) {
1106
+ var m = c + d * 7;
1107
+ if (c !== u && (m -= 7 - u), m < n)
1108
+ for (var w = 0; w < 7 && (s.wnomask[m] = 1, m += 1, s.wdaymask[m] !== e.wkst); w++)
1109
+ ;
1110
+ }
1111
+ if (c) {
1112
+ var M = void 0;
1113
+ if (T(e.byweekno, -1))
1114
+ M = -1;
1115
+ else {
1116
+ var j = z(P(t - 1, 1, 1)), Z = U(7 - j.valueOf() + e.wkst, 7), X = Q(t - 1) ? 366 : 365, q = void 0;
1117
+ Z >= 4 ? (Z = 0, q = X + U(j - e.wkst, 7)) : q = n - c, M = Math.floor(52 + U(q, 7) / 4);
1118
+ }
1119
+ if (T(e.byweekno, M))
1120
+ for (var m = 0; m < c; m++)
1121
+ s.wnomask[m] = 1;
1122
+ }
1123
+ return s;
1124
+ }
1125
+ function gt(t) {
1126
+ var e = Q(t) ? 366 : 365, r = P(t, 1, 1), n = z(r);
1127
+ return e === 365 ? {
1128
+ mmask: ut,
1129
+ mdaymask: ct,
1130
+ nmdaymask: pt,
1131
+ wdaymask: ge.slice(n),
1132
+ mrange: wt
1133
+ } : {
1134
+ mmask: ft,
1135
+ mdaymask: lt,
1136
+ nmdaymask: mt,
1137
+ wdaymask: ge.slice(n),
1138
+ mrange: vt
1139
+ };
1140
+ }
1141
+ function Tt(t, e, r, n, a, i) {
1142
+ var o = {
1143
+ lastyear: t,
1144
+ lastmonth: e,
1145
+ nwdaymask: []
1146
+ }, s = [];
1147
+ if (i.freq === y.YEARLY)
1148
+ if (A(i.bymonth))
1149
+ s = [[0, r]];
1150
+ else
1151
+ for (var u = 0; u < i.bymonth.length; u++)
1152
+ e = i.bymonth[u], s.push(n.slice(e - 1, e + 1));
1153
+ else i.freq === y.MONTHLY && (s = [n.slice(e - 1, e + 1)]);
1154
+ if (A(s))
1155
+ return o;
1156
+ o.nwdaymask = p(0, r);
1157
+ for (var u = 0; u < s.length; u++)
1158
+ for (var h = s[u], c = h[0], b = h[1] - 1, l = 0; l < i.bynweekday.length; l++) {
1159
+ var d = void 0, w = i.bynweekday[l], k = w[0], m = w[1];
1160
+ m < 0 ? (d = b + (m + 1) * 7, d -= U(a[d] - k, 7)) : (d = c + (m - 1) * 7, d += U(7 - a[d] + k, 7)), c <= d && d <= b && (o.nwdaymask[d] = 1);
1161
+ }
1162
+ return o;
1163
+ }
1164
+ function Et(t, e) {
1165
+ e === void 0 && (e = 0);
1166
+ var r = t % 19, n = Math.floor(t / 100), a = t % 100, i = Math.floor(n / 4), o = n % 4, s = Math.floor((n + 8) / 25), u = Math.floor((n - s + 1) / 3), h = Math.floor(19 * r + n - i - u + 15) % 30, c = Math.floor(a / 4), b = a % 4, l = Math.floor(32 + 2 * o + 2 * c - h - b) % 7, d = Math.floor((r + 11 * h + 22 * l) / 451), w = Math.floor((h + l - 7 * d + 114) / 31), k = (h + l - 7 * d + 114) % 31 + 1, m = Date.UTC(t, w - 1, k + e), g = Date.UTC(t, 0, 1);
1167
+ return [Math.ceil((m - g) / (1e3 * 60 * 60 * 24))];
1168
+ }
1169
+ var Dt = (
1170
+ /** @class */
1171
+ (function() {
1172
+ function t(e) {
1173
+ this.options = e;
1174
+ }
1175
+ return t.prototype.rebuild = function(e, r) {
1176
+ var n = this.options;
1177
+ if (e !== this.lastyear && (this.yearinfo = kt(e, n)), D(n.bynweekday) && (r !== this.lastmonth || e !== this.lastyear)) {
1178
+ var a = this.yearinfo, i = a.yearlen, o = a.mrange, s = a.wdaymask;
1179
+ this.monthinfo = Tt(e, r, i, o, s, n);
1180
+ }
1181
+ E(n.byeaster) && (this.eastermask = Et(e, n.byeaster));
1182
+ }, Object.defineProperty(t.prototype, "lastyear", {
1183
+ get: function() {
1184
+ return this.monthinfo ? this.monthinfo.lastyear : null;
1185
+ },
1186
+ enumerable: !1,
1187
+ configurable: !0
1188
+ }), Object.defineProperty(t.prototype, "lastmonth", {
1189
+ get: function() {
1190
+ return this.monthinfo ? this.monthinfo.lastmonth : null;
1191
+ },
1192
+ enumerable: !1,
1193
+ configurable: !0
1194
+ }), Object.defineProperty(t.prototype, "yearlen", {
1195
+ get: function() {
1196
+ return this.yearinfo.yearlen;
1197
+ },
1198
+ enumerable: !1,
1199
+ configurable: !0
1200
+ }), Object.defineProperty(t.prototype, "yearordinal", {
1201
+ get: function() {
1202
+ return this.yearinfo.yearordinal;
1203
+ },
1204
+ enumerable: !1,
1205
+ configurable: !0
1206
+ }), Object.defineProperty(t.prototype, "mrange", {
1207
+ get: function() {
1208
+ return this.yearinfo.mrange;
1209
+ },
1210
+ enumerable: !1,
1211
+ configurable: !0
1212
+ }), Object.defineProperty(t.prototype, "wdaymask", {
1213
+ get: function() {
1214
+ return this.yearinfo.wdaymask;
1215
+ },
1216
+ enumerable: !1,
1217
+ configurable: !0
1218
+ }), Object.defineProperty(t.prototype, "mmask", {
1219
+ get: function() {
1220
+ return this.yearinfo.mmask;
1221
+ },
1222
+ enumerable: !1,
1223
+ configurable: !0
1224
+ }), Object.defineProperty(t.prototype, "wnomask", {
1225
+ get: function() {
1226
+ return this.yearinfo.wnomask;
1227
+ },
1228
+ enumerable: !1,
1229
+ configurable: !0
1230
+ }), Object.defineProperty(t.prototype, "nwdaymask", {
1231
+ get: function() {
1232
+ return this.monthinfo ? this.monthinfo.nwdaymask : [];
1233
+ },
1234
+ enumerable: !1,
1235
+ configurable: !0
1236
+ }), Object.defineProperty(t.prototype, "nextyearlen", {
1237
+ get: function() {
1238
+ return this.yearinfo.nextyearlen;
1239
+ },
1240
+ enumerable: !1,
1241
+ configurable: !0
1242
+ }), Object.defineProperty(t.prototype, "mdaymask", {
1243
+ get: function() {
1244
+ return this.yearinfo.mdaymask;
1245
+ },
1246
+ enumerable: !1,
1247
+ configurable: !0
1248
+ }), Object.defineProperty(t.prototype, "nmdaymask", {
1249
+ get: function() {
1250
+ return this.yearinfo.nmdaymask;
1251
+ },
1252
+ enumerable: !1,
1253
+ configurable: !0
1254
+ }), t.prototype.ydayset = function() {
1255
+ return [R(this.yearlen), 0, this.yearlen];
1256
+ }, t.prototype.mdayset = function(e, r) {
1257
+ for (var n = this.mrange[r - 1], a = this.mrange[r], i = p(null, this.yearlen), o = n; o < a; o++)
1258
+ i[o] = o;
1259
+ return [i, n, a];
1260
+ }, t.prototype.wdayset = function(e, r, n) {
1261
+ for (var a = p(null, this.yearlen + 7), i = ne(P(e, r, n)) - this.yearordinal, o = i, s = 0; s < 7 && (a[i] = i, ++i, this.wdaymask[i] !== this.options.wkst); s++)
1262
+ ;
1263
+ return [a, o, i];
1264
+ }, t.prototype.ddayset = function(e, r, n) {
1265
+ var a = p(null, this.yearlen), i = ne(P(e, r, n)) - this.yearordinal;
1266
+ return a[i] = i, [a, i, i + 1];
1267
+ }, t.prototype.htimeset = function(e, r, n, a) {
1268
+ var i = this, o = [];
1269
+ return this.options.byminute.forEach(function(s) {
1270
+ o = o.concat(i.mtimeset(e, s, n, a));
1271
+ }), ae(o), o;
1272
+ }, t.prototype.mtimeset = function(e, r, n, a) {
1273
+ var i = this.options.bysecond.map(function(o) {
1274
+ return new $(e, r, o, a);
1275
+ });
1276
+ return ae(i), i;
1277
+ }, t.prototype.stimeset = function(e, r, n, a) {
1278
+ return [new $(e, r, n, a)];
1279
+ }, t.prototype.getdayset = function(e) {
1280
+ switch (e) {
1281
+ case v.YEARLY:
1282
+ return this.ydayset.bind(this);
1283
+ case v.MONTHLY:
1284
+ return this.mdayset.bind(this);
1285
+ case v.WEEKLY:
1286
+ return this.wdayset.bind(this);
1287
+ case v.DAILY:
1288
+ return this.ddayset.bind(this);
1289
+ default:
1290
+ return this.ddayset.bind(this);
1291
+ }
1292
+ }, t.prototype.gettimeset = function(e) {
1293
+ switch (e) {
1294
+ case v.HOURLY:
1295
+ return this.htimeset.bind(this);
1296
+ case v.MINUTELY:
1297
+ return this.mtimeset.bind(this);
1298
+ case v.SECONDLY:
1299
+ return this.stimeset.bind(this);
1300
+ }
1301
+ }, t;
1302
+ })()
1303
+ );
1304
+ function Ot(t, e, r, n, a, i) {
1305
+ for (var o = [], s = 0; s < t.length; s++) {
1306
+ var u = void 0, h = void 0, c = t[s];
1307
+ c < 0 ? (u = Math.floor(c / e.length), h = U(c, e.length)) : (u = Math.floor((c - 1) / e.length), h = U(c - 1, e.length));
1308
+ for (var b = [], l = r; l < n; l++) {
1309
+ var d = i[l];
1310
+ E(d) && b.push(d);
1311
+ }
1312
+ var w = void 0;
1313
+ u < 0 ? w = b.slice(u)[0] : w = b[u];
1314
+ var k = e[h], m = xe(a.yearordinal + w), g = Me(m, k);
1315
+ T(o, g) || o.push(g);
1316
+ }
1317
+ return ae(o), o;
1318
+ }
1319
+ function Yt(t, e) {
1320
+ var r = e.dtstart, n = e.freq, a = e.interval, i = e.until, o = e.bysetpos, s = e.count;
1321
+ if (s === 0 || a === 0)
1322
+ return C(t);
1323
+ var u = $e.fromDate(r), h = new Dt(e);
1324
+ h.rebuild(u.year, u.month);
1325
+ for (var c = St(h, u, e); ; ) {
1326
+ var b = h.getdayset(n)(u.year, u.month, u.day), l = b[0], d = b[1], w = b[2], k = Mt(l, d, w, h, e);
1327
+ if (D(o))
1328
+ for (var m = Ot(o, c, d, w, h, l), g = 0; g < m.length; g++) {
1329
+ var M = m[g];
1330
+ if (i && M > i)
1331
+ return C(t);
1332
+ if (M >= r) {
1333
+ var j = Te(M, e);
1334
+ if (!t.accept(j) || s && (--s, !s))
1335
+ return C(t);
1336
+ }
1337
+ }
1338
+ else
1339
+ for (var g = d; g < w; g++) {
1340
+ var Z = l[g];
1341
+ if (E(Z))
1342
+ for (var X = xe(h.yearordinal + Z), q = 0; q < c.length; q++) {
1343
+ var Ce = c[q], M = Me(X, Ce);
1344
+ if (i && M > i)
1345
+ return C(t);
1346
+ if (M >= r) {
1347
+ var j = Te(M, e);
1348
+ if (!t.accept(j) || s && (--s, !s))
1349
+ return C(t);
1350
+ }
1351
+ }
1352
+ }
1353
+ if (e.interval === 0 || (u.add(e, k), u.year > De))
1354
+ return C(t);
1355
+ ue(n) || (c = h.gettimeset(n)(u.hour, u.minute, u.second, 0)), h.rebuild(u.year, u.month);
1356
+ }
1357
+ }
1358
+ function xt(t, e, r) {
1359
+ var n = r.bymonth, a = r.byweekno, i = r.byweekday, o = r.byeaster, s = r.bymonthday, u = r.bynmonthday, h = r.byyearday;
1360
+ return D(n) && !T(n, t.mmask[e]) || D(a) && !t.wnomask[e] || D(i) && !T(i, t.wdaymask[e]) || D(t.nwdaymask) && !t.nwdaymask[e] || o !== null && !T(t.eastermask, e) || (D(s) || D(u)) && !T(s, t.mdaymask[e]) && !T(u, t.nmdaymask[e]) || D(h) && (e < t.yearlen && !T(h, e + 1) && !T(h, -t.yearlen + e) || e >= t.yearlen && !T(h, e + 1 - t.yearlen) && !T(h, -t.nextyearlen + e - t.yearlen));
1361
+ }
1362
+ function Te(t, e) {
1363
+ return new Re(t, e.tzid).rezonedDate();
1364
+ }
1365
+ function C(t) {
1366
+ return t.getValue();
1367
+ }
1368
+ function Mt(t, e, r, n, a) {
1369
+ for (var i = !1, o = e; o < r; o++) {
1370
+ var s = t[o];
1371
+ i = xt(n, s, a), i && (t[s] = null);
1372
+ }
1373
+ return i;
1374
+ }
1375
+ function St(t, e, r) {
1376
+ var n = r.freq, a = r.byhour, i = r.byminute, o = r.bysecond;
1377
+ return ue(n) ? et(r) : n >= y.HOURLY && D(a) && !T(a, e.hour) || n >= y.MINUTELY && D(i) && !T(i, e.minute) || n >= y.SECONDLY && D(o) && !T(o, e.second) ? [] : t.gettimeset(n)(e.hour, e.minute, e.second, e.millisecond);
1378
+ }
1379
+ var N = {
1380
+ MO: new x(0),
1381
+ TU: new x(1),
1382
+ WE: new x(2),
1383
+ TH: new x(3),
1384
+ FR: new x(4),
1385
+ SA: new x(5),
1386
+ SU: new x(6)
1387
+ }, fe = {
1388
+ freq: v.YEARLY,
1389
+ dtstart: null,
1390
+ interval: 1,
1391
+ wkst: N.MO,
1392
+ count: null,
1393
+ until: null,
1394
+ tzid: null,
1395
+ bysetpos: null,
1396
+ bymonth: null,
1397
+ bymonthday: null,
1398
+ bynmonthday: null,
1399
+ byyearday: null,
1400
+ byweekno: null,
1401
+ byweekday: null,
1402
+ bynweekday: null,
1403
+ byhour: null,
1404
+ byminute: null,
1405
+ bysecond: null,
1406
+ byeaster: null
1407
+ }, Ut = Object.keys(fe), y = (
1408
+ /** @class */
1409
+ (function() {
1410
+ function t(e, r) {
1411
+ e === void 0 && (e = {}), r === void 0 && (r = !1), this._cache = r ? null : new ot(), this.origOptions = Ae(e);
1412
+ var n = Xe(e).parsedOptions;
1413
+ this.options = n;
1414
+ }
1415
+ return t.parseText = function(e, r) {
1416
+ return Le(e, r);
1417
+ }, t.fromText = function(e, r) {
1418
+ return Je(e, r);
1419
+ }, t.fromString = function(e) {
1420
+ return new t(t.parseString(e) || void 0);
1421
+ }, t.prototype._iter = function(e) {
1422
+ return Yt(e, this.options);
1423
+ }, t.prototype._cacheGet = function(e, r) {
1424
+ return this._cache ? this._cache._cacheGet(e, r) : !1;
1425
+ }, t.prototype._cacheAdd = function(e, r, n) {
1426
+ if (this._cache)
1427
+ return this._cache._cacheAdd(e, r, n);
1428
+ }, t.prototype.all = function(e) {
1429
+ if (e)
1430
+ return this._iter(new me("all", {}, e));
1431
+ var r = this._cacheGet("all");
1432
+ return r === !1 && (r = this._iter(new F("all", {})), this._cacheAdd("all", r)), r;
1433
+ }, t.prototype.between = function(e, r, n, a) {
1434
+ if (n === void 0 && (n = !1), !G(e) || !G(r))
1435
+ throw new Error("Invalid date passed in to RRule.between");
1436
+ var i = {
1437
+ before: r,
1438
+ after: e,
1439
+ inc: n
1440
+ };
1441
+ if (a)
1442
+ return this._iter(new me("between", i, a));
1443
+ var o = this._cacheGet("between", i);
1444
+ return o === !1 && (o = this._iter(new F("between", i)), this._cacheAdd("between", o, i)), o;
1445
+ }, t.prototype.before = function(e, r) {
1446
+ if (r === void 0 && (r = !1), !G(e))
1447
+ throw new Error("Invalid date passed in to RRule.before");
1448
+ var n = { dt: e, inc: r }, a = this._cacheGet("before", n);
1449
+ return a === !1 && (a = this._iter(new F("before", n)), this._cacheAdd("before", a, n)), a;
1450
+ }, t.prototype.after = function(e, r) {
1451
+ if (r === void 0 && (r = !1), !G(e))
1452
+ throw new Error("Invalid date passed in to RRule.after");
1453
+ var n = { dt: e, inc: r }, a = this._cacheGet("after", n);
1454
+ return a === !1 && (a = this._iter(new F("after", n)), this._cacheAdd("after", a, n)), a;
1455
+ }, t.prototype.count = function() {
1456
+ return this.all().length;
1457
+ }, t.prototype.toString = function() {
1458
+ return ke(this.origOptions);
1459
+ }, t.prototype.toText = function(e, r, n) {
1460
+ return Qe(this, e, r, n);
1461
+ }, t.prototype.isFullyConvertibleToText = function() {
1462
+ return Ve(this);
1463
+ }, t.prototype.clone = function() {
1464
+ return new t(this.origOptions);
1465
+ }, t.FREQUENCIES = [
1466
+ "YEARLY",
1467
+ "MONTHLY",
1468
+ "WEEKLY",
1469
+ "DAILY",
1470
+ "HOURLY",
1471
+ "MINUTELY",
1472
+ "SECONDLY"
1473
+ ], t.YEARLY = v.YEARLY, t.MONTHLY = v.MONTHLY, t.WEEKLY = v.WEEKLY, t.DAILY = v.DAILY, t.HOURLY = v.HOURLY, t.MINUTELY = v.MINUTELY, t.SECONDLY = v.SECONDLY, t.MO = N.MO, t.TU = N.TU, t.WE = N.WE, t.TH = N.TH, t.FR = N.FR, t.SA = N.SA, t.SU = N.SU, t.parseString = tt, t.optionsToString = ke, t;
1474
+ })()
1475
+ );
1476
+ const Nt = (t) => {
1477
+ const e = {};
1478
+ (!t.startDate || !(t.startDate instanceof Date) || isNaN(t.startDate.getTime())) && (e.startDate = "Debe seleccionar una fecha de inicio");
1479
+ const r = {};
1480
+ switch (t.frequency) {
1481
+ case "weekly": {
1482
+ const n = t.frequencySettings;
1483
+ (!n || n.length === 0) && (r.weeklyWeekdays = "Debe seleccionar al menos un día de la semana");
1484
+ break;
1485
+ }
1486
+ case "monthly": {
1487
+ const n = t.frequencySettings;
1488
+ if (!n) {
1489
+ r.monthlyDayOrder = "Configuración mensual incompleta";
1490
+ break;
1491
+ }
1492
+ n.type === "relative" && (n.dayOrder || (r.monthlyDayOrder = "Debe seleccionar un orden"), n.weekDay || (r.monthlyWeekDay = "Debe seleccionar un día de la semana")), n.type === "absolute" && (n.dayOfMonth || (r.monthlyDayOfMonth = "Debe seleccionar un día del mes"));
1493
+ break;
1494
+ }
1495
+ case "yearly": {
1496
+ const n = t.frequencySettings;
1497
+ (!n || !n.month) && (r.yearlyMonth = "Debe seleccionar un mes"), (!n || !n.day) && (r.yearlyDay = "Debe seleccionar un día");
1498
+ break;
1499
+ }
1500
+ case "custom": {
1501
+ const n = t.frequencySettings;
1502
+ (!n || !n.interval || n.interval < 1) && (r.customInterval = "Debe seleccionar un intervalo válido"), n?.frequency === "weekly" && (!n.weekdays || n.weekdays.length === 0) && (r.customWeekdays = "Debe seleccionar al menos un día de la semana"), n?.frequency === "monthly" && (n.dayOfMonth || (r.customDayOfMonth = "Debe seleccionar un día del mes"));
1503
+ break;
1504
+ }
1505
+ }
1506
+ return Object.keys(r).length > 0 && (e.frequencySettings = r), e;
1507
+ }, Lt = (t) => {
1508
+ const e = Nt(t);
1509
+ return !(e.startDate || e.frequencySettings && Object.keys(e.frequencySettings).length > 0);
1510
+ }, At = (t) => {
1511
+ const { selected: e } = t, r = e[0], n = e[e.length - 1];
1512
+ return /* @__PURE__ */ J.jsx("div", { className: "w-full ", children: /* @__PURE__ */ J.jsx(
1513
+ He,
1514
+ {
1515
+ className: "w-full! border-neutral-strong-default",
1516
+ mode: "multiple",
1517
+ selected: e,
1518
+ displayValue: e,
1519
+ startMonth: r,
1520
+ endMonth: n,
1521
+ readonly: !0
1522
+ }
1523
+ ) });
1524
+ }, Rt = 60, te = {
1525
+ monday: y.MO,
1526
+ tuesday: y.TU,
1527
+ wednesday: y.WE,
1528
+ thursday: y.TH,
1529
+ friday: y.FR,
1530
+ saturday: y.SA,
1531
+ sunday: y.SU
1532
+ }, Ct = {
1533
+ first: 1,
1534
+ second: 2,
1535
+ third: 3,
1536
+ fourth: 4,
1537
+ last: -1
1538
+ };
1539
+ function It(t) {
1540
+ const { startDate: e, frequency: r, frequencySettings: n } = t;
1541
+ if (!(e instanceof Date) || Number.isNaN(e.getTime()))
1542
+ return null;
1543
+ const a = {
1544
+ dtstart: new Date(e.setHours(0, 0, 0, 0))
1545
+ };
1546
+ switch (r) {
1547
+ case "weekly": {
1548
+ const o = (n ?? []).map((s) => te[s]);
1549
+ return o.length ? new y({
1550
+ ...a,
1551
+ freq: y.WEEKLY,
1552
+ interval: 1,
1553
+ byweekday: o
1554
+ }) : null;
1555
+ }
1556
+ case "monthly": {
1557
+ const i = n;
1558
+ if (!i)
1559
+ return null;
1560
+ if (i.type === "relative") {
1561
+ const u = te[i.weekDay], h = Ct[i.dayOrder];
1562
+ return !u || !h ? null : new y({
1563
+ ...a,
1564
+ freq: y.MONTHLY,
1565
+ interval: 1,
1566
+ byweekday: u,
1567
+ bysetpos: h
1568
+ });
1569
+ }
1570
+ const o = i.dayOfMonth;
1571
+ if (!o)
1572
+ return null;
1573
+ const s = o === "last" ? -1 : Number(o);
1574
+ return !s || Number.isNaN(s) ? null : new y({
1575
+ ...a,
1576
+ freq: y.MONTHLY,
1577
+ interval: 1,
1578
+ bymonthday: s
1579
+ });
1580
+ }
1581
+ case "yearly": {
1582
+ const i = n;
1583
+ return !i || !i.month || !i.day ? null : new y({
1584
+ ...a,
1585
+ freq: y.YEARLY,
1586
+ interval: 1,
1587
+ bymonth: i.month,
1588
+ bymonthday: Number(i.day)
1589
+ });
1590
+ }
1591
+ case "custom": {
1592
+ const i = n;
1593
+ if (!i || !i.interval || i.interval < 1)
1594
+ return null;
1595
+ if (i.frequency === "weekly") {
1596
+ const u = (i.weekdays ?? []).map((h) => te[h]);
1597
+ return u.length ? new y({
1598
+ ...a,
1599
+ freq: y.WEEKLY,
1600
+ interval: i.interval,
1601
+ byweekday: u
1602
+ }) : null;
1603
+ }
1604
+ const o = i.dayOfMonth;
1605
+ if (!o)
1606
+ return null;
1607
+ const s = o === "last" ? -1 : Number(o);
1608
+ return !s || Number.isNaN(s) ? null : new y({
1609
+ ...a,
1610
+ freq: y.MONTHLY,
1611
+ interval: i.interval,
1612
+ bymonthday: s
1613
+ });
1614
+ }
1615
+ default:
1616
+ return null;
1617
+ }
1618
+ }
1619
+ function _t(t, e, r, n) {
1620
+ const a = n ?? Rt, i = e;
1621
+ let o;
1622
+ r ? o = r : (o = new Date(i.getTime()), o.setFullYear(o.getFullYear() + 1));
1623
+ const s = t.between(i, o, !0);
1624
+ return s.length > a ? s.slice(0, a) : s;
1625
+ }
1626
+ const Wt = (t) => {
1627
+ const {
1628
+ value: e,
1629
+ defaultValue: r,
1630
+ onChange: n,
1631
+ errors: a,
1632
+ onRRuleChange: i,
1633
+ showPreview: o = !0,
1634
+ previewCount: s,
1635
+ previewUntil: u
1636
+ } = t, h = e !== void 0, [c, b] = he(
1637
+ () => e ?? r ?? {
1638
+ frequency: "weekly",
1639
+ startDate: /* @__PURE__ */ new Date(),
1640
+ frequencySettings: []
1641
+ }
1642
+ ), l = h ? e : c, d = _e(!1), [w, k] = he([]);
1643
+ ye(() => {
1644
+ if (!h) {
1645
+ if (!d.current) {
1646
+ d.current = !0;
1647
+ return;
1648
+ }
1649
+ n?.(c);
1650
+ }
1651
+ }, [c, h, n]), ye(() => {
1652
+ if (!l || !Lt(l)) {
1653
+ k([]);
1654
+ return;
1655
+ }
1656
+ const g = It(l);
1657
+ if (!g) {
1658
+ k([]);
1659
+ return;
1660
+ }
1661
+ if (i && i(g.toString()), o) {
1662
+ const M = _t(g, l.startDate, u, s);
1663
+ k(M);
1664
+ } else
1665
+ k([]);
1666
+ }, [l, i, o, u, s]);
1667
+ const m = (g) => {
1668
+ if (h) {
1669
+ n?.(g);
1670
+ return;
1671
+ }
1672
+ b(g);
1673
+ };
1674
+ return /* @__PURE__ */ J.jsxs("div", { className: "w-full flex flex-col gap-6 items-center", children: [
1675
+ /* @__PURE__ */ J.jsx(We, { value: l, onChange: m, errors: a }),
1676
+ o && /* @__PURE__ */ J.jsx(At, { selected: w })
1677
+ ] });
1678
+ }, Ht = Ie(Wt);
1679
+ Ht.displayName = "RecurrentDatePickerRRule";
1680
+ export {
1681
+ Ht as RecurrentDatePickerRRule
1682
+ };