@spteck/react-controls-v2 2.0.18 → 2.2.1

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 (662) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +143 -387
  3. package/dist/LocalizationProvider-BLjmybBa.cjs +2 -0
  4. package/dist/LocalizationProvider-BSlUf0tp.js +497 -0
  5. package/dist/_arrayEach-CnIMt1eB.js +61 -0
  6. package/dist/_arrayEach-vx8gLv03.cjs +2 -0
  7. package/dist/abstractions/ILocalizationProvider.d.ts +52 -0
  8. package/dist/abstractions/index.d.ts +1 -0
  9. package/dist/abstractions/providers/DefaultLocalizationProvider.d.ts +52 -0
  10. package/dist/abstractions/providers/LocalizationProvider.d.ts +47 -0
  11. package/dist/abstractions/providers/index.d.ts +3 -1
  12. package/dist/ar-C1pLt8fa.js +219 -0
  13. package/dist/ar-Jzw7PLrc.cjs +2 -0
  14. package/dist/arc-DPTV8xm_.js +132 -0
  15. package/dist/arc-fdHOvWdS.cjs +2 -0
  16. package/dist/architecture-7HQA4BMR-BAUhgjE2.js +6 -0
  17. package/dist/architecture-7HQA4BMR-DwCjpO72.cjs +2 -0
  18. package/dist/architectureDiagram-VXUJARFQ-B5yGOjRk.js +8680 -0
  19. package/dist/architectureDiagram-VXUJARFQ-C7K57uon.cjs +2 -0
  20. package/dist/az-C0Ow5Hxa.cjs +2 -0
  21. package/dist/az-C3-F9ybX.js +219 -0
  22. package/dist/bg-YB0TmpRF.cjs +2 -0
  23. package/dist/bg-w2e_udiK.js +219 -0
  24. package/dist/blockDiagram-VD42YOAC-B9MtQVc8.js +3756 -0
  25. package/dist/blockDiagram-VD42YOAC-CXUX1_9K.cjs +2 -0
  26. package/dist/bs-BoW04lRb.cjs +2 -0
  27. package/dist/bs-CEe_gjEx.js +219 -0
  28. package/dist/c4Diagram-YG6GDRKO-0rSYap-S.cjs +2 -0
  29. package/dist/c4Diagram-YG6GDRKO-CKFTKCbq.js +2483 -0
  30. package/dist/ca-Bsy2Y5pS.cjs +2 -0
  31. package/dist/ca-CKpd72XI.js +219 -0
  32. package/dist/channel-CJ2FoHig.js +8 -0
  33. package/dist/channel-DjKs64mj.cjs +2 -0
  34. package/dist/chunk-4BX2VUAB-DJlF8TIZ.cjs +2 -0
  35. package/dist/chunk-4BX2VUAB-ghaW5jSQ.js +18 -0
  36. package/dist/chunk-55IACEB6-9B1z6QHL.cjs +2 -0
  37. package/dist/chunk-55IACEB6-__yJgpDO.js +14 -0
  38. package/dist/chunk-B4BG7PRW-Dbzu88Oo.cjs +2 -0
  39. package/dist/chunk-B4BG7PRW-NVucxzRs.js +1828 -0
  40. package/dist/chunk-DI55MBZ5-Bun58OTZ.js +1928 -0
  41. package/dist/chunk-DI55MBZ5-e__JA50C.cjs +2 -0
  42. package/dist/chunk-FMBD7UC4-DulgQOWY.js +20 -0
  43. package/dist/chunk-FMBD7UC4-Pi8Fs7F6.cjs +2 -0
  44. package/dist/chunk-QN33PNHL-DA_6jplh.js +26 -0
  45. package/dist/chunk-QN33PNHL-DcHwlyDo.cjs +2 -0
  46. package/dist/chunk-QZHKN3VN-BfGBK4_s.cjs +2 -0
  47. package/dist/chunk-QZHKN3VN-C5x9oEL1.js +18 -0
  48. package/dist/chunk-TZMSLE5B-BCBp8EeB.cjs +2 -0
  49. package/dist/chunk-TZMSLE5B-Bj2-6aT8.js +109 -0
  50. package/dist/classDiagram-2ON5EDUG-BGUaVc1W.cjs +2 -0
  51. package/dist/classDiagram-2ON5EDUG-BcR1HP9z.js +20 -0
  52. package/dist/classDiagram-v2-WZHVMYZB-BGUaVc1W.cjs +2 -0
  53. package/dist/classDiagram-v2-WZHVMYZB-BcR1HP9z.js +20 -0
  54. package/dist/components/AISearchControl/index.d.ts +1 -0
  55. package/dist/components/Card/index.d.ts +0 -1
  56. package/dist/components/Carousel/index.d.ts +0 -3
  57. package/dist/components/Container/Container.d.ts +1 -9
  58. package/dist/components/Container/IContainerProps.d.ts +10 -4
  59. package/dist/components/Container/index.d.ts +1 -1
  60. package/dist/components/ContentRenderer/ContentRenderer.d.ts +1 -37
  61. package/dist/components/ContentRenderer/IContentRendererProps.d.ts +45 -0
  62. package/dist/components/ContentRenderer/index.d.ts +1 -1
  63. package/dist/components/DataGridV2/DataGridHandle.d.ts +14 -0
  64. package/dist/components/DataGridV2/DataGridV2.d.ts +2 -36
  65. package/dist/components/DataGridV2/IDataGridV2ExtraProps.d.ts +25 -0
  66. package/dist/components/DataGridV2/index.d.ts +1 -0
  67. package/dist/components/Grid/useGridStyles.d.ts +1 -1
  68. package/dist/components/ItemPicker/IItemPickerOption.d.ts +14 -0
  69. package/dist/components/ItemPicker/IItemPickerPagingInfo.d.ts +9 -0
  70. package/dist/components/ItemPicker/IItemPickerProps.d.ts +54 -0
  71. package/dist/components/ItemPicker/ItemPicker.d.ts +4 -0
  72. package/dist/components/ItemPicker/index.d.ts +5 -0
  73. package/dist/components/ItemPicker/useItemPickerStyles.d.ts +10 -0
  74. package/dist/components/KPIControl/IKpiCardData.d.ts +19 -0
  75. package/dist/components/KPIControl/IKpiCardProps.d.ts +6 -0
  76. package/dist/components/KPIControl/KpiCard.d.ts +4 -0
  77. package/dist/components/KPIControl/KpiCardCompact.d.ts +4 -0
  78. package/dist/components/KPIControl/KpiCardSkeleton.d.ts +8 -0
  79. package/dist/components/KPIControl/Kpis.d.ts +7 -0
  80. package/dist/components/KPIControl/NoKpisCard.d.ts +8 -0
  81. package/dist/components/KPIControl/index.d.ts +8 -0
  82. package/dist/components/KPIControl/useKpiStyles.d.ts +33 -0
  83. package/dist/components/ListToolbar/FlatItem.d.ts +8 -0
  84. package/dist/components/ListToolbar/IListToolbarProps.d.ts +27 -0
  85. package/dist/components/ListToolbar/IToolbarItem.d.ts +37 -0
  86. package/dist/components/ListToolbar/IToolbarItemRendererProps.d.ts +13 -0
  87. package/dist/components/ListToolbar/ListToolbar.d.ts +5 -0
  88. package/dist/components/ListToolbar/ToolbarItemRenderer.d.ts +7 -0
  89. package/dist/components/ListToolbar/helpers.d.ts +6 -0
  90. package/dist/components/ListToolbar/index.d.ts +4 -0
  91. package/dist/components/ListToolbar/useListToolbarStyles.d.ts +16 -0
  92. package/dist/components/ListToolbar/useOverflowIndex.d.ts +18 -0
  93. package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts +1 -1
  94. package/dist/components/MarkdownRenderer/useMarkdownStyles.d.ts +4 -0
  95. package/dist/components/MermaidDiagram/IMermaidDiagramProps.d.ts +31 -0
  96. package/dist/components/MermaidDiagram/MermaidDiagram.d.ts +4 -0
  97. package/dist/components/MermaidDiagram/index.d.ts +4 -0
  98. package/dist/components/MermaidDiagram/useMermaidDiagramStyles.d.ts +9 -0
  99. package/dist/components/Navigation/INavigationProps.d.ts +141 -0
  100. package/dist/components/Navigation/Navigation.d.ts +27 -0
  101. package/dist/components/Navigation/index.d.ts +4 -0
  102. package/dist/components/Navigation/useNavigationStyles.d.ts +13 -0
  103. package/dist/components/SelectTime/IOptionTimeProps.d.ts +23 -0
  104. package/dist/components/SelectTime/ISelectTimeProps.d.ts +25 -0
  105. package/dist/components/SelectTime/OptionTime.d.ts +16 -0
  106. package/dist/components/SelectTime/SelectTime.d.ts +4 -0
  107. package/dist/components/SelectTime/index.d.ts +7 -0
  108. package/dist/components/SelectTime/useOptionTimeStyles.d.ts +6 -0
  109. package/dist/components/SelectTime/useSelectTimeStyles.d.ts +7 -0
  110. package/dist/components/SplitPane/ISplitPaneProps.d.ts +28 -0
  111. package/dist/components/SplitPane/SplitPane.d.ts +10 -0
  112. package/dist/components/SplitPane/index.d.ts +4 -0
  113. package/dist/components/SplitPane/useSplitPaneStyles.d.ts +13 -0
  114. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +1 -1
  115. package/dist/components/adaptiveCardHost/fluentUI/renderCompat.d.ts +7 -0
  116. package/dist/components/aiAssistant/index.d.ts +1 -0
  117. package/dist/components/appDashboard/IAppDashboardProps.d.ts +2 -2
  118. package/dist/components/breadcrumb/IBreadcrumProps.d.ts +1 -1
  119. package/dist/components/breadcrumb/index.d.ts +1 -0
  120. package/dist/components/customControlBar/CustomControlBar.d.ts +1 -13
  121. package/dist/components/customControlBar/IControlItem.d.ts +6 -0
  122. package/dist/components/customControlBar/ICustomControlBarProps.d.ts +11 -0
  123. package/dist/components/customControlBar/index.d.ts +2 -0
  124. package/dist/components/dropDownField/useDropdownFieldStyles.d.ts +5 -0
  125. package/dist/components/index.d.ts +7 -0
  126. package/dist/components/inputField/IInputFieldProps.d.ts +22 -0
  127. package/dist/components/inputField/InputField.d.ts +4 -0
  128. package/dist/components/inputField/index.d.ts +3 -0
  129. package/dist/components/inputField/useInputFieldStyles.d.ts +5 -0
  130. package/dist/components/renderDrawer/RenderDrawer.d.ts +1 -4
  131. package/dist/components/renderHeader/index.d.ts +1 -0
  132. package/dist/components/searchControl/ISearchControlProps.d.ts +14 -0
  133. package/dist/components/searchControl/SearchControl.d.ts +5 -0
  134. package/dist/components/searchControl/index.d.ts +3 -0
  135. package/dist/components/searchControl/useSearchControlStyles.d.ts +13 -0
  136. package/dist/components/stackv2/StackV2.d.ts +1 -1
  137. package/dist/components/worldMap/index.d.ts +2 -0
  138. package/dist/components/worldMap/useContentToolTipStyles.d.ts +2 -8
  139. package/dist/cose-bilkent-S5V4N54A-BcLbJZT7.cjs +2 -0
  140. package/dist/cose-bilkent-S5V4N54A-CtEV3dGx.js +4934 -0
  141. package/dist/cs-D-801PIR.cjs +2 -0
  142. package/dist/cs-DQvRPciB.js +219 -0
  143. package/dist/cy-BxyJCM05.js +219 -0
  144. package/dist/cy-aUPUcn-S.cjs +2 -0
  145. package/dist/cytoscape.esm-BS1owLay.js +30250 -0
  146. package/dist/cytoscape.esm-BxB3woZB.cjs +10 -0
  147. package/dist/da-B05ad5Iq.js +219 -0
  148. package/dist/da-CTiLOqut.cjs +2 -0
  149. package/dist/dagre-6UL2VRFP-BZ9apxkx.js +696 -0
  150. package/dist/dagre-6UL2VRFP-FmOJGmX_.cjs +2 -0
  151. package/dist/de-DJ5iwpd7.js +219 -0
  152. package/dist/de-Dm204UMA.cjs +2 -0
  153. package/dist/defaultLocale-7NeEK7SF.cjs +2 -0
  154. package/dist/defaultLocale-DVr69WTU.js +207 -0
  155. package/dist/diagram-PSM6KHXK-BZxXJahR.cjs +2 -0
  156. package/dist/diagram-PSM6KHXK-_wkJk__z.js +848 -0
  157. package/dist/diagram-QEK2KX5R-NQiK3YZe.cjs +2 -0
  158. package/dist/diagram-QEK2KX5R-YQAU79Lo.js +305 -0
  159. package/dist/diagram-S2PKOQOG-Cob2HIrt.cjs +2 -0
  160. package/dist/diagram-S2PKOQOG-D8jaJbP8.js +212 -0
  161. package/dist/el-CBS9mHS3.js +219 -0
  162. package/dist/el-DbtZj-ph.cjs +2 -0
  163. package/dist/erDiagram-Q2GNP2WA-DAzex-RZ.cjs +2 -0
  164. package/dist/erDiagram-Q2GNP2WA-syuB6Tgc.js +1160 -0
  165. package/dist/es-Bo08apQr.js +219 -0
  166. package/dist/es-Cc-4Vqf7.cjs +2 -0
  167. package/dist/et-D5pQ66eY.cjs +2 -0
  168. package/dist/et-pRL0Tmle.js +219 -0
  169. package/dist/eu-Br68gaf7.js +219 -0
  170. package/dist/eu-RZ-27koK.cjs +2 -0
  171. package/dist/fi-BCXB-k_X.js +219 -0
  172. package/dist/fi-Dqa9mgnW.cjs +2 -0
  173. package/dist/flowDiagram-NV44I4VS-CXJA5Xu7.js +2339 -0
  174. package/dist/flowDiagram-NV44I4VS-DOcXDmk8.cjs +2 -0
  175. package/dist/fr-B7fhkle4.cjs +2 -0
  176. package/dist/fr-gKE1SSIF.js +219 -0
  177. package/dist/ga-4Hf7vKvr.cjs +2 -0
  178. package/dist/ga-C1SpITZy.js +219 -0
  179. package/dist/ganttDiagram-JELNMOA3-BodaBsjX.js +3652 -0
  180. package/dist/ganttDiagram-JELNMOA3-oeOE4Au1.cjs +2 -0
  181. package/dist/gitGraph-G5XIXVHT-BAoUh2t9.js +6 -0
  182. package/dist/gitGraph-G5XIXVHT-bEuOx0_B.cjs +2 -0
  183. package/dist/gitGraphDiagram-V2S2FVAM-B5dByD3_.js +1215 -0
  184. package/dist/gitGraphDiagram-V2S2FVAM-D4G2FRg-.cjs +2 -0
  185. package/dist/gl-COSpsMSK.cjs +2 -0
  186. package/dist/gl-CSzCeu2L.js +219 -0
  187. package/dist/graph-C7xixGrW.cjs +2 -0
  188. package/dist/graph-DH3cnEko.js +421 -0
  189. package/dist/he-BrkfqoIm.js +219 -0
  190. package/dist/he-C7Wi6-EL.cjs +2 -0
  191. package/dist/hi-C1RGDPzn.js +219 -0
  192. package/dist/hi-ojklJj-a.cjs +2 -0
  193. package/dist/hooks/index.d.ts +1 -0
  194. package/dist/hooks/useLocalizationStrings.d.ts +71 -0
  195. package/dist/hr-CsO_h2VT.js +219 -0
  196. package/dist/hr-DkEwOCGU.cjs +2 -0
  197. package/dist/hu-CVtbM-V2.js +219 -0
  198. package/dist/hu-D8uAAzvN.cjs +2 -0
  199. package/dist/id-18yPGK2f.cjs +2 -0
  200. package/dist/id-CARSN0W8.js +219 -0
  201. package/dist/index-CP55uT1-.js +55270 -0
  202. package/dist/index-DkoeCnje.cjs +428 -0
  203. package/dist/index.cjs +2 -0
  204. package/dist/index.d.ts +14 -0
  205. package/dist/index.js +165 -200
  206. package/dist/info-VBDWY6EO-CCtIeR-l.js +6 -0
  207. package/dist/info-VBDWY6EO-CIQZzC1h.cjs +2 -0
  208. package/dist/infoDiagram-HS3SLOUP-BCGLBWdb.js +32 -0
  209. package/dist/infoDiagram-HS3SLOUP-l61UBAGu.cjs +2 -0
  210. package/dist/init-DZ96s0AS.cjs +2 -0
  211. package/dist/init-ZxktEp_H.js +17 -0
  212. package/dist/it-BVq911RW.cjs +2 -0
  213. package/dist/it-ClWGK7XT.js +219 -0
  214. package/dist/ja-BgcKuKZ4.cjs +2 -0
  215. package/dist/ja-DGL12HwE.js +219 -0
  216. package/dist/journeyDiagram-XKPGCS4Q-CngaMpvw.js +1255 -0
  217. package/dist/journeyDiagram-XKPGCS4Q-DDFQr_sf.cjs +2 -0
  218. package/dist/kanban-definition-3W4ZIXB7-DE64tG2k.js +1049 -0
  219. package/dist/kanban-definition-3W4ZIXB7-Yh2cXBd5.cjs +2 -0
  220. package/dist/katex-DPu4QpBP.cjs +2 -0
  221. package/dist/katex-Dd1-wdX2.js +14523 -0
  222. package/dist/kk-CkKXbKso.js +219 -0
  223. package/dist/kk-Dn3FBkOR.cjs +2 -0
  224. package/dist/ko-CKAbV25b.cjs +2 -0
  225. package/dist/ko-QYvDV2aw.js +219 -0
  226. package/dist/layout-D6yO7DzL.cjs +2 -0
  227. package/dist/layout-bxkZz7Cm.js +1919 -0
  228. package/dist/linear-CytTXQM2.cjs +2 -0
  229. package/dist/linear-R5bATomY.js +341 -0
  230. package/dist/localization/ILibraryStrings.d.ts +299 -0
  231. package/dist/localization/defaults/ar.d.ts +8 -0
  232. package/dist/localization/defaults/az.d.ts +8 -0
  233. package/dist/localization/defaults/bg.d.ts +8 -0
  234. package/dist/localization/defaults/bs.d.ts +8 -0
  235. package/dist/localization/defaults/ca.d.ts +8 -0
  236. package/dist/localization/defaults/cs.d.ts +8 -0
  237. package/dist/localization/defaults/cy.d.ts +8 -0
  238. package/dist/localization/defaults/da.d.ts +8 -0
  239. package/dist/localization/defaults/de.d.ts +8 -0
  240. package/dist/localization/defaults/el.d.ts +8 -0
  241. package/dist/localization/defaults/en.d.ts +8 -0
  242. package/dist/localization/defaults/es.d.ts +8 -0
  243. package/dist/localization/defaults/et.d.ts +8 -0
  244. package/dist/localization/defaults/eu.d.ts +8 -0
  245. package/dist/localization/defaults/fi.d.ts +8 -0
  246. package/dist/localization/defaults/fr.d.ts +8 -0
  247. package/dist/localization/defaults/ga.d.ts +8 -0
  248. package/dist/localization/defaults/gl.d.ts +8 -0
  249. package/dist/localization/defaults/he.d.ts +8 -0
  250. package/dist/localization/defaults/hi.d.ts +8 -0
  251. package/dist/localization/defaults/hr.d.ts +8 -0
  252. package/dist/localization/defaults/hu.d.ts +8 -0
  253. package/dist/localization/defaults/id.d.ts +8 -0
  254. package/dist/localization/defaults/index.d.ts +47 -0
  255. package/dist/localization/defaults/it.d.ts +8 -0
  256. package/dist/localization/defaults/ja.d.ts +8 -0
  257. package/dist/localization/defaults/kk.d.ts +8 -0
  258. package/dist/localization/defaults/ko.d.ts +8 -0
  259. package/dist/localization/defaults/lt.d.ts +8 -0
  260. package/dist/localization/defaults/lv.d.ts +8 -0
  261. package/dist/localization/defaults/mk.d.ts +8 -0
  262. package/dist/localization/defaults/ms.d.ts +8 -0
  263. package/dist/localization/defaults/nb.d.ts +8 -0
  264. package/dist/localization/defaults/nl.d.ts +8 -0
  265. package/dist/localization/defaults/pl.d.ts +8 -0
  266. package/dist/localization/defaults/pt.d.ts +8 -0
  267. package/dist/localization/defaults/ro.d.ts +8 -0
  268. package/dist/localization/defaults/ru.d.ts +8 -0
  269. package/dist/localization/defaults/sk.d.ts +8 -0
  270. package/dist/localization/defaults/sl.d.ts +8 -0
  271. package/dist/localization/defaults/sr.d.ts +8 -0
  272. package/dist/localization/defaults/sv.d.ts +8 -0
  273. package/dist/localization/defaults/th.d.ts +8 -0
  274. package/dist/localization/defaults/tr.d.ts +8 -0
  275. package/dist/localization/defaults/uk.d.ts +8 -0
  276. package/dist/localization/defaults/vi.d.ts +8 -0
  277. package/dist/localization/defaults/zh.d.ts +8 -0
  278. package/dist/localization/index.d.ts +8 -0
  279. package/dist/localization/utils.d.ts +10 -0
  280. package/dist/lt-BKnFyiLV.js +219 -0
  281. package/dist/lt-BnGNEsIS.cjs +2 -0
  282. package/dist/lv-Clqo0Ogm.js +219 -0
  283. package/dist/lv-D3rJQRhc.cjs +2 -0
  284. package/dist/maplibre-gl-D9TSGNCf.cjs +6 -0
  285. package/dist/maplibre-gl-DwyiD0x9.js +23511 -0
  286. package/dist/mermaid-parser.core-BbdofhA6.js +23791 -0
  287. package/dist/mermaid-parser.core-C4ChZJz4.cjs +2 -0
  288. package/dist/mindmap-definition-VGOIOE7T-BonbrEly.cjs +2 -0
  289. package/dist/mindmap-definition-VGOIOE7T-C8FL7caj.js +1129 -0
  290. package/dist/mk-EhcD0RzW.js +219 -0
  291. package/dist/mk-hVxJgrE0.cjs +2 -0
  292. package/dist/ms-CJACwjo7.js +219 -0
  293. package/dist/ms-D0txYckK.cjs +2 -0
  294. package/dist/nb-BfKRl99z.cjs +2 -0
  295. package/dist/nb-NCgnP0Pu.js +219 -0
  296. package/dist/nl-EgsNCunP.js +219 -0
  297. package/dist/nl-ZXiLkBj_.cjs +2 -0
  298. package/dist/ordinal-BZdahNih.cjs +2 -0
  299. package/dist/ordinal-DSZU4PqD.js +77 -0
  300. package/dist/packet-DYOGHKS2-64UpspMA.cjs +2 -0
  301. package/dist/packet-DYOGHKS2-DCndr5Wp.js +6 -0
  302. package/dist/pie-VRWISCQL-B_5_SIgL.cjs +2 -0
  303. package/dist/pie-VRWISCQL-BbSFz_Jh.js +6 -0
  304. package/dist/pieDiagram-ADFJNKIX-C8b4kPLp.cjs +2 -0
  305. package/dist/pieDiagram-ADFJNKIX-CQjh4P80.js +238 -0
  306. package/dist/pl-H28GVtiG.js +219 -0
  307. package/dist/pl-tVjdYTB9.cjs +2 -0
  308. package/dist/providers.cjs +2 -0
  309. package/dist/providers.js +252 -1
  310. package/dist/pt-1k62N9F3.cjs +2 -0
  311. package/dist/pt-BSPZhWKl.js +211 -0
  312. package/dist/quadrantDiagram-AYHSOK5B-Bb99yQJL.cjs +2 -0
  313. package/dist/quadrantDiagram-AYHSOK5B-BiLBDCHf.js +1338 -0
  314. package/dist/radar-ZZBFDIW7-DC8bA3_e.cjs +2 -0
  315. package/dist/radar-ZZBFDIW7-DpGZ3D_F.js +6 -0
  316. package/dist/requirementDiagram-UZGBJVZJ-BeLfR5tA.cjs +2 -0
  317. package/dist/requirementDiagram-UZGBJVZJ-D6hcN5kf.js +1164 -0
  318. package/dist/ro-9Qt1qDDA.cjs +2 -0
  319. package/dist/ro-BpaZLre_.js +219 -0
  320. package/dist/ru-4WxRouIU.cjs +2 -0
  321. package/dist/ru-CUZzD-Tx.js +219 -0
  322. package/dist/sankeyDiagram-TZEHDZUN-7K2pggbF.js +1194 -0
  323. package/dist/sankeyDiagram-TZEHDZUN-T1lqY3ke.cjs +2 -0
  324. package/dist/sequenceDiagram-WL72ISMW-CaSRrEHR.cjs +2 -0
  325. package/dist/sequenceDiagram-WL72ISMW-DymCRly8.js +3882 -0
  326. package/dist/sk-CoQ6XiCY.js +219 -0
  327. package/dist/sk-uWukDQab.cjs +2 -0
  328. package/dist/sl-B6DVbKg6.cjs +2 -0
  329. package/dist/sl-CHW-ZGol.js +219 -0
  330. package/dist/sr-BOD8Tc-D.cjs +2 -0
  331. package/dist/sr-EQGjIBJE.js +219 -0
  332. package/dist/stateDiagram-FKZM4ZOC-B3uhYYpW.js +449 -0
  333. package/dist/stateDiagram-FKZM4ZOC-BETxyYxX.cjs +2 -0
  334. package/dist/stateDiagram-v2-4FDKWEC3-B4AjT1wB.cjs +2 -0
  335. package/dist/stateDiagram-v2-4FDKWEC3-BuiA8K0X.js +20 -0
  336. package/dist/style.css +1 -0
  337. package/dist/sv-B6nLuQr7.cjs +2 -0
  338. package/dist/sv-DTxWN6ED.js +219 -0
  339. package/dist/th-BVPzHvBf.js +219 -0
  340. package/dist/th-DmULV6uT.cjs +2 -0
  341. package/dist/timeline-definition-IT6M3QCI-CsJvwNrg.cjs +2 -0
  342. package/dist/timeline-definition-IT6M3QCI-DNROY61n.js +1227 -0
  343. package/dist/tr-BE5geTUC.cjs +2 -0
  344. package/dist/tr-BHR1QA-D.js +219 -0
  345. package/dist/treemap-GDKQZRPO-DbPXSmw-.js +6 -0
  346. package/dist/treemap-GDKQZRPO-Dj3L_VQH.cjs +2 -0
  347. package/dist/uk-Bc5TwelE.js +219 -0
  348. package/dist/uk-DS5ukB_-.cjs +2 -0
  349. package/dist/vi-D9FF4kkG.cjs +2 -0
  350. package/dist/vi-DC0eQZb7.js +219 -0
  351. package/dist/xychartDiagram-PRI3JC2R-CXT2FhOm.cjs +2 -0
  352. package/dist/xychartDiagram-PRI3JC2R-D7UaoGaC.js +1887 -0
  353. package/dist/zh-CGcOiJ3s.cjs +2 -0
  354. package/dist/zh-GsCLn8OE.js +219 -0
  355. package/package.json +95 -92
  356. package/dist/ILoggingProvider-C4FFlnQ0.js +0 -2
  357. package/dist/ILoggingProvider-C4FFlnQ0.js.map +0 -1
  358. package/dist/ILoggingProvider-CYYYCGLY.mjs +0 -18
  359. package/dist/ILoggingProvider-CYYYCGLY.mjs.map +0 -1
  360. package/dist/abstractions/IApplicationContext.d.ts.map +0 -1
  361. package/dist/abstractions/IAuthenticationProvider.d.ts.map +0 -1
  362. package/dist/abstractions/IGraphProvider.d.ts.map +0 -1
  363. package/dist/abstractions/ILoggingProvider.d.ts.map +0 -1
  364. package/dist/abstractions/IPageContext.d.ts.map +0 -1
  365. package/dist/abstractions/IStorageProvider.d.ts.map +0 -1
  366. package/dist/abstractions/index.d.ts.map +0 -1
  367. package/dist/abstractions/providers/ConsoleLoggingProvider.d.ts.map +0 -1
  368. package/dist/abstractions/providers/DefaultGraphClient.d.ts.map +0 -1
  369. package/dist/abstractions/providers/LocalStorageProvider.d.ts.map +0 -1
  370. package/dist/abstractions/providers/index.d.ts.map +0 -1
  371. package/dist/components/AISearchControl/AISearchControl.d.ts.map +0 -1
  372. package/dist/components/AISearchControl/AISearchIcon.d.ts.map +0 -1
  373. package/dist/components/AISearchControl/AISearchIconExample.d.ts.map +0 -1
  374. package/dist/components/AISearchControl/index.d.ts.map +0 -1
  375. package/dist/components/AISearchControl/useAISearchControlStyles.d.ts.map +0 -1
  376. package/dist/components/AspectRatio/AspectRatio.d.ts.map +0 -1
  377. package/dist/components/AspectRatio/IAspectRationProps.d.ts.map +0 -1
  378. package/dist/components/AspectRatio/index.d.ts.map +0 -1
  379. package/dist/components/AspectRatio/useAspectRatioStyles.d.ts.map +0 -1
  380. package/dist/components/Card/Card.d.ts.map +0 -1
  381. package/dist/components/Card/ICardProps.d.ts.map +0 -1
  382. package/dist/components/Card/index.d.ts.map +0 -1
  383. package/dist/components/Card/useCardStyles.d.ts.map +0 -1
  384. package/dist/components/Carousel/Carousel.d.ts.map +0 -1
  385. package/dist/components/Carousel/ICarouselProps.d.ts.map +0 -1
  386. package/dist/components/Carousel/index.d.ts.map +0 -1
  387. package/dist/components/Carousel/useCarouselButton.d.ts.map +0 -1
  388. package/dist/components/Carousel/useCarouselStyles.d.ts.map +0 -1
  389. package/dist/components/Carousel/useCarouselStylesMain.d.ts.map +0 -1
  390. package/dist/components/Center/Center.d.ts.map +0 -1
  391. package/dist/components/Center/ICenterProps.d.ts.map +0 -1
  392. package/dist/components/Center/index.d.ts.map +0 -1
  393. package/dist/components/Center/useCenterStyles.d.ts.map +0 -1
  394. package/dist/components/Container/Container.d.ts.map +0 -1
  395. package/dist/components/Container/IContainerProps.d.ts.map +0 -1
  396. package/dist/components/Container/index.d.ts.map +0 -1
  397. package/dist/components/Container/useContainerStyles.d.ts.map +0 -1
  398. package/dist/components/ContentRenderer/ContentRenderer.d.ts.map +0 -1
  399. package/dist/components/ContentRenderer/index.d.ts.map +0 -1
  400. package/dist/components/DataGridV2/DataGridV2.d.ts.map +0 -1
  401. package/dist/components/DataGridV2/index.d.ts.map +0 -1
  402. package/dist/components/DataGridV2/useDataGridV2Styles.d.ts.map +0 -1
  403. package/dist/components/Grid/Grid.d.ts.map +0 -1
  404. package/dist/components/Grid/IGridProps.d.ts.map +0 -1
  405. package/dist/components/Grid/index.d.ts.map +0 -1
  406. package/dist/components/Grid/useGridStyles.d.ts.map +0 -1
  407. package/dist/components/Layout/ILayoutProps.d.ts.map +0 -1
  408. package/dist/components/Layout/Layout.d.ts.map +0 -1
  409. package/dist/components/Layout/LayoutItem.d.ts.map +0 -1
  410. package/dist/components/Layout/index.d.ts.map +0 -1
  411. package/dist/components/Layout/useLayoutStyles.d.ts.map +0 -1
  412. package/dist/components/ListItemActivityMessage/IAction.d.ts.map +0 -1
  413. package/dist/components/ListItemActivityMessage/IActivity.d.ts.map +0 -1
  414. package/dist/components/ListItemActivityMessage/IActivityMessageProps.d.ts.map +0 -1
  415. package/dist/components/ListItemActivityMessage/IActor.d.ts.map +0 -1
  416. package/dist/components/ListItemActivityMessage/IUserActor.d.ts.map +0 -1
  417. package/dist/components/ListItemActivityMessage/ListItemActivityMessage.d.ts.map +0 -1
  418. package/dist/components/ListItemActivityMessage/index.d.ts.map +0 -1
  419. package/dist/components/ListItemActivityMessage/useSharePointActivities.d.ts.map +0 -1
  420. package/dist/components/LivePersona/ILivePersonaProps.d.ts.map +0 -1
  421. package/dist/components/LivePersona/LivePersona.d.ts.map +0 -1
  422. package/dist/components/LivePersona/index.d.ts.map +0 -1
  423. package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
  424. package/dist/components/MarkdownRenderer/index.d.ts.map +0 -1
  425. package/dist/components/Popup/Popup.d.ts.map +0 -1
  426. package/dist/components/Popup/index.d.ts.map +0 -1
  427. package/dist/components/Provider/UniversalProvider.d.ts.map +0 -1
  428. package/dist/components/Provider/index.d.ts.map +0 -1
  429. package/dist/components/RenderLabel/RenderLabel.d.ts.map +0 -1
  430. package/dist/components/RenderLabel/index.d.ts.map +0 -1
  431. package/dist/components/RenderLabel/useRenderLabelStylesStyles.d.ts.map +0 -1
  432. package/dist/components/RenderSpninner/RenderSpinner.d.ts.map +0 -1
  433. package/dist/components/RenderSpninner/index.d.ts.map +0 -1
  434. package/dist/components/Space/ISpaceProps.d.ts.map +0 -1
  435. package/dist/components/Space/SPace.d.ts.map +0 -1
  436. package/dist/components/Space/index.d.ts.map +0 -1
  437. package/dist/components/Space/useSpaceStyles.d.ts.map +0 -1
  438. package/dist/components/Stack/IStackProps.d.ts.map +0 -1
  439. package/dist/components/Stack/Stack.d.ts.map +0 -1
  440. package/dist/components/Stack/StackItem.d.ts.map +0 -1
  441. package/dist/components/Stack/index.d.ts.map +0 -1
  442. package/dist/components/Stack/useStackStyles.d.ts.map +0 -1
  443. package/dist/components/StackedUsers/IStackedUsersProps.d.ts.map +0 -1
  444. package/dist/components/StackedUsers/StackedUsers.d.ts.map +0 -1
  445. package/dist/components/StackedUsers/index.d.ts.map +0 -1
  446. package/dist/components/StackedUsers/useStackedUsersStyles.d.ts.map +0 -1
  447. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Exports.d.ts.map +0 -1
  448. package/dist/components/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts.map +0 -1
  449. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts.map +0 -1
  450. package/dist/components/adaptiveCardHost/AdaptiveCardHost.d.ts.map +0 -1
  451. package/dist/components/adaptiveCardHost/IAdaptiveCardHostProps.d.ts.map +0 -1
  452. package/dist/components/adaptiveCardHost/fluentUI/Actions.d.ts.map +0 -1
  453. package/dist/components/adaptiveCardHost/fluentUI/Elements.d.ts.map +0 -1
  454. package/dist/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.d.ts.map +0 -1
  455. package/dist/components/adaptiveCardHost/fluentUI/FluentUIDateInput.d.ts.map +0 -1
  456. package/dist/components/adaptiveCardHost/fluentUI/FluentUINumberInput.d.ts.map +0 -1
  457. package/dist/components/adaptiveCardHost/fluentUI/FluentUITextInput.d.ts.map +0 -1
  458. package/dist/components/adaptiveCardHost/fluentUI/FluentUITimeInput.d.ts.map +0 -1
  459. package/dist/components/adaptiveCardHost/fluentUI/FluentUIToggleInput.d.ts.map +0 -1
  460. package/dist/components/adaptiveCardHost/fluentUI/HostCapability.d.ts.map +0 -1
  461. package/dist/components/adaptiveCardHost/fluentUI/HostConfig.d.ts.map +0 -1
  462. package/dist/components/adaptiveCardHost/fluentUI/IconButton.d.ts.map +0 -1
  463. package/dist/components/adaptiveCardHost/fluentUI/Styles.d.ts.map +0 -1
  464. package/dist/components/adaptiveCardHost/fluentUI/index.d.ts.map +0 -1
  465. package/dist/components/adaptiveCardHost/fluentUI/inlineButtonRootStyle.d.ts.map +0 -1
  466. package/dist/components/adaptiveCardHost/fluentUI/internalRender.d.ts.map +0 -1
  467. package/dist/components/adaptiveCardHost/index.d.ts.map +0 -1
  468. package/dist/components/adaptiveCardHost/models/AdaptiveCardHostThemeType.d.ts.map +0 -1
  469. package/dist/components/adaptiveCardHost/models/IAadInfo.d.ts.map +0 -1
  470. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostActionResult.d.ts.map +0 -1
  471. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts.map +0 -1
  472. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostEvaluationContext.d.ts.map +0 -1
  473. package/dist/components/adaptiveCardHost/models/ICultureInfo.d.ts.map +0 -1
  474. package/dist/components/adaptiveCardHost/models/ISPListInfo.d.ts.map +0 -1
  475. package/dist/components/adaptiveCardHost/models/ISPListItemInfo.d.ts.map +0 -1
  476. package/dist/components/adaptiveCardHost/models/ISPSiteInfo.d.ts.map +0 -1
  477. package/dist/components/adaptiveCardHost/models/ISPWebInfo.d.ts.map +0 -1
  478. package/dist/components/adaptiveCardHost/models/IUserInfo.d.ts.map +0 -1
  479. package/dist/components/adaptiveCardHost/models/index.d.ts.map +0 -1
  480. package/dist/components/aiAssistant/AIAssistant.d.ts.map +0 -1
  481. package/dist/components/aiAssistant/ChatAction.d.ts.map +0 -1
  482. package/dist/components/aiAssistant/ChatInput.d.ts.map +0 -1
  483. package/dist/components/aiAssistant/ChatInputProps.d.ts.map +0 -1
  484. package/dist/components/aiAssistant/ChatInputWithMensions.d.ts.map +0 -1
  485. package/dist/components/aiAssistant/ChatInputWithMensionsProps.d.ts.map +0 -1
  486. package/dist/components/aiAssistant/ChatInputWithMensionsV1.d.ts.map +0 -1
  487. package/dist/components/aiAssistant/ChatInputWithMensionsV2.d.ts.map +0 -1
  488. package/dist/components/aiAssistant/ChatList.d.ts.map +0 -1
  489. package/dist/components/aiAssistant/ChatState.d.ts.map +0 -1
  490. package/dist/components/aiAssistant/IAIAssistantProps.d.ts.map +0 -1
  491. package/dist/components/aiAssistant/IChatItem.d.ts.map +0 -1
  492. package/dist/components/aiAssistant/IResponse.d.ts.map +0 -1
  493. package/dist/components/aiAssistant/LoadingDots.d.ts.map +0 -1
  494. package/dist/components/aiAssistant/chatReducer.d.ts.map +0 -1
  495. package/dist/components/aiAssistant/index.d.ts.map +0 -1
  496. package/dist/components/aiAssistant/useAIAssistantStyles.d.ts.map +0 -1
  497. package/dist/components/aiAssistant/useChatInputStyles.d.ts.map +0 -1
  498. package/dist/components/aiAssistant/useChatInputWithMensionsStyles.d.ts.map +0 -1
  499. package/dist/components/aiAssistant/useLoadingDotsStyles.d.ts.map +0 -1
  500. package/dist/components/aiAssistant/useStreamRequest.d.ts.map +0 -1
  501. package/dist/components/aiAssistant/useStyles.d.ts.map +0 -1
  502. package/dist/components/appDashboard/AppDashboard.d.ts.map +0 -1
  503. package/dist/components/appDashboard/IAppDashboardProps.d.ts.map +0 -1
  504. package/dist/components/appDashboard/NoDashboards.d.ts.map +0 -1
  505. package/dist/components/appDashboard/index.d.ts.map +0 -1
  506. package/dist/components/appDashboard/selectZoom/SelectZoom.d.ts.map +0 -1
  507. package/dist/components/appDashboard/useDashboardStyles.d.ts.map +0 -1
  508. package/dist/components/baseComponentProps/IBaseProps.d.ts.map +0 -1
  509. package/dist/components/breadcrumb/Breadcrumb.d.ts.map +0 -1
  510. package/dist/components/breadcrumb/IBreadcrumItem.d.ts.map +0 -1
  511. package/dist/components/breadcrumb/IBreadcrumProps.d.ts.map +0 -1
  512. package/dist/components/breadcrumb/OverflowMenu.d.ts.map +0 -1
  513. package/dist/components/breadcrumb/index.d.ts.map +0 -1
  514. package/dist/components/breadcrumb/useBreadcrumStyles.d.ts.map +0 -1
  515. package/dist/components/buttonMenu/ButtonMenu.d.ts.map +0 -1
  516. package/dist/components/buttonMenu/IButtonMenuOption.d.ts.map +0 -1
  517. package/dist/components/buttonMenu/index.d.ts.map +0 -1
  518. package/dist/components/calendarControl/CalendarControl.d.ts.map +0 -1
  519. package/dist/components/calendarControl/Day.d.ts.map +0 -1
  520. package/dist/components/calendarControl/DayView.d.ts.map +0 -1
  521. package/dist/components/calendarControl/EventDetailsPopover.d.ts.map +0 -1
  522. package/dist/components/calendarControl/EventPopoverCard.d.ts.map +0 -1
  523. package/dist/components/calendarControl/EventRender.d.ts.map +0 -1
  524. package/dist/components/calendarControl/RenderEventToDayOfMonth.d.ts.map +0 -1
  525. package/dist/components/calendarControl/SelectCalendarView.d.ts.map +0 -1
  526. package/dist/components/calendarControl/Toolbar.d.ts.map +0 -1
  527. package/dist/components/calendarControl/WeekView.d.ts.map +0 -1
  528. package/dist/components/calendarControl/hooks/index.d.ts.map +0 -1
  529. package/dist/components/calendarControl/hooks/useCalendar.d.ts.map +0 -1
  530. package/dist/components/calendarControl/hooks/useCalendarStyles.d.ts.map +0 -1
  531. package/dist/components/calendarControl/hooks/useDayViewStyles.d.ts.map +0 -1
  532. package/dist/components/calendarControl/hooks/useUtils.d.ts.map +0 -1
  533. package/dist/components/calendarControl/hooks/useWeekViewStyles.d.ts.map +0 -1
  534. package/dist/components/calendarControl/index.d.ts.map +0 -1
  535. package/dist/components/calendarControl/models/ECalendarViews.d.ts.map +0 -1
  536. package/dist/components/calendarControl/models/IAttendee.d.ts.map +0 -1
  537. package/dist/components/calendarControl/models/ICalendarControlProps.d.ts.map +0 -1
  538. package/dist/components/calendarControl/models/ICalendarDay.d.ts.map +0 -1
  539. package/dist/components/calendarControl/models/IEventColors.d.ts.map +0 -1
  540. package/dist/components/calendarControl/models/IEvents.d.ts.map +0 -1
  541. package/dist/components/calendarControl/models/IStrings.d.ts.map +0 -1
  542. package/dist/components/calendarControl/models/index.d.ts.map +0 -1
  543. package/dist/components/customControlBar/CustomControlBar.d.ts.map +0 -1
  544. package/dist/components/customControlBar/index.d.ts.map +0 -1
  545. package/dist/components/dataGrid/DataGrid.d.ts.map +0 -1
  546. package/dist/components/dataGrid/IColumnConfig.d.ts.map +0 -1
  547. package/dist/components/dataGrid/IDataGridProps.d.ts.map +0 -1
  548. package/dist/components/dataGrid/ISortState.d.ts.map +0 -1
  549. package/dist/components/dataGrid/index.d.ts.map +0 -1
  550. package/dist/components/dataGrid/stack/IStackProps.d.ts.map +0 -1
  551. package/dist/components/dataGrid/stack/Stack.d.ts.map +0 -1
  552. package/dist/components/dataGrid/useDataGridStyles.d.ts.map +0 -1
  553. package/dist/components/dropDownField/DropDownField.d.ts.map +0 -1
  554. package/dist/components/dropDownField/IDropDownFieldProps.d.ts.map +0 -1
  555. package/dist/components/dropDownField/IOption.d.ts.map +0 -1
  556. package/dist/components/dropDownField/index.d.ts.map +0 -1
  557. package/dist/components/genericOverFlowMenu/GenericOverFlowMenu.d.ts.map +0 -1
  558. package/dist/components/genericOverFlowMenu/index.d.ts.map +0 -1
  559. package/dist/components/genericOverFlowMenu/useOverflowMenuStyles.d.ts.map +0 -1
  560. package/dist/components/iconButton/IconButton.d.ts.map +0 -1
  561. package/dist/components/iconButton/IconButtonProps.d.ts.map +0 -1
  562. package/dist/components/iconButton/index.d.ts.map +0 -1
  563. package/dist/components/index.d.ts.map +0 -1
  564. package/dist/components/mensions/IMensionsProps.d.ts.map +0 -1
  565. package/dist/components/mensions/Mensions.d.ts.map +0 -1
  566. package/dist/components/mensions/MensionsExample.d.ts.map +0 -1
  567. package/dist/components/mensions/index.d.ts.map +0 -1
  568. package/dist/components/mensions/useMensionsStyles.d.ts.map +0 -1
  569. package/dist/components/renderAdaptiveCard/RenderAdaptiveCard.d.ts.map +0 -1
  570. package/dist/components/renderAdaptiveCard/index.d.ts.map +0 -1
  571. package/dist/components/renderDialog/RenderDialog.d.ts.map +0 -1
  572. package/dist/components/renderDialog/index.d.ts.map +0 -1
  573. package/dist/components/renderDrawer/RenderDrawer.d.ts.map +0 -1
  574. package/dist/components/renderDrawer/index.d.ts.map +0 -1
  575. package/dist/components/renderHeader/IRenderHeaderProps.d.ts.map +0 -1
  576. package/dist/components/renderHeader/RenderHeader.d.ts.map +0 -1
  577. package/dist/components/renderHeader/index.d.ts.map +0 -1
  578. package/dist/components/renderHeader/useRenderHeaderStyles.d.ts.map +0 -1
  579. package/dist/components/selectDay/SelectDay.d.ts.map +0 -1
  580. package/dist/components/selectDay/index.d.ts.map +0 -1
  581. package/dist/components/selectMonth/CalendarMonth.d.ts.map +0 -1
  582. package/dist/components/selectMonth/SelectMonth.d.ts.map +0 -1
  583. package/dist/components/selectMonth/index.d.ts.map +0 -1
  584. package/dist/components/selectView/SelectView.d.ts.map +0 -1
  585. package/dist/components/selectView/index.d.ts.map +0 -1
  586. package/dist/components/selectWeek/SelectWeek.d.ts.map +0 -1
  587. package/dist/components/selectWeek/index.d.ts.map +0 -1
  588. package/dist/components/shareDialog/ShareDialog.d.ts.map +0 -1
  589. package/dist/components/shareDialog/index.d.ts.map +0 -1
  590. package/dist/components/showError/IErrorDisplayProps.d.ts.map +0 -1
  591. package/dist/components/showError/ShowError.d.ts.map +0 -1
  592. package/dist/components/showError/index.d.ts.map +0 -1
  593. package/dist/components/showError/useShowErrorStyles.d.ts.map +0 -1
  594. package/dist/components/showMessage/IShowMessage.d.ts.map +0 -1
  595. package/dist/components/showMessage/ShowMessage.d.ts.map +0 -1
  596. package/dist/components/showMessage/index.d.ts.map +0 -1
  597. package/dist/components/showMessage/useShowMessageStyles.d.ts.map +0 -1
  598. package/dist/components/stackv2/IStackV2Props.d.ts.map +0 -1
  599. package/dist/components/stackv2/StackV2.d.ts.map +0 -1
  600. package/dist/components/stackv2/index.d.ts.map +0 -1
  601. package/dist/components/svgImages/BusinessReportIcon.d.ts.map +0 -1
  602. package/dist/components/typographyControl/ITypographyControlProps.d.ts.map +0 -1
  603. package/dist/components/typographyControl/TypographyControl.d.ts.map +0 -1
  604. package/dist/components/typographyControl/index.d.ts.map +0 -1
  605. package/dist/components/userCard/IUserCardProps.d.ts.map +0 -1
  606. package/dist/components/userCard/IUserInfo.d.ts.map +0 -1
  607. package/dist/components/userCard/UserCard.d.ts.map +0 -1
  608. package/dist/components/userCard/constants.d.ts.map +0 -1
  609. package/dist/components/userCard/index.d.ts.map +0 -1
  610. package/dist/components/userCard/useUserCardStyles.d.ts.map +0 -1
  611. package/dist/components/userCard/useUserProfile.d.ts.map +0 -1
  612. package/dist/components/videoPlayer/VideoPlayer.d.ts.map +0 -1
  613. package/dist/components/videoPlayer/index.d.ts.map +0 -1
  614. package/dist/components/videoPlayer/useVideoStyles.d.ts.map +0 -1
  615. package/dist/components/worldMap/IWorldMapProps.d.ts.map +0 -1
  616. package/dist/components/worldMap/MapNavigation.d.ts.map +0 -1
  617. package/dist/components/worldMap/MaplibreWorldMapProps.d.ts.map +0 -1
  618. package/dist/components/worldMap/TooltipContent.d.ts.map +0 -1
  619. package/dist/components/worldMap/WorldMap.d.ts.map +0 -1
  620. package/dist/components/worldMap/WorldMapControl.d.ts.map +0 -1
  621. package/dist/components/worldMap/data.d.ts.map +0 -1
  622. package/dist/components/worldMap/index.d.ts.map +0 -1
  623. package/dist/components/worldMap/marker.d.ts.map +0 -1
  624. package/dist/components/worldMap/useCleanMapStyle.d.ts.map +0 -1
  625. package/dist/components/worldMap/useContentToolTipStyles.d.ts.map +0 -1
  626. package/dist/components/worldMap/useGeocodedCountries.d.ts.map +0 -1
  627. package/dist/constants/EBreakPoints.d.ts.map +0 -1
  628. package/dist/constants/EMessageTypes.d.ts.map +0 -1
  629. package/dist/constants/index.d.ts.map +0 -1
  630. package/dist/hooks/index.d.ts.map +0 -1
  631. package/dist/hooks/useAIAssistant.d.ts.map +0 -1
  632. package/dist/hooks/useAIAssistantParser.d.ts.map +0 -1
  633. package/dist/hooks/useGraphAPI.d.ts.map +0 -1
  634. package/dist/hooks/useIndexedDB.d.ts.map +0 -1
  635. package/dist/hooks/useLogging.d.ts.map +0 -1
  636. package/dist/hooks/usePolling.d.ts.map +0 -1
  637. package/dist/hooks/useTimeZone.d.ts.map +0 -1
  638. package/dist/hooks/useTimeZoneHelper.d.ts.map +0 -1
  639. package/dist/index.d.ts.map +0 -1
  640. package/dist/index.js.map +0 -1
  641. package/dist/index.mjs +0 -27983
  642. package/dist/index.mjs.map +0 -1
  643. package/dist/models/IAppCardContainer.d.ts.map +0 -1
  644. package/dist/models/index.d.ts.map +0 -1
  645. package/dist/providers.js.map +0 -1
  646. package/dist/providers.mjs +0 -250
  647. package/dist/providers.mjs.map +0 -1
  648. package/dist/types/TBaseSpacing.d.ts.map +0 -1
  649. package/dist/types/THorizontalSpacing.d.ts.map +0 -1
  650. package/dist/types/THorizontalSpacingBreakPoints.d.ts.map +0 -1
  651. package/dist/types/TLayoutBreakPoints.d.ts.map +0 -1
  652. package/dist/types/TPaddingBreakPoints.d.ts.map +0 -1
  653. package/dist/types/TPading.d.ts.map +0 -1
  654. package/dist/types/TVerticalSpacing.d.ts.map +0 -1
  655. package/dist/types/TVerticalSpacingBreakPoints.d.ts.map +0 -1
  656. package/dist/types/index.d.ts.map +0 -1
  657. package/dist/utils/contentDetector.d.ts.map +0 -1
  658. package/dist/utils/index.d.ts.map +0 -1
  659. package/dist/utils/lodash.d.ts.map +0 -1
  660. package/dist/utils/useComponentsUtils.d.ts.map +0 -1
  661. package/dist/utils/useDateUtils.d.ts.map +0 -1
  662. package/dist/utils/useImageUtils.d.ts.map +0 -1
