@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,1383 @@
1
+ import { g as te } from "./chunk-55IACEB6-Dr8rgvy_.js";
2
+ import { s as ee } from "./chunk-QN33PNHL-nSyFq8_s.js";
3
+ import { _ as f, g as se, s as ie, b as re, c as ae, n as ne, o as oe, d as F, l as D, T as le, e as z, t as ce, z as he, u as ue } from "./mermaid.core-xMGW442o.js";
4
+ var vt = function() {
5
+ var e = /* @__PURE__ */ f(function(V, o, h, n) {
6
+ for (h = h || {}, n = V.length; n--; h[V[n]] = o)
7
+ ;
8
+ return h;
9
+ }, "o"), t = [1, 2], s = [1, 3], a = [1, 4], i = [2, 4], l = [1, 9], d = [1, 11], S = [1, 16], p = [1, 17], T = [1, 18], _ = [1, 19], m = [1, 33], k = [1, 20], A = [1, 21], $ = [1, 22], x = [1, 23], R = [1, 24], u = [1, 26], L = [1, 27], I = [1, 28], N = [1, 29], G = [1, 30], P = [1, 31], B = [1, 32], at = [1, 35], nt = [1, 36], ot = [1, 37], lt = [1, 38], W = [1, 34], y = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], ct = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 39, 40, 41, 45, 48, 51, 52, 53, 54, 57], xt = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], gt = {
10
+ trace: /* @__PURE__ */ f(function() {
11
+ }, "trace"),
12
+ yy: {},
13
+ symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, styleStatement: 11, cssClassStatement: 12, idStatement: 13, DESCR: 14, "-->": 15, HIDE_EMPTY: 16, scale: 17, WIDTH: 18, COMPOSIT_STATE: 19, STRUCT_START: 20, STRUCT_STOP: 21, STATE_DESCR: 22, AS: 23, ID: 24, FORK: 25, JOIN: 26, CHOICE: 27, CONCURRENT: 28, note: 29, notePosition: 30, NOTE_TEXT: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, CLICK: 38, STRING: 39, HREF: 40, classDef: 41, CLASSDEF_ID: 42, CLASSDEF_STYLEOPTS: 43, DEFAULT: 44, style: 45, STYLE_IDS: 46, STYLEDEF_STYLEOPTS: 47, class: 48, CLASSENTITY_IDS: 49, STYLECLASS: 50, direction_tb: 51, direction_bt: 52, direction_rl: 53, direction_lr: 54, eol: 55, ";": 56, EDGE_STATE: 57, STYLE_SEPARATOR: 58, left_of: 59, right_of: 60, $accept: 0, $end: 1 },
14
+ terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "CLICK", 39: "STRING", 40: "HREF", 41: "classDef", 42: "CLASSDEF_ID", 43: "CLASSDEF_STYLEOPTS", 44: "DEFAULT", 45: "style", 46: "STYLE_IDS", 47: "STYLEDEF_STYLEOPTS", 48: "class", 49: "CLASSENTITY_IDS", 50: "STYLECLASS", 51: "direction_tb", 52: "direction_bt", 53: "direction_rl", 54: "direction_lr", 56: ";", 57: "EDGE_STATE", 58: "STYLE_SEPARATOR", 59: "left_of", 60: "right_of" },
15
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [9, 5], [9, 5], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [55, 1], [55, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
16
+ performAction: /* @__PURE__ */ f(function(o, h, n, g, E, r, Z) {
17
+ var c = r.length - 1;
18
+ switch (E) {
19
+ case 3:
20
+ return g.setRootDoc(r[c]), r[c];
21
+ case 4:
22
+ this.$ = [];
23
+ break;
24
+ case 5:
25
+ r[c] != "nl" && (r[c - 1].push(r[c]), this.$ = r[c - 1]);
26
+ break;
27
+ case 6:
28
+ case 7:
29
+ this.$ = r[c];
30
+ break;
31
+ case 8:
32
+ this.$ = "nl";
33
+ break;
34
+ case 12:
35
+ this.$ = r[c];
36
+ break;
37
+ case 13:
38
+ const tt = r[c - 1];
39
+ tt.description = g.trimColon(r[c]), this.$ = tt;
40
+ break;
41
+ case 14:
42
+ this.$ = { stmt: "relation", state1: r[c - 2], state2: r[c] };
43
+ break;
44
+ case 15:
45
+ const Tt = g.trimColon(r[c]);
46
+ this.$ = { stmt: "relation", state1: r[c - 3], state2: r[c - 1], description: Tt };
47
+ break;
48
+ case 19:
49
+ this.$ = { stmt: "state", id: r[c - 3], type: "default", description: "", doc: r[c - 1] };
50
+ break;
51
+ case 20:
52
+ var U = r[c], K = r[c - 2].trim();
53
+ if (r[c].match(":")) {
54
+ var ut = r[c].split(":");
55
+ U = ut[0], K = [K, ut[1]];
56
+ }
57
+ this.$ = { stmt: "state", id: U, type: "default", description: K };
58
+ break;
59
+ case 21:
60
+ this.$ = { stmt: "state", id: r[c - 3], type: "default", description: r[c - 5], doc: r[c - 1] };
61
+ break;
62
+ case 22:
63
+ this.$ = { stmt: "state", id: r[c], type: "fork" };
64
+ break;
65
+ case 23:
66
+ this.$ = { stmt: "state", id: r[c], type: "join" };
67
+ break;
68
+ case 24:
69
+ this.$ = { stmt: "state", id: r[c], type: "choice" };
70
+ break;
71
+ case 25:
72
+ this.$ = { stmt: "state", id: g.getDividerId(), type: "divider" };
73
+ break;
74
+ case 26:
75
+ this.$ = { stmt: "state", id: r[c - 1].trim(), note: { position: r[c - 2].trim(), text: r[c].trim() } };
76
+ break;
77
+ case 29:
78
+ this.$ = r[c].trim(), g.setAccTitle(this.$);
79
+ break;
80
+ case 30:
81
+ case 31:
82
+ this.$ = r[c].trim(), g.setAccDescription(this.$);
83
+ break;
84
+ case 32:
85
+ this.$ = {
86
+ stmt: "click",
87
+ id: r[c - 3],
88
+ url: r[c - 2],
89
+ tooltip: r[c - 1]
90
+ };
91
+ break;
92
+ case 33:
93
+ this.$ = {
94
+ stmt: "click",
95
+ id: r[c - 3],
96
+ url: r[c - 1],
97
+ tooltip: ""
98
+ };
99
+ break;
100
+ case 34:
101
+ case 35:
102
+ this.$ = { stmt: "classDef", id: r[c - 1].trim(), classes: r[c].trim() };
103
+ break;
104
+ case 36:
105
+ this.$ = { stmt: "style", id: r[c - 1].trim(), styleClass: r[c].trim() };
106
+ break;
107
+ case 37:
108
+ this.$ = { stmt: "applyClass", id: r[c - 1].trim(), styleClass: r[c].trim() };
109
+ break;
110
+ case 38:
111
+ g.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
112
+ break;
113
+ case 39:
114
+ g.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
115
+ break;
116
+ case 40:
117
+ g.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
118
+ break;
119
+ case 41:
120
+ g.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
121
+ break;
122
+ case 44:
123
+ case 45:
124
+ this.$ = { stmt: "state", id: r[c].trim(), type: "default", description: "" };
125
+ break;
126
+ case 46:
127
+ this.$ = { stmt: "state", id: r[c - 2].trim(), classes: [r[c].trim()], type: "default", description: "" };
128
+ break;
129
+ case 47:
130
+ this.$ = { stmt: "state", id: r[c - 2].trim(), classes: [r[c].trim()], type: "default", description: "" };
131
+ break;
132
+ }
133
+ }, "anonymous"),
134
+ table: [{ 3: 1, 4: t, 5: s, 6: a }, { 1: [3] }, { 3: 5, 4: t, 5: s, 6: a }, { 3: 6, 4: t, 5: s, 6: a }, e([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], i, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: l, 5: d, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: S, 17: p, 19: T, 22: _, 24: m, 25: k, 26: A, 27: $, 28: x, 29: R, 32: 25, 33: u, 35: L, 37: I, 38: N, 41: G, 45: P, 48: B, 51: at, 52: nt, 53: ot, 54: lt, 57: W }, e(y, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: S, 17: p, 19: T, 22: _, 24: m, 25: k, 26: A, 27: $, 28: x, 29: R, 32: 25, 33: u, 35: L, 37: I, 38: N, 41: G, 45: P, 48: B, 51: at, 52: nt, 53: ot, 54: lt, 57: W }, e(y, [2, 7]), e(y, [2, 8]), e(y, [2, 9]), e(y, [2, 10]), e(y, [2, 11]), e(y, [2, 12], { 14: [1, 40], 15: [1, 41] }), e(y, [2, 16]), { 18: [1, 42] }, e(y, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, e(y, [2, 22]), e(y, [2, 23]), e(y, [2, 24]), e(y, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, e(y, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, e(y, [2, 31]), { 13: 51, 24: m, 57: W }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, e(ct, [2, 44], { 58: [1, 56] }), e(ct, [2, 45], { 58: [1, 57] }), e(y, [2, 38]), e(y, [2, 39]), e(y, [2, 40]), e(y, [2, 41]), e(y, [2, 6]), e(y, [2, 13]), { 13: 58, 24: m, 57: W }, e(y, [2, 17]), e(xt, i, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, e(y, [2, 29]), e(y, [2, 30]), { 39: [1, 63], 40: [1, 64] }, { 43: [1, 65] }, { 43: [1, 66] }, { 47: [1, 67] }, { 50: [1, 68] }, { 24: [1, 69] }, { 24: [1, 70] }, e(y, [2, 14], { 14: [1, 71] }), { 4: l, 5: d, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: S, 17: p, 19: T, 21: [1, 72], 22: _, 24: m, 25: k, 26: A, 27: $, 28: x, 29: R, 32: 25, 33: u, 35: L, 37: I, 38: N, 41: G, 45: P, 48: B, 51: at, 52: nt, 53: ot, 54: lt, 57: W }, e(y, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, e(y, [2, 34]), e(y, [2, 35]), e(y, [2, 36]), e(y, [2, 37]), e(ct, [2, 46]), e(ct, [2, 47]), e(y, [2, 15]), e(y, [2, 19]), e(xt, i, { 7: 78 }), e(y, [2, 26]), e(y, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: l, 5: d, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: S, 17: p, 19: T, 21: [1, 81], 22: _, 24: m, 25: k, 26: A, 27: $, 28: x, 29: R, 32: 25, 33: u, 35: L, 37: I, 38: N, 41: G, 45: P, 48: B, 51: at, 52: nt, 53: ot, 54: lt, 57: W }, e(y, [2, 32]), e(y, [2, 33]), e(y, [2, 21])],
135
+ defaultActions: { 5: [2, 1], 6: [2, 2], 47: [2, 48], 48: [2, 49] },
136
+ parseError: /* @__PURE__ */ f(function(o, h) {
137
+ if (h.recoverable)
138
+ this.trace(o);
139
+ else {
140
+ var n = new Error(o);
141
+ throw n.hash = h, n;
142
+ }
143
+ }, "parseError"),
144
+ parse: /* @__PURE__ */ f(function(o) {
145
+ var h = this, n = [0], g = [], E = [null], r = [], Z = this.table, c = "", U = 0, K = 0, ut = 2, tt = 1, Tt = r.slice.call(arguments, 1), b = Object.create(this.lexer), j = { yy: {} };
146
+ for (var Et in this.yy)
147
+ Object.prototype.hasOwnProperty.call(this.yy, Et) && (j.yy[Et] = this.yy[Et]);
148
+ b.setInput(o, j.yy), j.yy.lexer = b, j.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
149
+ var _t = b.yylloc;
150
+ r.push(_t);
151
+ var Qt = b.options && b.options.ranges;
152
+ typeof j.yy.parseError == "function" ? this.parseError = j.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
153
+ function Zt(O) {
154
+ n.length = n.length - 2 * O, E.length = E.length - O, r.length = r.length - O;
155
+ }
156
+ f(Zt, "popStack");
157
+ function Lt() {
158
+ var O;
159
+ return O = g.pop() || b.lex() || tt, typeof O != "number" && (O instanceof Array && (g = O, O = g.pop()), O = h.symbols_[O] || O), O;
160
+ }
161
+ f(Lt, "lex");
162
+ for (var C, H, w, mt, X = {}, dt, Y, Ot, ft; ; ) {
163
+ if (H = n[n.length - 1], this.defaultActions[H] ? w = this.defaultActions[H] : ((C === null || typeof C > "u") && (C = Lt()), w = Z[H] && Z[H][C]), typeof w > "u" || !w.length || !w[0]) {
164
+ var Dt = "";
165
+ ft = [];
166
+ for (dt in Z[H])
167
+ this.terminals_[dt] && dt > ut && ft.push("'" + this.terminals_[dt] + "'");
168
+ b.showPosition ? Dt = "Parse error on line " + (U + 1) + `:
169
+ ` + b.showPosition() + `
170
+ Expecting ` + ft.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : Dt = "Parse error on line " + (U + 1) + ": Unexpected " + (C == tt ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(Dt, {
171
+ text: b.match,
172
+ token: this.terminals_[C] || C,
173
+ line: b.yylineno,
174
+ loc: _t,
175
+ expected: ft
176
+ });
177
+ }
178
+ if (w[0] instanceof Array && w.length > 1)
179
+ throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + C);
180
+ switch (w[0]) {
181
+ case 1:
182
+ n.push(C), E.push(b.yytext), r.push(b.yylloc), n.push(w[1]), C = null, K = b.yyleng, c = b.yytext, U = b.yylineno, _t = b.yylloc;
183
+ break;
184
+ case 2:
185
+ if (Y = this.productions_[w[1]][1], X.$ = E[E.length - Y], X._$ = {
186
+ first_line: r[r.length - (Y || 1)].first_line,
187
+ last_line: r[r.length - 1].last_line,
188
+ first_column: r[r.length - (Y || 1)].first_column,
189
+ last_column: r[r.length - 1].last_column
190
+ }, Qt && (X._$.range = [
191
+ r[r.length - (Y || 1)].range[0],
192
+ r[r.length - 1].range[1]
193
+ ]), mt = this.performAction.apply(X, [
194
+ c,
195
+ K,
196
+ U,
197
+ j.yy,
198
+ w[1],
199
+ E,
200
+ r
201
+ ].concat(Tt)), typeof mt < "u")
202
+ return mt;
203
+ Y && (n = n.slice(0, -1 * Y * 2), E = E.slice(0, -1 * Y), r = r.slice(0, -1 * Y)), n.push(this.productions_[w[1]][0]), E.push(X.$), r.push(X._$), Ot = Z[n[n.length - 2]][n[n.length - 1]], n.push(Ot);
204
+ break;
205
+ case 3:
206
+ return !0;
207
+ }
208
+ }
209
+ return !0;
210
+ }, "parse")
211
+ }, qt = /* @__PURE__ */ function() {
212
+ var V = {
213
+ EOF: 1,
214
+ parseError: /* @__PURE__ */ f(function(h, n) {
215
+ if (this.yy.parser)
216
+ this.yy.parser.parseError(h, n);
217
+ else
218
+ throw new Error(h);
219
+ }, "parseError"),
220
+ // resets the lexer, sets new input
221
+ setInput: /* @__PURE__ */ f(function(o, h) {
222
+ return this.yy = h || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
223
+ first_line: 1,
224
+ first_column: 0,
225
+ last_line: 1,
226
+ last_column: 0
227
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
228
+ }, "setInput"),
229
+ // consumes and returns one char from the input
230
+ input: /* @__PURE__ */ f(function() {
231
+ var o = this._input[0];
232
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
233
+ var h = o.match(/(?:\r\n?|\n).*/g);
234
+ return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
235
+ }, "input"),
236
+ // unshifts one char (or a string) into the input
237
+ unput: /* @__PURE__ */ f(function(o) {
238
+ var h = o.length, n = o.split(/(?:\r\n?|\n)/g);
239
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
240
+ var g = this.match.split(/(?:\r\n?|\n)/g);
241
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
242
+ var E = this.yylloc.range;
243
+ return this.yylloc = {
244
+ first_line: this.yylloc.first_line,
245
+ last_line: this.yylineno + 1,
246
+ first_column: this.yylloc.first_column,
247
+ last_column: n ? (n.length === g.length ? this.yylloc.first_column : 0) + g[g.length - n.length].length - n[0].length : this.yylloc.first_column - h
248
+ }, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
249
+ }, "unput"),
250
+ // When called from action, caches matched text and appends it on next action
251
+ more: /* @__PURE__ */ f(function() {
252
+ return this._more = !0, this;
253
+ }, "more"),
254
+ // 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.
255
+ reject: /* @__PURE__ */ f(function() {
256
+ if (this.options.backtrack_lexer)
257
+ this._backtrack = !0;
258
+ else
259
+ 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).
260
+ ` + this.showPosition(), {
261
+ text: "",
262
+ token: null,
263
+ line: this.yylineno
264
+ });
265
+ return this;
266
+ }, "reject"),
267
+ // retain first n characters of the match
268
+ less: /* @__PURE__ */ f(function(o) {
269
+ this.unput(this.match.slice(o));
270
+ }, "less"),
271
+ // displays already matched input, i.e. for error messages
272
+ pastInput: /* @__PURE__ */ f(function() {
273
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
274
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
275
+ }, "pastInput"),
276
+ // displays upcoming input, i.e. for error messages
277
+ upcomingInput: /* @__PURE__ */ f(function() {
278
+ var o = this.match;
279
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
280
+ }, "upcomingInput"),
281
+ // displays the character position where the lexing error occurred, i.e. for error messages
282
+ showPosition: /* @__PURE__ */ f(function() {
283
+ var o = this.pastInput(), h = new Array(o.length + 1).join("-");
284
+ return o + this.upcomingInput() + `
285
+ ` + h + "^";
286
+ }, "showPosition"),
287
+ // test the lexed token: return FALSE when not a match, otherwise return token
288
+ test_match: /* @__PURE__ */ f(function(o, h) {
289
+ var n, g, E;
290
+ if (this.options.backtrack_lexer && (E = {
291
+ yylineno: this.yylineno,
292
+ yylloc: {
293
+ first_line: this.yylloc.first_line,
294
+ last_line: this.last_line,
295
+ first_column: this.yylloc.first_column,
296
+ last_column: this.yylloc.last_column
297
+ },
298
+ yytext: this.yytext,
299
+ match: this.match,
300
+ matches: this.matches,
301
+ matched: this.matched,
302
+ yyleng: this.yyleng,
303
+ offset: this.offset,
304
+ _more: this._more,
305
+ _input: this._input,
306
+ yy: this.yy,
307
+ conditionStack: this.conditionStack.slice(0),
308
+ done: this.done
309
+ }, this.options.ranges && (E.yylloc.range = this.yylloc.range.slice(0))), g = o[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
310
+ first_line: this.yylloc.last_line,
311
+ last_line: this.yylineno + 1,
312
+ first_column: this.yylloc.last_column,
313
+ last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
314
+ }, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], n = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
315
+ return n;
316
+ if (this._backtrack) {
317
+ for (var r in E)
318
+ this[r] = E[r];
319
+ return !1;
320
+ }
321
+ return !1;
322
+ }, "test_match"),
323
+ // return next match in input
324
+ next: /* @__PURE__ */ f(function() {
325
+ if (this.done)
326
+ return this.EOF;
327
+ this._input || (this.done = !0);
328
+ var o, h, n, g;
329
+ this._more || (this.yytext = "", this.match = "");
330
+ for (var E = this._currentRules(), r = 0; r < E.length; r++)
331
+ if (n = this._input.match(this.rules[E[r]]), n && (!h || n[0].length > h[0].length)) {
332
+ if (h = n, g = r, this.options.backtrack_lexer) {
333
+ if (o = this.test_match(n, E[r]), o !== !1)
334
+ return o;
335
+ if (this._backtrack) {
336
+ h = !1;
337
+ continue;
338
+ } else
339
+ return !1;
340
+ } else if (!this.options.flex)
341
+ break;
342
+ }
343
+ return h ? (o = this.test_match(h, E[g]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
344
+ ` + this.showPosition(), {
345
+ text: "",
346
+ token: null,
347
+ line: this.yylineno
348
+ });
349
+ }, "next"),
350
+ // return next match that has a token
351
+ lex: /* @__PURE__ */ f(function() {
352
+ var h = this.next();
353
+ return h || this.lex();
354
+ }, "lex"),
355
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
356
+ begin: /* @__PURE__ */ f(function(h) {
357
+ this.conditionStack.push(h);
358
+ }, "begin"),
359
+ // pop the previously active lexer condition state off the condition stack
360
+ popState: /* @__PURE__ */ f(function() {
361
+ var h = this.conditionStack.length - 1;
362
+ return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
363
+ }, "popState"),
364
+ // produce the lexer rule set which is active for the currently active lexer condition state
365
+ _currentRules: /* @__PURE__ */ f(function() {
366
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
367
+ }, "_currentRules"),
368
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
369
+ topState: /* @__PURE__ */ f(function(h) {
370
+ return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
371
+ }, "topState"),
372
+ // alias for begin(condition)
373
+ pushState: /* @__PURE__ */ f(function(h) {
374
+ this.begin(h);
375
+ }, "pushState"),
376
+ // return the number of states currently on the stack
377
+ stateStackSize: /* @__PURE__ */ f(function() {
378
+ return this.conditionStack.length;
379
+ }, "stateStackSize"),
380
+ options: { "case-insensitive": !0 },
381
+ performAction: /* @__PURE__ */ f(function(h, n, g, E) {
382
+ switch (g) {
383
+ case 0:
384
+ return 38;
385
+ case 1:
386
+ return 40;
387
+ case 2:
388
+ return 39;
389
+ case 3:
390
+ return 44;
391
+ case 4:
392
+ return 51;
393
+ case 5:
394
+ return 52;
395
+ case 6:
396
+ return 53;
397
+ case 7:
398
+ return 54;
399
+ case 8:
400
+ break;
401
+ case 9:
402
+ break;
403
+ case 10:
404
+ return 5;
405
+ case 11:
406
+ break;
407
+ case 12:
408
+ break;
409
+ case 13:
410
+ break;
411
+ case 14:
412
+ break;
413
+ case 15:
414
+ return this.pushState("SCALE"), 17;
415
+ case 16:
416
+ return 18;
417
+ case 17:
418
+ this.popState();
419
+ break;
420
+ case 18:
421
+ return this.begin("acc_title"), 33;
422
+ case 19:
423
+ return this.popState(), "acc_title_value";
424
+ case 20:
425
+ return this.begin("acc_descr"), 35;
426
+ case 21:
427
+ return this.popState(), "acc_descr_value";
428
+ case 22:
429
+ this.begin("acc_descr_multiline");
430
+ break;
431
+ case 23:
432
+ this.popState();
433
+ break;
434
+ case 24:
435
+ return "acc_descr_multiline_value";
436
+ case 25:
437
+ return this.pushState("CLASSDEF"), 41;
438
+ case 26:
439
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
440
+ case 27:
441
+ return this.popState(), this.pushState("CLASSDEFID"), 42;
442
+ case 28:
443
+ return this.popState(), 43;
444
+ case 29:
445
+ return this.pushState("CLASS"), 48;
446
+ case 30:
447
+ return this.popState(), this.pushState("CLASS_STYLE"), 49;
448
+ case 31:
449
+ return this.popState(), 50;
450
+ case 32:
451
+ return this.pushState("STYLE"), 45;
452
+ case 33:
453
+ return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
454
+ case 34:
455
+ return this.popState(), 47;
456
+ case 35:
457
+ return this.pushState("SCALE"), 17;
458
+ case 36:
459
+ return 18;
460
+ case 37:
461
+ this.popState();
462
+ break;
463
+ case 38:
464
+ this.pushState("STATE");
465
+ break;
466
+ case 39:
467
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
468
+ case 40:
469
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
470
+ case 41:
471
+ return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
472
+ case 42:
473
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
474
+ case 43:
475
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
476
+ case 44:
477
+ return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
478
+ case 45:
479
+ return 51;
480
+ case 46:
481
+ return 52;
482
+ case 47:
483
+ return 53;
484
+ case 48:
485
+ return 54;
486
+ case 49:
487
+ this.pushState("STATE_STRING");
488
+ break;
489
+ case 50:
490
+ return this.pushState("STATE_ID"), "AS";
491
+ case 51:
492
+ return this.popState(), "ID";
493
+ case 52:
494
+ this.popState();
495
+ break;
496
+ case 53:
497
+ return "STATE_DESCR";
498
+ case 54:
499
+ return 19;
500
+ case 55:
501
+ this.popState();
502
+ break;
503
+ case 56:
504
+ return this.popState(), this.pushState("struct"), 20;
505
+ case 57:
506
+ break;
507
+ case 58:
508
+ return this.popState(), 21;
509
+ case 59:
510
+ break;
511
+ case 60:
512
+ return this.begin("NOTE"), 29;
513
+ case 61:
514
+ return this.popState(), this.pushState("NOTE_ID"), 59;
515
+ case 62:
516
+ return this.popState(), this.pushState("NOTE_ID"), 60;
517
+ case 63:
518
+ this.popState(), this.pushState("FLOATING_NOTE");
519
+ break;
520
+ case 64:
521
+ return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
522
+ case 65:
523
+ break;
524
+ case 66:
525
+ return "NOTE_TEXT";
526
+ case 67:
527
+ return this.popState(), "ID";
528
+ case 68:
529
+ return this.popState(), this.pushState("NOTE_TEXT"), 24;
530
+ case 69:
531
+ return this.popState(), n.yytext = n.yytext.substr(2).trim(), 31;
532
+ case 70:
533
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 31;
534
+ case 71:
535
+ return 6;
536
+ case 72:
537
+ return 6;
538
+ case 73:
539
+ return 16;
540
+ case 74:
541
+ return 57;
542
+ case 75:
543
+ return 24;
544
+ case 76:
545
+ return n.yytext = n.yytext.trim(), 14;
546
+ case 77:
547
+ return 15;
548
+ case 78:
549
+ return 28;
550
+ case 79:
551
+ return 58;
552
+ case 80:
553
+ return 5;
554
+ case 81:
555
+ return "INVALID";
556
+ }
557
+ }, "anonymous"),
558
+ rules: [/^(?:click\b)/i, /^(?:href\b)/i, /^(?:"[^"]*")/i, /^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:style\s+)/i, /^(?:[\w,]+\s+)/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
559
+ conditions: { LINE: { rules: [12, 13], inclusive: !1 }, struct: { rules: [12, 13, 25, 29, 32, 38, 45, 46, 47, 48, 57, 58, 59, 60, 74, 75, 76, 77, 78], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [67], inclusive: !1 }, FLOATING_NOTE: { rules: [64, 65, 66], inclusive: !1 }, NOTE_TEXT: { rules: [69, 70], inclusive: !1 }, NOTE_ID: { rules: [68], inclusive: !1 }, NOTE: { rules: [61, 62, 63], inclusive: !1 }, STYLEDEF_STYLEOPTS: { rules: [], inclusive: !1 }, STYLEDEF_STYLES: { rules: [34], inclusive: !1 }, STYLE_IDS: { rules: [], inclusive: !1 }, STYLE: { rules: [33], inclusive: !1 }, CLASS_STYLE: { rules: [31], inclusive: !1 }, CLASS: { rules: [30], inclusive: !1 }, CLASSDEFID: { rules: [28], inclusive: !1 }, CLASSDEF: { rules: [26, 27], inclusive: !1 }, acc_descr_multiline: { rules: [23, 24], inclusive: !1 }, acc_descr: { rules: [21], inclusive: !1 }, acc_title: { rules: [19], inclusive: !1 }, SCALE: { rules: [16, 17, 36, 37], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [51], inclusive: !1 }, STATE_STRING: { rules: [52, 53], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [12, 13, 39, 40, 41, 42, 43, 44, 49, 50, 54, 55, 56], inclusive: !1 }, ID: { rules: [12, 13], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 20, 22, 25, 29, 32, 35, 38, 56, 60, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81], inclusive: !0 } }
560
+ };
561
+ return V;
562
+ }();
563
+ gt.lexer = qt;
564
+ function ht() {
565
+ this.yy = {};
566
+ }
567
+ return f(ht, "Parser"), ht.prototype = gt, gt.Parser = ht, new ht();
568
+ }();
569
+ vt.parser = vt;
570
+ var Be = vt, de = "TB", Yt = "TB", Rt = "dir", q = "state", J = "root", Ct = "relation", fe = "classDef", pe = "style", Se = "applyClass", it = "default", Gt = "divider", Bt = "fill:none", Vt = "fill: #333", Mt = "c", Ut = "text", jt = "normal", bt = "rect", kt = "rectWithTitle", ye = "stateStart", ge = "stateEnd", It = "divider", Nt = "roundedWithTitle", Te = "note", Ee = "noteGroup", rt = "statediagram", _e = "state", me = `${rt}-${_e}`, Ht = "transition", De = "note", be = "note-edge", ke = `${Ht} ${be}`, ve = `${rt}-${De}`, Ce = "cluster", Ae = `${rt}-${Ce}`, xe = "cluster-alt", Le = `${rt}-${xe}`, zt = "parent", Wt = "note", Oe = "state", At = "----", Re = `${At}${Wt}`, wt = `${At}${zt}`, Kt = /* @__PURE__ */ f((e, t = Yt) => {
571
+ if (!e.doc)
572
+ return t;
573
+ let s = t;
574
+ for (const a of e.doc)
575
+ a.stmt === "dir" && (s = a.value);
576
+ return s;
577
+ }, "getDir"), Ie = /* @__PURE__ */ f(function(e, t) {
578
+ return t.db.getClasses();
579
+ }, "getClasses"), Ne = /* @__PURE__ */ f(async function(e, t, s, a) {
580
+ D.info("REF0:"), D.info("Drawing state diagram (v2)", t);
581
+ const { securityLevel: i, state: l, layout: d } = F();
582
+ a.db.extract(a.db.getRootDocV2());
583
+ const S = a.db.getData(), p = te(t, i);
584
+ S.type = a.type, S.layoutAlgorithm = d, S.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 50, S.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 50, S.markers = ["barb"], S.diagramId = t, await he(S, p);
585
+ const T = 8;
586
+ try {
587
+ (typeof a.db.getLinks == "function" ? a.db.getLinks() : /* @__PURE__ */ new Map()).forEach((m, k) => {
588
+ var I;
589
+ const A = typeof k == "string" ? k : typeof (k == null ? void 0 : k.id) == "string" ? k.id : "";
590
+ if (!A) {
591
+ D.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(k));
592
+ return;
593
+ }
594
+ const $ = (I = p.node()) == null ? void 0 : I.querySelectorAll("g");
595
+ let x;
596
+ if ($ == null || $.forEach((N) => {
597
+ var P;
598
+ ((P = N.textContent) == null ? void 0 : P.trim()) === A && (x = N);
599
+ }), !x) {
600
+ D.warn("⚠️ Could not find node matching text:", A);
601
+ return;
602
+ }
603
+ const R = x.parentNode;
604
+ if (!R) {
605
+ D.warn("⚠️ Node has no parent, cannot wrap:", A);
606
+ return;
607
+ }
608
+ const u = document.createElementNS("http://www.w3.org/2000/svg", "a"), L = m.url.replace(/^"+|"+$/g, "");
609
+ if (u.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", L), u.setAttribute("target", "_blank"), m.tooltip) {
610
+ const N = m.tooltip.replace(/^"+|"+$/g, "");
611
+ u.setAttribute("title", N);
612
+ }
613
+ R.replaceChild(u, x), u.appendChild(x), D.info("🔗 Wrapped node in <a> tag for:", A, m.url);
614
+ });
615
+ } catch (_) {
616
+ D.error("❌ Error injecting clickable links:", _);
617
+ }
618
+ ue.insertTitle(
619
+ p,
620
+ "statediagramTitleText",
621
+ (l == null ? void 0 : l.titleTopMargin) ?? 25,
622
+ a.db.getDiagramTitle()
623
+ ), ee(p, T, rt, (l == null ? void 0 : l.useMaxWidth) ?? !0);
624
+ }, "draw"), Ve = {
625
+ getClasses: Ie,
626
+ draw: Ne,
627
+ getDir: Kt
628
+ }, St = /* @__PURE__ */ new Map(), M = 0;
629
+ function yt(e = "", t = 0, s = "", a = At) {
630
+ const i = s !== null && s.length > 0 ? `${a}${s}` : "";
631
+ return `${Oe}-${e}${i}-${t}`;
632
+ }
633
+ f(yt, "stateDomId");
634
+ var we = /* @__PURE__ */ f((e, t, s, a, i, l, d, S) => {
635
+ D.trace("items", t), t.forEach((p) => {
636
+ switch (p.stmt) {
637
+ case q:
638
+ st(e, p, s, a, i, l, d, S);
639
+ break;
640
+ case it:
641
+ st(e, p, s, a, i, l, d, S);
642
+ break;
643
+ case Ct:
644
+ {
645
+ st(
646
+ e,
647
+ p.state1,
648
+ s,
649
+ a,
650
+ i,
651
+ l,
652
+ d,
653
+ S
654
+ ), st(
655
+ e,
656
+ p.state2,
657
+ s,
658
+ a,
659
+ i,
660
+ l,
661
+ d,
662
+ S
663
+ );
664
+ const T = {
665
+ id: "edge" + M,
666
+ start: p.state1.id,
667
+ end: p.state2.id,
668
+ arrowhead: "normal",
669
+ arrowTypeEnd: "arrow_barb",
670
+ style: Bt,
671
+ labelStyle: "",
672
+ label: z.sanitizeText(p.description ?? "", F()),
673
+ arrowheadStyle: Vt,
674
+ labelpos: Mt,
675
+ labelType: Ut,
676
+ thickness: jt,
677
+ classes: Ht,
678
+ look: d
679
+ };
680
+ i.push(T), M++;
681
+ }
682
+ break;
683
+ }
684
+ });
685
+ }, "setupDoc"), $t = /* @__PURE__ */ f((e, t = Yt) => {
686
+ let s = t;
687
+ if (e.doc)
688
+ for (const a of e.doc)
689
+ a.stmt === "dir" && (s = a.value);
690
+ return s;
691
+ }, "getDir");
692
+ function et(e, t, s) {
693
+ if (!t.id || t.id === "</join></fork>" || t.id === "</choice>")
694
+ return;
695
+ t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((i) => {
696
+ const l = s.get(i);
697
+ l && (t.cssCompiledStyles = [...t.cssCompiledStyles ?? [], ...l.styles]);
698
+ }));
699
+ const a = e.find((i) => i.id === t.id);
700
+ a ? Object.assign(a, t) : e.push(t);
701
+ }
702
+ f(et, "insertOrUpdateNode");
703
+ function Xt(e) {
704
+ var t;
705
+ return ((t = e == null ? void 0 : e.classes) == null ? void 0 : t.join(" ")) ?? "";
706
+ }
707
+ f(Xt, "getClassesFromDbInfo");
708
+ function Jt(e) {
709
+ return (e == null ? void 0 : e.styles) ?? [];
710
+ }
711
+ f(Jt, "getStylesFromDbInfo");
712
+ var st = /* @__PURE__ */ f((e, t, s, a, i, l, d, S) => {
713
+ var A, $, x;
714
+ const p = t.id, T = s.get(p), _ = Xt(T), m = Jt(T), k = F();
715
+ if (D.info("dataFetcher parsedItem", t, T, m), p !== "root") {
716
+ let R = bt;
717
+ t.start === !0 ? R = ye : t.start === !1 && (R = ge), t.type !== it && (R = t.type), St.get(p) || St.set(p, {
718
+ id: p,
719
+ shape: R,
720
+ description: z.sanitizeText(p, k),
721
+ cssClasses: `${_} ${me}`,
722
+ cssStyles: m
723
+ });
724
+ const u = St.get(p);
725
+ t.description && (Array.isArray(u.description) ? (u.shape = kt, u.description.push(t.description)) : (A = u.description) != null && A.length && u.description.length > 0 ? (u.shape = kt, u.description === p ? u.description = [t.description] : u.description = [u.description, t.description]) : (u.shape = bt, u.description = t.description), u.description = z.sanitizeTextOrArray(u.description, k)), (($ = u.description) == null ? void 0 : $.length) === 1 && u.shape === kt && (u.type === "group" ? u.shape = Nt : u.shape = bt), !u.type && t.doc && (D.info("Setting cluster for XCX", p, $t(t)), u.type = "group", u.isGroup = !0, u.dir = $t(t), u.shape = t.type === Gt ? It : Nt, u.cssClasses = `${u.cssClasses} ${Ae} ${l ? Le : ""}`);
726
+ const L = {
727
+ labelStyle: "",
728
+ shape: u.shape,
729
+ label: u.description,
730
+ cssClasses: u.cssClasses,
731
+ cssCompiledStyles: [],
732
+ cssStyles: u.cssStyles,
733
+ id: p,
734
+ dir: u.dir,
735
+ domId: yt(p, M),
736
+ type: u.type,
737
+ isGroup: u.type === "group",
738
+ padding: 8,
739
+ rx: 10,
740
+ ry: 10,
741
+ look: d
742
+ };
743
+ if (L.shape === It && (L.label = ""), e && e.id !== "root" && (D.trace("Setting node ", p, " to be child of its parent ", e.id), L.parentId = e.id), L.centerLabel = !0, t.note) {
744
+ const I = {
745
+ labelStyle: "",
746
+ shape: Te,
747
+ label: t.note.text,
748
+ cssClasses: ve,
749
+ // useHtmlLabels: false,
750
+ cssStyles: [],
751
+ cssCompiledStyles: [],
752
+ id: p + Re + "-" + M,
753
+ domId: yt(p, M, Wt),
754
+ type: u.type,
755
+ isGroup: u.type === "group",
756
+ padding: (x = k.flowchart) == null ? void 0 : x.padding,
757
+ look: d,
758
+ position: t.note.position
759
+ }, N = p + wt, G = {
760
+ labelStyle: "",
761
+ shape: Ee,
762
+ label: t.note.text,
763
+ cssClasses: u.cssClasses,
764
+ cssStyles: [],
765
+ id: p + wt,
766
+ domId: yt(p, M, zt),
767
+ type: "group",
768
+ isGroup: !0,
769
+ padding: 16,
770
+ //getConfig().flowchart.padding
771
+ look: d,
772
+ position: t.note.position
773
+ };
774
+ M++, G.id = N, I.parentId = N, et(a, G, S), et(a, I, S), et(a, L, S);
775
+ let P = p, B = I.id;
776
+ t.note.position === "left of" && (P = I.id, B = p), i.push({
777
+ id: P + "-" + B,
778
+ start: P,
779
+ end: B,
780
+ arrowhead: "none",
781
+ arrowTypeEnd: "",
782
+ style: Bt,
783
+ labelStyle: "",
784
+ classes: ke,
785
+ arrowheadStyle: Vt,
786
+ labelpos: Mt,
787
+ labelType: Ut,
788
+ thickness: jt,
789
+ look: d
790
+ });
791
+ } else
792
+ et(a, L, S);
793
+ }
794
+ t.doc && (D.trace("Adding nodes children "), we(t, t.doc, s, a, i, !l, d, S));
795
+ }, "dataFetcher"), $e = /* @__PURE__ */ f(() => {
796
+ St.clear(), M = 0;
797
+ }, "reset"), v = {
798
+ START_NODE: "[*]",
799
+ START_TYPE: "start",
800
+ END_NODE: "[*]",
801
+ END_TYPE: "end",
802
+ COLOR_KEYWORD: "color",
803
+ FILL_KEYWORD: "fill",
804
+ BG_FILL: "bgFill",
805
+ STYLECLASS_SEP: ","
806
+ }, Pt = /* @__PURE__ */ f(() => /* @__PURE__ */ new Map(), "newClassesList"), Ft = /* @__PURE__ */ f(() => ({
807
+ relations: [],
808
+ states: /* @__PURE__ */ new Map(),
809
+ documents: {}
810
+ }), "newDoc"), pt = /* @__PURE__ */ f((e) => JSON.parse(JSON.stringify(e)), "clone"), Q, Me = (Q = class {
811
+ constructor(t) {
812
+ this.version = t, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = Pt(), this.documents = { root: Ft() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = se, this.setAccTitle = ie, this.getAccDescription = re, this.setAccDescription = ae, this.setDiagramTitle = ne, this.getDiagramTitle = oe, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
813
+ }
814
+ /**
815
+ * Convert all of the statements (stmts) that were parsed into states and relationships.
816
+ * This is done because a state diagram may have nested sections,
817
+ * where each section is a 'document' and has its own set of statements.
818
+ * Ex: the section within a fork has its own statements, and incoming and outgoing statements
819
+ * refer to the fork as a whole (document).
820
+ * See the parser grammar: the definition of a document is a document then a 'line', where a line can be a statement.
821
+ * This will push the statement into the list of statements for the current document.
822
+ */
823
+ extract(t) {
824
+ this.clear(!0);
825
+ for (const i of Array.isArray(t) ? t : t.doc)
826
+ switch (i.stmt) {
827
+ case q:
828
+ this.addState(i.id.trim(), i.type, i.doc, i.description, i.note);
829
+ break;
830
+ case Ct:
831
+ this.addRelation(i.state1, i.state2, i.description);
832
+ break;
833
+ case fe:
834
+ this.addStyleClass(i.id.trim(), i.classes);
835
+ break;
836
+ case pe:
837
+ this.handleStyleDef(i);
838
+ break;
839
+ case Se:
840
+ this.setCssClass(i.id.trim(), i.styleClass);
841
+ break;
842
+ case "click":
843
+ this.addLink(i.id, i.url, i.tooltip);
844
+ break;
845
+ }
846
+ const s = this.getStates(), a = F();
847
+ $e(), st(
848
+ void 0,
849
+ this.getRootDocV2(),
850
+ s,
851
+ this.nodes,
852
+ this.edges,
853
+ !0,
854
+ a.look,
855
+ this.classes
856
+ );
857
+ for (const i of this.nodes)
858
+ if (Array.isArray(i.label)) {
859
+ if (i.description = i.label.slice(1), i.isGroup && i.description.length > 0)
860
+ throw new Error(
861
+ `Group nodes can only have label. Remove the additional description for node [${i.id}]`
862
+ );
863
+ i.label = i.label[0];
864
+ }
865
+ }
866
+ handleStyleDef(t) {
867
+ const s = t.id.trim().split(","), a = t.styleClass.split(",");
868
+ for (const i of s) {
869
+ let l = this.getState(i);
870
+ if (!l) {
871
+ const d = i.trim();
872
+ this.addState(d), l = this.getState(d);
873
+ }
874
+ l && (l.styles = a.map((d) => {
875
+ var S;
876
+ return (S = d.replace(/;/g, "")) == null ? void 0 : S.trim();
877
+ }));
878
+ }
879
+ }
880
+ setRootDoc(t) {
881
+ D.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
882
+ }
883
+ docTranslator(t, s, a) {
884
+ if (s.stmt === Ct) {
885
+ this.docTranslator(t, s.state1, !0), this.docTranslator(t, s.state2, !1);
886
+ return;
887
+ }
888
+ if (s.stmt === q && (s.id === v.START_NODE ? (s.id = t.id + (a ? "_start" : "_end"), s.start = a) : s.id = s.id.trim()), s.stmt !== J && s.stmt !== q || !s.doc)
889
+ return;
890
+ const i = [];
891
+ let l = [];
892
+ for (const d of s.doc)
893
+ if (d.type === Gt) {
894
+ const S = pt(d);
895
+ S.doc = pt(l), i.push(S), l = [];
896
+ } else
897
+ l.push(d);
898
+ if (i.length > 0 && l.length > 0) {
899
+ const d = {
900
+ stmt: q,
901
+ id: le(),
902
+ type: "divider",
903
+ doc: pt(l)
904
+ };
905
+ i.push(pt(d)), s.doc = i;
906
+ }
907
+ s.doc.forEach((d) => this.docTranslator(s, d, !0));
908
+ }
909
+ getRootDocV2() {
910
+ return this.docTranslator(
911
+ { id: J, stmt: J },
912
+ { id: J, stmt: J, doc: this.rootDoc },
913
+ !0
914
+ ), { id: J, doc: this.rootDoc };
915
+ }
916
+ /**
917
+ * Function called by parser when a node definition has been found.
918
+ *
919
+ * @param descr - description for the state. Can be a string or a list or strings
920
+ * @param classes - class styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 class, convert it to an array of that 1 class.
921
+ * @param styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style.
922
+ * @param textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style.
923
+ */
924
+ addState(t, s = it, a = void 0, i = void 0, l = void 0, d = void 0, S = void 0, p = void 0) {
925
+ const T = t == null ? void 0 : t.trim();
926
+ if (!this.currentDocument.states.has(T))
927
+ D.info("Adding state ", T, i), this.currentDocument.states.set(T, {
928
+ stmt: q,
929
+ id: T,
930
+ descriptions: [],
931
+ type: s,
932
+ doc: a,
933
+ note: l,
934
+ classes: [],
935
+ styles: [],
936
+ textStyles: []
937
+ });
938
+ else {
939
+ const _ = this.currentDocument.states.get(T);
940
+ if (!_)
941
+ throw new Error(`State not found: ${T}`);
942
+ _.doc || (_.doc = a), _.type || (_.type = s);
943
+ }
944
+ if (i && (D.info("Setting state description", T, i), (Array.isArray(i) ? i : [i]).forEach((m) => this.addDescription(T, m.trim()))), l) {
945
+ const _ = this.currentDocument.states.get(T);
946
+ if (!_)
947
+ throw new Error(`State not found: ${T}`);
948
+ _.note = l, _.note.text = z.sanitizeText(_.note.text, F());
949
+ }
950
+ d && (D.info("Setting state classes", T, d), (Array.isArray(d) ? d : [d]).forEach((m) => this.setCssClass(T, m.trim()))), S && (D.info("Setting state styles", T, S), (Array.isArray(S) ? S : [S]).forEach((m) => this.setStyle(T, m.trim()))), p && (D.info("Setting state styles", T, S), (Array.isArray(p) ? p : [p]).forEach((m) => this.setTextStyle(T, m.trim())));
951
+ }
952
+ clear(t) {
953
+ this.nodes = [], this.edges = [], this.documents = { root: Ft() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Pt(), t || (this.links = /* @__PURE__ */ new Map(), ce());
954
+ }
955
+ getState(t) {
956
+ return this.currentDocument.states.get(t);
957
+ }
958
+ getStates() {
959
+ return this.currentDocument.states;
960
+ }
961
+ logDocuments() {
962
+ D.info("Documents = ", this.documents);
963
+ }
964
+ getRelations() {
965
+ return this.currentDocument.relations;
966
+ }
967
+ /**
968
+ * Adds a clickable link to a state.
969
+ */
970
+ addLink(t, s, a) {
971
+ this.links.set(t, { url: s, tooltip: a }), D.warn("Adding link", t, s, a);
972
+ }
973
+ /**
974
+ * Get all registered links.
975
+ */
976
+ getLinks() {
977
+ return this.links;
978
+ }
979
+ /**
980
+ * If the id is a start node ( [*] ), then return a new id constructed from
981
+ * the start node name and the current start node count.
982
+ * else return the given id
983
+ */
984
+ startIdIfNeeded(t = "") {
985
+ return t === v.START_NODE ? (this.startEndCount++, `${v.START_TYPE}${this.startEndCount}`) : t;
986
+ }
987
+ /**
988
+ * If the id is a start node ( [*] ), then return the start type ('start')
989
+ * else return the given type
990
+ */
991
+ startTypeIfNeeded(t = "", s = it) {
992
+ return t === v.START_NODE ? v.START_TYPE : s;
993
+ }
994
+ /**
995
+ * If the id is an end node ( [*] ), then return a new id constructed from
996
+ * the end node name and the current start_end node count.
997
+ * else return the given id
998
+ */
999
+ endIdIfNeeded(t = "") {
1000
+ return t === v.END_NODE ? (this.startEndCount++, `${v.END_TYPE}${this.startEndCount}`) : t;
1001
+ }
1002
+ /**
1003
+ * If the id is an end node ( [*] ), then return the end type
1004
+ * else return the given type
1005
+ *
1006
+ */
1007
+ endTypeIfNeeded(t = "", s = it) {
1008
+ return t === v.END_NODE ? v.END_TYPE : s;
1009
+ }
1010
+ addRelationObjs(t, s, a = "") {
1011
+ const i = this.startIdIfNeeded(t.id.trim()), l = this.startTypeIfNeeded(t.id.trim(), t.type), d = this.startIdIfNeeded(s.id.trim()), S = this.startTypeIfNeeded(s.id.trim(), s.type);
1012
+ this.addState(
1013
+ i,
1014
+ l,
1015
+ t.doc,
1016
+ t.description,
1017
+ t.note,
1018
+ t.classes,
1019
+ t.styles,
1020
+ t.textStyles
1021
+ ), this.addState(
1022
+ d,
1023
+ S,
1024
+ s.doc,
1025
+ s.description,
1026
+ s.note,
1027
+ s.classes,
1028
+ s.styles,
1029
+ s.textStyles
1030
+ ), this.currentDocument.relations.push({
1031
+ id1: i,
1032
+ id2: d,
1033
+ relationTitle: z.sanitizeText(a, F())
1034
+ });
1035
+ }
1036
+ /**
1037
+ * Add a relation between two items. The items may be full objects or just the string id of a state.
1038
+ */
1039
+ addRelation(t, s, a) {
1040
+ if (typeof t == "object" && typeof s == "object")
1041
+ this.addRelationObjs(t, s, a);
1042
+ else if (typeof t == "string" && typeof s == "string") {
1043
+ const i = this.startIdIfNeeded(t.trim()), l = this.startTypeIfNeeded(t), d = this.endIdIfNeeded(s.trim()), S = this.endTypeIfNeeded(s);
1044
+ this.addState(i, l), this.addState(d, S), this.currentDocument.relations.push({
1045
+ id1: i,
1046
+ id2: d,
1047
+ relationTitle: a ? z.sanitizeText(a, F()) : void 0
1048
+ });
1049
+ }
1050
+ }
1051
+ addDescription(t, s) {
1052
+ var l;
1053
+ const a = this.currentDocument.states.get(t), i = s.startsWith(":") ? s.replace(":", "").trim() : s;
1054
+ (l = a == null ? void 0 : a.descriptions) == null || l.push(z.sanitizeText(i, F()));
1055
+ }
1056
+ cleanupLabel(t) {
1057
+ return t.startsWith(":") ? t.slice(2).trim() : t.trim();
1058
+ }
1059
+ getDividerId() {
1060
+ return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1061
+ }
1062
+ /**
1063
+ * Called when the parser comes across a (style) class definition
1064
+ * @example classDef my-style fill:#f96;
1065
+ *
1066
+ * @param id - the id of this (style) class
1067
+ * @param styleAttributes - the string with 1 or more style attributes (each separated by a comma)
1068
+ */
1069
+ addStyleClass(t, s = "") {
1070
+ this.classes.has(t) || this.classes.set(t, { id: t, styles: [], textStyles: [] });
1071
+ const a = this.classes.get(t);
1072
+ s && a && s.split(v.STYLECLASS_SEP).forEach((i) => {
1073
+ const l = i.replace(/([^;]*);/, "$1").trim();
1074
+ if (RegExp(v.COLOR_KEYWORD).exec(i)) {
1075
+ const S = l.replace(v.FILL_KEYWORD, v.BG_FILL).replace(v.COLOR_KEYWORD, v.FILL_KEYWORD);
1076
+ a.textStyles.push(S);
1077
+ }
1078
+ a.styles.push(l);
1079
+ });
1080
+ }
1081
+ getClasses() {
1082
+ return this.classes;
1083
+ }
1084
+ /**
1085
+ * Add a (style) class or css class to a state with the given id.
1086
+ * If the state isn't already in the list of known states, add it.
1087
+ * Might be called by parser when a style class or CSS class should be applied to a state
1088
+ *
1089
+ * @param itemIds - The id or a list of ids of the item(s) to apply the css class to
1090
+ * @param cssClassName - CSS class name
1091
+ */
1092
+ setCssClass(t, s) {
1093
+ t.split(",").forEach((a) => {
1094
+ var l;
1095
+ let i = this.getState(a);
1096
+ if (!i) {
1097
+ const d = a.trim();
1098
+ this.addState(d), i = this.getState(d);
1099
+ }
1100
+ (l = i == null ? void 0 : i.classes) == null || l.push(s);
1101
+ });
1102
+ }
1103
+ /**
1104
+ * Add a style to a state with the given id.
1105
+ * @example style stateId fill:#f9f,stroke:#333,stroke-width:4px
1106
+ * where 'style' is the keyword
1107
+ * stateId is the id of a state
1108
+ * the rest of the string is the styleText (all of the attributes to be applied to the state)
1109
+ *
1110
+ * @param itemId - The id of item to apply the style to
1111
+ * @param styleText - the text of the attributes for the style
1112
+ */
1113
+ setStyle(t, s) {
1114
+ var a, i;
1115
+ (i = (a = this.getState(t)) == null ? void 0 : a.styles) == null || i.push(s);
1116
+ }
1117
+ /**
1118
+ * Add a text style to a state with the given id
1119
+ *
1120
+ * @param itemId - The id of item to apply the css class to
1121
+ * @param cssClassName - CSS class name
1122
+ */
1123
+ setTextStyle(t, s) {
1124
+ var a, i;
1125
+ (i = (a = this.getState(t)) == null ? void 0 : a.textStyles) == null || i.push(s);
1126
+ }
1127
+ /**
1128
+ * Finds the direction statement in the root document.
1129
+ * @returns the direction statement if present
1130
+ */
1131
+ getDirectionStatement() {
1132
+ return this.rootDoc.find((t) => t.stmt === Rt);
1133
+ }
1134
+ getDirection() {
1135
+ var t;
1136
+ return ((t = this.getDirectionStatement()) == null ? void 0 : t.value) ?? de;
1137
+ }
1138
+ setDirection(t) {
1139
+ const s = this.getDirectionStatement();
1140
+ s ? s.value = t : this.rootDoc.unshift({ stmt: Rt, value: t });
1141
+ }
1142
+ trimColon(t) {
1143
+ return t.startsWith(":") ? t.slice(1).trim() : t.trim();
1144
+ }
1145
+ getData() {
1146
+ const t = F();
1147
+ return {
1148
+ nodes: this.nodes,
1149
+ edges: this.edges,
1150
+ other: {},
1151
+ config: t,
1152
+ direction: Kt(this.getRootDocV2())
1153
+ };
1154
+ }
1155
+ getConfig() {
1156
+ return F().state;
1157
+ }
1158
+ }, f(Q, "StateDB"), Q.relationType = {
1159
+ AGGREGATION: 0,
1160
+ EXTENSION: 1,
1161
+ COMPOSITION: 2,
1162
+ DEPENDENCY: 3
1163
+ }, Q), Pe = /* @__PURE__ */ f((e) => `
1164
+ defs #statediagram-barbEnd {
1165
+ fill: ${e.transitionColor};
1166
+ stroke: ${e.transitionColor};
1167
+ }
1168
+ g.stateGroup text {
1169
+ fill: ${e.nodeBorder};
1170
+ stroke: none;
1171
+ font-size: 10px;
1172
+ }
1173
+ g.stateGroup text {
1174
+ fill: ${e.textColor};
1175
+ stroke: none;
1176
+ font-size: 10px;
1177
+
1178
+ }
1179
+ g.stateGroup .state-title {
1180
+ font-weight: bolder;
1181
+ fill: ${e.stateLabelColor};
1182
+ }
1183
+
1184
+ g.stateGroup rect {
1185
+ fill: ${e.mainBkg};
1186
+ stroke: ${e.nodeBorder};
1187
+ }
1188
+
1189
+ g.stateGroup line {
1190
+ stroke: ${e.lineColor};
1191
+ stroke-width: 1;
1192
+ }
1193
+
1194
+ .transition {
1195
+ stroke: ${e.transitionColor};
1196
+ stroke-width: 1;
1197
+ fill: none;
1198
+ }
1199
+
1200
+ .stateGroup .composit {
1201
+ fill: ${e.background};
1202
+ border-bottom: 1px
1203
+ }
1204
+
1205
+ .stateGroup .alt-composit {
1206
+ fill: #e0e0e0;
1207
+ border-bottom: 1px
1208
+ }
1209
+
1210
+ .state-note {
1211
+ stroke: ${e.noteBorderColor};
1212
+ fill: ${e.noteBkgColor};
1213
+
1214
+ text {
1215
+ fill: ${e.noteTextColor};
1216
+ stroke: none;
1217
+ font-size: 10px;
1218
+ }
1219
+ }
1220
+
1221
+ .stateLabel .box {
1222
+ stroke: none;
1223
+ stroke-width: 0;
1224
+ fill: ${e.mainBkg};
1225
+ opacity: 0.5;
1226
+ }
1227
+
1228
+ .edgeLabel .label rect {
1229
+ fill: ${e.labelBackgroundColor};
1230
+ opacity: 0.5;
1231
+ }
1232
+ .edgeLabel {
1233
+ background-color: ${e.edgeLabelBackground};
1234
+ p {
1235
+ background-color: ${e.edgeLabelBackground};
1236
+ }
1237
+ rect {
1238
+ opacity: 0.5;
1239
+ background-color: ${e.edgeLabelBackground};
1240
+ fill: ${e.edgeLabelBackground};
1241
+ }
1242
+ text-align: center;
1243
+ }
1244
+ .edgeLabel .label text {
1245
+ fill: ${e.transitionLabelColor || e.tertiaryTextColor};
1246
+ }
1247
+ .label div .edgeLabel {
1248
+ color: ${e.transitionLabelColor || e.tertiaryTextColor};
1249
+ }
1250
+
1251
+ .stateLabel text {
1252
+ fill: ${e.stateLabelColor};
1253
+ font-size: 10px;
1254
+ font-weight: bold;
1255
+ }
1256
+
1257
+ .node circle.state-start {
1258
+ fill: ${e.specialStateColor};
1259
+ stroke: ${e.specialStateColor};
1260
+ }
1261
+
1262
+ .node .fork-join {
1263
+ fill: ${e.specialStateColor};
1264
+ stroke: ${e.specialStateColor};
1265
+ }
1266
+
1267
+ .node circle.state-end {
1268
+ fill: ${e.innerEndBackground};
1269
+ stroke: ${e.background};
1270
+ stroke-width: 1.5
1271
+ }
1272
+ .end-state-inner {
1273
+ fill: ${e.compositeBackground || e.background};
1274
+ // stroke: ${e.background};
1275
+ stroke-width: 1.5
1276
+ }
1277
+
1278
+ .node rect {
1279
+ fill: ${e.stateBkg || e.mainBkg};
1280
+ stroke: ${e.stateBorder || e.nodeBorder};
1281
+ stroke-width: 1px;
1282
+ }
1283
+ .node polygon {
1284
+ fill: ${e.mainBkg};
1285
+ stroke: ${e.stateBorder || e.nodeBorder};;
1286
+ stroke-width: 1px;
1287
+ }
1288
+ #statediagram-barbEnd {
1289
+ fill: ${e.lineColor};
1290
+ }
1291
+
1292
+ .statediagram-cluster rect {
1293
+ fill: ${e.compositeTitleBackground};
1294
+ stroke: ${e.stateBorder || e.nodeBorder};
1295
+ stroke-width: 1px;
1296
+ }
1297
+
1298
+ .cluster-label, .nodeLabel {
1299
+ color: ${e.stateLabelColor};
1300
+ // line-height: 1;
1301
+ }
1302
+
1303
+ .statediagram-cluster rect.outer {
1304
+ rx: 5px;
1305
+ ry: 5px;
1306
+ }
1307
+ .statediagram-state .divider {
1308
+ stroke: ${e.stateBorder || e.nodeBorder};
1309
+ }
1310
+
1311
+ .statediagram-state .title-state {
1312
+ rx: 5px;
1313
+ ry: 5px;
1314
+ }
1315
+ .statediagram-cluster.statediagram-cluster .inner {
1316
+ fill: ${e.compositeBackground || e.background};
1317
+ }
1318
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1319
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1320
+ }
1321
+
1322
+ .statediagram-cluster .inner {
1323
+ rx:0;
1324
+ ry:0;
1325
+ }
1326
+
1327
+ .statediagram-state rect.basic {
1328
+ rx: 5px;
1329
+ ry: 5px;
1330
+ }
1331
+ .statediagram-state rect.divider {
1332
+ stroke-dasharray: 10,10;
1333
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1334
+ }
1335
+
1336
+ .note-edge {
1337
+ stroke-dasharray: 5;
1338
+ }
1339
+
1340
+ .statediagram-note rect {
1341
+ fill: ${e.noteBkgColor};
1342
+ stroke: ${e.noteBorderColor};
1343
+ stroke-width: 1px;
1344
+ rx: 0;
1345
+ ry: 0;
1346
+ }
1347
+ .statediagram-note rect {
1348
+ fill: ${e.noteBkgColor};
1349
+ stroke: ${e.noteBorderColor};
1350
+ stroke-width: 1px;
1351
+ rx: 0;
1352
+ ry: 0;
1353
+ }
1354
+
1355
+ .statediagram-note text {
1356
+ fill: ${e.noteTextColor};
1357
+ }
1358
+
1359
+ .statediagram-note .nodeLabel {
1360
+ color: ${e.noteTextColor};
1361
+ }
1362
+ .statediagram .edgeLabel {
1363
+ color: red; // ${e.noteTextColor};
1364
+ }
1365
+
1366
+ #dependencyStart, #dependencyEnd {
1367
+ fill: ${e.lineColor};
1368
+ stroke: ${e.lineColor};
1369
+ stroke-width: 1;
1370
+ }
1371
+
1372
+ .statediagramTitleText {
1373
+ text-anchor: middle;
1374
+ font-size: 18px;
1375
+ fill: ${e.textColor};
1376
+ }
1377
+ `, "getStyles"), Ue = Pe;
1378
+ export {
1379
+ Me as S,
1380
+ Ue as a,
1381
+ Ve as b,
1382
+ Be as s
1383
+ };