@foris/ai-agent 0.1.1 → 0.3.0

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 (397) hide show
  1. package/dist/abap-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW.js +6 -0
  4. package/dist/ai-agent.es.js +6 -285
  5. package/dist/ai-agent.umd.js +3874 -3
  6. package/dist/ai-chat-panel/ChatPanel.d.ts +1 -1
  7. package/dist/ai-chat-panel/chatPanel.constants.d.ts +17 -0
  8. package/dist/ai-sparkles-icon/AiSparklesIcon.d.ts +6 -0
  9. package/dist/ai-sparkles-icon/index.d.ts +2 -0
  10. package/dist/ai-summary-card/SummaryCard.d.ts +3 -1
  11. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  12. package/dist/angular-html-DPB4Rf0C.js +32 -0
  13. package/dist/angular-ts-CeqPwKaz.js +24 -0
  14. package/dist/apache-BUjz-sD2.js +6 -0
  15. package/dist/apex-oLhhs58q.js +6 -0
  16. package/dist/apl-Bfz1rp5e.js +17 -0
  17. package/dist/applescript-BPx7YFFu.js +6 -0
  18. package/dist/ara-Z2fSOxSw.js +6 -0
  19. package/dist/arc-DN1xn8kz.js +85 -0
  20. package/dist/architectureDiagram-VXUJARFQ-CuFlEJrK.js +4674 -0
  21. package/dist/asciidoc-B-pCoB3G.js +6 -0
  22. package/dist/asm-BTWLY5ym.js +6 -0
  23. package/dist/astro-CFFExE8Q.js +18 -0
  24. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  25. package/dist/awk-Fb0P9dkn.js +6 -0
  26. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  27. package/dist/ballerina-oZK-YekG.js +6 -0
  28. package/dist/bat-0FvbqU9S.js +6 -0
  29. package/dist/beancount-DqJEb89h.js +6 -0
  30. package/dist/berry-DODBq_Ff.js +6 -0
  31. package/dist/bibtex-EULQRLY5.js +6 -0
  32. package/dist/bicep-BorU73w0.js +6 -0
  33. package/dist/blade-DRRSiTQz.js +21 -0
  34. package/dist/blockDiagram-VD42YOAC-Ceho4Zhj.js +2407 -0
  35. package/dist/bsl-NkNNwerW.js +8 -0
  36. package/dist/c-eeMepfLm.js +6 -0
  37. package/dist/c4Diagram-YG6GDRKO-zPB3iQJ7.js +1585 -0
  38. package/dist/cadence-02UX7mW8.js +6 -0
  39. package/dist/cairo-DM6WF2e3.js +8 -0
  40. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  41. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  42. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  43. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  44. package/dist/channel-BC4mWQQF.js +5 -0
  45. package/dist/chunk-4BX2VUAB-BZlHuf6l.js +9 -0
  46. package/dist/chunk-55IACEB6-Dr8rgvy_.js +8 -0
  47. package/dist/chunk-B4BG7PRW-Ccllo2e-.js +1377 -0
  48. package/dist/chunk-DI55MBZ5-DvAROTIr.js +1383 -0
  49. package/dist/chunk-FMBD7UC4-CVr83prI.js +19 -0
  50. package/dist/chunk-QN33PNHL-nSyFq8_s.js +20 -0
  51. package/dist/chunk-QZHKN3VN-Dg8JYP6e.js +15 -0
  52. package/dist/chunk-TZMSLE5B-Bmj6LGNW.js +64 -0
  53. package/dist/clarity-PKm5CwqM.js +6 -0
  54. package/dist/classDiagram-2ON5EDUG-DAkxtl6o.js +22 -0
  55. package/dist/classDiagram-v2-WZHVMYZB-DAkxtl6o.js +22 -0
  56. package/dist/clojure-CXJfHrL3.js +6 -0
  57. package/dist/cmake-BJz8BOTU.js +6 -0
  58. package/dist/cobol-DYTFdEK1.js +12 -0
  59. package/dist/code-block-QI2IAROF-DN-BnDmt.js +9263 -0
  60. package/dist/codeowners-Bt9yU6NX.js +6 -0
  61. package/dist/codeql-DHkodjjI.js +6 -0
  62. package/dist/coffee-DGBR_nr_.js +8 -0
  63. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  64. package/dist/components/ai-elements/artifact.d.ts +23 -0
  65. package/dist/components/ai-elements/canvas.d.ts +7 -0
  66. package/dist/components/ai-elements/chain-of-thought.d.ts +29 -0
  67. package/dist/components/ai-elements/checkpoint.d.ts +11 -0
  68. package/dist/components/ai-elements/code-block.d.ts +17 -0
  69. package/dist/components/ai-elements/confirmation.d.ts +49 -0
  70. package/dist/components/ai-elements/connection.d.ts +2 -0
  71. package/dist/components/ai-elements/context.d.ts +32 -0
  72. package/dist/components/ai-elements/controls.d.ts +4 -0
  73. package/dist/components/ai-elements/conversation.d.ts +15 -0
  74. package/dist/components/ai-elements/edge.d.ts +5 -0
  75. package/dist/components/ai-elements/image.d.ts +6 -0
  76. package/dist/components/ai-elements/inline-citation.d.ts +38 -0
  77. package/dist/components/ai-elements/loader.d.ts +5 -0
  78. package/dist/components/ai-elements/message.d.ts +46 -0
  79. package/dist/components/ai-elements/model-selector.d.ts +35 -0
  80. package/dist/components/ai-elements/node.d.ts +21 -0
  81. package/dist/components/ai-elements/open-in-chat.d.ts +28 -0
  82. package/dist/components/ai-elements/panel.d.ts +5 -0
  83. package/dist/components/ai-elements/plan.d.ts +25 -0
  84. package/dist/components/ai-elements/prompt-input.d.ts +187 -0
  85. package/dist/components/ai-elements/queue.d.ts +61 -0
  86. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  87. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  88. package/dist/components/ai-elements/sources.d.ts +12 -0
  89. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  90. package/dist/components/ai-elements/task.d.ts +14 -0
  91. package/dist/components/ai-elements/tool.d.ts +23 -0
  92. package/dist/components/ai-elements/toolbar.d.ts +5 -0
  93. package/dist/components/ai-elements/web-preview.d.ts +34 -0
  94. package/dist/components/ui/alert.d.ts +9 -0
  95. package/dist/components/ui/badge.d.ts +9 -0
  96. package/dist/components/ui/button-group.d.ts +12 -0
  97. package/dist/components/ui/button.d.ts +10 -0
  98. package/dist/components/ui/card.d.ts +9 -0
  99. package/dist/components/ui/carousel.d.ts +19 -0
  100. package/dist/components/ui/collapsible.d.ts +6 -0
  101. package/dist/components/ui/command.d.ts +18 -0
  102. package/dist/components/ui/dialog.d.ts +15 -0
  103. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  104. package/dist/components/ui/hover-card.d.ts +6 -0
  105. package/dist/components/ui/input-group.d.ts +16 -0
  106. package/dist/components/ui/input.d.ts +3 -0
  107. package/dist/components/ui/progress.d.ts +4 -0
  108. package/dist/components/ui/scroll-area.d.ts +5 -0
  109. package/dist/components/ui/select.d.ts +15 -0
  110. package/dist/components/ui/separator.d.ts +4 -0
  111. package/dist/components/ui/textarea.d.ts +3 -0
  112. package/dist/components/ui/tooltip.d.ts +7 -0
  113. package/dist/coq-B0L9upzn.js +6 -0
  114. package/dist/cose-bilkent-S5V4N54A-DwRYWoaW.js +2612 -0
  115. package/dist/cpp-ZFnOq6fV.js +19 -0
  116. package/dist/crystal-CRJyc4G-.js +18 -0
  117. package/dist/csharp-C7yUs7-w.js +6 -0
  118. package/dist/css-CECN5uSL.js +6 -0
  119. package/dist/csv-CmYOceLb.js +6 -0
  120. package/dist/cue-ZzumE7IT.js +6 -0
  121. package/dist/cypher-jpdmjtA6.js +6 -0
  122. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  123. package/dist/d-CBagWSwH.js +6 -0
  124. package/dist/dagre-6UL2VRFP-imN1Fyg8.js +451 -0
  125. package/dist/dark-plus-pUHDTVV0.js +4 -0
  126. package/dist/dart-6ObCrKr9.js +6 -0
  127. package/dist/dax-CcDT-8dH.js +6 -0
  128. package/dist/defaultLocale-DcQU6Vee.js +177 -0
  129. package/dist/desktop-B93p9R9O.js +6 -0
  130. package/dist/diagram-PSM6KHXK-DAIDeBLn.js +544 -0
  131. package/dist/diagram-QEK2KX5R-DQFy-qK9.js +224 -0
  132. package/dist/diagram-S2PKOQOG-Hlk0Nx_Y.js +146 -0
  133. package/dist/diff-BxzP2J8R.js +6 -0
  134. package/dist/docker-CsHqm9tx.js +6 -0
  135. package/dist/dotenv-BMjVjUL1.js +6 -0
  136. package/dist/dracula-BtZx2Kac.js +4 -0
  137. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  138. package/dist/dream-maker-PAx17jaB.js +6 -0
  139. package/dist/edge-B882-fmN.js +14 -0
  140. package/dist/elixir-DRzNHQCz.js +10 -0
  141. package/dist/elm-DZPAA5Qn.js +9 -0
  142. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  143. package/dist/erDiagram-Q2GNP2WA-C8PZPSaf.js +846 -0
  144. package/dist/erb-DB1DqdBc.js +27 -0
  145. package/dist/erlang-DNcDT8Hi.js +8 -0
  146. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  147. package/dist/everforest-light-BbXl82Em.js +4 -0
  148. package/dist/fennel-N4WcXuKx.js +6 -0
  149. package/dist/fish-BTDEUgqH.js +6 -0
  150. package/dist/flowDiagram-NV44I4VS-CgTiIFnt.js +1631 -0
  151. package/dist/fluent-BMXUxfv1.js +6 -0
  152. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  153. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  154. package/dist/fsharp-CYOiIVNx.js +8 -0
  155. package/dist/ganttDiagram-JELNMOA3-DzYZEAE_.js +2702 -0
  156. package/dist/gdresource-BwtMIoBm.js +10 -0
  157. package/dist/gdscript-BifyeYhI.js +6 -0
  158. package/dist/gdshader-Bk8fF6yr.js +6 -0
  159. package/dist/genie-DzUvd7U9.js +6 -0
  160. package/dist/gherkin-DHRaV0YP.js +6 -0
  161. package/dist/git-commit-Bd32YZ0K.js +8 -0
  162. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  163. package/dist/gitGraphDiagram-NY62KEGX-CPwI-Uag.js +715 -0
  164. package/dist/github-dark-DenFmJkN.js +4 -0
  165. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  166. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  167. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  168. package/dist/github-light-JYsPkUQd.js +4 -0
  169. package/dist/github-light-default-D99KPAby.js +4 -0
  170. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  171. package/dist/gleam-Bv284lvN.js +6 -0
  172. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  173. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  174. package/dist/glsl-CkUcVZNK.js +8 -0
  175. package/dist/gnuplot-yPG9-sE_.js +6 -0
  176. package/dist/go-ChxJuLYK.js +6 -0
  177. package/dist/graph-DB2UxkYH.js +1190 -0
  178. package/dist/graphql-CBu2ehBn.js +14 -0
  179. package/dist/groovy-CJQTphOW.js +6 -0
  180. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  181. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  182. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  183. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  184. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  185. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  186. package/dist/hack-DVWgrvc2.js +12 -0
  187. package/dist/haml-NZLVzu_R.js +10 -0
  188. package/dist/handlebars-mxStpSE7.js +14 -0
  189. package/dist/haskell-WeIwNIP6.js +6 -0
  190. package/dist/haxe-TztHsm5T.js +6 -0
  191. package/dist/hcl-D438OF-I.js +6 -0
  192. package/dist/hjson-DYBUbqOl.js +6 -0
  193. package/dist/hlsl-Bk8TCZNL.js +6 -0
  194. package/dist/houston-BDYrDoDW.js +4 -0
  195. package/dist/html-B50bmoVb.js +10 -0
  196. package/dist/html-derivative-ByyNxAP5.js +10 -0
  197. package/dist/http-BVIWqb92.js +19 -0
  198. package/dist/hurl-B8OTiYoQ.js +17 -0
  199. package/dist/hxml-GbqSQCLa.js +8 -0
  200. package/dist/hy-Brt5EZ7-.js +6 -0
  201. package/dist/imba-CimUv-Uh.js +6 -0
  202. package/dist/index-C2DJ8qoy.js +45435 -0
  203. package/dist/infoDiagram-WHAUD3N6-CcN7ZNYI.js +27 -0
  204. package/dist/ini-BZIuRIvJ.js +6 -0
  205. package/dist/init-DjUOC4st.js +16 -0
  206. package/dist/java-DY6VlHhP.js +6 -0
  207. package/dist/javascript-C25yR2R2.js +6 -0
  208. package/dist/jinja-CI-LSgSv.js +13 -0
  209. package/dist/jison-DdreslRX.js +8 -0
  210. package/dist/journeyDiagram-XKPGCS4Q-BACao6jz.js +840 -0
  211. package/dist/json-DxJze_jm.js +6 -0
  212. package/dist/json5-BT4Fjg39.js +6 -0
  213. package/dist/jsonc-CHjZD8gR.js +6 -0
  214. package/dist/jsonl-BGuvDmy9.js +6 -0
  215. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  216. package/dist/jssm-BcADi6EI.js +6 -0
  217. package/dist/jsx-BtKADgXT.js +6 -0
  218. package/dist/julia-ll8P6QXy.js +19 -0
  219. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  220. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  221. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  222. package/dist/kanban-definition-3W4ZIXB7-Jb7Xwf92.js +724 -0
  223. package/dist/katex.min-l0sNRNKZ.js +1 -0
  224. package/dist/kdl-BNOv9TC3.js +6 -0
  225. package/dist/kotlin-ByBMgTeR.js +6 -0
  226. package/dist/kusto-VWFLl2T0.js +6 -0
  227. package/dist/laserwave-6a00oqik.js +4 -0
  228. package/dist/latex-DF20280u.js +9 -0
  229. package/dist/layout-Q6wQN5dr.js +1730 -0
  230. package/dist/lean-D5yRrexI.js +6 -0
  231. package/dist/less-B1GLI2Di.js +6 -0
  232. package/dist/lib/utils.d.ts +2 -0
  233. package/dist/light-plus-CZuVqSLX.js +4 -0
  234. package/dist/linear-CxGB80S5.js +277 -0
  235. package/dist/liquid-CHzkx3jT.js +14 -0
  236. package/dist/llvm-co1rIKs3.js +6 -0
  237. package/dist/log-Al8wyEFV.js +6 -0
  238. package/dist/logo-DBa4JDzV.js +6 -0
  239. package/dist/lua-kX5WP_P5.js +8 -0
  240. package/dist/luau-DtBSxLyz.js +6 -0
  241. package/dist/make-CsMclxtr.js +6 -0
  242. package/dist/markdown-CrScaQ96.js +6 -0
  243. package/dist/marko-ls0Jg2j8.js +14 -0
  244. package/dist/material-theme-D6KBX41T.js +4 -0
  245. package/dist/material-theme-darker-CkRroheE.js +4 -0
  246. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  247. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  248. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  249. package/dist/matlab-BOAaUVP0.js +6 -0
  250. package/dist/mdc-DIP5_jeM.js +15 -0
  251. package/dist/mdx-BOhZZUJ8.js +6 -0
  252. package/dist/mermaid-B0ixDHKN.js +6 -0
  253. package/dist/mermaid-NA5CF7SZ-DekDSZe_.js +6 -0
  254. package/dist/mermaid.core-xMGW442o.js +14414 -0
  255. package/dist/min-dark-C7ak0t6c.js +4 -0
  256. package/dist/min-light-CKFxVcPp.js +4 -0
  257. package/dist/mindmap-definition-VGOIOE7T-UHZgRHb7.js +790 -0
  258. package/dist/mipsasm-CTx18fBl.js +6 -0
  259. package/dist/mojo-BD611d7o.js +6 -0
  260. package/dist/monokai-C1KBYcO0.js +4 -0
  261. package/dist/move-F-dICmj2.js +6 -0
  262. package/dist/narrat-DmhDCBs-.js +6 -0
  263. package/dist/nextflow-DmSVRGjG.js +6 -0
  264. package/dist/nginx-COxS3qoU.js +9 -0
  265. package/dist/night-owl-Bm2rzalh.js +4 -0
  266. package/dist/nim-CCwXZLHG.js +21 -0
  267. package/dist/nix-BZK5F767.js +9 -0
  268. package/dist/nord-CC5OiUXg.js +4 -0
  269. package/dist/nushell-D8j3dhT-.js +6 -0
  270. package/dist/objective-c-Itk8tzmv.js +6 -0
  271. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  272. package/dist/ocaml-eSVK32Eg.js +6 -0
  273. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  274. package/dist/one-light-D9sNaUtq.js +4 -0
  275. package/dist/openscad-Sp5uZ6f2.js +6 -0
  276. package/dist/ordinal-MUacOSdK.js +65 -0
  277. package/dist/pascal-xy8pJNns.js +6 -0
  278. package/dist/perl-NvKK8p2P.js +17 -0
  279. package/dist/php-CK5hNnT0.js +19 -0
  280. package/dist/pieDiagram-ADFJNKIX-CHrTFTbw.js +166 -0
  281. package/dist/pkl-C-zSNmaA.js +6 -0
  282. package/dist/plastic-CSTz3KZp.js +4 -0
  283. package/dist/plsql-pVbGZfOv.js +6 -0
  284. package/dist/po-BNfHvqmm.js +6 -0
  285. package/dist/poimandres-C-VADXHD.js +4 -0
  286. package/dist/polar-CAZahv3u.js +6 -0
  287. package/dist/postcss-05aHdL-n.js +6 -0
  288. package/dist/powerquery-DI9HkTvs.js +6 -0
  289. package/dist/powershell-Clc4ydu-.js +6 -0
  290. package/dist/prisma-FZjmVtSl.js +6 -0
  291. package/dist/prolog-C5-yg4TO.js +6 -0
  292. package/dist/proto-MmCPeFAD.js +6 -0
  293. package/dist/pug-XOw9Q1Ho.js +12 -0
  294. package/dist/puppet-CUJHmnxV.js +6 -0
  295. package/dist/purescript-rUfGld-4.js +6 -0
  296. package/dist/python-BFNSHbwJ.js +6 -0
  297. package/dist/qml-rTNXsquU.js +8 -0
  298. package/dist/qmldir-BInDYbpo.js +6 -0
  299. package/dist/qss-AeJTysr_.js +6 -0
  300. package/dist/quadrantDiagram-AYHSOK5B-CDfhMB18.js +1030 -0
  301. package/dist/r-Bm0uF0U2.js +6 -0
  302. package/dist/racket-B83wSAja.js +6 -0
  303. package/dist/raku-nEQ4ZJJ7.js +6 -0
  304. package/dist/razor-CoqPuKQU.js +12 -0
  305. package/dist/red-7y8PH7HH.js +4 -0
  306. package/dist/reg-m_s_Kiip.js +6 -0
  307. package/dist/regexp-BazyLpPg.js +6 -0
  308. package/dist/rel-BcRfyd6Q.js +6 -0
  309. package/dist/requirementDiagram-UZGBJVZJ-C0aeVQh6.js +856 -0
  310. package/dist/riscv-Ce8MAQLP.js +6 -0
  311. package/dist/rose-pine-BKc3yVeu.js +4 -0
  312. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  313. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  314. package/dist/rosmsg-Cz0w1km8.js +6 -0
  315. package/dist/rst-AoEjemIj.js +36 -0
  316. package/dist/ruby-CGSl8JoB.js +36 -0
  317. package/dist/rust-CLzF9zIN.js +6 -0
  318. package/dist/sankeyDiagram-TZEHDZUN-kjxRgXd2.js +830 -0
  319. package/dist/sas-fpEvgATw.js +8 -0
  320. package/dist/sass-DxHp5rTx.js +6 -0
  321. package/dist/scala-D4grkFkl.js +6 -0
  322. package/dist/scheme-BCRWuEm4.js +6 -0
  323. package/dist/scss-B1FaCqwR.js +8 -0
  324. package/dist/sdbl-B7T8abf4.js +6 -0
  325. package/dist/sequenceDiagram-WL72ISMW-Bs0jyVuH.js +2526 -0
  326. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  327. package/dist/shellscript-InADTalH.js +6 -0
  328. package/dist/shellsession-DiDJNQdy.js +8 -0
  329. package/dist/slack-dark-i7wN4OET.js +4 -0
  330. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  331. package/dist/smalltalk-BlI1_OkM.js +6 -0
  332. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  333. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  334. package/dist/solarized-light-BheCkDPT.js +4 -0
  335. package/dist/solidity-DUWnFhS6.js +6 -0
  336. package/dist/soy-YPoZ1G2p.js +10 -0
  337. package/dist/sparql-B0KWFEri.js +8 -0
  338. package/dist/splunk-CRXR8A9s.js +6 -0
  339. package/dist/sql-Cn_v3PB0.js +6 -0
  340. package/dist/ssh-config-DP-hNVbF.js +6 -0
  341. package/dist/stata-B8c5fTjX.js +8 -0
  342. package/dist/stateDiagram-FKZM4ZOC-CAWwlh9R.js +268 -0
  343. package/dist/stateDiagram-v2-4FDKWEC3-9TYlTzc3.js +21 -0
  344. package/dist/style.css +1 -1
  345. package/dist/stylus-CyKEU1Ej.js +6 -0
  346. package/dist/svelte-5UasyOg7.js +14 -0
  347. package/dist/swift-9UzSvamq.js +6 -0
  348. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  349. package/dist/system-verilog-BCm7smPJ.js +6 -0
  350. package/dist/systemd-C-4qm6XH.js +6 -0
  351. package/dist/tailwind.css +126 -0
  352. package/dist/talonscript-CFF3LF_O.js +6 -0
  353. package/dist/tasl-Cg_WBUAe.js +6 -0
  354. package/dist/tcl-DN7buRTF.js +6 -0
  355. package/dist/templ-peLZIM2D.js +12 -0
  356. package/dist/terraform-DGvcn9zM.js +6 -0
  357. package/dist/tex-DpOayVob.js +8 -0
  358. package/dist/timeline-definition-IT6M3QCI-DrPozOxH.js +805 -0
  359. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  360. package/dist/toml-DY62mUL_.js +6 -0
  361. package/dist/treemap-KMMF4GRG-D_L55G0b.js +15045 -0
  362. package/dist/ts-tags-CWmBp2js.js +43 -0
  363. package/dist/tsv-BtvSkaG0.js +6 -0
  364. package/dist/tsx-B8rCNbgL.js +6 -0
  365. package/dist/turtle-_H59FV7D.js +6 -0
  366. package/dist/twig-Cpoho6oi.js +35 -0
  367. package/dist/typescript-RycA9KXf.js +6 -0
  368. package/dist/typespec-DWqp-kUU.js +6 -0
  369. package/dist/typst-D_1QKWns.js +6 -0
  370. package/dist/v-BPCNiyYe.js +6 -0
  371. package/dist/vala-uxaPR7d1.js +6 -0
  372. package/dist/vb-D8_c5-KN.js +6 -0
  373. package/dist/verilog-B-bybjPF.js +6 -0
  374. package/dist/vesper-BckBta1U.js +4 -0
  375. package/dist/vhdl-CUlNa8ac.js +6 -0
  376. package/dist/viml-DsfA-sWm.js +6 -0
  377. package/dist/vitesse-black-BoGvW84i.js +4 -0
  378. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  379. package/dist/vitesse-light-CcmG315c.js +4 -0
  380. package/dist/vue-DmFKWfEU.js +31 -0
  381. package/dist/vue-html-BB2aI7Yc.js +15 -0
  382. package/dist/vue-vine-CznNap4x.js +24 -0
  383. package/dist/vyper-CPQuu50u.js +6 -0
  384. package/dist/wasm-BBXxrAl7.js +6 -0
  385. package/dist/wasm-DQxwEHae.js +7 -0
  386. package/dist/wenyan-pbVjoM9_.js +6 -0
  387. package/dist/wgsl-DY4iK1q1.js +6 -0
  388. package/dist/wikitext-Z-MoUasO.js +6 -0
  389. package/dist/wit-CQMQOlTg.js +6 -0
  390. package/dist/wolfram-Dz4KXISs.js +6 -0
  391. package/dist/xml-C2J0sS9M.js +8 -0
  392. package/dist/xsl-CbTBIiv3.js +9 -0
  393. package/dist/xychartDiagram-PRI3JC2R-BkO8dJff.js +1345 -0
  394. package/dist/yaml-DaO7k5B1.js +6 -0
  395. package/dist/zenscript-CxBjpf9c.js +6 -0
  396. package/dist/zig-Vm0PO9wB.js +6 -0
  397. package/package.json +35 -7
