sparkdesign 0.4.2 → 0.4.3

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 (468) hide show
  1. package/README.md +112 -204
  2. package/{cli/dist → dist}/commands/add.js +11 -2
  3. package/package.json +19 -126
  4. package/{cli/registry → registry}/chat/markdown.tsx +1 -1
  5. package/{cli/registry → registry}/chat/tool-invocation-card.tsx +5 -5
  6. package/registry/meta.json +750 -0
  7. package/cli/registry/meta.json +0 -1
  8. package/dist/_basePickBy-DnQN8w3y.js +0 -151
  9. package/dist/_basePickBy-a-kPMlkg.cjs +0 -1
  10. package/dist/_baseUniq-B-N2NQ50.js +0 -614
  11. package/dist/_baseUniq-Cc_zbSif.cjs +0 -1
  12. package/dist/arc-BQBhijZ6.js +0 -83
  13. package/dist/arc-mWQt0Yph.cjs +0 -1
  14. package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +0 -36
  15. package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +0 -4661
  16. package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +0 -2256
  17. package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +0 -122
  18. package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +0 -10
  19. package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +0 -1580
  20. package/dist/channel-BQn0o8bs.js +0 -5
  21. package/dist/channel-DaN7XniJ.cjs +0 -1
  22. package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +0 -1
  23. package/dist/chunk-4BX2VUAB-Czitj3Kc.js +0 -8
  24. package/dist/chunk-55IACEB6-DXacNZbO.js +0 -8
  25. package/dist/chunk-55IACEB6-DnDxpye9.cjs +0 -1
  26. package/dist/chunk-B4BG7PRW-CBdN0q_V.js +0 -1375
  27. package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +0 -165
  28. package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +0 -220
  29. package/dist/chunk-DI55MBZ5-NCQTvayw.js +0 -1370
  30. package/dist/chunk-FMBD7UC4-CsGMbrtr.js +0 -19
  31. package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +0 -15
  32. package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +0 -1
  33. package/dist/chunk-QN33PNHL-3GERZBRm.js +0 -19
  34. package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +0 -15
  35. package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +0 -1
  36. package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +0 -1
  37. package/dist/chunk-TZMSLE5B-sbiflal0.js +0 -64
  38. package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +0 -1
  39. package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +0 -16
  40. package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +0 -1
  41. package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +0 -16
  42. package/dist/clone-Cde_NQ8V.js +0 -8
  43. package/dist/clone-DCNjWuM2.cjs +0 -1
  44. package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +0 -1
  45. package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +0 -2608
  46. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  47. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  48. package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +0 -444
  49. package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +0 -4
  50. package/dist/defaultLocale-BgPVtth8.js +0 -171
  51. package/dist/defaultLocale-C4wbwF1n.cjs +0 -1
  52. package/dist/diagram-PSM6KHXK-D2bdb7MT.js +0 -531
  53. package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +0 -24
  54. package/dist/diagram-QEK2KX5R-BpUSoh0-.js +0 -217
  55. package/dist/diagram-QEK2KX5R-DZPGteon.cjs +0 -43
  56. package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +0 -24
  57. package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +0 -142
  58. package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +0 -841
  59. package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +0 -60
  60. package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +0 -162
  61. package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +0 -1620
  62. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  63. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  64. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  65. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  66. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  67. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  68. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  69. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  70. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  71. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  72. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  73. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  74. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  75. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  76. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  77. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  78. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  79. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  80. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  81. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  82. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  83. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  84. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  85. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  86. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  87. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  88. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  89. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  90. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  91. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  92. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  93. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  94. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  95. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  96. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  97. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  98. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  99. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  100. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  101. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  102. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  103. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  104. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  105. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  106. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  107. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  108. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  109. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  110. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  111. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  112. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  113. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  114. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  115. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  116. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  117. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  118. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  119. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  120. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  121. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  122. package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +0 -267
  123. package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +0 -2670
  124. package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +0 -699
  125. package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +0 -65
  126. package/dist/graph-DIbblrZP.cjs +0 -1
  127. package/dist/graph-DPcK91G3.js +0 -247
  128. package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +0 -2
  129. package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +0 -24
  130. package/dist/init-CHZsXQcr.cjs +0 -1
  131. package/dist/init-DjUOC4st.js +0 -16
  132. package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +0 -834
  133. package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +0 -139
  134. package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +0 -89
  135. package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +0 -719
  136. package/dist/katex.css +0 -1
  137. package/dist/layout-Byuh8f-J.cjs +0 -1
  138. package/dist/layout-CdLdvj1j.js +0 -1335
  139. package/dist/linear-C2Q_PI9B.js +0 -259
  140. package/dist/linear-C69aPBW1.cjs +0 -1
  141. package/dist/mermaid.core-DBwAx_jp.cjs +0 -249
  142. package/dist/mermaid.core-gFR0XUlD.js +0 -15300
  143. package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +0 -68
  144. package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +0 -784
  145. package/dist/ordinal-B6-f3MAq.js +0 -61
  146. package/dist/ordinal-CagbB1m8.cjs +0 -1
  147. package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +0 -161
  148. package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +0 -30
  149. package/dist/qoder-design.css +0 -2
  150. package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +0 -7
  151. package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +0 -1022
  152. package/dist/registry/basic/alert-dialog.d.ts +0 -40
  153. package/dist/registry/basic/avatar.d.ts +0 -30
  154. package/dist/registry/basic/button.d.ts +0 -16
  155. package/dist/registry/basic/collapse.d.ts +0 -22
  156. package/dist/registry/basic/collapsible-card.d.ts +0 -34
  157. package/dist/registry/basic/collapsible.d.ts +0 -15
  158. package/dist/registry/basic/dropdown-menu.d.ts +0 -52
  159. package/dist/registry/basic/icon-button.d.ts +0 -12
  160. package/dist/registry/basic/icons-inline.d.ts +0 -51
  161. package/dist/registry/basic/kbd.d.ts +0 -23
  162. package/dist/registry/basic/option-list.d.ts +0 -16
  163. package/dist/registry/basic/pagination.d.ts +0 -33
  164. package/dist/registry/basic/progress.d.ts +0 -18
  165. package/dist/registry/basic/radio-group.d.ts +0 -25
  166. package/dist/registry/basic/resizable.d.ts +0 -318
  167. package/dist/registry/basic/scrollbar.d.ts +0 -12
  168. package/dist/registry/basic/select.d.ts +0 -35
  169. package/dist/registry/basic/shimmering-text.d.ts +0 -27
  170. package/dist/registry/basic/sidebar-menu.d.ts +0 -23
  171. package/dist/registry/basic/skeleton.d.ts +0 -10
  172. package/dist/registry/basic/slider.d.ts +0 -16
  173. package/dist/registry/basic/sonner.d.ts +0 -23
  174. package/dist/registry/basic/spinner.d.ts +0 -5
  175. package/dist/registry/basic/switch.d.ts +0 -20
  176. package/dist/registry/basic/table.d.ts +0 -18
  177. package/dist/registry/basic/tabs.d.ts +0 -29
  178. package/dist/registry/basic/tag.d.ts +0 -23
  179. package/dist/registry/basic/theme-from-document.d.ts +0 -10
  180. package/dist/registry/basic/toggle.d.ts +0 -29
  181. package/dist/registry/basic/tooltip.d.ts +0 -34
  182. package/dist/registry/basic/typography.d.ts +0 -76
  183. package/dist/registry/chat/ask-user-part.d.ts +0 -24
  184. package/dist/registry/chat/browser-action-part.d.ts +0 -28
  185. package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +0 -22
  186. package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +0 -12
  187. package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +0 -9
  188. package/dist/registry/chat/chat-input/compound.d.ts +0 -97
  189. package/dist/registry/chat/chat-input/context.d.ts +0 -64
  190. package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +0 -11
  191. package/dist/registry/chat/chat-input/index.d.ts +0 -34
  192. package/dist/registry/chat/chat-input/types.d.ts +0 -79
  193. package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +0 -7
  194. package/dist/registry/chat/code-block-part.d.ts +0 -23
  195. package/dist/registry/chat/file-attachment.d.ts +0 -19
  196. package/dist/registry/chat/file-card.d.ts +0 -10
  197. package/dist/registry/chat/file-review-part.d.ts +0 -30
  198. package/dist/registry/chat/folder-button.d.ts +0 -20
  199. package/dist/registry/chat/generated-images-grid.d.ts +0 -15
  200. package/dist/registry/chat/generation-status-bar.d.ts +0 -19
  201. package/dist/registry/chat/hint-banner.d.ts +0 -28
  202. package/dist/registry/chat/image-attachment.d.ts +0 -19
  203. package/dist/registry/chat/image-generating.d.ts +0 -15
  204. package/dist/registry/chat/markdown.d.ts +0 -8
  205. package/dist/registry/chat/mermaid-part.d.ts +0 -17
  206. package/dist/registry/chat/permission-card.d.ts +0 -24
  207. package/dist/registry/chat/plan-part.d.ts +0 -30
  208. package/dist/registry/chat/queue-indicator.d.ts +0 -27
  209. package/dist/registry/chat/reasoning-step/compound.d.ts +0 -17
  210. package/dist/registry/chat/reasoning-step/context.d.ts +0 -10
  211. package/dist/registry/chat/reasoning-step/index.d.ts +0 -14
  212. package/dist/registry/chat/reasoning-step/types.d.ts +0 -95
  213. package/dist/registry/chat/related-prompts.d.ts +0 -23
  214. package/dist/registry/chat/response/compound.d.ts +0 -25
  215. package/dist/registry/chat/response/context.d.ts +0 -9
  216. package/dist/registry/chat/response/index.d.ts +0 -15
  217. package/dist/registry/chat/response/types.d.ts +0 -99
  218. package/dist/registry/chat/send-button.d.ts +0 -17
  219. package/dist/registry/chat/streaming-markdown-block.d.ts +0 -8
  220. package/dist/registry/chat/task-part.d.ts +0 -28
  221. package/dist/registry/chat/terminal-code-block-part.d.ts +0 -18
  222. package/dist/registry/chat/thinking-indicator.d.ts +0 -14
  223. package/dist/registry/chat/tool-invocation-card.d.ts +0 -20
  224. package/dist/registry/chat/user-message.d.ts +0 -6
  225. package/dist/registry/chat/user-question/UserQuestionCard.d.ts +0 -30
  226. package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +0 -18
  227. package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +0 -20
  228. package/dist/registry/chat/user-question/compound.d.ts +0 -37
  229. package/dist/registry/chat/user-question/context.d.ts +0 -55
  230. package/dist/registry/chat/user-question/index.d.ts +0 -15
  231. package/dist/registry/chat/user-question/types.d.ts +0 -52
  232. package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +0 -17
  233. package/dist/registry/chat/user-question/useUserQuestionState.d.ts +0 -26
  234. package/dist/registry/chat/user-question-answer.d.ts +0 -13
  235. package/dist/registry/lib/file-icon-maps.d.ts +0 -20
  236. package/dist/registry/lib/use-mermaid-render.d.ts +0 -5
  237. package/dist/registry/lib/utils.d.ts +0 -11
  238. package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +0 -850
  239. package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +0 -64
  240. package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +0 -810
  241. package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +0 -10
  242. package/dist/scale/computed.css +0 -103
  243. package/dist/scale/config.css +0 -110
  244. package/dist/scale/index.css +0 -30
  245. package/dist/scale/presets/compact.css +0 -30
  246. package/dist/scale/presets/dense.css +0 -64
  247. package/dist/scale/presets/sharp.css +0 -40
  248. package/dist/scale/presets/soft.css +0 -16
  249. package/dist/scale.css +0 -13
  250. package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +0 -145
  251. package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +0 -2511
  252. package/dist/spark-design.cjs.js +0 -265
  253. package/dist/spark-design.es.js +0 -13425
  254. package/dist/src/components/basic/AlertDialog/index.d.ts +0 -20
  255. package/dist/src/components/basic/Avatar/index.d.ts +0 -7
  256. package/dist/src/components/basic/Button/index.d.ts +0 -7
  257. package/dist/src/components/basic/Collapse/index.d.ts +0 -15
  258. package/dist/src/components/basic/Collapsible/index.d.ts +0 -7
  259. package/dist/src/components/basic/CollapsibleCard/index.d.ts +0 -7
  260. package/dist/src/components/basic/CollapsibleSection/index.d.ts +0 -43
  261. package/dist/src/components/basic/DropdownMenu/index.d.ts +0 -19
  262. package/dist/src/components/basic/EllipsisText/index.d.ts +0 -53
  263. package/dist/src/components/basic/IconButton/index.d.ts +0 -7
  264. package/dist/src/components/basic/Kbd/index.d.ts +0 -7
  265. package/dist/src/components/basic/OptionList/index.d.ts +0 -7
  266. package/dist/src/components/basic/Pagination/index.d.ts +0 -7
  267. package/dist/src/components/basic/Progress/index.d.ts +0 -7
  268. package/dist/src/components/basic/RadioGroup/index.d.ts +0 -7
  269. package/dist/src/components/basic/Resizable/index.d.ts +0 -7
  270. package/dist/src/components/basic/Scrollbar/index.d.ts +0 -7
  271. package/dist/src/components/basic/Select/index.d.ts +0 -17
  272. package/dist/src/components/basic/ShimmeringText/index.d.ts +0 -7
  273. package/dist/src/components/basic/SidebarMenu/index.d.ts +0 -4
  274. package/dist/src/components/basic/Skeleton/index.d.ts +0 -7
  275. package/dist/src/components/basic/Slider/index.d.ts +0 -7
  276. package/dist/src/components/basic/Spinner/index.d.ts +0 -7
  277. package/dist/src/components/basic/Switch/index.d.ts +0 -38
  278. package/dist/src/components/basic/Table/index.d.ts +0 -7
  279. package/dist/src/components/basic/Tabs/index.d.ts +0 -7
  280. package/dist/src/components/basic/Tag/index.d.ts +0 -10
  281. package/dist/src/components/basic/Toast/index.d.ts +0 -12
  282. package/dist/src/components/basic/Toggle/index.d.ts +0 -7
  283. package/dist/src/components/basic/Tooltip/index.d.ts +0 -21
  284. package/dist/src/components/basic/Typography/index.d.ts +0 -7
  285. package/dist/src/components/chat/AskUserPart/index.d.ts +0 -6
  286. package/dist/src/components/chat/BrowserActionPart/index.d.ts +0 -7
  287. package/dist/src/components/chat/ChatInput/index.d.ts +0 -29
  288. package/dist/src/components/chat/CodeBlockPart/index.d.ts +0 -7
  289. package/dist/src/components/chat/FileAttachment/index.d.ts +0 -3
  290. package/dist/src/components/chat/FileCard/index.d.ts +0 -3
  291. package/dist/src/components/chat/FileReviewPart/index.d.ts +0 -7
  292. package/dist/src/components/chat/FolderButton/index.d.ts +0 -5
  293. package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +0 -7
  294. package/dist/src/components/chat/GenerationStatusBar/index.d.ts +0 -7
  295. package/dist/src/components/chat/HintBanner/index.d.ts +0 -6
  296. package/dist/src/components/chat/ImageAttachment/index.d.ts +0 -3
  297. package/dist/src/components/chat/ImageGenerating/index.d.ts +0 -6
  298. package/dist/src/components/chat/Markdown/demo-content.d.ts +0 -1
  299. package/dist/src/components/chat/Markdown/index.d.ts +0 -7
  300. package/dist/src/components/chat/MermaidPart/index.d.ts +0 -6
  301. package/dist/src/components/chat/PermissionCard/index.d.ts +0 -4
  302. package/dist/src/components/chat/PlanPart/index.d.ts +0 -6
  303. package/dist/src/components/chat/QueueIndicator/index.d.ts +0 -4
  304. package/dist/src/components/chat/ReasoningStep/index.d.ts +0 -13
  305. package/dist/src/components/chat/RelatedPrompts/index.d.ts +0 -6
  306. package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +0 -6
  307. package/dist/src/components/chat/Response/index.d.ts +0 -16
  308. package/dist/src/components/chat/SendButton/index.d.ts +0 -5
  309. package/dist/src/components/chat/TaskPart/index.d.ts +0 -7
  310. package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +0 -6
  311. package/dist/src/components/chat/ThinkingIndicator/index.d.ts +0 -6
  312. package/dist/src/components/chat/ToolInvocationCard/index.d.ts +0 -4
  313. package/dist/src/components/chat/UserMessage/index.d.ts +0 -7
  314. package/dist/src/components/chat/UserQuestion/index.d.ts +0 -19
  315. package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +0 -3
  316. package/dist/src/components/index.d.ts +0 -138
  317. package/dist/src/icons/context.d.ts +0 -26
  318. package/dist/src/icons/types.d.ts +0 -18
  319. package/dist/src/lib/ThemeStyleContext.d.ts +0 -21
  320. package/dist/src/lib/file-icon.d.ts +0 -16
  321. package/dist/src/lib/i18n.d.ts +0 -12
  322. package/dist/src/lib/index.d.ts +0 -10
  323. package/dist/src/lib/motion.d.ts +0 -22
  324. package/dist/src/lib/utils.d.ts +0 -11
  325. package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +0 -1
  326. package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +0 -263
  327. package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +0 -16
  328. package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +0 -1
  329. package/dist/theme-base.css +0 -270
  330. package/dist/theme.css +0 -17
  331. package/dist/themes/dark-parchment.css +0 -133
  332. package/dist/themes/dark-qoder.css +0 -133
  333. package/dist/themes/light-parchment.css +0 -124
  334. package/dist/themes/light-qoder.css +0 -132
  335. package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +0 -61
  336. package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +0 -795
  337. package/dist/tokens/CLAUDE.md +0 -305
  338. package/dist/tokens/index.css +0 -35
  339. package/dist/tokens/scale/computed.css +0 -103
  340. package/dist/tokens/scale/config.css +0 -110
  341. package/dist/tokens/scale/index.css +0 -30
  342. package/dist/tokens/scale/presets/compact.css +0 -30
  343. package/dist/tokens/scale/presets/dense.css +0 -64
  344. package/dist/tokens/scale/presets/sharp.css +0 -40
  345. package/dist/tokens/scale/presets/soft.css +0 -16
  346. package/dist/tokens/scale.css +0 -13
  347. package/dist/tokens/scrollbar-utility.css +0 -35
  348. package/dist/tokens/theme-base.css +0 -270
  349. package/dist/tokens/theme.css +0 -17
  350. package/dist/tokens/themes/dark-parchment.css +0 -133
  351. package/dist/tokens/themes/dark-qoder.css +0 -133
  352. package/dist/tokens/themes/light-parchment.css +0 -124
  353. package/dist/tokens/themes/light-qoder.css +0 -132
  354. package/dist/treemap-GDKQZRPO-B9sfERx8.js +0 -17922
  355. package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +0 -160
  356. package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +0 -1340
  357. package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +0 -7
  358. /package/{cli/dist → dist}/commands/diff.js +0 -0
  359. /package/{cli/dist → dist}/commands/init.js +0 -0
  360. /package/{cli/dist → dist}/commands/list.js +0 -0
  361. /package/{cli/dist → dist}/index.js +0 -0
  362. /package/{cli/dist → dist}/utils/config.js +0 -0
  363. /package/{cli/dist → dist}/utils/registry.js +0 -0
  364. /package/{cli/dist → dist}/utils/tokens.js +0 -0
  365. /package/{cli/dist → dist}/utils/transform.js +0 -0
  366. /package/{cli/registry → registry}/__tests__/basic/button.test.tsx +0 -0
  367. /package/{cli/registry → registry}/__tests__/chat/markdown.test.tsx +0 -0
  368. /package/{cli/registry → registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
  369. /package/{cli/registry → registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
  370. /package/{cli/registry → registry}/basic/alert-dialog.tsx +0 -0
  371. /package/{cli/registry → registry}/basic/avatar.tsx +0 -0
  372. /package/{cli/registry → registry}/basic/button.tsx +0 -0
  373. /package/{cli/registry → registry}/basic/collapse.tsx +0 -0
  374. /package/{cli/registry → registry}/basic/collapsible-card.tsx +0 -0
  375. /package/{cli/registry → registry}/basic/collapsible.tsx +0 -0
  376. /package/{cli/registry → registry}/basic/dropdown-menu.tsx +0 -0
  377. /package/{cli/registry → registry}/basic/icon-button.tsx +0 -0
  378. /package/{cli/registry → registry}/basic/icons-inline.tsx +0 -0
  379. /package/{cli/registry → registry}/basic/kbd.tsx +0 -0
  380. /package/{cli/registry → registry}/basic/option-list.tsx +0 -0
  381. /package/{cli/registry → registry}/basic/pagination.tsx +0 -0
  382. /package/{cli/registry → registry}/basic/progress.tsx +0 -0
  383. /package/{cli/registry → registry}/basic/radio-group.tsx +0 -0
  384. /package/{cli/registry → registry}/basic/resizable.tsx +0 -0
  385. /package/{cli/registry → registry}/basic/scrollbar.tsx +0 -0
  386. /package/{cli/registry → registry}/basic/select.tsx +0 -0
  387. /package/{cli/registry → registry}/basic/shimmering-text.tsx +0 -0
  388. /package/{cli/registry → registry}/basic/sidebar-menu.tsx +0 -0
  389. /package/{cli/registry → registry}/basic/skeleton.tsx +0 -0
  390. /package/{cli/registry → registry}/basic/slider.tsx +0 -0
  391. /package/{cli/registry → registry}/basic/sonner.tsx +0 -0
  392. /package/{cli/registry → registry}/basic/spinner.tsx +0 -0
  393. /package/{cli/registry → registry}/basic/switch.tsx +0 -0
  394. /package/{cli/registry → registry}/basic/table.tsx +0 -0
  395. /package/{cli/registry → registry}/basic/tabs.tsx +0 -0
  396. /package/{cli/registry → registry}/basic/tag.tsx +0 -0
  397. /package/{cli/registry → registry}/basic/theme-from-document.ts +0 -0
  398. /package/{cli/registry → registry}/basic/toggle.tsx +0 -0
  399. /package/{cli/registry → registry}/basic/tooltip.tsx +0 -0
  400. /package/{cli/registry → registry}/basic/typography.tsx +0 -0
  401. /package/{cli/registry → registry}/chat/ask-user-part.tsx +0 -0
  402. /package/{cli/registry → registry}/chat/browser-action-part.tsx +0 -0
  403. /package/{cli/registry → registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
  404. /package/{cli/registry → registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
  405. /package/{cli/registry → registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
  406. /package/{cli/registry → registry}/chat/chat-input/compound.tsx +0 -0
  407. /package/{cli/registry → registry}/chat/chat-input/context.tsx +0 -0
  408. /package/{cli/registry → registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
  409. /package/{cli/registry → registry}/chat/chat-input/index.tsx +0 -0
  410. /package/{cli/registry → registry}/chat/chat-input/types.ts +0 -0
  411. /package/{cli/registry → registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
  412. /package/{cli/registry → registry}/chat/code-block-part.tsx +0 -0
  413. /package/{cli/registry → registry}/chat/file-attachment.tsx +0 -0
  414. /package/{cli/registry → registry}/chat/file-card.tsx +0 -0
  415. /package/{cli/registry → registry}/chat/file-review-part.tsx +0 -0
  416. /package/{cli/registry → registry}/chat/folder-button.tsx +0 -0
  417. /package/{cli/registry → registry}/chat/generated-images-grid.tsx +0 -0
  418. /package/{cli/registry → registry}/chat/generation-status-bar.tsx +0 -0
  419. /package/{cli/registry → registry}/chat/hint-banner.tsx +0 -0
  420. /package/{cli/registry → registry}/chat/image-attachment.tsx +0 -0
  421. /package/{cli/registry → registry}/chat/image-generating.tsx +0 -0
  422. /package/{cli/registry → registry}/chat/mermaid-part.tsx +0 -0
  423. /package/{cli/registry → registry}/chat/permission-card.tsx +0 -0
  424. /package/{cli/registry → registry}/chat/plan-part.tsx +0 -0
  425. /package/{cli/registry → registry}/chat/queue-indicator.tsx +0 -0
  426. /package/{cli/registry → registry}/chat/reasoning-step/compound.tsx +0 -0
  427. /package/{cli/registry → registry}/chat/reasoning-step/context.tsx +0 -0
  428. /package/{cli/registry → registry}/chat/reasoning-step/index.tsx +0 -0
  429. /package/{cli/registry → registry}/chat/reasoning-step/types.ts +0 -0
  430. /package/{cli/registry → registry}/chat/related-prompts.tsx +0 -0
  431. /package/{cli/registry → registry}/chat/response/compound.tsx +0 -0
  432. /package/{cli/registry → registry}/chat/response/context.tsx +0 -0
  433. /package/{cli/registry → registry}/chat/response/index.tsx +0 -0
  434. /package/{cli/registry → registry}/chat/response/types.ts +0 -0
  435. /package/{cli/registry → registry}/chat/send-button.tsx +0 -0
  436. /package/{cli/registry → registry}/chat/streaming-markdown-block.tsx +0 -0
  437. /package/{cli/registry → registry}/chat/task-part.tsx +0 -0
  438. /package/{cli/registry → registry}/chat/terminal-code-block-part.tsx +0 -0
  439. /package/{cli/registry → registry}/chat/thinking-indicator.tsx +0 -0
  440. /package/{cli/registry → registry}/chat/user-message.tsx +0 -0
  441. /package/{cli/registry → registry}/chat/user-question/UserQuestionCard.tsx +0 -0
  442. /package/{cli/registry → registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
  443. /package/{cli/registry → registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
  444. /package/{cli/registry → registry}/chat/user-question/compound.tsx +0 -0
  445. /package/{cli/registry → registry}/chat/user-question/context.tsx +0 -0
  446. /package/{cli/registry → registry}/chat/user-question/index.tsx +0 -0
  447. /package/{cli/registry → registry}/chat/user-question/types.ts +0 -0
  448. /package/{cli/registry → registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
  449. /package/{cli/registry → registry}/chat/user-question/useUserQuestionState.ts +0 -0
  450. /package/{cli/registry → registry}/chat/user-question-answer.tsx +0 -0
  451. /package/{cli/registry → registry}/lib/file-icon-maps.ts +0 -0
  452. /package/{cli/registry → registry}/lib/use-mermaid-render.ts +0 -0
  453. /package/{cli/registry → registry}/lib/utils.ts +0 -0
  454. /package/{cli/registry → registry}/tokens/index.css +0 -0
  455. /package/{cli/registry → registry}/tokens/scale/computed.css +0 -0
  456. /package/{cli/registry → registry}/tokens/scale/config.css +0 -0
  457. /package/{cli/registry → registry}/tokens/scale/index.css +0 -0
  458. /package/{cli/registry → registry}/tokens/scale/presets/compact.css +0 -0
  459. /package/{cli/registry → registry}/tokens/scale/presets/dense.css +0 -0
  460. /package/{cli/registry → registry}/tokens/scale/presets/sharp.css +0 -0
  461. /package/{cli/registry → registry}/tokens/scale/presets/soft.css +0 -0
  462. /package/{cli/registry → registry}/tokens/scale.css +0 -0
  463. /package/{cli/registry → registry}/tokens/scrollbar-utility.css +0 -0
  464. /package/{cli/registry → registry}/tokens/theme.css +0 -0
  465. /package/{cli/registry → registry}/tokens/themes/dark-parchment.css +0 -0
  466. /package/{cli/registry → registry}/tokens/themes/dark-qoder.css +0 -0
  467. /package/{cli/registry → registry}/tokens/themes/light-parchment.css +0 -0
  468. /package/{cli/registry → registry}/tokens/themes/light-qoder.css +0 -0
@@ -1,2670 +0,0 @@
1
- import { b0 as an, b1 as Wn, b2 as on, b3 as cn, b4 as un, b5 as ce, b6 as $n, aI as ae, g as On, s as Hn, q as Nn, p as Pn, a as Vn, b as zn, _ as d, c as _t, d as Zt, e as Rn, b7 as rt, l as Tt, k as qn, j as Zn, y as Bn, u as Xn } from "./mermaid.core-gFR0XUlD.js";
2
- import { b as Gn, t as He, c as jn, a as Qn, l as Jn } from "./linear-C2Q_PI9B.js";
3
- import { i as Kn } from "./init-DjUOC4st.js";
4
- function tr(t, e) {
5
- let n;
6
- if (e === void 0)
7
- for (const r of t)
8
- r != null && (n < r || n === void 0 && r >= r) && (n = r);
9
- else {
10
- let r = -1;
11
- for (let i of t)
12
- (i = e(i, ++r, t)) != null && (n < i || n === void 0 && i >= i) && (n = i);
13
- }
14
- return n;
15
- }
16
- function er(t, e) {
17
- let n;
18
- if (e === void 0)
19
- for (const r of t)
20
- r != null && (n > r || n === void 0 && r >= r) && (n = r);
21
- else {
22
- let r = -1;
23
- for (let i of t)
24
- (i = e(i, ++r, t)) != null && (n > i || n === void 0 && i >= i) && (n = i);
25
- }
26
- return n;
27
- }
28
- function nr(t) {
29
- return t;
30
- }
31
- var Xt = 1, ue = 2, Te = 3, Bt = 4, Ne = 1e-6;
32
- function rr(t) {
33
- return "translate(" + t + ",0)";
34
- }
35
- function ir(t) {
36
- return "translate(0," + t + ")";
37
- }
38
- function sr(t) {
39
- return (e) => +t(e);
40
- }
41
- function ar(t, e) {
42
- return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
43
- }
44
- function or() {
45
- return !this.__axis;
46
- }
47
- function ln(t, e) {
48
- var n = [], r = null, i = null, a = 6, c = 6, m = 3, Y = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, C = t === Xt || t === Bt ? -1 : 1, k = t === Bt || t === ue ? "x" : "y", L = t === Xt || t === Te ? rr : ir;
49
- function _(S) {
50
- var Z = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), A = i ?? (e.tickFormat ? e.tickFormat.apply(e, n) : nr), U = Math.max(a, 0) + m, I = e.range(), N = +I[0] + Y, W = +I[I.length - 1] + Y, q = (e.bandwidth ? ar : sr)(e.copy(), Y), j = S.selection ? S.selection() : S, p = j.selectAll(".domain").data([null]), g = j.selectAll(".tick").data(Z, e).order(), y = g.exit(), h = g.enter().append("g").attr("class", "tick"), D = g.select("line"), w = g.select("text");
51
- p = p.merge(p.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), g = g.merge(h), D = D.merge(h.append("line").attr("stroke", "currentColor").attr(k + "2", C * a)), w = w.merge(h.append("text").attr("fill", "currentColor").attr(k, C * U).attr("dy", t === Xt ? "0em" : t === Te ? "0.71em" : "0.32em")), S !== j && (p = p.transition(S), g = g.transition(S), D = D.transition(S), w = w.transition(S), y = y.transition(S).attr("opacity", Ne).attr("transform", function(T) {
52
- return isFinite(T = q(T)) ? L(T + Y) : this.getAttribute("transform");
53
- }), h.attr("opacity", Ne).attr("transform", function(T) {
54
- var v = this.parentNode.__axis;
55
- return L((v && isFinite(v = v(T)) ? v : q(T)) + Y);
56
- })), y.remove(), p.attr("d", t === Bt || t === ue ? c ? "M" + C * c + "," + N + "H" + Y + "V" + W + "H" + C * c : "M" + Y + "," + N + "V" + W : c ? "M" + N + "," + C * c + "V" + Y + "H" + W + "V" + C * c : "M" + N + "," + Y + "H" + W), g.attr("opacity", 1).attr("transform", function(T) {
57
- return L(q(T) + Y);
58
- }), D.attr(k + "2", C * a), w.attr(k, C * U).text(A), j.filter(or).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === ue ? "start" : t === Bt ? "end" : "middle"), j.each(function() {
59
- this.__axis = q;
60
- });
61
- }
62
- return _.scale = function(S) {
63
- return arguments.length ? (e = S, _) : e;
64
- }, _.ticks = function() {
65
- return n = Array.from(arguments), _;
66
- }, _.tickArguments = function(S) {
67
- return arguments.length ? (n = S == null ? [] : Array.from(S), _) : n.slice();
68
- }, _.tickValues = function(S) {
69
- return arguments.length ? (r = S == null ? null : Array.from(S), _) : r && r.slice();
70
- }, _.tickFormat = function(S) {
71
- return arguments.length ? (i = S, _) : i;
72
- }, _.tickSize = function(S) {
73
- return arguments.length ? (a = c = +S, _) : a;
74
- }, _.tickSizeInner = function(S) {
75
- return arguments.length ? (a = +S, _) : a;
76
- }, _.tickSizeOuter = function(S) {
77
- return arguments.length ? (c = +S, _) : c;
78
- }, _.tickPadding = function(S) {
79
- return arguments.length ? (m = +S, _) : m;
80
- }, _.offset = function(S) {
81
- return arguments.length ? (Y = +S, _) : Y;
82
- }, _;
83
- }
84
- function cr(t) {
85
- return ln(Xt, t);
86
- }
87
- function ur(t) {
88
- return ln(Te, t);
89
- }
90
- const lr = Math.PI / 180, fr = 180 / Math.PI, ee = 18, fn = 0.96422, dn = 1, hn = 0.82521, mn = 4 / 29, Ft = 6 / 29, gn = 3 * Ft * Ft, dr = Ft * Ft * Ft;
91
- function yn(t) {
92
- if (t instanceof ft) return new ft(t.l, t.a, t.b, t.opacity);
93
- if (t instanceof ht) return kn(t);
94
- t instanceof an || (t = Wn(t));
95
- var e = he(t.r), n = he(t.g), r = he(t.b), i = le((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / dn), a, c;
96
- return e === n && n === r ? a = c = i : (a = le((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / fn), c = le((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / hn)), new ft(116 * i - 16, 500 * (a - i), 200 * (i - c), t.opacity);
97
- }
98
- function hr(t, e, n, r) {
99
- return arguments.length === 1 ? yn(t) : new ft(t, e, n, r ?? 1);
100
- }
101
- function ft(t, e, n, r) {
102
- this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
103
- }
104
- on(ft, hr, cn(un, {
105
- brighter(t) {
106
- return new ft(this.l + ee * (t ?? 1), this.a, this.b, this.opacity);
107
- },
108
- darker(t) {
109
- return new ft(this.l - ee * (t ?? 1), this.a, this.b, this.opacity);
110
- },
111
- rgb() {
112
- var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
113
- return e = fn * fe(e), t = dn * fe(t), n = hn * fe(n), new an(
114
- de(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
115
- de(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
116
- de(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
117
- this.opacity
118
- );
119
- }
120
- }));
121
- function le(t) {
122
- return t > dr ? Math.pow(t, 1 / 3) : t / gn + mn;
123
- }
124
- function fe(t) {
125
- return t > Ft ? t * t * t : gn * (t - mn);
126
- }
127
- function de(t) {
128
- return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
129
- }
130
- function he(t) {
131
- return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
132
- }
133
- function mr(t) {
134
- if (t instanceof ht) return new ht(t.h, t.c, t.l, t.opacity);
135
- if (t instanceof ft || (t = yn(t)), t.a === 0 && t.b === 0) return new ht(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
136
- var e = Math.atan2(t.b, t.a) * fr;
137
- return new ht(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
138
- }
139
- function be(t, e, n, r) {
140
- return arguments.length === 1 ? mr(t) : new ht(t, e, n, r ?? 1);
141
- }
142
- function ht(t, e, n, r) {
143
- this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
144
- }
145
- function kn(t) {
146
- if (isNaN(t.h)) return new ft(t.l, 0, 0, t.opacity);
147
- var e = t.h * lr;
148
- return new ft(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
149
- }
150
- on(ht, be, cn(un, {
151
- brighter(t) {
152
- return new ht(this.h, this.c, this.l + ee * (t ?? 1), this.opacity);
153
- },
154
- darker(t) {
155
- return new ht(this.h, this.c, this.l - ee * (t ?? 1), this.opacity);
156
- },
157
- rgb() {
158
- return kn(this).rgb();
159
- }
160
- }));
161
- function gr(t) {
162
- return function(e, n) {
163
- var r = t((e = be(e)).h, (n = be(n)).h), i = ce(e.c, n.c), a = ce(e.l, n.l), c = ce(e.opacity, n.opacity);
164
- return function(m) {
165
- return e.h = r(m), e.c = i(m), e.l = a(m), e.opacity = c(m), e + "";
166
- };
167
- };
168
- }
169
- const yr = gr($n);
170
- function kr(t, e) {
171
- t = t.slice();
172
- var n = 0, r = t.length - 1, i = t[n], a = t[r], c;
173
- return a < i && (c = n, n = r, r = c, c = i, i = a, a = c), t[n] = e.floor(i), t[r] = e.ceil(a), t;
174
- }
175
- const me = /* @__PURE__ */ new Date(), ge = /* @__PURE__ */ new Date();
176
- function et(t, e, n, r) {
177
- function i(a) {
178
- return t(a = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+a)), a;
179
- }
180
- return i.floor = (a) => (t(a = /* @__PURE__ */ new Date(+a)), a), i.ceil = (a) => (t(a = new Date(a - 1)), e(a, 1), t(a), a), i.round = (a) => {
181
- const c = i(a), m = i.ceil(a);
182
- return a - c < m - a ? c : m;
183
- }, i.offset = (a, c) => (e(a = /* @__PURE__ */ new Date(+a), c == null ? 1 : Math.floor(c)), a), i.range = (a, c, m) => {
184
- const Y = [];
185
- if (a = i.ceil(a), m = m == null ? 1 : Math.floor(m), !(a < c) || !(m > 0)) return Y;
186
- let C;
187
- do
188
- Y.push(C = /* @__PURE__ */ new Date(+a)), e(a, m), t(a);
189
- while (C < a && a < c);
190
- return Y;
191
- }, i.filter = (a) => et((c) => {
192
- if (c >= c) for (; t(c), !a(c); ) c.setTime(c - 1);
193
- }, (c, m) => {
194
- if (c >= c)
195
- if (m < 0) for (; ++m <= 0; )
196
- for (; e(c, -1), !a(c); )
197
- ;
198
- else for (; --m >= 0; )
199
- for (; e(c, 1), !a(c); )
200
- ;
201
- }), n && (i.count = (a, c) => (me.setTime(+a), ge.setTime(+c), t(me), t(ge), Math.floor(n(me, ge))), i.every = (a) => (a = Math.floor(a), !isFinite(a) || !(a > 0) ? null : a > 1 ? i.filter(r ? (c) => r(c) % a === 0 : (c) => i.count(0, c) % a === 0) : i)), i;
202
- }
203
- const Ut = et(() => {
204
- }, (t, e) => {
205
- t.setTime(+t + e);
206
- }, (t, e) => e - t);
207
- Ut.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? et((e) => {
208
- e.setTime(Math.floor(e / t) * t);
209
- }, (e, n) => {
210
- e.setTime(+e + n * t);
211
- }, (e, n) => (n - e) / t) : Ut);
212
- Ut.range;
213
- const mt = 1e3, ct = mt * 60, gt = ct * 60, yt = gt * 24, Ce = yt * 7, Pe = yt * 30, ye = yt * 365, vt = et((t) => {
214
- t.setTime(t - t.getMilliseconds());
215
- }, (t, e) => {
216
- t.setTime(+t + e * mt);
217
- }, (t, e) => (e - t) / mt, (t) => t.getUTCSeconds());
218
- vt.range;
219
- const $t = et((t) => {
220
- t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt);
221
- }, (t, e) => {
222
- t.setTime(+t + e * ct);
223
- }, (t, e) => (e - t) / ct, (t) => t.getMinutes());
224
- $t.range;
225
- const pr = et((t) => {
226
- t.setUTCSeconds(0, 0);
227
- }, (t, e) => {
228
- t.setTime(+t + e * ct);
229
- }, (t, e) => (e - t) / ct, (t) => t.getUTCMinutes());
230
- pr.range;
231
- const Ot = et((t) => {
232
- t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt - t.getMinutes() * ct);
233
- }, (t, e) => {
234
- t.setTime(+t + e * gt);
235
- }, (t, e) => (e - t) / gt, (t) => t.getHours());
236
- Ot.range;
237
- const vr = et((t) => {
238
- t.setUTCMinutes(0, 0, 0);
239
- }, (t, e) => {
240
- t.setTime(+t + e * gt);
241
- }, (t, e) => (e - t) / gt, (t) => t.getUTCHours());
242
- vr.range;
243
- const bt = et(
244
- (t) => t.setHours(0, 0, 0, 0),
245
- (t, e) => t.setDate(t.getDate() + e),
246
- (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ct) / yt,
247
- (t) => t.getDate() - 1
248
- );
249
- bt.range;
250
- const Se = et((t) => {
251
- t.setUTCHours(0, 0, 0, 0);
252
- }, (t, e) => {
253
- t.setUTCDate(t.getUTCDate() + e);
254
- }, (t, e) => (e - t) / yt, (t) => t.getUTCDate() - 1);
255
- Se.range;
256
- const Tr = et((t) => {
257
- t.setUTCHours(0, 0, 0, 0);
258
- }, (t, e) => {
259
- t.setUTCDate(t.getUTCDate() + e);
260
- }, (t, e) => (e - t) / yt, (t) => Math.floor(t / yt));
261
- Tr.range;
262
- function Dt(t) {
263
- return et((e) => {
264
- e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
265
- }, (e, n) => {
266
- e.setDate(e.getDate() + n * 7);
267
- }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ct) / Ce);
268
- }
269
- const Pt = Dt(0), Ht = Dt(1), pn = Dt(2), vn = Dt(3), xt = Dt(4), Tn = Dt(5), bn = Dt(6);
270
- Pt.range;
271
- Ht.range;
272
- pn.range;
273
- vn.range;
274
- xt.range;
275
- Tn.range;
276
- bn.range;
277
- function Mt(t) {
278
- return et((e) => {
279
- e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
280
- }, (e, n) => {
281
- e.setUTCDate(e.getUTCDate() + n * 7);
282
- }, (e, n) => (n - e) / Ce);
283
- }
284
- const xn = Mt(0), ne = Mt(1), br = Mt(2), xr = Mt(3), Et = Mt(4), wr = Mt(5), Dr = Mt(6);
285
- xn.range;
286
- ne.range;
287
- br.range;
288
- xr.range;
289
- Et.range;
290
- wr.range;
291
- Dr.range;
292
- const Nt = et((t) => {
293
- t.setDate(1), t.setHours(0, 0, 0, 0);
294
- }, (t, e) => {
295
- t.setMonth(t.getMonth() + e);
296
- }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
297
- Nt.range;
298
- const Mr = et((t) => {
299
- t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
300
- }, (t, e) => {
301
- t.setUTCMonth(t.getUTCMonth() + e);
302
- }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
303
- Mr.range;
304
- const kt = et((t) => {
305
- t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
306
- }, (t, e) => {
307
- t.setFullYear(t.getFullYear() + e);
308
- }, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
309
- kt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et((e) => {
310
- e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
311
- }, (e, n) => {
312
- e.setFullYear(e.getFullYear() + n * t);
313
- });
314
- kt.range;
315
- const wt = et((t) => {
316
- t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
317
- }, (t, e) => {
318
- t.setUTCFullYear(t.getUTCFullYear() + e);
319
- }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
320
- wt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et((e) => {
321
- e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
322
- }, (e, n) => {
323
- e.setUTCFullYear(e.getUTCFullYear() + n * t);
324
- });
325
- wt.range;
326
- function Cr(t, e, n, r, i, a) {
327
- const c = [
328
- [vt, 1, mt],
329
- [vt, 5, 5 * mt],
330
- [vt, 15, 15 * mt],
331
- [vt, 30, 30 * mt],
332
- [a, 1, ct],
333
- [a, 5, 5 * ct],
334
- [a, 15, 15 * ct],
335
- [a, 30, 30 * ct],
336
- [i, 1, gt],
337
- [i, 3, 3 * gt],
338
- [i, 6, 6 * gt],
339
- [i, 12, 12 * gt],
340
- [r, 1, yt],
341
- [r, 2, 2 * yt],
342
- [n, 1, Ce],
343
- [e, 1, Pe],
344
- [e, 3, 3 * Pe],
345
- [t, 1, ye]
346
- ];
347
- function m(C, k, L) {
348
- const _ = k < C;
349
- _ && ([C, k] = [k, C]);
350
- const S = L && typeof L.range == "function" ? L : Y(C, k, L), Z = S ? S.range(C, +k + 1) : [];
351
- return _ ? Z.reverse() : Z;
352
- }
353
- function Y(C, k, L) {
354
- const _ = Math.abs(k - C) / L, S = Gn(([, , U]) => U).right(c, _);
355
- if (S === c.length) return t.every(He(C / ye, k / ye, L));
356
- if (S === 0) return Ut.every(Math.max(He(C, k, L), 1));
357
- const [Z, A] = c[_ / c[S - 1][2] < c[S][2] / _ ? S - 1 : S];
358
- return Z.every(A);
359
- }
360
- return [m, Y];
361
- }
362
- const [Sr, _r] = Cr(kt, Nt, Pt, bt, Ot, $t);
363
- function ke(t) {
364
- if (0 <= t.y && t.y < 100) {
365
- var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
366
- return e.setFullYear(t.y), e;
367
- }
368
- return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
369
- }
370
- function pe(t) {
371
- if (0 <= t.y && t.y < 100) {
372
- var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
373
- return e.setUTCFullYear(t.y), e;
374
- }
375
- return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
376
- }
377
- function Lt(t, e, n) {
378
- return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
379
- }
380
- function Fr(t) {
381
- var e = t.dateTime, n = t.date, r = t.time, i = t.periods, a = t.days, c = t.shortDays, m = t.months, Y = t.shortMonths, C = At(i), k = Wt(i), L = At(a), _ = Wt(a), S = At(c), Z = Wt(c), A = At(m), U = Wt(m), I = At(Y), N = Wt(Y), W = {
382
- a: x,
383
- A: F,
384
- b: o,
385
- B: X,
386
- c: null,
387
- d: Be,
388
- e: Be,
389
- f: Jr,
390
- g: ci,
391
- G: li,
392
- H: Gr,
393
- I: jr,
394
- j: Qr,
395
- L: wn,
396
- m: Kr,
397
- M: ti,
398
- p: s,
399
- q: E,
400
- Q: je,
401
- s: Qe,
402
- S: ei,
403
- u: ni,
404
- U: ri,
405
- V: ii,
406
- w: si,
407
- W: ai,
408
- x: null,
409
- X: null,
410
- y: oi,
411
- Y: ui,
412
- Z: fi,
413
- "%": Ge
414
- }, q = {
415
- a: R,
416
- A: z,
417
- b: P,
418
- B: K,
419
- c: null,
420
- d: Xe,
421
- e: Xe,
422
- f: gi,
423
- g: Mi,
424
- G: Si,
425
- H: di,
426
- I: hi,
427
- j: mi,
428
- L: Mn,
429
- m: yi,
430
- M: ki,
431
- p: O,
432
- q: st,
433
- Q: je,
434
- s: Qe,
435
- S: pi,
436
- u: vi,
437
- U: Ti,
438
- V: bi,
439
- w: xi,
440
- W: wi,
441
- x: null,
442
- X: null,
443
- y: Di,
444
- Y: Ci,
445
- Z: _i,
446
- "%": Ge
447
- }, j = {
448
- a: D,
449
- A: w,
450
- b: T,
451
- B: v,
452
- c: u,
453
- d: qe,
454
- e: qe,
455
- f: qr,
456
- g: Re,
457
- G: ze,
458
- H: Ze,
459
- I: Ze,
460
- j: Pr,
461
- L: Rr,
462
- m: Nr,
463
- M: Vr,
464
- p: h,
465
- q: Hr,
466
- Q: Br,
467
- s: Xr,
468
- S: zr,
469
- u: Lr,
470
- U: Ar,
471
- V: Wr,
472
- w: Ir,
473
- W: $r,
474
- x: f,
475
- X: b,
476
- y: Re,
477
- Y: ze,
478
- Z: Or,
479
- "%": Zr
480
- };
481
- W.x = p(n, W), W.X = p(r, W), W.c = p(e, W), q.x = p(n, q), q.X = p(r, q), q.c = p(e, q);
482
- function p(M, H) {
483
- return function(V) {
484
- var l = [], J = -1, $ = 0, Q = M.length, G, it, at;
485
- for (V instanceof Date || (V = /* @__PURE__ */ new Date(+V)); ++J < Q; )
486
- M.charCodeAt(J) === 37 && (l.push(M.slice($, J)), (it = Ve[G = M.charAt(++J)]) != null ? G = M.charAt(++J) : it = G === "e" ? " " : "0", (at = H[G]) && (G = at(V, it)), l.push(G), $ = J + 1);
487
- return l.push(M.slice($, J)), l.join("");
488
- };
489
- }
490
- function g(M, H) {
491
- return function(V) {
492
- var l = Lt(1900, void 0, 1), J = y(l, M, V += "", 0), $, Q;
493
- if (J != V.length) return null;
494
- if ("Q" in l) return new Date(l.Q);
495
- if ("s" in l) return new Date(l.s * 1e3 + ("L" in l ? l.L : 0));
496
- if (H && !("Z" in l) && (l.Z = 0), "p" in l && (l.H = l.H % 12 + l.p * 12), l.m === void 0 && (l.m = "q" in l ? l.q : 0), "V" in l) {
497
- if (l.V < 1 || l.V > 53) return null;
498
- "w" in l || (l.w = 1), "Z" in l ? ($ = pe(Lt(l.y, 0, 1)), Q = $.getUTCDay(), $ = Q > 4 || Q === 0 ? ne.ceil($) : ne($), $ = Se.offset($, (l.V - 1) * 7), l.y = $.getUTCFullYear(), l.m = $.getUTCMonth(), l.d = $.getUTCDate() + (l.w + 6) % 7) : ($ = ke(Lt(l.y, 0, 1)), Q = $.getDay(), $ = Q > 4 || Q === 0 ? Ht.ceil($) : Ht($), $ = bt.offset($, (l.V - 1) * 7), l.y = $.getFullYear(), l.m = $.getMonth(), l.d = $.getDate() + (l.w + 6) % 7);
499
- } else ("W" in l || "U" in l) && ("w" in l || (l.w = "u" in l ? l.u % 7 : "W" in l ? 1 : 0), Q = "Z" in l ? pe(Lt(l.y, 0, 1)).getUTCDay() : ke(Lt(l.y, 0, 1)).getDay(), l.m = 0, l.d = "W" in l ? (l.w + 6) % 7 + l.W * 7 - (Q + 5) % 7 : l.w + l.U * 7 - (Q + 6) % 7);
500
- return "Z" in l ? (l.H += l.Z / 100 | 0, l.M += l.Z % 100, pe(l)) : ke(l);
501
- };
502
- }
503
- function y(M, H, V, l) {
504
- for (var J = 0, $ = H.length, Q = V.length, G, it; J < $; ) {
505
- if (l >= Q) return -1;
506
- if (G = H.charCodeAt(J++), G === 37) {
507
- if (G = H.charAt(J++), it = j[G in Ve ? H.charAt(J++) : G], !it || (l = it(M, V, l)) < 0) return -1;
508
- } else if (G != V.charCodeAt(l++))
509
- return -1;
510
- }
511
- return l;
512
- }
513
- function h(M, H, V) {
514
- var l = C.exec(H.slice(V));
515
- return l ? (M.p = k.get(l[0].toLowerCase()), V + l[0].length) : -1;
516
- }
517
- function D(M, H, V) {
518
- var l = S.exec(H.slice(V));
519
- return l ? (M.w = Z.get(l[0].toLowerCase()), V + l[0].length) : -1;
520
- }
521
- function w(M, H, V) {
522
- var l = L.exec(H.slice(V));
523
- return l ? (M.w = _.get(l[0].toLowerCase()), V + l[0].length) : -1;
524
- }
525
- function T(M, H, V) {
526
- var l = I.exec(H.slice(V));
527
- return l ? (M.m = N.get(l[0].toLowerCase()), V + l[0].length) : -1;
528
- }
529
- function v(M, H, V) {
530
- var l = A.exec(H.slice(V));
531
- return l ? (M.m = U.get(l[0].toLowerCase()), V + l[0].length) : -1;
532
- }
533
- function u(M, H, V) {
534
- return y(M, e, H, V);
535
- }
536
- function f(M, H, V) {
537
- return y(M, n, H, V);
538
- }
539
- function b(M, H, V) {
540
- return y(M, r, H, V);
541
- }
542
- function x(M) {
543
- return c[M.getDay()];
544
- }
545
- function F(M) {
546
- return a[M.getDay()];
547
- }
548
- function o(M) {
549
- return Y[M.getMonth()];
550
- }
551
- function X(M) {
552
- return m[M.getMonth()];
553
- }
554
- function s(M) {
555
- return i[+(M.getHours() >= 12)];
556
- }
557
- function E(M) {
558
- return 1 + ~~(M.getMonth() / 3);
559
- }
560
- function R(M) {
561
- return c[M.getUTCDay()];
562
- }
563
- function z(M) {
564
- return a[M.getUTCDay()];
565
- }
566
- function P(M) {
567
- return Y[M.getUTCMonth()];
568
- }
569
- function K(M) {
570
- return m[M.getUTCMonth()];
571
- }
572
- function O(M) {
573
- return i[+(M.getUTCHours() >= 12)];
574
- }
575
- function st(M) {
576
- return 1 + ~~(M.getUTCMonth() / 3);
577
- }
578
- return {
579
- format: function(M) {
580
- var H = p(M += "", W);
581
- return H.toString = function() {
582
- return M;
583
- }, H;
584
- },
585
- parse: function(M) {
586
- var H = g(M += "", !1);
587
- return H.toString = function() {
588
- return M;
589
- }, H;
590
- },
591
- utcFormat: function(M) {
592
- var H = p(M += "", q);
593
- return H.toString = function() {
594
- return M;
595
- }, H;
596
- },
597
- utcParse: function(M) {
598
- var H = g(M += "", !0);
599
- return H.toString = function() {
600
- return M;
601
- }, H;
602
- }
603
- };
604
- }
605
- var Ve = { "-": "", _: " ", 0: "0" }, nt = /^\s*\d+/, Yr = /^%/, Ur = /[\\^$*+?|[\]().{}]/g;
606
- function B(t, e, n) {
607
- var r = t < 0 ? "-" : "", i = (r ? -t : t) + "", a = i.length;
608
- return r + (a < n ? new Array(n - a + 1).join(e) + i : i);
609
- }
610
- function Er(t) {
611
- return t.replace(Ur, "\\$&");
612
- }
613
- function At(t) {
614
- return new RegExp("^(?:" + t.map(Er).join("|") + ")", "i");
615
- }
616
- function Wt(t) {
617
- return new Map(t.map((e, n) => [e.toLowerCase(), n]));
618
- }
619
- function Ir(t, e, n) {
620
- var r = nt.exec(e.slice(n, n + 1));
621
- return r ? (t.w = +r[0], n + r[0].length) : -1;
622
- }
623
- function Lr(t, e, n) {
624
- var r = nt.exec(e.slice(n, n + 1));
625
- return r ? (t.u = +r[0], n + r[0].length) : -1;
626
- }
627
- function Ar(t, e, n) {
628
- var r = nt.exec(e.slice(n, n + 2));
629
- return r ? (t.U = +r[0], n + r[0].length) : -1;
630
- }
631
- function Wr(t, e, n) {
632
- var r = nt.exec(e.slice(n, n + 2));
633
- return r ? (t.V = +r[0], n + r[0].length) : -1;
634
- }
635
- function $r(t, e, n) {
636
- var r = nt.exec(e.slice(n, n + 2));
637
- return r ? (t.W = +r[0], n + r[0].length) : -1;
638
- }
639
- function ze(t, e, n) {
640
- var r = nt.exec(e.slice(n, n + 4));
641
- return r ? (t.y = +r[0], n + r[0].length) : -1;
642
- }
643
- function Re(t, e, n) {
644
- var r = nt.exec(e.slice(n, n + 2));
645
- return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
646
- }
647
- function Or(t, e, n) {
648
- var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
649
- return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
650
- }
651
- function Hr(t, e, n) {
652
- var r = nt.exec(e.slice(n, n + 1));
653
- return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
654
- }
655
- function Nr(t, e, n) {
656
- var r = nt.exec(e.slice(n, n + 2));
657
- return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
658
- }
659
- function qe(t, e, n) {
660
- var r = nt.exec(e.slice(n, n + 2));
661
- return r ? (t.d = +r[0], n + r[0].length) : -1;
662
- }
663
- function Pr(t, e, n) {
664
- var r = nt.exec(e.slice(n, n + 3));
665
- return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
666
- }
667
- function Ze(t, e, n) {
668
- var r = nt.exec(e.slice(n, n + 2));
669
- return r ? (t.H = +r[0], n + r[0].length) : -1;
670
- }
671
- function Vr(t, e, n) {
672
- var r = nt.exec(e.slice(n, n + 2));
673
- return r ? (t.M = +r[0], n + r[0].length) : -1;
674
- }
675
- function zr(t, e, n) {
676
- var r = nt.exec(e.slice(n, n + 2));
677
- return r ? (t.S = +r[0], n + r[0].length) : -1;
678
- }
679
- function Rr(t, e, n) {
680
- var r = nt.exec(e.slice(n, n + 3));
681
- return r ? (t.L = +r[0], n + r[0].length) : -1;
682
- }
683
- function qr(t, e, n) {
684
- var r = nt.exec(e.slice(n, n + 6));
685
- return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
686
- }
687
- function Zr(t, e, n) {
688
- var r = Yr.exec(e.slice(n, n + 1));
689
- return r ? n + r[0].length : -1;
690
- }
691
- function Br(t, e, n) {
692
- var r = nt.exec(e.slice(n));
693
- return r ? (t.Q = +r[0], n + r[0].length) : -1;
694
- }
695
- function Xr(t, e, n) {
696
- var r = nt.exec(e.slice(n));
697
- return r ? (t.s = +r[0], n + r[0].length) : -1;
698
- }
699
- function Be(t, e) {
700
- return B(t.getDate(), e, 2);
701
- }
702
- function Gr(t, e) {
703
- return B(t.getHours(), e, 2);
704
- }
705
- function jr(t, e) {
706
- return B(t.getHours() % 12 || 12, e, 2);
707
- }
708
- function Qr(t, e) {
709
- return B(1 + bt.count(kt(t), t), e, 3);
710
- }
711
- function wn(t, e) {
712
- return B(t.getMilliseconds(), e, 3);
713
- }
714
- function Jr(t, e) {
715
- return wn(t, e) + "000";
716
- }
717
- function Kr(t, e) {
718
- return B(t.getMonth() + 1, e, 2);
719
- }
720
- function ti(t, e) {
721
- return B(t.getMinutes(), e, 2);
722
- }
723
- function ei(t, e) {
724
- return B(t.getSeconds(), e, 2);
725
- }
726
- function ni(t) {
727
- var e = t.getDay();
728
- return e === 0 ? 7 : e;
729
- }
730
- function ri(t, e) {
731
- return B(Pt.count(kt(t) - 1, t), e, 2);
732
- }
733
- function Dn(t) {
734
- var e = t.getDay();
735
- return e >= 4 || e === 0 ? xt(t) : xt.ceil(t);
736
- }
737
- function ii(t, e) {
738
- return t = Dn(t), B(xt.count(kt(t), t) + (kt(t).getDay() === 4), e, 2);
739
- }
740
- function si(t) {
741
- return t.getDay();
742
- }
743
- function ai(t, e) {
744
- return B(Ht.count(kt(t) - 1, t), e, 2);
745
- }
746
- function oi(t, e) {
747
- return B(t.getFullYear() % 100, e, 2);
748
- }
749
- function ci(t, e) {
750
- return t = Dn(t), B(t.getFullYear() % 100, e, 2);
751
- }
752
- function ui(t, e) {
753
- return B(t.getFullYear() % 1e4, e, 4);
754
- }
755
- function li(t, e) {
756
- var n = t.getDay();
757
- return t = n >= 4 || n === 0 ? xt(t) : xt.ceil(t), B(t.getFullYear() % 1e4, e, 4);
758
- }
759
- function fi(t) {
760
- var e = t.getTimezoneOffset();
761
- return (e > 0 ? "-" : (e *= -1, "+")) + B(e / 60 | 0, "0", 2) + B(e % 60, "0", 2);
762
- }
763
- function Xe(t, e) {
764
- return B(t.getUTCDate(), e, 2);
765
- }
766
- function di(t, e) {
767
- return B(t.getUTCHours(), e, 2);
768
- }
769
- function hi(t, e) {
770
- return B(t.getUTCHours() % 12 || 12, e, 2);
771
- }
772
- function mi(t, e) {
773
- return B(1 + Se.count(wt(t), t), e, 3);
774
- }
775
- function Mn(t, e) {
776
- return B(t.getUTCMilliseconds(), e, 3);
777
- }
778
- function gi(t, e) {
779
- return Mn(t, e) + "000";
780
- }
781
- function yi(t, e) {
782
- return B(t.getUTCMonth() + 1, e, 2);
783
- }
784
- function ki(t, e) {
785
- return B(t.getUTCMinutes(), e, 2);
786
- }
787
- function pi(t, e) {
788
- return B(t.getUTCSeconds(), e, 2);
789
- }
790
- function vi(t) {
791
- var e = t.getUTCDay();
792
- return e === 0 ? 7 : e;
793
- }
794
- function Ti(t, e) {
795
- return B(xn.count(wt(t) - 1, t), e, 2);
796
- }
797
- function Cn(t) {
798
- var e = t.getUTCDay();
799
- return e >= 4 || e === 0 ? Et(t) : Et.ceil(t);
800
- }
801
- function bi(t, e) {
802
- return t = Cn(t), B(Et.count(wt(t), t) + (wt(t).getUTCDay() === 4), e, 2);
803
- }
804
- function xi(t) {
805
- return t.getUTCDay();
806
- }
807
- function wi(t, e) {
808
- return B(ne.count(wt(t) - 1, t), e, 2);
809
- }
810
- function Di(t, e) {
811
- return B(t.getUTCFullYear() % 100, e, 2);
812
- }
813
- function Mi(t, e) {
814
- return t = Cn(t), B(t.getUTCFullYear() % 100, e, 2);
815
- }
816
- function Ci(t, e) {
817
- return B(t.getUTCFullYear() % 1e4, e, 4);
818
- }
819
- function Si(t, e) {
820
- var n = t.getUTCDay();
821
- return t = n >= 4 || n === 0 ? Et(t) : Et.ceil(t), B(t.getUTCFullYear() % 1e4, e, 4);
822
- }
823
- function _i() {
824
- return "+0000";
825
- }
826
- function Ge() {
827
- return "%";
828
- }
829
- function je(t) {
830
- return +t;
831
- }
832
- function Qe(t) {
833
- return Math.floor(+t / 1e3);
834
- }
835
- var St, re;
836
- Fi({
837
- dateTime: "%x, %X",
838
- date: "%-m/%-d/%Y",
839
- time: "%-I:%M:%S %p",
840
- periods: ["AM", "PM"],
841
- days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
842
- shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
843
- months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
844
- shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
845
- });
846
- function Fi(t) {
847
- return St = Fr(t), re = St.format, St.parse, St.utcFormat, St.utcParse, St;
848
- }
849
- function Yi(t) {
850
- return new Date(t);
851
- }
852
- function Ui(t) {
853
- return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
854
- }
855
- function Sn(t, e, n, r, i, a, c, m, Y, C) {
856
- var k = jn(), L = k.invert, _ = k.domain, S = C(".%L"), Z = C(":%S"), A = C("%I:%M"), U = C("%I %p"), I = C("%a %d"), N = C("%b %d"), W = C("%B"), q = C("%Y");
857
- function j(p) {
858
- return (Y(p) < p ? S : m(p) < p ? Z : c(p) < p ? A : a(p) < p ? U : r(p) < p ? i(p) < p ? I : N : n(p) < p ? W : q)(p);
859
- }
860
- return k.invert = function(p) {
861
- return new Date(L(p));
862
- }, k.domain = function(p) {
863
- return arguments.length ? _(Array.from(p, Ui)) : _().map(Yi);
864
- }, k.ticks = function(p) {
865
- var g = _();
866
- return t(g[0], g[g.length - 1], p ?? 10);
867
- }, k.tickFormat = function(p, g) {
868
- return g == null ? j : C(g);
869
- }, k.nice = function(p) {
870
- var g = _();
871
- return (!p || typeof p.range != "function") && (p = e(g[0], g[g.length - 1], p ?? 10)), p ? _(kr(g, p)) : k;
872
- }, k.copy = function() {
873
- return Qn(k, Sn(t, e, n, r, i, a, c, m, Y, C));
874
- }, k;
875
- }
876
- function Ei() {
877
- return Kn.apply(Sn(Sr, _r, kt, Nt, Pt, bt, Ot, $t, vt, re).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
878
- }
879
- var Gt = { exports: {} }, Ii = Gt.exports, Je;
880
- function Li() {
881
- return Je || (Je = 1, (function(t, e) {
882
- (function(n, r) {
883
- t.exports = r();
884
- })(Ii, (function() {
885
- var n = "day";
886
- return function(r, i, a) {
887
- var c = function(C) {
888
- return C.add(4 - C.isoWeekday(), n);
889
- }, m = i.prototype;
890
- m.isoWeekYear = function() {
891
- return c(this).year();
892
- }, m.isoWeek = function(C) {
893
- if (!this.$utils().u(C)) return this.add(7 * (C - this.isoWeek()), n);
894
- var k, L, _, S, Z = c(this), A = (k = this.isoWeekYear(), L = this.$u, _ = (L ? a.utc : a)().year(k).startOf("year"), S = 4 - _.isoWeekday(), _.isoWeekday() > 4 && (S += 7), _.add(S, n));
895
- return Z.diff(A, "week") + 1;
896
- }, m.isoWeekday = function(C) {
897
- return this.$utils().u(C) ? this.day() || 7 : this.day(this.day() % 7 ? C : C - 7);
898
- };
899
- var Y = m.startOf;
900
- m.startOf = function(C, k) {
901
- var L = this.$utils(), _ = !!L.u(k) || k;
902
- return L.p(C) === "isoweek" ? _ ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : Y.bind(this)(C, k);
903
- };
904
- };
905
- }));
906
- })(Gt)), Gt.exports;
907
- }
908
- var Ai = Li();
909
- const Wi = /* @__PURE__ */ ae(Ai);
910
- var jt = { exports: {} }, $i = jt.exports, Ke;
911
- function Oi() {
912
- return Ke || (Ke = 1, (function(t, e) {
913
- (function(n, r) {
914
- t.exports = r();
915
- })($i, (function() {
916
- var n = { 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" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, i = /\d/, a = /\d\d/, c = /\d\d?/, m = /\d*[^-_:/,()\s\d]+/, Y = {}, C = function(U) {
917
- return (U = +U) + (U > 68 ? 1900 : 2e3);
918
- }, k = function(U) {
919
- return function(I) {
920
- this[U] = +I;
921
- };
922
- }, L = [/[+-]\d\d:?(\d\d)?|Z/, function(U) {
923
- (this.zone || (this.zone = {})).offset = (function(I) {
924
- if (!I || I === "Z") return 0;
925
- var N = I.match(/([+-]|\d\d)/g), W = 60 * N[1] + (+N[2] || 0);
926
- return W === 0 ? 0 : N[0] === "+" ? -W : W;
927
- })(U);
928
- }], _ = function(U) {
929
- var I = Y[U];
930
- return I && (I.indexOf ? I : I.s.concat(I.f));
931
- }, S = function(U, I) {
932
- var N, W = Y.meridiem;
933
- if (W) {
934
- for (var q = 1; q <= 24; q += 1) if (U.indexOf(W(q, 0, I)) > -1) {
935
- N = q > 12;
936
- break;
937
- }
938
- } else N = U === (I ? "pm" : "PM");
939
- return N;
940
- }, Z = { A: [m, function(U) {
941
- this.afternoon = S(U, !1);
942
- }], a: [m, function(U) {
943
- this.afternoon = S(U, !0);
944
- }], Q: [i, function(U) {
945
- this.month = 3 * (U - 1) + 1;
946
- }], S: [i, function(U) {
947
- this.milliseconds = 100 * +U;
948
- }], SS: [a, function(U) {
949
- this.milliseconds = 10 * +U;
950
- }], SSS: [/\d{3}/, function(U) {
951
- this.milliseconds = +U;
952
- }], s: [c, k("seconds")], ss: [c, k("seconds")], m: [c, k("minutes")], mm: [c, k("minutes")], H: [c, k("hours")], h: [c, k("hours")], HH: [c, k("hours")], hh: [c, k("hours")], D: [c, k("day")], DD: [a, k("day")], Do: [m, function(U) {
953
- var I = Y.ordinal, N = U.match(/\d+/);
954
- if (this.day = N[0], I) for (var W = 1; W <= 31; W += 1) I(W).replace(/\[|\]/g, "") === U && (this.day = W);
955
- }], w: [c, k("week")], ww: [a, k("week")], M: [c, k("month")], MM: [a, k("month")], MMM: [m, function(U) {
956
- var I = _("months"), N = (_("monthsShort") || I.map((function(W) {
957
- return W.slice(0, 3);
958
- }))).indexOf(U) + 1;
959
- if (N < 1) throw new Error();
960
- this.month = N % 12 || N;
961
- }], MMMM: [m, function(U) {
962
- var I = _("months").indexOf(U) + 1;
963
- if (I < 1) throw new Error();
964
- this.month = I % 12 || I;
965
- }], Y: [/[+-]?\d+/, k("year")], YY: [a, function(U) {
966
- this.year = C(U);
967
- }], YYYY: [/\d{4}/, k("year")], Z: L, ZZ: L };
968
- function A(U) {
969
- var I, N;
970
- I = U, N = Y && Y.formats;
971
- for (var W = (U = I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(D, w, T) {
972
- var v = T && T.toUpperCase();
973
- return w || N[T] || n[T] || N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(u, f, b) {
974
- return f || b.slice(1);
975
- }));
976
- }))).match(r), q = W.length, j = 0; j < q; j += 1) {
977
- var p = W[j], g = Z[p], y = g && g[0], h = g && g[1];
978
- W[j] = h ? { regex: y, parser: h } : p.replace(/^\[|\]$/g, "");
979
- }
980
- return function(D) {
981
- for (var w = {}, T = 0, v = 0; T < q; T += 1) {
982
- var u = W[T];
983
- if (typeof u == "string") v += u.length;
984
- else {
985
- var f = u.regex, b = u.parser, x = D.slice(v), F = f.exec(x)[0];
986
- b.call(w, F), D = D.replace(F, "");
987
- }
988
- }
989
- return (function(o) {
990
- var X = o.afternoon;
991
- if (X !== void 0) {
992
- var s = o.hours;
993
- X ? s < 12 && (o.hours += 12) : s === 12 && (o.hours = 0), delete o.afternoon;
994
- }
995
- })(w), w;
996
- };
997
- }
998
- return function(U, I, N) {
999
- N.p.customParseFormat = !0, U && U.parseTwoDigitYear && (C = U.parseTwoDigitYear);
1000
- var W = I.prototype, q = W.parse;
1001
- W.parse = function(j) {
1002
- var p = j.date, g = j.utc, y = j.args;
1003
- this.$u = g;
1004
- var h = y[1];
1005
- if (typeof h == "string") {
1006
- var D = y[2] === !0, w = y[3] === !0, T = D || w, v = y[2];
1007
- w && (v = y[2]), Y = this.$locale(), !D && v && (Y = N.Ls[v]), this.$d = (function(x, F, o, X) {
1008
- try {
1009
- if (["x", "X"].indexOf(F) > -1) return new Date((F === "X" ? 1e3 : 1) * x);
1010
- var s = A(F)(x), E = s.year, R = s.month, z = s.day, P = s.hours, K = s.minutes, O = s.seconds, st = s.milliseconds, M = s.zone, H = s.week, V = /* @__PURE__ */ new Date(), l = z || (E || R ? 1 : V.getDate()), J = E || V.getFullYear(), $ = 0;
1011
- E && !R || ($ = R > 0 ? R - 1 : V.getMonth());
1012
- var Q, G = P || 0, it = K || 0, at = O || 0, pt = st || 0;
1013
- return M ? new Date(Date.UTC(J, $, l, G, it, at, pt + 60 * M.offset * 1e3)) : o ? new Date(Date.UTC(J, $, l, G, it, at, pt)) : (Q = new Date(J, $, l, G, it, at, pt), H && (Q = X(Q).week(H).toDate()), Q);
1014
- } catch {
1015
- return /* @__PURE__ */ new Date("");
1016
- }
1017
- })(p, h, g, N), this.init(), v && v !== !0 && (this.$L = this.locale(v).$L), T && p != this.format(h) && (this.$d = /* @__PURE__ */ new Date("")), Y = {};
1018
- } else if (h instanceof Array) for (var u = h.length, f = 1; f <= u; f += 1) {
1019
- y[1] = h[f - 1];
1020
- var b = N.apply(this, y);
1021
- if (b.isValid()) {
1022
- this.$d = b.$d, this.$L = b.$L, this.init();
1023
- break;
1024
- }
1025
- f === u && (this.$d = /* @__PURE__ */ new Date(""));
1026
- }
1027
- else q.call(this, j);
1028
- };
1029
- };
1030
- }));
1031
- })(jt)), jt.exports;
1032
- }
1033
- var Hi = Oi();
1034
- const Ni = /* @__PURE__ */ ae(Hi);
1035
- var Qt = { exports: {} }, Pi = Qt.exports, tn;
1036
- function Vi() {
1037
- return tn || (tn = 1, (function(t, e) {
1038
- (function(n, r) {
1039
- t.exports = r();
1040
- })(Pi, (function() {
1041
- return function(n, r) {
1042
- var i = r.prototype, a = i.format;
1043
- i.format = function(c) {
1044
- var m = this, Y = this.$locale();
1045
- if (!this.isValid()) return a.bind(this)(c);
1046
- var C = this.$utils(), k = (c || "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(L) {
1047
- switch (L) {
1048
- case "Q":
1049
- return Math.ceil((m.$M + 1) / 3);
1050
- case "Do":
1051
- return Y.ordinal(m.$D);
1052
- case "gggg":
1053
- return m.weekYear();
1054
- case "GGGG":
1055
- return m.isoWeekYear();
1056
- case "wo":
1057
- return Y.ordinal(m.week(), "W");
1058
- case "w":
1059
- case "ww":
1060
- return C.s(m.week(), L === "w" ? 1 : 2, "0");
1061
- case "W":
1062
- case "WW":
1063
- return C.s(m.isoWeek(), L === "W" ? 1 : 2, "0");
1064
- case "k":
1065
- case "kk":
1066
- return C.s(String(m.$H === 0 ? 24 : m.$H), L === "k" ? 1 : 2, "0");
1067
- case "X":
1068
- return Math.floor(m.$d.getTime() / 1e3);
1069
- case "x":
1070
- return m.$d.getTime();
1071
- case "z":
1072
- return "[" + m.offsetName() + "]";
1073
- case "zzz":
1074
- return "[" + m.offsetName("long") + "]";
1075
- default:
1076
- return L;
1077
- }
1078
- }));
1079
- return a.bind(this)(k);
1080
- };
1081
- };
1082
- }));
1083
- })(Qt)), Qt.exports;
1084
- }
1085
- var zi = Vi();
1086
- const Ri = /* @__PURE__ */ ae(zi);
1087
- var Jt = { exports: {} }, qi = Jt.exports, en;
1088
- function Zi() {
1089
- return en || (en = 1, (function(t, e) {
1090
- (function(n, r) {
1091
- t.exports = r();
1092
- })(qi, (function() {
1093
- var n, r, i = 1e3, a = 6e4, c = 36e5, m = 864e5, Y = /\[([^\]]+)]|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, C = 31536e6, k = 2628e6, L = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, _ = { years: C, months: k, days: m, hours: c, minutes: a, seconds: i, milliseconds: 1, weeks: 6048e5 }, S = function(p) {
1094
- return p instanceof q;
1095
- }, Z = function(p, g, y) {
1096
- return new q(p, y, g.$l);
1097
- }, A = function(p) {
1098
- return r.p(p) + "s";
1099
- }, U = function(p) {
1100
- return p < 0;
1101
- }, I = function(p) {
1102
- return U(p) ? Math.ceil(p) : Math.floor(p);
1103
- }, N = function(p) {
1104
- return Math.abs(p);
1105
- }, W = function(p, g) {
1106
- return p ? U(p) ? { negative: !0, format: "" + N(p) + g } : { negative: !1, format: "" + p + g } : { negative: !1, format: "" };
1107
- }, q = (function() {
1108
- function p(y, h, D) {
1109
- var w = this;
1110
- if (this.$d = {}, this.$l = D, y === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), h) return Z(y * _[A(h)], this);
1111
- if (typeof y == "number") return this.$ms = y, this.parseFromMilliseconds(), this;
1112
- if (typeof y == "object") return Object.keys(y).forEach((function(u) {
1113
- w.$d[A(u)] = y[u];
1114
- })), this.calMilliseconds(), this;
1115
- if (typeof y == "string") {
1116
- var T = y.match(L);
1117
- if (T) {
1118
- var v = T.slice(2).map((function(u) {
1119
- return u != null ? Number(u) : 0;
1120
- }));
1121
- return this.$d.years = v[0], this.$d.months = v[1], this.$d.weeks = v[2], this.$d.days = v[3], this.$d.hours = v[4], this.$d.minutes = v[5], this.$d.seconds = v[6], this.calMilliseconds(), this;
1122
- }
1123
- }
1124
- return this;
1125
- }
1126
- var g = p.prototype;
1127
- return g.calMilliseconds = function() {
1128
- var y = this;
1129
- this.$ms = Object.keys(this.$d).reduce((function(h, D) {
1130
- return h + (y.$d[D] || 0) * _[D];
1131
- }), 0);
1132
- }, g.parseFromMilliseconds = function() {
1133
- var y = this.$ms;
1134
- this.$d.years = I(y / C), y %= C, this.$d.months = I(y / k), y %= k, this.$d.days = I(y / m), y %= m, this.$d.hours = I(y / c), y %= c, this.$d.minutes = I(y / a), y %= a, this.$d.seconds = I(y / i), y %= i, this.$d.milliseconds = y;
1135
- }, g.toISOString = function() {
1136
- var y = W(this.$d.years, "Y"), h = W(this.$d.months, "M"), D = +this.$d.days || 0;
1137
- this.$d.weeks && (D += 7 * this.$d.weeks);
1138
- var w = W(D, "D"), T = W(this.$d.hours, "H"), v = W(this.$d.minutes, "M"), u = this.$d.seconds || 0;
1139
- this.$d.milliseconds && (u += this.$d.milliseconds / 1e3, u = Math.round(1e3 * u) / 1e3);
1140
- var f = W(u, "S"), b = y.negative || h.negative || w.negative || T.negative || v.negative || f.negative, x = T.format || v.format || f.format ? "T" : "", F = (b ? "-" : "") + "P" + y.format + h.format + w.format + x + T.format + v.format + f.format;
1141
- return F === "P" || F === "-P" ? "P0D" : F;
1142
- }, g.toJSON = function() {
1143
- return this.toISOString();
1144
- }, g.format = function(y) {
1145
- var h = y || "YYYY-MM-DDTHH:mm:ss", D = { Y: this.$d.years, YY: r.s(this.$d.years, 2, "0"), YYYY: r.s(this.$d.years, 4, "0"), M: this.$d.months, MM: r.s(this.$d.months, 2, "0"), D: this.$d.days, DD: r.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: r.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: r.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: r.s(this.$d.seconds, 2, "0"), SSS: r.s(this.$d.milliseconds, 3, "0") };
1146
- return h.replace(Y, (function(w, T) {
1147
- return T || String(D[w]);
1148
- }));
1149
- }, g.as = function(y) {
1150
- return this.$ms / _[A(y)];
1151
- }, g.get = function(y) {
1152
- var h = this.$ms, D = A(y);
1153
- return D === "milliseconds" ? h %= 1e3 : h = D === "weeks" ? I(h / _[D]) : this.$d[D], h || 0;
1154
- }, g.add = function(y, h, D) {
1155
- var w;
1156
- return w = h ? y * _[A(h)] : S(y) ? y.$ms : Z(y, this).$ms, Z(this.$ms + w * (D ? -1 : 1), this);
1157
- }, g.subtract = function(y, h) {
1158
- return this.add(y, h, !0);
1159
- }, g.locale = function(y) {
1160
- var h = this.clone();
1161
- return h.$l = y, h;
1162
- }, g.clone = function() {
1163
- return Z(this.$ms, this);
1164
- }, g.humanize = function(y) {
1165
- return n().add(this.$ms, "ms").locale(this.$l).fromNow(!y);
1166
- }, g.valueOf = function() {
1167
- return this.asMilliseconds();
1168
- }, g.milliseconds = function() {
1169
- return this.get("milliseconds");
1170
- }, g.asMilliseconds = function() {
1171
- return this.as("milliseconds");
1172
- }, g.seconds = function() {
1173
- return this.get("seconds");
1174
- }, g.asSeconds = function() {
1175
- return this.as("seconds");
1176
- }, g.minutes = function() {
1177
- return this.get("minutes");
1178
- }, g.asMinutes = function() {
1179
- return this.as("minutes");
1180
- }, g.hours = function() {
1181
- return this.get("hours");
1182
- }, g.asHours = function() {
1183
- return this.as("hours");
1184
- }, g.days = function() {
1185
- return this.get("days");
1186
- }, g.asDays = function() {
1187
- return this.as("days");
1188
- }, g.weeks = function() {
1189
- return this.get("weeks");
1190
- }, g.asWeeks = function() {
1191
- return this.as("weeks");
1192
- }, g.months = function() {
1193
- return this.get("months");
1194
- }, g.asMonths = function() {
1195
- return this.as("months");
1196
- }, g.years = function() {
1197
- return this.get("years");
1198
- }, g.asYears = function() {
1199
- return this.as("years");
1200
- }, p;
1201
- })(), j = function(p, g, y) {
1202
- return p.add(g.years() * y, "y").add(g.months() * y, "M").add(g.days() * y, "d").add(g.hours() * y, "h").add(g.minutes() * y, "m").add(g.seconds() * y, "s").add(g.milliseconds() * y, "ms");
1203
- };
1204
- return function(p, g, y) {
1205
- n = y, r = y().$utils(), y.duration = function(w, T) {
1206
- var v = y.locale();
1207
- return Z(w, { $l: v }, T);
1208
- }, y.isDuration = S;
1209
- var h = g.prototype.add, D = g.prototype.subtract;
1210
- g.prototype.add = function(w, T) {
1211
- return S(w) ? j(this, w, 1) : h.bind(this)(w, T);
1212
- }, g.prototype.subtract = function(w, T) {
1213
- return S(w) ? j(this, w, -1) : D.bind(this)(w, T);
1214
- };
1215
- };
1216
- }));
1217
- })(Jt)), Jt.exports;
1218
- }
1219
- var Bi = Zi();
1220
- const Xi = /* @__PURE__ */ ae(Bi);
1221
- var xe = (function() {
1222
- var t = /* @__PURE__ */ d(function(v, u, f, b) {
1223
- for (f = f || {}, b = v.length; b--; f[v[b]] = u) ;
1224
- return f;
1225
- }, "o"), e = [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], n = [1, 26], r = [1, 27], i = [1, 28], a = [1, 29], c = [1, 30], m = [1, 31], Y = [1, 32], C = [1, 33], k = [1, 34], L = [1, 9], _ = [1, 10], S = [1, 11], Z = [1, 12], A = [1, 13], U = [1, 14], I = [1, 15], N = [1, 16], W = [1, 19], q = [1, 20], j = [1, 21], p = [1, 22], g = [1, 23], y = [1, 25], h = [1, 35], D = {
1226
- trace: /* @__PURE__ */ d(function() {
1227
- }, "trace"),
1228
- yy: {},
1229
- 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 },
1230
- 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" },
1231
- 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]],
1232
- performAction: /* @__PURE__ */ d(function(u, f, b, x, F, o, X) {
1233
- var s = o.length - 1;
1234
- switch (F) {
1235
- case 1:
1236
- return o[s - 1];
1237
- case 2:
1238
- this.$ = [];
1239
- break;
1240
- case 3:
1241
- o[s - 1].push(o[s]), this.$ = o[s - 1];
1242
- break;
1243
- case 4:
1244
- case 5:
1245
- this.$ = o[s];
1246
- break;
1247
- case 6:
1248
- case 7:
1249
- this.$ = [];
1250
- break;
1251
- case 8:
1252
- x.setWeekday("monday");
1253
- break;
1254
- case 9:
1255
- x.setWeekday("tuesday");
1256
- break;
1257
- case 10:
1258
- x.setWeekday("wednesday");
1259
- break;
1260
- case 11:
1261
- x.setWeekday("thursday");
1262
- break;
1263
- case 12:
1264
- x.setWeekday("friday");
1265
- break;
1266
- case 13:
1267
- x.setWeekday("saturday");
1268
- break;
1269
- case 14:
1270
- x.setWeekday("sunday");
1271
- break;
1272
- case 15:
1273
- x.setWeekend("friday");
1274
- break;
1275
- case 16:
1276
- x.setWeekend("saturday");
1277
- break;
1278
- case 17:
1279
- x.setDateFormat(o[s].substr(11)), this.$ = o[s].substr(11);
1280
- break;
1281
- case 18:
1282
- x.enableInclusiveEndDates(), this.$ = o[s].substr(18);
1283
- break;
1284
- case 19:
1285
- x.TopAxis(), this.$ = o[s].substr(8);
1286
- break;
1287
- case 20:
1288
- x.setAxisFormat(o[s].substr(11)), this.$ = o[s].substr(11);
1289
- break;
1290
- case 21:
1291
- x.setTickInterval(o[s].substr(13)), this.$ = o[s].substr(13);
1292
- break;
1293
- case 22:
1294
- x.setExcludes(o[s].substr(9)), this.$ = o[s].substr(9);
1295
- break;
1296
- case 23:
1297
- x.setIncludes(o[s].substr(9)), this.$ = o[s].substr(9);
1298
- break;
1299
- case 24:
1300
- x.setTodayMarker(o[s].substr(12)), this.$ = o[s].substr(12);
1301
- break;
1302
- case 27:
1303
- x.setDiagramTitle(o[s].substr(6)), this.$ = o[s].substr(6);
1304
- break;
1305
- case 28:
1306
- this.$ = o[s].trim(), x.setAccTitle(this.$);
1307
- break;
1308
- case 29:
1309
- case 30:
1310
- this.$ = o[s].trim(), x.setAccDescription(this.$);
1311
- break;
1312
- case 31:
1313
- x.addSection(o[s].substr(8)), this.$ = o[s].substr(8);
1314
- break;
1315
- case 33:
1316
- x.addTask(o[s - 1], o[s]), this.$ = "task";
1317
- break;
1318
- case 34:
1319
- this.$ = o[s - 1], x.setClickEvent(o[s - 1], o[s], null);
1320
- break;
1321
- case 35:
1322
- this.$ = o[s - 2], x.setClickEvent(o[s - 2], o[s - 1], o[s]);
1323
- break;
1324
- case 36:
1325
- this.$ = o[s - 2], x.setClickEvent(o[s - 2], o[s - 1], null), x.setLink(o[s - 2], o[s]);
1326
- break;
1327
- case 37:
1328
- this.$ = o[s - 3], x.setClickEvent(o[s - 3], o[s - 2], o[s - 1]), x.setLink(o[s - 3], o[s]);
1329
- break;
1330
- case 38:
1331
- this.$ = o[s - 2], x.setClickEvent(o[s - 2], o[s], null), x.setLink(o[s - 2], o[s - 1]);
1332
- break;
1333
- case 39:
1334
- this.$ = o[s - 3], x.setClickEvent(o[s - 3], o[s - 1], o[s]), x.setLink(o[s - 3], o[s - 2]);
1335
- break;
1336
- case 40:
1337
- this.$ = o[s - 1], x.setLink(o[s - 1], o[s]);
1338
- break;
1339
- case 41:
1340
- case 47:
1341
- this.$ = o[s - 1] + " " + o[s];
1342
- break;
1343
- case 42:
1344
- case 43:
1345
- case 45:
1346
- this.$ = o[s - 2] + " " + o[s - 1] + " " + o[s];
1347
- break;
1348
- case 44:
1349
- case 46:
1350
- this.$ = o[s - 3] + " " + o[s - 2] + " " + o[s - 1] + " " + o[s];
1351
- break;
1352
- }
1353
- }, "anonymous"),
1354
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: i, 15: a, 16: c, 17: m, 18: Y, 19: 18, 20: C, 21: k, 22: L, 23: _, 24: S, 25: Z, 26: A, 27: U, 28: I, 29: N, 30: W, 31: q, 33: j, 35: p, 36: g, 37: 24, 38: y, 40: h }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: i, 15: a, 16: c, 17: m, 18: Y, 19: 18, 20: C, 21: k, 22: L, 23: _, 24: S, 25: Z, 26: A, 27: U, 28: I, 29: N, 30: W, 31: q, 33: j, 35: p, 36: g, 37: 24, 38: y, 40: h }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])],
1355
- defaultActions: {},
1356
- parseError: /* @__PURE__ */ d(function(u, f) {
1357
- if (f.recoverable)
1358
- this.trace(u);
1359
- else {
1360
- var b = new Error(u);
1361
- throw b.hash = f, b;
1362
- }
1363
- }, "parseError"),
1364
- parse: /* @__PURE__ */ d(function(u) {
1365
- var f = this, b = [0], x = [], F = [null], o = [], X = this.table, s = "", E = 0, R = 0, z = 2, P = 1, K = o.slice.call(arguments, 1), O = Object.create(this.lexer), st = { yy: {} };
1366
- for (var M in this.yy)
1367
- Object.prototype.hasOwnProperty.call(this.yy, M) && (st.yy[M] = this.yy[M]);
1368
- O.setInput(u, st.yy), st.yy.lexer = O, st.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {});
1369
- var H = O.yylloc;
1370
- o.push(H);
1371
- var V = O.options && O.options.ranges;
1372
- typeof st.yy.parseError == "function" ? this.parseError = st.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1373
- function l(ot) {
1374
- b.length = b.length - 2 * ot, F.length = F.length - ot, o.length = o.length - ot;
1375
- }
1376
- d(l, "popStack");
1377
- function J() {
1378
- var ot;
1379
- return ot = x.pop() || O.lex() || P, typeof ot != "number" && (ot instanceof Array && (x = ot, ot = x.pop()), ot = f.symbols_[ot] || ot), ot;
1380
- }
1381
- d(J, "lex");
1382
- for (var $, Q, G, it, at = {}, pt, ut, Oe, qt; ; ) {
1383
- if (Q = b[b.length - 1], this.defaultActions[Q] ? G = this.defaultActions[Q] : (($ === null || typeof $ > "u") && ($ = J()), G = X[Q] && X[Q][$]), typeof G > "u" || !G.length || !G[0]) {
1384
- var oe = "";
1385
- qt = [];
1386
- for (pt in X[Q])
1387
- this.terminals_[pt] && pt > z && qt.push("'" + this.terminals_[pt] + "'");
1388
- O.showPosition ? oe = "Parse error on line " + (E + 1) + `:
1389
- ` + O.showPosition() + `
1390
- Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : oe = "Parse error on line " + (E + 1) + ": Unexpected " + ($ == P ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(oe, {
1391
- text: O.match,
1392
- token: this.terminals_[$] || $,
1393
- line: O.yylineno,
1394
- loc: H,
1395
- expected: qt
1396
- });
1397
- }
1398
- if (G[0] instanceof Array && G.length > 1)
1399
- throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + $);
1400
- switch (G[0]) {
1401
- case 1:
1402
- b.push($), F.push(O.yytext), o.push(O.yylloc), b.push(G[1]), $ = null, R = O.yyleng, s = O.yytext, E = O.yylineno, H = O.yylloc;
1403
- break;
1404
- case 2:
1405
- if (ut = this.productions_[G[1]][1], at.$ = F[F.length - ut], at._$ = {
1406
- first_line: o[o.length - (ut || 1)].first_line,
1407
- last_line: o[o.length - 1].last_line,
1408
- first_column: o[o.length - (ut || 1)].first_column,
1409
- last_column: o[o.length - 1].last_column
1410
- }, V && (at._$.range = [
1411
- o[o.length - (ut || 1)].range[0],
1412
- o[o.length - 1].range[1]
1413
- ]), it = this.performAction.apply(at, [
1414
- s,
1415
- R,
1416
- E,
1417
- st.yy,
1418
- G[1],
1419
- F,
1420
- o
1421
- ].concat(K)), typeof it < "u")
1422
- return it;
1423
- ut && (b = b.slice(0, -1 * ut * 2), F = F.slice(0, -1 * ut), o = o.slice(0, -1 * ut)), b.push(this.productions_[G[1]][0]), F.push(at.$), o.push(at._$), Oe = X[b[b.length - 2]][b[b.length - 1]], b.push(Oe);
1424
- break;
1425
- case 3:
1426
- return !0;
1427
- }
1428
- }
1429
- return !0;
1430
- }, "parse")
1431
- }, w = /* @__PURE__ */ (function() {
1432
- var v = {
1433
- EOF: 1,
1434
- parseError: /* @__PURE__ */ d(function(f, b) {
1435
- if (this.yy.parser)
1436
- this.yy.parser.parseError(f, b);
1437
- else
1438
- throw new Error(f);
1439
- }, "parseError"),
1440
- // resets the lexer, sets new input
1441
- setInput: /* @__PURE__ */ d(function(u, f) {
1442
- return this.yy = f || this.yy || {}, this._input = u, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1443
- first_line: 1,
1444
- first_column: 0,
1445
- last_line: 1,
1446
- last_column: 0
1447
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1448
- }, "setInput"),
1449
- // consumes and returns one char from the input
1450
- input: /* @__PURE__ */ d(function() {
1451
- var u = this._input[0];
1452
- this.yytext += u, this.yyleng++, this.offset++, this.match += u, this.matched += u;
1453
- var f = u.match(/(?:\r\n?|\n).*/g);
1454
- return f ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), u;
1455
- }, "input"),
1456
- // unshifts one char (or a string) into the input
1457
- unput: /* @__PURE__ */ d(function(u) {
1458
- var f = u.length, b = u.split(/(?:\r\n?|\n)/g);
1459
- this._input = u + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
1460
- var x = this.match.split(/(?:\r\n?|\n)/g);
1461
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
1462
- var F = this.yylloc.range;
1463
- return this.yylloc = {
1464
- first_line: this.yylloc.first_line,
1465
- last_line: this.yylineno + 1,
1466
- first_column: this.yylloc.first_column,
1467
- last_column: b ? (b.length === x.length ? this.yylloc.first_column : 0) + x[x.length - b.length].length - b[0].length : this.yylloc.first_column - f
1468
- }, this.options.ranges && (this.yylloc.range = [F[0], F[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
1469
- }, "unput"),
1470
- // When called from action, caches matched text and appends it on next action
1471
- more: /* @__PURE__ */ d(function() {
1472
- return this._more = !0, this;
1473
- }, "more"),
1474
- // 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.
1475
- reject: /* @__PURE__ */ d(function() {
1476
- if (this.options.backtrack_lexer)
1477
- this._backtrack = !0;
1478
- else
1479
- 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).
1480
- ` + this.showPosition(), {
1481
- text: "",
1482
- token: null,
1483
- line: this.yylineno
1484
- });
1485
- return this;
1486
- }, "reject"),
1487
- // retain first n characters of the match
1488
- less: /* @__PURE__ */ d(function(u) {
1489
- this.unput(this.match.slice(u));
1490
- }, "less"),
1491
- // displays already matched input, i.e. for error messages
1492
- pastInput: /* @__PURE__ */ d(function() {
1493
- var u = this.matched.substr(0, this.matched.length - this.match.length);
1494
- return (u.length > 20 ? "..." : "") + u.substr(-20).replace(/\n/g, "");
1495
- }, "pastInput"),
1496
- // displays upcoming input, i.e. for error messages
1497
- upcomingInput: /* @__PURE__ */ d(function() {
1498
- var u = this.match;
1499
- return u.length < 20 && (u += this._input.substr(0, 20 - u.length)), (u.substr(0, 20) + (u.length > 20 ? "..." : "")).replace(/\n/g, "");
1500
- }, "upcomingInput"),
1501
- // displays the character position where the lexing error occurred, i.e. for error messages
1502
- showPosition: /* @__PURE__ */ d(function() {
1503
- var u = this.pastInput(), f = new Array(u.length + 1).join("-");
1504
- return u + this.upcomingInput() + `
1505
- ` + f + "^";
1506
- }, "showPosition"),
1507
- // test the lexed token: return FALSE when not a match, otherwise return token
1508
- test_match: /* @__PURE__ */ d(function(u, f) {
1509
- var b, x, F;
1510
- if (this.options.backtrack_lexer && (F = {
1511
- yylineno: this.yylineno,
1512
- yylloc: {
1513
- first_line: this.yylloc.first_line,
1514
- last_line: this.last_line,
1515
- first_column: this.yylloc.first_column,
1516
- last_column: this.yylloc.last_column
1517
- },
1518
- yytext: this.yytext,
1519
- match: this.match,
1520
- matches: this.matches,
1521
- matched: this.matched,
1522
- yyleng: this.yyleng,
1523
- offset: this.offset,
1524
- _more: this._more,
1525
- _input: this._input,
1526
- yy: this.yy,
1527
- conditionStack: this.conditionStack.slice(0),
1528
- done: this.done
1529
- }, this.options.ranges && (F.yylloc.range = this.yylloc.range.slice(0))), x = u[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
1530
- first_line: this.yylloc.last_line,
1531
- last_line: this.yylineno + 1,
1532
- first_column: this.yylloc.last_column,
1533
- last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + u[0].length
1534
- }, this.yytext += u[0], this.match += u[0], this.matches = u, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(u[0].length), this.matched += u[0], b = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), b)
1535
- return b;
1536
- if (this._backtrack) {
1537
- for (var o in F)
1538
- this[o] = F[o];
1539
- return !1;
1540
- }
1541
- return !1;
1542
- }, "test_match"),
1543
- // return next match in input
1544
- next: /* @__PURE__ */ d(function() {
1545
- if (this.done)
1546
- return this.EOF;
1547
- this._input || (this.done = !0);
1548
- var u, f, b, x;
1549
- this._more || (this.yytext = "", this.match = "");
1550
- for (var F = this._currentRules(), o = 0; o < F.length; o++)
1551
- if (b = this._input.match(this.rules[F[o]]), b && (!f || b[0].length > f[0].length)) {
1552
- if (f = b, x = o, this.options.backtrack_lexer) {
1553
- if (u = this.test_match(b, F[o]), u !== !1)
1554
- return u;
1555
- if (this._backtrack) {
1556
- f = !1;
1557
- continue;
1558
- } else
1559
- return !1;
1560
- } else if (!this.options.flex)
1561
- break;
1562
- }
1563
- return f ? (u = this.test_match(f, F[x]), u !== !1 ? u : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1564
- ` + this.showPosition(), {
1565
- text: "",
1566
- token: null,
1567
- line: this.yylineno
1568
- });
1569
- }, "next"),
1570
- // return next match that has a token
1571
- lex: /* @__PURE__ */ d(function() {
1572
- var f = this.next();
1573
- return f || this.lex();
1574
- }, "lex"),
1575
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1576
- begin: /* @__PURE__ */ d(function(f) {
1577
- this.conditionStack.push(f);
1578
- }, "begin"),
1579
- // pop the previously active lexer condition state off the condition stack
1580
- popState: /* @__PURE__ */ d(function() {
1581
- var f = this.conditionStack.length - 1;
1582
- return f > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1583
- }, "popState"),
1584
- // produce the lexer rule set which is active for the currently active lexer condition state
1585
- _currentRules: /* @__PURE__ */ d(function() {
1586
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1587
- }, "_currentRules"),
1588
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1589
- topState: /* @__PURE__ */ d(function(f) {
1590
- return f = this.conditionStack.length - 1 - Math.abs(f || 0), f >= 0 ? this.conditionStack[f] : "INITIAL";
1591
- }, "topState"),
1592
- // alias for begin(condition)
1593
- pushState: /* @__PURE__ */ d(function(f) {
1594
- this.begin(f);
1595
- }, "pushState"),
1596
- // return the number of states currently on the stack
1597
- stateStackSize: /* @__PURE__ */ d(function() {
1598
- return this.conditionStack.length;
1599
- }, "stateStackSize"),
1600
- options: { "case-insensitive": !0 },
1601
- performAction: /* @__PURE__ */ d(function(f, b, x, F) {
1602
- switch (x) {
1603
- case 0:
1604
- return this.begin("open_directive"), "open_directive";
1605
- case 1:
1606
- return this.begin("acc_title"), 31;
1607
- case 2:
1608
- return this.popState(), "acc_title_value";
1609
- case 3:
1610
- return this.begin("acc_descr"), 33;
1611
- case 4:
1612
- return this.popState(), "acc_descr_value";
1613
- case 5:
1614
- this.begin("acc_descr_multiline");
1615
- break;
1616
- case 6:
1617
- this.popState();
1618
- break;
1619
- case 7:
1620
- return "acc_descr_multiline_value";
1621
- case 8:
1622
- break;
1623
- case 9:
1624
- break;
1625
- case 10:
1626
- break;
1627
- case 11:
1628
- return 10;
1629
- case 12:
1630
- break;
1631
- case 13:
1632
- break;
1633
- case 14:
1634
- this.begin("href");
1635
- break;
1636
- case 15:
1637
- this.popState();
1638
- break;
1639
- case 16:
1640
- return 43;
1641
- case 17:
1642
- this.begin("callbackname");
1643
- break;
1644
- case 18:
1645
- this.popState();
1646
- break;
1647
- case 19:
1648
- this.popState(), this.begin("callbackargs");
1649
- break;
1650
- case 20:
1651
- return 41;
1652
- case 21:
1653
- this.popState();
1654
- break;
1655
- case 22:
1656
- return 42;
1657
- case 23:
1658
- this.begin("click");
1659
- break;
1660
- case 24:
1661
- this.popState();
1662
- break;
1663
- case 25:
1664
- return 40;
1665
- case 26:
1666
- return 4;
1667
- case 27:
1668
- return 22;
1669
- case 28:
1670
- return 23;
1671
- case 29:
1672
- return 24;
1673
- case 30:
1674
- return 25;
1675
- case 31:
1676
- return 26;
1677
- case 32:
1678
- return 28;
1679
- case 33:
1680
- return 27;
1681
- case 34:
1682
- return 29;
1683
- case 35:
1684
- return 12;
1685
- case 36:
1686
- return 13;
1687
- case 37:
1688
- return 14;
1689
- case 38:
1690
- return 15;
1691
- case 39:
1692
- return 16;
1693
- case 40:
1694
- return 17;
1695
- case 41:
1696
- return 18;
1697
- case 42:
1698
- return 20;
1699
- case 43:
1700
- return 21;
1701
- case 44:
1702
- return "date";
1703
- case 45:
1704
- return 30;
1705
- case 46:
1706
- return "accDescription";
1707
- case 47:
1708
- return 36;
1709
- case 48:
1710
- return 38;
1711
- case 49:
1712
- return 39;
1713
- case 50:
1714
- return ":";
1715
- case 51:
1716
- return 6;
1717
- case 52:
1718
- return "INVALID";
1719
- }
1720
- }, "anonymous"),
1721
- 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],
1722
- conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: !1 }, acc_descr: { rules: [4], inclusive: !1 }, acc_title: { rules: [2], inclusive: !1 }, callbackargs: { rules: [21, 22], inclusive: !1 }, callbackname: { rules: [18, 19, 20], inclusive: !1 }, href: { rules: [15, 16], inclusive: !1 }, click: { rules: [24, 25], inclusive: !1 }, 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: !0 } }
1723
- };
1724
- return v;
1725
- })();
1726
- D.lexer = w;
1727
- function T() {
1728
- this.yy = {};
1729
- }
1730
- return d(T, "Parser"), T.prototype = D, D.Parser = T, new T();
1731
- })();
1732
- xe.parser = xe;
1733
- var Gi = xe;
1734
- rt.extend(Wi);
1735
- rt.extend(Ni);
1736
- rt.extend(Ri);
1737
- var nn = { friday: 5, saturday: 6 }, lt = "", _e = "", Fe = void 0, Ye = "", Vt = [], zt = [], Ue = /* @__PURE__ */ new Map(), Ee = [], ie = [], It = "", Ie = "", _n = ["active", "done", "crit", "milestone", "vert"], Le = [], Rt = !1, Ae = !1, We = "sunday", se = "saturday", we = 0, ji = /* @__PURE__ */ d(function() {
1738
- Ee = [], ie = [], It = "", Le = [], Kt = 0, Me = void 0, te = void 0, tt = [], lt = "", _e = "", Ie = "", Fe = void 0, Ye = "", Vt = [], zt = [], Rt = !1, Ae = !1, we = 0, Ue = /* @__PURE__ */ new Map(), Bn(), We = "sunday", se = "saturday";
1739
- }, "clear"), Qi = /* @__PURE__ */ d(function(t) {
1740
- _e = t;
1741
- }, "setAxisFormat"), Ji = /* @__PURE__ */ d(function() {
1742
- return _e;
1743
- }, "getAxisFormat"), Ki = /* @__PURE__ */ d(function(t) {
1744
- Fe = t;
1745
- }, "setTickInterval"), ts = /* @__PURE__ */ d(function() {
1746
- return Fe;
1747
- }, "getTickInterval"), es = /* @__PURE__ */ d(function(t) {
1748
- Ye = t;
1749
- }, "setTodayMarker"), ns = /* @__PURE__ */ d(function() {
1750
- return Ye;
1751
- }, "getTodayMarker"), rs = /* @__PURE__ */ d(function(t) {
1752
- lt = t;
1753
- }, "setDateFormat"), is = /* @__PURE__ */ d(function() {
1754
- Rt = !0;
1755
- }, "enableInclusiveEndDates"), ss = /* @__PURE__ */ d(function() {
1756
- return Rt;
1757
- }, "endDatesAreInclusive"), as = /* @__PURE__ */ d(function() {
1758
- Ae = !0;
1759
- }, "enableTopAxis"), os = /* @__PURE__ */ d(function() {
1760
- return Ae;
1761
- }, "topAxisEnabled"), cs = /* @__PURE__ */ d(function(t) {
1762
- Ie = t;
1763
- }, "setDisplayMode"), us = /* @__PURE__ */ d(function() {
1764
- return Ie;
1765
- }, "getDisplayMode"), ls = /* @__PURE__ */ d(function() {
1766
- return lt;
1767
- }, "getDateFormat"), fs = /* @__PURE__ */ d(function(t) {
1768
- Vt = t.toLowerCase().split(/[\s,]+/);
1769
- }, "setIncludes"), ds = /* @__PURE__ */ d(function() {
1770
- return Vt;
1771
- }, "getIncludes"), hs = /* @__PURE__ */ d(function(t) {
1772
- zt = t.toLowerCase().split(/[\s,]+/);
1773
- }, "setExcludes"), ms = /* @__PURE__ */ d(function() {
1774
- return zt;
1775
- }, "getExcludes"), gs = /* @__PURE__ */ d(function() {
1776
- return Ue;
1777
- }, "getLinks"), ys = /* @__PURE__ */ d(function(t) {
1778
- It = t, Ee.push(t);
1779
- }, "addSection"), ks = /* @__PURE__ */ d(function() {
1780
- return Ee;
1781
- }, "getSections"), ps = /* @__PURE__ */ d(function() {
1782
- let t = rn();
1783
- const e = 10;
1784
- let n = 0;
1785
- for (; !t && n < e; )
1786
- t = rn(), n++;
1787
- return ie = tt, ie;
1788
- }, "getTasks"), Fn = /* @__PURE__ */ d(function(t, e, n, r) {
1789
- const i = t.format(e.trim()), a = t.format("YYYY-MM-DD");
1790
- return r.includes(i) || r.includes(a) ? !1 : n.includes("weekends") && (t.isoWeekday() === nn[se] || t.isoWeekday() === nn[se] + 1) || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(i) || n.includes(a);
1791
- }, "isInvalidDate"), vs = /* @__PURE__ */ d(function(t) {
1792
- We = t;
1793
- }, "setWeekday"), Ts = /* @__PURE__ */ d(function() {
1794
- return We;
1795
- }, "getWeekday"), bs = /* @__PURE__ */ d(function(t) {
1796
- se = t;
1797
- }, "setWeekend"), Yn = /* @__PURE__ */ d(function(t, e, n, r) {
1798
- if (!n.length || t.manualEndTime)
1799
- return;
1800
- let i;
1801
- t.startTime instanceof Date ? i = rt(t.startTime) : i = rt(t.startTime, e, !0), i = i.add(1, "d");
1802
- let a;
1803
- t.endTime instanceof Date ? a = rt(t.endTime) : a = rt(t.endTime, e, !0);
1804
- const [c, m] = xs(
1805
- i,
1806
- a,
1807
- e,
1808
- n,
1809
- r
1810
- );
1811
- t.endTime = c.toDate(), t.renderEndTime = m;
1812
- }, "checkTaskDates"), xs = /* @__PURE__ */ d(function(t, e, n, r, i) {
1813
- let a = !1, c = null;
1814
- for (; t <= e; )
1815
- a || (c = e.toDate()), a = Fn(t, n, r, i), a && (e = e.add(1, "d")), t = t.add(1, "d");
1816
- return [e, c];
1817
- }, "fixTaskDates"), De = /* @__PURE__ */ d(function(t, e, n) {
1818
- if (n = n.trim(), (/* @__PURE__ */ d((m) => {
1819
- const Y = m.trim();
1820
- return Y === "x" || Y === "X";
1821
- }, "isTimestampFormat"))(e) && /^\d+$/.test(n))
1822
- return new Date(Number(n));
1823
- const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
1824
- if (a !== null) {
1825
- let m = null;
1826
- for (const C of a.groups.ids.split(" ")) {
1827
- let k = Ct(C);
1828
- k !== void 0 && (!m || k.endTime > m.endTime) && (m = k);
1829
- }
1830
- if (m)
1831
- return m.endTime;
1832
- const Y = /* @__PURE__ */ new Date();
1833
- return Y.setHours(0, 0, 0, 0), Y;
1834
- }
1835
- let c = rt(n, e.trim(), !0);
1836
- if (c.isValid())
1837
- return c.toDate();
1838
- {
1839
- Tt.debug("Invalid date:" + n), Tt.debug("With date format:" + e.trim());
1840
- const m = new Date(n);
1841
- if (m === void 0 || isNaN(m.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
1842
- // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
1843
- // This can cause virtually infinite loops while rendering, so for the
1844
- // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
1845
- // invalid.
1846
- m.getFullYear() < -1e4 || m.getFullYear() > 1e4)
1847
- throw new Error("Invalid date:" + n);
1848
- return m;
1849
- }
1850
- }, "getStartDate"), Un = /* @__PURE__ */ d(function(t) {
1851
- const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
1852
- return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
1853
- }, "parseDuration"), En = /* @__PURE__ */ d(function(t, e, n, r = !1) {
1854
- n = n.trim();
1855
- const a = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
1856
- if (a !== null) {
1857
- let k = null;
1858
- for (const _ of a.groups.ids.split(" ")) {
1859
- let S = Ct(_);
1860
- S !== void 0 && (!k || S.startTime < k.startTime) && (k = S);
1861
- }
1862
- if (k)
1863
- return k.startTime;
1864
- const L = /* @__PURE__ */ new Date();
1865
- return L.setHours(0, 0, 0, 0), L;
1866
- }
1867
- let c = rt(n, e.trim(), !0);
1868
- if (c.isValid())
1869
- return r && (c = c.add(1, "d")), c.toDate();
1870
- let m = rt(t);
1871
- const [Y, C] = Un(n);
1872
- if (!Number.isNaN(Y)) {
1873
- const k = m.add(Y, C);
1874
- k.isValid() && (m = k);
1875
- }
1876
- return m.toDate();
1877
- }, "getEndDate"), Kt = 0, Yt = /* @__PURE__ */ d(function(t) {
1878
- return t === void 0 ? (Kt = Kt + 1, "task" + Kt) : t;
1879
- }, "parseId"), ws = /* @__PURE__ */ d(function(t, e) {
1880
- let n;
1881
- e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1882
- const r = n.split(","), i = {};
1883
- $e(r, i, _n);
1884
- for (let c = 0; c < r.length; c++)
1885
- r[c] = r[c].trim();
1886
- let a = "";
1887
- switch (r.length) {
1888
- case 1:
1889
- i.id = Yt(), i.startTime = t.endTime, a = r[0];
1890
- break;
1891
- case 2:
1892
- i.id = Yt(), i.startTime = De(void 0, lt, r[0]), a = r[1];
1893
- break;
1894
- case 3:
1895
- i.id = Yt(r[0]), i.startTime = De(void 0, lt, r[1]), a = r[2];
1896
- break;
1897
- }
1898
- return a && (i.endTime = En(i.startTime, lt, a, Rt), i.manualEndTime = rt(a, "YYYY-MM-DD", !0).isValid(), Yn(i, lt, zt, Vt)), i;
1899
- }, "compileData"), Ds = /* @__PURE__ */ d(function(t, e) {
1900
- let n;
1901
- e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1902
- const r = n.split(","), i = {};
1903
- $e(r, i, _n);
1904
- for (let a = 0; a < r.length; a++)
1905
- r[a] = r[a].trim();
1906
- switch (r.length) {
1907
- case 1:
1908
- i.id = Yt(), i.startTime = {
1909
- type: "prevTaskEnd",
1910
- id: t
1911
- }, i.endTime = {
1912
- data: r[0]
1913
- };
1914
- break;
1915
- case 2:
1916
- i.id = Yt(), i.startTime = {
1917
- type: "getStartDate",
1918
- startData: r[0]
1919
- }, i.endTime = {
1920
- data: r[1]
1921
- };
1922
- break;
1923
- case 3:
1924
- i.id = Yt(r[0]), i.startTime = {
1925
- type: "getStartDate",
1926
- startData: r[1]
1927
- }, i.endTime = {
1928
- data: r[2]
1929
- };
1930
- break;
1931
- }
1932
- return i;
1933
- }, "parseData"), Me, te, tt = [], In = {}, Ms = /* @__PURE__ */ d(function(t, e) {
1934
- const n = {
1935
- section: It,
1936
- type: It,
1937
- processed: !1,
1938
- manualEndTime: !1,
1939
- renderEndTime: null,
1940
- raw: { data: e },
1941
- task: t,
1942
- classes: []
1943
- }, r = Ds(te, e);
1944
- n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = te, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, n.order = we, we++;
1945
- const i = tt.push(n);
1946
- te = n.id, In[n.id] = i - 1;
1947
- }, "addTask"), Ct = /* @__PURE__ */ d(function(t) {
1948
- const e = In[t];
1949
- return tt[e];
1950
- }, "findTaskById"), Cs = /* @__PURE__ */ d(function(t, e) {
1951
- const n = {
1952
- section: It,
1953
- type: It,
1954
- description: t,
1955
- task: t,
1956
- classes: []
1957
- }, r = ws(Me, e);
1958
- n.startTime = r.startTime, n.endTime = r.endTime, n.id = r.id, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, Me = n, ie.push(n);
1959
- }, "addTaskOrg"), rn = /* @__PURE__ */ d(function() {
1960
- const t = /* @__PURE__ */ d(function(n) {
1961
- const r = tt[n];
1962
- let i = "";
1963
- switch (tt[n].raw.startTime.type) {
1964
- case "prevTaskEnd": {
1965
- const a = Ct(r.prevTaskId);
1966
- r.startTime = a.endTime;
1967
- break;
1968
- }
1969
- case "getStartDate":
1970
- i = De(void 0, lt, tt[n].raw.startTime.startData), i && (tt[n].startTime = i);
1971
- break;
1972
- }
1973
- return tt[n].startTime && (tt[n].endTime = En(
1974
- tt[n].startTime,
1975
- lt,
1976
- tt[n].raw.endTime.data,
1977
- Rt
1978
- ), tt[n].endTime && (tt[n].processed = !0, tt[n].manualEndTime = rt(
1979
- tt[n].raw.endTime.data,
1980
- "YYYY-MM-DD",
1981
- !0
1982
- ).isValid(), Yn(tt[n], lt, zt, Vt))), tt[n].processed;
1983
- }, "compileTask");
1984
- let e = !0;
1985
- for (const [n, r] of tt.entries())
1986
- t(n), e = e && r.processed;
1987
- return e;
1988
- }, "compileTasks"), Ss = /* @__PURE__ */ d(function(t, e) {
1989
- let n = e;
1990
- _t().securityLevel !== "loose" && (n = Zn.sanitizeUrl(e)), t.split(",").forEach(function(r) {
1991
- Ct(r) !== void 0 && (An(r, () => {
1992
- window.open(n, "_self");
1993
- }), Ue.set(r, n));
1994
- }), Ln(t, "clickable");
1995
- }, "setLink"), Ln = /* @__PURE__ */ d(function(t, e) {
1996
- t.split(",").forEach(function(n) {
1997
- let r = Ct(n);
1998
- r !== void 0 && r.classes.push(e);
1999
- });
2000
- }, "setClass"), _s = /* @__PURE__ */ d(function(t, e, n) {
2001
- if (_t().securityLevel !== "loose" || e === void 0)
2002
- return;
2003
- let r = [];
2004
- if (typeof n == "string") {
2005
- r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2006
- for (let a = 0; a < r.length; a++) {
2007
- let c = r[a].trim();
2008
- c.startsWith('"') && c.endsWith('"') && (c = c.substr(1, c.length - 2)), r[a] = c;
2009
- }
2010
- }
2011
- r.length === 0 && r.push(t), Ct(t) !== void 0 && An(t, () => {
2012
- Xn.runFunc(e, ...r);
2013
- });
2014
- }, "setClickFun"), An = /* @__PURE__ */ d(function(t, e) {
2015
- Le.push(
2016
- function() {
2017
- const n = document.querySelector(`[id="${t}"]`);
2018
- n !== null && n.addEventListener("click", function() {
2019
- e();
2020
- });
2021
- },
2022
- function() {
2023
- const n = document.querySelector(`[id="${t}-text"]`);
2024
- n !== null && n.addEventListener("click", function() {
2025
- e();
2026
- });
2027
- }
2028
- );
2029
- }, "pushFun"), Fs = /* @__PURE__ */ d(function(t, e, n) {
2030
- t.split(",").forEach(function(r) {
2031
- _s(r, e, n);
2032
- }), Ln(t, "clickable");
2033
- }, "setClickEvent"), Ys = /* @__PURE__ */ d(function(t) {
2034
- Le.forEach(function(e) {
2035
- e(t);
2036
- });
2037
- }, "bindFunctions"), Us = {
2038
- getConfig: /* @__PURE__ */ d(() => _t().gantt, "getConfig"),
2039
- clear: ji,
2040
- setDateFormat: rs,
2041
- getDateFormat: ls,
2042
- enableInclusiveEndDates: is,
2043
- endDatesAreInclusive: ss,
2044
- enableTopAxis: as,
2045
- topAxisEnabled: os,
2046
- setAxisFormat: Qi,
2047
- getAxisFormat: Ji,
2048
- setTickInterval: Ki,
2049
- getTickInterval: ts,
2050
- setTodayMarker: es,
2051
- getTodayMarker: ns,
2052
- setAccTitle: zn,
2053
- getAccTitle: Vn,
2054
- setDiagramTitle: Pn,
2055
- getDiagramTitle: Nn,
2056
- setDisplayMode: cs,
2057
- getDisplayMode: us,
2058
- setAccDescription: Hn,
2059
- getAccDescription: On,
2060
- addSection: ys,
2061
- getSections: ks,
2062
- getTasks: ps,
2063
- addTask: Ms,
2064
- findTaskById: Ct,
2065
- addTaskOrg: Cs,
2066
- setIncludes: fs,
2067
- getIncludes: ds,
2068
- setExcludes: hs,
2069
- getExcludes: ms,
2070
- setClickEvent: Fs,
2071
- setLink: Ss,
2072
- getLinks: gs,
2073
- bindFunctions: Ys,
2074
- parseDuration: Un,
2075
- isInvalidDate: Fn,
2076
- setWeekday: vs,
2077
- getWeekday: Ts,
2078
- setWeekend: bs
2079
- };
2080
- function $e(t, e, n) {
2081
- let r = !0;
2082
- for (; r; )
2083
- r = !1, n.forEach(function(i) {
2084
- const a = "^\\s*" + i + "\\s*$", c = new RegExp(a);
2085
- t[0].match(c) && (e[i] = !0, t.shift(1), r = !0);
2086
- });
2087
- }
2088
- d($e, "getTaskTags");
2089
- rt.extend(Xi);
2090
- var Es = /* @__PURE__ */ d(function() {
2091
- Tt.debug("Something is calling, setConf, remove the call");
2092
- }, "setConf"), sn = {
2093
- monday: Ht,
2094
- tuesday: pn,
2095
- wednesday: vn,
2096
- thursday: xt,
2097
- friday: Tn,
2098
- saturday: bn,
2099
- sunday: Pt
2100
- }, Is = /* @__PURE__ */ d((t, e) => {
2101
- let n = [...t].map(() => -1 / 0), r = [...t].sort((a, c) => a.startTime - c.startTime || a.order - c.order), i = 0;
2102
- for (const a of r)
2103
- for (let c = 0; c < n.length; c++)
2104
- if (a.startTime >= n[c]) {
2105
- n[c] = a.endTime, a.order = c + e, c > i && (i = c);
2106
- break;
2107
- }
2108
- return i;
2109
- }, "getMaxIntersections"), dt, ve = 1e4, Ls = /* @__PURE__ */ d(function(t, e, n, r) {
2110
- const i = _t().gantt, a = _t().securityLevel;
2111
- let c;
2112
- a === "sandbox" && (c = Zt("#i" + e));
2113
- const m = a === "sandbox" ? Zt(c.nodes()[0].contentDocument.body) : Zt("body"), Y = a === "sandbox" ? c.nodes()[0].contentDocument : document, C = Y.getElementById(e);
2114
- dt = C.parentElement.offsetWidth, dt === void 0 && (dt = 1200), i.useWidth !== void 0 && (dt = i.useWidth);
2115
- const k = r.db.getTasks();
2116
- let L = [];
2117
- for (const h of k)
2118
- L.push(h.type);
2119
- L = y(L);
2120
- const _ = {};
2121
- let S = 2 * i.topPadding;
2122
- if (r.db.getDisplayMode() === "compact" || i.displayMode === "compact") {
2123
- const h = {};
2124
- for (const w of k)
2125
- h[w.section] === void 0 ? h[w.section] = [w] : h[w.section].push(w);
2126
- let D = 0;
2127
- for (const w of Object.keys(h)) {
2128
- const T = Is(h[w], D) + 1;
2129
- D += T, S += T * (i.barHeight + i.barGap), _[w] = T;
2130
- }
2131
- } else {
2132
- S += k.length * (i.barHeight + i.barGap);
2133
- for (const h of L)
2134
- _[h] = k.filter((D) => D.type === h).length;
2135
- }
2136
- C.setAttribute("viewBox", "0 0 " + dt + " " + S);
2137
- const Z = m.select(`[id="${e}"]`), A = Ei().domain([
2138
- er(k, function(h) {
2139
- return h.startTime;
2140
- }),
2141
- tr(k, function(h) {
2142
- return h.endTime;
2143
- })
2144
- ]).rangeRound([0, dt - i.leftPadding - i.rightPadding]);
2145
- function U(h, D) {
2146
- const w = h.startTime, T = D.startTime;
2147
- let v = 0;
2148
- return w > T ? v = 1 : w < T && (v = -1), v;
2149
- }
2150
- d(U, "taskCompare"), k.sort(U), I(k, dt, S), Rn(Z, S, dt, i.useMaxWidth), Z.append("text").text(r.db.getDiagramTitle()).attr("x", dt / 2).attr("y", i.titleTopMargin).attr("class", "titleText");
2151
- function I(h, D, w) {
2152
- const T = i.barHeight, v = T + i.barGap, u = i.topPadding, f = i.leftPadding, b = Jn().domain([0, L.length]).range(["#00B9FA", "#F95002"]).interpolate(yr);
2153
- W(
2154
- v,
2155
- u,
2156
- f,
2157
- D,
2158
- w,
2159
- h,
2160
- r.db.getExcludes(),
2161
- r.db.getIncludes()
2162
- ), j(f, u, D, w), N(h, v, u, f, T, b, D), p(v, u), g(f, u, D, w);
2163
- }
2164
- d(I, "makeGantt");
2165
- function N(h, D, w, T, v, u, f) {
2166
- h.sort((s, E) => s.vert === E.vert ? 0 : s.vert ? 1 : -1);
2167
- const x = [...new Set(h.map((s) => s.order))].map((s) => h.find((E) => E.order === s));
2168
- Z.append("g").selectAll("rect").data(x).enter().append("rect").attr("x", 0).attr("y", function(s, E) {
2169
- return E = s.order, E * D + w - 2;
2170
- }).attr("width", function() {
2171
- return f - i.rightPadding / 2;
2172
- }).attr("height", D).attr("class", function(s) {
2173
- for (const [E, R] of L.entries())
2174
- if (s.type === R)
2175
- return "section section" + E % i.numberSectionStyles;
2176
- return "section section0";
2177
- }).enter();
2178
- const F = Z.append("g").selectAll("rect").data(h).enter(), o = r.db.getLinks();
2179
- if (F.append("rect").attr("id", function(s) {
2180
- return s.id;
2181
- }).attr("rx", 3).attr("ry", 3).attr("x", function(s) {
2182
- return s.milestone ? A(s.startTime) + T + 0.5 * (A(s.endTime) - A(s.startTime)) - 0.5 * v : A(s.startTime) + T;
2183
- }).attr("y", function(s, E) {
2184
- return E = s.order, s.vert ? i.gridLineStartPadding : E * D + w;
2185
- }).attr("width", function(s) {
2186
- return s.milestone ? v : s.vert ? 0.08 * v : A(s.renderEndTime || s.endTime) - A(s.startTime);
2187
- }).attr("height", function(s) {
2188
- return s.vert ? k.length * (i.barHeight + i.barGap) + i.barHeight * 2 : v;
2189
- }).attr("transform-origin", function(s, E) {
2190
- return E = s.order, (A(s.startTime) + T + 0.5 * (A(s.endTime) - A(s.startTime))).toString() + "px " + (E * D + w + 0.5 * v).toString() + "px";
2191
- }).attr("class", function(s) {
2192
- const E = "task";
2193
- let R = "";
2194
- s.classes.length > 0 && (R = s.classes.join(" "));
2195
- let z = 0;
2196
- for (const [K, O] of L.entries())
2197
- s.type === O && (z = K % i.numberSectionStyles);
2198
- let P = "";
2199
- return s.active ? s.crit ? P += " activeCrit" : P = " active" : s.done ? s.crit ? P = " doneCrit" : P = " done" : s.crit && (P += " crit"), P.length === 0 && (P = " task"), s.milestone && (P = " milestone " + P), s.vert && (P = " vert " + P), P += z, P += " " + R, E + P;
2200
- }), F.append("text").attr("id", function(s) {
2201
- return s.id + "-text";
2202
- }).text(function(s) {
2203
- return s.task;
2204
- }).attr("font-size", i.fontSize).attr("x", function(s) {
2205
- let E = A(s.startTime), R = A(s.renderEndTime || s.endTime);
2206
- if (s.milestone && (E += 0.5 * (A(s.endTime) - A(s.startTime)) - 0.5 * v, R = E + v), s.vert)
2207
- return A(s.startTime) + T;
2208
- const z = this.getBBox().width;
2209
- return z > R - E ? R + z + 1.5 * i.leftPadding > f ? E + T - 5 : R + T + 5 : (R - E) / 2 + E + T;
2210
- }).attr("y", function(s, E) {
2211
- return s.vert ? i.gridLineStartPadding + k.length * (i.barHeight + i.barGap) + 60 : (E = s.order, E * D + i.barHeight / 2 + (i.fontSize / 2 - 2) + w);
2212
- }).attr("text-height", v).attr("class", function(s) {
2213
- const E = A(s.startTime);
2214
- let R = A(s.endTime);
2215
- s.milestone && (R = E + v);
2216
- const z = this.getBBox().width;
2217
- let P = "";
2218
- s.classes.length > 0 && (P = s.classes.join(" "));
2219
- let K = 0;
2220
- for (const [st, M] of L.entries())
2221
- s.type === M && (K = st % i.numberSectionStyles);
2222
- let O = "";
2223
- return s.active && (s.crit ? O = "activeCritText" + K : O = "activeText" + K), s.done ? s.crit ? O = O + " doneCritText" + K : O = O + " doneText" + K : s.crit && (O = O + " critText" + K), s.milestone && (O += " milestoneText"), s.vert && (O += " vertText"), z > R - E ? R + z + 1.5 * i.leftPadding > f ? P + " taskTextOutsideLeft taskTextOutside" + K + " " + O : P + " taskTextOutsideRight taskTextOutside" + K + " " + O + " width-" + z : P + " taskText taskText" + K + " " + O + " width-" + z;
2224
- }), _t().securityLevel === "sandbox") {
2225
- let s;
2226
- s = Zt("#i" + e);
2227
- const E = s.nodes()[0].contentDocument;
2228
- F.filter(function(R) {
2229
- return o.has(R.id);
2230
- }).each(function(R) {
2231
- var z = E.querySelector("#" + R.id), P = E.querySelector("#" + R.id + "-text");
2232
- const K = z.parentNode;
2233
- var O = E.createElement("a");
2234
- O.setAttribute("xlink:href", o.get(R.id)), O.setAttribute("target", "_top"), K.appendChild(O), O.appendChild(z), O.appendChild(P);
2235
- });
2236
- }
2237
- }
2238
- d(N, "drawRects");
2239
- function W(h, D, w, T, v, u, f, b) {
2240
- if (f.length === 0 && b.length === 0)
2241
- return;
2242
- let x, F;
2243
- for (const { startTime: z, endTime: P } of u)
2244
- (x === void 0 || z < x) && (x = z), (F === void 0 || P > F) && (F = P);
2245
- if (!x || !F)
2246
- return;
2247
- if (rt(F).diff(rt(x), "year") > 5) {
2248
- Tt.warn(
2249
- "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
2250
- );
2251
- return;
2252
- }
2253
- const o = r.db.getDateFormat(), X = [];
2254
- let s = null, E = rt(x);
2255
- for (; E.valueOf() <= F; )
2256
- r.db.isInvalidDate(E, o, f, b) ? s ? s.end = E : s = {
2257
- start: E,
2258
- end: E
2259
- } : s && (X.push(s), s = null), E = E.add(1, "d");
2260
- Z.append("g").selectAll("rect").data(X).enter().append("rect").attr("id", (z) => "exclude-" + z.start.format("YYYY-MM-DD")).attr("x", (z) => A(z.start.startOf("day")) + w).attr("y", i.gridLineStartPadding).attr("width", (z) => A(z.end.endOf("day")) - A(z.start.startOf("day"))).attr("height", v - D - i.gridLineStartPadding).attr("transform-origin", function(z, P) {
2261
- return (A(z.start) + w + 0.5 * (A(z.end) - A(z.start))).toString() + "px " + (P * h + 0.5 * v).toString() + "px";
2262
- }).attr("class", "exclude-range");
2263
- }
2264
- d(W, "drawExcludeDays");
2265
- function q(h, D, w, T) {
2266
- if (w <= 0 || h > D)
2267
- return 1 / 0;
2268
- const v = D - h, u = rt.duration({ [T ?? "day"]: w }).asMilliseconds();
2269
- return u <= 0 ? 1 / 0 : Math.ceil(v / u);
2270
- }
2271
- d(q, "getEstimatedTickCount");
2272
- function j(h, D, w, T) {
2273
- const v = r.db.getDateFormat(), u = r.db.getAxisFormat();
2274
- let f;
2275
- u ? f = u : v === "D" ? f = "%d" : f = i.axisFormat ?? "%Y-%m-%d";
2276
- let b = ur(A).tickSize(-T + D + i.gridLineStartPadding).tickFormat(re(f));
2277
- const F = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
2278
- r.db.getTickInterval() || i.tickInterval
2279
- );
2280
- if (F !== null) {
2281
- const o = parseInt(F[1], 10);
2282
- if (isNaN(o) || o <= 0)
2283
- Tt.warn(
2284
- `Invalid tick interval value: "${F[1]}". Skipping custom tick interval.`
2285
- );
2286
- else {
2287
- const X = F[2], s = r.db.getWeekday() || i.weekday, E = A.domain(), R = E[0], z = E[1], P = q(R, z, o, X);
2288
- if (P > ve)
2289
- Tt.warn(
2290
- `The tick interval "${o}${X}" would generate ${P} ticks, which exceeds the maximum allowed (${ve}). This may indicate an invalid date or time range. Skipping custom tick interval.`
2291
- );
2292
- else
2293
- switch (X) {
2294
- case "millisecond":
2295
- b.ticks(Ut.every(o));
2296
- break;
2297
- case "second":
2298
- b.ticks(vt.every(o));
2299
- break;
2300
- case "minute":
2301
- b.ticks($t.every(o));
2302
- break;
2303
- case "hour":
2304
- b.ticks(Ot.every(o));
2305
- break;
2306
- case "day":
2307
- b.ticks(bt.every(o));
2308
- break;
2309
- case "week":
2310
- b.ticks(sn[s].every(o));
2311
- break;
2312
- case "month":
2313
- b.ticks(Nt.every(o));
2314
- break;
2315
- }
2316
- }
2317
- }
2318
- if (Z.append("g").attr("class", "grid").attr("transform", "translate(" + h + ", " + (T - 50) + ")").call(b).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || i.topAxis) {
2319
- let o = cr(A).tickSize(-T + D + i.gridLineStartPadding).tickFormat(re(f));
2320
- if (F !== null) {
2321
- const X = parseInt(F[1], 10);
2322
- if (isNaN(X) || X <= 0)
2323
- Tt.warn(
2324
- `Invalid tick interval value: "${F[1]}". Skipping custom tick interval.`
2325
- );
2326
- else {
2327
- const s = F[2], E = r.db.getWeekday() || i.weekday, R = A.domain(), z = R[0], P = R[1];
2328
- if (q(z, P, X, s) <= ve)
2329
- switch (s) {
2330
- case "millisecond":
2331
- o.ticks(Ut.every(X));
2332
- break;
2333
- case "second":
2334
- o.ticks(vt.every(X));
2335
- break;
2336
- case "minute":
2337
- o.ticks($t.every(X));
2338
- break;
2339
- case "hour":
2340
- o.ticks(Ot.every(X));
2341
- break;
2342
- case "day":
2343
- o.ticks(bt.every(X));
2344
- break;
2345
- case "week":
2346
- o.ticks(sn[E].every(X));
2347
- break;
2348
- case "month":
2349
- o.ticks(Nt.every(X));
2350
- break;
2351
- }
2352
- }
2353
- }
2354
- Z.append("g").attr("class", "grid").attr("transform", "translate(" + h + ", " + D + ")").call(o).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2355
- }
2356
- }
2357
- d(j, "makeGrid");
2358
- function p(h, D) {
2359
- let w = 0;
2360
- const T = Object.keys(_).map((v) => [v, _[v]]);
2361
- Z.append("g").selectAll("text").data(T).enter().append(function(v) {
2362
- const u = v[0].split(qn.lineBreakRegex), f = -(u.length - 1) / 2, b = Y.createElementNS("http://www.w3.org/2000/svg", "text");
2363
- b.setAttribute("dy", f + "em");
2364
- for (const [x, F] of u.entries()) {
2365
- const o = Y.createElementNS("http://www.w3.org/2000/svg", "tspan");
2366
- o.setAttribute("alignment-baseline", "central"), o.setAttribute("x", "10"), x > 0 && o.setAttribute("dy", "1em"), o.textContent = F, b.appendChild(o);
2367
- }
2368
- return b;
2369
- }).attr("x", 10).attr("y", function(v, u) {
2370
- if (u > 0)
2371
- for (let f = 0; f < u; f++)
2372
- return w += T[u - 1][1], v[1] * h / 2 + w * h + D;
2373
- else
2374
- return v[1] * h / 2 + D;
2375
- }).attr("font-size", i.sectionFontSize).attr("class", function(v) {
2376
- for (const [u, f] of L.entries())
2377
- if (v[0] === f)
2378
- return "sectionTitle sectionTitle" + u % i.numberSectionStyles;
2379
- return "sectionTitle";
2380
- });
2381
- }
2382
- d(p, "vertLabels");
2383
- function g(h, D, w, T) {
2384
- const v = r.db.getTodayMarker();
2385
- if (v === "off")
2386
- return;
2387
- const u = Z.append("g").attr("class", "today"), f = /* @__PURE__ */ new Date(), b = u.append("line");
2388
- b.attr("x1", A(f) + h).attr("x2", A(f) + h).attr("y1", i.titleTopMargin).attr("y2", T - i.titleTopMargin).attr("class", "today"), v !== "" && b.attr("style", v.replace(/,/g, ";"));
2389
- }
2390
- d(g, "drawToday");
2391
- function y(h) {
2392
- const D = {}, w = [];
2393
- for (let T = 0, v = h.length; T < v; ++T)
2394
- Object.prototype.hasOwnProperty.call(D, h[T]) || (D[h[T]] = !0, w.push(h[T]));
2395
- return w;
2396
- }
2397
- d(y, "checkUnique");
2398
- }, "draw"), As = {
2399
- setConf: Es,
2400
- draw: Ls
2401
- }, Ws = /* @__PURE__ */ d((t) => `
2402
- .mermaid-main-font {
2403
- font-family: ${t.fontFamily};
2404
- }
2405
-
2406
- .exclude-range {
2407
- fill: ${t.excludeBkgColor};
2408
- }
2409
-
2410
- .section {
2411
- stroke: none;
2412
- opacity: 0.2;
2413
- }
2414
-
2415
- .section0 {
2416
- fill: ${t.sectionBkgColor};
2417
- }
2418
-
2419
- .section2 {
2420
- fill: ${t.sectionBkgColor2};
2421
- }
2422
-
2423
- .section1,
2424
- .section3 {
2425
- fill: ${t.altSectionBkgColor};
2426
- opacity: 0.2;
2427
- }
2428
-
2429
- .sectionTitle0 {
2430
- fill: ${t.titleColor};
2431
- }
2432
-
2433
- .sectionTitle1 {
2434
- fill: ${t.titleColor};
2435
- }
2436
-
2437
- .sectionTitle2 {
2438
- fill: ${t.titleColor};
2439
- }
2440
-
2441
- .sectionTitle3 {
2442
- fill: ${t.titleColor};
2443
- }
2444
-
2445
- .sectionTitle {
2446
- text-anchor: start;
2447
- font-family: ${t.fontFamily};
2448
- }
2449
-
2450
-
2451
- /* Grid and axis */
2452
-
2453
- .grid .tick {
2454
- stroke: ${t.gridColor};
2455
- opacity: 0.8;
2456
- shape-rendering: crispEdges;
2457
- }
2458
-
2459
- .grid .tick text {
2460
- font-family: ${t.fontFamily};
2461
- fill: ${t.textColor};
2462
- }
2463
-
2464
- .grid path {
2465
- stroke-width: 0;
2466
- }
2467
-
2468
-
2469
- /* Today line */
2470
-
2471
- .today {
2472
- fill: none;
2473
- stroke: ${t.todayLineColor};
2474
- stroke-width: 2px;
2475
- }
2476
-
2477
-
2478
- /* Task styling */
2479
-
2480
- /* Default task */
2481
-
2482
- .task {
2483
- stroke-width: 2;
2484
- }
2485
-
2486
- .taskText {
2487
- text-anchor: middle;
2488
- font-family: ${t.fontFamily};
2489
- }
2490
-
2491
- .taskTextOutsideRight {
2492
- fill: ${t.taskTextDarkColor};
2493
- text-anchor: start;
2494
- font-family: ${t.fontFamily};
2495
- }
2496
-
2497
- .taskTextOutsideLeft {
2498
- fill: ${t.taskTextDarkColor};
2499
- text-anchor: end;
2500
- }
2501
-
2502
-
2503
- /* Special case clickable */
2504
-
2505
- .task.clickable {
2506
- cursor: pointer;
2507
- }
2508
-
2509
- .taskText.clickable {
2510
- cursor: pointer;
2511
- fill: ${t.taskTextClickableColor} !important;
2512
- font-weight: bold;
2513
- }
2514
-
2515
- .taskTextOutsideLeft.clickable {
2516
- cursor: pointer;
2517
- fill: ${t.taskTextClickableColor} !important;
2518
- font-weight: bold;
2519
- }
2520
-
2521
- .taskTextOutsideRight.clickable {
2522
- cursor: pointer;
2523
- fill: ${t.taskTextClickableColor} !important;
2524
- font-weight: bold;
2525
- }
2526
-
2527
-
2528
- /* Specific task settings for the sections*/
2529
-
2530
- .taskText0,
2531
- .taskText1,
2532
- .taskText2,
2533
- .taskText3 {
2534
- fill: ${t.taskTextColor};
2535
- }
2536
-
2537
- .task0,
2538
- .task1,
2539
- .task2,
2540
- .task3 {
2541
- fill: ${t.taskBkgColor};
2542
- stroke: ${t.taskBorderColor};
2543
- }
2544
-
2545
- .taskTextOutside0,
2546
- .taskTextOutside2
2547
- {
2548
- fill: ${t.taskTextOutsideColor};
2549
- }
2550
-
2551
- .taskTextOutside1,
2552
- .taskTextOutside3 {
2553
- fill: ${t.taskTextOutsideColor};
2554
- }
2555
-
2556
-
2557
- /* Active task */
2558
-
2559
- .active0,
2560
- .active1,
2561
- .active2,
2562
- .active3 {
2563
- fill: ${t.activeTaskBkgColor};
2564
- stroke: ${t.activeTaskBorderColor};
2565
- }
2566
-
2567
- .activeText0,
2568
- .activeText1,
2569
- .activeText2,
2570
- .activeText3 {
2571
- fill: ${t.taskTextDarkColor} !important;
2572
- }
2573
-
2574
-
2575
- /* Completed task */
2576
-
2577
- .done0,
2578
- .done1,
2579
- .done2,
2580
- .done3 {
2581
- stroke: ${t.doneTaskBorderColor};
2582
- fill: ${t.doneTaskBkgColor};
2583
- stroke-width: 2;
2584
- }
2585
-
2586
- .doneText0,
2587
- .doneText1,
2588
- .doneText2,
2589
- .doneText3 {
2590
- fill: ${t.taskTextDarkColor} !important;
2591
- }
2592
-
2593
-
2594
- /* Tasks on the critical line */
2595
-
2596
- .crit0,
2597
- .crit1,
2598
- .crit2,
2599
- .crit3 {
2600
- stroke: ${t.critBorderColor};
2601
- fill: ${t.critBkgColor};
2602
- stroke-width: 2;
2603
- }
2604
-
2605
- .activeCrit0,
2606
- .activeCrit1,
2607
- .activeCrit2,
2608
- .activeCrit3 {
2609
- stroke: ${t.critBorderColor};
2610
- fill: ${t.activeTaskBkgColor};
2611
- stroke-width: 2;
2612
- }
2613
-
2614
- .doneCrit0,
2615
- .doneCrit1,
2616
- .doneCrit2,
2617
- .doneCrit3 {
2618
- stroke: ${t.critBorderColor};
2619
- fill: ${t.doneTaskBkgColor};
2620
- stroke-width: 2;
2621
- cursor: pointer;
2622
- shape-rendering: crispEdges;
2623
- }
2624
-
2625
- .milestone {
2626
- transform: rotate(45deg) scale(0.8,0.8);
2627
- }
2628
-
2629
- .milestoneText {
2630
- font-style: italic;
2631
- }
2632
- .doneCritText0,
2633
- .doneCritText1,
2634
- .doneCritText2,
2635
- .doneCritText3 {
2636
- fill: ${t.taskTextDarkColor} !important;
2637
- }
2638
-
2639
- .vert {
2640
- stroke: ${t.vertLineColor};
2641
- }
2642
-
2643
- .vertText {
2644
- font-size: 15px;
2645
- text-anchor: middle;
2646
- fill: ${t.vertLineColor} !important;
2647
- }
2648
-
2649
- .activeCritText0,
2650
- .activeCritText1,
2651
- .activeCritText2,
2652
- .activeCritText3 {
2653
- fill: ${t.taskTextDarkColor} !important;
2654
- }
2655
-
2656
- .titleText {
2657
- text-anchor: middle;
2658
- font-size: 18px;
2659
- fill: ${t.titleColor || t.textColor};
2660
- font-family: ${t.fontFamily};
2661
- }
2662
- `, "getStyles"), $s = Ws, Ps = {
2663
- parser: Gi,
2664
- db: Us,
2665
- renderer: As,
2666
- styles: $s
2667
- };
2668
- export {
2669
- Ps as diagram
2670
- };