@marimo-team/islands 0.14.18-dev9 → 0.15.1-dev10

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 (1233) hide show
  1. package/dist/{ConnectedDataExplorerComponent-sKkoI7J_.js → ConnectedDataExplorerComponent-BIDHfFwH.js} +2 -2
  2. package/dist/{ImageComparisonComponent-TPiJpnLF.js → ImageComparisonComponent-DNmskQsB.js} +1 -1
  3. package/dist/{_baseUniq-CNdqwfN5.js → _baseUniq-BerGWgvp.js} +54 -54
  4. package/dist/{any-language-editor-DYK8XIV9.js → any-language-editor-Doic3dKC.js} +1 -1
  5. package/dist/{architectureDiagram-SUXI7LT5-BiIH4UYX.js → architectureDiagram-KFL7JDKH-DX7Dfxnr.js} +2056 -2033
  6. package/dist/assets/{worker-CvLTHCt4.js → worker-COGufAQn.js} +701 -694
  7. package/dist/{blockDiagram-6J76NXCF-BpnWfh2V.js → blockDiagram-ZYB65J3Q-BJOFl2aM.js} +874 -867
  8. package/dist/{c4Diagram-6F6E4RAY-D29QE7hB.js → c4Diagram-AAMF2YG6-x0qS411O.js} +2 -2
  9. package/dist/{channel-Bcgertj0.js → channel-C6r9bPk3.js} +1 -1
  10. package/dist/{chunk-353BL4L5--CiHV6cN.js → chunk-ANTBXLJU-CvP1oYb6.js} +1 -1
  11. package/dist/{chunk-AACKK3MU-CBPZxRq5.js → chunk-FHKO5MBM-C8Qc-5zQ.js} +1 -1
  12. package/dist/{chunk-E2GYISFI-m0FySePo.js → chunk-GLLZNHP4-BQrm-sfi.js} +1 -1
  13. package/dist/{chunk-SZ463SBG-DKPaz0ti.js → chunk-JBRWN2VN-BaXj52HO.js} +101 -100
  14. package/dist/{chunk-OW32GOEJ-DWr9cx7S.js → chunk-LXBSTHXV-gjraHKLG.js} +3 -3
  15. package/dist/{chunk-SKB7J2MH-Dmp2cNaO.js → chunk-NRVI72HA-DMBGbqKL.js} +1 -1
  16. package/dist/{chunk-67H74DCK-BQWB3que.js → chunk-OMD6QJNC-BYhvZR0Q.js} +1 -1
  17. package/dist/{chunk-BFAMUDN2-Bc32Nopu.js → chunk-WVR4S24B-ZjtqNnTl.js} +1 -1
  18. package/dist/{classDiagram-v2-YAWTLIQI-GHh_bW8b.js → classDiagram-3BZAVTQC-DWYE4NoQ.js} +2 -2
  19. package/dist/{classDiagram-M3E45YP4-GHh_bW8b.js → classDiagram-v2-QTMF73CY-DWYE4NoQ.js} +2 -2
  20. package/dist/{clone-_N6EM6Op.js → clone-dxPIOZ-r.js} +1 -1
  21. package/dist/common-keywords-BefPf8TA.js +7 -0
  22. package/dist/{cytoscape.esm-DHKdpbSh.js → cytoscape.esm-BYnVVhJX.js} +4462 -4345
  23. package/dist/{dagre-JOIXM2OF-D3Ixmsdf.js → dagre-2BBEFEWP-CzHJ4OhK.js} +6 -6
  24. package/dist/{data-grid-overlay-editor-BZIlBk_2.js → data-grid-overlay-editor-XeDv35OR.js} +2 -2
  25. package/dist/{diagram-VMROVX33-Bcg30UDf.js → diagram-4IRLE6MV-BClcg9HA.js} +5 -5
  26. package/dist/diagram-GUPCWM2R-B_6JECpn.js +144 -0
  27. package/dist/{diagram-ZTM2IBQH-BhmyIBE-.js → diagram-RP2FKANI-B_7Xh4fv.js} +3 -3
  28. package/dist/duckdb-keywords-WTV2Iln-.js +7 -0
  29. package/dist/{erDiagram-3M52JZNH-y6YXLXuL.js → erDiagram-HZWUO2LU-DT9UvdxG.js} +4 -4
  30. package/dist/{flowDiagram-KYDEHFYC-xkSHpgfV.js → flowDiagram-THRYKUMA-mFTSeIk7.js} +61 -61
  31. package/dist/{ganttDiagram-EK5VF46D-CjlWOxxR.js → ganttDiagram-WV7ZQ7D5-BY3c9UTU.js} +562 -565
  32. package/dist/{gitGraphDiagram-GW3U2K7C-BOFtN_k5.js → gitGraphDiagram-OJR772UL-zoDq5W94.js} +4 -4
  33. package/dist/{glide-data-editor-DSqE1MGb.js → glide-data-editor-C_RlTnet.js} +3 -3
  34. package/dist/{graph-CYaaS8YP.js → graph-CufF5hzB.js} +3 -3
  35. package/dist/{index-B5bbjNeG.js → index-Bdw9CplZ.js} +1 -1
  36. package/dist/{index-CpWjEJkV.js → index-CO0vo1K7.js} +144 -144
  37. package/dist/index-CzG80T92.js +40315 -0
  38. package/dist/{index-CK3137W-.js → index-V6AHCVvK.js} +1 -1
  39. package/dist/{index-CGh27NE4.js → index-ezOrnRNU.js} +1 -1
  40. package/dist/{infoDiagram-LHK5PUON-C9568Giu.js → infoDiagram-6WOFNB3A-ChWW8LLZ.js} +2 -2
  41. package/dist/{journeyDiagram-EWQZEKCU-BCDjdWlE.js → journeyDiagram-FFXJYRFH-B5tIHsz4.js} +3 -3
  42. package/dist/{kanban-definition-ZSS6B67P-DJv26ypt.js → kanban-definition-KOZQBZVT-CT4S8AJD.js} +2 -2
  43. package/dist/{layout-CPN5719K.js → layout-DEnv2D-P.js} +35 -35
  44. package/dist/{linear-qwYbqeyR.js → linear-Bii2oeTZ.js} +19 -19
  45. package/dist/{main-BiZBHBEd.js → main-C81Qd2DK.js} +41523 -40156
  46. package/dist/main.js +1 -1
  47. package/dist/{mermaid-CLsxmXkQ.js → mermaid-CTBiBoaH.js} +4060 -3954
  48. package/dist/{min-CL5SEDkT.js → min-DqeIcY6U.js} +14 -14
  49. package/dist/{mindmap-definition-6CBA2TL7-Bbh3fuli.js → mindmap-definition-LNHGMQRG-BsmOiQJ4.js} +3 -3
  50. package/dist/{number-overlay-editor-D5mnbuyJ.js → number-overlay-editor-BHC5X-Lb.js} +2 -2
  51. package/dist/pieDiagram-DBDJKBY4-lxeLW5ty.js +162 -0
  52. package/dist/{quadrantDiagram-2OG54O6I-Cc8BnfHa.js → quadrantDiagram-YPSRARAO-CI2Xnnw_.js} +2 -2
  53. package/dist/{react-plotly-D3sBLSao.js → react-plotly-Dc87nM_n.js} +1 -1
  54. package/dist/{requirementDiagram-QOLK2EJ7-XP3SJztJ.js → requirementDiagram-EGVEC5DT-DnkoJ9T9.js} +3 -3
  55. package/dist/{sankeyDiagram-4UZDY2LN-CLfl4x5B.js → sankeyDiagram-HRAUVNP4-D_qWNV3j.js} +11 -9
  56. package/dist/{sequenceDiagram-SKLFT4DO-B6uZ2TLe.js → sequenceDiagram-WFGC7UMF-BWKW7aPY.js} +4 -4
  57. package/dist/{slides-component-Bb8CIGfJ.js → slides-component--9d0imfh.js} +26 -26
  58. package/dist/{stateDiagram-MI5ZYTHO-BkZswbX2.js → stateDiagram-UUKSUZ4H-CoPA3raY.js} +4 -4
  59. package/dist/{stateDiagram-v2-5AN5P6BG-DotZR8CQ.js → stateDiagram-v2-EYPG3UTE-6owwpkmY.js} +2 -2
  60. package/dist/{time-Bys_HZaY.js → time-B0f3H4v6.js} +2 -2
  61. package/dist/{timeline-definition-MYPXXCX6-bVR0nW5y.js → timeline-definition-3HZDQTIS-DogrRgC9.js} +1 -1
  62. package/dist/{treemap-75Q7IDZK-CmZmDu3A.js → treemap-75Q7IDZK-DlQO6GtH.js} +131 -131
  63. package/dist/{vega-component-DLlF3Y5o.js → vega-component-CyP-TV60.js} +2 -2
  64. package/dist/{xychartDiagram-H2YORKM3-C9HzjkZl.js → xychartDiagram-FDP5SA34-CRJjfJQa.js} +36 -34
  65. package/package.json +11 -6
  66. package/src/README.md +18 -0
  67. package/src/__mocks__/common.ts +160 -0
  68. package/src/__mocks__/notebook.ts +76 -0
  69. package/src/__mocks__/requests.ts +72 -0
  70. package/src/__mocks__/tracebacks.ts +32 -0
  71. package/src/__tests__/CellStatus.test.tsx +263 -0
  72. package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +523 -0
  73. package/src/__tests__/chat-utils.test.ts +234 -0
  74. package/src/__tests__/lru.test.ts +74 -0
  75. package/src/__tests__/main.test.tsx +174 -0
  76. package/src/__tests__/setup.ts +17 -0
  77. package/src/__tests__/test-helpers.ts +24 -0
  78. package/src/assets/circle-check.ico +0 -0
  79. package/src/assets/circle-play.ico +0 -0
  80. package/src/assets/circle-x.ico +0 -0
  81. package/src/assets/gradient.png +0 -0
  82. package/src/assets/icon-16x16.png +0 -0
  83. package/src/assets/icon-32x32.png +0 -0
  84. package/src/assets/noise.png +0 -0
  85. package/src/components/ai/ai-model-dropdown.tsx +405 -0
  86. package/src/components/ai/ai-provider-icon.tsx +54 -0
  87. package/src/components/app-config/ai-config.tsx +855 -0
  88. package/src/components/app-config/app-config-button.tsx +100 -0
  89. package/src/components/app-config/app-config-form.tsx +307 -0
  90. package/src/components/app-config/common.tsx +48 -0
  91. package/src/components/app-config/constants.ts +13 -0
  92. package/src/components/app-config/incorrect-model-id.tsx +43 -0
  93. package/src/components/app-config/is-overridden.tsx +119 -0
  94. package/src/components/app-config/optional-features.tsx +251 -0
  95. package/src/components/app-config/state.ts +18 -0
  96. package/src/components/app-config/user-config-form.tsx +1361 -0
  97. package/src/components/audio/audio-recorder.tsx +63 -0
  98. package/src/components/buttons/clear-button.tsx +23 -0
  99. package/src/components/buttons/undo-button.tsx +35 -0
  100. package/src/components/chat/chat-panel.tsx +720 -0
  101. package/src/components/chat/markdown-renderer.tsx +217 -0
  102. package/src/components/chat/reasoning-accordion.tsx +50 -0
  103. package/src/components/chat/tool-call-accordion.tsx +118 -0
  104. package/src/components/data-table/SearchBar.tsx +66 -0
  105. package/src/components/data-table/TableActions.tsx +183 -0
  106. package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +1079 -0
  107. package/src/components/data-table/__tests__/chart-spec-model.test.ts +707 -0
  108. package/src/components/data-table/__tests__/column_formatting.test.ts +115 -0
  109. package/src/components/data-table/__tests__/columns.test.tsx +341 -0
  110. package/src/components/data-table/__tests__/data-table.test.tsx +60 -0
  111. package/src/components/data-table/__tests__/pagination.test.tsx +152 -0
  112. package/src/components/data-table/__tests__/types.test.ts +44 -0
  113. package/src/components/data-table/__tests__/url-detector.test.tsx +169 -0
  114. package/src/components/data-table/__tests__/useColumnPinning.test.ts +76 -0
  115. package/src/components/data-table/cell-selection/__tests__/feature.test.ts +187 -0
  116. package/src/components/data-table/cell-selection/feature.ts +123 -0
  117. package/src/components/data-table/cell-selection/types.ts +49 -0
  118. package/src/components/data-table/cell-styling/feature.ts +40 -0
  119. package/src/components/data-table/cell-styling/types.ts +26 -0
  120. package/src/components/data-table/charts/README.md +65 -0
  121. package/src/components/data-table/charts/__tests__/__snapshots__/spec-snapshot.test.ts.snap +47 -0
  122. package/src/components/data-table/charts/__tests__/altair-generator.test.ts +425 -0
  123. package/src/components/data-table/charts/__tests__/renderer.test.ts +20 -0
  124. package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +83 -0
  125. package/src/components/data-table/charts/__tests__/spec.test.ts +997 -0
  126. package/src/components/data-table/charts/__tests__/storage.test.ts +103 -0
  127. package/src/components/data-table/charts/chart-spec/altair-generator.ts +162 -0
  128. package/src/components/data-table/charts/chart-spec/encodings.ts +173 -0
  129. package/src/components/data-table/charts/chart-spec/spec.ts +345 -0
  130. package/src/components/data-table/charts/chart-spec/tooltips.ts +168 -0
  131. package/src/components/data-table/charts/chart-spec/types.ts +77 -0
  132. package/src/components/data-table/charts/charts.tsx +492 -0
  133. package/src/components/data-table/charts/components/chart-items.tsx +369 -0
  134. package/src/components/data-table/charts/components/chart-states.tsx +37 -0
  135. package/src/components/data-table/charts/components/form-fields.tsx +872 -0
  136. package/src/components/data-table/charts/components/layouts.tsx +118 -0
  137. package/src/components/data-table/charts/constants.ts +159 -0
  138. package/src/components/data-table/charts/context.ts +20 -0
  139. package/src/components/data-table/charts/forms/common-chart.tsx +202 -0
  140. package/src/components/data-table/charts/forms/heatmap.tsx +44 -0
  141. package/src/components/data-table/charts/forms/pie.tsx +70 -0
  142. package/src/components/data-table/charts/lazy-chart.tsx +56 -0
  143. package/src/components/data-table/charts/schemas.ts +140 -0
  144. package/src/components/data-table/charts/storage.ts +88 -0
  145. package/src/components/data-table/charts/types.ts +124 -0
  146. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +227 -0
  147. package/src/components/data-table/column-formatting/feature.ts +247 -0
  148. package/src/components/data-table/column-formatting/types.ts +54 -0
  149. package/src/components/data-table/column-header.tsx +672 -0
  150. package/src/components/data-table/column-summary/chart-skeleton.tsx +57 -0
  151. package/src/components/data-table/column-summary/chart-spec-model.tsx +916 -0
  152. package/src/components/data-table/column-summary/column-summary.tsx +166 -0
  153. package/src/components/data-table/column-summary/legacy-chart-spec.ts +242 -0
  154. package/src/components/data-table/column-summary/utils.ts +142 -0
  155. package/src/components/data-table/column-wrapping/feature.ts +62 -0
  156. package/src/components/data-table/column-wrapping/types.ts +29 -0
  157. package/src/components/data-table/columns.tsx +528 -0
  158. package/src/components/data-table/copy-column/feature.ts +27 -0
  159. package/src/components/data-table/copy-column/types.ts +19 -0
  160. package/src/components/data-table/data-table.tsx +298 -0
  161. package/src/components/data-table/date-popover.tsx +146 -0
  162. package/src/components/data-table/download-actions.tsx +186 -0
  163. package/src/components/data-table/filter-pills.tsx +120 -0
  164. package/src/components/data-table/filters.ts +202 -0
  165. package/src/components/data-table/focus-row/feature.ts +41 -0
  166. package/src/components/data-table/focus-row/types.ts +32 -0
  167. package/src/components/data-table/header-items.tsx +295 -0
  168. package/src/components/data-table/hooks/use-column-pinning.ts +51 -0
  169. package/src/components/data-table/hooks/use-panel-ownership.ts +98 -0
  170. package/src/components/data-table/loading-table.tsx +56 -0
  171. package/src/components/data-table/mime-cell.tsx +68 -0
  172. package/src/components/data-table/pagination.tsx +329 -0
  173. package/src/components/data-table/range-focus/__tests__/atoms.test.ts +907 -0
  174. package/src/components/data-table/range-focus/__tests__/utils.test.ts +316 -0
  175. package/src/components/data-table/range-focus/atoms.ts +380 -0
  176. package/src/components/data-table/range-focus/cell-selection-indicator.tsx +37 -0
  177. package/src/components/data-table/range-focus/provider.tsx +13 -0
  178. package/src/components/data-table/range-focus/use-cell-range-selection.ts +119 -0
  179. package/src/components/data-table/range-focus/use-scroll-into-view.ts +46 -0
  180. package/src/components/data-table/range-focus/utils.ts +105 -0
  181. package/src/components/data-table/renderers.tsx +247 -0
  182. package/src/components/data-table/row-viewer-panel/__tests__/filter-rows.test.ts +82 -0
  183. package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +58 -0
  184. package/src/components/data-table/row-viewer-panel/row-viewer.tsx +371 -0
  185. package/src/components/data-table/types.ts +81 -0
  186. package/src/components/data-table/uniformSample.tsx +19 -0
  187. package/src/components/data-table/url-detector.tsx +111 -0
  188. package/src/components/data-table/utils.ts +46 -0
  189. package/src/components/databases/display.tsx +66 -0
  190. package/src/components/databases/engine-variable.tsx +51 -0
  191. package/src/components/databases/icon.tsx +91 -0
  192. package/src/components/databases/icons/clickhouse.svg +1 -0
  193. package/src/components/databases/icons/databricks.svg +1 -0
  194. package/src/components/databases/icons/datafusion.png +0 -0
  195. package/src/components/databases/icons/duckdb.svg +1 -0
  196. package/src/components/databases/icons/googlebigquery.svg +1 -0
  197. package/src/components/databases/icons/iceberg.png +0 -0
  198. package/src/components/databases/icons/motherduck.svg +9 -0
  199. package/src/components/databases/icons/mysql.svg +1 -0
  200. package/src/components/databases/icons/postgresql.svg +1 -0
  201. package/src/components/databases/icons/redshift.svg +1 -0
  202. package/src/components/databases/icons/snowflake.svg +1 -0
  203. package/src/components/databases/icons/spark.svg +1 -0
  204. package/src/components/databases/icons/sqlalchemy.svg +1 -0
  205. package/src/components/databases/icons/sqlite.svg +1 -0
  206. package/src/components/databases/icons/timeplus.svg +17 -0
  207. package/src/components/databases/icons/trino.svg +1 -0
  208. package/src/components/datasets/icons.tsx +55 -0
  209. package/src/components/datasources/__tests__/install-package-button.test.tsx +85 -0
  210. package/src/components/datasources/__tests__/utils.test.ts +171 -0
  211. package/src/components/datasources/column-preview.tsx +269 -0
  212. package/src/components/datasources/components.tsx +100 -0
  213. package/src/components/datasources/datasources.tsx +799 -0
  214. package/src/components/datasources/install-package-button.tsx +46 -0
  215. package/src/components/datasources/utils.ts +62 -0
  216. package/src/components/debug/indicator.tsx +19 -0
  217. package/src/components/debugger/debugger-code.css +3 -0
  218. package/src/components/debugger/debugger-code.tsx +222 -0
  219. package/src/components/dependency-graph/custom-node.tsx +89 -0
  220. package/src/components/dependency-graph/dependency-graph-minimap.tsx +197 -0
  221. package/src/components/dependency-graph/dependency-graph-tree.tsx +181 -0
  222. package/src/components/dependency-graph/dependency-graph.css +17 -0
  223. package/src/components/dependency-graph/dependency-graph.tsx +66 -0
  224. package/src/components/dependency-graph/elements.ts +185 -0
  225. package/src/components/dependency-graph/panels.tsx +279 -0
  226. package/src/components/dependency-graph/types.ts +21 -0
  227. package/src/components/dependency-graph/utils/changes.ts +54 -0
  228. package/src/components/dependency-graph/utils/layout.ts +45 -0
  229. package/src/components/dependency-graph/utils/useFitToViewOnDimensionChange.ts +25 -0
  230. package/src/components/editor/Cell.tsx +1175 -0
  231. package/src/components/editor/Disconnected.tsx +72 -0
  232. package/src/components/editor/Output.tsx +462 -0
  233. package/src/components/editor/RecoveryButton.tsx +161 -0
  234. package/src/components/editor/SortableCell.tsx +161 -0
  235. package/src/components/editor/__tests__/data-attributes.test.tsx +173 -0
  236. package/src/components/editor/__tests__/dynamic-favicon.test.tsx +183 -0
  237. package/src/components/editor/actions/name-cell-input.tsx +137 -0
  238. package/src/components/editor/actions/types.ts +53 -0
  239. package/src/components/editor/actions/useCellActionButton.tsx +422 -0
  240. package/src/components/editor/actions/useConfigActions.tsx +182 -0
  241. package/src/components/editor/actions/useCopyNotebook.tsx +41 -0
  242. package/src/components/editor/actions/useHideAllMarkdownCode.ts +53 -0
  243. package/src/components/editor/actions/useNotebookActions.tsx +556 -0
  244. package/src/components/editor/actions/useRestartKernel.tsx +36 -0
  245. package/src/components/editor/ai/__tests__/completion-utils.test.ts +379 -0
  246. package/src/components/editor/ai/add-cell-with-ai.tsx +428 -0
  247. package/src/components/editor/ai/ai-completion-editor.tsx +261 -0
  248. package/src/components/editor/ai/completion-handlers.tsx +91 -0
  249. package/src/components/editor/ai/completion-utils.ts +95 -0
  250. package/src/components/editor/ai/merge-editor.css +9 -0
  251. package/src/components/editor/alerts/connecting-alert.tsx +46 -0
  252. package/src/components/editor/alerts/floating-alert.tsx +47 -0
  253. package/src/components/editor/alerts/stdin-blocking-alert.tsx +61 -0
  254. package/src/components/editor/app-container.tsx +53 -0
  255. package/src/components/editor/boundary/ErrorBoundary.tsx +41 -0
  256. package/src/components/editor/cell/CellStatus.tsx +371 -0
  257. package/src/components/editor/cell/CreateCellButton.tsx +132 -0
  258. package/src/components/editor/cell/DeleteButton.tsx +58 -0
  259. package/src/components/editor/cell/PendingDeleteConfirmation.tsx +126 -0
  260. package/src/components/editor/cell/RunButton.tsx +109 -0
  261. package/src/components/editor/cell/StopButton.tsx +36 -0
  262. package/src/components/editor/cell/TinyCode.css +10 -0
  263. package/src/components/editor/cell/TinyCode.tsx +53 -0
  264. package/src/components/editor/cell/cell-actions.tsx +185 -0
  265. package/src/components/editor/cell/cell-context-menu.tsx +243 -0
  266. package/src/components/editor/cell/cell-status.css +21 -0
  267. package/src/components/editor/cell/code/cell-editor.tsx +546 -0
  268. package/src/components/editor/cell/code/icons.tsx +31 -0
  269. package/src/components/editor/cell/code/language-toggle.tsx +140 -0
  270. package/src/components/editor/cell/collapse.tsx +100 -0
  271. package/src/components/editor/cell/toolbar.tsx +89 -0
  272. package/src/components/editor/cell/useAddCell.ts +29 -0
  273. package/src/components/editor/cell/useDeleteCell.tsx +89 -0
  274. package/src/components/editor/cell/useRunCells.ts +86 -0
  275. package/src/components/editor/cell/useShouldShowInterrupt.ts +26 -0
  276. package/src/components/editor/cell/useSplitCell.tsx +41 -0
  277. package/src/components/editor/chrome/components/contribute-snippet-button.tsx +138 -0
  278. package/src/components/editor/chrome/components/feedback-button.tsx +105 -0
  279. package/src/components/editor/chrome/panels/__tests__/write-secret-modal.test.ts +43 -0
  280. package/src/components/editor/chrome/panels/constants.ts +2 -0
  281. package/src/components/editor/chrome/panels/context-aware-panel/atoms.ts +28 -0
  282. package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +167 -0
  283. package/src/components/editor/chrome/panels/datasources-panel.tsx +6 -0
  284. package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +23 -0
  285. package/src/components/editor/chrome/panels/documentation-panel.tsx +29 -0
  286. package/src/components/editor/chrome/panels/empty-state.tsx +28 -0
  287. package/src/components/editor/chrome/panels/error-panel.tsx +35 -0
  288. package/src/components/editor/chrome/panels/file-explorer-panel.tsx +33 -0
  289. package/src/components/editor/chrome/panels/logs-panel.tsx +97 -0
  290. package/src/components/editor/chrome/panels/outline/floating-outline.tsx +129 -0
  291. package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +172 -0
  292. package/src/components/editor/chrome/panels/outline-panel.css +6 -0
  293. package/src/components/editor/chrome/panels/outline-panel.tsx +39 -0
  294. package/src/components/editor/chrome/panels/packages-panel.tsx +635 -0
  295. package/src/components/editor/chrome/panels/packages-state.ts +5 -0
  296. package/src/components/editor/chrome/panels/scratchpad-panel.tsx +8 -0
  297. package/src/components/editor/chrome/panels/secrets-panel.tsx +155 -0
  298. package/src/components/editor/chrome/panels/snippets-panel.css +11 -0
  299. package/src/components/editor/chrome/panels/snippets-panel.tsx +230 -0
  300. package/src/components/editor/chrome/panels/tracing-panel.tsx +28 -0
  301. package/src/components/editor/chrome/panels/variable-panel.tsx +31 -0
  302. package/src/components/editor/chrome/panels/write-secret-modal.tsx +190 -0
  303. package/src/components/editor/chrome/state.ts +102 -0
  304. package/src/components/editor/chrome/types.ts +133 -0
  305. package/src/components/editor/chrome/wrapper/__tests__/minimap-state.test.ts +209 -0
  306. package/src/components/editor/chrome/wrapper/__tests__/storage.test.ts +41 -0
  307. package/src/components/editor/chrome/wrapper/app-chrome.css +22 -0
  308. package/src/components/editor/chrome/wrapper/app-chrome.tsx +256 -0
  309. package/src/components/editor/chrome/wrapper/footer-item.tsx +43 -0
  310. package/src/components/editor/chrome/wrapper/footer-items/ai-status.tsx +47 -0
  311. package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +111 -0
  312. package/src/components/editor/chrome/wrapper/footer-items/copilot-status.tsx +125 -0
  313. package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +185 -0
  314. package/src/components/editor/chrome/wrapper/footer-items/minimap-status.tsx +21 -0
  315. package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +65 -0
  316. package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +370 -0
  317. package/src/components/editor/chrome/wrapper/footer.tsx +90 -0
  318. package/src/components/editor/chrome/wrapper/minimap-state.ts +164 -0
  319. package/src/components/editor/chrome/wrapper/minimap.tsx +443 -0
  320. package/src/components/editor/chrome/wrapper/panels.tsx +10 -0
  321. package/src/components/editor/chrome/wrapper/sidebar.tsx +100 -0
  322. package/src/components/editor/chrome/wrapper/storage.ts +56 -0
  323. package/src/components/editor/chrome/wrapper/utils.ts +8 -0
  324. package/src/components/editor/code/readonly-python-code.tsx +160 -0
  325. package/src/components/editor/columns/__tests__/storage.test.ts +104 -0
  326. package/src/components/editor/columns/cell-column.tsx +105 -0
  327. package/src/components/editor/columns/sortable-column.tsx +175 -0
  328. package/src/components/editor/columns/storage.ts +56 -0
  329. package/src/components/editor/common.ts +20 -0
  330. package/src/components/editor/controls/Controls.tsx +225 -0
  331. package/src/components/editor/controls/command-palette-button.tsx +27 -0
  332. package/src/components/editor/controls/command-palette.tsx +210 -0
  333. package/src/components/editor/controls/keyboard-shortcuts.tsx +309 -0
  334. package/src/components/editor/controls/notebook-menu-dropdown.tsx +157 -0
  335. package/src/components/editor/controls/shutdown-button.tsx +70 -0
  336. package/src/components/editor/database/__tests__/__snapshots__/as-code.test.ts.snap +659 -0
  337. package/src/components/editor/database/__tests__/as-code.test.ts +598 -0
  338. package/src/components/editor/database/__tests__/secrets.test.ts +38 -0
  339. package/src/components/editor/database/add-database-form.tsx +395 -0
  340. package/src/components/editor/database/as-code.ts +786 -0
  341. package/src/components/editor/database/form-renderers.tsx +211 -0
  342. package/src/components/editor/database/schemas.ts +485 -0
  343. package/src/components/editor/database/secrets.ts +25 -0
  344. package/src/components/editor/documentation.css +139 -0
  345. package/src/components/editor/dynamic-favicon.tsx +126 -0
  346. package/src/components/editor/errors/auto-fix.tsx +61 -0
  347. package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +321 -0
  348. package/src/components/editor/file-tree/file-explorer.tsx +679 -0
  349. package/src/components/editor/file-tree/file-viewer.tsx +283 -0
  350. package/src/components/editor/file-tree/renderers.tsx +83 -0
  351. package/src/components/editor/file-tree/requesting-tree.tsx +228 -0
  352. package/src/components/editor/file-tree/state.tsx +26 -0
  353. package/src/components/editor/file-tree/types.ts +118 -0
  354. package/src/components/editor/file-tree/upload.tsx +101 -0
  355. package/src/components/editor/header/app-header.tsx +28 -0
  356. package/src/components/editor/header/filename-form.tsx +27 -0
  357. package/src/components/editor/header/filename-input.css +21 -0
  358. package/src/components/editor/header/filename-input.tsx +244 -0
  359. package/src/components/editor/header/status.tsx +72 -0
  360. package/src/components/editor/inputs/Inputs.css +118 -0
  361. package/src/components/editor/inputs/Inputs.styles.ts +66 -0
  362. package/src/components/editor/inputs/Inputs.tsx +34 -0
  363. package/src/components/editor/kiosk-mode.tsx +25 -0
  364. package/src/components/editor/links/cell-link-list.tsx +74 -0
  365. package/src/components/editor/links/cell-link.tsx +128 -0
  366. package/src/components/editor/navigation/__tests__/clipboard.test.ts +466 -0
  367. package/src/components/editor/navigation/__tests__/navigation.test.ts +1771 -0
  368. package/src/components/editor/navigation/__tests__/selection.test.ts +194 -0
  369. package/src/components/editor/navigation/clipboard.ts +205 -0
  370. package/src/components/editor/navigation/focus-utils.ts +48 -0
  371. package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +499 -0
  372. package/src/components/editor/navigation/navigation.ts +704 -0
  373. package/src/components/editor/navigation/selection.ts +114 -0
  374. package/src/components/editor/navigation/state.ts +5 -0
  375. package/src/components/editor/navigation/vim-bindings.test.ts +109 -0
  376. package/src/components/editor/navigation/vim-bindings.ts +90 -0
  377. package/src/components/editor/notebook-banner.tsx +75 -0
  378. package/src/components/editor/output/CalloutOutput.styles.ts +22 -0
  379. package/src/components/editor/output/CalloutOutput.tsx +19 -0
  380. package/src/components/editor/output/ConsoleOutput.tsx +276 -0
  381. package/src/components/editor/output/EmotionCacheProvider.tsx +32 -0
  382. package/src/components/editor/output/HtmlOutput.tsx +25 -0
  383. package/src/components/editor/output/ImageOutput.tsx +25 -0
  384. package/src/components/editor/output/JsonOutput.tsx +424 -0
  385. package/src/components/editor/output/MarimoErrorOutput.tsx +511 -0
  386. package/src/components/editor/output/MarimoTracebackOutput.tsx +233 -0
  387. package/src/components/editor/output/Outputs.css +102 -0
  388. package/src/components/editor/output/TextOutput.tsx +42 -0
  389. package/src/components/editor/output/VideoOutput.tsx +11 -0
  390. package/src/components/editor/output/__tests__/ansi.test.ts +39 -0
  391. package/src/components/editor/output/__tests__/json-output.test.ts +269 -0
  392. package/src/components/editor/output/__tests__/traceback.test.tsx +105 -0
  393. package/src/components/editor/output/useWrapText.ts +14 -0
  394. package/src/components/editor/package-alert.tsx +596 -0
  395. package/src/components/editor/renderMimeIcon.tsx +38 -0
  396. package/src/components/editor/renderers/CellArray.tsx +352 -0
  397. package/src/components/editor/renderers/cells-renderer.tsx +96 -0
  398. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +650 -0
  399. package/src/components/editor/renderers/grid-layout/plugin.tsx +146 -0
  400. package/src/components/editor/renderers/grid-layout/styles.css +31 -0
  401. package/src/components/editor/renderers/grid-layout/types.ts +89 -0
  402. package/src/components/editor/renderers/layout-select.tsx +86 -0
  403. package/src/components/editor/renderers/plugins.ts +31 -0
  404. package/src/components/editor/renderers/slides-layout/plugin.tsx +31 -0
  405. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +74 -0
  406. package/src/components/editor/renderers/slides-layout/types.ts +12 -0
  407. package/src/components/editor/renderers/types.ts +75 -0
  408. package/src/components/editor/renderers/vertical-layout/__tests__/useDelayVisibility.test.ts +87 -0
  409. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +123 -0
  410. package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +173 -0
  411. package/src/components/editor/renderers/vertical-layout/sidebar/__tests__/sidebar.test.tsx +56 -0
  412. package/src/components/editor/renderers/vertical-layout/sidebar/sheet-sidebar.tsx +32 -0
  413. package/src/components/editor/renderers/vertical-layout/sidebar/sidebar-slot.tsx +10 -0
  414. package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.css +20 -0
  415. package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.tsx +30 -0
  416. package/src/components/editor/renderers/vertical-layout/sidebar/state.ts +46 -0
  417. package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +25 -0
  418. package/src/components/editor/renderers/vertical-layout/sidebar/wrapped-with-sidebar.tsx +38 -0
  419. package/src/components/editor/renderers/vertical-layout/useDelayVisibility.ts +32 -0
  420. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +107 -0
  421. package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +46 -0
  422. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +451 -0
  423. package/src/components/editor/stdin-blocking-alert.tsx +83 -0
  424. package/src/components/export/export-output-button.tsx +14 -0
  425. package/src/components/find-replace/find-replace.tsx +293 -0
  426. package/src/components/forms/__tests__/form-utils.test.ts +104 -0
  427. package/src/components/forms/form-utils.ts +90 -0
  428. package/src/components/forms/form.tsx +817 -0
  429. package/src/components/forms/options.ts +59 -0
  430. package/src/components/forms/switchable-multi-select.tsx +134 -0
  431. package/src/components/home/components.tsx +189 -0
  432. package/src/components/home/state.ts +30 -0
  433. package/src/components/icons/copy-icon.tsx +59 -0
  434. package/src/components/icons/github-copilot.tsx +17 -0
  435. package/src/components/icons/large-spinner.tsx +39 -0
  436. package/src/components/icons/loading-ellipsis.tsx +46 -0
  437. package/src/components/icons/multi-icon.css +9 -0
  438. package/src/components/icons/multi-icon.tsx +30 -0
  439. package/src/components/icons/spinner.tsx +38 -0
  440. package/src/components/layout/toolbar.tsx +26 -0
  441. package/src/components/modal/ImperativeModal.tsx +187 -0
  442. package/src/components/pages/edit-page.tsx +37 -0
  443. package/src/components/pages/home-page.tsx +514 -0
  444. package/src/components/pages/run-page.tsx +55 -0
  445. package/src/components/scratchpad/scratchpad-history.ts +28 -0
  446. package/src/components/scratchpad/scratchpad.tsx +280 -0
  447. package/src/components/shortcuts/renderShortcut.tsx +208 -0
  448. package/src/components/slides/slides-component.tsx +132 -0
  449. package/src/components/slides/slides.css +100 -0
  450. package/src/components/sort/SortableCellsProvider.tsx +242 -0
  451. package/src/components/static-html/share-modal.tsx +181 -0
  452. package/src/components/static-html/static-banner.tsx +164 -0
  453. package/src/components/terminal/terminal.tsx +110 -0
  454. package/src/components/terminal/xterm.css +3 -0
  455. package/src/components/tracing/tracing-spec.ts +118 -0
  456. package/src/components/tracing/tracing.test.tsx +66 -0
  457. package/src/components/tracing/tracing.tsx +410 -0
  458. package/src/components/ui/accordion.tsx +70 -0
  459. package/src/components/ui/alert-dialog.tsx +176 -0
  460. package/src/components/ui/alert.tsx +64 -0
  461. package/src/components/ui/aria-popover.tsx +43 -0
  462. package/src/components/ui/badge.tsx +41 -0
  463. package/src/components/ui/button.tsx +156 -0
  464. package/src/components/ui/calendar.tsx +231 -0
  465. package/src/components/ui/card.tsx +83 -0
  466. package/src/components/ui/checkbox.tsx +33 -0
  467. package/src/components/ui/combobox.tsx +278 -0
  468. package/src/components/ui/command.tsx +165 -0
  469. package/src/components/ui/context-menu.tsx +193 -0
  470. package/src/components/ui/date-input.tsx +127 -0
  471. package/src/components/ui/date-picker.tsx +188 -0
  472. package/src/components/ui/dialog.tsx +155 -0
  473. package/src/components/ui/draggable-popover.tsx +68 -0
  474. package/src/components/ui/dropdown-menu.tsx +190 -0
  475. package/src/components/ui/field.tsx +90 -0
  476. package/src/components/ui/form.tsx +224 -0
  477. package/src/components/ui/fullscreen.tsx +38 -0
  478. package/src/components/ui/input.tsx +208 -0
  479. package/src/components/ui/kbd.tsx +22 -0
  480. package/src/components/ui/label.tsx +26 -0
  481. package/src/components/ui/links.tsx +23 -0
  482. package/src/components/ui/menu-items.tsx +101 -0
  483. package/src/components/ui/native-select.tsx +39 -0
  484. package/src/components/ui/navigation.tsx +154 -0
  485. package/src/components/ui/number-field.tsx +99 -0
  486. package/src/components/ui/popover.tsx +63 -0
  487. package/src/components/ui/progress.tsx +28 -0
  488. package/src/components/ui/radio-group.tsx +44 -0
  489. package/src/components/ui/range-slider.tsx +102 -0
  490. package/src/components/ui/scroll-area.tsx +47 -0
  491. package/src/components/ui/select.tsx +167 -0
  492. package/src/components/ui/sheet.tsx +143 -0
  493. package/src/components/ui/skeleton.tsx +16 -0
  494. package/src/components/ui/slider.tsx +80 -0
  495. package/src/components/ui/switch.tsx +54 -0
  496. package/src/components/ui/table.tsx +122 -0
  497. package/src/components/ui/tabs.tsx +55 -0
  498. package/src/components/ui/textarea.tsx +104 -0
  499. package/src/components/ui/toast.tsx +133 -0
  500. package/src/components/ui/toaster.tsx +30 -0
  501. package/src/components/ui/toggle.tsx +49 -0
  502. package/src/components/ui/tooltip.tsx +87 -0
  503. package/src/components/ui/typography.tsx +207 -0
  504. package/src/components/ui/use-restore-focus.ts +28 -0
  505. package/src/components/ui/use-toast.ts +224 -0
  506. package/src/components/utils/delay-mount.tsx +81 -0
  507. package/src/components/utils/lazy-mount.tsx +24 -0
  508. package/src/components/variables/common.tsx +37 -0
  509. package/src/components/variables/variables-table.tsx +335 -0
  510. package/src/core/MarimoApp.tsx +103 -0
  511. package/src/core/ai/__tests__/model-registry.test.ts +357 -0
  512. package/src/core/ai/chat-utils.ts +71 -0
  513. package/src/core/ai/config.ts +76 -0
  514. package/src/core/ai/context/__tests__/registry.test.ts +516 -0
  515. package/src/core/ai/context/context.ts +16 -0
  516. package/src/core/ai/context/providers/__tests__/__snapshots__/tables.test.ts.snap +291 -0
  517. package/src/core/ai/context/providers/__tests__/__snapshots__/variable.test.ts.snap +378 -0
  518. package/src/core/ai/context/providers/__tests__/tables.test.ts +271 -0
  519. package/src/core/ai/context/providers/__tests__/variable.test.ts +312 -0
  520. package/src/core/ai/context/providers/common.ts +7 -0
  521. package/src/core/ai/context/providers/tables.ts +208 -0
  522. package/src/core/ai/context/providers/variable.ts +72 -0
  523. package/src/core/ai/context/registry.ts +180 -0
  524. package/src/core/ai/ids/__tests__/ids.test.ts +193 -0
  525. package/src/core/ai/ids/ids.ts +71 -0
  526. package/src/core/ai/model-registry.ts +158 -0
  527. package/src/core/ai/state.ts +58 -0
  528. package/src/core/alerts/state.ts +75 -0
  529. package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +1312 -0
  530. package/src/core/cells/__tests__/add-missing-import.test.ts +78 -0
  531. package/src/core/cells/__tests__/cell.test.ts +193 -0
  532. package/src/core/cells/__tests__/cells.test.ts +2664 -0
  533. package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +239 -0
  534. package/src/core/cells/__tests__/focus.test.ts +271 -0
  535. package/src/core/cells/__tests__/ids.test.ts +90 -0
  536. package/src/core/cells/__tests__/names.test.ts +62 -0
  537. package/src/core/cells/__tests__/pending-delete-service.test.tsx +202 -0
  538. package/src/core/cells/__tests__/runs.test.ts +453 -0
  539. package/src/core/cells/__tests__/session.test.ts +757 -0
  540. package/src/core/cells/__tests__/utils.test.ts +428 -0
  541. package/src/core/cells/actions.ts +21 -0
  542. package/src/core/cells/add-missing-import.ts +114 -0
  543. package/src/core/cells/cell.ts +243 -0
  544. package/src/core/cells/cells.ts +1751 -0
  545. package/src/core/cells/collapseConsoleOutputs.tsx +133 -0
  546. package/src/core/cells/effects.ts +42 -0
  547. package/src/core/cells/focus.ts +128 -0
  548. package/src/core/cells/ids.ts +124 -0
  549. package/src/core/cells/logs.ts +114 -0
  550. package/src/core/cells/names.ts +107 -0
  551. package/src/core/cells/outline.ts +30 -0
  552. package/src/core/cells/outputs.ts +34 -0
  553. package/src/core/cells/pending-delete-service.ts +183 -0
  554. package/src/core/cells/runs.ts +196 -0
  555. package/src/core/cells/scrollCellIntoView.ts +133 -0
  556. package/src/core/cells/session.ts +281 -0
  557. package/src/core/cells/types.ts +128 -0
  558. package/src/core/cells/utils.ts +141 -0
  559. package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +216 -0
  560. package/src/core/codemirror/__tests__/extensions.test.ts +117 -0
  561. package/src/core/codemirror/__tests__/format.test.ts +227 -0
  562. package/src/core/codemirror/__tests__/setup.test.ts +178 -0
  563. package/src/core/codemirror/ai/request.ts +72 -0
  564. package/src/core/codemirror/ai/resources.ts +90 -0
  565. package/src/core/codemirror/cells/extensions.ts +387 -0
  566. package/src/core/codemirror/cells/state.ts +32 -0
  567. package/src/core/codemirror/cells/traceback-decorations.ts +111 -0
  568. package/src/core/codemirror/cm.ts +272 -0
  569. package/src/core/codemirror/compat/__tests__/jupyter.test.ts +136 -0
  570. package/src/core/codemirror/compat/jupyter.tsx +244 -0
  571. package/src/core/codemirror/completion/Autocompleter.ts +172 -0
  572. package/src/core/codemirror/completion/__tests__/hints.test.ts +84 -0
  573. package/src/core/codemirror/completion/__tests__/keymap.test.ts +44 -0
  574. package/src/core/codemirror/completion/completer.ts +58 -0
  575. package/src/core/codemirror/completion/hints.ts +143 -0
  576. package/src/core/codemirror/completion/keymap.ts +70 -0
  577. package/src/core/codemirror/completion/utils.ts +18 -0
  578. package/src/core/codemirror/completion/variable-completions.ts +100 -0
  579. package/src/core/codemirror/config/extension.ts +63 -0
  580. package/src/core/codemirror/config/types.ts +10 -0
  581. package/src/core/codemirror/copilot/__tests__/copilot.test.ts +260 -0
  582. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +209 -0
  583. package/src/core/codemirror/copilot/__tests__/trim-utils.test.ts +291 -0
  584. package/src/core/codemirror/copilot/client.ts +123 -0
  585. package/src/core/codemirror/copilot/copilot-config.tsx +285 -0
  586. package/src/core/codemirror/copilot/extension.ts +285 -0
  587. package/src/core/codemirror/copilot/getCodes.ts +130 -0
  588. package/src/core/codemirror/copilot/language-server.ts +255 -0
  589. package/src/core/codemirror/copilot/state.ts +66 -0
  590. package/src/core/codemirror/copilot/trim-utils.ts +33 -0
  591. package/src/core/codemirror/copilot/types.ts +41 -0
  592. package/src/core/codemirror/editing/__tests__/commands.test.ts +106 -0
  593. package/src/core/codemirror/editing/__tests__/debugging.test.ts +193 -0
  594. package/src/core/codemirror/editing/commands.ts +25 -0
  595. package/src/core/codemirror/editing/debugging.ts +58 -0
  596. package/src/core/codemirror/editing/extensions.ts +4 -0
  597. package/src/core/codemirror/extensions.ts +95 -0
  598. package/src/core/codemirror/facet.ts +19 -0
  599. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +695 -0
  600. package/src/core/codemirror/find-replace/extension.ts +41 -0
  601. package/src/core/codemirror/find-replace/navigate.ts +221 -0
  602. package/src/core/codemirror/find-replace/query.ts +31 -0
  603. package/src/core/codemirror/find-replace/search-highlight.ts +148 -0
  604. package/src/core/codemirror/find-replace/state.ts +167 -0
  605. package/src/core/codemirror/format.ts +120 -0
  606. package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +205 -0
  607. package/src/core/codemirror/go-to-definition/commands.ts +80 -0
  608. package/src/core/codemirror/go-to-definition/extension.ts +23 -0
  609. package/src/core/codemirror/go-to-definition/underline.ts +223 -0
  610. package/src/core/codemirror/go-to-definition/utils.ts +126 -0
  611. package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +43 -0
  612. package/src/core/codemirror/keymaps/__tests__/vimrc.test.ts +121 -0
  613. package/src/core/codemirror/keymaps/keymaps.ts +163 -0
  614. package/src/core/codemirror/keymaps/vim.ts +360 -0
  615. package/src/core/codemirror/keymaps/vimrc.ts +149 -0
  616. package/src/core/codemirror/language/LanguageAdapters.ts +23 -0
  617. package/src/core/codemirror/language/__tests__/ast.test.ts +124 -0
  618. package/src/core/codemirror/language/__tests__/extension.test.ts +260 -0
  619. package/src/core/codemirror/language/__tests__/indentOneTab.test.ts +31 -0
  620. package/src/core/codemirror/language/__tests__/markdown.test.ts +495 -0
  621. package/src/core/codemirror/language/__tests__/sql.test.ts +1640 -0
  622. package/src/core/codemirror/language/__tests__/utils.test.ts +166 -0
  623. package/src/core/codemirror/language/commands.ts +59 -0
  624. package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +163 -0
  625. package/src/core/codemirror/language/embedded/embedded-python.ts +131 -0
  626. package/src/core/codemirror/language/embedded/latex.ts +257 -0
  627. package/src/core/codemirror/language/extension.ts +322 -0
  628. package/src/core/codemirror/language/languages/markdown.ts +261 -0
  629. package/src/core/codemirror/language/languages/python.ts +329 -0
  630. package/src/core/codemirror/language/languages/sql/completion-sources.tsx +99 -0
  631. package/src/core/codemirror/language/languages/sql/completion-store.ts +191 -0
  632. package/src/core/codemirror/language/languages/sql/sql.ts +545 -0
  633. package/src/core/codemirror/language/languages/sql/utils.ts +42 -0
  634. package/src/core/codemirror/language/metadata.ts +71 -0
  635. package/src/core/codemirror/language/panel/markdown.tsx +63 -0
  636. package/src/core/codemirror/language/panel/panel.tsx +197 -0
  637. package/src/core/codemirror/language/panel/sql.tsx +132 -0
  638. package/src/core/codemirror/language/types.ts +41 -0
  639. package/src/core/codemirror/language/utils/ast.ts +84 -0
  640. package/src/core/codemirror/language/utils/indentOneTab.ts +9 -0
  641. package/src/core/codemirror/language/utils/quotes.ts +18 -0
  642. package/src/core/codemirror/language/utils.ts +78 -0
  643. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +860 -0
  644. package/src/core/codemirror/lsp/federated-lsp.ts +235 -0
  645. package/src/core/codemirror/lsp/lens.ts +130 -0
  646. package/src/core/codemirror/lsp/notebook-lsp.ts +604 -0
  647. package/src/core/codemirror/lsp/transports.ts +31 -0
  648. package/src/core/codemirror/lsp/types.ts +55 -0
  649. package/src/core/codemirror/lsp/utils.ts +11 -0
  650. package/src/core/codemirror/markdown/__tests__/commands.test.ts +522 -0
  651. package/src/core/codemirror/markdown/commands.ts +478 -0
  652. package/src/core/codemirror/markdown/completions.ts +273 -0
  653. package/src/core/codemirror/markdown/extension.ts +106 -0
  654. package/src/core/codemirror/misc/__tests__/dnd.test.ts +111 -0
  655. package/src/core/codemirror/misc/__tests__/paste.test.ts +239 -0
  656. package/src/core/codemirror/misc/dnd.ts +48 -0
  657. package/src/core/codemirror/misc/paste.ts +181 -0
  658. package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +132 -0
  659. package/src/core/codemirror/placeholder/extensions.ts +99 -0
  660. package/src/core/codemirror/react-dom/createPanel.tsx +39 -0
  661. package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +1222 -0
  662. package/src/core/codemirror/reactive-references/analyzer.ts +608 -0
  663. package/src/core/codemirror/reactive-references/extension.ts +154 -0
  664. package/src/core/codemirror/readonly/__tests__/extension.test.ts +55 -0
  665. package/src/core/codemirror/readonly/extension.ts +187 -0
  666. package/src/core/codemirror/rtc/extension.ts +450 -0
  667. package/src/core/codemirror/rtc/loro/awareness.ts +496 -0
  668. package/src/core/codemirror/rtc/loro/colors.ts +38 -0
  669. package/src/core/codemirror/rtc/loro/sync.ts +159 -0
  670. package/src/core/codemirror/theme/__tests__/light.test.ts +136 -0
  671. package/src/core/codemirror/theme/dark.ts +50 -0
  672. package/src/core/codemirror/theme/light.ts +58 -0
  673. package/src/core/codemirror/types.ts +5 -0
  674. package/src/core/codemirror/utils.ts +103 -0
  675. package/src/core/codemirror/vim/cursor-visibility.ts +58 -0
  676. package/src/core/config/__tests__/config-schema.test.ts +232 -0
  677. package/src/core/config/capabilities.ts +15 -0
  678. package/src/core/config/config-schema.ts +296 -0
  679. package/src/core/config/config.ts +113 -0
  680. package/src/core/config/feature-flag.tsx +58 -0
  681. package/src/core/config/if-capability.tsx +19 -0
  682. package/src/core/config/widths.ts +5 -0
  683. package/src/core/constants.ts +52 -0
  684. package/src/core/datasets/__tests__/all-tables.test.ts +466 -0
  685. package/src/core/datasets/__tests__/data-source.test.ts +461 -0
  686. package/src/core/datasets/data-source-connections.ts +334 -0
  687. package/src/core/datasets/engines.ts +11 -0
  688. package/src/core/datasets/request-registry.ts +34 -0
  689. package/src/core/datasets/state.ts +143 -0
  690. package/src/core/datasets/types.ts +38 -0
  691. package/src/core/debugger/state.ts +10 -0
  692. package/src/core/documentation/state.ts +13 -0
  693. package/src/core/dom/__tests__/htmlUtils.test.ts +22 -0
  694. package/src/core/dom/__tests__/outline.test.ts +370 -0
  695. package/src/core/dom/defineCustomElement.ts +23 -0
  696. package/src/core/dom/events.ts +94 -0
  697. package/src/core/dom/htmlUtils.ts +75 -0
  698. package/src/core/dom/outline.ts +123 -0
  699. package/src/core/dom/ui-element.css +8 -0
  700. package/src/core/dom/ui-element.ts +249 -0
  701. package/src/core/dom/uiregistry.ts +209 -0
  702. package/src/core/edit-app.tsx +189 -0
  703. package/src/core/errors/__tests__/errors.test.ts +62 -0
  704. package/src/core/errors/__tests__/utils.test.ts +108 -0
  705. package/src/core/errors/errors.ts +96 -0
  706. package/src/core/errors/state.ts +44 -0
  707. package/src/core/errors/utils.ts +67 -0
  708. package/src/core/export/hooks.ts +60 -0
  709. package/src/core/functions/FunctionRegistry.ts +18 -0
  710. package/src/core/hotkeys/__tests__/hotkeys.test.ts +74 -0
  711. package/src/core/hotkeys/__tests__/shortcuts.test.ts +166 -0
  712. package/src/core/hotkeys/actions.ts +38 -0
  713. package/src/core/hotkeys/hotkeys.ts +523 -0
  714. package/src/core/hotkeys/shortcuts.ts +146 -0
  715. package/src/core/islands/__tests__/parse.test.ts +89 -0
  716. package/src/core/islands/bridge.ts +196 -0
  717. package/src/core/islands/components/output-wrapper.tsx +154 -0
  718. package/src/core/islands/components/web-components.tsx +120 -0
  719. package/src/core/islands/islands.css +14 -0
  720. package/src/core/islands/main.ts +200 -0
  721. package/src/core/islands/parse.ts +161 -0
  722. package/src/core/islands/state.ts +30 -0
  723. package/src/core/islands/toast.ts +41 -0
  724. package/src/core/islands/utils.ts +5 -0
  725. package/src/core/islands/worker/controller.ts +52 -0
  726. package/src/core/islands/worker/worker.tsx +178 -0
  727. package/src/core/kernel/RuntimeState.ts +94 -0
  728. package/src/core/kernel/__tests__/RuntimeState.test.ts +57 -0
  729. package/src/core/kernel/__tests__/handlers.test.ts +61 -0
  730. package/src/core/kernel/__tests__/session.test.ts +10 -0
  731. package/src/core/kernel/handlers.ts +159 -0
  732. package/src/core/kernel/messages.ts +54 -0
  733. package/src/core/kernel/queryParamHandlers.ts +39 -0
  734. package/src/core/kernel/session.ts +50 -0
  735. package/src/core/layout/layout.ts +99 -0
  736. package/src/core/layout/useTogglePresenting.ts +50 -0
  737. package/src/core/meta/globals.ts +25 -0
  738. package/src/core/meta/state.ts +25 -0
  739. package/src/core/mime.ts +9 -0
  740. package/src/core/mode.ts +80 -0
  741. package/src/core/network/DeferredRequestRegistry.ts +71 -0
  742. package/src/core/network/__tests__/DeferredRequestRegistry.test.ts +37 -0
  743. package/src/core/network/__tests__/api.test.ts +80 -0
  744. package/src/core/network/api.ts +145 -0
  745. package/src/core/network/auth.ts +13 -0
  746. package/src/core/network/connection.ts +33 -0
  747. package/src/core/network/requests-network.ts +398 -0
  748. package/src/core/network/requests-static.ts +88 -0
  749. package/src/core/network/requests-toasting.ts +91 -0
  750. package/src/core/network/requests.ts +24 -0
  751. package/src/core/network/resolve.ts +17 -0
  752. package/src/core/network/types.ts +188 -0
  753. package/src/core/packages/toast-components.tsx +88 -0
  754. package/src/core/packages/useInstallPackage.ts +46 -0
  755. package/src/core/rtc/state.ts +20 -0
  756. package/src/core/run-app.tsx +69 -0
  757. package/src/core/runtime/__tests__/config.test.ts +173 -0
  758. package/src/core/runtime/__tests__/createWsUrl.test.ts +61 -0
  759. package/src/core/runtime/__tests__/runtime.test.ts +603 -0
  760. package/src/core/runtime/config.ts +49 -0
  761. package/src/core/runtime/runtime.ts +277 -0
  762. package/src/core/runtime/types.ts +7 -0
  763. package/src/core/runtime/utils.ts +9 -0
  764. package/src/core/saving/file-state.ts +15 -0
  765. package/src/core/saving/filename.ts +55 -0
  766. package/src/core/saving/save-component.tsx +274 -0
  767. package/src/core/saving/state.ts +51 -0
  768. package/src/core/saving/useAutoSave.ts +68 -0
  769. package/src/core/secrets/request-registry.ts +16 -0
  770. package/src/core/slots/slots.ts +9 -0
  771. package/src/core/state/__tests__/jotai.test.ts +25 -0
  772. package/src/core/state/jotai.ts +69 -0
  773. package/src/core/state/observable.ts +23 -0
  774. package/src/core/static/__tests__/download-html.test.ts +41 -0
  775. package/src/core/static/__tests__/files.test.ts +494 -0
  776. package/src/core/static/__tests__/virtual-file-tracker.test.ts +92 -0
  777. package/src/core/static/download-html.ts +59 -0
  778. package/src/core/static/files.ts +150 -0
  779. package/src/core/static/static-state.ts +19 -0
  780. package/src/core/static/types.ts +8 -0
  781. package/src/core/static/virtual-file-tracker.ts +83 -0
  782. package/src/core/variables/__tests__/state.test.ts +148 -0
  783. package/src/core/variables/state.ts +81 -0
  784. package/src/core/variables/types.ts +22 -0
  785. package/src/core/vscode/vscode-bindings.ts +176 -0
  786. package/src/core/wasm/PyodideLoader.tsx +72 -0
  787. package/src/core/wasm/__tests__/router.test.ts +57 -0
  788. package/src/core/wasm/__tests__/share.test.ts +35 -0
  789. package/src/core/wasm/__tests__/state.test.ts +124 -0
  790. package/src/core/wasm/__tests__/store.test.ts +55 -0
  791. package/src/core/wasm/bridge.ts +622 -0
  792. package/src/core/wasm/router.ts +39 -0
  793. package/src/core/wasm/rpc.ts +32 -0
  794. package/src/core/wasm/share.ts +15 -0
  795. package/src/core/wasm/state.ts +21 -0
  796. package/src/core/wasm/store.ts +122 -0
  797. package/src/core/wasm/utils.ts +12 -0
  798. package/src/core/wasm/worker/bootstrap.ts +223 -0
  799. package/src/core/wasm/worker/constants.ts +2 -0
  800. package/src/core/wasm/worker/fs.ts +90 -0
  801. package/src/core/wasm/worker/getController.ts +16 -0
  802. package/src/core/wasm/worker/getFS.ts +9 -0
  803. package/src/core/wasm/worker/getMarimoWheel.ts +15 -0
  804. package/src/core/wasm/worker/getPyodideVersion.ts +10 -0
  805. package/src/core/wasm/worker/message-buffer.ts +32 -0
  806. package/src/core/wasm/worker/save-worker.ts +107 -0
  807. package/src/core/wasm/worker/tracer.ts +7 -0
  808. package/src/core/wasm/worker/types.ts +97 -0
  809. package/src/core/wasm/worker/worker.ts +375 -0
  810. package/src/core/websocket/StaticWebsocket.ts +61 -0
  811. package/src/core/websocket/connection-utils.ts +59 -0
  812. package/src/core/websocket/types.ts +43 -0
  813. package/src/core/websocket/useMarimoWebSocket.tsx +386 -0
  814. package/src/core/websocket/useWebSocket.tsx +88 -0
  815. package/src/css/admonition.css +127 -0
  816. package/src/css/app/App.css +77 -0
  817. package/src/css/app/Cell.css +433 -0
  818. package/src/css/app/Header.css +25 -0
  819. package/src/css/app/codemirror-completions.css +308 -0
  820. package/src/css/app/codemirror.css +136 -0
  821. package/src/css/app/fonts.css +50 -0
  822. package/src/css/app/print.css +86 -0
  823. package/src/css/app/reset.css +18 -0
  824. package/src/css/codehilite.css +354 -0
  825. package/src/css/common.css +45 -0
  826. package/src/css/globals.css +176 -0
  827. package/src/css/index.css +10 -0
  828. package/src/css/katex-fonts.css +214 -0
  829. package/src/css/katex.min.css +1183 -0
  830. package/src/css/md-tooltip.css +52 -0
  831. package/src/css/md.css +365 -0
  832. package/src/css/progress.css +93 -0
  833. package/src/css/table.css +45 -0
  834. package/src/custom.d.ts +24 -0
  835. package/src/fonts/Fira_Mono/FiraMono-Bold.ttf +0 -0
  836. package/src/fonts/Fira_Mono/FiraMono-Medium.ttf +0 -0
  837. package/src/fonts/Fira_Mono/FiraMono-Regular.ttf +0 -0
  838. package/src/fonts/KaTeX/KaTeX_AMS-Regular.ttf +0 -0
  839. package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff +0 -0
  840. package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff2 +0 -0
  841. package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.ttf +0 -0
  842. package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff +0 -0
  843. package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2 +0 -0
  844. package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.ttf +0 -0
  845. package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff +0 -0
  846. package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2 +0 -0
  847. package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.ttf +0 -0
  848. package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff +0 -0
  849. package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff2 +0 -0
  850. package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.ttf +0 -0
  851. package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff +0 -0
  852. package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff2 +0 -0
  853. package/src/fonts/KaTeX/KaTeX_Main-Bold.ttf +0 -0
  854. package/src/fonts/KaTeX/KaTeX_Main-Bold.woff +0 -0
  855. package/src/fonts/KaTeX/KaTeX_Main-Bold.woff2 +0 -0
  856. package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.ttf +0 -0
  857. package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff +0 -0
  858. package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff2 +0 -0
  859. package/src/fonts/KaTeX/KaTeX_Main-Italic.ttf +0 -0
  860. package/src/fonts/KaTeX/KaTeX_Main-Italic.woff +0 -0
  861. package/src/fonts/KaTeX/KaTeX_Main-Italic.woff2 +0 -0
  862. package/src/fonts/KaTeX/KaTeX_Main-Regular.ttf +0 -0
  863. package/src/fonts/KaTeX/KaTeX_Main-Regular.woff +0 -0
  864. package/src/fonts/KaTeX/KaTeX_Main-Regular.woff2 +0 -0
  865. package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.ttf +0 -0
  866. package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff +0 -0
  867. package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff2 +0 -0
  868. package/src/fonts/KaTeX/KaTeX_Math-Italic.ttf +0 -0
  869. package/src/fonts/KaTeX/KaTeX_Math-Italic.woff +0 -0
  870. package/src/fonts/KaTeX/KaTeX_Math-Italic.woff2 +0 -0
  871. package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.ttf +0 -0
  872. package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff +0 -0
  873. package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff2 +0 -0
  874. package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.ttf +0 -0
  875. package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff +0 -0
  876. package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff2 +0 -0
  877. package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.ttf +0 -0
  878. package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff +0 -0
  879. package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff2 +0 -0
  880. package/src/fonts/KaTeX/KaTeX_Script-Regular.ttf +0 -0
  881. package/src/fonts/KaTeX/KaTeX_Script-Regular.woff +0 -0
  882. package/src/fonts/KaTeX/KaTeX_Script-Regular.woff2 +0 -0
  883. package/src/fonts/KaTeX/KaTeX_Size1-Regular.ttf +0 -0
  884. package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff +0 -0
  885. package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff2 +0 -0
  886. package/src/fonts/KaTeX/KaTeX_Size2-Regular.ttf +0 -0
  887. package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff +0 -0
  888. package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff2 +0 -0
  889. package/src/fonts/KaTeX/KaTeX_Size3-Regular.ttf +0 -0
  890. package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff +0 -0
  891. package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff2 +0 -0
  892. package/src/fonts/KaTeX/KaTeX_Size4-Regular.ttf +0 -0
  893. package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff +0 -0
  894. package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff2 +0 -0
  895. package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.ttf +0 -0
  896. package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff +0 -0
  897. package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff2 +0 -0
  898. package/src/fonts/Lora/Lora-Italic-VariableFont_wght.ttf +0 -0
  899. package/src/fonts/Lora/Lora-VariableFont_wght.ttf +0 -0
  900. package/src/fonts/Lora/static/Lora-Bold.ttf +0 -0
  901. package/src/fonts/Lora/static/Lora-BoldItalic.ttf +0 -0
  902. package/src/fonts/Lora/static/Lora-Italic.ttf +0 -0
  903. package/src/fonts/Lora/static/Lora-Medium.ttf +0 -0
  904. package/src/fonts/Lora/static/Lora-MediumItalic.ttf +0 -0
  905. package/src/fonts/Lora/static/Lora-Regular.ttf +0 -0
  906. package/src/fonts/Lora/static/Lora-SemiBold.ttf +0 -0
  907. package/src/fonts/Lora/static/Lora-SemiBoldItalic.ttf +0 -0
  908. package/src/fonts/PT_Sans/PTSans-Bold.ttf +0 -0
  909. package/src/fonts/PT_Sans/PTSans-BoldItalic.ttf +0 -0
  910. package/src/fonts/PT_Sans/PTSans-Italic.ttf +0 -0
  911. package/src/fonts/PT_Sans/PTSans-Regular.ttf +0 -0
  912. package/src/hooks/__tests__/useBoolean.test.tsx +33 -0
  913. package/src/hooks/__tests__/useDebounce.test.tsx +182 -0
  914. package/src/hooks/__tests__/useEffectSkipFirstRender.test.tsx +42 -0
  915. package/src/hooks/__tests__/useEventListener.test.tsx +148 -0
  916. package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +76 -0
  917. package/src/hooks/__tests__/useInterval.test.tsx +70 -0
  918. package/src/hooks/__tests__/usePackageMetadata.test.tsx +219 -0
  919. package/src/hooks/__tests__/useResizeHandle.test.tsx +240 -0
  920. package/src/hooks/__tests__/useResizeObserver.test.tsx +86 -0
  921. package/src/hooks/__tests__/useTimer.test.tsx +62 -0
  922. package/src/hooks/debug.ts +116 -0
  923. package/src/hooks/useAsyncData.ts +392 -0
  924. package/src/hooks/useAudioRecorder.ts +89 -0
  925. package/src/hooks/useAutoGrowInputProps.ts +56 -0
  926. package/src/hooks/useBoolean.ts +26 -0
  927. package/src/hooks/useCellRenderCount.ts +15 -0
  928. package/src/hooks/useDebounce.ts +95 -0
  929. package/src/hooks/useDeepCompareMemoize.ts +22 -0
  930. package/src/hooks/useEffectSkipFirstRender.ts +24 -0
  931. package/src/hooks/useElapsedTime.ts +25 -0
  932. package/src/hooks/useEvent.ts +2 -0
  933. package/src/hooks/useEventListener.ts +68 -0
  934. package/src/hooks/useHotkey.ts +77 -0
  935. package/src/hooks/useInternalStateWithSync.ts +26 -0
  936. package/src/hooks/useInterval.ts +49 -0
  937. package/src/hooks/useIsDragging.tsx +39 -0
  938. package/src/hooks/useLifecycle.ts +20 -0
  939. package/src/hooks/useLocalStorage.ts +22 -0
  940. package/src/hooks/useNonce.ts +9 -0
  941. package/src/hooks/usePackageMetadata.ts +52 -0
  942. package/src/hooks/useRecentCommands.ts +25 -0
  943. package/src/hooks/useResizeHandle.ts +110 -0
  944. package/src/hooks/useResizeObserver.ts +101 -0
  945. package/src/hooks/useScript.ts +90 -0
  946. package/src/hooks/useSelectAllContent.ts +42 -0
  947. package/src/hooks/useTimer.ts +48 -0
  948. package/src/main.tsx +20 -0
  949. package/src/mount.tsx +331 -0
  950. package/src/plugins/core/BadPlugin.tsx +72 -0
  951. package/src/plugins/core/RenderHTML.tsx +136 -0
  952. package/src/plugins/core/__test__/RenderHTML.test.ts +146 -0
  953. package/src/plugins/core/builder.ts +59 -0
  954. package/src/plugins/core/registerReactComponent.tsx +535 -0
  955. package/src/plugins/core/rpc.ts +55 -0
  956. package/src/plugins/core/sidebar-element.tsx +104 -0
  957. package/src/plugins/impl/ButtonPlugin.tsx +95 -0
  958. package/src/plugins/impl/CheckboxPlugin.tsx +56 -0
  959. package/src/plugins/impl/CodeEditorPlugin.tsx +119 -0
  960. package/src/plugins/impl/DataEditorPlugin.tsx +181 -0
  961. package/src/plugins/impl/DataTablePlugin.tsx +948 -0
  962. package/src/plugins/impl/DatePickerPlugin.tsx +74 -0
  963. package/src/plugins/impl/DateRangePlugin.tsx +82 -0
  964. package/src/plugins/impl/DateTimePickerPlugin.tsx +76 -0
  965. package/src/plugins/impl/DictPlugin.tsx +80 -0
  966. package/src/plugins/impl/DropdownPlugin.tsx +102 -0
  967. package/src/plugins/impl/FileBrowserPlugin.tsx +500 -0
  968. package/src/plugins/impl/FileUploadPlugin.tsx +302 -0
  969. package/src/plugins/impl/FormPlugin.tsx +294 -0
  970. package/src/plugins/impl/MicrophonePlugin.tsx +58 -0
  971. package/src/plugins/impl/MultiselectPlugin.tsx +207 -0
  972. package/src/plugins/impl/NumberPlugin.tsx +84 -0
  973. package/src/plugins/impl/RadioPlugin.tsx +77 -0
  974. package/src/plugins/impl/RangeSliderPlugin.tsx +163 -0
  975. package/src/plugins/impl/RefreshPlugin.tsx +158 -0
  976. package/src/plugins/impl/SearchableSelect.tsx +122 -0
  977. package/src/plugins/impl/SliderPlugin.tsx +166 -0
  978. package/src/plugins/impl/SwitchPlugin.tsx +48 -0
  979. package/src/plugins/impl/TabsPlugin.tsx +83 -0
  980. package/src/plugins/impl/TextAreaPlugin.tsx +131 -0
  981. package/src/plugins/impl/TextInputPlugin.tsx +169 -0
  982. package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +45 -0
  983. package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +178 -0
  984. package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +41 -0
  985. package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +144 -0
  986. package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +269 -0
  987. package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +181 -0
  988. package/src/plugins/impl/anywidget/__tests__/model.test.ts +370 -0
  989. package/src/plugins/impl/anywidget/model.ts +314 -0
  990. package/src/plugins/impl/chat/ChatPlugin.tsx +98 -0
  991. package/src/plugins/impl/chat/chat-ui.tsx +713 -0
  992. package/src/plugins/impl/chat/types.ts +39 -0
  993. package/src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx +6 -0
  994. package/src/plugins/impl/code/any-language-editor.tsx +68 -0
  995. package/src/plugins/impl/common/error-banner.tsx +111 -0
  996. package/src/plugins/impl/common/intent.ts +18 -0
  997. package/src/plugins/impl/common/labeled.tsx +69 -0
  998. package/src/plugins/impl/data-editor/__tests__/data-utils.test.ts +876 -0
  999. package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +452 -0
  1000. package/src/plugins/impl/data-editor/components.tsx +179 -0
  1001. package/src/plugins/impl/data-editor/data-utils.ts +123 -0
  1002. package/src/plugins/impl/data-editor/glide-data-editor.tsx +651 -0
  1003. package/src/plugins/impl/data-editor/glide-utils.ts +200 -0
  1004. package/src/plugins/impl/data-editor/themes.ts +49 -0
  1005. package/src/plugins/impl/data-editor/types.ts +44 -0
  1006. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +268 -0
  1007. package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +31 -0
  1008. package/src/plugins/impl/data-explorer/components/column-summary.tsx +174 -0
  1009. package/src/plugins/impl/data-explorer/components/icons.tsx +30 -0
  1010. package/src/plugins/impl/data-explorer/components/query-form.tsx +296 -0
  1011. package/src/plugins/impl/data-explorer/encoding.ts +107 -0
  1012. package/src/plugins/impl/data-explorer/functions/function.ts +83 -0
  1013. package/src/plugins/impl/data-explorer/functions/types.ts +32 -0
  1014. package/src/plugins/impl/data-explorer/marks.ts +21 -0
  1015. package/src/plugins/impl/data-explorer/queries/field-suggestion.ts +65 -0
  1016. package/src/plugins/impl/data-explorer/queries/histograms.ts +41 -0
  1017. package/src/plugins/impl/data-explorer/queries/queries.ts +204 -0
  1018. package/src/plugins/impl/data-explorer/queries/removeUndefined.ts +11 -0
  1019. package/src/plugins/impl/data-explorer/queries/types.ts +54 -0
  1020. package/src/plugins/impl/data-explorer/queries/utils.ts +85 -0
  1021. package/src/plugins/impl/data-explorer/spec.ts +28 -0
  1022. package/src/plugins/impl/data-explorer/state/reducer.ts +92 -0
  1023. package/src/plugins/impl/data-explorer/state/types.ts +28 -0
  1024. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +303 -0
  1025. package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +1600 -0
  1026. package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +67 -0
  1027. package/src/plugins/impl/data-frames/forms/context.ts +13 -0
  1028. package/src/plugins/impl/data-frames/forms/datatype-icon.tsx +43 -0
  1029. package/src/plugins/impl/data-frames/forms/renderers.tsx +518 -0
  1030. package/src/plugins/impl/data-frames/panel.tsx +308 -0
  1031. package/src/plugins/impl/data-frames/schema.ts +211 -0
  1032. package/src/plugins/impl/data-frames/types.ts +91 -0
  1033. package/src/plugins/impl/data-frames/utils/__tests__/getUpdatedColumnTypes.test.ts +191 -0
  1034. package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +116 -0
  1035. package/src/plugins/impl/data-frames/utils/getUpdatedColumnTypes.ts +67 -0
  1036. package/src/plugins/impl/data-frames/utils/operators.ts +202 -0
  1037. package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +39 -0
  1038. package/src/plugins/impl/multiselectFilterFn.tsx +22 -0
  1039. package/src/plugins/impl/panel/PanelPlugin.tsx +266 -0
  1040. package/src/plugins/impl/panel/__tests__/utils.test.ts +119 -0
  1041. package/src/plugins/impl/panel/utils.ts +104 -0
  1042. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +300 -0
  1043. package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +73 -0
  1044. package/src/plugins/impl/plotly/mapbox.css +359 -0
  1045. package/src/plugins/impl/plotly/parse-from-template.ts +58 -0
  1046. package/src/plugins/impl/plotly/plotly.css +280 -0
  1047. package/src/plugins/impl/vega/VegaPlugin.tsx +40 -0
  1048. package/src/plugins/impl/vega/__tests__/__snapshots__/make-selectable.test.ts.snap +1210 -0
  1049. package/src/plugins/impl/vega/__tests__/encodings.test.ts +172 -0
  1050. package/src/plugins/impl/vega/__tests__/loader.test.ts +73 -0
  1051. package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +575 -0
  1052. package/src/plugins/impl/vega/__tests__/params.test.ts +52 -0
  1053. package/src/plugins/impl/vega/__tests__/resolve-data.test.ts +236 -0
  1054. package/src/plugins/impl/vega/__tests__/vega.test.ts +603 -0
  1055. package/src/plugins/impl/vega/batched.ts +41 -0
  1056. package/src/plugins/impl/vega/encodings.ts +111 -0
  1057. package/src/plugins/impl/vega/fix-relative-url.ts +15 -0
  1058. package/src/plugins/impl/vega/formats.ts +25 -0
  1059. package/src/plugins/impl/vega/loader.ts +320 -0
  1060. package/src/plugins/impl/vega/make-selectable.ts +248 -0
  1061. package/src/plugins/impl/vega/marks.ts +36 -0
  1062. package/src/plugins/impl/vega/params.ts +192 -0
  1063. package/src/plugins/impl/vega/resolve-data.ts +101 -0
  1064. package/src/plugins/impl/vega/types.ts +32 -0
  1065. package/src/plugins/impl/vega/utils.ts +46 -0
  1066. package/src/plugins/impl/vega/vega-component.tsx +271 -0
  1067. package/src/plugins/impl/vega/vega-loader.ts +53 -0
  1068. package/src/plugins/impl/vega/vega.css +31 -0
  1069. package/src/plugins/layout/AccordionPlugin.tsx +63 -0
  1070. package/src/plugins/layout/CalloutPlugin.tsx +34 -0
  1071. package/src/plugins/layout/DownloadPlugin.tsx +136 -0
  1072. package/src/plugins/layout/ImageComparisonPlugin.tsx +35 -0
  1073. package/src/plugins/layout/JsonOutputPlugin.tsx +47 -0
  1074. package/src/plugins/layout/LazyPlugin.tsx +98 -0
  1075. package/src/plugins/layout/MimeRenderPlugin.tsx +45 -0
  1076. package/src/plugins/layout/NavigationMenuPlugin.tsx +219 -0
  1077. package/src/plugins/layout/ProgressPlugin.tsx +175 -0
  1078. package/src/plugins/layout/RoutesPlugin.tsx +81 -0
  1079. package/src/plugins/layout/StatPlugin.tsx +100 -0
  1080. package/src/plugins/layout/TexPlugin.tsx +102 -0
  1081. package/src/plugins/layout/__test__/ProgressPlugin.test.ts +26 -0
  1082. package/src/plugins/layout/carousel/CarouselPlugin.tsx +48 -0
  1083. package/src/plugins/layout/mermaid/MermaidPlugin.tsx +26 -0
  1084. package/src/plugins/layout/mermaid/mermaid.tsx +94 -0
  1085. package/src/plugins/layout/navigation-menu.css +37 -0
  1086. package/src/plugins/plugins.ts +116 -0
  1087. package/src/plugins/stateless-plugin.ts +29 -0
  1088. package/src/plugins/types.ts +82 -0
  1089. package/src/stories/__fixtures__/vega.ts +225 -0
  1090. package/src/stories/accordion.stories.tsx +100 -0
  1091. package/src/stories/alert-dialog.mdx +42 -0
  1092. package/src/stories/app-chrome.stories.tsx +26 -0
  1093. package/src/stories/button.stories.tsx +90 -0
  1094. package/src/stories/callout.stories.tsx +73 -0
  1095. package/src/stories/cell-status.stories.tsx +145 -0
  1096. package/src/stories/cell.stories.tsx +336 -0
  1097. package/src/stories/checkbox.stories.tsx +44 -0
  1098. package/src/stories/colors.stories.tsx +156 -0
  1099. package/src/stories/combobox.stories.tsx +133 -0
  1100. package/src/stories/context-menu.mdx +23 -0
  1101. package/src/stories/data-explorer.stories.tsx +30 -0
  1102. package/src/stories/data-table.stories.tsx +130 -0
  1103. package/src/stories/dataframe.stories.tsx +46 -0
  1104. package/src/stories/debugger.stories.tsx +34 -0
  1105. package/src/stories/dialog.stories.tsx +80 -0
  1106. package/src/stories/dropdown-menu.mdx +159 -0
  1107. package/src/stories/editor-inputs.stories.tsx +47 -0
  1108. package/src/stories/editor.stories.tsx +91 -0
  1109. package/src/stories/file-upload.stories.tsx +103 -0
  1110. package/src/stories/form-wrapper.stories.tsx +147 -0
  1111. package/src/stories/input.stories.tsx +56 -0
  1112. package/src/stories/label.mdx +9 -0
  1113. package/src/stories/log-viewer.stories.tsx +74 -0
  1114. package/src/stories/number-field.mdx +17 -0
  1115. package/src/stories/number-field.stories.tsx +41 -0
  1116. package/src/stories/progress-component.stories.tsx +74 -0
  1117. package/src/stories/progress.stories.tsx +33 -0
  1118. package/src/stories/radio-group.mdx +54 -0
  1119. package/src/stories/select-native.stories.tsx +49 -0
  1120. package/src/stories/select.stories.tsx +92 -0
  1121. package/src/stories/slider.stories.tsx +27 -0
  1122. package/src/stories/stat.stories.tsx +123 -0
  1123. package/src/stories/switch.mdx +20 -0
  1124. package/src/stories/switchable-multi-select.stories.tsx +31 -0
  1125. package/src/stories/tabs.mdx +59 -0
  1126. package/src/stories/textarea.stories.tsx +58 -0
  1127. package/src/stories/theme.stories.tsx +111 -0
  1128. package/src/stories/tooltip.mdx +32 -0
  1129. package/src/stories/typography.stories.tsx +80 -0
  1130. package/src/stories/variables.stories.tsx +58 -0
  1131. package/src/stories/vega.stories.tsx +57 -0
  1132. package/src/theme/ThemeProvider.tsx +32 -0
  1133. package/src/theme/namespace.tsx +23 -0
  1134. package/src/theme/useTheme.ts +89 -0
  1135. package/src/utils/Deferred.ts +20 -0
  1136. package/src/utils/Logger.ts +91 -0
  1137. package/src/utils/__tests__/Deferred.test.ts +38 -0
  1138. package/src/utils/__tests__/arrays.test.ts +130 -0
  1139. package/src/utils/__tests__/batch-requests.test.ts +60 -0
  1140. package/src/utils/__tests__/blob.test.ts +52 -0
  1141. package/src/utils/__tests__/cell-urls.test.ts +92 -0
  1142. package/src/utils/__tests__/createReducer.test.ts +184 -0
  1143. package/src/utils/__tests__/data-views.test.ts +112 -0
  1144. package/src/utils/__tests__/dates.test.ts +188 -0
  1145. package/src/utils/__tests__/edit-distance.test.ts +302 -0
  1146. package/src/utils/__tests__/errors.test.ts +54 -0
  1147. package/src/utils/__tests__/filenames.test.ts +30 -0
  1148. package/src/utils/__tests__/id-tree.test.ts +1994 -0
  1149. package/src/utils/__tests__/json-parser.test.ts +79 -0
  1150. package/src/utils/__tests__/local-storage.test.ts +77 -0
  1151. package/src/utils/__tests__/lru.test.ts +74 -0
  1152. package/src/utils/__tests__/maps.test.ts +91 -0
  1153. package/src/utils/__tests__/math.test.ts +29 -0
  1154. package/src/utils/__tests__/multi-map.test.ts +295 -0
  1155. package/src/utils/__tests__/numbers.test.ts +76 -0
  1156. package/src/utils/__tests__/path.test.ts +170 -0
  1157. package/src/utils/__tests__/pluralize.test.ts +47 -0
  1158. package/src/utils/__tests__/routes.test.ts +134 -0
  1159. package/src/utils/__tests__/sets.test.ts +41 -0
  1160. package/src/utils/__tests__/shallow-compare.test.ts +55 -0
  1161. package/src/utils/__tests__/strings.test.ts +68 -0
  1162. package/src/utils/__tests__/time.test.ts +61 -0
  1163. package/src/utils/__tests__/timed-cache.test.ts +142 -0
  1164. package/src/utils/__tests__/timeout.test.ts +153 -0
  1165. package/src/utils/__tests__/traceback.test.ts +34 -0
  1166. package/src/utils/__tests__/url.test.ts +100 -0
  1167. package/src/utils/__tests__/urls.test.ts +10 -0
  1168. package/src/utils/__tests__/versions.test.ts +63 -0
  1169. package/src/utils/__tests__/waitForWs.test.ts +76 -0
  1170. package/src/utils/arrays.ts +75 -0
  1171. package/src/utils/assertExists.ts +12 -0
  1172. package/src/utils/assertNever.ts +20 -0
  1173. package/src/utils/batch-requests.ts +28 -0
  1174. package/src/utils/blob.ts +45 -0
  1175. package/src/utils/cell-urls.ts +31 -0
  1176. package/src/utils/cn.ts +8 -0
  1177. package/src/utils/copy.ts +17 -0
  1178. package/src/utils/createReducer.ts +137 -0
  1179. package/src/utils/data-views.ts +54 -0
  1180. package/src/utils/dates.ts +145 -0
  1181. package/src/utils/dereference.ts +10 -0
  1182. package/src/utils/download.ts +47 -0
  1183. package/src/utils/edit-distance.ts +141 -0
  1184. package/src/utils/errors.ts +63 -0
  1185. package/src/utils/events.ts +85 -0
  1186. package/src/utils/fileToBase64.ts +30 -0
  1187. package/src/utils/filenames.ts +29 -0
  1188. package/src/utils/functions.ts +24 -0
  1189. package/src/utils/id-tree.tsx +1032 -0
  1190. package/src/utils/idle.ts +19 -0
  1191. package/src/utils/invariant.ts +37 -0
  1192. package/src/utils/json/__tests__/base64.test.ts +100 -0
  1193. package/src/utils/json/base64.ts +51 -0
  1194. package/src/utils/json/json-parser.ts +65 -0
  1195. package/src/utils/lazy.ts +30 -0
  1196. package/src/utils/links.ts +11 -0
  1197. package/src/utils/localStorage.ts +132 -0
  1198. package/src/utils/lru.ts +68 -0
  1199. package/src/utils/maps.ts +65 -0
  1200. package/src/utils/math.ts +6 -0
  1201. package/src/utils/mergeRefs.ts +14 -0
  1202. package/src/utils/multi-map.ts +71 -0
  1203. package/src/utils/numbers.ts +124 -0
  1204. package/src/utils/objects.ts +105 -0
  1205. package/src/utils/once.ts +17 -0
  1206. package/src/utils/pathUtils.test.ts +113 -0
  1207. package/src/utils/pathUtils.ts +76 -0
  1208. package/src/utils/paths.ts +67 -0
  1209. package/src/utils/pluralize.ts +35 -0
  1210. package/src/utils/python-poet/__tests__/poet.test.ts +286 -0
  1211. package/src/utils/python-poet/poet.ts +196 -0
  1212. package/src/utils/reload-safe.ts +15 -0
  1213. package/src/utils/repl.ts +23 -0
  1214. package/src/utils/routes.ts +36 -0
  1215. package/src/utils/scroll.ts +38 -0
  1216. package/src/utils/sets.ts +30 -0
  1217. package/src/utils/shallow-compare.ts +30 -0
  1218. package/src/utils/staticImplements.ts +7 -0
  1219. package/src/utils/strings.ts +64 -0
  1220. package/src/utils/time.ts +39 -0
  1221. package/src/utils/timed-cache.ts +52 -0
  1222. package/src/utils/timeout.ts +42 -0
  1223. package/src/utils/traceback.ts +104 -0
  1224. package/src/utils/tracer.ts +106 -0
  1225. package/src/utils/typed.ts +17 -0
  1226. package/src/utils/url.ts +12 -0
  1227. package/src/utils/urls.ts +33 -0
  1228. package/src/utils/uuid.ts +8 -0
  1229. package/src/utils/versions.ts +66 -0
  1230. package/src/utils/vitals.ts +30 -0
  1231. package/src/utils/waitForWs.ts +31 -0
  1232. package/dist/diagram-5UYTHUR4-CHaQuLxe.js +0 -137
  1233. package/dist/pieDiagram-NIOCPIFQ-B2HPuDbO.js +0 -162