@@ -0,0 +1,805 @@
1
+ import { _ as s, B as xt, V as kt, t as vt, j as q, d as _t, l as E, W as bt, X as wt, Y as St, $ as Et } from "./mermaid.core-xMGW442o.js";
2
+ import { d as nt } from "./arc-DN1xn8kz.js";
3
+ import "./index-C2DJ8qoy.js";
4
+ import "react";
5
+ import "react-dom";
6
+ var X = function() {
7
+ var n = /* @__PURE__ */ s(function(f, r, a, h) {
8
+ for (a = a || {}, h = f.length; h--; a[f[h]] = r)
9
+ ;
10
+ return a;
11
+ }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12], c = [1, 13], g = [1, 16], m = [1, 17], p = {
12
+ trace: /* @__PURE__ */ s(function() {
13
+ }, "trace"),
14
+ yy: {},
15
+ symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
16
+ terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
17
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
18
+ performAction: /* @__PURE__ */ s(function(r, a, h, u, y, o, S) {
19
+ var k = o.length - 1;
20
+ switch (y) {
21
+ case 1:
22
+ return o[k - 1];
23
+ case 2:
24
+ this.$ = [];
25
+ break;
26
+ case 3:
27
+ o[k - 1].push(o[k]), this.$ = o[k - 1];
28
+ break;
29
+ case 4:
30
+ case 5:
31
+ this.$ = o[k];
32
+ break;
33
+ case 6:
34
+ case 7:
35
+ this.$ = [];
36
+ break;
37
+ case 8:
38
+ u.getCommonDb().setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
39
+ break;
40
+ case 9:
41
+ this.$ = o[k].trim(), u.getCommonDb().setAccTitle(this.$);
42
+ break;
43
+ case 10:
44
+ case 11:
45
+ this.$ = o[k].trim(), u.getCommonDb().setAccDescription(this.$);
46
+ break;
47
+ case 12:
48
+ u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
49
+ break;
50
+ case 15:
51
+ u.addTask(o[k], 0, ""), this.$ = o[k];
52
+ break;
53
+ case 16:
54
+ u.addEvent(o[k].substr(2)), this.$ = o[k];
55
+ break;
56
+ }
57
+ }, "anonymous"),
58
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: i, 16: d, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: i, 16: d, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
59
+ defaultActions: {},
60
+ parseError: /* @__PURE__ */ s(function(r, a) {
61
+ if (a.recoverable)
62
+ this.trace(r);
63
+ else {
64
+ var h = new Error(r);
65
+ throw h.hash = a, h;
66
+ }
67
+ }, "parseError"),
68
+ parse: /* @__PURE__ */ s(function(r) {
69
+ var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", $ = 0, C = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
70
+ for (var L in this.yy)
71
+ Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
72
+ v.setInput(r, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
73
+ var b = v.yylloc;
74
+ o.push(b);
75
+ var M = v.options && v.options.ranges;
76
+ typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
77
+ function R(T) {
78
+ h.length = h.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
79
+ }
80
+ s(R, "popStack");
81
+ function A() {
82
+ var T;
83
+ return T = u.pop() || v.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
84
+ }
85
+ s(A, "lex");
86
+ for (var w, H, I, K, V = {}, j, P, et, G; ; ) {
87
+ if (H = h[h.length - 1], this.defaultActions[H] ? I = this.defaultActions[H] : ((w === null || typeof w > "u") && (w = A()), I = S[H] && S[H][w]), typeof I > "u" || !I.length || !I[0]) {
88
+ var Q = "";
89
+ G = [];
90
+ for (j in S[H])
91
+ this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
92
+ v.showPosition ? Q = "Parse error on line " + ($ + 1) + `:
93
+ ` + v.showPosition() + `
94
+ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + ($ + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
95
+ text: v.match,
96
+ token: this.terminals_[w] || w,
97
+ line: v.yylineno,
98
+ loc: b,
99
+ expected: G
100
+ });
101
+ }
102
+ if (I[0] instanceof Array && I.length > 1)
103
+ throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + w);
104
+ switch (I[0]) {
105
+ case 1:
106
+ h.push(w), y.push(v.yytext), o.push(v.yylloc), h.push(I[1]), w = null, C = v.yyleng, k = v.yytext, $ = v.yylineno, b = v.yylloc;
107
+ break;
108
+ case 2:
109
+ if (P = this.productions_[I[1]][1], V.$ = y[y.length - P], V._$ = {
110
+ first_line: o[o.length - (P || 1)].first_line,
111
+ last_line: o[o.length - 1].last_line,
112
+ first_column: o[o.length - (P || 1)].first_column,
113
+ last_column: o[o.length - 1].last_column
114
+ }, M && (V._$.range = [
115
+ o[o.length - (P || 1)].range[0],
116
+ o[o.length - 1].range[1]
117
+ ]), K = this.performAction.apply(V, [
118
+ k,
119
+ C,
120
+ $,
121
+ N.yy,
122
+ I[1],
123
+ y,
124
+ o
125
+ ].concat(O)), typeof K < "u")
126
+ return K;
127
+ P && (h = h.slice(0, -1 * P * 2), y = y.slice(0, -1 * P), o = o.slice(0, -1 * P)), h.push(this.productions_[I[1]][0]), y.push(V.$), o.push(V._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
128
+ break;
129
+ case 3:
130
+ return !0;
131
+ }
132
+ }
133
+ return !0;
134
+ }, "parse")
135
+ }, x = /* @__PURE__ */ function() {
136
+ var f = {
137
+ EOF: 1,
138
+ parseError: /* @__PURE__ */ s(function(a, h) {
139
+ if (this.yy.parser)
140
+ this.yy.parser.parseError(a, h);
141
+ else
142
+ throw new Error(a);
143
+ }, "parseError"),
144
+ // resets the lexer, sets new input
145
+ setInput: /* @__PURE__ */ s(function(r, a) {
146
+ return this.yy = a || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
147
+ first_line: 1,
148
+ first_column: 0,
149
+ last_line: 1,
150
+ last_column: 0
151
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
152
+ }, "setInput"),
153
+ // consumes and returns one char from the input
154
+ input: /* @__PURE__ */ s(function() {
155
+ var r = this._input[0];
156
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
157
+ var a = r.match(/(?:\r\n?|\n).*/g);
158
+ return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
159
+ }, "input"),
160
+ // unshifts one char (or a string) into the input
161
+ unput: /* @__PURE__ */ s(function(r) {
162
+ var a = r.length, h = r.split(/(?:\r\n?|\n)/g);
163
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
164
+ var u = this.match.split(/(?:\r\n?|\n)/g);
165
+ 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);
166
+ var y = this.yylloc.range;
167
+ return this.yylloc = {
168
+ first_line: this.yylloc.first_line,
169
+ last_line: this.yylineno + 1,
170
+ first_column: this.yylloc.first_column,
171
+ last_column: h ? (h.length === u.length ? this.yylloc.first_column : 0) + u[u.length - h.length].length - h[0].length : this.yylloc.first_column - a
172
+ }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
173
+ }, "unput"),
174
+ // When called from action, caches matched text and appends it on next action
175
+ more: /* @__PURE__ */ s(function() {
176
+ return this._more = !0, this;
177
+ }, "more"),
178
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
179
+ reject: /* @__PURE__ */ s(function() {
180
+ if (this.options.backtrack_lexer)
181
+ this._backtrack = !0;
182
+ else
183
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
184
+ ` + this.showPosition(), {
185
+ text: "",
186
+ token: null,
187
+ line: this.yylineno
188
+ });
189
+ return this;
190
+ }, "reject"),
191
+ // retain first n characters of the match
192
+ less: /* @__PURE__ */ s(function(r) {
193
+ this.unput(this.match.slice(r));
194
+ }, "less"),
195
+ // displays already matched input, i.e. for error messages
196
+ pastInput: /* @__PURE__ */ s(function() {
197
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
198
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
199
+ }, "pastInput"),
200
+ // displays upcoming input, i.e. for error messages
201
+ upcomingInput: /* @__PURE__ */ s(function() {
202
+ var r = this.match;
203
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
204
+ }, "upcomingInput"),
205
+ // displays the character position where the lexing error occurred, i.e. for error messages
206
+ showPosition: /* @__PURE__ */ s(function() {
207
+ var r = this.pastInput(), a = new Array(r.length + 1).join("-");
208
+ return r + this.upcomingInput() + `
209
+ ` + a + "^";
210
+ }, "showPosition"),
211
+ // test the lexed token: return FALSE when not a match, otherwise return token
212
+ test_match: /* @__PURE__ */ s(function(r, a) {
213
+ var h, u, y;
214
+ if (this.options.backtrack_lexer && (y = {
215
+ yylineno: this.yylineno,
216
+ yylloc: {
217
+ first_line: this.yylloc.first_line,
218
+ last_line: this.last_line,
219
+ first_column: this.yylloc.first_column,
220
+ last_column: this.yylloc.last_column
221
+ },
222
+ yytext: this.yytext,
223
+ match: this.match,
224
+ matches: this.matches,
225
+ matched: this.matched,
226
+ yyleng: this.yyleng,
227
+ offset: this.offset,
228
+ _more: this._more,
229
+ _input: this._input,
230
+ yy: this.yy,
231
+ conditionStack: this.conditionStack.slice(0),
232
+ done: this.done
233
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = r[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
234
+ first_line: this.yylloc.last_line,
235
+ last_line: this.yylineno + 1,
236
+ first_column: this.yylloc.last_column,
237
+ last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
238
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], h = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
239
+ return h;
240
+ if (this._backtrack) {
241
+ for (var o in y)
242
+ this[o] = y[o];
243
+ return !1;
244
+ }
245
+ return !1;
246
+ }, "test_match"),
247
+ // return next match in input
248
+ next: /* @__PURE__ */ s(function() {
249
+ if (this.done)
250
+ return this.EOF;
251
+ this._input || (this.done = !0);
252
+ var r, a, h, u;
253
+ this._more || (this.yytext = "", this.match = "");
254
+ for (var y = this._currentRules(), o = 0; o < y.length; o++)
255
+ if (h = this._input.match(this.rules[y[o]]), h && (!a || h[0].length > a[0].length)) {
256
+ if (a = h, u = o, this.options.backtrack_lexer) {
257
+ if (r = this.test_match(h, y[o]), r !== !1)
258
+ return r;
259
+ if (this._backtrack) {
260
+ a = !1;
261
+ continue;
262
+ } else
263
+ return !1;
264
+ } else if (!this.options.flex)
265
+ break;
266
+ }
267
+ return a ? (r = this.test_match(a, y[u]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
268
+ ` + this.showPosition(), {
269
+ text: "",
270
+ token: null,
271
+ line: this.yylineno
272
+ });
273
+ }, "next"),
274
+ // return next match that has a token
275
+ lex: /* @__PURE__ */ s(function() {
276
+ var a = this.next();
277
+ return a || this.lex();
278
+ }, "lex"),
279
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
280
+ begin: /* @__PURE__ */ s(function(a) {
281
+ this.conditionStack.push(a);
282
+ }, "begin"),
283
+ // pop the previously active lexer condition state off the condition stack
284
+ popState: /* @__PURE__ */ s(function() {
285
+ var a = this.conditionStack.length - 1;
286
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
287
+ }, "popState"),
288
+ // produce the lexer rule set which is active for the currently active lexer condition state
289
+ _currentRules: /* @__PURE__ */ s(function() {
290
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
291
+ }, "_currentRules"),
292
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
293
+ topState: /* @__PURE__ */ s(function(a) {
294
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
295
+ }, "topState"),
296
+ // alias for begin(condition)
297
+ pushState: /* @__PURE__ */ s(function(a) {
298
+ this.begin(a);
299
+ }, "pushState"),
300
+ // return the number of states currently on the stack
301
+ stateStackSize: /* @__PURE__ */ s(function() {
302
+ return this.conditionStack.length;
303
+ }, "stateStackSize"),
304
+ options: { "case-insensitive": !0 },
305
+ performAction: /* @__PURE__ */ s(function(a, h, u, y) {
306
+ switch (u) {
307
+ case 0:
308
+ break;
309
+ case 1:
310
+ break;
311
+ case 2:
312
+ return 10;
313
+ case 3:
314
+ break;
315
+ case 4:
316
+ break;
317
+ case 5:
318
+ return 4;
319
+ case 6:
320
+ return 11;
321
+ case 7:
322
+ return this.begin("acc_title"), 12;
323
+ case 8:
324
+ return this.popState(), "acc_title_value";
325
+ case 9:
326
+ return this.begin("acc_descr"), 14;
327
+ case 10:
328
+ return this.popState(), "acc_descr_value";
329
+ case 11:
330
+ this.begin("acc_descr_multiline");
331
+ break;
332
+ case 12:
333
+ this.popState();
334
+ break;
335
+ case 13:
336
+ return "acc_descr_multiline_value";
337
+ case 14:
338
+ return 17;
339
+ case 15:
340
+ return 21;
341
+ case 16:
342
+ return 20;
343
+ case 17:
344
+ return 6;
345
+ case 18:
346
+ return "INVALID";
347
+ }
348
+ }, "anonymous"),
349
+ rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s(?:[^:\n]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
350
+ conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
351
+ };
352
+ return f;
353
+ }();
354
+ p.lexer = x;
355
+ function _() {
356
+ this.yy = {};
357
+ }
358
+ return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
359
+ }();
360
+ X.parser = X;
361
+ var Tt = X, at = {};
362
+ xt(at, {
363
+ addEvent: () => yt,
364
+ addSection: () => ht,
365
+ addTask: () => pt,
366
+ addTaskOrg: () => gt,
367
+ clear: () => ct,
368
+ default: () => It,
369
+ getCommonDb: () => ot,
370
+ getSections: () => dt,
371
+ getTasks: () => ut
372
+ });
373
+ var W = "", lt = 0, Y = [], U = [], z = [], ot = /* @__PURE__ */ s(() => kt, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
374
+ Y.length = 0, U.length = 0, W = "", z.length = 0, vt();
375
+ }, "clear"), ht = /* @__PURE__ */ s(function(n) {
376
+ W = n, Y.push(n);
377
+ }, "addSection"), dt = /* @__PURE__ */ s(function() {
378
+ return Y;
379
+ }, "getSections"), ut = /* @__PURE__ */ s(function() {
380
+ let n = it();
381
+ const t = 100;
382
+ let e = 0;
383
+ for (; !n && e < t; )
384
+ n = it(), e++;
385
+ return U.push(...z), U;
386
+ }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
387
+ const l = {
388
+ id: lt++,
389
+ section: W,
390
+ type: W,
391
+ task: n,
392
+ score: t || 0,
393
+ //if event is defined, then add it the events array
394
+ events: e ? [e] : []
395
+ };
396
+ z.push(l);
397
+ }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
398
+ z.find((e) => e.id === lt - 1).events.push(n);
399
+ }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
400
+ const t = {
401
+ section: W,
402
+ type: W,
403
+ description: n,
404
+ task: n,
405
+ classes: []
406
+ };
407
+ U.push(t);
408
+ }, "addTaskOrg"), it = /* @__PURE__ */ s(function() {
409
+ const n = /* @__PURE__ */ s(function(e) {
410
+ return z[e].processed;
411
+ }, "compileTask");
412
+ let t = !0;
413
+ for (const [e, l] of z.entries())
414
+ n(e), t = t && l.processed;
415
+ return t;
416
+ }, "compileTasks"), It = {
417
+ clear: ct,
418
+ getCommonDb: ot,
419
+ addSection: ht,
420
+ getSections: dt,
421
+ getTasks: ut,
422
+ addTask: pt,
423
+ addTaskOrg: gt,
424
+ addEvent: yt
425
+ }, Nt = 12, Z = /* @__PURE__ */ s(function(n, t) {
426
+ const e = n.append("rect");
427
+ return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
428
+ }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
429
+ const l = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = n.append("g");
430
+ i.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
431
+ function d(m) {
432
+ const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
433
+ m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
434
+ }
435
+ s(d, "smile");
436
+ function c(m) {
437
+ const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
438
+ m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
439
+ }
440
+ s(c, "sad");
441
+ function g(m) {
442
+ m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
443
+ }
444
+ return s(g, "ambivalent"), t.score > 3 ? d(i) : t.score < 3 ? c(i) : g(i), l;
445
+ }, "drawFace"), $t = /* @__PURE__ */ s(function(n, t) {
446
+ const e = n.append("circle");
447
+ return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
448
+ }, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
449
+ const e = t.text.replace(/<br\s*\/?>/gi, " "), l = n.append("text");
450
+ l.attr("x", t.x), l.attr("y", t.y), l.attr("class", "legend"), l.style("text-anchor", t.anchor), t.class !== void 0 && l.attr("class", t.class);
451
+ const i = l.append("tspan");
452
+ return i.attr("x", t.x + t.textMargin * 2), i.text(e), l;
453
+ }, "drawText"), Mt = /* @__PURE__ */ s(function(n, t) {
454
+ function e(i, d, c, g, m) {
455
+ return i + "," + d + " " + (i + c) + "," + d + " " + (i + c) + "," + (d + g - m) + " " + (i + c - m * 1.2) + "," + (d + g) + " " + i + "," + (d + g);
456
+ }
457
+ s(e, "genPoints");
458
+ const l = n.append("polygon");
459
+ l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
460
+ }, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
461
+ const l = n.append("g"), i = D();
462
+ i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, Z(l, i), mt(e)(
463
+ t.text,
464
+ l,
465
+ i.x,
466
+ i.y,
467
+ i.width,
468
+ i.height,
469
+ { class: "journey-section section-type-" + t.num },
470
+ e,
471
+ t.colour
472
+ );
473
+ }, "drawSection"), rt = -1, Pt = /* @__PURE__ */ s(function(n, t, e) {
474
+ const l = t.x + e.width / 2, i = n.append("g");
475
+ rt++;
476
+ const d = 300 + 5 * 30;
477
+ i.append("line").attr("id", "task" + rt).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", d).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(i, {
478
+ cx: l,
479
+ cy: 300 + (5 - t.score) * 30,
480
+ score: t.score
481
+ });
482
+ const c = D();
483
+ c.x = t.x, c.y = t.y, c.fill = t.fill, c.width = e.width, c.height = e.height, c.class = "task task-type-" + t.num, c.rx = 3, c.ry = 3, Z(i, c), mt(e)(
484
+ t.task,
485
+ i,
486
+ c.x,
487
+ c.y,
488
+ c.width,
489
+ c.height,
490
+ { class: "task" },
491
+ e,
492
+ t.colour
493
+ );
494
+ }, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
495
+ Z(n, {
496
+ x: t.startx,
497
+ y: t.starty,
498
+ width: t.stopx - t.startx,
499
+ height: t.stopy - t.starty,
500
+ fill: t.fill,
501
+ class: "rect"
502
+ }).lower();
503
+ }, "drawBackgroundRect"), Ct = /* @__PURE__ */ s(function() {
504
+ return {
505
+ x: 0,
506
+ y: 0,
507
+ fill: void 0,
508
+ "text-anchor": "start",
509
+ width: 100,
510
+ height: 100,
511
+ textMargin: 0,
512
+ rx: 0,
513
+ ry: 0
514
+ };
515
+ }, "getTextObj"), D = /* @__PURE__ */ s(function() {
516
+ return {
517
+ x: 0,
518
+ y: 0,
519
+ width: 100,
520
+ anchor: "start",
521
+ height: 100,
522
+ rx: 0,
523
+ ry: 0
524
+ };
525
+ }, "getNoteRect"), mt = /* @__PURE__ */ function() {
526
+ function n(i, d, c, g, m, p, x, _) {
527
+ const f = d.append("text").attr("x", c + m / 2).attr("y", g + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(i);
528
+ l(f, x);
529
+ }
530
+ s(n, "byText");
531
+ function t(i, d, c, g, m, p, x, _, f) {
532
+ const { taskFontSize: r, taskFontFamily: a } = _, h = i.split(/<br\s*\/?>/gi);
533
+ for (let u = 0; u < h.length; u++) {
534
+ const y = u * r - r * (h.length - 1) / 2, o = d.append("text").attr("x", c + m / 2).attr("y", g).attr("fill", f).style("text-anchor", "middle").style("font-size", r).style("font-family", a);
535
+ o.append("tspan").attr("x", c + m / 2).attr("dy", y).text(h[u]), o.attr("y", g + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, x);
536
+ }
537
+ }
538
+ s(t, "byTspan");
539
+ function e(i, d, c, g, m, p, x, _) {
540
+ const f = d.append("switch"), a = f.append("foreignObject").attr("x", c).attr("y", g).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
541
+ a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, f, c, g, m, p, x, _), l(a, x);
542
+ }
543
+ s(e, "byFo");
544
+ function l(i, d) {
545
+ for (const c in d)
546
+ c in d && i.attr(c, d[c]);
547
+ }
548
+ return s(l, "_setTextAttrs"), function(i) {
549
+ return i.textPlacement === "fo" ? e : i.textPlacement === "old" ? n : t;
550
+ };
551
+ }(), Rt = /* @__PURE__ */ s(function(n) {
552
+ n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
553
+ }, "initGraphics");
554
+ function tt(n, t) {
555
+ n.each(function() {
556
+ var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), i, d = [], c = 1.1, g = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", g).attr("dy", m + "em");
557
+ for (let x = 0; x < l.length; x++)
558
+ i = l[l.length - 1 - x], d.push(i), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || i === "<br>") && (d.pop(), p.text(d.join(" ").trim()), i === "<br>" ? d = [""] : d = [i], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(i));
559
+ });
560
+ }
561
+ s(tt, "wrap");
562
+ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
563
+ var _;
564
+ const i = e % Nt - 1, d = n.append("g");
565
+ t.section = i, d.attr(
566
+ "class",
567
+ (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i)
568
+ );
569
+ const c = d.append("g"), g = d.append("g"), p = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), x = (_ = l.fontSize) != null && _.replace ? l.fontSize.replace("px", "") : l.fontSize;
570
+ return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Wt(c, t, i, l), t;
571
+ }, "drawNode"), Vt = /* @__PURE__ */ s(function(n, t, e) {
572
+ var g;
573
+ const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), c = (g = e.fontSize) != null && g.replace ? e.fontSize.replace("px", "") : e.fontSize;
574
+ return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
575
+ }, "getVirtualNodeHeight"), Wt = /* @__PURE__ */ s(function(n, t, e) {
576
+ n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
577
+ "d",
578
+ `M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
579
+ ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
580
+ }, "defaultBkg"), F = {
581
+ drawRect: Z,
582
+ drawCircle: $t,
583
+ drawSection: Ht,
584
+ drawText: ft,
585
+ drawLabel: Mt,
586
+ drawTask: Pt,
587
+ drawBackgroundRect: At,
588
+ getTextObj: Ct,
589
+ getNoteRect: D,
590
+ initGraphics: Rt,
591
+ drawNode: Ft,
592
+ getVirtualNodeHeight: Vt
593
+ }, zt = /* @__PURE__ */ s(function(n, t, e, l) {
594
+ var O, v, N;
595
+ const i = _t(), d = ((O = i.timeline) == null ? void 0 : O.leftMargin) ?? 50;
596
+ E.debug("timeline", l.db);
597
+ const c = i.securityLevel;
598
+ let g;
599
+ c === "sandbox" && (g = q("#i" + t));
600
+ const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
601
+ p.append("g");
602
+ const x = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
603
+ E.debug("task", x), F.initGraphics(p);
604
+ const f = l.db.getSections();
605
+ E.debug("sections", f);
606
+ let r = 0, a = 0, h = 0, u = 0, y = 50 + d, o = 50;
607
+ u = 50;
608
+ let S = 0, k = !0;
609
+ f.forEach(function(L) {
610
+ const b = {
611
+ number: S,
612
+ descr: L,
613
+ section: S,
614
+ width: 150,
615
+ padding: 20,
616
+ maxHeight: r
617
+ }, M = F.getVirtualNodeHeight(p, b, i);
618
+ E.debug("sectionHeight before draw", M), r = Math.max(r, M + 20);
619
+ });
620
+ let $ = 0, C = 0;
621
+ E.debug("tasks.length", x.length);
622
+ for (const [L, b] of x.entries()) {
623
+ const M = {
624
+ number: L,
625
+ descr: b,
626
+ section: b.section,
627
+ width: 150,
628
+ padding: 20,
629
+ maxHeight: a
630
+ }, R = F.getVirtualNodeHeight(p, M, i);
631
+ E.debug("taskHeight before draw", R), a = Math.max(a, R + 20), $ = Math.max($, b.events.length);
632
+ let A = 0;
633
+ for (const w of b.events) {
634
+ const H = {
635
+ descr: w,
636
+ section: b.section,
637
+ number: b.section,
638
+ width: 150,
639
+ padding: 20,
640
+ maxHeight: 50
641
+ };
642
+ A += F.getVirtualNodeHeight(p, H, i);
643
+ }
644
+ b.events.length > 0 && (A += (b.events.length - 1) * 10), C = Math.max(C, A);
645
+ }
646
+ E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((L) => {
647
+ const b = x.filter((w) => w.section === L), M = {
648
+ number: S,
649
+ descr: L,
650
+ section: S,
651
+ width: 200 * Math.max(b.length, 1) - 50,
652
+ padding: 20,
653
+ maxHeight: r
654
+ };
655
+ E.debug("sectionNode", M);
656
+ const R = p.append("g"), A = F.drawNode(R, M, S, i);
657
+ E.debug("sectionNode output", A), R.attr("transform", `translate(${y}, ${u})`), o += r + 50, b.length > 0 && st(
658
+ p,
659
+ b,
660
+ S,
661
+ y,
662
+ o,
663
+ a,
664
+ i,
665
+ $,
666
+ C,
667
+ r,
668
+ !1
669
+ ), y += 200 * Math.max(b.length, 1), o = u, S++;
670
+ }) : (k = !1, st(
671
+ p,
672
+ x,
673
+ S,
674
+ y,
675
+ o,
676
+ a,
677
+ i,
678
+ $,
679
+ C,
680
+ r,
681
+ !0
682
+ ));
683
+ const B = p.node().getBBox();
684
+ E.debug("bounds", B), _ && p.append("text").text(_).attr("x", B.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), h = k ? r + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", h).attr("x2", B.width + 3 * d).attr("y2", h).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), bt(
685
+ void 0,
686
+ p,
687
+ ((v = i.timeline) == null ? void 0 : v.padding) ?? 50,
688
+ ((N = i.timeline) == null ? void 0 : N.useMaxWidth) ?? !1
689
+ );
690
+ }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d, c, g, m, p, x) {
691
+ var _;
692
+ for (const f of t) {
693
+ const r = {
694
+ descr: f.task,
695
+ section: e,
696
+ number: e,
697
+ width: 150,
698
+ padding: 20,
699
+ maxHeight: d
700
+ };
701
+ E.debug("taskNode", r);
702
+ const a = n.append("g").attr("class", "taskWrapper"), u = F.drawNode(a, r, e, c).height;
703
+ if (E.debug("taskHeight after draw", u), a.attr("transform", `translate(${l}, ${i})`), d = Math.max(d, u), f.events) {
704
+ const y = n.append("g").attr("class", "lineWrapper");
705
+ let o = d;
706
+ i += 100, o = o + Bt(n, f.events, e, l, i, c), i -= 100, y.append("line").attr("x1", l + 190 / 2).attr("y1", i + d).attr("x2", l + 190 / 2).attr("y2", i + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
707
+ }
708
+ l = l + 200, x && !((_ = c.timeline) != null && _.disableMulticolor) && e++;
709
+ }
710
+ i = i - 10;
711
+ }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, i, d) {
712
+ let c = 0;
713
+ const g = i;
714
+ i = i + 100;
715
+ for (const m of t) {
716
+ const p = {
717
+ descr: m,
718
+ section: e,
719
+ number: e,
720
+ width: 150,
721
+ padding: 20,
722
+ maxHeight: 50
723
+ };
724
+ E.debug("eventNode", p);
725
+ const x = n.append("g").attr("class", "eventWrapper"), f = F.drawNode(x, p, e, d).height;
726
+ c = c + f, x.attr("transform", `translate(${l}, ${i})`), i = i + 10 + f;
727
+ }
728
+ return i = g, c;
729
+ }, "drawEvents"), Ot = {
730
+ setConf: /* @__PURE__ */ s(() => {
731
+ }, "setConf"),
732
+ draw: zt
733
+ }, jt = /* @__PURE__ */ s((n) => {
734
+ let t = "";
735
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
736
+ n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], wt(n["lineColor" + e]) ? n["lineColor" + e] = St(n["lineColor" + e], 20) : n["lineColor" + e] = Et(n["lineColor" + e], 20);
737
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
738
+ const l = "" + (17 - 3 * e);
739
+ t += `
740
+ .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
741
+ fill: ${n["cScale" + e]};
742
+ }
743
+ .section-${e - 1} text {
744
+ fill: ${n["cScaleLabel" + e]};
745
+ }
746
+ .node-icon-${e - 1} {
747
+ font-size: 40px;
748
+ color: ${n["cScaleLabel" + e]};
749
+ }
750
+ .section-edge-${e - 1}{
751
+ stroke: ${n["cScale" + e]};
752
+ }
753
+ .edge-depth-${e - 1}{
754
+ stroke-width: ${l};
755
+ }
756
+ .section-${e - 1} line {
757
+ stroke: ${n["cScaleInv" + e]} ;
758
+ stroke-width: 3;
759
+ }
760
+
761
+ .lineWrapper line{
762
+ stroke: ${n["cScaleLabel" + e]} ;
763
+ }
764
+
765
+ .disabled, .disabled circle, .disabled text {
766
+ fill: lightgray;
767
+ }
768
+ .disabled text {
769
+ fill: #efefef;
770
+ }
771
+ `;
772
+ }
773
+ return t;
774
+ }, "genSections"), Gt = /* @__PURE__ */ s((n) => `
775
+ .edge {
776
+ stroke-width: 3;
777
+ }
778
+ ${jt(n)}
779
+ .section-root rect, .section-root path, .section-root circle {
780
+ fill: ${n.git0};
781
+ }
782
+ .section-root text {
783
+ fill: ${n.gitBranchLabel0};
784
+ }
785
+ .icon-container {
786
+ height:100%;
787
+ display: flex;
788
+ justify-content: center;
789
+ align-items: center;
790
+ }
791
+ .edge {
792
+ fill: none;
793
+ }
794
+ .eventWrapper {
795
+ filter: brightness(120%);
796
+ }
797
+ `, "getStyles"), qt = Gt, Xt = {
798
+ db: at,
799
+ renderer: Ot,
800
+ parser: Tt,
801
+ styles: qt
802
+ };
803
+ export {
804
+ Xt as diagram
805
+ };