@@ -0,0 +1,3652 @@
1
+ import { b6 as Rgb, b7 as rgbConvert, b8 as define, b9 as extend, ba as Color, bb as nogamma, bc as hue, al as commonjsGlobal, ak as getDefaultExportFromCjs, _ as __name, g as getAccDescription, s as setAccDescription, t as getDiagramTitle, q as setDiagramTitle, a as getAccTitle, b as setAccTitle, c as getConfig2, d as select, e as configureSvgSize, bd as dayjs2, l as log, k as common_default, j as sanitizeUrl_1, z as clear, u as utils_default } from "./index-CP55uT1-.js";
2
+ import { b as bisector, t as tickStep, c as continuous, a as copy, l as linear } from "./linear-R5bATomY.js";
3
+ import { i as initRange } from "./init-ZxktEp_H.js";
4
+ function max(values, valueof) {
5
+ let max2;
6
+ if (valueof === void 0) {
7
+ for (const value of values) {
8
+ if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
9
+ max2 = value;
10
+ }
11
+ }
12
+ } else {
13
+ let index = -1;
14
+ for (let value of values) {
15
+ if ((value = valueof(value, ++index, values)) != null && (max2 < value || max2 === void 0 && value >= value)) {
16
+ max2 = value;
17
+ }
18
+ }
19
+ }
20
+ return max2;
21
+ }
22
+ function min(values, valueof) {
23
+ let min2;
24
+ if (valueof === void 0) {
25
+ for (const value of values) {
26
+ if (value != null && (min2 > value || min2 === void 0 && value >= value)) {
27
+ min2 = value;
28
+ }
29
+ }
30
+ } else {
31
+ let index = -1;
32
+ for (let value of values) {
33
+ if ((value = valueof(value, ++index, values)) != null && (min2 > value || min2 === void 0 && value >= value)) {
34
+ min2 = value;
35
+ }
36
+ }
37
+ }
38
+ return min2;
39
+ }
40
+ function identity(x) {
41
+ return x;
42
+ }
43
+ var top = 1, right = 2, bottom = 3, left = 4, epsilon = 1e-6;
44
+ function translateX(x) {
45
+ return "translate(" + x + ",0)";
46
+ }
47
+ function translateY(y) {
48
+ return "translate(0," + y + ")";
49
+ }
50
+ function number$1(scale) {
51
+ return (d) => +scale(d);
52
+ }
53
+ function center(scale, offset) {
54
+ offset = Math.max(0, scale.bandwidth() - offset * 2) / 2;
55
+ if (scale.round()) offset = Math.round(offset);
56
+ return (d) => +scale(d) + offset;
57
+ }
58
+ function entering() {
59
+ return !this.__axis;
60
+ }
61
+ function axis(orient, scale) {
62
+ var tickArguments = [], tickValues = null, tickFormat = null, tickSizeInner = 6, tickSizeOuter = 6, tickPadding = 3, offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5, k = orient === top || orient === left ? -1 : 1, x = orient === left || orient === right ? "x" : "y", transform = orient === top || orient === bottom ? translateX : translateY;
63
+ function axis2(context) {
64
+ var values = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain() : tickValues, format = tickFormat == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity : tickFormat, spacing = Math.max(tickSizeInner, 0) + tickPadding, range = scale.range(), range0 = +range[0] + offset, range1 = +range[range.length - 1] + offset, position = (scale.bandwidth ? center : number$1)(scale.copy(), offset), selection = context.selection ? context.selection() : context, path = selection.selectAll(".domain").data([null]), tick = selection.selectAll(".tick").data(values, scale).order(), tickExit = tick.exit(), tickEnter = tick.enter().append("g").attr("class", "tick"), line = tick.select("line"), text = tick.select("text");
65
+ path = path.merge(path.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor"));
66
+ tick = tick.merge(tickEnter);
67
+ line = line.merge(tickEnter.append("line").attr("stroke", "currentColor").attr(x + "2", k * tickSizeInner));
68
+ text = text.merge(tickEnter.append("text").attr("fill", "currentColor").attr(x, k * spacing).attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
69
+ if (context !== selection) {
70
+ path = path.transition(context);
71
+ tick = tick.transition(context);
72
+ line = line.transition(context);
73
+ text = text.transition(context);
74
+ tickExit = tickExit.transition(context).attr("opacity", epsilon).attr("transform", function(d) {
75
+ return isFinite(d = position(d)) ? transform(d + offset) : this.getAttribute("transform");
76
+ });
77
+ tickEnter.attr("opacity", epsilon).attr("transform", function(d) {
78
+ var p = this.parentNode.__axis;
79
+ return transform((p && isFinite(p = p(d)) ? p : position(d)) + offset);
80
+ });
81
+ }
82
+ tickExit.remove();
83
+ path.attr("d", orient === left || orient === right ? tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H" + offset + "V" + range1 + "H" + k * tickSizeOuter : "M" + offset + "," + range0 + "V" + range1 : tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V" + offset + "H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + "," + offset + "H" + range1);
84
+ tick.attr("opacity", 1).attr("transform", function(d) {
85
+ return transform(position(d) + offset);
86
+ });
87
+ line.attr(x + "2", k * tickSizeInner);
88
+ text.attr(x, k * spacing).text(format);
89
+ selection.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle");
90
+ selection.each(function() {
91
+ this.__axis = position;
92
+ });
93
+ }
94
+ axis2.scale = function(_) {
95
+ return arguments.length ? (scale = _, axis2) : scale;
96
+ };
97
+ axis2.ticks = function() {
98
+ return tickArguments = Array.from(arguments), axis2;
99
+ };
100
+ axis2.tickArguments = function(_) {
101
+ return arguments.length ? (tickArguments = _ == null ? [] : Array.from(_), axis2) : tickArguments.slice();
102
+ };
103
+ axis2.tickValues = function(_) {
104
+ return arguments.length ? (tickValues = _ == null ? null : Array.from(_), axis2) : tickValues && tickValues.slice();
105
+ };
106
+ axis2.tickFormat = function(_) {
107
+ return arguments.length ? (tickFormat = _, axis2) : tickFormat;
108
+ };
109
+ axis2.tickSize = function(_) {
110
+ return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis2) : tickSizeInner;
111
+ };
112
+ axis2.tickSizeInner = function(_) {
113
+ return arguments.length ? (tickSizeInner = +_, axis2) : tickSizeInner;
114
+ };
115
+ axis2.tickSizeOuter = function(_) {
116
+ return arguments.length ? (tickSizeOuter = +_, axis2) : tickSizeOuter;
117
+ };
118
+ axis2.tickPadding = function(_) {
119
+ return arguments.length ? (tickPadding = +_, axis2) : tickPadding;
120
+ };
121
+ axis2.offset = function(_) {
122
+ return arguments.length ? (offset = +_, axis2) : offset;
123
+ };
124
+ return axis2;
125
+ }
126
+ function axisTop(scale) {
127
+ return axis(top, scale);
128
+ }
129
+ function axisBottom(scale) {
130
+ return axis(bottom, scale);
131
+ }
132
+ const radians = Math.PI / 180;
133
+ const degrees = 180 / Math.PI;
134
+ const K = 18, Xn = 0.96422, Yn = 1, Zn = 0.82521, t0$1 = 4 / 29, t1$1 = 6 / 29, t2 = 3 * t1$1 * t1$1, t3 = t1$1 * t1$1 * t1$1;
135
+ function labConvert(o) {
136
+ if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
137
+ if (o instanceof Hcl) return hcl2lab(o);
138
+ if (!(o instanceof Rgb)) o = rgbConvert(o);
139
+ var r = rgb2lrgb(o.r), g = rgb2lrgb(o.g), b = rgb2lrgb(o.b), y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;
140
+ if (r === g && g === b) x = z = y;
141
+ else {
142
+ x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
143
+ z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
144
+ }
145
+ return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
146
+ }
147
+ function lab(l, a, b, opacity) {
148
+ return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
149
+ }
150
+ function Lab(l, a, b, opacity) {
151
+ this.l = +l;
152
+ this.a = +a;
153
+ this.b = +b;
154
+ this.opacity = +opacity;
155
+ }
156
+ define(Lab, lab, extend(Color, {
157
+ brighter(k) {
158
+ return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
159
+ },
160
+ darker(k) {
161
+ return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
162
+ },
163
+ rgb() {
164
+ var y = (this.l + 16) / 116, x = isNaN(this.a) ? y : y + this.a / 500, z = isNaN(this.b) ? y : y - this.b / 200;
165
+ x = Xn * lab2xyz(x);
166
+ y = Yn * lab2xyz(y);
167
+ z = Zn * lab2xyz(z);
168
+ return new Rgb(
169
+ lrgb2rgb(3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
170
+ lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.033454 * z),
171
+ lrgb2rgb(0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
172
+ this.opacity
173
+ );
174
+ }
175
+ }));
176
+ function xyz2lab(t) {
177
+ return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0$1;
178
+ }
179
+ function lab2xyz(t) {
180
+ return t > t1$1 ? t * t * t : t2 * (t - t0$1);
181
+ }
182
+ function lrgb2rgb(x) {
183
+ return 255 * (x <= 31308e-7 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
184
+ }
185
+ function rgb2lrgb(x) {
186
+ return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
187
+ }
188
+ function hclConvert(o) {
189
+ if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
190
+ if (!(o instanceof Lab)) o = labConvert(o);
191
+ if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
192
+ var h = Math.atan2(o.b, o.a) * degrees;
193
+ return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
194
+ }
195
+ function hcl$1(h, c, l, opacity) {
196
+ return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
197
+ }
198
+ function Hcl(h, c, l, opacity) {
199
+ this.h = +h;
200
+ this.c = +c;
201
+ this.l = +l;
202
+ this.opacity = +opacity;
203
+ }
204
+ function hcl2lab(o) {
205
+ if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
206
+ var h = o.h * radians;
207
+ return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
208
+ }
209
+ define(Hcl, hcl$1, extend(Color, {
210
+ brighter(k) {
211
+ return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
212
+ },
213
+ darker(k) {
214
+ return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
215
+ },
216
+ rgb() {
217
+ return hcl2lab(this).rgb();
218
+ }
219
+ }));
220
+ function hcl(hue2) {
221
+ return function(start, end) {
222
+ var h = hue2((start = hcl$1(start)).h, (end = hcl$1(end)).h), c = nogamma(start.c, end.c), l = nogamma(start.l, end.l), opacity = nogamma(start.opacity, end.opacity);
223
+ return function(t) {
224
+ start.h = h(t);
225
+ start.c = c(t);
226
+ start.l = l(t);
227
+ start.opacity = opacity(t);
228
+ return start + "";
229
+ };
230
+ };
231
+ }
232
+ const interpolateHcl = hcl(hue);
233
+ function nice(domain, interval) {
234
+ domain = domain.slice();
235
+ var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], t;
236
+ if (x1 < x0) {
237
+ t = i0, i0 = i1, i1 = t;
238
+ t = x0, x0 = x1, x1 = t;
239
+ }
240
+ domain[i0] = interval.floor(x0);
241
+ domain[i1] = interval.ceil(x1);
242
+ return domain;
243
+ }
244
+ const t0 = /* @__PURE__ */ new Date(), t1 = /* @__PURE__ */ new Date();
245
+ function timeInterval(floori, offseti, count, field) {
246
+ function interval(date2) {
247
+ return floori(date2 = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+date2)), date2;
248
+ }
249
+ interval.floor = (date2) => {
250
+ return floori(date2 = /* @__PURE__ */ new Date(+date2)), date2;
251
+ };
252
+ interval.ceil = (date2) => {
253
+ return floori(date2 = new Date(date2 - 1)), offseti(date2, 1), floori(date2), date2;
254
+ };
255
+ interval.round = (date2) => {
256
+ const d0 = interval(date2), d1 = interval.ceil(date2);
257
+ return date2 - d0 < d1 - date2 ? d0 : d1;
258
+ };
259
+ interval.offset = (date2, step) => {
260
+ return offseti(date2 = /* @__PURE__ */ new Date(+date2), step == null ? 1 : Math.floor(step)), date2;
261
+ };
262
+ interval.range = (start, stop, step) => {
263
+ const range = [];
264
+ start = interval.ceil(start);
265
+ step = step == null ? 1 : Math.floor(step);
266
+ if (!(start < stop) || !(step > 0)) return range;
267
+ let previous;
268
+ do
269
+ range.push(previous = /* @__PURE__ */ new Date(+start)), offseti(start, step), floori(start);
270
+ while (previous < start && start < stop);
271
+ return range;
272
+ };
273
+ interval.filter = (test) => {
274
+ return timeInterval((date2) => {
275
+ if (date2 >= date2) while (floori(date2), !test(date2)) date2.setTime(date2 - 1);
276
+ }, (date2, step) => {
277
+ if (date2 >= date2) {
278
+ if (step < 0) while (++step <= 0) {
279
+ while (offseti(date2, -1), !test(date2)) {
280
+ }
281
+ }
282
+ else while (--step >= 0) {
283
+ while (offseti(date2, 1), !test(date2)) {
284
+ }
285
+ }
286
+ }
287
+ });
288
+ };
289
+ if (count) {
290
+ interval.count = (start, end) => {
291
+ t0.setTime(+start), t1.setTime(+end);
292
+ floori(t0), floori(t1);
293
+ return Math.floor(count(t0, t1));
294
+ };
295
+ interval.every = (step) => {
296
+ step = Math.floor(step);
297
+ return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval : interval.filter(field ? (d) => field(d) % step === 0 : (d) => interval.count(0, d) % step === 0);
298
+ };
299
+ }
300
+ return interval;
301
+ }
302
+ const millisecond = timeInterval(() => {
303
+ }, (date2, step) => {
304
+ date2.setTime(+date2 + step);
305
+ }, (start, end) => {
306
+ return end - start;
307
+ });
308
+ millisecond.every = (k) => {
309
+ k = Math.floor(k);
310
+ if (!isFinite(k) || !(k > 0)) return null;
311
+ if (!(k > 1)) return millisecond;
312
+ return timeInterval((date2) => {
313
+ date2.setTime(Math.floor(date2 / k) * k);
314
+ }, (date2, step) => {
315
+ date2.setTime(+date2 + step * k);
316
+ }, (start, end) => {
317
+ return (end - start) / k;
318
+ });
319
+ };
320
+ millisecond.range;
321
+ const durationSecond = 1e3;
322
+ const durationMinute = durationSecond * 60;
323
+ const durationHour = durationMinute * 60;
324
+ const durationDay = durationHour * 24;
325
+ const durationWeek = durationDay * 7;
326
+ const durationMonth = durationDay * 30;
327
+ const durationYear = durationDay * 365;
328
+ const second = timeInterval((date2) => {
329
+ date2.setTime(date2 - date2.getMilliseconds());
330
+ }, (date2, step) => {
331
+ date2.setTime(+date2 + step * durationSecond);
332
+ }, (start, end) => {
333
+ return (end - start) / durationSecond;
334
+ }, (date2) => {
335
+ return date2.getUTCSeconds();
336
+ });
337
+ second.range;
338
+ const timeMinute = timeInterval((date2) => {
339
+ date2.setTime(date2 - date2.getMilliseconds() - date2.getSeconds() * durationSecond);
340
+ }, (date2, step) => {
341
+ date2.setTime(+date2 + step * durationMinute);
342
+ }, (start, end) => {
343
+ return (end - start) / durationMinute;
344
+ }, (date2) => {
345
+ return date2.getMinutes();
346
+ });
347
+ timeMinute.range;
348
+ const utcMinute = timeInterval((date2) => {
349
+ date2.setUTCSeconds(0, 0);
350
+ }, (date2, step) => {
351
+ date2.setTime(+date2 + step * durationMinute);
352
+ }, (start, end) => {
353
+ return (end - start) / durationMinute;
354
+ }, (date2) => {
355
+ return date2.getUTCMinutes();
356
+ });
357
+ utcMinute.range;
358
+ const timeHour = timeInterval((date2) => {
359
+ date2.setTime(date2 - date2.getMilliseconds() - date2.getSeconds() * durationSecond - date2.getMinutes() * durationMinute);
360
+ }, (date2, step) => {
361
+ date2.setTime(+date2 + step * durationHour);
362
+ }, (start, end) => {
363
+ return (end - start) / durationHour;
364
+ }, (date2) => {
365
+ return date2.getHours();
366
+ });
367
+ timeHour.range;
368
+ const utcHour = timeInterval((date2) => {
369
+ date2.setUTCMinutes(0, 0, 0);
370
+ }, (date2, step) => {
371
+ date2.setTime(+date2 + step * durationHour);
372
+ }, (start, end) => {
373
+ return (end - start) / durationHour;
374
+ }, (date2) => {
375
+ return date2.getUTCHours();
376
+ });
377
+ utcHour.range;
378
+ const timeDay = timeInterval(
379
+ (date2) => date2.setHours(0, 0, 0, 0),
380
+ (date2, step) => date2.setDate(date2.getDate() + step),
381
+ (start, end) => (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay,
382
+ (date2) => date2.getDate() - 1
383
+ );
384
+ timeDay.range;
385
+ const utcDay = timeInterval((date2) => {
386
+ date2.setUTCHours(0, 0, 0, 0);
387
+ }, (date2, step) => {
388
+ date2.setUTCDate(date2.getUTCDate() + step);
389
+ }, (start, end) => {
390
+ return (end - start) / durationDay;
391
+ }, (date2) => {
392
+ return date2.getUTCDate() - 1;
393
+ });
394
+ utcDay.range;
395
+ const unixDay = timeInterval((date2) => {
396
+ date2.setUTCHours(0, 0, 0, 0);
397
+ }, (date2, step) => {
398
+ date2.setUTCDate(date2.getUTCDate() + step);
399
+ }, (start, end) => {
400
+ return (end - start) / durationDay;
401
+ }, (date2) => {
402
+ return Math.floor(date2 / durationDay);
403
+ });
404
+ unixDay.range;
405
+ function timeWeekday(i) {
406
+ return timeInterval((date2) => {
407
+ date2.setDate(date2.getDate() - (date2.getDay() + 7 - i) % 7);
408
+ date2.setHours(0, 0, 0, 0);
409
+ }, (date2, step) => {
410
+ date2.setDate(date2.getDate() + step * 7);
411
+ }, (start, end) => {
412
+ return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;
413
+ });
414
+ }
415
+ const timeSunday = timeWeekday(0);
416
+ const timeMonday = timeWeekday(1);
417
+ const timeTuesday = timeWeekday(2);
418
+ const timeWednesday = timeWeekday(3);
419
+ const timeThursday = timeWeekday(4);
420
+ const timeFriday = timeWeekday(5);
421
+ const timeSaturday = timeWeekday(6);
422
+ timeSunday.range;
423
+ timeMonday.range;
424
+ timeTuesday.range;
425
+ timeWednesday.range;
426
+ timeThursday.range;
427
+ timeFriday.range;
428
+ timeSaturday.range;
429
+ function utcWeekday(i) {
430
+ return timeInterval((date2) => {
431
+ date2.setUTCDate(date2.getUTCDate() - (date2.getUTCDay() + 7 - i) % 7);
432
+ date2.setUTCHours(0, 0, 0, 0);
433
+ }, (date2, step) => {
434
+ date2.setUTCDate(date2.getUTCDate() + step * 7);
435
+ }, (start, end) => {
436
+ return (end - start) / durationWeek;
437
+ });
438
+ }
439
+ const utcSunday = utcWeekday(0);
440
+ const utcMonday = utcWeekday(1);
441
+ const utcTuesday = utcWeekday(2);
442
+ const utcWednesday = utcWeekday(3);
443
+ const utcThursday = utcWeekday(4);
444
+ const utcFriday = utcWeekday(5);
445
+ const utcSaturday = utcWeekday(6);
446
+ utcSunday.range;
447
+ utcMonday.range;
448
+ utcTuesday.range;
449
+ utcWednesday.range;
450
+ utcThursday.range;
451
+ utcFriday.range;
452
+ utcSaturday.range;
453
+ const timeMonth = timeInterval((date2) => {
454
+ date2.setDate(1);
455
+ date2.setHours(0, 0, 0, 0);
456
+ }, (date2, step) => {
457
+ date2.setMonth(date2.getMonth() + step);
458
+ }, (start, end) => {
459
+ return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
460
+ }, (date2) => {
461
+ return date2.getMonth();
462
+ });
463
+ timeMonth.range;
464
+ const utcMonth = timeInterval((date2) => {
465
+ date2.setUTCDate(1);
466
+ date2.setUTCHours(0, 0, 0, 0);
467
+ }, (date2, step) => {
468
+ date2.setUTCMonth(date2.getUTCMonth() + step);
469
+ }, (start, end) => {
470
+ return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
471
+ }, (date2) => {
472
+ return date2.getUTCMonth();
473
+ });
474
+ utcMonth.range;
475
+ const timeYear = timeInterval((date2) => {
476
+ date2.setMonth(0, 1);
477
+ date2.setHours(0, 0, 0, 0);
478
+ }, (date2, step) => {
479
+ date2.setFullYear(date2.getFullYear() + step);
480
+ }, (start, end) => {
481
+ return end.getFullYear() - start.getFullYear();
482
+ }, (date2) => {
483
+ return date2.getFullYear();
484
+ });
485
+ timeYear.every = (k) => {
486
+ return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date2) => {
487
+ date2.setFullYear(Math.floor(date2.getFullYear() / k) * k);
488
+ date2.setMonth(0, 1);
489
+ date2.setHours(0, 0, 0, 0);
490
+ }, (date2, step) => {
491
+ date2.setFullYear(date2.getFullYear() + step * k);
492
+ });
493
+ };
494
+ timeYear.range;
495
+ const utcYear = timeInterval((date2) => {
496
+ date2.setUTCMonth(0, 1);
497
+ date2.setUTCHours(0, 0, 0, 0);
498
+ }, (date2, step) => {
499
+ date2.setUTCFullYear(date2.getUTCFullYear() + step);
500
+ }, (start, end) => {
501
+ return end.getUTCFullYear() - start.getUTCFullYear();
502
+ }, (date2) => {
503
+ return date2.getUTCFullYear();
504
+ });
505
+ utcYear.every = (k) => {
506
+ return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date2) => {
507
+ date2.setUTCFullYear(Math.floor(date2.getUTCFullYear() / k) * k);
508
+ date2.setUTCMonth(0, 1);
509
+ date2.setUTCHours(0, 0, 0, 0);
510
+ }, (date2, step) => {
511
+ date2.setUTCFullYear(date2.getUTCFullYear() + step * k);
512
+ });
513
+ };
514
+ utcYear.range;
515
+ function ticker(year, month, week, day, hour, minute) {
516
+ const tickIntervals = [
517
+ [second, 1, durationSecond],
518
+ [second, 5, 5 * durationSecond],
519
+ [second, 15, 15 * durationSecond],
520
+ [second, 30, 30 * durationSecond],
521
+ [minute, 1, durationMinute],
522
+ [minute, 5, 5 * durationMinute],
523
+ [minute, 15, 15 * durationMinute],
524
+ [minute, 30, 30 * durationMinute],
525
+ [hour, 1, durationHour],
526
+ [hour, 3, 3 * durationHour],
527
+ [hour, 6, 6 * durationHour],
528
+ [hour, 12, 12 * durationHour],
529
+ [day, 1, durationDay],
530
+ [day, 2, 2 * durationDay],
531
+ [week, 1, durationWeek],
532
+ [month, 1, durationMonth],
533
+ [month, 3, 3 * durationMonth],
534
+ [year, 1, durationYear]
535
+ ];
536
+ function ticks(start, stop, count) {
537
+ const reverse = stop < start;
538
+ if (reverse) [start, stop] = [stop, start];
539
+ const interval = count && typeof count.range === "function" ? count : tickInterval2(start, stop, count);
540
+ const ticks2 = interval ? interval.range(start, +stop + 1) : [];
541
+ return reverse ? ticks2.reverse() : ticks2;
542
+ }
543
+ function tickInterval2(start, stop, count) {
544
+ const target = Math.abs(stop - start) / count;
545
+ const i = bisector(([, , step2]) => step2).right(tickIntervals, target);
546
+ if (i === tickIntervals.length) return year.every(tickStep(start / durationYear, stop / durationYear, count));
547
+ if (i === 0) return millisecond.every(Math.max(tickStep(start, stop, count), 1));
548
+ const [t, step] = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
549
+ return t.every(step);
550
+ }
551
+ return [ticks, tickInterval2];
552
+ }
553
+ const [timeTicks, timeTickInterval] = ticker(timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute);
554
+ function localDate(d) {
555
+ if (0 <= d.y && d.y < 100) {
556
+ var date2 = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
557
+ date2.setFullYear(d.y);
558
+ return date2;
559
+ }
560
+ return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
561
+ }
562
+ function utcDate(d) {
563
+ if (0 <= d.y && d.y < 100) {
564
+ var date2 = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
565
+ date2.setUTCFullYear(d.y);
566
+ return date2;
567
+ }
568
+ return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
569
+ }
570
+ function newDate(y, m, d) {
571
+ return { y, m, d, H: 0, M: 0, S: 0, L: 0 };
572
+ }
573
+ function formatLocale(locale2) {
574
+ var locale_dateTime = locale2.dateTime, locale_date = locale2.date, locale_time = locale2.time, locale_periods = locale2.periods, locale_weekdays = locale2.days, locale_shortWeekdays = locale2.shortDays, locale_months = locale2.months, locale_shortMonths = locale2.shortMonths;
575
+ var periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths);
576
+ var formats = {
577
+ "a": formatShortWeekday,
578
+ "A": formatWeekday,
579
+ "b": formatShortMonth,
580
+ "B": formatMonth,
581
+ "c": null,
582
+ "d": formatDayOfMonth,
583
+ "e": formatDayOfMonth,
584
+ "f": formatMicroseconds,
585
+ "g": formatYearISO,
586
+ "G": formatFullYearISO,
587
+ "H": formatHour24,
588
+ "I": formatHour12,
589
+ "j": formatDayOfYear,
590
+ "L": formatMilliseconds,
591
+ "m": formatMonthNumber,
592
+ "M": formatMinutes,
593
+ "p": formatPeriod,
594
+ "q": formatQuarter,
595
+ "Q": formatUnixTimestamp,
596
+ "s": formatUnixTimestampSeconds,
597
+ "S": formatSeconds,
598
+ "u": formatWeekdayNumberMonday,
599
+ "U": formatWeekNumberSunday,
600
+ "V": formatWeekNumberISO,
601
+ "w": formatWeekdayNumberSunday,
602
+ "W": formatWeekNumberMonday,
603
+ "x": null,
604
+ "X": null,
605
+ "y": formatYear,
606
+ "Y": formatFullYear,
607
+ "Z": formatZone,
608
+ "%": formatLiteralPercent
609
+ };
610
+ var utcFormats = {
611
+ "a": formatUTCShortWeekday,
612
+ "A": formatUTCWeekday,
613
+ "b": formatUTCShortMonth,
614
+ "B": formatUTCMonth,
615
+ "c": null,
616
+ "d": formatUTCDayOfMonth,
617
+ "e": formatUTCDayOfMonth,
618
+ "f": formatUTCMicroseconds,
619
+ "g": formatUTCYearISO,
620
+ "G": formatUTCFullYearISO,
621
+ "H": formatUTCHour24,
622
+ "I": formatUTCHour12,
623
+ "j": formatUTCDayOfYear,
624
+ "L": formatUTCMilliseconds,
625
+ "m": formatUTCMonthNumber,
626
+ "M": formatUTCMinutes,
627
+ "p": formatUTCPeriod,
628
+ "q": formatUTCQuarter,
629
+ "Q": formatUnixTimestamp,
630
+ "s": formatUnixTimestampSeconds,
631
+ "S": formatUTCSeconds,
632
+ "u": formatUTCWeekdayNumberMonday,
633
+ "U": formatUTCWeekNumberSunday,
634
+ "V": formatUTCWeekNumberISO,
635
+ "w": formatUTCWeekdayNumberSunday,
636
+ "W": formatUTCWeekNumberMonday,
637
+ "x": null,
638
+ "X": null,
639
+ "y": formatUTCYear,
640
+ "Y": formatUTCFullYear,
641
+ "Z": formatUTCZone,
642
+ "%": formatLiteralPercent
643
+ };
644
+ var parses = {
645
+ "a": parseShortWeekday,
646
+ "A": parseWeekday,
647
+ "b": parseShortMonth,
648
+ "B": parseMonth,
649
+ "c": parseLocaleDateTime,
650
+ "d": parseDayOfMonth,
651
+ "e": parseDayOfMonth,
652
+ "f": parseMicroseconds,
653
+ "g": parseYear,
654
+ "G": parseFullYear,
655
+ "H": parseHour24,
656
+ "I": parseHour24,
657
+ "j": parseDayOfYear,
658
+ "L": parseMilliseconds,
659
+ "m": parseMonthNumber,
660
+ "M": parseMinutes,
661
+ "p": parsePeriod,
662
+ "q": parseQuarter,
663
+ "Q": parseUnixTimestamp,
664
+ "s": parseUnixTimestampSeconds,
665
+ "S": parseSeconds,
666
+ "u": parseWeekdayNumberMonday,
667
+ "U": parseWeekNumberSunday,
668
+ "V": parseWeekNumberISO,
669
+ "w": parseWeekdayNumberSunday,
670
+ "W": parseWeekNumberMonday,
671
+ "x": parseLocaleDate,
672
+ "X": parseLocaleTime,
673
+ "y": parseYear,
674
+ "Y": parseFullYear,
675
+ "Z": parseZone,
676
+ "%": parseLiteralPercent
677
+ };
678
+ formats.x = newFormat(locale_date, formats);
679
+ formats.X = newFormat(locale_time, formats);
680
+ formats.c = newFormat(locale_dateTime, formats);
681
+ utcFormats.x = newFormat(locale_date, utcFormats);
682
+ utcFormats.X = newFormat(locale_time, utcFormats);
683
+ utcFormats.c = newFormat(locale_dateTime, utcFormats);
684
+ function newFormat(specifier, formats2) {
685
+ return function(date2) {
686
+ var string = [], i = -1, j = 0, n = specifier.length, c, pad2, format;
687
+ if (!(date2 instanceof Date)) date2 = /* @__PURE__ */ new Date(+date2);
688
+ while (++i < n) {
689
+ if (specifier.charCodeAt(i) === 37) {
690
+ string.push(specifier.slice(j, i));
691
+ if ((pad2 = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);
692
+ else pad2 = c === "e" ? " " : "0";
693
+ if (format = formats2[c]) c = format(date2, pad2);
694
+ string.push(c);
695
+ j = i + 1;
696
+ }
697
+ }
698
+ string.push(specifier.slice(j, i));
699
+ return string.join("");
700
+ };
701
+ }
702
+ function newParse(specifier, Z) {
703
+ return function(string) {
704
+ var d = newDate(1900, void 0, 1), i = parseSpecifier(d, specifier, string += "", 0), week, day;
705
+ if (i != string.length) return null;
706
+ if ("Q" in d) return new Date(d.Q);
707
+ if ("s" in d) return new Date(d.s * 1e3 + ("L" in d ? d.L : 0));
708
+ if (Z && !("Z" in d)) d.Z = 0;
709
+ if ("p" in d) d.H = d.H % 12 + d.p * 12;
710
+ if (d.m === void 0) d.m = "q" in d ? d.q : 0;
711
+ if ("V" in d) {
712
+ if (d.V < 1 || d.V > 53) return null;
713
+ if (!("w" in d)) d.w = 1;
714
+ if ("Z" in d) {
715
+ week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
716
+ week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);
717
+ week = utcDay.offset(week, (d.V - 1) * 7);
718
+ d.y = week.getUTCFullYear();
719
+ d.m = week.getUTCMonth();
720
+ d.d = week.getUTCDate() + (d.w + 6) % 7;
721
+ } else {
722
+ week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
723
+ week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);
724
+ week = timeDay.offset(week, (d.V - 1) * 7);
725
+ d.y = week.getFullYear();
726
+ d.m = week.getMonth();
727
+ d.d = week.getDate() + (d.w + 6) % 7;
728
+ }
729
+ } else if ("W" in d || "U" in d) {
730
+ if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
731
+ day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
732
+ d.m = 0;
733
+ d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
734
+ }
735
+ if ("Z" in d) {
736
+ d.H += d.Z / 100 | 0;
737
+ d.M += d.Z % 100;
738
+ return utcDate(d);
739
+ }
740
+ return localDate(d);
741
+ };
742
+ }
743
+ function parseSpecifier(d, specifier, string, j) {
744
+ var i = 0, n = specifier.length, m = string.length, c, parse;
745
+ while (i < n) {
746
+ if (j >= m) return -1;
747
+ c = specifier.charCodeAt(i++);
748
+ if (c === 37) {
749
+ c = specifier.charAt(i++);
750
+ parse = parses[c in pads ? specifier.charAt(i++) : c];
751
+ if (!parse || (j = parse(d, string, j)) < 0) return -1;
752
+ } else if (c != string.charCodeAt(j++)) {
753
+ return -1;
754
+ }
755
+ }
756
+ return j;
757
+ }
758
+ function parsePeriod(d, string, i) {
759
+ var n = periodRe.exec(string.slice(i));
760
+ return n ? (d.p = periodLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
761
+ }
762
+ function parseShortWeekday(d, string, i) {
763
+ var n = shortWeekdayRe.exec(string.slice(i));
764
+ return n ? (d.w = shortWeekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
765
+ }
766
+ function parseWeekday(d, string, i) {
767
+ var n = weekdayRe.exec(string.slice(i));
768
+ return n ? (d.w = weekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
769
+ }
770
+ function parseShortMonth(d, string, i) {
771
+ var n = shortMonthRe.exec(string.slice(i));
772
+ return n ? (d.m = shortMonthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
773
+ }
774
+ function parseMonth(d, string, i) {
775
+ var n = monthRe.exec(string.slice(i));
776
+ return n ? (d.m = monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
777
+ }
778
+ function parseLocaleDateTime(d, string, i) {
779
+ return parseSpecifier(d, locale_dateTime, string, i);
780
+ }
781
+ function parseLocaleDate(d, string, i) {
782
+ return parseSpecifier(d, locale_date, string, i);
783
+ }
784
+ function parseLocaleTime(d, string, i) {
785
+ return parseSpecifier(d, locale_time, string, i);
786
+ }
787
+ function formatShortWeekday(d) {
788
+ return locale_shortWeekdays[d.getDay()];
789
+ }
790
+ function formatWeekday(d) {
791
+ return locale_weekdays[d.getDay()];
792
+ }
793
+ function formatShortMonth(d) {
794
+ return locale_shortMonths[d.getMonth()];
795
+ }
796
+ function formatMonth(d) {
797
+ return locale_months[d.getMonth()];
798
+ }
799
+ function formatPeriod(d) {
800
+ return locale_periods[+(d.getHours() >= 12)];
801
+ }
802
+ function formatQuarter(d) {
803
+ return 1 + ~~(d.getMonth() / 3);
804
+ }
805
+ function formatUTCShortWeekday(d) {
806
+ return locale_shortWeekdays[d.getUTCDay()];
807
+ }
808
+ function formatUTCWeekday(d) {
809
+ return locale_weekdays[d.getUTCDay()];
810
+ }
811
+ function formatUTCShortMonth(d) {
812
+ return locale_shortMonths[d.getUTCMonth()];
813
+ }
814
+ function formatUTCMonth(d) {
815
+ return locale_months[d.getUTCMonth()];
816
+ }
817
+ function formatUTCPeriod(d) {
818
+ return locale_periods[+(d.getUTCHours() >= 12)];
819
+ }
820
+ function formatUTCQuarter(d) {
821
+ return 1 + ~~(d.getUTCMonth() / 3);
822
+ }
823
+ return {
824
+ format: function(specifier) {
825
+ var f = newFormat(specifier += "", formats);
826
+ f.toString = function() {
827
+ return specifier;
828
+ };
829
+ return f;
830
+ },
831
+ parse: function(specifier) {
832
+ var p = newParse(specifier += "", false);
833
+ p.toString = function() {
834
+ return specifier;
835
+ };
836
+ return p;
837
+ },
838
+ utcFormat: function(specifier) {
839
+ var f = newFormat(specifier += "", utcFormats);
840
+ f.toString = function() {
841
+ return specifier;
842
+ };
843
+ return f;
844
+ },
845
+ utcParse: function(specifier) {
846
+ var p = newParse(specifier += "", true);
847
+ p.toString = function() {
848
+ return specifier;
849
+ };
850
+ return p;
851
+ }
852
+ };
853
+ }
854
+ var pads = { "-": "", "_": " ", "0": "0" }, numberRe = /^\s*\d+/, percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g;
855
+ function pad(value, fill, width) {
856
+ var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length;
857
+ return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
858
+ }
859
+ function requote(s) {
860
+ return s.replace(requoteRe, "\\$&");
861
+ }
862
+ function formatRe(names) {
863
+ return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
864
+ }
865
+ function formatLookup(names) {
866
+ return new Map(names.map((name, i) => [name.toLowerCase(), i]));
867
+ }
868
+ function parseWeekdayNumberSunday(d, string, i) {
869
+ var n = numberRe.exec(string.slice(i, i + 1));
870
+ return n ? (d.w = +n[0], i + n[0].length) : -1;
871
+ }
872
+ function parseWeekdayNumberMonday(d, string, i) {
873
+ var n = numberRe.exec(string.slice(i, i + 1));
874
+ return n ? (d.u = +n[0], i + n[0].length) : -1;
875
+ }
876
+ function parseWeekNumberSunday(d, string, i) {
877
+ var n = numberRe.exec(string.slice(i, i + 2));
878
+ return n ? (d.U = +n[0], i + n[0].length) : -1;
879
+ }
880
+ function parseWeekNumberISO(d, string, i) {
881
+ var n = numberRe.exec(string.slice(i, i + 2));
882
+ return n ? (d.V = +n[0], i + n[0].length) : -1;
883
+ }
884
+ function parseWeekNumberMonday(d, string, i) {
885
+ var n = numberRe.exec(string.slice(i, i + 2));
886
+ return n ? (d.W = +n[0], i + n[0].length) : -1;
887
+ }
888
+ function parseFullYear(d, string, i) {
889
+ var n = numberRe.exec(string.slice(i, i + 4));
890
+ return n ? (d.y = +n[0], i + n[0].length) : -1;
891
+ }
892
+ function parseYear(d, string, i) {
893
+ var n = numberRe.exec(string.slice(i, i + 2));
894
+ return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), i + n[0].length) : -1;
895
+ }
896
+ function parseZone(d, string, i) {
897
+ var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
898
+ return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
899
+ }
900
+ function parseQuarter(d, string, i) {
901
+ var n = numberRe.exec(string.slice(i, i + 1));
902
+ return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;
903
+ }
904
+ function parseMonthNumber(d, string, i) {
905
+ var n = numberRe.exec(string.slice(i, i + 2));
906
+ return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
907
+ }
908
+ function parseDayOfMonth(d, string, i) {
909
+ var n = numberRe.exec(string.slice(i, i + 2));
910
+ return n ? (d.d = +n[0], i + n[0].length) : -1;
911
+ }
912
+ function parseDayOfYear(d, string, i) {
913
+ var n = numberRe.exec(string.slice(i, i + 3));
914
+ return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
915
+ }
916
+ function parseHour24(d, string, i) {
917
+ var n = numberRe.exec(string.slice(i, i + 2));
918
+ return n ? (d.H = +n[0], i + n[0].length) : -1;
919
+ }
920
+ function parseMinutes(d, string, i) {
921
+ var n = numberRe.exec(string.slice(i, i + 2));
922
+ return n ? (d.M = +n[0], i + n[0].length) : -1;
923
+ }
924
+ function parseSeconds(d, string, i) {
925
+ var n = numberRe.exec(string.slice(i, i + 2));
926
+ return n ? (d.S = +n[0], i + n[0].length) : -1;
927
+ }
928
+ function parseMilliseconds(d, string, i) {
929
+ var n = numberRe.exec(string.slice(i, i + 3));
930
+ return n ? (d.L = +n[0], i + n[0].length) : -1;
931
+ }
932
+ function parseMicroseconds(d, string, i) {
933
+ var n = numberRe.exec(string.slice(i, i + 6));
934
+ return n ? (d.L = Math.floor(n[0] / 1e3), i + n[0].length) : -1;
935
+ }
936
+ function parseLiteralPercent(d, string, i) {
937
+ var n = percentRe.exec(string.slice(i, i + 1));
938
+ return n ? i + n[0].length : -1;
939
+ }
940
+ function parseUnixTimestamp(d, string, i) {
941
+ var n = numberRe.exec(string.slice(i));
942
+ return n ? (d.Q = +n[0], i + n[0].length) : -1;
943
+ }
944
+ function parseUnixTimestampSeconds(d, string, i) {
945
+ var n = numberRe.exec(string.slice(i));
946
+ return n ? (d.s = +n[0], i + n[0].length) : -1;
947
+ }
948
+ function formatDayOfMonth(d, p) {
949
+ return pad(d.getDate(), p, 2);
950
+ }
951
+ function formatHour24(d, p) {
952
+ return pad(d.getHours(), p, 2);
953
+ }
954
+ function formatHour12(d, p) {
955
+ return pad(d.getHours() % 12 || 12, p, 2);
956
+ }
957
+ function formatDayOfYear(d, p) {
958
+ return pad(1 + timeDay.count(timeYear(d), d), p, 3);
959
+ }
960
+ function formatMilliseconds(d, p) {
961
+ return pad(d.getMilliseconds(), p, 3);
962
+ }
963
+ function formatMicroseconds(d, p) {
964
+ return formatMilliseconds(d, p) + "000";
965
+ }
966
+ function formatMonthNumber(d, p) {
967
+ return pad(d.getMonth() + 1, p, 2);
968
+ }
969
+ function formatMinutes(d, p) {
970
+ return pad(d.getMinutes(), p, 2);
971
+ }
972
+ function formatSeconds(d, p) {
973
+ return pad(d.getSeconds(), p, 2);
974
+ }
975
+ function formatWeekdayNumberMonday(d) {
976
+ var day = d.getDay();
977
+ return day === 0 ? 7 : day;
978
+ }
979
+ function formatWeekNumberSunday(d, p) {
980
+ return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);
981
+ }
982
+ function dISO(d) {
983
+ var day = d.getDay();
984
+ return day >= 4 || day === 0 ? timeThursday(d) : timeThursday.ceil(d);
985
+ }
986
+ function formatWeekNumberISO(d, p) {
987
+ d = dISO(d);
988
+ return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
989
+ }
990
+ function formatWeekdayNumberSunday(d) {
991
+ return d.getDay();
992
+ }
993
+ function formatWeekNumberMonday(d, p) {
994
+ return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);
995
+ }
996
+ function formatYear(d, p) {
997
+ return pad(d.getFullYear() % 100, p, 2);
998
+ }
999
+ function formatYearISO(d, p) {
1000
+ d = dISO(d);
1001
+ return pad(d.getFullYear() % 100, p, 2);
1002
+ }
1003
+ function formatFullYear(d, p) {
1004
+ return pad(d.getFullYear() % 1e4, p, 4);
1005
+ }
1006
+ function formatFullYearISO(d, p) {
1007
+ var day = d.getDay();
1008
+ d = day >= 4 || day === 0 ? timeThursday(d) : timeThursday.ceil(d);
1009
+ return pad(d.getFullYear() % 1e4, p, 4);
1010
+ }
1011
+ function formatZone(d) {
1012
+ var z = d.getTimezoneOffset();
1013
+ return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2);
1014
+ }
1015
+ function formatUTCDayOfMonth(d, p) {
1016
+ return pad(d.getUTCDate(), p, 2);
1017
+ }
1018
+ function formatUTCHour24(d, p) {
1019
+ return pad(d.getUTCHours(), p, 2);
1020
+ }
1021
+ function formatUTCHour12(d, p) {
1022
+ return pad(d.getUTCHours() % 12 || 12, p, 2);
1023
+ }
1024
+ function formatUTCDayOfYear(d, p) {
1025
+ return pad(1 + utcDay.count(utcYear(d), d), p, 3);
1026
+ }
1027
+ function formatUTCMilliseconds(d, p) {
1028
+ return pad(d.getUTCMilliseconds(), p, 3);
1029
+ }
1030
+ function formatUTCMicroseconds(d, p) {
1031
+ return formatUTCMilliseconds(d, p) + "000";
1032
+ }
1033
+ function formatUTCMonthNumber(d, p) {
1034
+ return pad(d.getUTCMonth() + 1, p, 2);
1035
+ }
1036
+ function formatUTCMinutes(d, p) {
1037
+ return pad(d.getUTCMinutes(), p, 2);
1038
+ }
1039
+ function formatUTCSeconds(d, p) {
1040
+ return pad(d.getUTCSeconds(), p, 2);
1041
+ }
1042
+ function formatUTCWeekdayNumberMonday(d) {
1043
+ var dow = d.getUTCDay();
1044
+ return dow === 0 ? 7 : dow;
1045
+ }
1046
+ function formatUTCWeekNumberSunday(d, p) {
1047
+ return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
1048
+ }
1049
+ function UTCdISO(d) {
1050
+ var day = d.getUTCDay();
1051
+ return day >= 4 || day === 0 ? utcThursday(d) : utcThursday.ceil(d);
1052
+ }
1053
+ function formatUTCWeekNumberISO(d, p) {
1054
+ d = UTCdISO(d);
1055
+ return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
1056
+ }
1057
+ function formatUTCWeekdayNumberSunday(d) {
1058
+ return d.getUTCDay();
1059
+ }
1060
+ function formatUTCWeekNumberMonday(d, p) {
1061
+ return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
1062
+ }
1063
+ function formatUTCYear(d, p) {
1064
+ return pad(d.getUTCFullYear() % 100, p, 2);
1065
+ }
1066
+ function formatUTCYearISO(d, p) {
1067
+ d = UTCdISO(d);
1068
+ return pad(d.getUTCFullYear() % 100, p, 2);
1069
+ }
1070
+ function formatUTCFullYear(d, p) {
1071
+ return pad(d.getUTCFullYear() % 1e4, p, 4);
1072
+ }
1073
+ function formatUTCFullYearISO(d, p) {
1074
+ var day = d.getUTCDay();
1075
+ d = day >= 4 || day === 0 ? utcThursday(d) : utcThursday.ceil(d);
1076
+ return pad(d.getUTCFullYear() % 1e4, p, 4);
1077
+ }
1078
+ function formatUTCZone() {
1079
+ return "+0000";
1080
+ }
1081
+ function formatLiteralPercent() {
1082
+ return "%";
1083
+ }
1084
+ function formatUnixTimestamp(d) {
1085
+ return +d;
1086
+ }
1087
+ function formatUnixTimestampSeconds(d) {
1088
+ return Math.floor(+d / 1e3);
1089
+ }
1090
+ var locale;
1091
+ var timeFormat;
1092
+ defaultLocale({
1093
+ dateTime: "%x, %X",
1094
+ date: "%-m/%-d/%Y",
1095
+ time: "%-I:%M:%S %p",
1096
+ periods: ["AM", "PM"],
1097
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
1098
+ shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1099
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
1100
+ shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
1101
+ });
1102
+ function defaultLocale(definition) {
1103
+ locale = formatLocale(definition);
1104
+ timeFormat = locale.format;
1105
+ locale.parse;
1106
+ locale.utcFormat;
1107
+ locale.utcParse;
1108
+ return locale;
1109
+ }
1110
+ function date(t) {
1111
+ return new Date(t);
1112
+ }
1113
+ function number(t) {
1114
+ return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
1115
+ }
1116
+ function calendar(ticks, tickInterval2, year, month, week, day, hour, minute, second2, format) {
1117
+ var scale = continuous(), invert = scale.invert, domain = scale.domain;
1118
+ var formatMillisecond = format(".%L"), formatSecond = format(":%S"), formatMinute = format("%I:%M"), formatHour = format("%I %p"), formatDay = format("%a %d"), formatWeek = format("%b %d"), formatMonth = format("%B"), formatYear2 = format("%Y");
1119
+ function tickFormat(date2) {
1120
+ return (second2(date2) < date2 ? formatMillisecond : minute(date2) < date2 ? formatSecond : hour(date2) < date2 ? formatMinute : day(date2) < date2 ? formatHour : month(date2) < date2 ? week(date2) < date2 ? formatDay : formatWeek : year(date2) < date2 ? formatMonth : formatYear2)(date2);
1121
+ }
1122
+ scale.invert = function(y) {
1123
+ return new Date(invert(y));
1124
+ };
1125
+ scale.domain = function(_) {
1126
+ return arguments.length ? domain(Array.from(_, number)) : domain().map(date);
1127
+ };
1128
+ scale.ticks = function(interval) {
1129
+ var d = domain();
1130
+ return ticks(d[0], d[d.length - 1], interval == null ? 10 : interval);
1131
+ };
1132
+ scale.tickFormat = function(count, specifier) {
1133
+ return specifier == null ? tickFormat : format(specifier);
1134
+ };
1135
+ scale.nice = function(interval) {
1136
+ var d = domain();
1137
+ if (!interval || typeof interval.range !== "function") interval = tickInterval2(d[0], d[d.length - 1], interval == null ? 10 : interval);
1138
+ return interval ? domain(nice(d, interval)) : scale;
1139
+ };
1140
+ scale.copy = function() {
1141
+ return copy(scale, calendar(ticks, tickInterval2, year, month, week, day, hour, minute, second2, format));
1142
+ };
1143
+ return scale;
1144
+ }
1145
+ function time() {
1146
+ return initRange.apply(calendar(timeTicks, timeTickInterval, timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute, second, timeFormat).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
1147
+ }
1148
+ var isoWeek = { exports: {} };
1149
+ (function(module, exports$1) {
1150
+ !function(e, t) {
1151
+ module.exports = t();
1152
+ }(commonjsGlobal, function() {
1153
+ var e = "day";
1154
+ return function(t, i, s) {
1155
+ var a = function(t4) {
1156
+ return t4.add(4 - t4.isoWeekday(), e);
1157
+ }, d = i.prototype;
1158
+ d.isoWeekYear = function() {
1159
+ return a(this).year();
1160
+ }, d.isoWeek = function(t4) {
1161
+ if (!this.$utils().u(t4)) return this.add(7 * (t4 - this.isoWeek()), e);
1162
+ var i2, d2, n2, o, r = a(this), u = (i2 = this.isoWeekYear(), d2 = this.$u, n2 = (d2 ? s.utc : s)().year(i2).startOf("year"), o = 4 - n2.isoWeekday(), n2.isoWeekday() > 4 && (o += 7), n2.add(o, e));
1163
+ return r.diff(u, "week") + 1;
1164
+ }, d.isoWeekday = function(e2) {
1165
+ return this.$utils().u(e2) ? this.day() || 7 : this.day(this.day() % 7 ? e2 : e2 - 7);
1166
+ };
1167
+ var n = d.startOf;
1168
+ d.startOf = function(e2, t4) {
1169
+ var i2 = this.$utils(), s2 = !!i2.u(t4) || t4;
1170
+ return "isoweek" === i2.p(e2) ? s2 ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : n.bind(this)(e2, t4);
1171
+ };
1172
+ };
1173
+ });
1174
+ })(isoWeek);
1175
+ var isoWeekExports = isoWeek.exports;
1176
+ const dayjsIsoWeek = /* @__PURE__ */ getDefaultExportFromCjs(isoWeekExports);
1177
+ var customParseFormat = { exports: {} };
1178
+ (function(module, exports$1) {
1179
+ !function(e, t) {
1180
+ module.exports = t();
1181
+ }(commonjsGlobal, function() {
1182
+ var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e2) {
1183
+ return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
1184
+ };
1185
+ var f = function(e2) {
1186
+ return function(t4) {
1187
+ this[e2] = +t4;
1188
+ };
1189
+ }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
1190
+ (this.zone || (this.zone = {})).offset = function(e3) {
1191
+ if (!e3) return 0;
1192
+ if ("Z" === e3) return 0;
1193
+ var t4 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t4[1] + (+t4[2] || 0);
1194
+ return 0 === n2 ? 0 : "+" === t4[0] ? -n2 : n2;
1195
+ }(e2);
1196
+ }], u = function(e2) {
1197
+ var t4 = s[e2];
1198
+ return t4 && (t4.indexOf ? t4 : t4.s.concat(t4.f));
1199
+ }, d = function(e2, t4) {
1200
+ var n2, r2 = s.meridiem;
1201
+ if (r2) {
1202
+ for (var i2 = 1; i2 <= 24; i2 += 1) if (e2.indexOf(r2(i2, 0, t4)) > -1) {
1203
+ n2 = i2 > 12;
1204
+ break;
1205
+ }
1206
+ } else n2 = e2 === (t4 ? "pm" : "PM");
1207
+ return n2;
1208
+ }, c = { A: [o, function(e2) {
1209
+ this.afternoon = d(e2, false);
1210
+ }], a: [o, function(e2) {
1211
+ this.afternoon = d(e2, true);
1212
+ }], Q: [n, function(e2) {
1213
+ this.month = 3 * (e2 - 1) + 1;
1214
+ }], S: [n, function(e2) {
1215
+ this.milliseconds = 100 * +e2;
1216
+ }], SS: [r, function(e2) {
1217
+ this.milliseconds = 10 * +e2;
1218
+ }], SSS: [/\d{3}/, function(e2) {
1219
+ this.milliseconds = +e2;
1220
+ }], s: [i, f("seconds")], ss: [i, f("seconds")], m: [i, f("minutes")], mm: [i, f("minutes")], H: [i, f("hours")], h: [i, f("hours")], HH: [i, f("hours")], hh: [i, f("hours")], D: [i, f("day")], DD: [r, f("day")], Do: [o, function(e2) {
1221
+ var t4 = s.ordinal, n2 = e2.match(/\d+/);
1222
+ if (this.day = n2[0], t4) for (var r2 = 1; r2 <= 31; r2 += 1) t4(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
1223
+ }], w: [i, f("week")], ww: [r, f("week")], M: [i, f("month")], MM: [r, f("month")], MMM: [o, function(e2) {
1224
+ var t4 = u("months"), n2 = (u("monthsShort") || t4.map(function(e3) {
1225
+ return e3.slice(0, 3);
1226
+ })).indexOf(e2) + 1;
1227
+ if (n2 < 1) throw new Error();
1228
+ this.month = n2 % 12 || n2;
1229
+ }], MMMM: [o, function(e2) {
1230
+ var t4 = u("months").indexOf(e2) + 1;
1231
+ if (t4 < 1) throw new Error();
1232
+ this.month = t4 % 12 || t4;
1233
+ }], Y: [/[+-]?\d+/, f("year")], YY: [r, function(e2) {
1234
+ this.year = a(e2);
1235
+ }], YYYY: [/\d{4}/, f("year")], Z: h, ZZ: h };
1236
+ function l(n2) {
1237
+ var r2, i2;
1238
+ r2 = n2, i2 = s && s.formats;
1239
+ for (var o2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n3, r3) {
1240
+ var o3 = r3 && r3.toUpperCase();
1241
+ return n3 || i2[r3] || e[r3] || i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t5, n4) {
1242
+ return t5 || n4.slice(1);
1243
+ });
1244
+ })).match(t), a2 = o2.length, f2 = 0; f2 < a2; f2 += 1) {
1245
+ var h2 = o2[f2], u2 = c[h2], d2 = u2 && u2[0], l2 = u2 && u2[1];
1246
+ o2[f2] = l2 ? { regex: d2, parser: l2 } : h2.replace(/^\[|\]$/g, "");
1247
+ }
1248
+ return function(e2) {
1249
+ for (var t4 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
1250
+ var i3 = o2[n3];
1251
+ if ("string" == typeof i3) r3 += i3.length;
1252
+ else {
1253
+ var s2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = s2.exec(h3)[0];
1254
+ f3.call(t4, u3), e2 = e2.replace(u3, "");
1255
+ }
1256
+ }
1257
+ return function(e3) {
1258
+ var t5 = e3.afternoon;
1259
+ if (void 0 !== t5) {
1260
+ var n4 = e3.hours;
1261
+ t5 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
1262
+ }
1263
+ }(t4), t4;
1264
+ };
1265
+ }
1266
+ return function(e2, t4, n2) {
1267
+ n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (a = e2.parseTwoDigitYear);
1268
+ var r2 = t4.prototype, i2 = r2.parse;
1269
+ r2.parse = function(e3) {
1270
+ var t5 = e3.date, r3 = e3.utc, o2 = e3.args;
1271
+ this.$u = r3;
1272
+ var a2 = o2[1];
1273
+ if ("string" == typeof a2) {
1274
+ var f2 = true === o2[2], h2 = true === o2[3], u2 = f2 || h2, d2 = o2[2];
1275
+ h2 && (d2 = o2[2]), s = this.$locale(), !f2 && d2 && (s = n2.Ls[d2]), this.$d = function(e4, t6, n3, r4) {
1276
+ try {
1277
+ if (["x", "X"].indexOf(t6) > -1) return new Date(("X" === t6 ? 1e3 : 1) * e4);
1278
+ var i3 = l(t6)(e4), o3 = i3.year, s2 = i3.month, a3 = i3.day, f3 = i3.hours, h3 = i3.minutes, u3 = i3.seconds, d3 = i3.milliseconds, c3 = i3.zone, m2 = i3.week, M2 = /* @__PURE__ */ new Date(), Y = a3 || (o3 || s2 ? 1 : M2.getDate()), p = o3 || M2.getFullYear(), v = 0;
1279
+ o3 && !s2 || (v = s2 > 0 ? s2 - 1 : M2.getMonth());
1280
+ var D, w2 = f3 || 0, g = h3 || 0, y = u3 || 0, L = d3 || 0;
1281
+ return c3 ? new Date(Date.UTC(p, v, Y, w2, g, y, L + 60 * c3.offset * 1e3)) : n3 ? new Date(Date.UTC(p, v, Y, w2, g, y, L)) : (D = new Date(p, v, Y, w2, g, y, L), m2 && (D = r4(D).week(m2).toDate()), D);
1282
+ } catch (e5) {
1283
+ return /* @__PURE__ */ new Date("");
1284
+ }
1285
+ }(t5, a2, r3, n2), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t5 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
1286
+ } else if (a2 instanceof Array) for (var c2 = a2.length, m = 1; m <= c2; m += 1) {
1287
+ o2[1] = a2[m - 1];
1288
+ var M = n2.apply(this, o2);
1289
+ if (M.isValid()) {
1290
+ this.$d = M.$d, this.$L = M.$L, this.init();
1291
+ break;
1292
+ }
1293
+ m === c2 && (this.$d = /* @__PURE__ */ new Date(""));
1294
+ }
1295
+ else i2.call(this, e3);
1296
+ };
1297
+ };
1298
+ });
1299
+ })(customParseFormat);
1300
+ var customParseFormatExports = customParseFormat.exports;
1301
+ const dayjsCustomParseFormat = /* @__PURE__ */ getDefaultExportFromCjs(customParseFormatExports);
1302
+ var advancedFormat = { exports: {} };
1303
+ (function(module, exports$1) {
1304
+ !function(e, t) {
1305
+ module.exports = t();
1306
+ }(commonjsGlobal, function() {
1307
+ return function(e, t) {
1308
+ var r = t.prototype, n = r.format;
1309
+ r.format = function(e2) {
1310
+ var t4 = this, r2 = this.$locale();
1311
+ if (!this.isValid()) return n.bind(this)(e2);
1312
+ var s = this.$utils(), a = (e2 || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(e3) {
1313
+ switch (e3) {
1314
+ case "Q":
1315
+ return Math.ceil((t4.$M + 1) / 3);
1316
+ case "Do":
1317
+ return r2.ordinal(t4.$D);
1318
+ case "gggg":
1319
+ return t4.weekYear();
1320
+ case "GGGG":
1321
+ return t4.isoWeekYear();
1322
+ case "wo":
1323
+ return r2.ordinal(t4.week(), "W");
1324
+ case "w":
1325
+ case "ww":
1326
+ return s.s(t4.week(), "w" === e3 ? 1 : 2, "0");
1327
+ case "W":
1328
+ case "WW":
1329
+ return s.s(t4.isoWeek(), "W" === e3 ? 1 : 2, "0");
1330
+ case "k":
1331
+ case "kk":
1332
+ return s.s(String(0 === t4.$H ? 24 : t4.$H), "k" === e3 ? 1 : 2, "0");
1333
+ case "X":
1334
+ return Math.floor(t4.$d.getTime() / 1e3);
1335
+ case "x":
1336
+ return t4.$d.getTime();
1337
+ case "z":
1338
+ return "[" + t4.offsetName() + "]";
1339
+ case "zzz":
1340
+ return "[" + t4.offsetName("long") + "]";
1341
+ default:
1342
+ return e3;
1343
+ }
1344
+ });
1345
+ return n.bind(this)(a);
1346
+ };
1347
+ };
1348
+ });
1349
+ })(advancedFormat);
1350
+ var advancedFormatExports = advancedFormat.exports;
1351
+ const dayjsAdvancedFormat = /* @__PURE__ */ getDefaultExportFromCjs(advancedFormatExports);
1352
+ var duration = { exports: {} };
1353
+ (function(module, exports$1) {
1354
+ !function(t, s) {
1355
+ module.exports = s();
1356
+ }(commonjsGlobal, function() {
1357
+ var t, s, n = 1e3, i = 6e4, e = 36e5, r = 864e5, o = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, d = 2628e6, a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: u, months: d, days: r, hours: e, minutes: i, seconds: n, milliseconds: 1, weeks: 6048e5 }, c = function(t4) {
1358
+ return t4 instanceof g;
1359
+ }, f = function(t4, s2, n2) {
1360
+ return new g(t4, n2, s2.$l);
1361
+ }, m = function(t4) {
1362
+ return s.p(t4) + "s";
1363
+ }, l = function(t4) {
1364
+ return t4 < 0;
1365
+ }, $ = function(t4) {
1366
+ return l(t4) ? Math.ceil(t4) : Math.floor(t4);
1367
+ }, y = function(t4) {
1368
+ return Math.abs(t4);
1369
+ }, v = function(t4, s2) {
1370
+ return t4 ? l(t4) ? { negative: true, format: "" + y(t4) + s2 } : { negative: false, format: "" + t4 + s2 } : { negative: false, format: "" };
1371
+ }, g = function() {
1372
+ function l2(t4, s2, n2) {
1373
+ var i2 = this;
1374
+ if (this.$d = {}, this.$l = n2, void 0 === t4 && (this.$ms = 0, this.parseFromMilliseconds()), s2) return f(t4 * h[m(s2)], this);
1375
+ if ("number" == typeof t4) return this.$ms = t4, this.parseFromMilliseconds(), this;
1376
+ if ("object" == typeof t4) return Object.keys(t4).forEach(function(s3) {
1377
+ i2.$d[m(s3)] = t4[s3];
1378
+ }), this.calMilliseconds(), this;
1379
+ if ("string" == typeof t4) {
1380
+ var e2 = t4.match(a);
1381
+ if (e2) {
1382
+ var r2 = e2.slice(2).map(function(t5) {
1383
+ return null != t5 ? Number(t5) : 0;
1384
+ });
1385
+ return this.$d.years = r2[0], this.$d.months = r2[1], this.$d.weeks = r2[2], this.$d.days = r2[3], this.$d.hours = r2[4], this.$d.minutes = r2[5], this.$d.seconds = r2[6], this.calMilliseconds(), this;
1386
+ }
1387
+ }
1388
+ return this;
1389
+ }
1390
+ var y2 = l2.prototype;
1391
+ return y2.calMilliseconds = function() {
1392
+ var t4 = this;
1393
+ this.$ms = Object.keys(this.$d).reduce(function(s2, n2) {
1394
+ return s2 + (t4.$d[n2] || 0) * h[n2];
1395
+ }, 0);
1396
+ }, y2.parseFromMilliseconds = function() {
1397
+ var t4 = this.$ms;
1398
+ this.$d.years = $(t4 / u), t4 %= u, this.$d.months = $(t4 / d), t4 %= d, this.$d.days = $(t4 / r), t4 %= r, this.$d.hours = $(t4 / e), t4 %= e, this.$d.minutes = $(t4 / i), t4 %= i, this.$d.seconds = $(t4 / n), t4 %= n, this.$d.milliseconds = t4;
1399
+ }, y2.toISOString = function() {
1400
+ var t4 = v(this.$d.years, "Y"), s2 = v(this.$d.months, "M"), n2 = +this.$d.days || 0;
1401
+ this.$d.weeks && (n2 += 7 * this.$d.weeks);
1402
+ var i2 = v(n2, "D"), e2 = v(this.$d.hours, "H"), r2 = v(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
1403
+ this.$d.milliseconds && (o2 += this.$d.milliseconds / 1e3, o2 = Math.round(1e3 * o2) / 1e3);
1404
+ var u2 = v(o2, "S"), d2 = t4.negative || s2.negative || i2.negative || e2.negative || r2.negative || u2.negative, a2 = e2.format || r2.format || u2.format ? "T" : "", h2 = (d2 ? "-" : "") + "P" + t4.format + s2.format + i2.format + a2 + e2.format + r2.format + u2.format;
1405
+ return "P" === h2 || "-P" === h2 ? "P0D" : h2;
1406
+ }, y2.toJSON = function() {
1407
+ return this.toISOString();
1408
+ }, y2.format = function(t4) {
1409
+ var n2 = t4 || "YYYY-MM-DDTHH:mm:ss", i2 = { Y: this.$d.years, YY: s.s(this.$d.years, 2, "0"), YYYY: s.s(this.$d.years, 4, "0"), M: this.$d.months, MM: s.s(this.$d.months, 2, "0"), D: this.$d.days, DD: s.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: s.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: s.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: s.s(this.$d.seconds, 2, "0"), SSS: s.s(this.$d.milliseconds, 3, "0") };
1410
+ return n2.replace(o, function(t5, s2) {
1411
+ return s2 || String(i2[t5]);
1412
+ });
1413
+ }, y2.as = function(t4) {
1414
+ return this.$ms / h[m(t4)];
1415
+ }, y2.get = function(t4) {
1416
+ var s2 = this.$ms, n2 = m(t4);
1417
+ return "milliseconds" === n2 ? s2 %= 1e3 : s2 = "weeks" === n2 ? $(s2 / h[n2]) : this.$d[n2], s2 || 0;
1418
+ }, y2.add = function(t4, s2, n2) {
1419
+ var i2;
1420
+ return i2 = s2 ? t4 * h[m(s2)] : c(t4) ? t4.$ms : f(t4, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
1421
+ }, y2.subtract = function(t4, s2) {
1422
+ return this.add(t4, s2, true);
1423
+ }, y2.locale = function(t4) {
1424
+ var s2 = this.clone();
1425
+ return s2.$l = t4, s2;
1426
+ }, y2.clone = function() {
1427
+ return f(this.$ms, this);
1428
+ }, y2.humanize = function(s2) {
1429
+ return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s2);
1430
+ }, y2.valueOf = function() {
1431
+ return this.asMilliseconds();
1432
+ }, y2.milliseconds = function() {
1433
+ return this.get("milliseconds");
1434
+ }, y2.asMilliseconds = function() {
1435
+ return this.as("milliseconds");
1436
+ }, y2.seconds = function() {
1437
+ return this.get("seconds");
1438
+ }, y2.asSeconds = function() {
1439
+ return this.as("seconds");
1440
+ }, y2.minutes = function() {
1441
+ return this.get("minutes");
1442
+ }, y2.asMinutes = function() {
1443
+ return this.as("minutes");
1444
+ }, y2.hours = function() {
1445
+ return this.get("hours");
1446
+ }, y2.asHours = function() {
1447
+ return this.as("hours");
1448
+ }, y2.days = function() {
1449
+ return this.get("days");
1450
+ }, y2.asDays = function() {
1451
+ return this.as("days");
1452
+ }, y2.weeks = function() {
1453
+ return this.get("weeks");
1454
+ }, y2.asWeeks = function() {
1455
+ return this.as("weeks");
1456
+ }, y2.months = function() {
1457
+ return this.get("months");
1458
+ }, y2.asMonths = function() {
1459
+ return this.as("months");
1460
+ }, y2.years = function() {
1461
+ return this.get("years");
1462
+ }, y2.asYears = function() {
1463
+ return this.as("years");
1464
+ }, l2;
1465
+ }(), p = function(t4, s2, n2) {
1466
+ return t4.add(s2.years() * n2, "y").add(s2.months() * n2, "M").add(s2.days() * n2, "d").add(s2.hours() * n2, "h").add(s2.minutes() * n2, "m").add(s2.seconds() * n2, "s").add(s2.milliseconds() * n2, "ms");
1467
+ };
1468
+ return function(n2, i2, e2) {
1469
+ t = e2, s = e2().$utils(), e2.duration = function(t4, s2) {
1470
+ var n3 = e2.locale();
1471
+ return f(t4, { $l: n3 }, s2);
1472
+ }, e2.isDuration = c;
1473
+ var r2 = i2.prototype.add, o2 = i2.prototype.subtract;
1474
+ i2.prototype.add = function(t4, s2) {
1475
+ return c(t4) ? p(this, t4, 1) : r2.bind(this)(t4, s2);
1476
+ }, i2.prototype.subtract = function(t4, s2) {
1477
+ return c(t4) ? p(this, t4, -1) : o2.bind(this)(t4, s2);
1478
+ };
1479
+ };
1480
+ });
1481
+ })(duration);
1482
+ var durationExports = duration.exports;
1483
+ const dayjsDuration = /* @__PURE__ */ getDefaultExportFromCjs(durationExports);
1484
+ var parser = function() {
1485
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
1486
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
1487
+ return o2;
1488
+ }, "o"), $V0 = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], $V1 = [1, 26], $V2 = [1, 27], $V3 = [1, 28], $V4 = [1, 29], $V5 = [1, 30], $V6 = [1, 31], $V7 = [1, 32], $V8 = [1, 33], $V9 = [1, 34], $Va = [1, 9], $Vb = [1, 10], $Vc = [1, 11], $Vd = [1, 12], $Ve = [1, 13], $Vf = [1, 14], $Vg = [1, 15], $Vh = [1, 16], $Vi = [1, 19], $Vj = [1, 20], $Vk = [1, 21], $Vl = [1, 22], $Vm = [1, 23], $Vn = [1, 25], $Vo = [1, 35];
1489
+ var parser2 = {
1490
+ trace: /* @__PURE__ */ __name(function trace() {
1491
+ }, "trace"),
1492
+ yy: {},
1493
+ symbols_: { "error": 2, "start": 3, "gantt": 4, "document": 5, "EOF": 6, "line": 7, "SPACE": 8, "statement": 9, "NL": 10, "weekday": 11, "weekday_monday": 12, "weekday_tuesday": 13, "weekday_wednesday": 14, "weekday_thursday": 15, "weekday_friday": 16, "weekday_saturday": 17, "weekday_sunday": 18, "weekend": 19, "weekend_friday": 20, "weekend_saturday": 21, "dateFormat": 22, "inclusiveEndDates": 23, "topAxis": 24, "axisFormat": 25, "tickInterval": 26, "excludes": 27, "includes": 28, "todayMarker": 29, "title": 30, "acc_title": 31, "acc_title_value": 32, "acc_descr": 33, "acc_descr_value": 34, "acc_descr_multiline_value": 35, "section": 36, "clickStatement": 37, "taskTxt": 38, "taskData": 39, "click": 40, "callbackname": 41, "callbackargs": 42, "href": 43, "clickStatementDebug": 44, "$accept": 0, "$end": 1 },
1494
+ terminals_: { 2: "error", 4: "gantt", 6: "EOF", 8: "SPACE", 10: "NL", 12: "weekday_monday", 13: "weekday_tuesday", 14: "weekday_wednesday", 15: "weekday_thursday", 16: "weekday_friday", 17: "weekday_saturday", 18: "weekday_sunday", 20: "weekend_friday", 21: "weekend_saturday", 22: "dateFormat", 23: "inclusiveEndDates", 24: "topAxis", 25: "axisFormat", 26: "tickInterval", 27: "excludes", 28: "includes", 29: "todayMarker", 30: "title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "section", 38: "taskTxt", 39: "taskData", 40: "click", 41: "callbackname", 42: "callbackargs", 43: "href" },
1495
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [19, 1], [19, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [37, 2], [37, 3], [37, 3], [37, 4], [37, 3], [37, 4], [37, 2], [44, 2], [44, 3], [44, 3], [44, 4], [44, 3], [44, 4], [44, 2]],
1496
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
1497
+ var $0 = $$.length - 1;
1498
+ switch (yystate) {
1499
+ case 1:
1500
+ return $$[$0 - 1];
1501
+ case 2:
1502
+ this.$ = [];
1503
+ break;
1504
+ case 3:
1505
+ $$[$0 - 1].push($$[$0]);
1506
+ this.$ = $$[$0 - 1];
1507
+ break;
1508
+ case 4:
1509
+ case 5:
1510
+ this.$ = $$[$0];
1511
+ break;
1512
+ case 6:
1513
+ case 7:
1514
+ this.$ = [];
1515
+ break;
1516
+ case 8:
1517
+ yy.setWeekday("monday");
1518
+ break;
1519
+ case 9:
1520
+ yy.setWeekday("tuesday");
1521
+ break;
1522
+ case 10:
1523
+ yy.setWeekday("wednesday");
1524
+ break;
1525
+ case 11:
1526
+ yy.setWeekday("thursday");
1527
+ break;
1528
+ case 12:
1529
+ yy.setWeekday("friday");
1530
+ break;
1531
+ case 13:
1532
+ yy.setWeekday("saturday");
1533
+ break;
1534
+ case 14:
1535
+ yy.setWeekday("sunday");
1536
+ break;
1537
+ case 15:
1538
+ yy.setWeekend("friday");
1539
+ break;
1540
+ case 16:
1541
+ yy.setWeekend("saturday");
1542
+ break;
1543
+ case 17:
1544
+ yy.setDateFormat($$[$0].substr(11));
1545
+ this.$ = $$[$0].substr(11);
1546
+ break;
1547
+ case 18:
1548
+ yy.enableInclusiveEndDates();
1549
+ this.$ = $$[$0].substr(18);
1550
+ break;
1551
+ case 19:
1552
+ yy.TopAxis();
1553
+ this.$ = $$[$0].substr(8);
1554
+ break;
1555
+ case 20:
1556
+ yy.setAxisFormat($$[$0].substr(11));
1557
+ this.$ = $$[$0].substr(11);
1558
+ break;
1559
+ case 21:
1560
+ yy.setTickInterval($$[$0].substr(13));
1561
+ this.$ = $$[$0].substr(13);
1562
+ break;
1563
+ case 22:
1564
+ yy.setExcludes($$[$0].substr(9));
1565
+ this.$ = $$[$0].substr(9);
1566
+ break;
1567
+ case 23:
1568
+ yy.setIncludes($$[$0].substr(9));
1569
+ this.$ = $$[$0].substr(9);
1570
+ break;
1571
+ case 24:
1572
+ yy.setTodayMarker($$[$0].substr(12));
1573
+ this.$ = $$[$0].substr(12);
1574
+ break;
1575
+ case 27:
1576
+ yy.setDiagramTitle($$[$0].substr(6));
1577
+ this.$ = $$[$0].substr(6);
1578
+ break;
1579
+ case 28:
1580
+ this.$ = $$[$0].trim();
1581
+ yy.setAccTitle(this.$);
1582
+ break;
1583
+ case 29:
1584
+ case 30:
1585
+ this.$ = $$[$0].trim();
1586
+ yy.setAccDescription(this.$);
1587
+ break;
1588
+ case 31:
1589
+ yy.addSection($$[$0].substr(8));
1590
+ this.$ = $$[$0].substr(8);
1591
+ break;
1592
+ case 33:
1593
+ yy.addTask($$[$0 - 1], $$[$0]);
1594
+ this.$ = "task";
1595
+ break;
1596
+ case 34:
1597
+ this.$ = $$[$0 - 1];
1598
+ yy.setClickEvent($$[$0 - 1], $$[$0], null);
1599
+ break;
1600
+ case 35:
1601
+ this.$ = $$[$0 - 2];
1602
+ yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
1603
+ break;
1604
+ case 36:
1605
+ this.$ = $$[$0 - 2];
1606
+ yy.setClickEvent($$[$0 - 2], $$[$0 - 1], null);
1607
+ yy.setLink($$[$0 - 2], $$[$0]);
1608
+ break;
1609
+ case 37:
1610
+ this.$ = $$[$0 - 3];
1611
+ yy.setClickEvent($$[$0 - 3], $$[$0 - 2], $$[$0 - 1]);
1612
+ yy.setLink($$[$0 - 3], $$[$0]);
1613
+ break;
1614
+ case 38:
1615
+ this.$ = $$[$0 - 2];
1616
+ yy.setClickEvent($$[$0 - 2], $$[$0], null);
1617
+ yy.setLink($$[$0 - 2], $$[$0 - 1]);
1618
+ break;
1619
+ case 39:
1620
+ this.$ = $$[$0 - 3];
1621
+ yy.setClickEvent($$[$0 - 3], $$[$0 - 1], $$[$0]);
1622
+ yy.setLink($$[$0 - 3], $$[$0 - 2]);
1623
+ break;
1624
+ case 40:
1625
+ this.$ = $$[$0 - 1];
1626
+ yy.setLink($$[$0 - 1], $$[$0]);
1627
+ break;
1628
+ case 41:
1629
+ case 47:
1630
+ this.$ = $$[$0 - 1] + " " + $$[$0];
1631
+ break;
1632
+ case 42:
1633
+ case 43:
1634
+ case 45:
1635
+ this.$ = $$[$0 - 2] + " " + $$[$0 - 1] + " " + $$[$0];
1636
+ break;
1637
+ case 44:
1638
+ case 46:
1639
+ this.$ = $$[$0 - 3] + " " + $$[$0 - 2] + " " + $$[$0 - 1] + " " + $$[$0];
1640
+ break;
1641
+ }
1642
+ }, "anonymous"),
1643
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, o($V0, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: $V1, 13: $V2, 14: $V3, 15: $V4, 16: $V5, 17: $V6, 18: $V7, 19: 18, 20: $V8, 21: $V9, 22: $Va, 23: $Vb, 24: $Vc, 25: $Vd, 26: $Ve, 27: $Vf, 28: $Vg, 29: $Vh, 30: $Vi, 31: $Vj, 33: $Vk, 35: $Vl, 36: $Vm, 37: 24, 38: $Vn, 40: $Vo }, o($V0, [2, 7], { 1: [2, 1] }), o($V0, [2, 3]), { 9: 36, 11: 17, 12: $V1, 13: $V2, 14: $V3, 15: $V4, 16: $V5, 17: $V6, 18: $V7, 19: 18, 20: $V8, 21: $V9, 22: $Va, 23: $Vb, 24: $Vc, 25: $Vd, 26: $Ve, 27: $Vf, 28: $Vg, 29: $Vh, 30: $Vi, 31: $Vj, 33: $Vk, 35: $Vl, 36: $Vm, 37: 24, 38: $Vn, 40: $Vo }, o($V0, [2, 5]), o($V0, [2, 6]), o($V0, [2, 17]), o($V0, [2, 18]), o($V0, [2, 19]), o($V0, [2, 20]), o($V0, [2, 21]), o($V0, [2, 22]), o($V0, [2, 23]), o($V0, [2, 24]), o($V0, [2, 25]), o($V0, [2, 26]), o($V0, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, o($V0, [2, 30]), o($V0, [2, 31]), o($V0, [2, 32]), { 39: [1, 39] }, o($V0, [2, 8]), o($V0, [2, 9]), o($V0, [2, 10]), o($V0, [2, 11]), o($V0, [2, 12]), o($V0, [2, 13]), o($V0, [2, 14]), o($V0, [2, 15]), o($V0, [2, 16]), { 41: [1, 40], 43: [1, 41] }, o($V0, [2, 4]), o($V0, [2, 28]), o($V0, [2, 29]), o($V0, [2, 33]), o($V0, [2, 34], { 42: [1, 42], 43: [1, 43] }), o($V0, [2, 40], { 41: [1, 44] }), o($V0, [2, 35], { 43: [1, 45] }), o($V0, [2, 36]), o($V0, [2, 38], { 42: [1, 46] }), o($V0, [2, 37]), o($V0, [2, 39])],
1644
+ defaultActions: {},
1645
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1646
+ if (hash.recoverable) {
1647
+ this.trace(str);
1648
+ } else {
1649
+ var error = new Error(str);
1650
+ error.hash = hash;
1651
+ throw error;
1652
+ }
1653
+ }, "parseError"),
1654
+ parse: /* @__PURE__ */ __name(function parse(input) {
1655
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
1656
+ var args = lstack.slice.call(arguments, 1);
1657
+ var lexer2 = Object.create(this.lexer);
1658
+ var sharedState = { yy: {} };
1659
+ for (var k in this.yy) {
1660
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
1661
+ sharedState.yy[k] = this.yy[k];
1662
+ }
1663
+ }
1664
+ lexer2.setInput(input, sharedState.yy);
1665
+ sharedState.yy.lexer = lexer2;
1666
+ sharedState.yy.parser = this;
1667
+ if (typeof lexer2.yylloc == "undefined") {
1668
+ lexer2.yylloc = {};
1669
+ }
1670
+ var yyloc = lexer2.yylloc;
1671
+ lstack.push(yyloc);
1672
+ var ranges = lexer2.options && lexer2.options.ranges;
1673
+ if (typeof sharedState.yy.parseError === "function") {
1674
+ this.parseError = sharedState.yy.parseError;
1675
+ } else {
1676
+ this.parseError = Object.getPrototypeOf(this).parseError;
1677
+ }
1678
+ function popStack(n) {
1679
+ stack.length = stack.length - 2 * n;
1680
+ vstack.length = vstack.length - n;
1681
+ lstack.length = lstack.length - n;
1682
+ }
1683
+ __name(popStack, "popStack");
1684
+ function lex() {
1685
+ var token;
1686
+ token = tstack.pop() || lexer2.lex() || EOF;
1687
+ if (typeof token !== "number") {
1688
+ if (token instanceof Array) {
1689
+ tstack = token;
1690
+ token = tstack.pop();
1691
+ }
1692
+ token = self.symbols_[token] || token;
1693
+ }
1694
+ return token;
1695
+ }
1696
+ __name(lex, "lex");
1697
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
1698
+ while (true) {
1699
+ state = stack[stack.length - 1];
1700
+ if (this.defaultActions[state]) {
1701
+ action = this.defaultActions[state];
1702
+ } else {
1703
+ if (symbol === null || typeof symbol == "undefined") {
1704
+ symbol = lex();
1705
+ }
1706
+ action = table[state] && table[state][symbol];
1707
+ }
1708
+ if (typeof action === "undefined" || !action.length || !action[0]) {
1709
+ var errStr = "";
1710
+ expected = [];
1711
+ for (p in table[state]) {
1712
+ if (this.terminals_[p] && p > TERROR) {
1713
+ expected.push("'" + this.terminals_[p] + "'");
1714
+ }
1715
+ }
1716
+ if (lexer2.showPosition) {
1717
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1718
+ } else {
1719
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1720
+ }
1721
+ this.parseError(errStr, {
1722
+ text: lexer2.match,
1723
+ token: this.terminals_[symbol] || symbol,
1724
+ line: lexer2.yylineno,
1725
+ loc: yyloc,
1726
+ expected
1727
+ });
1728
+ }
1729
+ if (action[0] instanceof Array && action.length > 1) {
1730
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1731
+ }
1732
+ switch (action[0]) {
1733
+ case 1:
1734
+ stack.push(symbol);
1735
+ vstack.push(lexer2.yytext);
1736
+ lstack.push(lexer2.yylloc);
1737
+ stack.push(action[1]);
1738
+ symbol = null;
1739
+ {
1740
+ yyleng = lexer2.yyleng;
1741
+ yytext = lexer2.yytext;
1742
+ yylineno = lexer2.yylineno;
1743
+ yyloc = lexer2.yylloc;
1744
+ }
1745
+ break;
1746
+ case 2:
1747
+ len = this.productions_[action[1]][1];
1748
+ yyval.$ = vstack[vstack.length - len];
1749
+ yyval._$ = {
1750
+ first_line: lstack[lstack.length - (len || 1)].first_line,
1751
+ last_line: lstack[lstack.length - 1].last_line,
1752
+ first_column: lstack[lstack.length - (len || 1)].first_column,
1753
+ last_column: lstack[lstack.length - 1].last_column
1754
+ };
1755
+ if (ranges) {
1756
+ yyval._$.range = [
1757
+ lstack[lstack.length - (len || 1)].range[0],
1758
+ lstack[lstack.length - 1].range[1]
1759
+ ];
1760
+ }
1761
+ r = this.performAction.apply(yyval, [
1762
+ yytext,
1763
+ yyleng,
1764
+ yylineno,
1765
+ sharedState.yy,
1766
+ action[1],
1767
+ vstack,
1768
+ lstack
1769
+ ].concat(args));
1770
+ if (typeof r !== "undefined") {
1771
+ return r;
1772
+ }
1773
+ if (len) {
1774
+ stack = stack.slice(0, -1 * len * 2);
1775
+ vstack = vstack.slice(0, -1 * len);
1776
+ lstack = lstack.slice(0, -1 * len);
1777
+ }
1778
+ stack.push(this.productions_[action[1]][0]);
1779
+ vstack.push(yyval.$);
1780
+ lstack.push(yyval._$);
1781
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
1782
+ stack.push(newState);
1783
+ break;
1784
+ case 3:
1785
+ return true;
1786
+ }
1787
+ }
1788
+ return true;
1789
+ }, "parse")
1790
+ };
1791
+ var lexer = /* @__PURE__ */ function() {
1792
+ var lexer2 = {
1793
+ EOF: 1,
1794
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1795
+ if (this.yy.parser) {
1796
+ this.yy.parser.parseError(str, hash);
1797
+ } else {
1798
+ throw new Error(str);
1799
+ }
1800
+ }, "parseError"),
1801
+ // resets the lexer, sets new input
1802
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
1803
+ this.yy = yy || this.yy || {};
1804
+ this._input = input;
1805
+ this._more = this._backtrack = this.done = false;
1806
+ this.yylineno = this.yyleng = 0;
1807
+ this.yytext = this.matched = this.match = "";
1808
+ this.conditionStack = ["INITIAL"];
1809
+ this.yylloc = {
1810
+ first_line: 1,
1811
+ first_column: 0,
1812
+ last_line: 1,
1813
+ last_column: 0
1814
+ };
1815
+ if (this.options.ranges) {
1816
+ this.yylloc.range = [0, 0];
1817
+ }
1818
+ this.offset = 0;
1819
+ return this;
1820
+ }, "setInput"),
1821
+ // consumes and returns one char from the input
1822
+ input: /* @__PURE__ */ __name(function() {
1823
+ var ch = this._input[0];
1824
+ this.yytext += ch;
1825
+ this.yyleng++;
1826
+ this.offset++;
1827
+ this.match += ch;
1828
+ this.matched += ch;
1829
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
1830
+ if (lines) {
1831
+ this.yylineno++;
1832
+ this.yylloc.last_line++;
1833
+ } else {
1834
+ this.yylloc.last_column++;
1835
+ }
1836
+ if (this.options.ranges) {
1837
+ this.yylloc.range[1]++;
1838
+ }
1839
+ this._input = this._input.slice(1);
1840
+ return ch;
1841
+ }, "input"),
1842
+ // unshifts one char (or a string) into the input
1843
+ unput: /* @__PURE__ */ __name(function(ch) {
1844
+ var len = ch.length;
1845
+ var lines = ch.split(/(?:\r\n?|\n)/g);
1846
+ this._input = ch + this._input;
1847
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
1848
+ this.offset -= len;
1849
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
1850
+ this.match = this.match.substr(0, this.match.length - 1);
1851
+ this.matched = this.matched.substr(0, this.matched.length - 1);
1852
+ if (lines.length - 1) {
1853
+ this.yylineno -= lines.length - 1;
1854
+ }
1855
+ var r = this.yylloc.range;
1856
+ this.yylloc = {
1857
+ first_line: this.yylloc.first_line,
1858
+ last_line: this.yylineno + 1,
1859
+ first_column: this.yylloc.first_column,
1860
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
1861
+ };
1862
+ if (this.options.ranges) {
1863
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
1864
+ }
1865
+ this.yyleng = this.yytext.length;
1866
+ return this;
1867
+ }, "unput"),
1868
+ // When called from action, caches matched text and appends it on next action
1869
+ more: /* @__PURE__ */ __name(function() {
1870
+ this._more = true;
1871
+ return this;
1872
+ }, "more"),
1873
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
1874
+ reject: /* @__PURE__ */ __name(function() {
1875
+ if (this.options.backtrack_lexer) {
1876
+ this._backtrack = true;
1877
+ } else {
1878
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1879
+ text: "",
1880
+ token: null,
1881
+ line: this.yylineno
1882
+ });
1883
+ }
1884
+ return this;
1885
+ }, "reject"),
1886
+ // retain first n characters of the match
1887
+ less: /* @__PURE__ */ __name(function(n) {
1888
+ this.unput(this.match.slice(n));
1889
+ }, "less"),
1890
+ // displays already matched input, i.e. for error messages
1891
+ pastInput: /* @__PURE__ */ __name(function() {
1892
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
1893
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
1894
+ }, "pastInput"),
1895
+ // displays upcoming input, i.e. for error messages
1896
+ upcomingInput: /* @__PURE__ */ __name(function() {
1897
+ var next = this.match;
1898
+ if (next.length < 20) {
1899
+ next += this._input.substr(0, 20 - next.length);
1900
+ }
1901
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
1902
+ }, "upcomingInput"),
1903
+ // displays the character position where the lexing error occurred, i.e. for error messages
1904
+ showPosition: /* @__PURE__ */ __name(function() {
1905
+ var pre = this.pastInput();
1906
+ var c = new Array(pre.length + 1).join("-");
1907
+ return pre + this.upcomingInput() + "\n" + c + "^";
1908
+ }, "showPosition"),
1909
+ // test the lexed token: return FALSE when not a match, otherwise return token
1910
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
1911
+ var token, lines, backup;
1912
+ if (this.options.backtrack_lexer) {
1913
+ backup = {
1914
+ yylineno: this.yylineno,
1915
+ yylloc: {
1916
+ first_line: this.yylloc.first_line,
1917
+ last_line: this.last_line,
1918
+ first_column: this.yylloc.first_column,
1919
+ last_column: this.yylloc.last_column
1920
+ },
1921
+ yytext: this.yytext,
1922
+ match: this.match,
1923
+ matches: this.matches,
1924
+ matched: this.matched,
1925
+ yyleng: this.yyleng,
1926
+ offset: this.offset,
1927
+ _more: this._more,
1928
+ _input: this._input,
1929
+ yy: this.yy,
1930
+ conditionStack: this.conditionStack.slice(0),
1931
+ done: this.done
1932
+ };
1933
+ if (this.options.ranges) {
1934
+ backup.yylloc.range = this.yylloc.range.slice(0);
1935
+ }
1936
+ }
1937
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
1938
+ if (lines) {
1939
+ this.yylineno += lines.length;
1940
+ }
1941
+ this.yylloc = {
1942
+ first_line: this.yylloc.last_line,
1943
+ last_line: this.yylineno + 1,
1944
+ first_column: this.yylloc.last_column,
1945
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
1946
+ };
1947
+ this.yytext += match[0];
1948
+ this.match += match[0];
1949
+ this.matches = match;
1950
+ this.yyleng = this.yytext.length;
1951
+ if (this.options.ranges) {
1952
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
1953
+ }
1954
+ this._more = false;
1955
+ this._backtrack = false;
1956
+ this._input = this._input.slice(match[0].length);
1957
+ this.matched += match[0];
1958
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
1959
+ if (this.done && this._input) {
1960
+ this.done = false;
1961
+ }
1962
+ if (token) {
1963
+ return token;
1964
+ } else if (this._backtrack) {
1965
+ for (var k in backup) {
1966
+ this[k] = backup[k];
1967
+ }
1968
+ return false;
1969
+ }
1970
+ return false;
1971
+ }, "test_match"),
1972
+ // return next match in input
1973
+ next: /* @__PURE__ */ __name(function() {
1974
+ if (this.done) {
1975
+ return this.EOF;
1976
+ }
1977
+ if (!this._input) {
1978
+ this.done = true;
1979
+ }
1980
+ var token, match, tempMatch, index;
1981
+ if (!this._more) {
1982
+ this.yytext = "";
1983
+ this.match = "";
1984
+ }
1985
+ var rules = this._currentRules();
1986
+ for (var i = 0; i < rules.length; i++) {
1987
+ tempMatch = this._input.match(this.rules[rules[i]]);
1988
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
1989
+ match = tempMatch;
1990
+ index = i;
1991
+ if (this.options.backtrack_lexer) {
1992
+ token = this.test_match(tempMatch, rules[i]);
1993
+ if (token !== false) {
1994
+ return token;
1995
+ } else if (this._backtrack) {
1996
+ match = false;
1997
+ continue;
1998
+ } else {
1999
+ return false;
2000
+ }
2001
+ } else if (!this.options.flex) {
2002
+ break;
2003
+ }
2004
+ }
2005
+ }
2006
+ if (match) {
2007
+ token = this.test_match(match, rules[index]);
2008
+ if (token !== false) {
2009
+ return token;
2010
+ }
2011
+ return false;
2012
+ }
2013
+ if (this._input === "") {
2014
+ return this.EOF;
2015
+ } else {
2016
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
2017
+ text: "",
2018
+ token: null,
2019
+ line: this.yylineno
2020
+ });
2021
+ }
2022
+ }, "next"),
2023
+ // return next match that has a token
2024
+ lex: /* @__PURE__ */ __name(function lex() {
2025
+ var r = this.next();
2026
+ if (r) {
2027
+ return r;
2028
+ } else {
2029
+ return this.lex();
2030
+ }
2031
+ }, "lex"),
2032
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
2033
+ begin: /* @__PURE__ */ __name(function begin(condition) {
2034
+ this.conditionStack.push(condition);
2035
+ }, "begin"),
2036
+ // pop the previously active lexer condition state off the condition stack
2037
+ popState: /* @__PURE__ */ __name(function popState() {
2038
+ var n = this.conditionStack.length - 1;
2039
+ if (n > 0) {
2040
+ return this.conditionStack.pop();
2041
+ } else {
2042
+ return this.conditionStack[0];
2043
+ }
2044
+ }, "popState"),
2045
+ // produce the lexer rule set which is active for the currently active lexer condition state
2046
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
2047
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
2048
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
2049
+ } else {
2050
+ return this.conditions["INITIAL"].rules;
2051
+ }
2052
+ }, "_currentRules"),
2053
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
2054
+ topState: /* @__PURE__ */ __name(function topState(n) {
2055
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
2056
+ if (n >= 0) {
2057
+ return this.conditionStack[n];
2058
+ } else {
2059
+ return "INITIAL";
2060
+ }
2061
+ }, "topState"),
2062
+ // alias for begin(condition)
2063
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
2064
+ this.begin(condition);
2065
+ }, "pushState"),
2066
+ // return the number of states currently on the stack
2067
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
2068
+ return this.conditionStack.length;
2069
+ }, "stateStackSize"),
2070
+ options: { "case-insensitive": true },
2071
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
2072
+ switch ($avoiding_name_collisions) {
2073
+ case 0:
2074
+ this.begin("open_directive");
2075
+ return "open_directive";
2076
+ case 1:
2077
+ this.begin("acc_title");
2078
+ return 31;
2079
+ case 2:
2080
+ this.popState();
2081
+ return "acc_title_value";
2082
+ case 3:
2083
+ this.begin("acc_descr");
2084
+ return 33;
2085
+ case 4:
2086
+ this.popState();
2087
+ return "acc_descr_value";
2088
+ case 5:
2089
+ this.begin("acc_descr_multiline");
2090
+ break;
2091
+ case 6:
2092
+ this.popState();
2093
+ break;
2094
+ case 7:
2095
+ return "acc_descr_multiline_value";
2096
+ case 8:
2097
+ break;
2098
+ case 9:
2099
+ break;
2100
+ case 10:
2101
+ break;
2102
+ case 11:
2103
+ return 10;
2104
+ case 12:
2105
+ break;
2106
+ case 13:
2107
+ break;
2108
+ case 14:
2109
+ this.begin("href");
2110
+ break;
2111
+ case 15:
2112
+ this.popState();
2113
+ break;
2114
+ case 16:
2115
+ return 43;
2116
+ case 17:
2117
+ this.begin("callbackname");
2118
+ break;
2119
+ case 18:
2120
+ this.popState();
2121
+ break;
2122
+ case 19:
2123
+ this.popState();
2124
+ this.begin("callbackargs");
2125
+ break;
2126
+ case 20:
2127
+ return 41;
2128
+ case 21:
2129
+ this.popState();
2130
+ break;
2131
+ case 22:
2132
+ return 42;
2133
+ case 23:
2134
+ this.begin("click");
2135
+ break;
2136
+ case 24:
2137
+ this.popState();
2138
+ break;
2139
+ case 25:
2140
+ return 40;
2141
+ case 26:
2142
+ return 4;
2143
+ case 27:
2144
+ return 22;
2145
+ case 28:
2146
+ return 23;
2147
+ case 29:
2148
+ return 24;
2149
+ case 30:
2150
+ return 25;
2151
+ case 31:
2152
+ return 26;
2153
+ case 32:
2154
+ return 28;
2155
+ case 33:
2156
+ return 27;
2157
+ case 34:
2158
+ return 29;
2159
+ case 35:
2160
+ return 12;
2161
+ case 36:
2162
+ return 13;
2163
+ case 37:
2164
+ return 14;
2165
+ case 38:
2166
+ return 15;
2167
+ case 39:
2168
+ return 16;
2169
+ case 40:
2170
+ return 17;
2171
+ case 41:
2172
+ return 18;
2173
+ case 42:
2174
+ return 20;
2175
+ case 43:
2176
+ return 21;
2177
+ case 44:
2178
+ return "date";
2179
+ case 45:
2180
+ return 30;
2181
+ case 46:
2182
+ return "accDescription";
2183
+ case 47:
2184
+ return 36;
2185
+ case 48:
2186
+ return 38;
2187
+ case 49:
2188
+ return 39;
2189
+ case 50:
2190
+ return ":";
2191
+ case 51:
2192
+ return 6;
2193
+ case 52:
2194
+ return "INVALID";
2195
+ }
2196
+ }, "anonymous"),
2197
+ rules: [/^(?:%%\{)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:%%(?!\{)*[^\n]*)/i, /^(?:[^\}]%%*[^\n]*)/i, /^(?:%%*[^\n]*[\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:%[^\n]*)/i, /^(?:href[\s]+["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:call[\s]+)/i, /^(?:\([\s]*\))/i, /^(?:\()/i, /^(?:[^(]*)/i, /^(?:\))/i, /^(?:[^)]*)/i, /^(?:click[\s]+)/i, /^(?:[\s\n])/i, /^(?:[^\s\n]*)/i, /^(?:gantt\b)/i, /^(?:dateFormat\s[^#\n;]+)/i, /^(?:inclusiveEndDates\b)/i, /^(?:topAxis\b)/i, /^(?:axisFormat\s[^#\n;]+)/i, /^(?:tickInterval\s[^#\n;]+)/i, /^(?:includes\s[^#\n;]+)/i, /^(?:excludes\s[^#\n;]+)/i, /^(?:todayMarker\s[^\n;]+)/i, /^(?:weekday\s+monday\b)/i, /^(?:weekday\s+tuesday\b)/i, /^(?:weekday\s+wednesday\b)/i, /^(?:weekday\s+thursday\b)/i, /^(?:weekday\s+friday\b)/i, /^(?:weekday\s+saturday\b)/i, /^(?:weekday\s+sunday\b)/i, /^(?:weekend\s+friday\b)/i, /^(?:weekend\s+saturday\b)/i, /^(?:\d\d\d\d-\d\d-\d\d\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accDescription\s[^#\n;]+)/i, /^(?:section\s[^\n]+)/i, /^(?:[^:\n]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
2198
+ conditions: { "acc_descr_multiline": { "rules": [6, 7], "inclusive": false }, "acc_descr": { "rules": [4], "inclusive": false }, "acc_title": { "rules": [2], "inclusive": false }, "callbackargs": { "rules": [21, 22], "inclusive": false }, "callbackname": { "rules": [18, 19, 20], "inclusive": false }, "href": { "rules": [15, 16], "inclusive": false }, "click": { "rules": [24, 25], "inclusive": false }, "INITIAL": { "rules": [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 17, 23, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "inclusive": true } }
2199
+ };
2200
+ return lexer2;
2201
+ }();
2202
+ parser2.lexer = lexer;
2203
+ function Parser() {
2204
+ this.yy = {};
2205
+ }
2206
+ __name(Parser, "Parser");
2207
+ Parser.prototype = parser2;
2208
+ parser2.Parser = Parser;
2209
+ return new Parser();
2210
+ }();
2211
+ parser.parser = parser;
2212
+ var gantt_default = parser;
2213
+ dayjs2.extend(dayjsIsoWeek);
2214
+ dayjs2.extend(dayjsCustomParseFormat);
2215
+ dayjs2.extend(dayjsAdvancedFormat);
2216
+ var WEEKEND_START_DAY = { friday: 5, saturday: 6 };
2217
+ var dateFormat = "";
2218
+ var axisFormat = "";
2219
+ var tickInterval = void 0;
2220
+ var todayMarker = "";
2221
+ var includes = [];
2222
+ var excludes = [];
2223
+ var links = /* @__PURE__ */ new Map();
2224
+ var sections = [];
2225
+ var tasks = [];
2226
+ var currentSection = "";
2227
+ var displayMode = "";
2228
+ var tags = ["active", "done", "crit", "milestone", "vert"];
2229
+ var funs = [];
2230
+ var inclusiveEndDates = false;
2231
+ var topAxis = false;
2232
+ var weekday = "sunday";
2233
+ var weekend = "saturday";
2234
+ var lastOrder = 0;
2235
+ var clear2 = /* @__PURE__ */ __name(function() {
2236
+ sections = [];
2237
+ tasks = [];
2238
+ currentSection = "";
2239
+ funs = [];
2240
+ taskCnt = 0;
2241
+ lastTask = void 0;
2242
+ lastTaskID = void 0;
2243
+ rawTasks = [];
2244
+ dateFormat = "";
2245
+ axisFormat = "";
2246
+ displayMode = "";
2247
+ tickInterval = void 0;
2248
+ todayMarker = "";
2249
+ includes = [];
2250
+ excludes = [];
2251
+ inclusiveEndDates = false;
2252
+ topAxis = false;
2253
+ lastOrder = 0;
2254
+ links = /* @__PURE__ */ new Map();
2255
+ clear();
2256
+ weekday = "sunday";
2257
+ weekend = "saturday";
2258
+ }, "clear");
2259
+ var setAxisFormat = /* @__PURE__ */ __name(function(txt) {
2260
+ axisFormat = txt;
2261
+ }, "setAxisFormat");
2262
+ var getAxisFormat = /* @__PURE__ */ __name(function() {
2263
+ return axisFormat;
2264
+ }, "getAxisFormat");
2265
+ var setTickInterval = /* @__PURE__ */ __name(function(txt) {
2266
+ tickInterval = txt;
2267
+ }, "setTickInterval");
2268
+ var getTickInterval = /* @__PURE__ */ __name(function() {
2269
+ return tickInterval;
2270
+ }, "getTickInterval");
2271
+ var setTodayMarker = /* @__PURE__ */ __name(function(txt) {
2272
+ todayMarker = txt;
2273
+ }, "setTodayMarker");
2274
+ var getTodayMarker = /* @__PURE__ */ __name(function() {
2275
+ return todayMarker;
2276
+ }, "getTodayMarker");
2277
+ var setDateFormat = /* @__PURE__ */ __name(function(txt) {
2278
+ dateFormat = txt;
2279
+ }, "setDateFormat");
2280
+ var enableInclusiveEndDates = /* @__PURE__ */ __name(function() {
2281
+ inclusiveEndDates = true;
2282
+ }, "enableInclusiveEndDates");
2283
+ var endDatesAreInclusive = /* @__PURE__ */ __name(function() {
2284
+ return inclusiveEndDates;
2285
+ }, "endDatesAreInclusive");
2286
+ var enableTopAxis = /* @__PURE__ */ __name(function() {
2287
+ topAxis = true;
2288
+ }, "enableTopAxis");
2289
+ var topAxisEnabled = /* @__PURE__ */ __name(function() {
2290
+ return topAxis;
2291
+ }, "topAxisEnabled");
2292
+ var setDisplayMode = /* @__PURE__ */ __name(function(txt) {
2293
+ displayMode = txt;
2294
+ }, "setDisplayMode");
2295
+ var getDisplayMode = /* @__PURE__ */ __name(function() {
2296
+ return displayMode;
2297
+ }, "getDisplayMode");
2298
+ var getDateFormat = /* @__PURE__ */ __name(function() {
2299
+ return dateFormat;
2300
+ }, "getDateFormat");
2301
+ var setIncludes = /* @__PURE__ */ __name(function(txt) {
2302
+ includes = txt.toLowerCase().split(/[\s,]+/);
2303
+ }, "setIncludes");
2304
+ var getIncludes = /* @__PURE__ */ __name(function() {
2305
+ return includes;
2306
+ }, "getIncludes");
2307
+ var setExcludes = /* @__PURE__ */ __name(function(txt) {
2308
+ excludes = txt.toLowerCase().split(/[\s,]+/);
2309
+ }, "setExcludes");
2310
+ var getExcludes = /* @__PURE__ */ __name(function() {
2311
+ return excludes;
2312
+ }, "getExcludes");
2313
+ var getLinks = /* @__PURE__ */ __name(function() {
2314
+ return links;
2315
+ }, "getLinks");
2316
+ var addSection = /* @__PURE__ */ __name(function(txt) {
2317
+ currentSection = txt;
2318
+ sections.push(txt);
2319
+ }, "addSection");
2320
+ var getSections = /* @__PURE__ */ __name(function() {
2321
+ return sections;
2322
+ }, "getSections");
2323
+ var getTasks = /* @__PURE__ */ __name(function() {
2324
+ let allItemsProcessed = compileTasks();
2325
+ const maxDepth = 10;
2326
+ let iterationCount = 0;
2327
+ while (!allItemsProcessed && iterationCount < maxDepth) {
2328
+ allItemsProcessed = compileTasks();
2329
+ iterationCount++;
2330
+ }
2331
+ tasks = rawTasks;
2332
+ return tasks;
2333
+ }, "getTasks");
2334
+ var isInvalidDate = /* @__PURE__ */ __name(function(date2, dateFormat2, excludes2, includes2) {
2335
+ const formattedDate = date2.format(dateFormat2.trim());
2336
+ const dateOnly = date2.format("YYYY-MM-DD");
2337
+ if (includes2.includes(formattedDate) || includes2.includes(dateOnly)) {
2338
+ return false;
2339
+ }
2340
+ if (excludes2.includes("weekends") && (date2.isoWeekday() === WEEKEND_START_DAY[weekend] || date2.isoWeekday() === WEEKEND_START_DAY[weekend] + 1)) {
2341
+ return true;
2342
+ }
2343
+ if (excludes2.includes(date2.format("dddd").toLowerCase())) {
2344
+ return true;
2345
+ }
2346
+ return excludes2.includes(formattedDate) || excludes2.includes(dateOnly);
2347
+ }, "isInvalidDate");
2348
+ var setWeekday = /* @__PURE__ */ __name(function(txt) {
2349
+ weekday = txt;
2350
+ }, "setWeekday");
2351
+ var getWeekday = /* @__PURE__ */ __name(function() {
2352
+ return weekday;
2353
+ }, "getWeekday");
2354
+ var setWeekend = /* @__PURE__ */ __name(function(startDay) {
2355
+ weekend = startDay;
2356
+ }, "setWeekend");
2357
+ var checkTaskDates = /* @__PURE__ */ __name(function(task, dateFormat2, excludes2, includes2) {
2358
+ if (!excludes2.length || task.manualEndTime) {
2359
+ return;
2360
+ }
2361
+ let startTime;
2362
+ if (task.startTime instanceof Date) {
2363
+ startTime = dayjs2(task.startTime);
2364
+ } else {
2365
+ startTime = dayjs2(task.startTime, dateFormat2, true);
2366
+ }
2367
+ startTime = startTime.add(1, "d");
2368
+ let originalEndTime;
2369
+ if (task.endTime instanceof Date) {
2370
+ originalEndTime = dayjs2(task.endTime);
2371
+ } else {
2372
+ originalEndTime = dayjs2(task.endTime, dateFormat2, true);
2373
+ }
2374
+ const [fixedEndTime, renderEndTime] = fixTaskDates(
2375
+ startTime,
2376
+ originalEndTime,
2377
+ dateFormat2,
2378
+ excludes2,
2379
+ includes2
2380
+ );
2381
+ task.endTime = fixedEndTime.toDate();
2382
+ task.renderEndTime = renderEndTime;
2383
+ }, "checkTaskDates");
2384
+ var fixTaskDates = /* @__PURE__ */ __name(function(startTime, endTime, dateFormat2, excludes2, includes2) {
2385
+ let invalid = false;
2386
+ let renderEndTime = null;
2387
+ while (startTime <= endTime) {
2388
+ if (!invalid) {
2389
+ renderEndTime = endTime.toDate();
2390
+ }
2391
+ invalid = isInvalidDate(startTime, dateFormat2, excludes2, includes2);
2392
+ if (invalid) {
2393
+ endTime = endTime.add(1, "d");
2394
+ }
2395
+ startTime = startTime.add(1, "d");
2396
+ }
2397
+ return [endTime, renderEndTime];
2398
+ }, "fixTaskDates");
2399
+ var getStartDate = /* @__PURE__ */ __name(function(prevTime, dateFormat2, str) {
2400
+ str = str.trim();
2401
+ const isTimestampFormat = /* @__PURE__ */ __name((format) => {
2402
+ const trimmedFormat = format.trim();
2403
+ return trimmedFormat === "x" || trimmedFormat === "X";
2404
+ }, "isTimestampFormat");
2405
+ if (isTimestampFormat(dateFormat2) && /^\d+$/.test(str)) {
2406
+ return new Date(Number(str));
2407
+ }
2408
+ const afterRePattern = /^after\s+(?<ids>[\d\w- ]+)/;
2409
+ const afterStatement = afterRePattern.exec(str);
2410
+ if (afterStatement !== null) {
2411
+ let latestTask = null;
2412
+ for (const id of afterStatement.groups.ids.split(" ")) {
2413
+ let task = findTaskById(id);
2414
+ if (task !== void 0 && (!latestTask || task.endTime > latestTask.endTime)) {
2415
+ latestTask = task;
2416
+ }
2417
+ }
2418
+ if (latestTask) {
2419
+ return latestTask.endTime;
2420
+ }
2421
+ const today = /* @__PURE__ */ new Date();
2422
+ today.setHours(0, 0, 0, 0);
2423
+ return today;
2424
+ }
2425
+ let mDate = dayjs2(str, dateFormat2.trim(), true);
2426
+ if (mDate.isValid()) {
2427
+ return mDate.toDate();
2428
+ } else {
2429
+ log.debug("Invalid date:" + str);
2430
+ log.debug("With date format:" + dateFormat2.trim());
2431
+ const d = new Date(str);
2432
+ if (d === void 0 || isNaN(d.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
2433
+ // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
2434
+ // This can cause virtually infinite loops while rendering, so for the
2435
+ // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
2436
+ // invalid.
2437
+ d.getFullYear() < -1e4 || d.getFullYear() > 1e4) {
2438
+ throw new Error("Invalid date:" + str);
2439
+ }
2440
+ return d;
2441
+ }
2442
+ }, "getStartDate");
2443
+ var parseDuration = /* @__PURE__ */ __name(function(str) {
2444
+ const statement = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(str.trim());
2445
+ if (statement !== null) {
2446
+ return [Number.parseFloat(statement[1]), statement[2]];
2447
+ }
2448
+ return [NaN, "ms"];
2449
+ }, "parseDuration");
2450
+ var getEndDate = /* @__PURE__ */ __name(function(prevTime, dateFormat2, str, inclusive = false) {
2451
+ str = str.trim();
2452
+ const untilRePattern = /^until\s+(?<ids>[\d\w- ]+)/;
2453
+ const untilStatement = untilRePattern.exec(str);
2454
+ if (untilStatement !== null) {
2455
+ let earliestTask = null;
2456
+ for (const id of untilStatement.groups.ids.split(" ")) {
2457
+ let task = findTaskById(id);
2458
+ if (task !== void 0 && (!earliestTask || task.startTime < earliestTask.startTime)) {
2459
+ earliestTask = task;
2460
+ }
2461
+ }
2462
+ if (earliestTask) {
2463
+ return earliestTask.startTime;
2464
+ }
2465
+ const today = /* @__PURE__ */ new Date();
2466
+ today.setHours(0, 0, 0, 0);
2467
+ return today;
2468
+ }
2469
+ let parsedDate = dayjs2(str, dateFormat2.trim(), true);
2470
+ if (parsedDate.isValid()) {
2471
+ if (inclusive) {
2472
+ parsedDate = parsedDate.add(1, "d");
2473
+ }
2474
+ return parsedDate.toDate();
2475
+ }
2476
+ let endTime = dayjs2(prevTime);
2477
+ const [durationValue, durationUnit] = parseDuration(str);
2478
+ if (!Number.isNaN(durationValue)) {
2479
+ const newEndTime = endTime.add(durationValue, durationUnit);
2480
+ if (newEndTime.isValid()) {
2481
+ endTime = newEndTime;
2482
+ }
2483
+ }
2484
+ return endTime.toDate();
2485
+ }, "getEndDate");
2486
+ var taskCnt = 0;
2487
+ var parseId = /* @__PURE__ */ __name(function(idStr) {
2488
+ if (idStr === void 0) {
2489
+ taskCnt = taskCnt + 1;
2490
+ return "task" + taskCnt;
2491
+ }
2492
+ return idStr;
2493
+ }, "parseId");
2494
+ var compileData = /* @__PURE__ */ __name(function(prevTask, dataStr) {
2495
+ let ds;
2496
+ if (dataStr.substr(0, 1) === ":") {
2497
+ ds = dataStr.substr(1, dataStr.length);
2498
+ } else {
2499
+ ds = dataStr;
2500
+ }
2501
+ const data = ds.split(",");
2502
+ const task = {};
2503
+ getTaskTags(data, task, tags);
2504
+ for (let i = 0; i < data.length; i++) {
2505
+ data[i] = data[i].trim();
2506
+ }
2507
+ let endTimeData = "";
2508
+ switch (data.length) {
2509
+ case 1:
2510
+ task.id = parseId();
2511
+ task.startTime = prevTask.endTime;
2512
+ endTimeData = data[0];
2513
+ break;
2514
+ case 2:
2515
+ task.id = parseId();
2516
+ task.startTime = getStartDate(void 0, dateFormat, data[0]);
2517
+ endTimeData = data[1];
2518
+ break;
2519
+ case 3:
2520
+ task.id = parseId(data[0]);
2521
+ task.startTime = getStartDate(void 0, dateFormat, data[1]);
2522
+ endTimeData = data[2];
2523
+ break;
2524
+ }
2525
+ if (endTimeData) {
2526
+ task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);
2527
+ task.manualEndTime = dayjs2(endTimeData, "YYYY-MM-DD", true).isValid();
2528
+ checkTaskDates(task, dateFormat, excludes, includes);
2529
+ }
2530
+ return task;
2531
+ }, "compileData");
2532
+ var parseData = /* @__PURE__ */ __name(function(prevTaskId, dataStr) {
2533
+ let ds;
2534
+ if (dataStr.substr(0, 1) === ":") {
2535
+ ds = dataStr.substr(1, dataStr.length);
2536
+ } else {
2537
+ ds = dataStr;
2538
+ }
2539
+ const data = ds.split(",");
2540
+ const task = {};
2541
+ getTaskTags(data, task, tags);
2542
+ for (let i = 0; i < data.length; i++) {
2543
+ data[i] = data[i].trim();
2544
+ }
2545
+ switch (data.length) {
2546
+ case 1:
2547
+ task.id = parseId();
2548
+ task.startTime = {
2549
+ type: "prevTaskEnd",
2550
+ id: prevTaskId
2551
+ };
2552
+ task.endTime = {
2553
+ data: data[0]
2554
+ };
2555
+ break;
2556
+ case 2:
2557
+ task.id = parseId();
2558
+ task.startTime = {
2559
+ type: "getStartDate",
2560
+ startData: data[0]
2561
+ };
2562
+ task.endTime = {
2563
+ data: data[1]
2564
+ };
2565
+ break;
2566
+ case 3:
2567
+ task.id = parseId(data[0]);
2568
+ task.startTime = {
2569
+ type: "getStartDate",
2570
+ startData: data[1]
2571
+ };
2572
+ task.endTime = {
2573
+ data: data[2]
2574
+ };
2575
+ break;
2576
+ }
2577
+ return task;
2578
+ }, "parseData");
2579
+ var lastTask;
2580
+ var lastTaskID;
2581
+ var rawTasks = [];
2582
+ var taskDb = {};
2583
+ var addTask = /* @__PURE__ */ __name(function(descr, data) {
2584
+ const rawTask = {
2585
+ section: currentSection,
2586
+ type: currentSection,
2587
+ processed: false,
2588
+ manualEndTime: false,
2589
+ renderEndTime: null,
2590
+ raw: { data },
2591
+ task: descr,
2592
+ classes: []
2593
+ };
2594
+ const taskInfo = parseData(lastTaskID, data);
2595
+ rawTask.raw.startTime = taskInfo.startTime;
2596
+ rawTask.raw.endTime = taskInfo.endTime;
2597
+ rawTask.id = taskInfo.id;
2598
+ rawTask.prevTaskId = lastTaskID;
2599
+ rawTask.active = taskInfo.active;
2600
+ rawTask.done = taskInfo.done;
2601
+ rawTask.crit = taskInfo.crit;
2602
+ rawTask.milestone = taskInfo.milestone;
2603
+ rawTask.vert = taskInfo.vert;
2604
+ rawTask.order = lastOrder;
2605
+ lastOrder++;
2606
+ const pos = rawTasks.push(rawTask);
2607
+ lastTaskID = rawTask.id;
2608
+ taskDb[rawTask.id] = pos - 1;
2609
+ }, "addTask");
2610
+ var findTaskById = /* @__PURE__ */ __name(function(id) {
2611
+ const pos = taskDb[id];
2612
+ return rawTasks[pos];
2613
+ }, "findTaskById");
2614
+ var addTaskOrg = /* @__PURE__ */ __name(function(descr, data) {
2615
+ const newTask = {
2616
+ section: currentSection,
2617
+ type: currentSection,
2618
+ description: descr,
2619
+ task: descr,
2620
+ classes: []
2621
+ };
2622
+ const taskInfo = compileData(lastTask, data);
2623
+ newTask.startTime = taskInfo.startTime;
2624
+ newTask.endTime = taskInfo.endTime;
2625
+ newTask.id = taskInfo.id;
2626
+ newTask.active = taskInfo.active;
2627
+ newTask.done = taskInfo.done;
2628
+ newTask.crit = taskInfo.crit;
2629
+ newTask.milestone = taskInfo.milestone;
2630
+ newTask.vert = taskInfo.vert;
2631
+ lastTask = newTask;
2632
+ tasks.push(newTask);
2633
+ }, "addTaskOrg");
2634
+ var compileTasks = /* @__PURE__ */ __name(function() {
2635
+ const compileTask = /* @__PURE__ */ __name(function(pos) {
2636
+ const task = rawTasks[pos];
2637
+ let startTime = "";
2638
+ switch (rawTasks[pos].raw.startTime.type) {
2639
+ case "prevTaskEnd": {
2640
+ const prevTask = findTaskById(task.prevTaskId);
2641
+ task.startTime = prevTask.endTime;
2642
+ break;
2643
+ }
2644
+ case "getStartDate":
2645
+ startTime = getStartDate(void 0, dateFormat, rawTasks[pos].raw.startTime.startData);
2646
+ if (startTime) {
2647
+ rawTasks[pos].startTime = startTime;
2648
+ }
2649
+ break;
2650
+ }
2651
+ if (rawTasks[pos].startTime) {
2652
+ rawTasks[pos].endTime = getEndDate(
2653
+ rawTasks[pos].startTime,
2654
+ dateFormat,
2655
+ rawTasks[pos].raw.endTime.data,
2656
+ inclusiveEndDates
2657
+ );
2658
+ if (rawTasks[pos].endTime) {
2659
+ rawTasks[pos].processed = true;
2660
+ rawTasks[pos].manualEndTime = dayjs2(
2661
+ rawTasks[pos].raw.endTime.data,
2662
+ "YYYY-MM-DD",
2663
+ true
2664
+ ).isValid();
2665
+ checkTaskDates(rawTasks[pos], dateFormat, excludes, includes);
2666
+ }
2667
+ }
2668
+ return rawTasks[pos].processed;
2669
+ }, "compileTask");
2670
+ let allProcessed = true;
2671
+ for (const [i, rawTask] of rawTasks.entries()) {
2672
+ compileTask(i);
2673
+ allProcessed = allProcessed && rawTask.processed;
2674
+ }
2675
+ return allProcessed;
2676
+ }, "compileTasks");
2677
+ var setLink = /* @__PURE__ */ __name(function(ids, _linkStr) {
2678
+ let linkStr = _linkStr;
2679
+ if (getConfig2().securityLevel !== "loose") {
2680
+ linkStr = sanitizeUrl_1(_linkStr);
2681
+ }
2682
+ ids.split(",").forEach(function(id) {
2683
+ let rawTask = findTaskById(id);
2684
+ if (rawTask !== void 0) {
2685
+ pushFun(id, () => {
2686
+ window.open(linkStr, "_self");
2687
+ });
2688
+ links.set(id, linkStr);
2689
+ }
2690
+ });
2691
+ setClass(ids, "clickable");
2692
+ }, "setLink");
2693
+ var setClass = /* @__PURE__ */ __name(function(ids, className) {
2694
+ ids.split(",").forEach(function(id) {
2695
+ let rawTask = findTaskById(id);
2696
+ if (rawTask !== void 0) {
2697
+ rawTask.classes.push(className);
2698
+ }
2699
+ });
2700
+ }, "setClass");
2701
+ var setClickFun = /* @__PURE__ */ __name(function(id, functionName, functionArgs) {
2702
+ if (getConfig2().securityLevel !== "loose") {
2703
+ return;
2704
+ }
2705
+ if (functionName === void 0) {
2706
+ return;
2707
+ }
2708
+ let argList = [];
2709
+ if (typeof functionArgs === "string") {
2710
+ argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2711
+ for (let i = 0; i < argList.length; i++) {
2712
+ let item = argList[i].trim();
2713
+ if (item.startsWith('"') && item.endsWith('"')) {
2714
+ item = item.substr(1, item.length - 2);
2715
+ }
2716
+ argList[i] = item;
2717
+ }
2718
+ }
2719
+ if (argList.length === 0) {
2720
+ argList.push(id);
2721
+ }
2722
+ let rawTask = findTaskById(id);
2723
+ if (rawTask !== void 0) {
2724
+ pushFun(id, () => {
2725
+ utils_default.runFunc(functionName, ...argList);
2726
+ });
2727
+ }
2728
+ }, "setClickFun");
2729
+ var pushFun = /* @__PURE__ */ __name(function(id, callbackFunction) {
2730
+ funs.push(
2731
+ function() {
2732
+ const elem = document.querySelector(`[id="${id}"]`);
2733
+ if (elem !== null) {
2734
+ elem.addEventListener("click", function() {
2735
+ callbackFunction();
2736
+ });
2737
+ }
2738
+ },
2739
+ function() {
2740
+ const elem = document.querySelector(`[id="${id}-text"]`);
2741
+ if (elem !== null) {
2742
+ elem.addEventListener("click", function() {
2743
+ callbackFunction();
2744
+ });
2745
+ }
2746
+ }
2747
+ );
2748
+ }, "pushFun");
2749
+ var setClickEvent = /* @__PURE__ */ __name(function(ids, functionName, functionArgs) {
2750
+ ids.split(",").forEach(function(id) {
2751
+ setClickFun(id, functionName, functionArgs);
2752
+ });
2753
+ setClass(ids, "clickable");
2754
+ }, "setClickEvent");
2755
+ var bindFunctions = /* @__PURE__ */ __name(function(element) {
2756
+ funs.forEach(function(fun) {
2757
+ fun(element);
2758
+ });
2759
+ }, "bindFunctions");
2760
+ var ganttDb_default = {
2761
+ getConfig: /* @__PURE__ */ __name(() => getConfig2().gantt, "getConfig"),
2762
+ clear: clear2,
2763
+ setDateFormat,
2764
+ getDateFormat,
2765
+ enableInclusiveEndDates,
2766
+ endDatesAreInclusive,
2767
+ enableTopAxis,
2768
+ topAxisEnabled,
2769
+ setAxisFormat,
2770
+ getAxisFormat,
2771
+ setTickInterval,
2772
+ getTickInterval,
2773
+ setTodayMarker,
2774
+ getTodayMarker,
2775
+ setAccTitle,
2776
+ getAccTitle,
2777
+ setDiagramTitle,
2778
+ getDiagramTitle,
2779
+ setDisplayMode,
2780
+ getDisplayMode,
2781
+ setAccDescription,
2782
+ getAccDescription,
2783
+ addSection,
2784
+ getSections,
2785
+ getTasks,
2786
+ addTask,
2787
+ findTaskById,
2788
+ addTaskOrg,
2789
+ setIncludes,
2790
+ getIncludes,
2791
+ setExcludes,
2792
+ getExcludes,
2793
+ setClickEvent,
2794
+ setLink,
2795
+ getLinks,
2796
+ bindFunctions,
2797
+ parseDuration,
2798
+ isInvalidDate,
2799
+ setWeekday,
2800
+ getWeekday,
2801
+ setWeekend
2802
+ };
2803
+ function getTaskTags(data, task, tags2) {
2804
+ let matchFound = true;
2805
+ while (matchFound) {
2806
+ matchFound = false;
2807
+ tags2.forEach(function(t) {
2808
+ const pattern = "^\\s*" + t + "\\s*$";
2809
+ const regex = new RegExp(pattern);
2810
+ if (data[0].match(regex)) {
2811
+ task[t] = true;
2812
+ data.shift(1);
2813
+ matchFound = true;
2814
+ }
2815
+ });
2816
+ }
2817
+ }
2818
+ __name(getTaskTags, "getTaskTags");
2819
+ dayjs2.extend(dayjsDuration);
2820
+ var setConf = /* @__PURE__ */ __name(function() {
2821
+ log.debug("Something is calling, setConf, remove the call");
2822
+ }, "setConf");
2823
+ var mapWeekdayToTimeFunction = {
2824
+ monday: timeMonday,
2825
+ tuesday: timeTuesday,
2826
+ wednesday: timeWednesday,
2827
+ thursday: timeThursday,
2828
+ friday: timeFriday,
2829
+ saturday: timeSaturday,
2830
+ sunday: timeSunday
2831
+ };
2832
+ var getMaxIntersections = /* @__PURE__ */ __name((tasks2, orderOffset) => {
2833
+ let timeline = [...tasks2].map(() => -Infinity);
2834
+ let sorted = [...tasks2].sort((a, b) => a.startTime - b.startTime || a.order - b.order);
2835
+ let maxIntersections = 0;
2836
+ for (const element of sorted) {
2837
+ for (let j = 0; j < timeline.length; j++) {
2838
+ if (element.startTime >= timeline[j]) {
2839
+ timeline[j] = element.endTime;
2840
+ element.order = j + orderOffset;
2841
+ if (j > maxIntersections) {
2842
+ maxIntersections = j;
2843
+ }
2844
+ break;
2845
+ }
2846
+ }
2847
+ }
2848
+ return maxIntersections;
2849
+ }, "getMaxIntersections");
2850
+ var w;
2851
+ var MAX_TICK_COUNT = 1e4;
2852
+ var draw = /* @__PURE__ */ __name(function(text, id, version, diagObj) {
2853
+ const conf = getConfig2().gantt;
2854
+ const securityLevel = getConfig2().securityLevel;
2855
+ let sandboxElement;
2856
+ if (securityLevel === "sandbox") {
2857
+ sandboxElement = select("#i" + id);
2858
+ }
2859
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
2860
+ const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
2861
+ const elem = doc.getElementById(id);
2862
+ w = elem.parentElement.offsetWidth;
2863
+ if (w === void 0) {
2864
+ w = 1200;
2865
+ }
2866
+ if (conf.useWidth !== void 0) {
2867
+ w = conf.useWidth;
2868
+ }
2869
+ const taskArray = diagObj.db.getTasks();
2870
+ let categories = [];
2871
+ for (const element of taskArray) {
2872
+ categories.push(element.type);
2873
+ }
2874
+ categories = checkUnique(categories);
2875
+ const categoryHeights = {};
2876
+ let h = 2 * conf.topPadding;
2877
+ if (diagObj.db.getDisplayMode() === "compact" || conf.displayMode === "compact") {
2878
+ const categoryElements = {};
2879
+ for (const element of taskArray) {
2880
+ if (categoryElements[element.section] === void 0) {
2881
+ categoryElements[element.section] = [element];
2882
+ } else {
2883
+ categoryElements[element.section].push(element);
2884
+ }
2885
+ }
2886
+ let intersections = 0;
2887
+ for (const category of Object.keys(categoryElements)) {
2888
+ const categoryHeight = getMaxIntersections(categoryElements[category], intersections) + 1;
2889
+ intersections += categoryHeight;
2890
+ h += categoryHeight * (conf.barHeight + conf.barGap);
2891
+ categoryHeights[category] = categoryHeight;
2892
+ }
2893
+ } else {
2894
+ h += taskArray.length * (conf.barHeight + conf.barGap);
2895
+ for (const category of categories) {
2896
+ categoryHeights[category] = taskArray.filter((task) => task.type === category).length;
2897
+ }
2898
+ }
2899
+ elem.setAttribute("viewBox", "0 0 " + w + " " + h);
2900
+ const svg = root.select(`[id="${id}"]`);
2901
+ const timeScale = time().domain([
2902
+ min(taskArray, function(d) {
2903
+ return d.startTime;
2904
+ }),
2905
+ max(taskArray, function(d) {
2906
+ return d.endTime;
2907
+ })
2908
+ ]).rangeRound([0, w - conf.leftPadding - conf.rightPadding]);
2909
+ function taskCompare(a, b) {
2910
+ const taskA = a.startTime;
2911
+ const taskB = b.startTime;
2912
+ let result = 0;
2913
+ if (taskA > taskB) {
2914
+ result = 1;
2915
+ } else if (taskA < taskB) {
2916
+ result = -1;
2917
+ }
2918
+ return result;
2919
+ }
2920
+ __name(taskCompare, "taskCompare");
2921
+ taskArray.sort(taskCompare);
2922
+ makeGantt(taskArray, w, h);
2923
+ configureSvgSize(svg, h, w, conf.useMaxWidth);
2924
+ svg.append("text").text(diagObj.db.getDiagramTitle()).attr("x", w / 2).attr("y", conf.titleTopMargin).attr("class", "titleText");
2925
+ function makeGantt(tasks2, pageWidth, pageHeight) {
2926
+ const barHeight = conf.barHeight;
2927
+ const gap = barHeight + conf.barGap;
2928
+ const topPadding = conf.topPadding;
2929
+ const leftPadding = conf.leftPadding;
2930
+ const colorScale = linear().domain([0, categories.length]).range(["#00B9FA", "#F95002"]).interpolate(interpolateHcl);
2931
+ drawExcludeDays(
2932
+ gap,
2933
+ topPadding,
2934
+ leftPadding,
2935
+ pageWidth,
2936
+ pageHeight,
2937
+ tasks2,
2938
+ diagObj.db.getExcludes(),
2939
+ diagObj.db.getIncludes()
2940
+ );
2941
+ makeGrid(leftPadding, topPadding, pageWidth, pageHeight);
2942
+ drawRects(tasks2, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth);
2943
+ vertLabels(gap, topPadding);
2944
+ drawToday(leftPadding, topPadding, pageWidth, pageHeight);
2945
+ }
2946
+ __name(makeGantt, "makeGantt");
2947
+ function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w2) {
2948
+ theArray.sort((a, b) => a.vert === b.vert ? 0 : a.vert ? 1 : -1);
2949
+ const uniqueTaskOrderIds = [...new Set(theArray.map((item) => item.order))];
2950
+ const uniqueTasks = uniqueTaskOrderIds.map((id2) => theArray.find((item) => item.order === id2));
2951
+ svg.append("g").selectAll("rect").data(uniqueTasks).enter().append("rect").attr("x", 0).attr("y", function(d, i) {
2952
+ i = d.order;
2953
+ return i * theGap + theTopPad - 2;
2954
+ }).attr("width", function() {
2955
+ return w2 - conf.rightPadding / 2;
2956
+ }).attr("height", theGap).attr("class", function(d) {
2957
+ for (const [i, category] of categories.entries()) {
2958
+ if (d.type === category) {
2959
+ return "section section" + i % conf.numberSectionStyles;
2960
+ }
2961
+ }
2962
+ return "section section0";
2963
+ }).enter();
2964
+ const rectangles = svg.append("g").selectAll("rect").data(theArray).enter();
2965
+ const links2 = diagObj.db.getLinks();
2966
+ rectangles.append("rect").attr("id", function(d) {
2967
+ return d.id;
2968
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(d) {
2969
+ if (d.milestone) {
2970
+ return timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;
2971
+ }
2972
+ return timeScale(d.startTime) + theSidePad;
2973
+ }).attr("y", function(d, i) {
2974
+ i = d.order;
2975
+ if (d.vert) {
2976
+ return conf.gridLineStartPadding;
2977
+ }
2978
+ return i * theGap + theTopPad;
2979
+ }).attr("width", function(d) {
2980
+ if (d.milestone) {
2981
+ return theBarHeight;
2982
+ }
2983
+ if (d.vert) {
2984
+ return 0.08 * theBarHeight;
2985
+ }
2986
+ return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);
2987
+ }).attr("height", function(d) {
2988
+ if (d.vert) {
2989
+ return taskArray.length * (conf.barHeight + conf.barGap) + conf.barHeight * 2;
2990
+ }
2991
+ return theBarHeight;
2992
+ }).attr("transform-origin", function(d, i) {
2993
+ i = d.order;
2994
+ return (timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))).toString() + "px " + (i * theGap + theTopPad + 0.5 * theBarHeight).toString() + "px";
2995
+ }).attr("class", function(d) {
2996
+ const res = "task";
2997
+ let classStr = "";
2998
+ if (d.classes.length > 0) {
2999
+ classStr = d.classes.join(" ");
3000
+ }
3001
+ let secNum = 0;
3002
+ for (const [i, category] of categories.entries()) {
3003
+ if (d.type === category) {
3004
+ secNum = i % conf.numberSectionStyles;
3005
+ }
3006
+ }
3007
+ let taskClass = "";
3008
+ if (d.active) {
3009
+ if (d.crit) {
3010
+ taskClass += " activeCrit";
3011
+ } else {
3012
+ taskClass = " active";
3013
+ }
3014
+ } else if (d.done) {
3015
+ if (d.crit) {
3016
+ taskClass = " doneCrit";
3017
+ } else {
3018
+ taskClass = " done";
3019
+ }
3020
+ } else {
3021
+ if (d.crit) {
3022
+ taskClass += " crit";
3023
+ }
3024
+ }
3025
+ if (taskClass.length === 0) {
3026
+ taskClass = " task";
3027
+ }
3028
+ if (d.milestone) {
3029
+ taskClass = " milestone " + taskClass;
3030
+ }
3031
+ if (d.vert) {
3032
+ taskClass = " vert " + taskClass;
3033
+ }
3034
+ taskClass += secNum;
3035
+ taskClass += " " + classStr;
3036
+ return res + taskClass;
3037
+ });
3038
+ rectangles.append("text").attr("id", function(d) {
3039
+ return d.id + "-text";
3040
+ }).text(function(d) {
3041
+ return d.task;
3042
+ }).attr("font-size", conf.fontSize).attr("x", function(d) {
3043
+ let startX = timeScale(d.startTime);
3044
+ let endX = timeScale(d.renderEndTime || d.endTime);
3045
+ if (d.milestone) {
3046
+ startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;
3047
+ endX = startX + theBarHeight;
3048
+ }
3049
+ if (d.vert) {
3050
+ return timeScale(d.startTime) + theSidePad;
3051
+ }
3052
+ const textWidth = this.getBBox().width;
3053
+ if (textWidth > endX - startX) {
3054
+ if (endX + textWidth + 1.5 * conf.leftPadding > w2) {
3055
+ return startX + theSidePad - 5;
3056
+ } else {
3057
+ return endX + theSidePad + 5;
3058
+ }
3059
+ } else {
3060
+ return (endX - startX) / 2 + startX + theSidePad;
3061
+ }
3062
+ }).attr("y", function(d, i) {
3063
+ if (d.vert) {
3064
+ return conf.gridLineStartPadding + taskArray.length * (conf.barHeight + conf.barGap) + 60;
3065
+ }
3066
+ i = d.order;
3067
+ return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;
3068
+ }).attr("text-height", theBarHeight).attr("class", function(d) {
3069
+ const startX = timeScale(d.startTime);
3070
+ let endX = timeScale(d.endTime);
3071
+ if (d.milestone) {
3072
+ endX = startX + theBarHeight;
3073
+ }
3074
+ const textWidth = this.getBBox().width;
3075
+ let classStr = "";
3076
+ if (d.classes.length > 0) {
3077
+ classStr = d.classes.join(" ");
3078
+ }
3079
+ let secNum = 0;
3080
+ for (const [i, category] of categories.entries()) {
3081
+ if (d.type === category) {
3082
+ secNum = i % conf.numberSectionStyles;
3083
+ }
3084
+ }
3085
+ let taskType = "";
3086
+ if (d.active) {
3087
+ if (d.crit) {
3088
+ taskType = "activeCritText" + secNum;
3089
+ } else {
3090
+ taskType = "activeText" + secNum;
3091
+ }
3092
+ }
3093
+ if (d.done) {
3094
+ if (d.crit) {
3095
+ taskType = taskType + " doneCritText" + secNum;
3096
+ } else {
3097
+ taskType = taskType + " doneText" + secNum;
3098
+ }
3099
+ } else {
3100
+ if (d.crit) {
3101
+ taskType = taskType + " critText" + secNum;
3102
+ }
3103
+ }
3104
+ if (d.milestone) {
3105
+ taskType += " milestoneText";
3106
+ }
3107
+ if (d.vert) {
3108
+ taskType += " vertText";
3109
+ }
3110
+ if (textWidth > endX - startX) {
3111
+ if (endX + textWidth + 1.5 * conf.leftPadding > w2) {
3112
+ return classStr + " taskTextOutsideLeft taskTextOutside" + secNum + " " + taskType;
3113
+ } else {
3114
+ return classStr + " taskTextOutsideRight taskTextOutside" + secNum + " " + taskType + " width-" + textWidth;
3115
+ }
3116
+ } else {
3117
+ return classStr + " taskText taskText" + secNum + " " + taskType + " width-" + textWidth;
3118
+ }
3119
+ });
3120
+ const securityLevel2 = getConfig2().securityLevel;
3121
+ if (securityLevel2 === "sandbox") {
3122
+ let sandboxElement2;
3123
+ sandboxElement2 = select("#i" + id);
3124
+ const doc2 = sandboxElement2.nodes()[0].contentDocument;
3125
+ rectangles.filter(function(d) {
3126
+ return links2.has(d.id);
3127
+ }).each(function(o) {
3128
+ var taskRect = doc2.querySelector("#" + o.id);
3129
+ var taskText = doc2.querySelector("#" + o.id + "-text");
3130
+ const oldParent = taskRect.parentNode;
3131
+ var Link = doc2.createElement("a");
3132
+ Link.setAttribute("xlink:href", links2.get(o.id));
3133
+ Link.setAttribute("target", "_top");
3134
+ oldParent.appendChild(Link);
3135
+ Link.appendChild(taskRect);
3136
+ Link.appendChild(taskText);
3137
+ });
3138
+ }
3139
+ }
3140
+ __name(drawRects, "drawRects");
3141
+ function drawExcludeDays(theGap, theTopPad, theSidePad, w2, h2, tasks2, excludes2, includes2) {
3142
+ if (excludes2.length === 0 && includes2.length === 0) {
3143
+ return;
3144
+ }
3145
+ let minTime;
3146
+ let maxTime;
3147
+ for (const { startTime, endTime } of tasks2) {
3148
+ if (minTime === void 0 || startTime < minTime) {
3149
+ minTime = startTime;
3150
+ }
3151
+ if (maxTime === void 0 || endTime > maxTime) {
3152
+ maxTime = endTime;
3153
+ }
3154
+ }
3155
+ if (!minTime || !maxTime) {
3156
+ return;
3157
+ }
3158
+ if (dayjs2(maxTime).diff(dayjs2(minTime), "year") > 5) {
3159
+ log.warn(
3160
+ "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
3161
+ );
3162
+ return;
3163
+ }
3164
+ const dateFormat2 = diagObj.db.getDateFormat();
3165
+ const excludeRanges = [];
3166
+ let range = null;
3167
+ let d = dayjs2(minTime);
3168
+ while (d.valueOf() <= maxTime) {
3169
+ if (diagObj.db.isInvalidDate(d, dateFormat2, excludes2, includes2)) {
3170
+ if (!range) {
3171
+ range = {
3172
+ start: d,
3173
+ end: d
3174
+ };
3175
+ } else {
3176
+ range.end = d;
3177
+ }
3178
+ } else {
3179
+ if (range) {
3180
+ excludeRanges.push(range);
3181
+ range = null;
3182
+ }
3183
+ }
3184
+ d = d.add(1, "d");
3185
+ }
3186
+ const rectangles = svg.append("g").selectAll("rect").data(excludeRanges).enter();
3187
+ rectangles.append("rect").attr("id", (d2) => "exclude-" + d2.start.format("YYYY-MM-DD")).attr("x", (d2) => timeScale(d2.start.startOf("day")) + theSidePad).attr("y", conf.gridLineStartPadding).attr("width", (d2) => timeScale(d2.end.endOf("day")) - timeScale(d2.start.startOf("day"))).attr("height", h2 - theTopPad - conf.gridLineStartPadding).attr("transform-origin", function(d2, i) {
3188
+ return (timeScale(d2.start) + theSidePad + 0.5 * (timeScale(d2.end) - timeScale(d2.start))).toString() + "px " + (i * theGap + 0.5 * h2).toString() + "px";
3189
+ }).attr("class", "exclude-range");
3190
+ }
3191
+ __name(drawExcludeDays, "drawExcludeDays");
3192
+ function getEstimatedTickCount(minTime, maxTime, every, interval) {
3193
+ if (every <= 0 || minTime > maxTime) {
3194
+ return Infinity;
3195
+ }
3196
+ const timeDiffMs = maxTime - minTime;
3197
+ const intervalMs = dayjs2.duration({ [interval ?? "day"]: every }).asMilliseconds();
3198
+ if (intervalMs <= 0) {
3199
+ return Infinity;
3200
+ }
3201
+ return Math.ceil(timeDiffMs / intervalMs);
3202
+ }
3203
+ __name(getEstimatedTickCount, "getEstimatedTickCount");
3204
+ function makeGrid(theSidePad, theTopPad, w2, h2) {
3205
+ const dateFormat2 = diagObj.db.getDateFormat();
3206
+ const userAxisFormat = diagObj.db.getAxisFormat();
3207
+ let axisFormat2;
3208
+ if (userAxisFormat) {
3209
+ axisFormat2 = userAxisFormat;
3210
+ } else if (dateFormat2 === "D") {
3211
+ axisFormat2 = "%d";
3212
+ } else {
3213
+ axisFormat2 = conf.axisFormat ?? "%Y-%m-%d";
3214
+ }
3215
+ let bottomXAxis = axisBottom(timeScale).tickSize(-h2 + theTopPad + conf.gridLineStartPadding).tickFormat(timeFormat(axisFormat2));
3216
+ const reTickInterval = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/;
3217
+ const resultTickInterval = reTickInterval.exec(
3218
+ diagObj.db.getTickInterval() || conf.tickInterval
3219
+ );
3220
+ if (resultTickInterval !== null) {
3221
+ const every = parseInt(resultTickInterval[1], 10);
3222
+ if (isNaN(every) || every <= 0) {
3223
+ log.warn(
3224
+ `Invalid tick interval value: "${resultTickInterval[1]}". Skipping custom tick interval.`
3225
+ );
3226
+ } else {
3227
+ const interval = resultTickInterval[2];
3228
+ const weekday2 = diagObj.db.getWeekday() || conf.weekday;
3229
+ const domain = timeScale.domain();
3230
+ const minTime = domain[0];
3231
+ const maxTime = domain[1];
3232
+ const estimatedTicks = getEstimatedTickCount(minTime, maxTime, every, interval);
3233
+ if (estimatedTicks > MAX_TICK_COUNT) {
3234
+ log.warn(
3235
+ `The tick interval "${every}${interval}" would generate ${estimatedTicks} ticks, which exceeds the maximum allowed (${MAX_TICK_COUNT}). This may indicate an invalid date or time range. Skipping custom tick interval.`
3236
+ );
3237
+ } else {
3238
+ switch (interval) {
3239
+ case "millisecond":
3240
+ bottomXAxis.ticks(millisecond.every(every));
3241
+ break;
3242
+ case "second":
3243
+ bottomXAxis.ticks(second.every(every));
3244
+ break;
3245
+ case "minute":
3246
+ bottomXAxis.ticks(timeMinute.every(every));
3247
+ break;
3248
+ case "hour":
3249
+ bottomXAxis.ticks(timeHour.every(every));
3250
+ break;
3251
+ case "day":
3252
+ bottomXAxis.ticks(timeDay.every(every));
3253
+ break;
3254
+ case "week":
3255
+ bottomXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));
3256
+ break;
3257
+ case "month":
3258
+ bottomXAxis.ticks(timeMonth.every(every));
3259
+ break;
3260
+ }
3261
+ }
3262
+ }
3263
+ }
3264
+ svg.append("g").attr("class", "grid").attr("transform", "translate(" + theSidePad + ", " + (h2 - 50) + ")").call(bottomXAxis).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em");
3265
+ if (diagObj.db.topAxisEnabled() || conf.topAxis) {
3266
+ let topXAxis = axisTop(timeScale).tickSize(-h2 + theTopPad + conf.gridLineStartPadding).tickFormat(timeFormat(axisFormat2));
3267
+ if (resultTickInterval !== null) {
3268
+ const every = parseInt(resultTickInterval[1], 10);
3269
+ if (isNaN(every) || every <= 0) {
3270
+ log.warn(
3271
+ `Invalid tick interval value: "${resultTickInterval[1]}". Skipping custom tick interval.`
3272
+ );
3273
+ } else {
3274
+ const interval = resultTickInterval[2];
3275
+ const weekday2 = diagObj.db.getWeekday() || conf.weekday;
3276
+ const domain = timeScale.domain();
3277
+ const minTime = domain[0];
3278
+ const maxTime = domain[1];
3279
+ const estimatedTicks = getEstimatedTickCount(minTime, maxTime, every, interval);
3280
+ if (estimatedTicks <= MAX_TICK_COUNT) {
3281
+ switch (interval) {
3282
+ case "millisecond":
3283
+ topXAxis.ticks(millisecond.every(every));
3284
+ break;
3285
+ case "second":
3286
+ topXAxis.ticks(second.every(every));
3287
+ break;
3288
+ case "minute":
3289
+ topXAxis.ticks(timeMinute.every(every));
3290
+ break;
3291
+ case "hour":
3292
+ topXAxis.ticks(timeHour.every(every));
3293
+ break;
3294
+ case "day":
3295
+ topXAxis.ticks(timeDay.every(every));
3296
+ break;
3297
+ case "week":
3298
+ topXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));
3299
+ break;
3300
+ case "month":
3301
+ topXAxis.ticks(timeMonth.every(every));
3302
+ break;
3303
+ }
3304
+ }
3305
+ }
3306
+ }
3307
+ svg.append("g").attr("class", "grid").attr("transform", "translate(" + theSidePad + ", " + theTopPad + ")").call(topXAxis).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
3308
+ }
3309
+ }
3310
+ __name(makeGrid, "makeGrid");
3311
+ function vertLabels(theGap, theTopPad) {
3312
+ let prevGap = 0;
3313
+ const numOccurrences = Object.keys(categoryHeights).map((d) => [d, categoryHeights[d]]);
3314
+ svg.append("g").selectAll("text").data(numOccurrences).enter().append(function(d) {
3315
+ const rows = d[0].split(common_default.lineBreakRegex);
3316
+ const dy = -(rows.length - 1) / 2;
3317
+ const svgLabel = doc.createElementNS("http://www.w3.org/2000/svg", "text");
3318
+ svgLabel.setAttribute("dy", dy + "em");
3319
+ for (const [j, row] of rows.entries()) {
3320
+ const tspan = doc.createElementNS("http://www.w3.org/2000/svg", "tspan");
3321
+ tspan.setAttribute("alignment-baseline", "central");
3322
+ tspan.setAttribute("x", "10");
3323
+ if (j > 0) {
3324
+ tspan.setAttribute("dy", "1em");
3325
+ }
3326
+ tspan.textContent = row;
3327
+ svgLabel.appendChild(tspan);
3328
+ }
3329
+ return svgLabel;
3330
+ }).attr("x", 10).attr("y", function(d, i) {
3331
+ if (i > 0) {
3332
+ for (let j = 0; j < i; j++) {
3333
+ prevGap += numOccurrences[i - 1][1];
3334
+ return d[1] * theGap / 2 + prevGap * theGap + theTopPad;
3335
+ }
3336
+ } else {
3337
+ return d[1] * theGap / 2 + theTopPad;
3338
+ }
3339
+ }).attr("font-size", conf.sectionFontSize).attr("class", function(d) {
3340
+ for (const [i, category] of categories.entries()) {
3341
+ if (d[0] === category) {
3342
+ return "sectionTitle sectionTitle" + i % conf.numberSectionStyles;
3343
+ }
3344
+ }
3345
+ return "sectionTitle";
3346
+ });
3347
+ }
3348
+ __name(vertLabels, "vertLabels");
3349
+ function drawToday(theSidePad, theTopPad, w2, h2) {
3350
+ const todayMarker2 = diagObj.db.getTodayMarker();
3351
+ if (todayMarker2 === "off") {
3352
+ return;
3353
+ }
3354
+ const todayG = svg.append("g").attr("class", "today");
3355
+ const today = /* @__PURE__ */ new Date();
3356
+ const todayLine = todayG.append("line");
3357
+ todayLine.attr("x1", timeScale(today) + theSidePad).attr("x2", timeScale(today) + theSidePad).attr("y1", conf.titleTopMargin).attr("y2", h2 - conf.titleTopMargin).attr("class", "today");
3358
+ if (todayMarker2 !== "") {
3359
+ todayLine.attr("style", todayMarker2.replace(/,/g, ";"));
3360
+ }
3361
+ }
3362
+ __name(drawToday, "drawToday");
3363
+ function checkUnique(arr) {
3364
+ const hash = {};
3365
+ const result = [];
3366
+ for (let i = 0, l = arr.length; i < l; ++i) {
3367
+ if (!Object.prototype.hasOwnProperty.call(hash, arr[i])) {
3368
+ hash[arr[i]] = true;
3369
+ result.push(arr[i]);
3370
+ }
3371
+ }
3372
+ return result;
3373
+ }
3374
+ __name(checkUnique, "checkUnique");
3375
+ }, "draw");
3376
+ var ganttRenderer_default = {
3377
+ setConf,
3378
+ draw
3379
+ };
3380
+ var getStyles = /* @__PURE__ */ __name((options) => `
3381
+ .mermaid-main-font {
3382
+ font-family: ${options.fontFamily};
3383
+ }
3384
+
3385
+ .exclude-range {
3386
+ fill: ${options.excludeBkgColor};
3387
+ }
3388
+
3389
+ .section {
3390
+ stroke: none;
3391
+ opacity: 0.2;
3392
+ }
3393
+
3394
+ .section0 {
3395
+ fill: ${options.sectionBkgColor};
3396
+ }
3397
+
3398
+ .section2 {
3399
+ fill: ${options.sectionBkgColor2};
3400
+ }
3401
+
3402
+ .section1,
3403
+ .section3 {
3404
+ fill: ${options.altSectionBkgColor};
3405
+ opacity: 0.2;
3406
+ }
3407
+
3408
+ .sectionTitle0 {
3409
+ fill: ${options.titleColor};
3410
+ }
3411
+
3412
+ .sectionTitle1 {
3413
+ fill: ${options.titleColor};
3414
+ }
3415
+
3416
+ .sectionTitle2 {
3417
+ fill: ${options.titleColor};
3418
+ }
3419
+
3420
+ .sectionTitle3 {
3421
+ fill: ${options.titleColor};
3422
+ }
3423
+
3424
+ .sectionTitle {
3425
+ text-anchor: start;
3426
+ font-family: ${options.fontFamily};
3427
+ }
3428
+
3429
+
3430
+ /* Grid and axis */
3431
+
3432
+ .grid .tick {
3433
+ stroke: ${options.gridColor};
3434
+ opacity: 0.8;
3435
+ shape-rendering: crispEdges;
3436
+ }
3437
+
3438
+ .grid .tick text {
3439
+ font-family: ${options.fontFamily};
3440
+ fill: ${options.textColor};
3441
+ }
3442
+
3443
+ .grid path {
3444
+ stroke-width: 0;
3445
+ }
3446
+
3447
+
3448
+ /* Today line */
3449
+
3450
+ .today {
3451
+ fill: none;
3452
+ stroke: ${options.todayLineColor};
3453
+ stroke-width: 2px;
3454
+ }
3455
+
3456
+
3457
+ /* Task styling */
3458
+
3459
+ /* Default task */
3460
+
3461
+ .task {
3462
+ stroke-width: 2;
3463
+ }
3464
+
3465
+ .taskText {
3466
+ text-anchor: middle;
3467
+ font-family: ${options.fontFamily};
3468
+ }
3469
+
3470
+ .taskTextOutsideRight {
3471
+ fill: ${options.taskTextDarkColor};
3472
+ text-anchor: start;
3473
+ font-family: ${options.fontFamily};
3474
+ }
3475
+
3476
+ .taskTextOutsideLeft {
3477
+ fill: ${options.taskTextDarkColor};
3478
+ text-anchor: end;
3479
+ }
3480
+
3481
+
3482
+ /* Special case clickable */
3483
+
3484
+ .task.clickable {
3485
+ cursor: pointer;
3486
+ }
3487
+
3488
+ .taskText.clickable {
3489
+ cursor: pointer;
3490
+ fill: ${options.taskTextClickableColor} !important;
3491
+ font-weight: bold;
3492
+ }
3493
+
3494
+ .taskTextOutsideLeft.clickable {
3495
+ cursor: pointer;
3496
+ fill: ${options.taskTextClickableColor} !important;
3497
+ font-weight: bold;
3498
+ }
3499
+
3500
+ .taskTextOutsideRight.clickable {
3501
+ cursor: pointer;
3502
+ fill: ${options.taskTextClickableColor} !important;
3503
+ font-weight: bold;
3504
+ }
3505
+
3506
+
3507
+ /* Specific task settings for the sections*/
3508
+
3509
+ .taskText0,
3510
+ .taskText1,
3511
+ .taskText2,
3512
+ .taskText3 {
3513
+ fill: ${options.taskTextColor};
3514
+ }
3515
+
3516
+ .task0,
3517
+ .task1,
3518
+ .task2,
3519
+ .task3 {
3520
+ fill: ${options.taskBkgColor};
3521
+ stroke: ${options.taskBorderColor};
3522
+ }
3523
+
3524
+ .taskTextOutside0,
3525
+ .taskTextOutside2
3526
+ {
3527
+ fill: ${options.taskTextOutsideColor};
3528
+ }
3529
+
3530
+ .taskTextOutside1,
3531
+ .taskTextOutside3 {
3532
+ fill: ${options.taskTextOutsideColor};
3533
+ }
3534
+
3535
+
3536
+ /* Active task */
3537
+
3538
+ .active0,
3539
+ .active1,
3540
+ .active2,
3541
+ .active3 {
3542
+ fill: ${options.activeTaskBkgColor};
3543
+ stroke: ${options.activeTaskBorderColor};
3544
+ }
3545
+
3546
+ .activeText0,
3547
+ .activeText1,
3548
+ .activeText2,
3549
+ .activeText3 {
3550
+ fill: ${options.taskTextDarkColor} !important;
3551
+ }
3552
+
3553
+
3554
+ /* Completed task */
3555
+
3556
+ .done0,
3557
+ .done1,
3558
+ .done2,
3559
+ .done3 {
3560
+ stroke: ${options.doneTaskBorderColor};
3561
+ fill: ${options.doneTaskBkgColor};
3562
+ stroke-width: 2;
3563
+ }
3564
+
3565
+ .doneText0,
3566
+ .doneText1,
3567
+ .doneText2,
3568
+ .doneText3 {
3569
+ fill: ${options.taskTextDarkColor} !important;
3570
+ }
3571
+
3572
+
3573
+ /* Tasks on the critical line */
3574
+
3575
+ .crit0,
3576
+ .crit1,
3577
+ .crit2,
3578
+ .crit3 {
3579
+ stroke: ${options.critBorderColor};
3580
+ fill: ${options.critBkgColor};
3581
+ stroke-width: 2;
3582
+ }
3583
+
3584
+ .activeCrit0,
3585
+ .activeCrit1,
3586
+ .activeCrit2,
3587
+ .activeCrit3 {
3588
+ stroke: ${options.critBorderColor};
3589
+ fill: ${options.activeTaskBkgColor};
3590
+ stroke-width: 2;
3591
+ }
3592
+
3593
+ .doneCrit0,
3594
+ .doneCrit1,
3595
+ .doneCrit2,
3596
+ .doneCrit3 {
3597
+ stroke: ${options.critBorderColor};
3598
+ fill: ${options.doneTaskBkgColor};
3599
+ stroke-width: 2;
3600
+ cursor: pointer;
3601
+ shape-rendering: crispEdges;
3602
+ }
3603
+
3604
+ .milestone {
3605
+ transform: rotate(45deg) scale(0.8,0.8);
3606
+ }
3607
+
3608
+ .milestoneText {
3609
+ font-style: italic;
3610
+ }
3611
+ .doneCritText0,
3612
+ .doneCritText1,
3613
+ .doneCritText2,
3614
+ .doneCritText3 {
3615
+ fill: ${options.taskTextDarkColor} !important;
3616
+ }
3617
+
3618
+ .vert {
3619
+ stroke: ${options.vertLineColor};
3620
+ }
3621
+
3622
+ .vertText {
3623
+ font-size: 15px;
3624
+ text-anchor: middle;
3625
+ fill: ${options.vertLineColor} !important;
3626
+ }
3627
+
3628
+ .activeCritText0,
3629
+ .activeCritText1,
3630
+ .activeCritText2,
3631
+ .activeCritText3 {
3632
+ fill: ${options.taskTextDarkColor} !important;
3633
+ }
3634
+
3635
+ .titleText {
3636
+ text-anchor: middle;
3637
+ font-size: 18px;
3638
+ fill: ${options.titleColor || options.textColor};
3639
+ font-family: ${options.fontFamily};
3640
+ }
3641
+ `, "getStyles");
3642
+ var styles_default = getStyles;
3643
+ var diagram = {
3644
+ parser: gantt_default,
3645
+ db: ganttDb_default,
3646
+ renderer: ganttRenderer_default,
3647
+ styles: styles_default
3648
+ };
3649
+ export {
3650
+ diagram
3651
+ };
3652
+ //# sourceMappingURL=ganttDiagram-JELNMOA3-BodaBsjX.js.map