@@ -1,8 +1,8 @@
1
- import { _ as l, g as ye, s as ge, t as pe, q as ve, a as xe, b as Te, c as ct, d as gt, e as be, aq as U, l as Dt, k as we, j as _e, z as De, u as Ce } from "./mermaid-CLsxmXkQ.js";
2
- import { O as Wt, ar as jt, aj as Ut, ai as Se, aC as Ee, aD as Me, aE as Ae, aF as Ie, aG as Fe, aH as Le, ah as Zt, ag as $t, af as Qt, a5 as Kt, ae as Jt } from "./main-BiZBHBEd.js";
3
- import { t as Ye, m as We, a as Ve, i as Pe } from "./time-Bys_HZaY.js";
4
- import { l as ze } from "./linear-qwYbqeyR.js";
5
- function Oe(t) {
1
+ import { _ as l, g as ye, s as ge, t as pe, q as ve, a as xe, b as Te, c as ct, d as gt, e as be, aq as U, l as Dt, k as we, j as _e, z as De, u as Se } from "./mermaid-CTBiBoaH.js";
2
+ import { M as Wt, as as jt, ak as Ut, aj as Ce, aD as Ee, aE as Me, aF as Ae, aG as Ie, aH as Fe, aI as Le, ai as Zt, ah as $t, ag as Qt, a6 as Kt, af as Jt } from "./main-C81Qd2DK.js";
3
+ import { t as Ye, m as We, a as Ve, i as Oe } from "./time-B0f3H4v6.js";
4
+ import { l as Pe } from "./linear-Bii2oeTZ.js";
5
+ function ze(t) {
6
6
  return t;
7
7
  }
8
8
  var vt = 1, Mt = 2, At = 3, pt = 4, te = 1e-6;
@@ -16,47 +16,47 @@ function Be(t) {
16
16
  return (e) => +t(e);
17
17
  }
18
18
  function He(t, e) {
19
- return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
19
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (i) => +t(i) + e;
20
20
  }
21
21
  function qe() {
22
22
  return !this.__axis;
23
23
  }
24
24
  function oe(t, e) {
25
- var n = [], i = null, a = null, k = 6, d = 6, D = 3, E = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, S = t === vt || t === pt ? -1 : 1, g = t === pt || t === Mt ? "x" : "y", F = t === vt || t === At ? Re : Ne;
26
- function C(v) {
27
- var q = i ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), A = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Oe), x = Math.max(k, 0) + D, M = e.range(), L = +M[0] + E, Y = +M[M.length - 1] + E, N = (e.bandwidth ? He : Be)(e.copy(), E), R = v.selection ? v.selection() : v, G = R.selectAll(".domain").data([null]), z = R.selectAll(".tick").data(q, e).order(), y = z.exit(), b = z.enter().append("g").attr("class", "tick"), T = z.select("line"), p = z.select("text");
28
- G = G.merge(G.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), z = z.merge(b), T = T.merge(b.append("line").attr("stroke", "currentColor").attr(g + "2", S * k)), p = p.merge(b.append("text").attr("fill", "currentColor").attr(g, S * x).attr("dy", t === vt ? "0em" : t === At ? "0.71em" : "0.32em")), v !== R && (G = G.transition(v), z = z.transition(v), T = T.transition(v), p = p.transition(v), y = y.transition(v).attr("opacity", te).attr("transform", function(m) {
25
+ var i = [], s = null, a = null, h = 6, u = 6, D = 3, E = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, C = t === vt || t === pt ? -1 : 1, p = t === pt || t === Mt ? "x" : "y", F = t === vt || t === At ? Re : Ne;
26
+ function S(x) {
27
+ var q = s ?? (e.ticks ? e.ticks.apply(e, i) : e.domain()), A = a ?? (e.tickFormat ? e.tickFormat.apply(e, i) : ze), T = Math.max(h, 0) + D, M = e.range(), L = +M[0] + E, Y = +M[M.length - 1] + E, N = (e.bandwidth ? He : Be)(e.copy(), E), R = x.selection ? x.selection() : x, G = R.selectAll(".domain").data([null]), P = R.selectAll(".tick").data(q, e).order(), g = P.exit(), w = P.enter().append("g").attr("class", "tick"), b = P.select("line"), v = P.select("text");
28
+ G = G.merge(G.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), P = P.merge(w), b = b.merge(w.append("line").attr("stroke", "currentColor").attr(p + "2", C * h)), v = v.merge(w.append("text").attr("fill", "currentColor").attr(p, C * T).attr("dy", t === vt ? "0em" : t === At ? "0.71em" : "0.32em")), x !== R && (G = G.transition(x), P = P.transition(x), b = b.transition(x), v = v.transition(x), g = g.transition(x).attr("opacity", te).attr("transform", function(m) {
29
29
  return isFinite(m = N(m)) ? F(m + E) : this.getAttribute("transform");
30
- }), b.attr("opacity", te).attr("transform", function(m) {
31
- var w = this.parentNode.__axis;
32
- return F((w && isFinite(w = w(m)) ? w : N(m)) + E);
33
- })), y.remove(), G.attr("d", t === pt || t === Mt ? d ? "M" + S * d + "," + L + "H" + E + "V" + Y + "H" + S * d : "M" + E + "," + L + "V" + Y : d ? "M" + L + "," + S * d + "V" + E + "H" + Y + "V" + S * d : "M" + L + "," + E + "H" + Y), z.attr("opacity", 1).attr("transform", function(m) {
30
+ }), w.attr("opacity", te).attr("transform", function(m) {
31
+ var _ = this.parentNode.__axis;
32
+ return F((_ && isFinite(_ = _(m)) ? _ : N(m)) + E);
33
+ })), g.remove(), G.attr("d", t === pt || t === Mt ? u ? "M" + C * u + "," + L + "H" + E + "V" + Y + "H" + C * u : "M" + E + "," + L + "V" + Y : u ? "M" + L + "," + C * u + "V" + E + "H" + Y + "V" + C * u : "M" + L + "," + E + "H" + Y), P.attr("opacity", 1).attr("transform", function(m) {
34
34
  return F(N(m) + E);
35
- }), T.attr(g + "2", S * k), p.attr(g, S * x).text(A), R.filter(qe).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === Mt ? "start" : t === pt ? "end" : "middle"), R.each(function() {
35
+ }), b.attr(p + "2", C * h), v.attr(p, C * T).text(A), R.filter(qe).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === Mt ? "start" : t === pt ? "end" : "middle"), R.each(function() {
36
36
  this.__axis = N;
37
37
  });
38
38
  }
39
- return C.scale = function(v) {
40
- return arguments.length ? (e = v, C) : e;
41
- }, C.ticks = function() {
42
- return n = Array.from(arguments), C;
43
- }, C.tickArguments = function(v) {
44
- return arguments.length ? (n = v == null ? [] : Array.from(v), C) : n.slice();
45
- }, C.tickValues = function(v) {
46
- return arguments.length ? (i = v == null ? null : Array.from(v), C) : i && i.slice();
47
- }, C.tickFormat = function(v) {
48
- return arguments.length ? (a = v, C) : a;
49
- }, C.tickSize = function(v) {
50
- return arguments.length ? (k = d = +v, C) : k;
51
- }, C.tickSizeInner = function(v) {
52
- return arguments.length ? (k = +v, C) : k;
53
- }, C.tickSizeOuter = function(v) {
54
- return arguments.length ? (d = +v, C) : d;
55
- }, C.tickPadding = function(v) {
56
- return arguments.length ? (D = +v, C) : D;
57
- }, C.offset = function(v) {
58
- return arguments.length ? (E = +v, C) : E;
59
- }, C;
39
+ return S.scale = function(x) {
40
+ return arguments.length ? (e = x, S) : e;
41
+ }, S.ticks = function() {
42
+ return i = Array.from(arguments), S;
43
+ }, S.tickArguments = function(x) {
44
+ return arguments.length ? (i = x == null ? [] : Array.from(x), S) : i.slice();
45
+ }, S.tickValues = function(x) {
46
+ return arguments.length ? (s = x == null ? null : Array.from(x), S) : s && s.slice();
47
+ }, S.tickFormat = function(x) {
48
+ return arguments.length ? (a = x, S) : a;
49
+ }, S.tickSize = function(x) {
50
+ return arguments.length ? (h = u = +x, S) : h;
51
+ }, S.tickSizeInner = function(x) {
52
+ return arguments.length ? (h = +x, S) : h;
53
+ }, S.tickSizeOuter = function(x) {
54
+ return arguments.length ? (u = +x, S) : u;
55
+ }, S.tickPadding = function(x) {
56
+ return arguments.length ? (D = +x, S) : D;
57
+ }, S.offset = function(x) {
58
+ return arguments.length ? (E = +x, S) : E;
59
+ }, S;
60
60
  }
61
61
  function Ge(t) {
62
62
  return oe(vt, t);
@@ -67,27 +67,27 @@ function Xe(t) {
67
67
  var xt = { exports: {} }, je = xt.exports, ee;
68
68
  function Ue() {
69
69
  return ee || (ee = 1, function(t, e) {
70
- (function(n, i) {
71
- t.exports = i();
70
+ (function(i, s) {
71
+ t.exports = s();
72
72
  })(je, function() {
73
- var n = "day";
74
- return function(i, a, k) {
75
- var d = function(S) {
76
- return S.add(4 - S.isoWeekday(), n);
73
+ var i = "day";
74
+ return function(s, a, h) {
75
+ var u = function(C) {
76
+ return C.add(4 - C.isoWeekday(), i);
77
77
  }, D = a.prototype;
78
78
  D.isoWeekYear = function() {
79
- return d(this).year();
80
- }, D.isoWeek = function(S) {
81
- if (!this.$utils().u(S)) return this.add(7 * (S - this.isoWeek()), n);
82
- var g, F, C, v, q = d(this), A = (g = this.isoWeekYear(), F = this.$u, C = (F ? k.utc : k)().year(g).startOf("year"), v = 4 - C.isoWeekday(), C.isoWeekday() > 4 && (v += 7), C.add(v, n));
79
+ return u(this).year();
80
+ }, D.isoWeek = function(C) {
81
+ if (!this.$utils().u(C)) return this.add(7 * (C - this.isoWeek()), i);
82
+ var p, F, S, x, q = u(this), A = (p = this.isoWeekYear(), F = this.$u, S = (F ? h.utc : h)().year(p).startOf("year"), x = 4 - S.isoWeekday(), S.isoWeekday() > 4 && (x += 7), S.add(x, i));
83
83
  return q.diff(A, "week") + 1;
84
- }, D.isoWeekday = function(S) {
85
- return this.$utils().u(S) ? this.day() || 7 : this.day(this.day() % 7 ? S : S - 7);
84
+ }, D.isoWeekday = function(C) {
85
+ return this.$utils().u(C) ? this.day() || 7 : this.day(this.day() % 7 ? C : C - 7);
86
86
  };
87
87
  var E = D.startOf;
88
- D.startOf = function(S, g) {
89
- var F = this.$utils(), C = !!F.u(g) || g;
90
- return F.p(S) === "isoweek" ? C ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : E.bind(this)(S, g);
88
+ D.startOf = function(C, p) {
89
+ var F = this.$utils(), S = !!F.u(p) || p;
90
+ return F.p(C) === "isoweek" ? S ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : E.bind(this)(C, p);
91
91
  };
92
92
  };
93
93
  });
@@ -98,119 +98,119 @@ const $e = /* @__PURE__ */ Wt(Ze);
98
98
  var Tt = { exports: {} }, Qe = Tt.exports, re;
99
99
  function Ke() {
100
100
  return re || (re = 1, function(t, e) {
101
- (function(n, i) {
102
- t.exports = i();
101
+ (function(i, s) {
102
+ t.exports = s();
103
103
  })(Qe, function() {
104
- 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" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, k = /\d\d/, d = /\d\d?/, D = /\d*[^-_:/,()\s\d]+/, E = {}, S = function(x) {
105
- return (x = +x) + (x > 68 ? 1900 : 2e3);
106
- }, g = function(x) {
104
+ var i = { 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" }, s = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, h = /\d\d/, u = /\d\d?/, D = /\d*[^-_:/,()\s\d]+/, E = {}, C = function(T) {
105
+ return (T = +T) + (T > 68 ? 1900 : 2e3);
106
+ }, p = function(T) {
107
107
  return function(M) {
108
- this[x] = +M;
108
+ this[T] = +M;
109
109
  };
110
- }, F = [/[+-]\d\d:?(\d\d)?|Z/, function(x) {
110
+ }, F = [/[+-]\d\d:?(\d\d)?|Z/, function(T) {
111
111
  (this.zone || (this.zone = {})).offset = function(M) {
112
112
  if (!M || M === "Z") return 0;
113
113
  var L = M.match(/([+-]|\d\d)/g), Y = 60 * L[1] + (+L[2] || 0);
114
114
  return Y === 0 ? 0 : L[0] === "+" ? -Y : Y;
115
- }(x);
116
- }], C = function(x) {
117
- var M = E[x];
115
+ }(T);
116
+ }], S = function(T) {
117
+ var M = E[T];
118
118
  return M && (M.indexOf ? M : M.s.concat(M.f));
119
- }, v = function(x, M) {
119
+ }, x = function(T, M) {
120
120
  var L, Y = E.meridiem;
121
121
  if (Y) {
122
- for (var N = 1; N <= 24; N += 1) if (x.indexOf(Y(N, 0, M)) > -1) {
122
+ for (var N = 1; N <= 24; N += 1) if (T.indexOf(Y(N, 0, M)) > -1) {
123
123
  L = N > 12;
124
124
  break;
125
125
  }
126
- } else L = x === (M ? "pm" : "PM");
126
+ } else L = T === (M ? "pm" : "PM");
127
127
  return L;
128
- }, q = { A: [D, function(x) {
129
- this.afternoon = v(x, false);
130
- }], a: [D, function(x) {
131
- this.afternoon = v(x, true);
132
- }], Q: [a, function(x) {
133
- this.month = 3 * (x - 1) + 1;
134
- }], S: [a, function(x) {
135
- this.milliseconds = 100 * +x;
136
- }], SS: [k, function(x) {
137
- this.milliseconds = 10 * +x;
138
- }], SSS: [/\d{3}/, function(x) {
139
- this.milliseconds = +x;
140
- }], s: [d, g("seconds")], ss: [d, g("seconds")], m: [d, g("minutes")], mm: [d, g("minutes")], H: [d, g("hours")], h: [d, g("hours")], HH: [d, g("hours")], hh: [d, g("hours")], D: [d, g("day")], DD: [k, g("day")], Do: [D, function(x) {
141
- var M = E.ordinal, L = x.match(/\d+/);
142
- if (this.day = L[0], M) for (var Y = 1; Y <= 31; Y += 1) M(Y).replace(/\[|\]/g, "") === x && (this.day = Y);
143
- }], w: [d, g("week")], ww: [k, g("week")], M: [d, g("month")], MM: [k, g("month")], MMM: [D, function(x) {
144
- var M = C("months"), L = (C("monthsShort") || M.map(function(Y) {
128
+ }, q = { A: [D, function(T) {
129
+ this.afternoon = x(T, false);
130
+ }], a: [D, function(T) {
131
+ this.afternoon = x(T, true);
132
+ }], Q: [a, function(T) {
133
+ this.month = 3 * (T - 1) + 1;
134
+ }], S: [a, function(T) {
135
+ this.milliseconds = 100 * +T;
136
+ }], SS: [h, function(T) {
137
+ this.milliseconds = 10 * +T;
138
+ }], SSS: [/\d{3}/, function(T) {
139
+ this.milliseconds = +T;
140
+ }], s: [u, p("seconds")], ss: [u, p("seconds")], m: [u, p("minutes")], mm: [u, p("minutes")], H: [u, p("hours")], h: [u, p("hours")], HH: [u, p("hours")], hh: [u, p("hours")], D: [u, p("day")], DD: [h, p("day")], Do: [D, function(T) {
141
+ var M = E.ordinal, L = T.match(/\d+/);
142
+ if (this.day = L[0], M) for (var Y = 1; Y <= 31; Y += 1) M(Y).replace(/\[|\]/g, "") === T && (this.day = Y);
143
+ }], w: [u, p("week")], ww: [h, p("week")], M: [u, p("month")], MM: [h, p("month")], MMM: [D, function(T) {
144
+ var M = S("months"), L = (S("monthsShort") || M.map(function(Y) {
145
145
  return Y.slice(0, 3);
146
- })).indexOf(x) + 1;
146
+ })).indexOf(T) + 1;
147
147
  if (L < 1) throw new Error();
148
148
  this.month = L % 12 || L;
149
- }], MMMM: [D, function(x) {
150
- var M = C("months").indexOf(x) + 1;
149
+ }], MMMM: [D, function(T) {
150
+ var M = S("months").indexOf(T) + 1;
151
151
  if (M < 1) throw new Error();
152
152
  this.month = M % 12 || M;
153
- }], Y: [/[+-]?\d+/, g("year")], YY: [k, function(x) {
154
- this.year = S(x);
155
- }], YYYY: [/\d{4}/, g("year")], Z: F, ZZ: F };
156
- function A(x) {
153
+ }], Y: [/[+-]?\d+/, p("year")], YY: [h, function(T) {
154
+ this.year = C(T);
155
+ }], YYYY: [/\d{4}/, p("year")], Z: F, ZZ: F };
156
+ function A(T) {
157
157
  var M, L;
158
- M = x, L = E && E.formats;
159
- for (var Y = (x = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, p, m) {
160
- var w = m && m.toUpperCase();
161
- return p || L[m] || n[m] || L[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, u, h) {
162
- return u || h.slice(1);
158
+ M = T, L = E && E.formats;
159
+ for (var Y = (T = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(b, v, m) {
160
+ var _ = m && m.toUpperCase();
161
+ return v || L[m] || i[m] || L[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, f, k) {
162
+ return f || k.slice(1);
163
163
  });
164
- })).match(i), N = Y.length, R = 0; R < N; R += 1) {
165
- var G = Y[R], z = q[G], y = z && z[0], b = z && z[1];
166
- Y[R] = b ? { regex: y, parser: b } : G.replace(/^\[|\]$/g, "");
164
+ })).match(s), N = Y.length, R = 0; R < N; R += 1) {
165
+ var G = Y[R], P = q[G], g = P && P[0], w = P && P[1];
166
+ Y[R] = w ? { regex: g, parser: w } : G.replace(/^\[|\]$/g, "");
167
167
  }
168
- return function(T) {
169
- for (var p = {}, m = 0, w = 0; m < N; m += 1) {
168
+ return function(b) {
169
+ for (var v = {}, m = 0, _ = 0; m < N; m += 1) {
170
170
  var c = Y[m];
171
- if (typeof c == "string") w += c.length;
171
+ if (typeof c == "string") _ += c.length;
172
172
  else {
173
- var u = c.regex, h = c.parser, f = T.slice(w), _ = u.exec(f)[0];
174
- h.call(p, _), T = T.replace(_, "");
173
+ var f = c.regex, k = c.parser, d = b.slice(_), y = f.exec(d)[0];
174
+ k.call(v, y), b = b.replace(y, "");
175
175
  }
176
176
  }
177
- return function(s) {
178
- var o = s.afternoon;
177
+ return function(n) {
178
+ var o = n.afternoon;
179
179
  if (o !== void 0) {
180
- var r = s.hours;
181
- o ? r < 12 && (s.hours += 12) : r === 12 && (s.hours = 0), delete s.afternoon;
180
+ var r = n.hours;
181
+ o ? r < 12 && (n.hours += 12) : r === 12 && (n.hours = 0), delete n.afternoon;
182
182
  }
183
- }(p), p;
183
+ }(v), v;
184
184
  };
185
185
  }
186
- return function(x, M, L) {
187
- L.p.customParseFormat = true, x && x.parseTwoDigitYear && (S = x.parseTwoDigitYear);
186
+ return function(T, M, L) {
187
+ L.p.customParseFormat = true, T && T.parseTwoDigitYear && (C = T.parseTwoDigitYear);
188
188
  var Y = M.prototype, N = Y.parse;
189
189
  Y.parse = function(R) {
190
- var G = R.date, z = R.utc, y = R.args;
191
- this.$u = z;
192
- var b = y[1];
193
- if (typeof b == "string") {
194
- var T = y[2] === true, p = y[3] === true, m = T || p, w = y[2];
195
- p && (w = y[2]), E = this.$locale(), !T && w && (E = L.Ls[w]), this.$d = function(f, _, s, o) {
190
+ var G = R.date, P = R.utc, g = R.args;
191
+ this.$u = P;
192
+ var w = g[1];
193
+ if (typeof w == "string") {
194
+ var b = g[2] === true, v = g[3] === true, m = b || v, _ = g[2];
195
+ v && (_ = g[2]), E = this.$locale(), !b && _ && (E = L.Ls[_]), this.$d = function(d, y, n, o) {
196
196
  try {
197
- if (["x", "X"].indexOf(_) > -1) return new Date((_ === "X" ? 1e3 : 1) * f);
198
- var r = A(_)(f), V = r.year, I = r.month, W = r.day, X = r.hours, P = r.minutes, O = r.seconds, Q = r.milliseconds, at = r.zone, st = r.week, dt = /* @__PURE__ */ new Date(), ft = W || (V || I ? 1 : dt.getDate()), ot = V || dt.getFullYear(), B = 0;
199
- V && !I || (B = I > 0 ? I - 1 : dt.getMonth());
200
- var $, j = X || 0, nt = P || 0, K = O || 0, rt = Q || 0;
201
- return at ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt + 60 * at.offset * 1e3)) : s ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt)) : ($ = new Date(ot, B, ft, j, nt, K, rt), st && ($ = o($).week(st).toDate()), $);
197
+ if (["x", "X"].indexOf(y) > -1) return new Date((y === "X" ? 1e3 : 1) * d);
198
+ var r = A(y)(d), W = r.year, I = r.month, V = r.day, X = r.hours, O = r.minutes, z = r.seconds, Q = r.milliseconds, at = r.zone, st = r.week, dt = /* @__PURE__ */ new Date(), ft = V || (W || I ? 1 : dt.getDate()), ot = W || dt.getFullYear(), B = 0;
199
+ W && !I || (B = I > 0 ? I - 1 : dt.getMonth());
200
+ var $, j = X || 0, nt = O || 0, K = z || 0, rt = Q || 0;
201
+ return at ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt + 60 * at.offset * 1e3)) : n ? new Date(Date.UTC(ot, B, ft, j, nt, K, rt)) : ($ = new Date(ot, B, ft, j, nt, K, rt), st && ($ = o($).week(st).toDate()), $);
202
202
  } catch {
203
203
  return /* @__PURE__ */ new Date("");
204
204
  }
205
- }(G, b, z, L), this.init(), w && w !== true && (this.$L = this.locale(w).$L), m && G != this.format(b) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
206
- } else if (b instanceof Array) for (var c = b.length, u = 1; u <= c; u += 1) {
207
- y[1] = b[u - 1];
208
- var h = L.apply(this, y);
209
- if (h.isValid()) {
210
- this.$d = h.$d, this.$L = h.$L, this.init();
205
+ }(G, w, P, L), this.init(), _ && _ !== true && (this.$L = this.locale(_).$L), m && G != this.format(w) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
206
+ } else if (w instanceof Array) for (var c = w.length, f = 1; f <= c; f += 1) {
207
+ g[1] = w[f - 1];
208
+ var k = L.apply(this, g);
209
+ if (k.isValid()) {
210
+ this.$d = k.$d, this.$L = k.$L, this.init();
211
211
  break;
212
212
  }
213
- u === c && (this.$d = /* @__PURE__ */ new Date(""));
213
+ f === c && (this.$d = /* @__PURE__ */ new Date(""));
214
214
  }
215
215
  else N.call(this, R);
216
216
  };
@@ -223,15 +223,15 @@ const tr = /* @__PURE__ */ Wt(Je);
223
223
  var bt = { exports: {} }, er = bt.exports, ne;
224
224
  function rr() {
225
225
  return ne || (ne = 1, function(t, e) {
226
- (function(n, i) {
227
- t.exports = i();
226
+ (function(i, s) {
227
+ t.exports = s();
228
228
  })(er, function() {
229
- return function(n, i) {
230
- var a = i.prototype, k = a.format;
231
- a.format = function(d) {
229
+ return function(i, s) {
230
+ var a = s.prototype, h = a.format;
231
+ a.format = function(u) {
232
232
  var D = this, E = this.$locale();
233
- if (!this.isValid()) return k.bind(this)(d);
234
- var S = this.$utils(), g = (d || "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(F) {
233
+ if (!this.isValid()) return h.bind(this)(u);
234
+ var C = this.$utils(), p = (u || "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(F) {
235
235
  switch (F) {
236
236
  case "Q":
237
237
  return Math.ceil((D.$M + 1) / 3);
@@ -245,13 +245,13 @@ function rr() {
245
245
  return E.ordinal(D.week(), "W");
246
246
  case "w":
247
247
  case "ww":
248
- return S.s(D.week(), F === "w" ? 1 : 2, "0");
248
+ return C.s(D.week(), F === "w" ? 1 : 2, "0");
249
249
  case "W":
250
250
  case "WW":
251
- return S.s(D.isoWeek(), F === "W" ? 1 : 2, "0");
251
+ return C.s(D.isoWeek(), F === "W" ? 1 : 2, "0");
252
252
  case "k":
253
253
  case "kk":
254
- return S.s(String(D.$H === 0 ? 24 : D.$H), F === "k" ? 1 : 2, "0");
254
+ return C.s(String(D.$H === 0 ? 24 : D.$H), F === "k" ? 1 : 2, "0");
255
255
  case "X":
256
256
  return Math.floor(D.$d.getTime() / 1e3);
257
257
  case "x":
@@ -264,7 +264,7 @@ function rr() {
264
264
  return F;
265
265
  }
266
266
  });
267
- return k.bind(this)(g);
267
+ return h.bind(this)(p);
268
268
  };
269
269
  };
270
270
  });
@@ -273,178 +273,178 @@ function rr() {
273
273
  var nr = rr();
274
274
  const ir = /* @__PURE__ */ Wt(nr);
275
275
  var It = function() {
276
- var t = /* @__PURE__ */ l(function(w, c, u, h) {
277
- for (u = u || {}, h = w.length; h--; u[w[h]] = c) ;
278
- return u;
279
- }, "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], i = [1, 27], a = [1, 28], k = [1, 29], d = [1, 30], D = [1, 31], E = [1, 32], S = [1, 33], g = [1, 34], F = [1, 9], C = [1, 10], v = [1, 11], q = [1, 12], A = [1, 13], x = [1, 14], M = [1, 15], L = [1, 16], Y = [1, 19], N = [1, 20], R = [1, 21], G = [1, 22], z = [1, 23], y = [1, 25], b = [1, 35], T = {
276
+ var t = /* @__PURE__ */ l(function(_, c, f, k) {
277
+ for (f = f || {}, k = _.length; k--; f[_[k]] = c) ;
278
+ return f;
279
+ }, "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], i = [1, 26], s = [1, 27], a = [1, 28], h = [1, 29], u = [1, 30], D = [1, 31], E = [1, 32], C = [1, 33], p = [1, 34], F = [1, 9], S = [1, 10], x = [1, 11], q = [1, 12], A = [1, 13], T = [1, 14], M = [1, 15], L = [1, 16], Y = [1, 19], N = [1, 20], R = [1, 21], G = [1, 22], P = [1, 23], g = [1, 25], w = [1, 35], b = {
280
280
  trace: /* @__PURE__ */ l(function() {
281
281
  }, "trace"),
282
282
  yy: {},
283
283
  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 },
284
284
  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" },
285
285
  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]],
286
- performAction: /* @__PURE__ */ l(function(c, u, h, f, _, s, o) {
287
- var r = s.length - 1;
288
- switch (_) {
286
+ performAction: /* @__PURE__ */ l(function(c, f, k, d, y, n, o) {
287
+ var r = n.length - 1;
288
+ switch (y) {
289
289
  case 1:
290
- return s[r - 1];
290
+ return n[r - 1];
291
291
  case 2:
292
292
  this.$ = [];
293
293
  break;
294
294
  case 3:
295
- s[r - 1].push(s[r]), this.$ = s[r - 1];
295
+ n[r - 1].push(n[r]), this.$ = n[r - 1];
296
296
  break;
297
297
  case 4:
298
298
  case 5:
299
- this.$ = s[r];
299
+ this.$ = n[r];
300
300
  break;
301
301
  case 6:
302
302
  case 7:
303
303
  this.$ = [];
304
304
  break;
305
305
  case 8:
306
- f.setWeekday("monday");
306
+ d.setWeekday("monday");
307
307
  break;
308
308
  case 9:
309
- f.setWeekday("tuesday");
309
+ d.setWeekday("tuesday");
310
310
  break;
311
311
  case 10:
312
- f.setWeekday("wednesday");
312
+ d.setWeekday("wednesday");
313
313
  break;
314
314
  case 11:
315
- f.setWeekday("thursday");
315
+ d.setWeekday("thursday");
316
316
  break;
317
317
  case 12:
318
- f.setWeekday("friday");
318
+ d.setWeekday("friday");
319
319
  break;
320
320
  case 13:
321
- f.setWeekday("saturday");
321
+ d.setWeekday("saturday");
322
322
  break;
323
323
  case 14:
324
- f.setWeekday("sunday");
324
+ d.setWeekday("sunday");
325
325
  break;
326
326
  case 15:
327
- f.setWeekend("friday");
327
+ d.setWeekend("friday");
328
328
  break;
329
329
  case 16:
330
- f.setWeekend("saturday");
330
+ d.setWeekend("saturday");
331
331
  break;
332
332
  case 17:
333
- f.setDateFormat(s[r].substr(11)), this.$ = s[r].substr(11);
333
+ d.setDateFormat(n[r].substr(11)), this.$ = n[r].substr(11);
334
334
  break;
335
335
  case 18:
336
- f.enableInclusiveEndDates(), this.$ = s[r].substr(18);
336
+ d.enableInclusiveEndDates(), this.$ = n[r].substr(18);
337
337
  break;
338
338
  case 19:
339
- f.TopAxis(), this.$ = s[r].substr(8);
339
+ d.TopAxis(), this.$ = n[r].substr(8);
340
340
  break;
341
341
  case 20:
342
- f.setAxisFormat(s[r].substr(11)), this.$ = s[r].substr(11);
342
+ d.setAxisFormat(n[r].substr(11)), this.$ = n[r].substr(11);
343
343
  break;
344
344
  case 21:
345
- f.setTickInterval(s[r].substr(13)), this.$ = s[r].substr(13);
345
+ d.setTickInterval(n[r].substr(13)), this.$ = n[r].substr(13);
346
346
  break;
347
347
  case 22:
348
- f.setExcludes(s[r].substr(9)), this.$ = s[r].substr(9);
348
+ d.setExcludes(n[r].substr(9)), this.$ = n[r].substr(9);
349
349
  break;
350
350
  case 23:
351
- f.setIncludes(s[r].substr(9)), this.$ = s[r].substr(9);
351
+ d.setIncludes(n[r].substr(9)), this.$ = n[r].substr(9);
352
352
  break;
353
353
  case 24:
354
- f.setTodayMarker(s[r].substr(12)), this.$ = s[r].substr(12);
354
+ d.setTodayMarker(n[r].substr(12)), this.$ = n[r].substr(12);
355
355
  break;
356
356
  case 27:
357
- f.setDiagramTitle(s[r].substr(6)), this.$ = s[r].substr(6);
357
+ d.setDiagramTitle(n[r].substr(6)), this.$ = n[r].substr(6);
358
358
  break;
359
359
  case 28:
360
- this.$ = s[r].trim(), f.setAccTitle(this.$);
360
+ this.$ = n[r].trim(), d.setAccTitle(this.$);
361
361
  break;
362
362
  case 29:
363
363
  case 30:
364
- this.$ = s[r].trim(), f.setAccDescription(this.$);
364
+ this.$ = n[r].trim(), d.setAccDescription(this.$);
365
365
  break;
366
366
  case 31:
367
- f.addSection(s[r].substr(8)), this.$ = s[r].substr(8);
367
+ d.addSection(n[r].substr(8)), this.$ = n[r].substr(8);
368
368
  break;
369
369
  case 33:
370
- f.addTask(s[r - 1], s[r]), this.$ = "task";
370
+ d.addTask(n[r - 1], n[r]), this.$ = "task";
371
371
  break;
372
372
  case 34:
373
- this.$ = s[r - 1], f.setClickEvent(s[r - 1], s[r], null);
373
+ this.$ = n[r - 1], d.setClickEvent(n[r - 1], n[r], null);
374
374
  break;
375
375
  case 35:
376
- this.$ = s[r - 2], f.setClickEvent(s[r - 2], s[r - 1], s[r]);
376
+ this.$ = n[r - 2], d.setClickEvent(n[r - 2], n[r - 1], n[r]);
377
377
  break;
378
378
  case 36:
379
- this.$ = s[r - 2], f.setClickEvent(s[r - 2], s[r - 1], null), f.setLink(s[r - 2], s[r]);
379
+ this.$ = n[r - 2], d.setClickEvent(n[r - 2], n[r - 1], null), d.setLink(n[r - 2], n[r]);
380
380
  break;
381
381
  case 37:
382
- this.$ = s[r - 3], f.setClickEvent(s[r - 3], s[r - 2], s[r - 1]), f.setLink(s[r - 3], s[r]);
382
+ this.$ = n[r - 3], d.setClickEvent(n[r - 3], n[r - 2], n[r - 1]), d.setLink(n[r - 3], n[r]);
383
383
  break;
384
384
  case 38:
385
- this.$ = s[r - 2], f.setClickEvent(s[r - 2], s[r], null), f.setLink(s[r - 2], s[r - 1]);
385
+ this.$ = n[r - 2], d.setClickEvent(n[r - 2], n[r], null), d.setLink(n[r - 2], n[r - 1]);
386
386
  break;
387
387
  case 39:
388
- this.$ = s[r - 3], f.setClickEvent(s[r - 3], s[r - 1], s[r]), f.setLink(s[r - 3], s[r - 2]);
388
+ this.$ = n[r - 3], d.setClickEvent(n[r - 3], n[r - 1], n[r]), d.setLink(n[r - 3], n[r - 2]);
389
389
  break;
390
390
  case 40:
391
- this.$ = s[r - 1], f.setLink(s[r - 1], s[r]);
391
+ this.$ = n[r - 1], d.setLink(n[r - 1], n[r]);
392
392
  break;
393
393
  case 41:
394
394
  case 47:
395
- this.$ = s[r - 1] + " " + s[r];
395
+ this.$ = n[r - 1] + " " + n[r];
396
396
  break;
397
397
  case 42:
398
398
  case 43:
399
399
  case 45:
400
- this.$ = s[r - 2] + " " + s[r - 1] + " " + s[r];
400
+ this.$ = n[r - 2] + " " + n[r - 1] + " " + n[r];
401
401
  break;
402
402
  case 44:
403
403
  case 46:
404
- this.$ = s[r - 3] + " " + s[r - 2] + " " + s[r - 1] + " " + s[r];
404
+ this.$ = n[r - 3] + " " + n[r - 2] + " " + n[r - 1] + " " + n[r];
405
405
  break;
406
406
  }
407
407
  }, "anonymous"),
408
- 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: i, 14: a, 15: k, 16: d, 17: D, 18: E, 19: 18, 20: S, 21: g, 22: F, 23: C, 24: v, 25: q, 26: A, 27: x, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: z, 37: 24, 38: y, 40: b }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: i, 14: a, 15: k, 16: d, 17: D, 18: E, 19: 18, 20: S, 21: g, 22: F, 23: C, 24: v, 25: q, 26: A, 27: x, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: z, 37: 24, 38: y, 40: b }, 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])],
408
+ 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: i, 13: s, 14: a, 15: h, 16: u, 17: D, 18: E, 19: 18, 20: C, 21: p, 22: F, 23: S, 24: x, 25: q, 26: A, 27: T, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: P, 37: 24, 38: g, 40: w }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: i, 13: s, 14: a, 15: h, 16: u, 17: D, 18: E, 19: 18, 20: C, 21: p, 22: F, 23: S, 24: x, 25: q, 26: A, 27: T, 28: M, 29: L, 30: Y, 31: N, 33: R, 35: G, 36: P, 37: 24, 38: g, 40: w }, 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])],
409
409
  defaultActions: {},
410
- parseError: /* @__PURE__ */ l(function(c, u) {
411
- if (u.recoverable)
410
+ parseError: /* @__PURE__ */ l(function(c, f) {
411
+ if (f.recoverable)
412
412
  this.trace(c);
413
413
  else {
414
- var h = new Error(c);
415
- throw h.hash = u, h;
414
+ var k = new Error(c);
415
+ throw k.hash = f, k;
416
416
  }
417
417
  }, "parseError"),
418
418
  parse: /* @__PURE__ */ l(function(c) {
419
- var u = this, h = [0], f = [], _ = [null], s = [], o = this.table, r = "", V = 0, I = 0, W = 2, X = 1, P = s.slice.call(arguments, 1), O = Object.create(this.lexer), Q = { yy: {} };
419
+ var f = this, k = [0], d = [], y = [null], n = [], o = this.table, r = "", W = 0, I = 0, V = 2, X = 1, O = n.slice.call(arguments, 1), z = Object.create(this.lexer), Q = { yy: {} };
420
420
  for (var at in this.yy)
421
421
  Object.prototype.hasOwnProperty.call(this.yy, at) && (Q.yy[at] = this.yy[at]);
422
- O.setInput(c, Q.yy), Q.yy.lexer = O, Q.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {});
423
- var st = O.yylloc;
424
- s.push(st);
425
- var dt = O.options && O.options.ranges;
422
+ z.setInput(c, Q.yy), Q.yy.lexer = z, Q.yy.parser = this, typeof z.yylloc > "u" && (z.yylloc = {});
423
+ var st = z.yylloc;
424
+ n.push(st);
425
+ var dt = z.options && z.options.ranges;
426
426
  typeof Q.yy.parseError == "function" ? this.parseError = Q.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
427
427
  function ft(Z) {
428
- h.length = h.length - 2 * Z, _.length = _.length - Z, s.length = s.length - Z;
428
+ k.length = k.length - 2 * Z, y.length = y.length - Z, n.length = n.length - Z;
429
429
  }
430
430
  l(ft, "popStack");
431
431
  function ot() {
432
432
  var Z;
433
- return Z = f.pop() || O.lex() || X, typeof Z != "number" && (Z instanceof Array && (f = Z, Z = f.pop()), Z = u.symbols_[Z] || Z), Z;
433
+ return Z = d.pop() || z.lex() || X, typeof Z != "number" && (Z instanceof Array && (d = Z, Z = d.pop()), Z = f.symbols_[Z] || Z), Z;
434
434
  }
435
435
  l(ot, "lex");
436
436
  for (var B, $, j, nt, K = {}, rt, J, Xt, yt; ; ) {
437
- if ($ = h[h.length - 1], this.defaultActions[$] ? j = this.defaultActions[$] : ((B === null || typeof B > "u") && (B = ot()), j = o[$] && o[$][B]), typeof j > "u" || !j.length || !j[0]) {
437
+ if ($ = k[k.length - 1], this.defaultActions[$] ? j = this.defaultActions[$] : ((B === null || typeof B > "u") && (B = ot()), j = o[$] && o[$][B]), typeof j > "u" || !j.length || !j[0]) {
438
438
  var Et = "";
439
439
  yt = [];
440
440
  for (rt in o[$])
441
- this.terminals_[rt] && rt > W && yt.push("'" + this.terminals_[rt] + "'");
442
- O.showPosition ? Et = "Parse error on line " + (V + 1) + `:
443
- ` + O.showPosition() + `
444
- Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et = "Parse error on line " + (V + 1) + ": Unexpected " + (B == X ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Et, {
445
- text: O.match,
441
+ this.terminals_[rt] && rt > V && yt.push("'" + this.terminals_[rt] + "'");
442
+ z.showPosition ? Et = "Parse error on line " + (W + 1) + `:
443
+ ` + z.showPosition() + `
444
+ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et = "Parse error on line " + (W + 1) + ": Unexpected " + (B == X ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Et, {
445
+ text: z.match,
446
446
  token: this.terminals_[B] || B,
447
- line: O.yylineno,
447
+ line: z.yylineno,
448
448
  loc: st,
449
449
  expected: yt
450
450
  });
@@ -453,28 +453,28 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
453
453
  throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + B);
454
454
  switch (j[0]) {
455
455
  case 1:
456
- h.push(B), _.push(O.yytext), s.push(O.yylloc), h.push(j[1]), B = null, I = O.yyleng, r = O.yytext, V = O.yylineno, st = O.yylloc;
456
+ k.push(B), y.push(z.yytext), n.push(z.yylloc), k.push(j[1]), B = null, I = z.yyleng, r = z.yytext, W = z.yylineno, st = z.yylloc;
457
457
  break;
458
458
  case 2:
459
- if (J = this.productions_[j[1]][1], K.$ = _[_.length - J], K._$ = {
460
- first_line: s[s.length - (J || 1)].first_line,
461
- last_line: s[s.length - 1].last_line,
462
- first_column: s[s.length - (J || 1)].first_column,
463
- last_column: s[s.length - 1].last_column
459
+ if (J = this.productions_[j[1]][1], K.$ = y[y.length - J], K._$ = {
460
+ first_line: n[n.length - (J || 1)].first_line,
461
+ last_line: n[n.length - 1].last_line,
462
+ first_column: n[n.length - (J || 1)].first_column,
463
+ last_column: n[n.length - 1].last_column
464
464
  }, dt && (K._$.range = [
465
- s[s.length - (J || 1)].range[0],
466
- s[s.length - 1].range[1]
465
+ n[n.length - (J || 1)].range[0],
466
+ n[n.length - 1].range[1]
467
467
  ]), nt = this.performAction.apply(K, [
468
468
  r,
469
469
  I,
470
- V,
470
+ W,
471
471
  Q.yy,
472
472
  j[1],
473
- _,
474
- s
475
- ].concat(P)), typeof nt < "u")
473
+ y,
474
+ n
475
+ ].concat(O)), typeof nt < "u")
476
476
  return nt;
477
- J && (h = h.slice(0, -1 * J * 2), _ = _.slice(0, -1 * J), s = s.slice(0, -1 * J)), h.push(this.productions_[j[1]][0]), _.push(K.$), s.push(K._$), Xt = o[h[h.length - 2]][h[h.length - 1]], h.push(Xt);
477
+ J && (k = k.slice(0, -1 * J * 2), y = y.slice(0, -1 * J), n = n.slice(0, -1 * J)), k.push(this.productions_[j[1]][0]), y.push(K.$), n.push(K._$), Xt = o[k[k.length - 2]][k[k.length - 1]], k.push(Xt);
478
478
  break;
479
479
  case 3:
480
480
  return true;
@@ -482,18 +482,18 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
482
482
  }
483
483
  return true;
484
484
  }, "parse")
485
- }, p = /* @__PURE__ */ function() {
486
- var w = {
485
+ }, v = /* @__PURE__ */ function() {
486
+ var _ = {
487
487
  EOF: 1,
488
- parseError: /* @__PURE__ */ l(function(u, h) {
488
+ parseError: /* @__PURE__ */ l(function(f, k) {
489
489
  if (this.yy.parser)
490
- this.yy.parser.parseError(u, h);
490
+ this.yy.parser.parseError(f, k);
491
491
  else
492
- throw new Error(u);
492
+ throw new Error(f);
493
493
  }, "parseError"),
494
494
  // resets the lexer, sets new input
495
- setInput: /* @__PURE__ */ l(function(c, u) {
496
- return this.yy = u || this.yy || {}, this._input = c, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
495
+ setInput: /* @__PURE__ */ l(function(c, f) {
496
+ return this.yy = f || this.yy || {}, this._input = c, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
497
497
  first_line: 1,
498
498
  first_column: 0,
499
499
  last_line: 1,
@@ -504,22 +504,22 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
504
504
  input: /* @__PURE__ */ l(function() {
505
505
  var c = this._input[0];
506
506
  this.yytext += c, this.yyleng++, this.offset++, this.match += c, this.matched += c;
507
- var u = c.match(/(?:\r\n?|\n).*/g);
508
- return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), c;
507
+ var f = c.match(/(?:\r\n?|\n).*/g);
508
+ 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), c;
509
509
  }, "input"),
510
510
  // unshifts one char (or a string) into the input
511
511
  unput: /* @__PURE__ */ l(function(c) {
512
- var u = c.length, h = c.split(/(?:\r\n?|\n)/g);
513
- this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
514
- var f = this.match.split(/(?:\r\n?|\n)/g);
515
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
516
- var _ = this.yylloc.range;
512
+ var f = c.length, k = c.split(/(?:\r\n?|\n)/g);
513
+ this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
514
+ var d = this.match.split(/(?:\r\n?|\n)/g);
515
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), k.length - 1 && (this.yylineno -= k.length - 1);
516
+ var y = this.yylloc.range;
517
517
  return this.yylloc = {
518
518
  first_line: this.yylloc.first_line,
519
519
  last_line: this.yylineno + 1,
520
520
  first_column: this.yylloc.first_column,
521
- last_column: h ? (h.length === f.length ? this.yylloc.first_column : 0) + f[f.length - h.length].length - h[0].length : this.yylloc.first_column - u
522
- }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
521
+ last_column: k ? (k.length === d.length ? this.yylloc.first_column : 0) + d[d.length - k.length].length - k[0].length : this.yylloc.first_column - f
522
+ }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
523
523
  }, "unput"),
524
524
  // When called from action, caches matched text and appends it on next action
525
525
  more: /* @__PURE__ */ l(function() {
@@ -554,14 +554,14 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
554
554
  }, "upcomingInput"),
555
555
  // displays the character position where the lexing error occurred, i.e. for error messages
556
556
  showPosition: /* @__PURE__ */ l(function() {
557
- var c = this.pastInput(), u = new Array(c.length + 1).join("-");
557
+ var c = this.pastInput(), f = new Array(c.length + 1).join("-");
558
558
  return c + this.upcomingInput() + `
559
- ` + u + "^";
559
+ ` + f + "^";
560
560
  }, "showPosition"),
561
561
  // test the lexed token: return FALSE when not a match, otherwise return token
562
- test_match: /* @__PURE__ */ l(function(c, u) {
563
- var h, f, _;
564
- if (this.options.backtrack_lexer && (_ = {
562
+ test_match: /* @__PURE__ */ l(function(c, f) {
563
+ var k, d, y;
564
+ if (this.options.backtrack_lexer && (y = {
565
565
  yylineno: this.yylineno,
566
566
  yylloc: {
567
567
  first_line: this.yylloc.first_line,
@@ -580,16 +580,16 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
580
580
  yy: this.yy,
581
581
  conditionStack: this.conditionStack.slice(0),
582
582
  done: this.done
583
- }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), f = c[0].match(/(?:\r\n?|\n).*/g), f && (this.yylineno += f.length), this.yylloc = {
583
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), d = c[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
584
584
  first_line: this.yylloc.last_line,
585
585
  last_line: this.yylineno + 1,
586
586
  first_column: this.yylloc.last_column,
587
- last_column: f ? f[f.length - 1].length - f[f.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + c[0].length
588
- }, this.yytext += c[0], this.match += c[0], this.matches = c, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(c[0].length), this.matched += c[0], h = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), h)
589
- return h;
587
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + c[0].length
588
+ }, this.yytext += c[0], this.match += c[0], this.matches = c, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(c[0].length), this.matched += c[0], k = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), k)
589
+ return k;
590
590
  if (this._backtrack) {
591
- for (var s in _)
592
- this[s] = _[s];
591
+ for (var n in y)
592
+ this[n] = y[n];
593
593
  return false;
594
594
  }
595
595
  return false;
@@ -599,22 +599,22 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
599
599
  if (this.done)
600
600
  return this.EOF;
601
601
  this._input || (this.done = true);
602
- var c, u, h, f;
602
+ var c, f, k, d;
603
603
  this._more || (this.yytext = "", this.match = "");
604
- for (var _ = this._currentRules(), s = 0; s < _.length; s++)
605
- if (h = this._input.match(this.rules[_[s]]), h && (!u || h[0].length > u[0].length)) {
606
- if (u = h, f = s, this.options.backtrack_lexer) {
607
- if (c = this.test_match(h, _[s]), c !== false)
604
+ for (var y = this._currentRules(), n = 0; n < y.length; n++)
605
+ if (k = this._input.match(this.rules[y[n]]), k && (!f || k[0].length > f[0].length)) {
606
+ if (f = k, d = n, this.options.backtrack_lexer) {
607
+ if (c = this.test_match(k, y[n]), c !== false)
608
608
  return c;
609
609
  if (this._backtrack) {
610
- u = false;
610
+ f = false;
611
611
  continue;
612
612
  } else
613
613
  return false;
614
614
  } else if (!this.options.flex)
615
615
  break;
616
616
  }
617
- return u ? (c = this.test_match(u, _[f]), c !== false ? c : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
617
+ return f ? (c = this.test_match(f, y[d]), c !== false ? c : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
618
618
  ` + this.showPosition(), {
619
619
  text: "",
620
620
  token: null,
@@ -623,37 +623,37 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
623
623
  }, "next"),
624
624
  // return next match that has a token
625
625
  lex: /* @__PURE__ */ l(function() {
626
- var u = this.next();
627
- return u || this.lex();
626
+ var f = this.next();
627
+ return f || this.lex();
628
628
  }, "lex"),
629
629
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
630
- begin: /* @__PURE__ */ l(function(u) {
631
- this.conditionStack.push(u);
630
+ begin: /* @__PURE__ */ l(function(f) {
631
+ this.conditionStack.push(f);
632
632
  }, "begin"),
633
633
  // pop the previously active lexer condition state off the condition stack
634
634
  popState: /* @__PURE__ */ l(function() {
635
- var u = this.conditionStack.length - 1;
636
- return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
635
+ var f = this.conditionStack.length - 1;
636
+ return f > 0 ? this.conditionStack.pop() : this.conditionStack[0];
637
637
  }, "popState"),
638
638
  // produce the lexer rule set which is active for the currently active lexer condition state
639
639
  _currentRules: /* @__PURE__ */ l(function() {
640
640
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
641
641
  }, "_currentRules"),
642
642
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
643
- topState: /* @__PURE__ */ l(function(u) {
644
- return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
643
+ topState: /* @__PURE__ */ l(function(f) {
644
+ return f = this.conditionStack.length - 1 - Math.abs(f || 0), f >= 0 ? this.conditionStack[f] : "INITIAL";
645
645
  }, "topState"),
646
646
  // alias for begin(condition)
647
- pushState: /* @__PURE__ */ l(function(u) {
648
- this.begin(u);
647
+ pushState: /* @__PURE__ */ l(function(f) {
648
+ this.begin(f);
649
649
  }, "pushState"),
650
650
  // return the number of states currently on the stack
651
651
  stateStackSize: /* @__PURE__ */ l(function() {
652
652
  return this.conditionStack.length;
653
653
  }, "stateStackSize"),
654
654
  options: { "case-insensitive": true },
655
- performAction: /* @__PURE__ */ l(function(u, h, f, _) {
656
- switch (f) {
655
+ performAction: /* @__PURE__ */ l(function(f, k, d, y) {
656
+ switch (d) {
657
657
  case 0:
658
658
  return this.begin("open_directive"), "open_directive";
659
659
  case 1:
@@ -775,33 +775,33 @@ Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Et =
775
775
  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],
776
776
  conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: false }, acc_descr: { rules: [4], inclusive: false }, acc_title: { rules: [2], inclusive: false }, callbackargs: { rules: [21, 22], inclusive: false }, callbackname: { rules: [18, 19, 20], inclusive: false }, href: { rules: [15, 16], inclusive: false }, click: { rules: [24, 25], inclusive: false }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 17, 23, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], inclusive: true } }
777
777
  };
778
- return w;
778
+ return _;
779
779
  }();
780
- T.lexer = p;
780
+ b.lexer = v;
781
781
  function m() {
782
782
  this.yy = {};
783
783
  }
784
- return l(m, "Parser"), m.prototype = T, T.Parser = m, new m();
784
+ return l(m, "Parser"), m.prototype = b, b.Parser = m, new m();
785
785
  }();
786
786
  It.parser = It;
787
787
  var ar = It;
788
788
  U.extend($e);
789
789
  U.extend(tr);
790
790
  U.extend(ir);
791
- var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht = [], mt = [], Ot = /* @__PURE__ */ new Map(), Rt = [], Ct = [], ut = "", Nt = "", ce = ["active", "done", "crit", "milestone", "vert"], Bt = [], kt = false, Ht = false, qt = "sunday", St = "saturday", Ft = 0, sr = /* @__PURE__ */ l(function() {
792
- Rt = [], Ct = [], ut = "", Bt = [], wt = 0, Yt = void 0, _t = void 0, H = [], tt = "", Vt = "", Nt = "", Pt = void 0, zt = "", ht = [], mt = [], kt = false, Ht = false, Ft = 0, Ot = /* @__PURE__ */ new Map(), De(), qt = "sunday", St = "saturday";
791
+ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Ot = void 0, Pt = "", ht = [], mt = [], zt = /* @__PURE__ */ new Map(), Rt = [], St = [], ut = "", Nt = "", ce = ["active", "done", "crit", "milestone", "vert"], Bt = [], kt = false, Ht = false, qt = "sunday", Ct = "saturday", Ft = 0, sr = /* @__PURE__ */ l(function() {
792
+ Rt = [], St = [], ut = "", Bt = [], wt = 0, Yt = void 0, _t = void 0, H = [], tt = "", Vt = "", Nt = "", Ot = void 0, Pt = "", ht = [], mt = [], kt = false, Ht = false, Ft = 0, zt = /* @__PURE__ */ new Map(), De(), qt = "sunday", Ct = "saturday";
793
793
  }, "clear"), or = /* @__PURE__ */ l(function(t) {
794
794
  Vt = t;
795
795
  }, "setAxisFormat"), cr = /* @__PURE__ */ l(function() {
796
796
  return Vt;
797
797
  }, "getAxisFormat"), lr = /* @__PURE__ */ l(function(t) {
798
- Pt = t;
798
+ Ot = t;
799
799
  }, "setTickInterval"), ur = /* @__PURE__ */ l(function() {
800
- return Pt;
800
+ return Ot;
801
801
  }, "getTickInterval"), dr = /* @__PURE__ */ l(function(t) {
802
- zt = t;
802
+ Pt = t;
803
803
  }, "setTodayMarker"), fr = /* @__PURE__ */ l(function() {
804
- return zt;
804
+ return Pt;
805
805
  }, "getTodayMarker"), hr = /* @__PURE__ */ l(function(t) {
806
806
  tt = t;
807
807
  }, "setDateFormat"), mr = /* @__PURE__ */ l(function() {
@@ -827,160 +827,161 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
827
827
  }, "setExcludes"), _r = /* @__PURE__ */ l(function() {
828
828
  return mt;
829
829
  }, "getExcludes"), Dr = /* @__PURE__ */ l(function() {
830
- return Ot;
831
- }, "getLinks"), Cr = /* @__PURE__ */ l(function(t) {
830
+ return zt;
831
+ }, "getLinks"), Sr = /* @__PURE__ */ l(function(t) {
832
832
  ut = t, Rt.push(t);
833
- }, "addSection"), Sr = /* @__PURE__ */ l(function() {
833
+ }, "addSection"), Cr = /* @__PURE__ */ l(function() {
834
834
  return Rt;
835
835
  }, "getSections"), Er = /* @__PURE__ */ l(function() {
836
836
  let t = ae();
837
837
  const e = 10;
838
- let n = 0;
839
- for (; !t && n < e; )
840
- t = ae(), n++;
841
- return Ct = H, Ct;
842
- }, "getTasks"), le = /* @__PURE__ */ l(function(t, e, n, i) {
843
- return i.includes(t.format(e.trim())) ? false : n.includes("weekends") && (t.isoWeekday() === ie[St] || t.isoWeekday() === ie[St] + 1) || n.includes(t.format("dddd").toLowerCase()) ? true : n.includes(t.format(e.trim()));
838
+ let i = 0;
839
+ for (; !t && i < e; )
840
+ t = ae(), i++;
841
+ return St = H, St;
842
+ }, "getTasks"), le = /* @__PURE__ */ l(function(t, e, i, s) {
843
+ const a = t.format(e.trim()), h = t.format("YYYY-MM-DD");
844
+ return s.includes(a) || s.includes(h) ? false : i.includes("weekends") && (t.isoWeekday() === ie[Ct] || t.isoWeekday() === ie[Ct] + 1) || i.includes(t.format("dddd").toLowerCase()) ? true : i.includes(a) || i.includes(h);
844
845
  }, "isInvalidDate"), Mr = /* @__PURE__ */ l(function(t) {
845
846
  qt = t;
846
847
  }, "setWeekday"), Ar = /* @__PURE__ */ l(function() {
847
848
  return qt;
848
849
  }, "getWeekday"), Ir = /* @__PURE__ */ l(function(t) {
849
- St = t;
850
- }, "setWeekend"), ue = /* @__PURE__ */ l(function(t, e, n, i) {
851
- if (!n.length || t.manualEndTime)
850
+ Ct = t;
851
+ }, "setWeekend"), ue = /* @__PURE__ */ l(function(t, e, i, s) {
852
+ if (!i.length || t.manualEndTime)
852
853
  return;
853
854
  let a;
854
855
  t.startTime instanceof Date ? a = U(t.startTime) : a = U(t.startTime, e, true), a = a.add(1, "d");
855
- let k;
856
- t.endTime instanceof Date ? k = U(t.endTime) : k = U(t.endTime, e, true);
857
- const [d, D] = Fr(
856
+ let h;
857
+ t.endTime instanceof Date ? h = U(t.endTime) : h = U(t.endTime, e, true);
858
+ const [u, D] = Fr(
858
859
  a,
859
- k,
860
+ h,
860
861
  e,
861
- n,
862
- i
862
+ i,
863
+ s
863
864
  );
864
- t.endTime = d.toDate(), t.renderEndTime = D;
865
- }, "checkTaskDates"), Fr = /* @__PURE__ */ l(function(t, e, n, i, a) {
866
- let k = false, d = null;
865
+ t.endTime = u.toDate(), t.renderEndTime = D;
866
+ }, "checkTaskDates"), Fr = /* @__PURE__ */ l(function(t, e, i, s, a) {
867
+ let h = false, u = null;
867
868
  for (; t <= e; )
868
- k || (d = e.toDate()), k = le(t, n, i, a), k && (e = e.add(1, "d")), t = t.add(1, "d");
869
- return [e, d];
870
- }, "fixTaskDates"), Lt = /* @__PURE__ */ l(function(t, e, n) {
871
- n = n.trim();
872
- const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
869
+ h || (u = e.toDate()), h = le(t, i, s, a), h && (e = e.add(1, "d")), t = t.add(1, "d");
870
+ return [e, u];
871
+ }, "fixTaskDates"), Lt = /* @__PURE__ */ l(function(t, e, i) {
872
+ i = i.trim();
873
+ const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(i);
873
874
  if (a !== null) {
874
- let d = null;
875
+ let u = null;
875
876
  for (const E of a.groups.ids.split(" ")) {
876
- let S = it(E);
877
- S !== void 0 && (!d || S.endTime > d.endTime) && (d = S);
877
+ let C = it(E);
878
+ C !== void 0 && (!u || C.endTime > u.endTime) && (u = C);
878
879
  }
879
- if (d)
880
- return d.endTime;
880
+ if (u)
881
+ return u.endTime;
881
882
  const D = /* @__PURE__ */ new Date();
882
883
  return D.setHours(0, 0, 0, 0), D;
883
884
  }
884
- let k = U(n, e.trim(), true);
885
- if (k.isValid())
886
- return k.toDate();
885
+ let h = U(i, e.trim(), true);
886
+ if (h.isValid())
887
+ return h.toDate();
887
888
  {
888
- Dt.debug("Invalid date:" + n), Dt.debug("With date format:" + e.trim());
889
- const d = new Date(n);
890
- if (d === void 0 || isNaN(d.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
889
+ Dt.debug("Invalid date:" + i), Dt.debug("With date format:" + e.trim());
890
+ const u = new Date(i);
891
+ if (u === void 0 || isNaN(u.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
891
892
  // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
892
893
  // This can cause virtually infinite loops while rendering, so for the
893
894
  // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
894
895
  // invalid.
895
- d.getFullYear() < -1e4 || d.getFullYear() > 1e4)
896
- throw new Error("Invalid date:" + n);
897
- return d;
896
+ u.getFullYear() < -1e4 || u.getFullYear() > 1e4)
897
+ throw new Error("Invalid date:" + i);
898
+ return u;
898
899
  }
899
900
  }, "getStartDate"), de = /* @__PURE__ */ l(function(t) {
900
901
  const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
901
902
  return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
902
- }, "parseDuration"), fe = /* @__PURE__ */ l(function(t, e, n, i = false) {
903
- n = n.trim();
904
- const k = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
905
- if (k !== null) {
906
- let g = null;
907
- for (const C of k.groups.ids.split(" ")) {
908
- let v = it(C);
909
- v !== void 0 && (!g || v.startTime < g.startTime) && (g = v);
903
+ }, "parseDuration"), fe = /* @__PURE__ */ l(function(t, e, i, s = false) {
904
+ i = i.trim();
905
+ const h = /^until\s+(?<ids>[\d\w- ]+)/.exec(i);
906
+ if (h !== null) {
907
+ let p = null;
908
+ for (const S of h.groups.ids.split(" ")) {
909
+ let x = it(S);
910
+ x !== void 0 && (!p || x.startTime < p.startTime) && (p = x);
910
911
  }
911
- if (g)
912
- return g.startTime;
912
+ if (p)
913
+ return p.startTime;
913
914
  const F = /* @__PURE__ */ new Date();
914
915
  return F.setHours(0, 0, 0, 0), F;
915
916
  }
916
- let d = U(n, e.trim(), true);
917
- if (d.isValid())
918
- return i && (d = d.add(1, "d")), d.toDate();
917
+ let u = U(i, e.trim(), true);
918
+ if (u.isValid())
919
+ return s && (u = u.add(1, "d")), u.toDate();
919
920
  let D = U(t);
920
- const [E, S] = de(n);
921
+ const [E, C] = de(i);
921
922
  if (!Number.isNaN(E)) {
922
- const g = D.add(E, S);
923
- g.isValid() && (D = g);
923
+ const p = D.add(E, C);
924
+ p.isValid() && (D = p);
924
925
  }
925
926
  return D.toDate();
926
927
  }, "getEndDate"), wt = 0, lt = /* @__PURE__ */ l(function(t) {
927
928
  return t === void 0 ? (wt = wt + 1, "task" + wt) : t;
928
929
  }, "parseId"), Lr = /* @__PURE__ */ l(function(t, e) {
929
- let n;
930
- e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
931
- const i = n.split(","), a = {};
932
- Gt(i, a, ce);
933
- for (let d = 0; d < i.length; d++)
934
- i[d] = i[d].trim();
935
- let k = "";
936
- switch (i.length) {
930
+ let i;
931
+ e.substr(0, 1) === ":" ? i = e.substr(1, e.length) : i = e;
932
+ const s = i.split(","), a = {};
933
+ Gt(s, a, ce);
934
+ for (let u = 0; u < s.length; u++)
935
+ s[u] = s[u].trim();
936
+ let h = "";
937
+ switch (s.length) {
937
938
  case 1:
938
- a.id = lt(), a.startTime = t.endTime, k = i[0];
939
+ a.id = lt(), a.startTime = t.endTime, h = s[0];
939
940
  break;
940
941
  case 2:
941
- a.id = lt(), a.startTime = Lt(void 0, tt, i[0]), k = i[1];
942
+ a.id = lt(), a.startTime = Lt(void 0, tt, s[0]), h = s[1];
942
943
  break;
943
944
  case 3:
944
- a.id = lt(i[0]), a.startTime = Lt(void 0, tt, i[1]), k = i[2];
945
+ a.id = lt(s[0]), a.startTime = Lt(void 0, tt, s[1]), h = s[2];
945
946
  break;
946
947
  }
947
- return k && (a.endTime = fe(a.startTime, tt, k, kt), a.manualEndTime = U(k, "YYYY-MM-DD", true).isValid(), ue(a, tt, mt, ht)), a;
948
+ return h && (a.endTime = fe(a.startTime, tt, h, kt), a.manualEndTime = U(h, "YYYY-MM-DD", true).isValid(), ue(a, tt, mt, ht)), a;
948
949
  }, "compileData"), Yr = /* @__PURE__ */ l(function(t, e) {
949
- let n;
950
- e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
951
- const i = n.split(","), a = {};
952
- Gt(i, a, ce);
953
- for (let k = 0; k < i.length; k++)
954
- i[k] = i[k].trim();
955
- switch (i.length) {
950
+ let i;
951
+ e.substr(0, 1) === ":" ? i = e.substr(1, e.length) : i = e;
952
+ const s = i.split(","), a = {};
953
+ Gt(s, a, ce);
954
+ for (let h = 0; h < s.length; h++)
955
+ s[h] = s[h].trim();
956
+ switch (s.length) {
956
957
  case 1:
957
958
  a.id = lt(), a.startTime = {
958
959
  type: "prevTaskEnd",
959
960
  id: t
960
961
  }, a.endTime = {
961
- data: i[0]
962
+ data: s[0]
962
963
  };
963
964
  break;
964
965
  case 2:
965
966
  a.id = lt(), a.startTime = {
966
967
  type: "getStartDate",
967
- startData: i[0]
968
+ startData: s[0]
968
969
  }, a.endTime = {
969
- data: i[1]
970
+ data: s[1]
970
971
  };
971
972
  break;
972
973
  case 3:
973
- a.id = lt(i[0]), a.startTime = {
974
+ a.id = lt(s[0]), a.startTime = {
974
975
  type: "getStartDate",
975
- startData: i[1]
976
+ startData: s[1]
976
977
  }, a.endTime = {
977
- data: i[2]
978
+ data: s[2]
978
979
  };
979
980
  break;
980
981
  }
981
982
  return a;
982
983
  }, "parseData"), Yt, _t, H = [], he = {}, Wr = /* @__PURE__ */ l(function(t, e) {
983
- const n = {
984
+ const i = {
984
985
  section: ut,
985
986
  type: ut,
986
987
  processed: false,
@@ -989,95 +990,95 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
989
990
  raw: { data: e },
990
991
  task: t,
991
992
  classes: []
992
- }, i = Yr(_t, e);
993
- n.raw.startTime = i.startTime, n.raw.endTime = i.endTime, n.id = i.id, n.prevTaskId = _t, n.active = i.active, n.done = i.done, n.crit = i.crit, n.milestone = i.milestone, n.vert = i.vert, n.order = Ft, Ft++;
994
- const a = H.push(n);
995
- _t = n.id, he[n.id] = a - 1;
993
+ }, s = Yr(_t, e);
994
+ i.raw.startTime = s.startTime, i.raw.endTime = s.endTime, i.id = s.id, i.prevTaskId = _t, i.active = s.active, i.done = s.done, i.crit = s.crit, i.milestone = s.milestone, i.vert = s.vert, i.order = Ft, Ft++;
995
+ const a = H.push(i);
996
+ _t = i.id, he[i.id] = a - 1;
996
997
  }, "addTask"), it = /* @__PURE__ */ l(function(t) {
997
998
  const e = he[t];
998
999
  return H[e];
999
1000
  }, "findTaskById"), Vr = /* @__PURE__ */ l(function(t, e) {
1000
- const n = {
1001
+ const i = {
1001
1002
  section: ut,
1002
1003
  type: ut,
1003
1004
  description: t,
1004
1005
  task: t,
1005
1006
  classes: []
1006
- }, i = Lr(Yt, e);
1007
- n.startTime = i.startTime, n.endTime = i.endTime, n.id = i.id, n.active = i.active, n.done = i.done, n.crit = i.crit, n.milestone = i.milestone, n.vert = i.vert, Yt = n, Ct.push(n);
1007
+ }, s = Lr(Yt, e);
1008
+ i.startTime = s.startTime, i.endTime = s.endTime, i.id = s.id, i.active = s.active, i.done = s.done, i.crit = s.crit, i.milestone = s.milestone, i.vert = s.vert, Yt = i, St.push(i);
1008
1009
  }, "addTaskOrg"), ae = /* @__PURE__ */ l(function() {
1009
- const t = /* @__PURE__ */ l(function(n) {
1010
- const i = H[n];
1010
+ const t = /* @__PURE__ */ l(function(i) {
1011
+ const s = H[i];
1011
1012
  let a = "";
1012
- switch (H[n].raw.startTime.type) {
1013
+ switch (H[i].raw.startTime.type) {
1013
1014
  case "prevTaskEnd": {
1014
- const k = it(i.prevTaskId);
1015
- i.startTime = k.endTime;
1015
+ const h = it(s.prevTaskId);
1016
+ s.startTime = h.endTime;
1016
1017
  break;
1017
1018
  }
1018
1019
  case "getStartDate":
1019
- a = Lt(void 0, tt, H[n].raw.startTime.startData), a && (H[n].startTime = a);
1020
+ a = Lt(void 0, tt, H[i].raw.startTime.startData), a && (H[i].startTime = a);
1020
1021
  break;
1021
1022
  }
1022
- return H[n].startTime && (H[n].endTime = fe(
1023
- H[n].startTime,
1023
+ return H[i].startTime && (H[i].endTime = fe(
1024
+ H[i].startTime,
1024
1025
  tt,
1025
- H[n].raw.endTime.data,
1026
+ H[i].raw.endTime.data,
1026
1027
  kt
1027
- ), H[n].endTime && (H[n].processed = true, H[n].manualEndTime = U(
1028
- H[n].raw.endTime.data,
1028
+ ), H[i].endTime && (H[i].processed = true, H[i].manualEndTime = U(
1029
+ H[i].raw.endTime.data,
1029
1030
  "YYYY-MM-DD",
1030
1031
  true
1031
- ).isValid(), ue(H[n], tt, mt, ht))), H[n].processed;
1032
+ ).isValid(), ue(H[i], tt, mt, ht))), H[i].processed;
1032
1033
  }, "compileTask");
1033
1034
  let e = true;
1034
- for (const [n, i] of H.entries())
1035
- t(n), e = e && i.processed;
1035
+ for (const [i, s] of H.entries())
1036
+ t(i), e = e && s.processed;
1036
1037
  return e;
1037
- }, "compileTasks"), Pr = /* @__PURE__ */ l(function(t, e) {
1038
- let n = e;
1039
- ct().securityLevel !== "loose" && (n = _e.sanitizeUrl(e)), t.split(",").forEach(function(i) {
1040
- it(i) !== void 0 && (ke(i, () => {
1041
- window.open(n, "_self");
1042
- }), Ot.set(i, n));
1038
+ }, "compileTasks"), Or = /* @__PURE__ */ l(function(t, e) {
1039
+ let i = e;
1040
+ ct().securityLevel !== "loose" && (i = _e.sanitizeUrl(e)), t.split(",").forEach(function(s) {
1041
+ it(s) !== void 0 && (ke(s, () => {
1042
+ window.open(i, "_self");
1043
+ }), zt.set(s, i));
1043
1044
  }), me(t, "clickable");
1044
1045
  }, "setLink"), me = /* @__PURE__ */ l(function(t, e) {
1045
- t.split(",").forEach(function(n) {
1046
- let i = it(n);
1047
- i !== void 0 && i.classes.push(e);
1046
+ t.split(",").forEach(function(i) {
1047
+ let s = it(i);
1048
+ s !== void 0 && s.classes.push(e);
1048
1049
  });
1049
- }, "setClass"), zr = /* @__PURE__ */ l(function(t, e, n) {
1050
+ }, "setClass"), Pr = /* @__PURE__ */ l(function(t, e, i) {
1050
1051
  if (ct().securityLevel !== "loose" || e === void 0)
1051
1052
  return;
1052
- let i = [];
1053
- if (typeof n == "string") {
1054
- i = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1055
- for (let k = 0; k < i.length; k++) {
1056
- let d = i[k].trim();
1057
- d.startsWith('"') && d.endsWith('"') && (d = d.substr(1, d.length - 2)), i[k] = d;
1053
+ let s = [];
1054
+ if (typeof i == "string") {
1055
+ s = i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1056
+ for (let h = 0; h < s.length; h++) {
1057
+ let u = s[h].trim();
1058
+ u.startsWith('"') && u.endsWith('"') && (u = u.substr(1, u.length - 2)), s[h] = u;
1058
1059
  }
1059
1060
  }
1060
- i.length === 0 && i.push(t), it(t) !== void 0 && ke(t, () => {
1061
- Ce.runFunc(e, ...i);
1061
+ s.length === 0 && s.push(t), it(t) !== void 0 && ke(t, () => {
1062
+ Se.runFunc(e, ...s);
1062
1063
  });
1063
1064
  }, "setClickFun"), ke = /* @__PURE__ */ l(function(t, e) {
1064
1065
  Bt.push(
1065
1066
  function() {
1066
- const n = document.querySelector(`[id="${t}"]`);
1067
- n !== null && n.addEventListener("click", function() {
1067
+ const i = document.querySelector(`[id="${t}"]`);
1068
+ i !== null && i.addEventListener("click", function() {
1068
1069
  e();
1069
1070
  });
1070
1071
  },
1071
1072
  function() {
1072
- const n = document.querySelector(`[id="${t}-text"]`);
1073
- n !== null && n.addEventListener("click", function() {
1073
+ const i = document.querySelector(`[id="${t}-text"]`);
1074
+ i !== null && i.addEventListener("click", function() {
1074
1075
  e();
1075
1076
  });
1076
1077
  }
1077
1078
  );
1078
- }, "pushFun"), Or = /* @__PURE__ */ l(function(t, e, n) {
1079
- t.split(",").forEach(function(i) {
1080
- zr(i, e, n);
1079
+ }, "pushFun"), zr = /* @__PURE__ */ l(function(t, e, i) {
1080
+ t.split(",").forEach(function(s) {
1081
+ Pr(s, e, i);
1081
1082
  }), me(t, "clickable");
1082
1083
  }, "setClickEvent"), Rr = /* @__PURE__ */ l(function(t) {
1083
1084
  Bt.forEach(function(e) {
@@ -1106,8 +1107,8 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
1106
1107
  getDisplayMode: vr,
1107
1108
  setAccDescription: ge,
1108
1109
  getAccDescription: ye,
1109
- addSection: Cr,
1110
- getSections: Sr,
1110
+ addSection: Sr,
1111
+ getSections: Cr,
1111
1112
  getTasks: Er,
1112
1113
  addTask: Wr,
1113
1114
  findTaskById: it,
@@ -1116,8 +1117,8 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
1116
1117
  getIncludes: br,
1117
1118
  setExcludes: wr,
1118
1119
  getExcludes: _r,
1119
- setClickEvent: Or,
1120
- setLink: Pr,
1120
+ setClickEvent: zr,
1121
+ setLink: Or,
1121
1122
  getLinks: Dr,
1122
1123
  bindFunctions: Rr,
1123
1124
  parseDuration: de,
@@ -1126,12 +1127,12 @@ var ie = { friday: 5, saturday: 6 }, tt = "", Vt = "", Pt = void 0, zt = "", ht
1126
1127
  getWeekday: Ar,
1127
1128
  setWeekend: Ir
1128
1129
  };
1129
- function Gt(t, e, n) {
1130
- let i = true;
1131
- for (; i; )
1132
- i = false, n.forEach(function(a) {
1133
- const k = "^\\s*" + a + "\\s*$", d = new RegExp(k);
1134
- t[0].match(d) && (e[a] = true, t.shift(1), i = true);
1130
+ function Gt(t, e, i) {
1131
+ let s = true;
1132
+ for (; s; )
1133
+ s = false, i.forEach(function(a) {
1134
+ const h = "^\\s*" + a + "\\s*$", u = new RegExp(h);
1135
+ t[0].match(u) && (e[a] = true, t.shift(1), s = true);
1135
1136
  });
1136
1137
  }
1137
1138
  l(Gt, "getTaskTags");
@@ -1144,282 +1145,278 @@ var Br = /* @__PURE__ */ l(function() {
1144
1145
  thursday: Ae,
1145
1146
  friday: Me,
1146
1147
  saturday: Ee,
1147
- sunday: Se
1148
+ sunday: Ce
1148
1149
  }, Hr = /* @__PURE__ */ l((t, e) => {
1149
- let n = [...t].map(() => -1 / 0), i = [...t].sort((k, d) => k.startTime - d.startTime || k.order - d.order), a = 0;
1150
- for (const k of i)
1151
- for (let d = 0; d < n.length; d++)
1152
- if (k.startTime >= n[d]) {
1153
- n[d] = k.endTime, k.order = d + e, d > a && (a = d);
1150
+ let i = [...t].map(() => -1 / 0), s = [...t].sort((h, u) => h.startTime - u.startTime || h.order - u.order), a = 0;
1151
+ for (const h of s)
1152
+ for (let u = 0; u < i.length; u++)
1153
+ if (h.startTime >= i[u]) {
1154
+ i[u] = h.endTime, h.order = u + e, u > a && (a = u);
1154
1155
  break;
1155
1156
  }
1156
1157
  return a;
1157
- }, "getMaxIntersections"), et, qr = /* @__PURE__ */ l(function(t, e, n, i) {
1158
- const a = ct().gantt, k = ct().securityLevel;
1159
- let d;
1160
- k === "sandbox" && (d = gt("#i" + e));
1161
- const D = k === "sandbox" ? gt(d.nodes()[0].contentDocument.body) : gt("body"), E = k === "sandbox" ? d.nodes()[0].contentDocument : document, S = E.getElementById(e);
1162
- et = S.parentElement.offsetWidth, et === void 0 && (et = 1200), a.useWidth !== void 0 && (et = a.useWidth);
1163
- const g = i.db.getTasks();
1158
+ }, "getMaxIntersections"), et, qr = /* @__PURE__ */ l(function(t, e, i, s) {
1159
+ const a = ct().gantt, h = ct().securityLevel;
1160
+ let u;
1161
+ h === "sandbox" && (u = gt("#i" + e));
1162
+ const D = h === "sandbox" ? gt(u.nodes()[0].contentDocument.body) : gt("body"), E = h === "sandbox" ? u.nodes()[0].contentDocument : document, C = E.getElementById(e);
1163
+ et = C.parentElement.offsetWidth, et === void 0 && (et = 1200), a.useWidth !== void 0 && (et = a.useWidth);
1164
+ const p = s.db.getTasks();
1164
1165
  let F = [];
1165
- for (const y of g)
1166
- F.push(y.type);
1167
- F = z(F);
1168
- const C = {};
1169
- let v = 2 * a.topPadding;
1170
- if (i.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
1171
- const y = {};
1172
- for (const T of g)
1173
- y[T.section] === void 0 ? y[T.section] = [T] : y[T.section].push(T);
1174
- let b = 0;
1175
- for (const T of Object.keys(y)) {
1176
- const p = Hr(y[T], b) + 1;
1177
- b += p, v += p * (a.barHeight + a.barGap), C[T] = p;
1166
+ for (const g of p)
1167
+ F.push(g.type);
1168
+ F = P(F);
1169
+ const S = {};
1170
+ let x = 2 * a.topPadding;
1171
+ if (s.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
1172
+ const g = {};
1173
+ for (const b of p)
1174
+ g[b.section] === void 0 ? g[b.section] = [b] : g[b.section].push(b);
1175
+ let w = 0;
1176
+ for (const b of Object.keys(g)) {
1177
+ const v = Hr(g[b], w) + 1;
1178
+ w += v, x += v * (a.barHeight + a.barGap), S[b] = v;
1178
1179
  }
1179
1180
  } else {
1180
- v += g.length * (a.barHeight + a.barGap);
1181
- for (const y of F)
1182
- C[y] = g.filter((b) => b.type === y).length;
1181
+ x += p.length * (a.barHeight + a.barGap);
1182
+ for (const g of F)
1183
+ S[g] = p.filter((w) => w.type === g).length;
1183
1184
  }
1184
- S.setAttribute("viewBox", "0 0 " + et + " " + v);
1185
+ C.setAttribute("viewBox", "0 0 " + et + " " + x);
1185
1186
  const q = D.select(`[id="${e}"]`), A = Ye().domain([
1186
- We(g, function(y) {
1187
- return y.startTime;
1187
+ We(p, function(g) {
1188
+ return g.startTime;
1188
1189
  }),
1189
- Ve(g, function(y) {
1190
- return y.endTime;
1190
+ Ve(p, function(g) {
1191
+ return g.endTime;
1191
1192
  })
1192
1193
  ]).rangeRound([0, et - a.leftPadding - a.rightPadding]);
1193
- function x(y, b) {
1194
- const T = y.startTime, p = b.startTime;
1194
+ function T(g, w) {
1195
+ const b = g.startTime, v = w.startTime;
1195
1196
  let m = 0;
1196
- return T > p ? m = 1 : T < p && (m = -1), m;
1197
+ return b > v ? m = 1 : b < v && (m = -1), m;
1197
1198
  }
1198
- l(x, "taskCompare"), g.sort(x), M(g, et, v), be(q, v, et, a.useMaxWidth), q.append("text").text(i.db.getDiagramTitle()).attr("x", et / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
1199
- function M(y, b, T) {
1200
- const p = a.barHeight, m = p + a.barGap, w = a.topPadding, c = a.leftPadding, u = ze().domain([0, F.length]).range(["#00B9FA", "#F95002"]).interpolate(Pe);
1199
+ l(T, "taskCompare"), p.sort(T), M(p, et, x), be(q, x, et, a.useMaxWidth), q.append("text").text(s.db.getDiagramTitle()).attr("x", et / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
1200
+ function M(g, w, b) {
1201
+ const v = a.barHeight, m = v + a.barGap, _ = a.topPadding, c = a.leftPadding, f = Pe().domain([0, F.length]).range(["#00B9FA", "#F95002"]).interpolate(Oe);
1201
1202
  Y(
1202
1203
  m,
1203
- w,
1204
+ _,
1204
1205
  c,
1206
+ w,
1205
1207
  b,
1206
- T,
1207
- y,
1208
- i.db.getExcludes(),
1209
- i.db.getIncludes()
1210
- ), N(c, w, b, T), L(y, m, w, c, p, u, b), R(m, w), G(c, w, b, T);
1208
+ g,
1209
+ s.db.getExcludes(),
1210
+ s.db.getIncludes()
1211
+ ), N(c, _, w, b), L(g, m, _, c, v, f, w), R(m, _), G(c, _, w, b);
1211
1212
  }
1212
1213
  l(M, "makeGantt");
1213
- function L(y, b, T, p, m, w, c) {
1214
- y.sort((o, r) => o.vert === r.vert ? 0 : o.vert ? 1 : -1);
1215
- const h = [...new Set(y.map((o) => o.order))].map((o) => y.find((r) => r.order === o));
1216
- q.append("g").selectAll("rect").data(h).enter().append("rect").attr("x", 0).attr("y", function(o, r) {
1217
- return r = o.order, r * b + T - 2;
1214
+ function L(g, w, b, v, m, _, c) {
1215
+ g.sort((o, r) => o.vert === r.vert ? 0 : o.vert ? 1 : -1);
1216
+ const k = [...new Set(g.map((o) => o.order))].map((o) => g.find((r) => r.order === o));
1217
+ q.append("g").selectAll("rect").data(k).enter().append("rect").attr("x", 0).attr("y", function(o, r) {
1218
+ return r = o.order, r * w + b - 2;
1218
1219
  }).attr("width", function() {
1219
1220
  return c - a.rightPadding / 2;
1220
- }).attr("height", b).attr("class", function(o) {
1221
- for (const [r, V] of F.entries())
1222
- if (o.type === V)
1221
+ }).attr("height", w).attr("class", function(o) {
1222
+ for (const [r, W] of F.entries())
1223
+ if (o.type === W)
1223
1224
  return "section section" + r % a.numberSectionStyles;
1224
1225
  return "section section0";
1225
1226
  }).enter();
1226
- const f = q.append("g").selectAll("rect").data(y).enter(), _ = i.db.getLinks();
1227
- if (f.append("rect").attr("id", function(o) {
1227
+ const d = q.append("g").selectAll("rect").data(g).enter(), y = s.db.getLinks();
1228
+ if (d.append("rect").attr("id", function(o) {
1228
1229
  return o.id;
1229
1230
  }).attr("rx", 3).attr("ry", 3).attr("x", function(o) {
1230
- return o.milestone ? A(o.startTime) + p + 0.5 * (A(o.endTime) - A(o.startTime)) - 0.5 * m : A(o.startTime) + p;
1231
+ return o.milestone ? A(o.startTime) + v + 0.5 * (A(o.endTime) - A(o.startTime)) - 0.5 * m : A(o.startTime) + v;
1231
1232
  }).attr("y", function(o, r) {
1232
- return r = o.order, o.vert ? a.gridLineStartPadding : r * b + T;
1233
+ return r = o.order, o.vert ? a.gridLineStartPadding : r * w + b;
1233
1234
  }).attr("width", function(o) {
1234
1235
  return o.milestone ? m : o.vert ? 0.08 * m : A(o.renderEndTime || o.endTime) - A(o.startTime);
1235
1236
  }).attr("height", function(o) {
1236
- return o.vert ? g.length * (a.barHeight + a.barGap) + a.barHeight * 2 : m;
1237
+ return o.vert ? p.length * (a.barHeight + a.barGap) + a.barHeight * 2 : m;
1237
1238
  }).attr("transform-origin", function(o, r) {
1238
- return r = o.order, (A(o.startTime) + p + 0.5 * (A(o.endTime) - A(o.startTime))).toString() + "px " + (r * b + T + 0.5 * m).toString() + "px";
1239
+ return r = o.order, (A(o.startTime) + v + 0.5 * (A(o.endTime) - A(o.startTime))).toString() + "px " + (r * w + b + 0.5 * m).toString() + "px";
1239
1240
  }).attr("class", function(o) {
1240
1241
  const r = "task";
1241
- let V = "";
1242
- o.classes.length > 0 && (V = o.classes.join(" "));
1243
- let I = 0;
1244
- for (const [X, P] of F.entries())
1245
- o.type === P && (I = X % a.numberSectionStyles);
1246
1242
  let W = "";
1247
- return o.active ? o.crit ? W += " activeCrit" : W = " active" : o.done ? o.crit ? W = " doneCrit" : W = " done" : o.crit && (W += " crit"), W.length === 0 && (W = " task"), o.milestone && (W = " milestone " + W), o.vert && (W = " vert " + W), W += I, W += " " + V, r + W;
1248
- }), f.append("text").attr("id", function(o) {
1243
+ o.classes.length > 0 && (W = o.classes.join(" "));
1244
+ let I = 0;
1245
+ for (const [X, O] of F.entries())
1246
+ o.type === O && (I = X % a.numberSectionStyles);
1247
+ let V = "";
1248
+ return o.active ? o.crit ? V += " activeCrit" : V = " active" : o.done ? o.crit ? V = " doneCrit" : V = " done" : o.crit && (V += " crit"), V.length === 0 && (V = " task"), o.milestone && (V = " milestone " + V), o.vert && (V = " vert " + V), V += I, V += " " + W, r + V;
1249
+ }), d.append("text").attr("id", function(o) {
1249
1250
  return o.id + "-text";
1250
1251
  }).text(function(o) {
1251
1252
  return o.task;
1252
1253
  }).attr("font-size", a.fontSize).attr("x", function(o) {
1253
- let r = A(o.startTime), V = A(o.renderEndTime || o.endTime);
1254
- if (o.milestone && (r += 0.5 * (A(o.endTime) - A(o.startTime)) - 0.5 * m, V = r + m), o.vert)
1255
- return A(o.startTime) + p;
1254
+ let r = A(o.startTime), W = A(o.renderEndTime || o.endTime);
1255
+ if (o.milestone && (r += 0.5 * (A(o.endTime) - A(o.startTime)) - 0.5 * m, W = r + m), o.vert)
1256
+ return A(o.startTime) + v;
1256
1257
  const I = this.getBBox().width;
1257
- return I > V - r ? V + I + 1.5 * a.leftPadding > c ? r + p - 5 : V + p + 5 : (V - r) / 2 + r + p;
1258
+ return I > W - r ? W + I + 1.5 * a.leftPadding > c ? r + v - 5 : W + v + 5 : (W - r) / 2 + r + v;
1258
1259
  }).attr("y", function(o, r) {
1259
- return o.vert ? a.gridLineStartPadding + g.length * (a.barHeight + a.barGap) + 60 : (r = o.order, r * b + a.barHeight / 2 + (a.fontSize / 2 - 2) + T);
1260
+ return o.vert ? a.gridLineStartPadding + p.length * (a.barHeight + a.barGap) + 60 : (r = o.order, r * w + a.barHeight / 2 + (a.fontSize / 2 - 2) + b);
1260
1261
  }).attr("text-height", m).attr("class", function(o) {
1261
1262
  const r = A(o.startTime);
1262
- let V = A(o.endTime);
1263
- o.milestone && (V = r + m);
1263
+ let W = A(o.endTime);
1264
+ o.milestone && (W = r + m);
1264
1265
  const I = this.getBBox().width;
1265
- let W = "";
1266
- o.classes.length > 0 && (W = o.classes.join(" "));
1266
+ let V = "";
1267
+ o.classes.length > 0 && (V = o.classes.join(" "));
1267
1268
  let X = 0;
1268
- for (const [O, Q] of F.entries())
1269
- o.type === Q && (X = O % a.numberSectionStyles);
1270
- let P = "";
1271
- return o.active && (o.crit ? P = "activeCritText" + X : P = "activeText" + X), o.done ? o.crit ? P = P + " doneCritText" + X : P = P + " doneText" + X : o.crit && (P = P + " critText" + X), o.milestone && (P += " milestoneText"), o.vert && (P += " vertText"), I > V - r ? V + I + 1.5 * a.leftPadding > c ? W + " taskTextOutsideLeft taskTextOutside" + X + " " + P : W + " taskTextOutsideRight taskTextOutside" + X + " " + P + " width-" + I : W + " taskText taskText" + X + " " + P + " width-" + I;
1269
+ for (const [z, Q] of F.entries())
1270
+ o.type === Q && (X = z % a.numberSectionStyles);
1271
+ let O = "";
1272
+ return o.active && (o.crit ? O = "activeCritText" + X : O = "activeText" + X), o.done ? o.crit ? O = O + " doneCritText" + X : O = O + " doneText" + X : o.crit && (O = O + " critText" + X), o.milestone && (O += " milestoneText"), o.vert && (O += " vertText"), I > W - r ? W + I + 1.5 * a.leftPadding > c ? V + " taskTextOutsideLeft taskTextOutside" + X + " " + O : V + " taskTextOutsideRight taskTextOutside" + X + " " + O + " width-" + I : V + " taskText taskText" + X + " " + O + " width-" + I;
1272
1273
  }), ct().securityLevel === "sandbox") {
1273
1274
  let o;
1274
1275
  o = gt("#i" + e);
1275
1276
  const r = o.nodes()[0].contentDocument;
1276
- f.filter(function(V) {
1277
- return _.has(V.id);
1278
- }).each(function(V) {
1279
- var I = r.querySelector("#" + V.id), W = r.querySelector("#" + V.id + "-text");
1277
+ d.filter(function(W) {
1278
+ return y.has(W.id);
1279
+ }).each(function(W) {
1280
+ var I = r.querySelector("#" + W.id), V = r.querySelector("#" + W.id + "-text");
1280
1281
  const X = I.parentNode;
1281
- var P = r.createElement("a");
1282
- P.setAttribute("xlink:href", _.get(V.id)), P.setAttribute("target", "_top"), X.appendChild(P), P.appendChild(I), P.appendChild(W);
1282
+ var O = r.createElement("a");
1283
+ O.setAttribute("xlink:href", y.get(W.id)), O.setAttribute("target", "_top"), X.appendChild(O), O.appendChild(I), O.appendChild(V);
1283
1284
  });
1284
1285
  }
1285
1286
  }
1286
1287
  l(L, "drawRects");
1287
- function Y(y, b, T, p, m, w, c, u) {
1288
- if (c.length === 0 && u.length === 0)
1288
+ function Y(g, w, b, v, m, _, c, f) {
1289
+ if (c.length === 0 && f.length === 0)
1289
1290
  return;
1290
- let h, f;
1291
- for (const { startTime: I, endTime: W } of w)
1292
- (h === void 0 || I < h) && (h = I), (f === void 0 || W > f) && (f = W);
1293
- if (!h || !f)
1291
+ let k, d;
1292
+ for (const { startTime: I, endTime: V } of _)
1293
+ (k === void 0 || I < k) && (k = I), (d === void 0 || V > d) && (d = V);
1294
+ if (!k || !d)
1294
1295
  return;
1295
- if (U(f).diff(U(h), "year") > 5) {
1296
+ if (U(d).diff(U(k), "year") > 5) {
1296
1297
  Dt.warn(
1297
1298
  "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
1298
1299
  );
1299
1300
  return;
1300
1301
  }
1301
- const _ = i.db.getDateFormat(), s = [];
1302
- let o = null, r = U(h);
1303
- for (; r.valueOf() <= f; )
1304
- i.db.isInvalidDate(r, _, c, u) ? o ? o.end = r : o = {
1302
+ const y = s.db.getDateFormat(), n = [];
1303
+ let o = null, r = U(k);
1304
+ for (; r.valueOf() <= d; )
1305
+ s.db.isInvalidDate(r, y, c, f) ? o ? o.end = r : o = {
1305
1306
  start: r,
1306
1307
  end: r
1307
- } : o && (s.push(o), o = null), r = r.add(1, "d");
1308
- q.append("g").selectAll("rect").data(s).enter().append("rect").attr("id", function(I) {
1309
- return "exclude-" + I.start.format("YYYY-MM-DD");
1310
- }).attr("x", function(I) {
1311
- return A(I.start) + T;
1312
- }).attr("y", a.gridLineStartPadding).attr("width", function(I) {
1313
- const W = I.end.add(1, "day");
1314
- return A(W) - A(I.start);
1315
- }).attr("height", m - b - a.gridLineStartPadding).attr("transform-origin", function(I, W) {
1316
- return (A(I.start) + T + 0.5 * (A(I.end) - A(I.start))).toString() + "px " + (W * y + 0.5 * m).toString() + "px";
1308
+ } : o && (n.push(o), o = null), r = r.add(1, "d");
1309
+ q.append("g").selectAll("rect").data(n).enter().append("rect").attr("id", (I) => "exclude-" + I.start.format("YYYY-MM-DD")).attr("x", (I) => A(I.start.startOf("day")) + b).attr("y", a.gridLineStartPadding).attr("width", (I) => A(I.end.endOf("day")) - A(I.start.startOf("day"))).attr("height", m - w - a.gridLineStartPadding).attr("transform-origin", function(I, V) {
1310
+ return (A(I.start) + b + 0.5 * (A(I.end) - A(I.start))).toString() + "px " + (V * g + 0.5 * m).toString() + "px";
1317
1311
  }).attr("class", "exclude-range");
1318
1312
  }
1319
1313
  l(Y, "drawExcludeDays");
1320
- function N(y, b, T, p) {
1321
- let m = Xe(A).tickSize(-p + b + a.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
1322
- const c = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
1323
- i.db.getTickInterval() || a.tickInterval
1314
+ function N(g, w, b, v) {
1315
+ const m = s.db.getDateFormat(), _ = s.db.getAxisFormat();
1316
+ let c;
1317
+ _ ? c = _ : m === "D" ? c = "%d" : c = a.axisFormat ?? "%Y-%m-%d";
1318
+ let f = Xe(A).tickSize(-v + w + a.gridLineStartPadding).tickFormat(jt(c));
1319
+ const d = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
1320
+ s.db.getTickInterval() || a.tickInterval
1324
1321
  );
1325
- if (c !== null) {
1326
- const u = c[1], h = c[2], f = i.db.getWeekday() || a.weekday;
1327
- switch (h) {
1322
+ if (d !== null) {
1323
+ const y = d[1], n = d[2], o = s.db.getWeekday() || a.weekday;
1324
+ switch (n) {
1328
1325
  case "millisecond":
1329
- m.ticks(Jt.every(u));
1326
+ f.ticks(Jt.every(y));
1330
1327
  break;
1331
1328
  case "second":
1332
- m.ticks(Kt.every(u));
1329
+ f.ticks(Kt.every(y));
1333
1330
  break;
1334
1331
  case "minute":
1335
- m.ticks(Qt.every(u));
1332
+ f.ticks(Qt.every(y));
1336
1333
  break;
1337
1334
  case "hour":
1338
- m.ticks($t.every(u));
1335
+ f.ticks($t.every(y));
1339
1336
  break;
1340
1337
  case "day":
1341
- m.ticks(Zt.every(u));
1338
+ f.ticks(Zt.every(y));
1342
1339
  break;
1343
1340
  case "week":
1344
- m.ticks(se[f].every(u));
1341
+ f.ticks(se[o].every(y));
1345
1342
  break;
1346
1343
  case "month":
1347
- m.ticks(Ut.every(u));
1344
+ f.ticks(Ut.every(y));
1348
1345
  break;
1349
1346
  }
1350
1347
  }
1351
- if (q.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + (p - 50) + ")").call(m).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), i.db.topAxisEnabled() || a.topAxis) {
1352
- let u = Ge(A).tickSize(-p + b + a.gridLineStartPadding).tickFormat(jt(i.db.getAxisFormat() || a.axisFormat || "%Y-%m-%d"));
1353
- if (c !== null) {
1354
- const h = c[1], f = c[2], _ = i.db.getWeekday() || a.weekday;
1355
- switch (f) {
1348
+ if (q.append("g").attr("class", "grid").attr("transform", "translate(" + g + ", " + (v - 50) + ")").call(f).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), s.db.topAxisEnabled() || a.topAxis) {
1349
+ let y = Ge(A).tickSize(-v + w + a.gridLineStartPadding).tickFormat(jt(c));
1350
+ if (d !== null) {
1351
+ const n = d[1], o = d[2], r = s.db.getWeekday() || a.weekday;
1352
+ switch (o) {
1356
1353
  case "millisecond":
1357
- u.ticks(Jt.every(h));
1354
+ y.ticks(Jt.every(n));
1358
1355
  break;
1359
1356
  case "second":
1360
- u.ticks(Kt.every(h));
1357
+ y.ticks(Kt.every(n));
1361
1358
  break;
1362
1359
  case "minute":
1363
- u.ticks(Qt.every(h));
1360
+ y.ticks(Qt.every(n));
1364
1361
  break;
1365
1362
  case "hour":
1366
- u.ticks($t.every(h));
1363
+ y.ticks($t.every(n));
1367
1364
  break;
1368
1365
  case "day":
1369
- u.ticks(Zt.every(h));
1366
+ y.ticks(Zt.every(n));
1370
1367
  break;
1371
1368
  case "week":
1372
- u.ticks(se[_].every(h));
1369
+ y.ticks(se[r].every(n));
1373
1370
  break;
1374
1371
  case "month":
1375
- u.ticks(Ut.every(h));
1372
+ y.ticks(Ut.every(n));
1376
1373
  break;
1377
1374
  }
1378
1375
  }
1379
- q.append("g").attr("class", "grid").attr("transform", "translate(" + y + ", " + b + ")").call(u).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
1376
+ q.append("g").attr("class", "grid").attr("transform", "translate(" + g + ", " + w + ")").call(y).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
1380
1377
  }
1381
1378
  }
1382
1379
  l(N, "makeGrid");
1383
- function R(y, b) {
1384
- let T = 0;
1385
- const p = Object.keys(C).map((m) => [m, C[m]]);
1386
- q.append("g").selectAll("text").data(p).enter().append(function(m) {
1387
- const w = m[0].split(we.lineBreakRegex), c = -(w.length - 1) / 2, u = E.createElementNS("http://www.w3.org/2000/svg", "text");
1388
- u.setAttribute("dy", c + "em");
1389
- for (const [h, f] of w.entries()) {
1390
- const _ = E.createElementNS("http://www.w3.org/2000/svg", "tspan");
1391
- _.setAttribute("alignment-baseline", "central"), _.setAttribute("x", "10"), h > 0 && _.setAttribute("dy", "1em"), _.textContent = f, u.appendChild(_);
1380
+ function R(g, w) {
1381
+ let b = 0;
1382
+ const v = Object.keys(S).map((m) => [m, S[m]]);
1383
+ q.append("g").selectAll("text").data(v).enter().append(function(m) {
1384
+ const _ = m[0].split(we.lineBreakRegex), c = -(_.length - 1) / 2, f = E.createElementNS("http://www.w3.org/2000/svg", "text");
1385
+ f.setAttribute("dy", c + "em");
1386
+ for (const [k, d] of _.entries()) {
1387
+ const y = E.createElementNS("http://www.w3.org/2000/svg", "tspan");
1388
+ y.setAttribute("alignment-baseline", "central"), y.setAttribute("x", "10"), k > 0 && y.setAttribute("dy", "1em"), y.textContent = d, f.appendChild(y);
1392
1389
  }
1393
- return u;
1394
- }).attr("x", 10).attr("y", function(m, w) {
1395
- if (w > 0)
1396
- for (let c = 0; c < w; c++)
1397
- return T += p[w - 1][1], m[1] * y / 2 + T * y + b;
1390
+ return f;
1391
+ }).attr("x", 10).attr("y", function(m, _) {
1392
+ if (_ > 0)
1393
+ for (let c = 0; c < _; c++)
1394
+ return b += v[_ - 1][1], m[1] * g / 2 + b * g + w;
1398
1395
  else
1399
- return m[1] * y / 2 + b;
1396
+ return m[1] * g / 2 + w;
1400
1397
  }).attr("font-size", a.sectionFontSize).attr("class", function(m) {
1401
- for (const [w, c] of F.entries())
1398
+ for (const [_, c] of F.entries())
1402
1399
  if (m[0] === c)
1403
- return "sectionTitle sectionTitle" + w % a.numberSectionStyles;
1400
+ return "sectionTitle sectionTitle" + _ % a.numberSectionStyles;
1404
1401
  return "sectionTitle";
1405
1402
  });
1406
1403
  }
1407
1404
  l(R, "vertLabels");
1408
- function G(y, b, T, p) {
1409
- const m = i.db.getTodayMarker();
1405
+ function G(g, w, b, v) {
1406
+ const m = s.db.getTodayMarker();
1410
1407
  if (m === "off")
1411
1408
  return;
1412
- const w = q.append("g").attr("class", "today"), c = /* @__PURE__ */ new Date(), u = w.append("line");
1413
- u.attr("x1", A(c) + y).attr("x2", A(c) + y).attr("y1", a.titleTopMargin).attr("y2", p - a.titleTopMargin).attr("class", "today"), m !== "" && u.attr("style", m.replace(/,/g, ";"));
1409
+ const _ = q.append("g").attr("class", "today"), c = /* @__PURE__ */ new Date(), f = _.append("line");
1410
+ f.attr("x1", A(c) + g).attr("x2", A(c) + g).attr("y1", a.titleTopMargin).attr("y2", v - a.titleTopMargin).attr("class", "today"), m !== "" && f.attr("style", m.replace(/,/g, ";"));
1414
1411
  }
1415
1412
  l(G, "drawToday");
1416
- function z(y) {
1417
- const b = {}, T = [];
1418
- for (let p = 0, m = y.length; p < m; ++p)
1419
- Object.prototype.hasOwnProperty.call(b, y[p]) || (b[y[p]] = true, T.push(y[p]));
1420
- return T;
1413
+ function P(g) {
1414
+ const w = {}, b = [];
1415
+ for (let v = 0, m = g.length; v < m; ++v)
1416
+ Object.prototype.hasOwnProperty.call(w, g[v]) || (w[g[v]] = true, b.push(g[v]));
1417
+ return b;
1421
1418
  }
1422
- l(z, "checkUnique");
1419
+ l(P, "checkUnique");
1423
1420
  }, "draw"), Gr = {
1424
1421
  setConf: Br,
1425
1422
  draw: qr