@foris/ai-agent 0.9.1-beta.2 → 0.9.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) 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 +14 -2779
  5. package/dist/ai-agent.umd.js +3213 -4
  6. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  7. package/dist/angular-html-CHuhdNYa.js +32 -0
  8. package/dist/angular-ts-CkwnAxZa.js +32 -0
  9. package/dist/apache-BUjz-sD2.js +6 -0
  10. package/dist/apex-oLhhs58q.js +6 -0
  11. package/dist/apl-C8FRyJIY.js +24 -0
  12. package/dist/applescript-BPx7YFFu.js +6 -0
  13. package/dist/ara-Z2fSOxSw.js +6 -0
  14. package/dist/arc-BzRDGNYi.js +85 -0
  15. package/dist/architectureDiagram-VXUJARFQ-jlW87y1j.js +4682 -0
  16. package/dist/asciidoc-B-pCoB3G.js +6 -0
  17. package/dist/asm-BTWLY5ym.js +6 -0
  18. package/dist/astro-CAC4-sRr.js +25 -0
  19. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  20. package/dist/awk-Fb0P9dkn.js +6 -0
  21. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  22. package/dist/ballerina-oZK-YekG.js +6 -0
  23. package/dist/bat-0FvbqU9S.js +6 -0
  24. package/dist/beancount-DqJEb89h.js +6 -0
  25. package/dist/berry-DODBq_Ff.js +6 -0
  26. package/dist/bibtex-EULQRLY5.js +6 -0
  27. package/dist/bicep-BorU73w0.js +6 -0
  28. package/dist/blade-Bwl5-ENK.js +27 -0
  29. package/dist/blockDiagram-VD42YOAC-P4woNHAr.js +2415 -0
  30. package/dist/bsl-NkNNwerW.js +8 -0
  31. package/dist/c-eeMepfLm.js +6 -0
  32. package/dist/c4Diagram-YG6GDRKO-CB9WFLmJ.js +1593 -0
  33. package/dist/cadence-02UX7mW8.js +6 -0
  34. package/dist/cairo-Cp116741.js +18 -0
  35. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  36. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  37. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  38. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  39. package/dist/channel-B-TkD8Bv.js +5 -0
  40. package/dist/chunk-4BX2VUAB-DCjARiNr.js +9 -0
  41. package/dist/chunk-55IACEB6-DvmPHLo5.js +8 -0
  42. package/dist/chunk-B4BG7PRW-L08cVxNP.js +1377 -0
  43. package/dist/chunk-DI55MBZ5-zkyTO7pn.js +1383 -0
  44. package/dist/chunk-FMBD7UC4-BkpbM-uP.js +19 -0
  45. package/dist/chunk-QN33PNHL-DSFN3Uoh.js +20 -0
  46. package/dist/chunk-QZHKN3VN-CAgMv7Xo.js +15 -0
  47. package/dist/chunk-TZMSLE5B-B6GY_sBW.js +64 -0
  48. package/dist/clarity-PKm5CwqM.js +6 -0
  49. package/dist/classDiagram-2ON5EDUG-KqDAjO33.js +30 -0
  50. package/dist/classDiagram-v2-WZHVMYZB-KqDAjO33.js +30 -0
  51. package/dist/clojure-CXJfHrL3.js +6 -0
  52. package/dist/cmake-BJz8BOTU.js +6 -0
  53. package/dist/cobol-DNTp9HAy.js +20 -0
  54. package/dist/code-block-QI2IAROF-Culy9AKV.js +2042 -0
  55. package/dist/codeowners-Bt9yU6NX.js +6 -0
  56. package/dist/codeql-DHkodjjI.js +6 -0
  57. package/dist/coffee-BrprHIxF.js +18 -0
  58. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  59. package/dist/coq-B0L9upzn.js +6 -0
  60. package/dist/cose-bilkent-S5V4N54A-DtppvcNV.js +2620 -0
  61. package/dist/cpp-CwJ5QP3s.js +29 -0
  62. package/dist/crystal-DWRgWI1Z.js +24 -0
  63. package/dist/csv-CmYOceLb.js +6 -0
  64. package/dist/cue-ZzumE7IT.js +6 -0
  65. package/dist/cypher-jpdmjtA6.js +6 -0
  66. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  67. package/dist/d-CBagWSwH.js +6 -0
  68. package/dist/dagre-6UL2VRFP-BfvQz4N-.js +459 -0
  69. package/dist/dark-plus-pUHDTVV0.js +4 -0
  70. package/dist/dart-6ObCrKr9.js +6 -0
  71. package/dist/dax-CcDT-8dH.js +6 -0
  72. package/dist/defaultLocale-D1piDxzZ.js +177 -0
  73. package/dist/desktop-B93p9R9O.js +6 -0
  74. package/dist/diagram-PSM6KHXK-ka-cDwC2.js +552 -0
  75. package/dist/diagram-QEK2KX5R-BW-yTygZ.js +232 -0
  76. package/dist/diagram-S2PKOQOG-j24g_p7y.js +154 -0
  77. package/dist/diff-BxzP2J8R.js +6 -0
  78. package/dist/docker-CsHqm9tx.js +6 -0
  79. package/dist/dotenv-BMjVjUL1.js +6 -0
  80. package/dist/dracula-BtZx2Kac.js +4 -0
  81. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  82. package/dist/dream-maker-PAx17jaB.js +6 -0
  83. package/dist/edge-B5_tHZZy.js +21 -0
  84. package/dist/elixir-Dj_1qPNg.js +18 -0
  85. package/dist/elm-DZPAA5Qn.js +9 -0
  86. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  87. package/dist/erDiagram-Q2GNP2WA-BoiJgXhe.js +854 -0
  88. package/dist/erb-DiYOU0he.js +31 -0
  89. package/dist/erlang-CNRRyeIc.js +18 -0
  90. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  91. package/dist/everforest-light-BbXl82Em.js +4 -0
  92. package/dist/fennel-N4WcXuKx.js +6 -0
  93. package/dist/fish-BTDEUgqH.js +6 -0
  94. package/dist/flowDiagram-NV44I4VS-BHGntIlE.js +1639 -0
  95. package/dist/fluent-BMXUxfv1.js +6 -0
  96. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  97. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  98. package/dist/fsharp-yevJ8DSS.js +18 -0
  99. package/dist/ganttDiagram-JELNMOA3-Ce8NwhCP.js +2710 -0
  100. package/dist/gdresource-BwtMIoBm.js +10 -0
  101. package/dist/gdscript-BifyeYhI.js +6 -0
  102. package/dist/gdshader-Bk8fF6yr.js +6 -0
  103. package/dist/genie-DzUvd7U9.js +6 -0
  104. package/dist/gherkin-DHRaV0YP.js +6 -0
  105. package/dist/git-commit-Bd32YZ0K.js +8 -0
  106. package/dist/git-rebase-BWMiWxYf.js +18 -0
  107. package/dist/gitGraphDiagram-NY62KEGX-DxoN7y5T.js +723 -0
  108. package/dist/github-dark-DenFmJkN.js +4 -0
  109. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  110. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  111. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  112. package/dist/github-light-JYsPkUQd.js +4 -0
  113. package/dist/github-light-default-D99KPAby.js +4 -0
  114. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  115. package/dist/gleam-Bv284lvN.js +6 -0
  116. package/dist/glimmer-js-Nc7Kk_CN.js +21 -0
  117. package/dist/glimmer-ts-DLoneyA9.js +21 -0
  118. package/dist/glsl-CkUcVZNK.js +8 -0
  119. package/dist/gnuplot-yPG9-sE_.js +6 -0
  120. package/dist/graph-C-gpLwEq.js +1189 -0
  121. package/dist/graphql-CB9Yiq18.js +23 -0
  122. package/dist/groovy-CJQTphOW.js +6 -0
  123. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  124. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  125. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  126. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  127. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  128. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  129. package/dist/hack-dNZDE7CK.js +19 -0
  130. package/dist/haml-CIHYN_l8.js +19 -0
  131. package/dist/handlebars-5wdAGqTJ.js +21 -0
  132. package/dist/haskell-WeIwNIP6.js +6 -0
  133. package/dist/haxe-TztHsm5T.js +6 -0
  134. package/dist/hcl-D438OF-I.js +6 -0
  135. package/dist/hjson-DYBUbqOl.js +6 -0
  136. package/dist/hlsl-Bk8TCZNL.js +6 -0
  137. package/dist/houston-BDYrDoDW.js +4 -0
  138. package/dist/html-derivative-89LwIO26.js +18 -0
  139. package/dist/http-Dsh8rSJR.js +26 -0
  140. package/dist/hurl-NdmqbL7E.js +26 -0
  141. package/dist/hxml-GbqSQCLa.js +8 -0
  142. package/dist/hy-Brt5EZ7-.js +6 -0
  143. package/dist/imba-CimUv-Uh.js +6 -0
  144. package/dist/index-C3mwt8G1.js +67982 -0
  145. package/dist/infoDiagram-WHAUD3N6-DdxAG2VL.js +35 -0
  146. package/dist/ini-BZIuRIvJ.js +6 -0
  147. package/dist/init-DjUOC4st.js +16 -0
  148. package/dist/java-DY6VlHhP.js +6 -0
  149. package/dist/jinja-BuwNoMI4.js +21 -0
  150. package/dist/jison-_q6rTsMi.js +18 -0
  151. package/dist/journeyDiagram-XKPGCS4Q-CT5Fbg6c.js +848 -0
  152. package/dist/json5-BT4Fjg39.js +6 -0
  153. package/dist/jsonc-CHjZD8gR.js +6 -0
  154. package/dist/jsonl-BGuvDmy9.js +6 -0
  155. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  156. package/dist/jssm-BcADi6EI.js +6 -0
  157. package/dist/jsx-BtKADgXT.js +6 -0
  158. package/dist/julia-BCBeSq7V.js +27 -0
  159. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  160. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  161. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  162. package/dist/kanban-definition-3W4ZIXB7-CxtMdkvq.js +732 -0
  163. package/dist/katex.min-l0sNRNKZ.js +1 -0
  164. package/dist/kdl-BNOv9TC3.js +6 -0
  165. package/dist/kotlin-ByBMgTeR.js +6 -0
  166. package/dist/kusto-VWFLl2T0.js +6 -0
  167. package/dist/laserwave-6a00oqik.js +4 -0
  168. package/dist/latex-DF20280u.js +9 -0
  169. package/dist/layout-D2NtTgFh.js +1730 -0
  170. package/dist/lean-D5yRrexI.js +6 -0
  171. package/dist/less-B1GLI2Di.js +6 -0
  172. package/dist/light-plus-CZuVqSLX.js +4 -0
  173. package/dist/linear-sERCAB61.js +277 -0
  174. package/dist/liquid-CFYzC-s7.js +21 -0
  175. package/dist/llvm-co1rIKs3.js +6 -0
  176. package/dist/log-Al8wyEFV.js +6 -0
  177. package/dist/logo-DBa4JDzV.js +6 -0
  178. package/dist/lua-kX5WP_P5.js +8 -0
  179. package/dist/luau-DtBSxLyz.js +6 -0
  180. package/dist/make-CsMclxtr.js +6 -0
  181. package/dist/marko-OTJE9YCh.js +23 -0
  182. package/dist/material-theme-D6KBX41T.js +4 -0
  183. package/dist/material-theme-darker-CkRroheE.js +4 -0
  184. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  185. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  186. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  187. package/dist/matlab-BOAaUVP0.js +6 -0
  188. package/dist/mdc-tFNBAW39.js +21 -0
  189. package/dist/mdx-BOhZZUJ8.js +6 -0
  190. package/dist/mermaid-B0ixDHKN.js +6 -0
  191. package/dist/mermaid-NA5CF7SZ-620UJKEg.js +14 -0
  192. package/dist/mermaid.core-08D5Vldk.js +14401 -0
  193. package/dist/min-dark-C7ak0t6c.js +4 -0
  194. package/dist/min-light-CKFxVcPp.js +4 -0
  195. package/dist/mindmap-definition-VGOIOE7T-CTZ_Wx0b.js +798 -0
  196. package/dist/mipsasm-CTx18fBl.js +6 -0
  197. package/dist/mojo-BD611d7o.js +6 -0
  198. package/dist/monokai-C1KBYcO0.js +4 -0
  199. package/dist/move-F-dICmj2.js +6 -0
  200. package/dist/narrat-DmhDCBs-.js +6 -0
  201. package/dist/nextflow-DmSVRGjG.js +6 -0
  202. package/dist/nginx-COxS3qoU.js +9 -0
  203. package/dist/night-owl-Bm2rzalh.js +4 -0
  204. package/dist/nim-CZHmlxcO.js +28 -0
  205. package/dist/nix-BZK5F767.js +9 -0
  206. package/dist/nord-CC5OiUXg.js +4 -0
  207. package/dist/nushell-D8j3dhT-.js +6 -0
  208. package/dist/objective-c-Itk8tzmv.js +6 -0
  209. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  210. package/dist/ocaml-eSVK32Eg.js +6 -0
  211. package/dist/openscad-Sp5uZ6f2.js +6 -0
  212. package/dist/ordinal-MUacOSdK.js +65 -0
  213. package/dist/pascal-xy8pJNns.js +6 -0
  214. package/dist/perl-CvmtpKyV.js +24 -0
  215. package/dist/php-B1tFq0rn.js +25 -0
  216. package/dist/pieDiagram-ADFJNKIX-DtleX3ES.js +173 -0
  217. package/dist/pkl-C-zSNmaA.js +6 -0
  218. package/dist/plastic-CSTz3KZp.js +4 -0
  219. package/dist/plsql-pVbGZfOv.js +6 -0
  220. package/dist/po-BNfHvqmm.js +6 -0
  221. package/dist/poimandres-C-VADXHD.js +4 -0
  222. package/dist/polar-CAZahv3u.js +6 -0
  223. package/dist/postcss-05aHdL-n.js +6 -0
  224. package/dist/powerquery-DI9HkTvs.js +6 -0
  225. package/dist/powershell-Clc4ydu-.js +6 -0
  226. package/dist/prisma-FZjmVtSl.js +6 -0
  227. package/dist/prolog-C5-yg4TO.js +6 -0
  228. package/dist/proto-MmCPeFAD.js +6 -0
  229. package/dist/pug-xpTstXA9.js +20 -0
  230. package/dist/puppet-CUJHmnxV.js +6 -0
  231. package/dist/purescript-rUfGld-4.js +6 -0
  232. package/dist/qml-G4_KKZym.js +18 -0
  233. package/dist/qmldir-BInDYbpo.js +6 -0
  234. package/dist/qss-AeJTysr_.js +6 -0
  235. package/dist/quadrantDiagram-AYHSOK5B-D193y_DL.js +1038 -0
  236. package/dist/r-Bm0uF0U2.js +6 -0
  237. package/dist/racket-B83wSAja.js +6 -0
  238. package/dist/raku-nEQ4ZJJ7.js +6 -0
  239. package/dist/razor-BS4LwTsw.js +19 -0
  240. package/dist/red-7y8PH7HH.js +4 -0
  241. package/dist/reg-m_s_Kiip.js +6 -0
  242. package/dist/regexp-BazyLpPg.js +6 -0
  243. package/dist/rel-BcRfyd6Q.js +6 -0
  244. package/dist/requirementDiagram-UZGBJVZJ-DcSe-m6d.js +864 -0
  245. package/dist/riscv-Ce8MAQLP.js +6 -0
  246. package/dist/rose-pine-BKc3yVeu.js +4 -0
  247. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  248. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  249. package/dist/rosmsg-Cz0w1km8.js +6 -0
  250. package/dist/rst-BvkiqG_4.js +39 -0
  251. package/dist/ruby-CSrNBwZK.js +40 -0
  252. package/dist/sankeyDiagram-TZEHDZUN-HpXuokMl.js +838 -0
  253. package/dist/sas-DciBl6hq.js +18 -0
  254. package/dist/sass-DxHp5rTx.js +6 -0
  255. package/dist/scala-D4grkFkl.js +6 -0
  256. package/dist/scheme-BCRWuEm4.js +6 -0
  257. package/dist/scss-Sr5SHsiH.js +18 -0
  258. package/dist/sdbl-B7T8abf4.js +6 -0
  259. package/dist/sequenceDiagram-WL72ISMW-D_5I_YtC.js +2530 -0
  260. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  261. package/dist/shellsession-B0YIY3D-.js +18 -0
  262. package/dist/slack-dark-i7wN4OET.js +4 -0
  263. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  264. package/dist/smalltalk-BlI1_OkM.js +6 -0
  265. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  266. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  267. package/dist/solarized-light-BheCkDPT.js +4 -0
  268. package/dist/solidity-DUWnFhS6.js +6 -0
  269. package/dist/soy-I6L3jl3W.js +18 -0
  270. package/dist/sparql-B0KWFEri.js +8 -0
  271. package/dist/splunk-CRXR8A9s.js +6 -0
  272. package/dist/ssh-config-DP-hNVbF.js +6 -0
  273. package/dist/stata-BNwq7-ev.js +18 -0
  274. package/dist/stateDiagram-FKZM4ZOC-CRSpvNED.js +276 -0
  275. package/dist/stateDiagram-v2-4FDKWEC3-DfUK-Zbc.js +29 -0
  276. package/dist/style.css +1 -1
  277. package/dist/stylus-CyKEU1Ej.js +6 -0
  278. package/dist/svelte-Din0yw3u.js +22 -0
  279. package/dist/swift-9UzSvamq.js +6 -0
  280. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  281. package/dist/system-verilog-BCm7smPJ.js +6 -0
  282. package/dist/systemd-C-4qm6XH.js +6 -0
  283. package/dist/talonscript-CFF3LF_O.js +6 -0
  284. package/dist/tasl-Cg_WBUAe.js +6 -0
  285. package/dist/tcl-DN7buRTF.js +6 -0
  286. package/dist/templ-CBu7yCES.js +20 -0
  287. package/dist/terraform-DGvcn9zM.js +6 -0
  288. package/dist/tex-DpOayVob.js +8 -0
  289. package/dist/timeline-definition-IT6M3QCI-DaJ4iEOK.js +813 -0
  290. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  291. package/dist/treemap-KMMF4GRG-C3Ab2yjL.js +16045 -0
  292. package/dist/ts-tags-3Kvfz4et.js +49 -0
  293. package/dist/tsv-BtvSkaG0.js +6 -0
  294. package/dist/tsx-B8rCNbgL.js +6 -0
  295. package/dist/turtle-_H59FV7D.js +6 -0
  296. package/dist/twig-3l_q-6xZ.js +37 -0
  297. package/dist/typespec-DWqp-kUU.js +6 -0
  298. package/dist/typst-D_1QKWns.js +6 -0
  299. package/dist/v-BPCNiyYe.js +6 -0
  300. package/dist/vala-uxaPR7d1.js +6 -0
  301. package/dist/vb-D8_c5-KN.js +6 -0
  302. package/dist/verilog-B-bybjPF.js +6 -0
  303. package/dist/vesper-BckBta1U.js +4 -0
  304. package/dist/vhdl-CUlNa8ac.js +6 -0
  305. package/dist/viml-DsfA-sWm.js +6 -0
  306. package/dist/vitesse-black-BoGvW84i.js +4 -0
  307. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  308. package/dist/vitesse-light-CcmG315c.js +4 -0
  309. package/dist/vue-BuFQ04-G.js +37 -0
  310. package/dist/vue-html-CyxHqgfT.js +21 -0
  311. package/dist/vue-vine-B_YNGutq.js +30 -0
  312. package/dist/vyper-CPQuu50u.js +6 -0
  313. package/dist/wasm-BBXxrAl7.js +6 -0
  314. package/dist/wasm-DQxwEHae.js +7 -0
  315. package/dist/wenyan-pbVjoM9_.js +6 -0
  316. package/dist/wgsl-DY4iK1q1.js +6 -0
  317. package/dist/wikitext-Z-MoUasO.js +6 -0
  318. package/dist/wit-CQMQOlTg.js +6 -0
  319. package/dist/wolfram-Dz4KXISs.js +6 -0
  320. package/dist/xml-C2J0sS9M.js +8 -0
  321. package/dist/xsl-CbTBIiv3.js +9 -0
  322. package/dist/xychartDiagram-PRI3JC2R-Cf2smXg5.js +1353 -0
  323. package/dist/zenscript-CxBjpf9c.js +6 -0
  324. package/dist/zig-Vm0PO9wB.js +6 -0
  325. package/package.json +25 -25
@@ -0,0 +1,1639 @@
1
+ import { g as q1 } from "./chunk-FMBD7UC4-BkpbM-uP.js";
2
+ import { _ as m, n as O1, l as tt, c as bt, d as St, o as H1, r as X1, u as i1, b as Q1, s as J1, p as Z1, a as $1, g as te, q as ee, k as se, t as ie, J as re, v as ae, x as s1, y as ne, z as ue, A as oe } from "./mermaid.core-08D5Vldk.js";
3
+ import { g as le } from "./chunk-55IACEB6-DvmPHLo5.js";
4
+ import { s as ce } from "./chunk-QN33PNHL-DSFN3Uoh.js";
5
+ import { c as he } from "./channel-B-TkD8Bv.js";
6
+ import "./index-C3mwt8G1.js";
7
+ import "react/jsx-runtime";
8
+ import "react";
9
+ import "class-variance-authority";
10
+ import "clsx";
11
+ import "tailwind-merge";
12
+ import "react-dom";
13
+ import "cmdk";
14
+ import "nanoid";
15
+ import "@foris/avocado-icons";
16
+ import "react-markdown";
17
+ var de = "flowchart-", Ot, pe = (Ot = class {
18
+ // cspell:ignore funs
19
+ constructor() {
20
+ this.vertexCounter = 0, this.config = bt(), this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = Q1, this.setAccDescription = J1, this.setDiagramTitle = Z1, this.getAccTitle = $1, this.getAccDescription = te, this.getDiagramTitle = ee, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = {
21
+ firstGraph: this.firstGraph.bind(this)
22
+ }, this.clear(), this.setGen("gen-2");
23
+ }
24
+ sanitizeText(i) {
25
+ return se.sanitizeText(i, this.config);
26
+ }
27
+ /**
28
+ * Function to lookup domId from id in the graph definition.
29
+ *
30
+ * @param id - id of the node
31
+ */
32
+ lookUpDomId(i) {
33
+ for (const a of this.vertices.values())
34
+ if (a.id === i)
35
+ return a.domId;
36
+ return i;
37
+ }
38
+ /**
39
+ * Function called by parser when a node definition has been found
40
+ */
41
+ addVertex(i, a, n, u, o, f, c = {}, A) {
42
+ var L, C;
43
+ if (!i || i.trim().length === 0)
44
+ return;
45
+ let r;
46
+ if (A !== void 0) {
47
+ let d;
48
+ A.includes(`
49
+ `) ? d = A + `
50
+ ` : d = `{
51
+ ` + A + `
52
+ }`, r = ie(d, { schema: re });
53
+ }
54
+ const k = this.edges.find((d) => d.id === i);
55
+ if (k) {
56
+ const d = r;
57
+ (d == null ? void 0 : d.animate) !== void 0 && (k.animate = d.animate), (d == null ? void 0 : d.animation) !== void 0 && (k.animation = d.animation), (d == null ? void 0 : d.curve) !== void 0 && (k.interpolate = d.curve);
58
+ return;
59
+ }
60
+ let E, b = this.vertices.get(i);
61
+ if (b === void 0 && (b = {
62
+ id: i,
63
+ labelType: "text",
64
+ domId: de + i + "-" + this.vertexCounter,
65
+ styles: [],
66
+ classes: []
67
+ }, this.vertices.set(i, b)), this.vertexCounter++, a !== void 0 ? (this.config = bt(), E = this.sanitizeText(a.text.trim()), b.labelType = a.type, E.startsWith('"') && E.endsWith('"') && (E = E.substring(1, E.length - 1)), b.text = E) : b.text === void 0 && (b.text = i), n !== void 0 && (b.type = n), u != null && u.forEach((d) => {
68
+ b.styles.push(d);
69
+ }), o != null && o.forEach((d) => {
70
+ b.classes.push(d);
71
+ }), f !== void 0 && (b.dir = f), b.props === void 0 ? b.props = c : c !== void 0 && Object.assign(b.props, c), r !== void 0) {
72
+ if (r.shape) {
73
+ if (r.shape !== r.shape.toLowerCase() || r.shape.includes("_"))
74
+ throw new Error(`No such shape: ${r.shape}. Shape names should be lowercase.`);
75
+ if (!ae(r.shape))
76
+ throw new Error(`No such shape: ${r.shape}.`);
77
+ b.type = r == null ? void 0 : r.shape;
78
+ }
79
+ r != null && r.label && (b.text = r == null ? void 0 : r.label), r != null && r.icon && (b.icon = r == null ? void 0 : r.icon, !((L = r.label) != null && L.trim()) && b.text === i && (b.text = "")), r != null && r.form && (b.form = r == null ? void 0 : r.form), r != null && r.pos && (b.pos = r == null ? void 0 : r.pos), r != null && r.img && (b.img = r == null ? void 0 : r.img, !((C = r.label) != null && C.trim()) && b.text === i && (b.text = "")), r != null && r.constraint && (b.constraint = r.constraint), r.w && (b.assetWidth = Number(r.w)), r.h && (b.assetHeight = Number(r.h));
80
+ }
81
+ }
82
+ /**
83
+ * Function called by parser when a link/edge definition has been found
84
+ *
85
+ */
86
+ addSingleLink(i, a, n, u) {
87
+ const c = {
88
+ start: i,
89
+ end: a,
90
+ type: void 0,
91
+ text: "",
92
+ labelType: "text",
93
+ classes: [],
94
+ isUserDefinedId: !1,
95
+ interpolate: this.edges.defaultInterpolate
96
+ };
97
+ tt.info("abc78 Got edge...", c);
98
+ const A = n.text;
99
+ if (A !== void 0 && (c.text = this.sanitizeText(A.text.trim()), c.text.startsWith('"') && c.text.endsWith('"') && (c.text = c.text.substring(1, c.text.length - 1)), c.labelType = A.type), n !== void 0 && (c.type = n.type, c.stroke = n.stroke, c.length = n.length > 10 ? 10 : n.length), u && !this.edges.some((r) => r.id === u))
100
+ c.id = u, c.isUserDefinedId = !0;
101
+ else {
102
+ const r = this.edges.filter((k) => k.start === c.start && k.end === c.end);
103
+ r.length === 0 ? c.id = s1(c.start, c.end, { counter: 0, prefix: "L" }) : c.id = s1(c.start, c.end, {
104
+ counter: r.length + 1,
105
+ prefix: "L"
106
+ });
107
+ }
108
+ if (this.edges.length < (this.config.maxEdges ?? 500))
109
+ tt.info("Pushing edge..."), this.edges.push(c);
110
+ else
111
+ throw new Error(
112
+ `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
113
+
114
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
115
+ You cannot set this config via configuration inside the diagram as it is a secure config.
116
+ You have to call mermaid.initialize.`
117
+ );
118
+ }
119
+ isLinkData(i) {
120
+ return i !== null && typeof i == "object" && "id" in i && typeof i.id == "string";
121
+ }
122
+ addLink(i, a, n) {
123
+ const u = this.isLinkData(n) ? n.id.replace("@", "") : void 0;
124
+ tt.info("addLink", i, a, u);
125
+ for (const o of i)
126
+ for (const f of a) {
127
+ const c = o === i[i.length - 1], A = f === a[0];
128
+ c && A ? this.addSingleLink(o, f, n, u) : this.addSingleLink(o, f, n, void 0);
129
+ }
130
+ }
131
+ /**
132
+ * Updates a link's line interpolation algorithm
133
+ */
134
+ updateLinkInterpolate(i, a) {
135
+ i.forEach((n) => {
136
+ n === "default" ? this.edges.defaultInterpolate = a : this.edges[n].interpolate = a;
137
+ });
138
+ }
139
+ /**
140
+ * Updates a link with a style
141
+ *
142
+ */
143
+ updateLink(i, a) {
144
+ i.forEach((n) => {
145
+ var u, o, f, c, A, r;
146
+ if (typeof n == "number" && n >= this.edges.length)
147
+ throw new Error(
148
+ `The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length - 1}. (Help: Ensure that the index is within the range of existing edges.)`
149
+ );
150
+ n === "default" ? this.edges.defaultStyle = a : (this.edges[n].style = a, (((o = (u = this.edges[n]) == null ? void 0 : u.style) == null ? void 0 : o.length) ?? 0) > 0 && !((c = (f = this.edges[n]) == null ? void 0 : f.style) != null && c.some((k) => k == null ? void 0 : k.startsWith("fill"))) && ((r = (A = this.edges[n]) == null ? void 0 : A.style) == null || r.push("fill:none")));
151
+ });
152
+ }
153
+ addClass(i, a) {
154
+ const n = a.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
155
+ i.split(",").forEach((u) => {
156
+ let o = this.classes.get(u);
157
+ o === void 0 && (o = { id: u, styles: [], textStyles: [] }, this.classes.set(u, o)), n != null && n.forEach((f) => {
158
+ if (/color/.exec(f)) {
159
+ const c = f.replace("fill", "bgFill");
160
+ o.textStyles.push(c);
161
+ }
162
+ o.styles.push(f);
163
+ });
164
+ });
165
+ }
166
+ /**
167
+ * Called by parser when a graph definition is found, stores the direction of the chart.
168
+ *
169
+ */
170
+ setDirection(i) {
171
+ this.direction = i.trim(), /.*</.exec(this.direction) && (this.direction = "RL"), /.*\^/.exec(this.direction) && (this.direction = "BT"), /.*>/.exec(this.direction) && (this.direction = "LR"), /.*v/.exec(this.direction) && (this.direction = "TB"), this.direction === "TD" && (this.direction = "TB");
172
+ }
173
+ /**
174
+ * Called by parser when a special node is found, e.g. a clickable element.
175
+ *
176
+ * @param ids - Comma separated list of ids
177
+ * @param className - Class to add
178
+ */
179
+ setClass(i, a) {
180
+ for (const n of i.split(",")) {
181
+ const u = this.vertices.get(n);
182
+ u && u.classes.push(a);
183
+ const o = this.edges.find((c) => c.id === n);
184
+ o && o.classes.push(a);
185
+ const f = this.subGraphLookup.get(n);
186
+ f && f.classes.push(a);
187
+ }
188
+ }
189
+ setTooltip(i, a) {
190
+ if (a !== void 0) {
191
+ a = this.sanitizeText(a);
192
+ for (const n of i.split(","))
193
+ this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(n) : n, a);
194
+ }
195
+ }
196
+ setClickFun(i, a, n) {
197
+ const u = this.lookUpDomId(i);
198
+ if (bt().securityLevel !== "loose" || a === void 0)
199
+ return;
200
+ let o = [];
201
+ if (typeof n == "string") {
202
+ o = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
203
+ for (let c = 0; c < o.length; c++) {
204
+ let A = o[c].trim();
205
+ A.startsWith('"') && A.endsWith('"') && (A = A.substr(1, A.length - 2)), o[c] = A;
206
+ }
207
+ }
208
+ o.length === 0 && o.push(i);
209
+ const f = this.vertices.get(i);
210
+ f && (f.haveCallback = !0, this.funs.push(() => {
211
+ const c = document.querySelector(`[id="${u}"]`);
212
+ c !== null && c.addEventListener(
213
+ "click",
214
+ () => {
215
+ i1.runFunc(a, ...o);
216
+ },
217
+ !1
218
+ );
219
+ }));
220
+ }
221
+ /**
222
+ * Called by parser when a link is found. Adds the URL to the vertex data.
223
+ *
224
+ * @param ids - Comma separated list of ids
225
+ * @param linkStr - URL to create a link for
226
+ * @param target - Target attribute for the link
227
+ */
228
+ setLink(i, a, n) {
229
+ i.split(",").forEach((u) => {
230
+ const o = this.vertices.get(u);
231
+ o !== void 0 && (o.link = i1.formatUrl(a, this.config), o.linkTarget = n);
232
+ }), this.setClass(i, "clickable");
233
+ }
234
+ getTooltip(i) {
235
+ return this.tooltips.get(i);
236
+ }
237
+ /**
238
+ * Called by parser when a click definition is found. Registers an event handler.
239
+ *
240
+ * @param ids - Comma separated list of ids
241
+ * @param functionName - Function to be called on click
242
+ * @param functionArgs - Arguments to be passed to the function
243
+ */
244
+ setClickEvent(i, a, n) {
245
+ i.split(",").forEach((u) => {
246
+ this.setClickFun(u, a, n);
247
+ }), this.setClass(i, "clickable");
248
+ }
249
+ bindFunctions(i) {
250
+ this.funs.forEach((a) => {
251
+ a(i);
252
+ });
253
+ }
254
+ getDirection() {
255
+ var i;
256
+ return (i = this.direction) == null ? void 0 : i.trim();
257
+ }
258
+ /**
259
+ * Retrieval function for fetching the found nodes after parsing has completed.
260
+ *
261
+ */
262
+ getVertices() {
263
+ return this.vertices;
264
+ }
265
+ /**
266
+ * Retrieval function for fetching the found links after parsing has completed.
267
+ *
268
+ */
269
+ getEdges() {
270
+ return this.edges;
271
+ }
272
+ /**
273
+ * Retrieval function for fetching the found class definitions after parsing has completed.
274
+ *
275
+ */
276
+ getClasses() {
277
+ return this.classes;
278
+ }
279
+ setupToolTips(i) {
280
+ let a = St(".mermaidTooltip");
281
+ (a._groups || a)[0][0] === null && (a = St("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), St(i).select("svg").selectAll("g.node").on("mouseover", (o) => {
282
+ var r;
283
+ const f = St(o.currentTarget);
284
+ if (f.attr("title") === null)
285
+ return;
286
+ const A = (r = o.currentTarget) == null ? void 0 : r.getBoundingClientRect();
287
+ a.transition().duration(200).style("opacity", ".9"), a.text(f.attr("title")).style("left", window.scrollX + A.left + (A.right - A.left) / 2 + "px").style("top", window.scrollY + A.bottom + "px"), a.html(a.html().replace(/&lt;br\/&gt;/g, "<br/>")), f.classed("hover", !0);
288
+ }).on("mouseout", (o) => {
289
+ a.transition().duration(500).style("opacity", 0), St(o.currentTarget).classed("hover", !1);
290
+ });
291
+ }
292
+ /**
293
+ * Clears the internal graph db so that a new graph can be parsed.
294
+ *
295
+ */
296
+ clear(i = "gen-2") {
297
+ this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = i, this.config = bt(), ne();
298
+ }
299
+ setGen(i) {
300
+ this.version = i || "gen-2";
301
+ }
302
+ defaultStyle() {
303
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
304
+ }
305
+ addSubGraph(i, a, n) {
306
+ let u = i.text.trim(), o = n.text;
307
+ i === n && /\s/.exec(n.text) && (u = void 0);
308
+ const c = (/* @__PURE__ */ m((b) => {
309
+ const L = { boolean: {}, number: {}, string: {} }, C = [];
310
+ let d;
311
+ return { nodeList: b.filter(function(W) {
312
+ const Z = typeof W;
313
+ return W.stmt && W.stmt === "dir" ? (d = W.value, !1) : W.trim() === "" ? !1 : Z in L ? L[Z].hasOwnProperty(W) ? !1 : L[Z][W] = !0 : C.includes(W) ? !1 : C.push(W);
314
+ }), dir: d };
315
+ }, "uniq"))(a.flat()), A = c.nodeList;
316
+ let r = c.dir;
317
+ const k = bt().flowchart ?? {};
318
+ if (r = r ?? (k.inheritDir ? this.getDirection() ?? bt().direction ?? void 0 : void 0), this.version === "gen-1")
319
+ for (let b = 0; b < A.length; b++)
320
+ A[b] = this.lookUpDomId(A[b]);
321
+ u = u ?? "subGraph" + this.subCount, o = o || "", o = this.sanitizeText(o), this.subCount = this.subCount + 1;
322
+ const E = {
323
+ id: u,
324
+ nodes: A,
325
+ title: o.trim(),
326
+ classes: [],
327
+ dir: r,
328
+ labelType: n.type
329
+ };
330
+ return tt.info("Adding", E.id, E.nodes, E.dir), E.nodes = this.makeUniq(E, this.subGraphs).nodes, this.subGraphs.push(E), this.subGraphLookup.set(u, E), u;
331
+ }
332
+ getPosForId(i) {
333
+ for (const [a, n] of this.subGraphs.entries())
334
+ if (n.id === i)
335
+ return a;
336
+ return -1;
337
+ }
338
+ indexNodes2(i, a) {
339
+ const n = this.subGraphs[a].nodes;
340
+ if (this.secCount = this.secCount + 1, this.secCount > 2e3)
341
+ return {
342
+ result: !1,
343
+ count: 0
344
+ };
345
+ if (this.posCrossRef[this.secCount] = a, this.subGraphs[a].id === i)
346
+ return {
347
+ result: !0,
348
+ count: 0
349
+ };
350
+ let u = 0, o = 1;
351
+ for (; u < n.length; ) {
352
+ const f = this.getPosForId(n[u]);
353
+ if (f >= 0) {
354
+ const c = this.indexNodes2(i, f);
355
+ if (c.result)
356
+ return {
357
+ result: !0,
358
+ count: o + c.count
359
+ };
360
+ o = o + c.count;
361
+ }
362
+ u = u + 1;
363
+ }
364
+ return {
365
+ result: !1,
366
+ count: o
367
+ };
368
+ }
369
+ getDepthFirstPos(i) {
370
+ return this.posCrossRef[i];
371
+ }
372
+ indexNodes() {
373
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
374
+ }
375
+ getSubGraphs() {
376
+ return this.subGraphs;
377
+ }
378
+ firstGraph() {
379
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
380
+ }
381
+ destructStartLink(i) {
382
+ let a = i.trim(), n = "arrow_open";
383
+ switch (a[0]) {
384
+ case "<":
385
+ n = "arrow_point", a = a.slice(1);
386
+ break;
387
+ case "x":
388
+ n = "arrow_cross", a = a.slice(1);
389
+ break;
390
+ case "o":
391
+ n = "arrow_circle", a = a.slice(1);
392
+ break;
393
+ }
394
+ let u = "normal";
395
+ return a.includes("=") && (u = "thick"), a.includes(".") && (u = "dotted"), { type: n, stroke: u };
396
+ }
397
+ countChar(i, a) {
398
+ const n = a.length;
399
+ let u = 0;
400
+ for (let o = 0; o < n; ++o)
401
+ a[o] === i && ++u;
402
+ return u;
403
+ }
404
+ destructEndLink(i) {
405
+ const a = i.trim();
406
+ let n = a.slice(0, -1), u = "arrow_open";
407
+ switch (a.slice(-1)) {
408
+ case "x":
409
+ u = "arrow_cross", a.startsWith("x") && (u = "double_" + u, n = n.slice(1));
410
+ break;
411
+ case ">":
412
+ u = "arrow_point", a.startsWith("<") && (u = "double_" + u, n = n.slice(1));
413
+ break;
414
+ case "o":
415
+ u = "arrow_circle", a.startsWith("o") && (u = "double_" + u, n = n.slice(1));
416
+ break;
417
+ }
418
+ let o = "normal", f = n.length - 1;
419
+ n.startsWith("=") && (o = "thick"), n.startsWith("~") && (o = "invisible");
420
+ const c = this.countChar(".", n);
421
+ return c && (o = "dotted", f = c), { type: u, stroke: o, length: f };
422
+ }
423
+ destructLink(i, a) {
424
+ const n = this.destructEndLink(i);
425
+ let u;
426
+ if (a) {
427
+ if (u = this.destructStartLink(a), u.stroke !== n.stroke)
428
+ return { type: "INVALID", stroke: "INVALID" };
429
+ if (u.type === "arrow_open")
430
+ u.type = n.type;
431
+ else {
432
+ if (u.type !== n.type)
433
+ return { type: "INVALID", stroke: "INVALID" };
434
+ u.type = "double_" + u.type;
435
+ }
436
+ return u.type === "double_arrow" && (u.type = "double_arrow_point"), u.length = n.length, u;
437
+ }
438
+ return n;
439
+ }
440
+ // Todo optimizer this by caching existing nodes
441
+ exists(i, a) {
442
+ for (const n of i)
443
+ if (n.nodes.includes(a))
444
+ return !0;
445
+ return !1;
446
+ }
447
+ /**
448
+ * Deletes an id from all subgraphs
449
+ *
450
+ */
451
+ makeUniq(i, a) {
452
+ const n = [];
453
+ return i.nodes.forEach((u, o) => {
454
+ this.exists(a, u) || n.push(i.nodes[o]);
455
+ }), { nodes: n };
456
+ }
457
+ getTypeFromVertex(i) {
458
+ if (i.img)
459
+ return "imageSquare";
460
+ if (i.icon)
461
+ return i.form === "circle" ? "iconCircle" : i.form === "square" ? "iconSquare" : i.form === "rounded" ? "iconRounded" : "icon";
462
+ switch (i.type) {
463
+ case "square":
464
+ case void 0:
465
+ return "squareRect";
466
+ case "round":
467
+ return "roundedRect";
468
+ case "ellipse":
469
+ return "ellipse";
470
+ default:
471
+ return i.type;
472
+ }
473
+ }
474
+ findNode(i, a) {
475
+ return i.find((n) => n.id === a);
476
+ }
477
+ destructEdgeType(i) {
478
+ let a = "none", n = "arrow_point";
479
+ switch (i) {
480
+ case "arrow_point":
481
+ case "arrow_circle":
482
+ case "arrow_cross":
483
+ n = i;
484
+ break;
485
+ case "double_arrow_point":
486
+ case "double_arrow_circle":
487
+ case "double_arrow_cross":
488
+ a = i.replace("double_", ""), n = a;
489
+ break;
490
+ }
491
+ return { arrowTypeStart: a, arrowTypeEnd: n };
492
+ }
493
+ addNodeFromVertex(i, a, n, u, o, f) {
494
+ var k;
495
+ const c = n.get(i.id), A = u.get(i.id) ?? !1, r = this.findNode(a, i.id);
496
+ if (r)
497
+ r.cssStyles = i.styles, r.cssCompiledStyles = this.getCompiledStyles(i.classes), r.cssClasses = i.classes.join(" ");
498
+ else {
499
+ const E = {
500
+ id: i.id,
501
+ label: i.text,
502
+ labelStyle: "",
503
+ parentId: c,
504
+ padding: ((k = o.flowchart) == null ? void 0 : k.padding) || 8,
505
+ cssStyles: i.styles,
506
+ cssCompiledStyles: this.getCompiledStyles(["default", "node", ...i.classes]),
507
+ cssClasses: "default " + i.classes.join(" "),
508
+ dir: i.dir,
509
+ domId: i.domId,
510
+ look: f,
511
+ link: i.link,
512
+ linkTarget: i.linkTarget,
513
+ tooltip: this.getTooltip(i.id),
514
+ icon: i.icon,
515
+ pos: i.pos,
516
+ img: i.img,
517
+ assetWidth: i.assetWidth,
518
+ assetHeight: i.assetHeight,
519
+ constraint: i.constraint
520
+ };
521
+ A ? a.push({
522
+ ...E,
523
+ isGroup: !0,
524
+ shape: "rect"
525
+ }) : a.push({
526
+ ...E,
527
+ isGroup: !1,
528
+ shape: this.getTypeFromVertex(i)
529
+ });
530
+ }
531
+ }
532
+ getCompiledStyles(i) {
533
+ let a = [];
534
+ for (const n of i) {
535
+ const u = this.classes.get(n);
536
+ u != null && u.styles && (a = [...a, ...u.styles ?? []].map((o) => o.trim())), u != null && u.textStyles && (a = [...a, ...u.textStyles ?? []].map((o) => o.trim()));
537
+ }
538
+ return a;
539
+ }
540
+ getData() {
541
+ const i = bt(), a = [], n = [], u = this.getSubGraphs(), o = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
542
+ for (let r = u.length - 1; r >= 0; r--) {
543
+ const k = u[r];
544
+ k.nodes.length > 0 && f.set(k.id, !0);
545
+ for (const E of k.nodes)
546
+ o.set(E, k.id);
547
+ }
548
+ for (let r = u.length - 1; r >= 0; r--) {
549
+ const k = u[r];
550
+ a.push({
551
+ id: k.id,
552
+ label: k.title,
553
+ labelStyle: "",
554
+ parentId: o.get(k.id),
555
+ padding: 8,
556
+ cssCompiledStyles: this.getCompiledStyles(k.classes),
557
+ cssClasses: k.classes.join(" "),
558
+ shape: "rect",
559
+ dir: k.dir,
560
+ isGroup: !0,
561
+ look: i.look
562
+ });
563
+ }
564
+ this.getVertices().forEach((r) => {
565
+ this.addNodeFromVertex(r, a, o, f, i, i.look || "classic");
566
+ });
567
+ const A = this.getEdges();
568
+ return A.forEach((r, k) => {
569
+ var d;
570
+ const { arrowTypeStart: E, arrowTypeEnd: b } = this.destructEdgeType(r.type), L = [...A.defaultStyle ?? []];
571
+ r.style && L.push(...r.style);
572
+ const C = {
573
+ id: s1(r.start, r.end, { counter: k, prefix: "L" }, r.id),
574
+ isUserDefinedId: r.isUserDefinedId,
575
+ start: r.start,
576
+ end: r.end,
577
+ type: r.type ?? "normal",
578
+ label: r.text,
579
+ labelpos: "c",
580
+ thickness: r.stroke,
581
+ minlen: r.length,
582
+ classes: (r == null ? void 0 : r.stroke) === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
583
+ arrowTypeStart: (r == null ? void 0 : r.stroke) === "invisible" || (r == null ? void 0 : r.type) === "arrow_open" ? "none" : E,
584
+ arrowTypeEnd: (r == null ? void 0 : r.stroke) === "invisible" || (r == null ? void 0 : r.type) === "arrow_open" ? "none" : b,
585
+ arrowheadStyle: "fill: #333",
586
+ cssCompiledStyles: this.getCompiledStyles(r.classes),
587
+ labelStyle: L,
588
+ style: L,
589
+ pattern: r.stroke,
590
+ look: i.look,
591
+ animate: r.animate,
592
+ animation: r.animation,
593
+ curve: r.interpolate || this.edges.defaultInterpolate || ((d = i.flowchart) == null ? void 0 : d.curve)
594
+ };
595
+ n.push(C);
596
+ }), { nodes: a, edges: n, other: {}, config: i };
597
+ }
598
+ defaultConfig() {
599
+ return ue.flowchart;
600
+ }
601
+ }, m(Ot, "FlowDB"), Ot), fe = /* @__PURE__ */ m(function(s, i) {
602
+ return i.db.getClasses();
603
+ }, "getClasses"), ge = /* @__PURE__ */ m(async function(s, i, a, n) {
604
+ var L;
605
+ tt.info("REF0:"), tt.info("Drawing state diagram (v2)", i);
606
+ const { securityLevel: u, flowchart: o, layout: f } = bt();
607
+ let c;
608
+ u === "sandbox" && (c = St("#i" + i));
609
+ const A = u === "sandbox" ? c.nodes()[0].contentDocument : document;
610
+ tt.debug("Before getData: ");
611
+ const r = n.db.getData();
612
+ tt.debug("Data: ", r);
613
+ const k = le(i, u), E = n.db.getDirection();
614
+ r.type = n.type, r.layoutAlgorithm = H1(f), r.layoutAlgorithm === "dagre" && f === "elk" && tt.warn(
615
+ "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."
616
+ ), r.direction = E, r.nodeSpacing = (o == null ? void 0 : o.nodeSpacing) || 50, r.rankSpacing = (o == null ? void 0 : o.rankSpacing) || 50, r.markers = ["point", "circle", "cross"], r.diagramId = i, tt.debug("REF1:", r), await X1(r, k);
617
+ const b = ((L = r.config.flowchart) == null ? void 0 : L.diagramPadding) ?? 8;
618
+ i1.insertTitle(
619
+ k,
620
+ "flowchartTitleText",
621
+ (o == null ? void 0 : o.titleTopMargin) || 0,
622
+ n.db.getDiagramTitle()
623
+ ), ce(k, b, "flowchart", (o == null ? void 0 : o.useMaxWidth) || !1);
624
+ for (const C of r.nodes) {
625
+ const d = St(`#${i} [id="${C.id}"]`);
626
+ if (!d || !C.link)
627
+ continue;
628
+ const J = A.createElementNS("http://www.w3.org/2000/svg", "a");
629
+ J.setAttributeNS("http://www.w3.org/2000/svg", "class", C.cssClasses), J.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), u === "sandbox" ? J.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : C.linkTarget && J.setAttributeNS("http://www.w3.org/2000/svg", "target", C.linkTarget);
630
+ const W = d.insert(function() {
631
+ return J;
632
+ }, ":first-child"), Z = d.select(".label-container");
633
+ Z && W.append(function() {
634
+ return Z.node();
635
+ });
636
+ const At = d.select(".label");
637
+ At && W.append(function() {
638
+ return At.node();
639
+ });
640
+ }
641
+ }, "draw"), be = {
642
+ getClasses: fe,
643
+ draw: ge
644
+ }, r1 = function() {
645
+ var s = /* @__PURE__ */ m(function(gt, h, p, g) {
646
+ for (p = p || {}, g = gt.length; g--; p[gt[g]] = h)
647
+ ;
648
+ return p;
649
+ }, "o"), i = [1, 4], a = [1, 3], n = [1, 5], u = [1, 8, 9, 10, 11, 27, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], o = [2, 2], f = [1, 13], c = [1, 14], A = [1, 15], r = [1, 16], k = [1, 23], E = [1, 25], b = [1, 26], L = [1, 27], C = [1, 49], d = [1, 48], J = [1, 29], W = [1, 30], Z = [1, 31], At = [1, 32], Mt = [1, 33], V = [1, 44], I = [1, 46], w = [1, 42], R = [1, 47], N = [1, 43], G = [1, 50], P = [1, 45], O = [1, 51], M = [1, 52], Ut = [1, 34], Wt = [1, 35], zt = [1, 36], jt = [1, 37], pt = [1, 57], y = [1, 8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], et = [1, 61], st = [1, 60], it = [1, 62], Dt = [8, 9, 11, 75, 77, 78], a1 = [1, 78], xt = [1, 91], Tt = [1, 96], Et = [1, 95], yt = [1, 92], Ft = [1, 88], _t = [1, 94], Bt = [1, 90], vt = [1, 97], Lt = [1, 93], Vt = [1, 98], It = [1, 89], kt = [8, 9, 10, 11, 40, 75, 77, 78], z = [8, 9, 10, 11, 40, 46, 75, 77, 78], q = [8, 9, 10, 11, 29, 40, 44, 46, 48, 50, 52, 54, 56, 58, 60, 63, 65, 67, 68, 70, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], n1 = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], wt = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], u1 = [1, 121], o1 = [1, 122], Kt = [1, 124], Yt = [1, 123], l1 = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], c1 = [1, 133], h1 = [1, 147], d1 = [1, 148], p1 = [1, 149], f1 = [1, 150], g1 = [1, 135], b1 = [1, 137], A1 = [1, 141], k1 = [1, 142], m1 = [1, 143], C1 = [1, 144], S1 = [1, 145], D1 = [1, 146], x1 = [1, 151], T1 = [1, 152], E1 = [1, 131], y1 = [1, 132], F1 = [1, 139], _1 = [1, 134], B1 = [1, 138], v1 = [1, 136], Qt = [8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], L1 = [1, 154], V1 = [1, 156], B = [8, 9, 11], H = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], S = [1, 176], j = [1, 172], K = [1, 173], D = [1, 177], x = [1, 174], T = [1, 175], Rt = [77, 116, 119], F = [8, 9, 10, 11, 12, 14, 27, 29, 32, 44, 60, 75, 84, 85, 86, 87, 88, 89, 90, 105, 109, 111, 114, 115, 116], I1 = [10, 106], ft = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], rt = [1, 247], at = [1, 245], nt = [1, 249], ut = [1, 243], ot = [1, 244], lt = [1, 246], ct = [1, 248], ht = [1, 250], Nt = [1, 268], w1 = [8, 9, 11, 106], $ = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], Jt = {
650
+ trace: /* @__PURE__ */ m(function() {
651
+ }, "trace"),
652
+ yy: {},
653
+ symbols_: { error: 2, start: 3, graphConfig: 4, document: 5, line: 6, statement: 7, SEMI: 8, NEWLINE: 9, SPACE: 10, EOF: 11, GRAPH: 12, NODIR: 13, DIR: 14, FirstStmtSeparator: 15, ending: 16, endToken: 17, spaceList: 18, spaceListNewline: 19, vertexStatement: 20, separator: 21, styleStatement: 22, linkStyleStatement: 23, classDefStatement: 24, classStatement: 25, clickStatement: 26, subgraph: 27, textNoTags: 28, SQS: 29, text: 30, SQE: 31, end: 32, direction: 33, acc_title: 34, acc_title_value: 35, acc_descr: 36, acc_descr_value: 37, acc_descr_multiline_value: 38, shapeData: 39, SHAPE_DATA: 40, link: 41, node: 42, styledVertex: 43, AMP: 44, vertex: 45, STYLE_SEPARATOR: 46, idString: 47, DOUBLECIRCLESTART: 48, DOUBLECIRCLEEND: 49, PS: 50, PE: 51, "(-": 52, "-)": 53, STADIUMSTART: 54, STADIUMEND: 55, SUBROUTINESTART: 56, SUBROUTINEEND: 57, VERTEX_WITH_PROPS_START: 58, "NODE_STRING[field]": 59, COLON: 60, "NODE_STRING[value]": 61, PIPE: 62, CYLINDERSTART: 63, CYLINDEREND: 64, DIAMOND_START: 65, DIAMOND_STOP: 66, TAGEND: 67, TRAPSTART: 68, TRAPEND: 69, INVTRAPSTART: 70, INVTRAPEND: 71, linkStatement: 72, arrowText: 73, TESTSTR: 74, START_LINK: 75, edgeText: 76, LINK: 77, LINK_ID: 78, edgeTextToken: 79, STR: 80, MD_STR: 81, textToken: 82, keywords: 83, STYLE: 84, LINKSTYLE: 85, CLASSDEF: 86, CLASS: 87, CLICK: 88, DOWN: 89, UP: 90, textNoTagsToken: 91, stylesOpt: 92, "idString[vertex]": 93, "idString[class]": 94, CALLBACKNAME: 95, CALLBACKARGS: 96, HREF: 97, LINK_TARGET: 98, "STR[link]": 99, "STR[tooltip]": 100, alphaNum: 101, DEFAULT: 102, numList: 103, INTERPOLATE: 104, NUM: 105, COMMA: 106, style: 107, styleComponent: 108, NODE_STRING: 109, UNIT: 110, BRKT: 111, PCT: 112, idStringToken: 113, MINUS: 114, MULT: 115, UNICODE_TEXT: 116, TEXT: 117, TAGSTART: 118, EDGE_TEXT: 119, alphaNumToken: 120, direction_tb: 121, direction_bt: 122, direction_rl: 123, direction_lr: 124, $accept: 0, $end: 1 },
654
+ terminals_: { 2: "error", 8: "SEMI", 9: "NEWLINE", 10: "SPACE", 11: "EOF", 12: "GRAPH", 13: "NODIR", 14: "DIR", 27: "subgraph", 29: "SQS", 31: "SQE", 32: "end", 34: "acc_title", 35: "acc_title_value", 36: "acc_descr", 37: "acc_descr_value", 38: "acc_descr_multiline_value", 40: "SHAPE_DATA", 44: "AMP", 46: "STYLE_SEPARATOR", 48: "DOUBLECIRCLESTART", 49: "DOUBLECIRCLEEND", 50: "PS", 51: "PE", 52: "(-", 53: "-)", 54: "STADIUMSTART", 55: "STADIUMEND", 56: "SUBROUTINESTART", 57: "SUBROUTINEEND", 58: "VERTEX_WITH_PROPS_START", 59: "NODE_STRING[field]", 60: "COLON", 61: "NODE_STRING[value]", 62: "PIPE", 63: "CYLINDERSTART", 64: "CYLINDEREND", 65: "DIAMOND_START", 66: "DIAMOND_STOP", 67: "TAGEND", 68: "TRAPSTART", 69: "TRAPEND", 70: "INVTRAPSTART", 71: "INVTRAPEND", 74: "TESTSTR", 75: "START_LINK", 77: "LINK", 78: "LINK_ID", 80: "STR", 81: "MD_STR", 84: "STYLE", 85: "LINKSTYLE", 86: "CLASSDEF", 87: "CLASS", 88: "CLICK", 89: "DOWN", 90: "UP", 93: "idString[vertex]", 94: "idString[class]", 95: "CALLBACKNAME", 96: "CALLBACKARGS", 97: "HREF", 98: "LINK_TARGET", 99: "STR[link]", 100: "STR[tooltip]", 102: "DEFAULT", 104: "INTERPOLATE", 105: "NUM", 106: "COMMA", 109: "NODE_STRING", 110: "UNIT", 111: "BRKT", 112: "PCT", 114: "MINUS", 115: "MULT", 116: "UNICODE_TEXT", 117: "TEXT", 118: "TAGSTART", 119: "EDGE_TEXT", 121: "direction_tb", 122: "direction_bt", 123: "direction_rl", 124: "direction_lr" },
655
+ productions_: [0, [3, 2], [5, 0], [5, 2], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [4, 2], [4, 2], [4, 2], [4, 3], [16, 2], [16, 1], [17, 1], [17, 1], [17, 1], [15, 1], [15, 1], [15, 2], [19, 2], [19, 2], [19, 1], [19, 1], [18, 2], [18, 1], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 9], [7, 6], [7, 4], [7, 1], [7, 2], [7, 2], [7, 1], [21, 1], [21, 1], [21, 1], [39, 2], [39, 1], [20, 4], [20, 3], [20, 4], [20, 2], [20, 2], [20, 1], [42, 1], [42, 6], [42, 5], [43, 1], [43, 3], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 8], [45, 4], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 4], [45, 4], [45, 1], [41, 2], [41, 3], [41, 3], [41, 1], [41, 3], [41, 4], [76, 1], [76, 2], [76, 1], [76, 1], [72, 1], [72, 2], [73, 3], [30, 1], [30, 2], [30, 1], [30, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [28, 1], [28, 2], [28, 1], [28, 1], [24, 5], [25, 5], [26, 2], [26, 4], [26, 3], [26, 5], [26, 3], [26, 5], [26, 5], [26, 7], [26, 2], [26, 4], [26, 2], [26, 4], [26, 4], [26, 6], [22, 5], [23, 5], [23, 5], [23, 9], [23, 9], [23, 7], [23, 7], [103, 1], [103, 3], [92, 1], [92, 3], [107, 1], [107, 2], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [82, 1], [82, 1], [82, 1], [82, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [79, 1], [79, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [47, 1], [47, 2], [101, 1], [101, 2], [33, 1], [33, 1], [33, 1], [33, 1]],
656
+ performAction: /* @__PURE__ */ m(function(h, p, g, l, _, t, Pt) {
657
+ var e = t.length - 1;
658
+ switch (_) {
659
+ case 2:
660
+ this.$ = [];
661
+ break;
662
+ case 3:
663
+ (!Array.isArray(t[e]) || t[e].length > 0) && t[e - 1].push(t[e]), this.$ = t[e - 1];
664
+ break;
665
+ case 4:
666
+ case 183:
667
+ this.$ = t[e];
668
+ break;
669
+ case 11:
670
+ l.setDirection("TB"), this.$ = "TB";
671
+ break;
672
+ case 12:
673
+ l.setDirection(t[e - 1]), this.$ = t[e - 1];
674
+ break;
675
+ case 27:
676
+ this.$ = t[e - 1].nodes;
677
+ break;
678
+ case 28:
679
+ case 29:
680
+ case 30:
681
+ case 31:
682
+ case 32:
683
+ this.$ = [];
684
+ break;
685
+ case 33:
686
+ this.$ = l.addSubGraph(t[e - 6], t[e - 1], t[e - 4]);
687
+ break;
688
+ case 34:
689
+ this.$ = l.addSubGraph(t[e - 3], t[e - 1], t[e - 3]);
690
+ break;
691
+ case 35:
692
+ this.$ = l.addSubGraph(void 0, t[e - 1], void 0);
693
+ break;
694
+ case 37:
695
+ this.$ = t[e].trim(), l.setAccTitle(this.$);
696
+ break;
697
+ case 38:
698
+ case 39:
699
+ this.$ = t[e].trim(), l.setAccDescription(this.$);
700
+ break;
701
+ case 43:
702
+ this.$ = t[e - 1] + t[e];
703
+ break;
704
+ case 44:
705
+ this.$ = t[e];
706
+ break;
707
+ case 45:
708
+ l.addVertex(t[e - 1][t[e - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[e]), l.addLink(t[e - 3].stmt, t[e - 1], t[e - 2]), this.$ = { stmt: t[e - 1], nodes: t[e - 1].concat(t[e - 3].nodes) };
709
+ break;
710
+ case 46:
711
+ l.addLink(t[e - 2].stmt, t[e], t[e - 1]), this.$ = { stmt: t[e], nodes: t[e].concat(t[e - 2].nodes) };
712
+ break;
713
+ case 47:
714
+ l.addLink(t[e - 3].stmt, t[e - 1], t[e - 2]), this.$ = { stmt: t[e - 1], nodes: t[e - 1].concat(t[e - 3].nodes) };
715
+ break;
716
+ case 48:
717
+ this.$ = { stmt: t[e - 1], nodes: t[e - 1] };
718
+ break;
719
+ case 49:
720
+ l.addVertex(t[e - 1][t[e - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[e]), this.$ = { stmt: t[e - 1], nodes: t[e - 1], shapeData: t[e] };
721
+ break;
722
+ case 50:
723
+ this.$ = { stmt: t[e], nodes: t[e] };
724
+ break;
725
+ case 51:
726
+ this.$ = [t[e]];
727
+ break;
728
+ case 52:
729
+ l.addVertex(t[e - 5][t[e - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[e - 4]), this.$ = t[e - 5].concat(t[e]);
730
+ break;
731
+ case 53:
732
+ this.$ = t[e - 4].concat(t[e]);
733
+ break;
734
+ case 54:
735
+ this.$ = t[e];
736
+ break;
737
+ case 55:
738
+ this.$ = t[e - 2], l.setClass(t[e - 2], t[e]);
739
+ break;
740
+ case 56:
741
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "square");
742
+ break;
743
+ case 57:
744
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "doublecircle");
745
+ break;
746
+ case 58:
747
+ this.$ = t[e - 5], l.addVertex(t[e - 5], t[e - 2], "circle");
748
+ break;
749
+ case 59:
750
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "ellipse");
751
+ break;
752
+ case 60:
753
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "stadium");
754
+ break;
755
+ case 61:
756
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "subroutine");
757
+ break;
758
+ case 62:
759
+ this.$ = t[e - 7], l.addVertex(t[e - 7], t[e - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[t[e - 5], t[e - 3]]]));
760
+ break;
761
+ case 63:
762
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "cylinder");
763
+ break;
764
+ case 64:
765
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "round");
766
+ break;
767
+ case 65:
768
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "diamond");
769
+ break;
770
+ case 66:
771
+ this.$ = t[e - 5], l.addVertex(t[e - 5], t[e - 2], "hexagon");
772
+ break;
773
+ case 67:
774
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "odd");
775
+ break;
776
+ case 68:
777
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "trapezoid");
778
+ break;
779
+ case 69:
780
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "inv_trapezoid");
781
+ break;
782
+ case 70:
783
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "lean_right");
784
+ break;
785
+ case 71:
786
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "lean_left");
787
+ break;
788
+ case 72:
789
+ this.$ = t[e], l.addVertex(t[e]);
790
+ break;
791
+ case 73:
792
+ t[e - 1].text = t[e], this.$ = t[e - 1];
793
+ break;
794
+ case 74:
795
+ case 75:
796
+ t[e - 2].text = t[e - 1], this.$ = t[e - 2];
797
+ break;
798
+ case 76:
799
+ this.$ = t[e];
800
+ break;
801
+ case 77:
802
+ var v = l.destructLink(t[e], t[e - 2]);
803
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, text: t[e - 1] };
804
+ break;
805
+ case 78:
806
+ var v = l.destructLink(t[e], t[e - 2]);
807
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, text: t[e - 1], id: t[e - 3] };
808
+ break;
809
+ case 79:
810
+ this.$ = { text: t[e], type: "text" };
811
+ break;
812
+ case 80:
813
+ this.$ = { text: t[e - 1].text + "" + t[e], type: t[e - 1].type };
814
+ break;
815
+ case 81:
816
+ this.$ = { text: t[e], type: "string" };
817
+ break;
818
+ case 82:
819
+ this.$ = { text: t[e], type: "markdown" };
820
+ break;
821
+ case 83:
822
+ var v = l.destructLink(t[e]);
823
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length };
824
+ break;
825
+ case 84:
826
+ var v = l.destructLink(t[e]);
827
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, id: t[e - 1] };
828
+ break;
829
+ case 85:
830
+ this.$ = t[e - 1];
831
+ break;
832
+ case 86:
833
+ this.$ = { text: t[e], type: "text" };
834
+ break;
835
+ case 87:
836
+ this.$ = { text: t[e - 1].text + "" + t[e], type: t[e - 1].type };
837
+ break;
838
+ case 88:
839
+ this.$ = { text: t[e], type: "string" };
840
+ break;
841
+ case 89:
842
+ case 104:
843
+ this.$ = { text: t[e], type: "markdown" };
844
+ break;
845
+ case 101:
846
+ this.$ = { text: t[e], type: "text" };
847
+ break;
848
+ case 102:
849
+ this.$ = { text: t[e - 1].text + "" + t[e], type: t[e - 1].type };
850
+ break;
851
+ case 103:
852
+ this.$ = { text: t[e], type: "text" };
853
+ break;
854
+ case 105:
855
+ this.$ = t[e - 4], l.addClass(t[e - 2], t[e]);
856
+ break;
857
+ case 106:
858
+ this.$ = t[e - 4], l.setClass(t[e - 2], t[e]);
859
+ break;
860
+ case 107:
861
+ case 115:
862
+ this.$ = t[e - 1], l.setClickEvent(t[e - 1], t[e]);
863
+ break;
864
+ case 108:
865
+ case 116:
866
+ this.$ = t[e - 3], l.setClickEvent(t[e - 3], t[e - 2]), l.setTooltip(t[e - 3], t[e]);
867
+ break;
868
+ case 109:
869
+ this.$ = t[e - 2], l.setClickEvent(t[e - 2], t[e - 1], t[e]);
870
+ break;
871
+ case 110:
872
+ this.$ = t[e - 4], l.setClickEvent(t[e - 4], t[e - 3], t[e - 2]), l.setTooltip(t[e - 4], t[e]);
873
+ break;
874
+ case 111:
875
+ this.$ = t[e - 2], l.setLink(t[e - 2], t[e]);
876
+ break;
877
+ case 112:
878
+ this.$ = t[e - 4], l.setLink(t[e - 4], t[e - 2]), l.setTooltip(t[e - 4], t[e]);
879
+ break;
880
+ case 113:
881
+ this.$ = t[e - 4], l.setLink(t[e - 4], t[e - 2], t[e]);
882
+ break;
883
+ case 114:
884
+ this.$ = t[e - 6], l.setLink(t[e - 6], t[e - 4], t[e]), l.setTooltip(t[e - 6], t[e - 2]);
885
+ break;
886
+ case 117:
887
+ this.$ = t[e - 1], l.setLink(t[e - 1], t[e]);
888
+ break;
889
+ case 118:
890
+ this.$ = t[e - 3], l.setLink(t[e - 3], t[e - 2]), l.setTooltip(t[e - 3], t[e]);
891
+ break;
892
+ case 119:
893
+ this.$ = t[e - 3], l.setLink(t[e - 3], t[e - 2], t[e]);
894
+ break;
895
+ case 120:
896
+ this.$ = t[e - 5], l.setLink(t[e - 5], t[e - 4], t[e]), l.setTooltip(t[e - 5], t[e - 2]);
897
+ break;
898
+ case 121:
899
+ this.$ = t[e - 4], l.addVertex(t[e - 2], void 0, void 0, t[e]);
900
+ break;
901
+ case 122:
902
+ this.$ = t[e - 4], l.updateLink([t[e - 2]], t[e]);
903
+ break;
904
+ case 123:
905
+ this.$ = t[e - 4], l.updateLink(t[e - 2], t[e]);
906
+ break;
907
+ case 124:
908
+ this.$ = t[e - 8], l.updateLinkInterpolate([t[e - 6]], t[e - 2]), l.updateLink([t[e - 6]], t[e]);
909
+ break;
910
+ case 125:
911
+ this.$ = t[e - 8], l.updateLinkInterpolate(t[e - 6], t[e - 2]), l.updateLink(t[e - 6], t[e]);
912
+ break;
913
+ case 126:
914
+ this.$ = t[e - 6], l.updateLinkInterpolate([t[e - 4]], t[e]);
915
+ break;
916
+ case 127:
917
+ this.$ = t[e - 6], l.updateLinkInterpolate(t[e - 4], t[e]);
918
+ break;
919
+ case 128:
920
+ case 130:
921
+ this.$ = [t[e]];
922
+ break;
923
+ case 129:
924
+ case 131:
925
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
926
+ break;
927
+ case 133:
928
+ this.$ = t[e - 1] + t[e];
929
+ break;
930
+ case 181:
931
+ this.$ = t[e];
932
+ break;
933
+ case 182:
934
+ this.$ = t[e - 1] + "" + t[e];
935
+ break;
936
+ case 184:
937
+ this.$ = t[e - 1] + "" + t[e];
938
+ break;
939
+ case 185:
940
+ this.$ = { stmt: "dir", value: "TB" };
941
+ break;
942
+ case 186:
943
+ this.$ = { stmt: "dir", value: "BT" };
944
+ break;
945
+ case 187:
946
+ this.$ = { stmt: "dir", value: "RL" };
947
+ break;
948
+ case 188:
949
+ this.$ = { stmt: "dir", value: "LR" };
950
+ break;
951
+ }
952
+ }, "anonymous"),
953
+ table: [{ 3: 1, 4: 2, 9: i, 10: a, 12: n }, { 1: [3] }, s(u, o, { 5: 6 }), { 4: 7, 9: i, 10: a, 12: n }, { 4: 8, 9: i, 10: a, 12: n }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: f, 9: c, 10: A, 11: r, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: k, 33: 24, 34: E, 36: b, 38: L, 42: 28, 43: 38, 44: C, 45: 39, 47: 40, 60: d, 84: J, 85: W, 86: Z, 87: At, 88: Mt, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M, 121: Ut, 122: Wt, 123: zt, 124: jt }, s(u, [2, 9]), s(u, [2, 10]), s(u, [2, 11]), { 8: [1, 54], 9: [1, 55], 10: pt, 15: 53, 18: 56 }, s(y, [2, 3]), s(y, [2, 4]), s(y, [2, 5]), s(y, [2, 6]), s(y, [2, 7]), s(y, [2, 8]), { 8: et, 9: st, 11: it, 21: 58, 41: 59, 72: 63, 75: [1, 64], 77: [1, 66], 78: [1, 65] }, { 8: et, 9: st, 11: it, 21: 67 }, { 8: et, 9: st, 11: it, 21: 68 }, { 8: et, 9: st, 11: it, 21: 69 }, { 8: et, 9: st, 11: it, 21: 70 }, { 8: et, 9: st, 11: it, 21: 71 }, { 8: et, 9: st, 10: [1, 72], 11: it, 21: 73 }, s(y, [2, 36]), { 35: [1, 74] }, { 37: [1, 75] }, s(y, [2, 39]), s(Dt, [2, 50], { 18: 76, 39: 77, 10: pt, 40: a1 }), { 10: [1, 79] }, { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 14: xt, 44: Tt, 60: Et, 80: [1, 86], 89: yt, 95: [1, 83], 97: [1, 84], 101: 85, 105: Ft, 106: _t, 109: Bt, 111: vt, 114: Lt, 115: Vt, 116: It, 120: 87 }, s(y, [2, 185]), s(y, [2, 186]), s(y, [2, 187]), s(y, [2, 188]), s(kt, [2, 51]), s(kt, [2, 54], { 46: [1, 99] }), s(z, [2, 72], { 113: 112, 29: [1, 100], 44: C, 48: [1, 101], 50: [1, 102], 52: [1, 103], 54: [1, 104], 56: [1, 105], 58: [1, 106], 60: d, 63: [1, 107], 65: [1, 108], 67: [1, 109], 68: [1, 110], 70: [1, 111], 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(q, [2, 181]), s(q, [2, 142]), s(q, [2, 143]), s(q, [2, 144]), s(q, [2, 145]), s(q, [2, 146]), s(q, [2, 147]), s(q, [2, 148]), s(q, [2, 149]), s(q, [2, 150]), s(q, [2, 151]), s(q, [2, 152]), s(u, [2, 12]), s(u, [2, 18]), s(u, [2, 19]), { 9: [1, 113] }, s(n1, [2, 26], { 18: 114, 10: pt }), s(y, [2, 27]), { 42: 115, 43: 38, 44: C, 45: 39, 47: 40, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, s(y, [2, 40]), s(y, [2, 41]), s(y, [2, 42]), s(wt, [2, 76], { 73: 116, 62: [1, 118], 74: [1, 117] }), { 76: 119, 79: 120, 80: u1, 81: o1, 116: Kt, 119: Yt }, { 75: [1, 125], 77: [1, 126] }, s(l1, [2, 83]), s(y, [2, 28]), s(y, [2, 29]), s(y, [2, 30]), s(y, [2, 31]), s(y, [2, 32]), { 10: c1, 12: h1, 14: d1, 27: p1, 28: 127, 32: f1, 44: g1, 60: b1, 75: A1, 80: [1, 129], 81: [1, 130], 83: 140, 84: k1, 85: m1, 86: C1, 87: S1, 88: D1, 89: x1, 90: T1, 91: 128, 105: E1, 109: y1, 111: F1, 114: _1, 115: B1, 116: v1 }, s(Qt, o, { 5: 153 }), s(y, [2, 37]), s(y, [2, 38]), s(Dt, [2, 48], { 44: L1 }), s(Dt, [2, 49], { 18: 155, 10: pt, 40: V1 }), s(kt, [2, 44]), { 44: C, 47: 157, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, { 102: [1, 158], 103: 159, 105: [1, 160] }, { 44: C, 47: 161, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, { 44: C, 47: 162, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, s(B, [2, 107], { 10: [1, 163], 96: [1, 164] }), { 80: [1, 165] }, s(B, [2, 115], { 120: 167, 10: [1, 166], 14: xt, 44: Tt, 60: Et, 89: yt, 105: Ft, 106: _t, 109: Bt, 111: vt, 114: Lt, 115: Vt, 116: It }), s(B, [2, 117], { 10: [1, 168] }), s(H, [2, 183]), s(H, [2, 170]), s(H, [2, 171]), s(H, [2, 172]), s(H, [2, 173]), s(H, [2, 174]), s(H, [2, 175]), s(H, [2, 176]), s(H, [2, 177]), s(H, [2, 178]), s(H, [2, 179]), s(H, [2, 180]), { 44: C, 47: 169, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, { 30: 170, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 30: 178, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 30: 180, 50: [1, 179], 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 30: 181, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 30: 182, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 30: 183, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 109: [1, 184] }, { 30: 185, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 30: 186, 65: [1, 187], 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 30: 188, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 30: 189, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 30: 190, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, s(q, [2, 182]), s(u, [2, 20]), s(n1, [2, 25]), s(Dt, [2, 46], { 39: 191, 18: 192, 10: pt, 40: a1 }), s(wt, [2, 73], { 10: [1, 193] }), { 10: [1, 194] }, { 30: 195, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 77: [1, 196], 79: 197, 116: Kt, 119: Yt }, s(Rt, [2, 79]), s(Rt, [2, 81]), s(Rt, [2, 82]), s(Rt, [2, 168]), s(Rt, [2, 169]), { 76: 198, 79: 120, 80: u1, 81: o1, 116: Kt, 119: Yt }, s(l1, [2, 84]), { 8: et, 9: st, 10: c1, 11: it, 12: h1, 14: d1, 21: 200, 27: p1, 29: [1, 199], 32: f1, 44: g1, 60: b1, 75: A1, 83: 140, 84: k1, 85: m1, 86: C1, 87: S1, 88: D1, 89: x1, 90: T1, 91: 201, 105: E1, 109: y1, 111: F1, 114: _1, 115: B1, 116: v1 }, s(F, [2, 101]), s(F, [2, 103]), s(F, [2, 104]), s(F, [2, 157]), s(F, [2, 158]), s(F, [2, 159]), s(F, [2, 160]), s(F, [2, 161]), s(F, [2, 162]), s(F, [2, 163]), s(F, [2, 164]), s(F, [2, 165]), s(F, [2, 166]), s(F, [2, 167]), s(F, [2, 90]), s(F, [2, 91]), s(F, [2, 92]), s(F, [2, 93]), s(F, [2, 94]), s(F, [2, 95]), s(F, [2, 96]), s(F, [2, 97]), s(F, [2, 98]), s(F, [2, 99]), s(F, [2, 100]), { 6: 11, 7: 12, 8: f, 9: c, 10: A, 11: r, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: k, 32: [1, 202], 33: 24, 34: E, 36: b, 38: L, 42: 28, 43: 38, 44: C, 45: 39, 47: 40, 60: d, 84: J, 85: W, 86: Z, 87: At, 88: Mt, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M, 121: Ut, 122: Wt, 123: zt, 124: jt }, { 10: pt, 18: 203 }, { 44: [1, 204] }, s(kt, [2, 43]), { 10: [1, 205], 44: C, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 112, 114: P, 115: O, 116: M }, { 10: [1, 206] }, { 10: [1, 207], 106: [1, 208] }, s(I1, [2, 128]), { 10: [1, 209], 44: C, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 112, 114: P, 115: O, 116: M }, { 10: [1, 210], 44: C, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 112, 114: P, 115: O, 116: M }, { 80: [1, 211] }, s(B, [2, 109], { 10: [1, 212] }), s(B, [2, 111], { 10: [1, 213] }), { 80: [1, 214] }, s(H, [2, 184]), { 80: [1, 215], 98: [1, 216] }, s(kt, [2, 55], { 113: 112, 44: C, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), { 31: [1, 217], 67: S, 82: 218, 116: D, 117: x, 118: T }, s(ft, [2, 86]), s(ft, [2, 88]), s(ft, [2, 89]), s(ft, [2, 153]), s(ft, [2, 154]), s(ft, [2, 155]), s(ft, [2, 156]), { 49: [1, 219], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 30: 220, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 51: [1, 221], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 53: [1, 222], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 55: [1, 223], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 57: [1, 224], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 60: [1, 225] }, { 64: [1, 226], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 66: [1, 227], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 30: 228, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, { 31: [1, 229], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 67: S, 69: [1, 230], 71: [1, 231], 82: 218, 116: D, 117: x, 118: T }, { 67: S, 69: [1, 233], 71: [1, 232], 82: 218, 116: D, 117: x, 118: T }, s(Dt, [2, 45], { 18: 155, 10: pt, 40: V1 }), s(Dt, [2, 47], { 44: L1 }), s(wt, [2, 75]), s(wt, [2, 74]), { 62: [1, 234], 67: S, 82: 218, 116: D, 117: x, 118: T }, s(wt, [2, 77]), s(Rt, [2, 80]), { 77: [1, 235], 79: 197, 116: Kt, 119: Yt }, { 30: 236, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, s(Qt, o, { 5: 237 }), s(F, [2, 102]), s(y, [2, 35]), { 43: 238, 44: C, 45: 39, 47: 40, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, { 10: pt, 18: 239 }, { 10: rt, 60: at, 84: nt, 92: 240, 105: ut, 107: 241, 108: 242, 109: ot, 110: lt, 111: ct, 112: ht }, { 10: rt, 60: at, 84: nt, 92: 251, 104: [1, 252], 105: ut, 107: 241, 108: 242, 109: ot, 110: lt, 111: ct, 112: ht }, { 10: rt, 60: at, 84: nt, 92: 253, 104: [1, 254], 105: ut, 107: 241, 108: 242, 109: ot, 110: lt, 111: ct, 112: ht }, { 105: [1, 255] }, { 10: rt, 60: at, 84: nt, 92: 256, 105: ut, 107: 241, 108: 242, 109: ot, 110: lt, 111: ct, 112: ht }, { 44: C, 47: 257, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, s(B, [2, 108]), { 80: [1, 258] }, { 80: [1, 259], 98: [1, 260] }, s(B, [2, 116]), s(B, [2, 118], { 10: [1, 261] }), s(B, [2, 119]), s(z, [2, 56]), s(ft, [2, 87]), s(z, [2, 57]), { 51: [1, 262], 67: S, 82: 218, 116: D, 117: x, 118: T }, s(z, [2, 64]), s(z, [2, 59]), s(z, [2, 60]), s(z, [2, 61]), { 109: [1, 263] }, s(z, [2, 63]), s(z, [2, 65]), { 66: [1, 264], 67: S, 82: 218, 116: D, 117: x, 118: T }, s(z, [2, 67]), s(z, [2, 68]), s(z, [2, 70]), s(z, [2, 69]), s(z, [2, 71]), s([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), s(wt, [2, 78]), { 31: [1, 265], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 6: 11, 7: 12, 8: f, 9: c, 10: A, 11: r, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: k, 32: [1, 266], 33: 24, 34: E, 36: b, 38: L, 42: 28, 43: 38, 44: C, 45: 39, 47: 40, 60: d, 84: J, 85: W, 86: Z, 87: At, 88: Mt, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M, 121: Ut, 122: Wt, 123: zt, 124: jt }, s(kt, [2, 53]), { 43: 267, 44: C, 45: 39, 47: 40, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, s(B, [2, 121], { 106: Nt }), s(w1, [2, 130], { 108: 269, 10: rt, 60: at, 84: nt, 105: ut, 109: ot, 110: lt, 111: ct, 112: ht }), s($, [2, 132]), s($, [2, 134]), s($, [2, 135]), s($, [2, 136]), s($, [2, 137]), s($, [2, 138]), s($, [2, 139]), s($, [2, 140]), s($, [2, 141]), s(B, [2, 122], { 106: Nt }), { 10: [1, 270] }, s(B, [2, 123], { 106: Nt }), { 10: [1, 271] }, s(I1, [2, 129]), s(B, [2, 105], { 106: Nt }), s(B, [2, 106], { 113: 112, 44: C, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(B, [2, 110]), s(B, [2, 112], { 10: [1, 272] }), s(B, [2, 113]), { 98: [1, 273] }, { 51: [1, 274] }, { 62: [1, 275] }, { 66: [1, 276] }, { 8: et, 9: st, 11: it, 21: 277 }, s(y, [2, 34]), s(kt, [2, 52]), { 10: rt, 60: at, 84: nt, 105: ut, 107: 278, 108: 242, 109: ot, 110: lt, 111: ct, 112: ht }, s($, [2, 133]), { 14: xt, 44: Tt, 60: Et, 89: yt, 101: 279, 105: Ft, 106: _t, 109: Bt, 111: vt, 114: Lt, 115: Vt, 116: It, 120: 87 }, { 14: xt, 44: Tt, 60: Et, 89: yt, 101: 280, 105: Ft, 106: _t, 109: Bt, 111: vt, 114: Lt, 115: Vt, 116: It, 120: 87 }, { 98: [1, 281] }, s(B, [2, 120]), s(z, [2, 58]), { 30: 282, 67: S, 80: j, 81: K, 82: 171, 116: D, 117: x, 118: T }, s(z, [2, 66]), s(Qt, o, { 5: 283 }), s(w1, [2, 131], { 108: 269, 10: rt, 60: at, 84: nt, 105: ut, 109: ot, 110: lt, 111: ct, 112: ht }), s(B, [2, 126], { 120: 167, 10: [1, 284], 14: xt, 44: Tt, 60: Et, 89: yt, 105: Ft, 106: _t, 109: Bt, 111: vt, 114: Lt, 115: Vt, 116: It }), s(B, [2, 127], { 120: 167, 10: [1, 285], 14: xt, 44: Tt, 60: Et, 89: yt, 105: Ft, 106: _t, 109: Bt, 111: vt, 114: Lt, 115: Vt, 116: It }), s(B, [2, 114]), { 31: [1, 286], 67: S, 82: 218, 116: D, 117: x, 118: T }, { 6: 11, 7: 12, 8: f, 9: c, 10: A, 11: r, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: k, 32: [1, 287], 33: 24, 34: E, 36: b, 38: L, 42: 28, 43: 38, 44: C, 45: 39, 47: 40, 60: d, 84: J, 85: W, 86: Z, 87: At, 88: Mt, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M, 121: Ut, 122: Wt, 123: zt, 124: jt }, { 10: rt, 60: at, 84: nt, 92: 288, 105: ut, 107: 241, 108: 242, 109: ot, 110: lt, 111: ct, 112: ht }, { 10: rt, 60: at, 84: nt, 92: 289, 105: ut, 107: 241, 108: 242, 109: ot, 110: lt, 111: ct, 112: ht }, s(z, [2, 62]), s(y, [2, 33]), s(B, [2, 124], { 106: Nt }), s(B, [2, 125], { 106: Nt })],
954
+ defaultActions: {},
955
+ parseError: /* @__PURE__ */ m(function(h, p) {
956
+ if (p.recoverable)
957
+ this.trace(h);
958
+ else {
959
+ var g = new Error(h);
960
+ throw g.hash = p, g;
961
+ }
962
+ }, "parseError"),
963
+ parse: /* @__PURE__ */ m(function(h) {
964
+ var p = this, g = [0], l = [], _ = [null], t = [], Pt = this.table, e = "", v = 0, R1 = 0, z1 = 2, N1 = 1, j1 = t.slice.call(arguments, 1), U = Object.create(this.lexer), mt = { yy: {} };
965
+ for (var Zt in this.yy)
966
+ Object.prototype.hasOwnProperty.call(this.yy, Zt) && (mt.yy[Zt] = this.yy[Zt]);
967
+ U.setInput(h, mt.yy), mt.yy.lexer = U, mt.yy.parser = this, typeof U.yylloc > "u" && (U.yylloc = {});
968
+ var $t = U.yylloc;
969
+ t.push($t);
970
+ var K1 = U.options && U.options.ranges;
971
+ typeof mt.yy.parseError == "function" ? this.parseError = mt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
972
+ function Y1(X) {
973
+ g.length = g.length - 2 * X, _.length = _.length - X, t.length = t.length - X;
974
+ }
975
+ m(Y1, "popStack");
976
+ function G1() {
977
+ var X;
978
+ return X = l.pop() || U.lex() || N1, typeof X != "number" && (X instanceof Array && (l = X, X = l.pop()), X = p.symbols_[X] || X), X;
979
+ }
980
+ m(G1, "lex");
981
+ for (var Y, Ct, Q, t1, Gt = {}, Ht, dt, P1, Xt; ; ) {
982
+ if (Ct = g[g.length - 1], this.defaultActions[Ct] ? Q = this.defaultActions[Ct] : ((Y === null || typeof Y > "u") && (Y = G1()), Q = Pt[Ct] && Pt[Ct][Y]), typeof Q > "u" || !Q.length || !Q[0]) {
983
+ var e1 = "";
984
+ Xt = [];
985
+ for (Ht in Pt[Ct])
986
+ this.terminals_[Ht] && Ht > z1 && Xt.push("'" + this.terminals_[Ht] + "'");
987
+ U.showPosition ? e1 = "Parse error on line " + (v + 1) + `:
988
+ ` + U.showPosition() + `
989
+ Expecting ` + Xt.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : e1 = "Parse error on line " + (v + 1) + ": Unexpected " + (Y == N1 ? "end of input" : "'" + (this.terminals_[Y] || Y) + "'"), this.parseError(e1, {
990
+ text: U.match,
991
+ token: this.terminals_[Y] || Y,
992
+ line: U.yylineno,
993
+ loc: $t,
994
+ expected: Xt
995
+ });
996
+ }
997
+ if (Q[0] instanceof Array && Q.length > 1)
998
+ throw new Error("Parse Error: multiple actions possible at state: " + Ct + ", token: " + Y);
999
+ switch (Q[0]) {
1000
+ case 1:
1001
+ g.push(Y), _.push(U.yytext), t.push(U.yylloc), g.push(Q[1]), Y = null, R1 = U.yyleng, e = U.yytext, v = U.yylineno, $t = U.yylloc;
1002
+ break;
1003
+ case 2:
1004
+ if (dt = this.productions_[Q[1]][1], Gt.$ = _[_.length - dt], Gt._$ = {
1005
+ first_line: t[t.length - (dt || 1)].first_line,
1006
+ last_line: t[t.length - 1].last_line,
1007
+ first_column: t[t.length - (dt || 1)].first_column,
1008
+ last_column: t[t.length - 1].last_column
1009
+ }, K1 && (Gt._$.range = [
1010
+ t[t.length - (dt || 1)].range[0],
1011
+ t[t.length - 1].range[1]
1012
+ ]), t1 = this.performAction.apply(Gt, [
1013
+ e,
1014
+ R1,
1015
+ v,
1016
+ mt.yy,
1017
+ Q[1],
1018
+ _,
1019
+ t
1020
+ ].concat(j1)), typeof t1 < "u")
1021
+ return t1;
1022
+ dt && (g = g.slice(0, -1 * dt * 2), _ = _.slice(0, -1 * dt), t = t.slice(0, -1 * dt)), g.push(this.productions_[Q[1]][0]), _.push(Gt.$), t.push(Gt._$), P1 = Pt[g[g.length - 2]][g[g.length - 1]], g.push(P1);
1023
+ break;
1024
+ case 3:
1025
+ return !0;
1026
+ }
1027
+ }
1028
+ return !0;
1029
+ }, "parse")
1030
+ }, W1 = /* @__PURE__ */ function() {
1031
+ var gt = {
1032
+ EOF: 1,
1033
+ parseError: /* @__PURE__ */ m(function(p, g) {
1034
+ if (this.yy.parser)
1035
+ this.yy.parser.parseError(p, g);
1036
+ else
1037
+ throw new Error(p);
1038
+ }, "parseError"),
1039
+ // resets the lexer, sets new input
1040
+ setInput: /* @__PURE__ */ m(function(h, p) {
1041
+ return this.yy = p || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1042
+ first_line: 1,
1043
+ first_column: 0,
1044
+ last_line: 1,
1045
+ last_column: 0
1046
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1047
+ }, "setInput"),
1048
+ // consumes and returns one char from the input
1049
+ input: /* @__PURE__ */ m(function() {
1050
+ var h = this._input[0];
1051
+ this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
1052
+ var p = h.match(/(?:\r\n?|\n).*/g);
1053
+ return p ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
1054
+ }, "input"),
1055
+ // unshifts one char (or a string) into the input
1056
+ unput: /* @__PURE__ */ m(function(h) {
1057
+ var p = h.length, g = h.split(/(?:\r\n?|\n)/g);
1058
+ this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - p), this.offset -= p;
1059
+ var l = this.match.split(/(?:\r\n?|\n)/g);
1060
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
1061
+ var _ = this.yylloc.range;
1062
+ return this.yylloc = {
1063
+ first_line: this.yylloc.first_line,
1064
+ last_line: this.yylineno + 1,
1065
+ first_column: this.yylloc.first_column,
1066
+ last_column: g ? (g.length === l.length ? this.yylloc.first_column : 0) + l[l.length - g.length].length - g[0].length : this.yylloc.first_column - p
1067
+ }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - p]), this.yyleng = this.yytext.length, this;
1068
+ }, "unput"),
1069
+ // When called from action, caches matched text and appends it on next action
1070
+ more: /* @__PURE__ */ m(function() {
1071
+ return this._more = !0, this;
1072
+ }, "more"),
1073
+ // 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.
1074
+ reject: /* @__PURE__ */ m(function() {
1075
+ if (this.options.backtrack_lexer)
1076
+ this._backtrack = !0;
1077
+ else
1078
+ 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).
1079
+ ` + this.showPosition(), {
1080
+ text: "",
1081
+ token: null,
1082
+ line: this.yylineno
1083
+ });
1084
+ return this;
1085
+ }, "reject"),
1086
+ // retain first n characters of the match
1087
+ less: /* @__PURE__ */ m(function(h) {
1088
+ this.unput(this.match.slice(h));
1089
+ }, "less"),
1090
+ // displays already matched input, i.e. for error messages
1091
+ pastInput: /* @__PURE__ */ m(function() {
1092
+ var h = this.matched.substr(0, this.matched.length - this.match.length);
1093
+ return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
1094
+ }, "pastInput"),
1095
+ // displays upcoming input, i.e. for error messages
1096
+ upcomingInput: /* @__PURE__ */ m(function() {
1097
+ var h = this.match;
1098
+ return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
1099
+ }, "upcomingInput"),
1100
+ // displays the character position where the lexing error occurred, i.e. for error messages
1101
+ showPosition: /* @__PURE__ */ m(function() {
1102
+ var h = this.pastInput(), p = new Array(h.length + 1).join("-");
1103
+ return h + this.upcomingInput() + `
1104
+ ` + p + "^";
1105
+ }, "showPosition"),
1106
+ // test the lexed token: return FALSE when not a match, otherwise return token
1107
+ test_match: /* @__PURE__ */ m(function(h, p) {
1108
+ var g, l, _;
1109
+ if (this.options.backtrack_lexer && (_ = {
1110
+ yylineno: this.yylineno,
1111
+ yylloc: {
1112
+ first_line: this.yylloc.first_line,
1113
+ last_line: this.last_line,
1114
+ first_column: this.yylloc.first_column,
1115
+ last_column: this.yylloc.last_column
1116
+ },
1117
+ yytext: this.yytext,
1118
+ match: this.match,
1119
+ matches: this.matches,
1120
+ matched: this.matched,
1121
+ yyleng: this.yyleng,
1122
+ offset: this.offset,
1123
+ _more: this._more,
1124
+ _input: this._input,
1125
+ yy: this.yy,
1126
+ conditionStack: this.conditionStack.slice(0),
1127
+ done: this.done
1128
+ }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), l = h[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
1129
+ first_line: this.yylloc.last_line,
1130
+ last_line: this.yylineno + 1,
1131
+ first_column: this.yylloc.last_column,
1132
+ last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
1133
+ }, this.yytext += h[0], this.match += h[0], this.matches = h, 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(h[0].length), this.matched += h[0], g = this.performAction.call(this, this.yy, this, p, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
1134
+ return g;
1135
+ if (this._backtrack) {
1136
+ for (var t in _)
1137
+ this[t] = _[t];
1138
+ return !1;
1139
+ }
1140
+ return !1;
1141
+ }, "test_match"),
1142
+ // return next match in input
1143
+ next: /* @__PURE__ */ m(function() {
1144
+ if (this.done)
1145
+ return this.EOF;
1146
+ this._input || (this.done = !0);
1147
+ var h, p, g, l;
1148
+ this._more || (this.yytext = "", this.match = "");
1149
+ for (var _ = this._currentRules(), t = 0; t < _.length; t++)
1150
+ if (g = this._input.match(this.rules[_[t]]), g && (!p || g[0].length > p[0].length)) {
1151
+ if (p = g, l = t, this.options.backtrack_lexer) {
1152
+ if (h = this.test_match(g, _[t]), h !== !1)
1153
+ return h;
1154
+ if (this._backtrack) {
1155
+ p = !1;
1156
+ continue;
1157
+ } else
1158
+ return !1;
1159
+ } else if (!this.options.flex)
1160
+ break;
1161
+ }
1162
+ return p ? (h = this.test_match(p, _[l]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1163
+ ` + this.showPosition(), {
1164
+ text: "",
1165
+ token: null,
1166
+ line: this.yylineno
1167
+ });
1168
+ }, "next"),
1169
+ // return next match that has a token
1170
+ lex: /* @__PURE__ */ m(function() {
1171
+ var p = this.next();
1172
+ return p || this.lex();
1173
+ }, "lex"),
1174
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1175
+ begin: /* @__PURE__ */ m(function(p) {
1176
+ this.conditionStack.push(p);
1177
+ }, "begin"),
1178
+ // pop the previously active lexer condition state off the condition stack
1179
+ popState: /* @__PURE__ */ m(function() {
1180
+ var p = this.conditionStack.length - 1;
1181
+ return p > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1182
+ }, "popState"),
1183
+ // produce the lexer rule set which is active for the currently active lexer condition state
1184
+ _currentRules: /* @__PURE__ */ m(function() {
1185
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1186
+ }, "_currentRules"),
1187
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1188
+ topState: /* @__PURE__ */ m(function(p) {
1189
+ return p = this.conditionStack.length - 1 - Math.abs(p || 0), p >= 0 ? this.conditionStack[p] : "INITIAL";
1190
+ }, "topState"),
1191
+ // alias for begin(condition)
1192
+ pushState: /* @__PURE__ */ m(function(p) {
1193
+ this.begin(p);
1194
+ }, "pushState"),
1195
+ // return the number of states currently on the stack
1196
+ stateStackSize: /* @__PURE__ */ m(function() {
1197
+ return this.conditionStack.length;
1198
+ }, "stateStackSize"),
1199
+ options: {},
1200
+ performAction: /* @__PURE__ */ m(function(p, g, l, _) {
1201
+ switch (l) {
1202
+ case 0:
1203
+ return this.begin("acc_title"), 34;
1204
+ case 1:
1205
+ return this.popState(), "acc_title_value";
1206
+ case 2:
1207
+ return this.begin("acc_descr"), 36;
1208
+ case 3:
1209
+ return this.popState(), "acc_descr_value";
1210
+ case 4:
1211
+ this.begin("acc_descr_multiline");
1212
+ break;
1213
+ case 5:
1214
+ this.popState();
1215
+ break;
1216
+ case 6:
1217
+ return "acc_descr_multiline_value";
1218
+ case 7:
1219
+ return this.pushState("shapeData"), g.yytext = "", 40;
1220
+ case 8:
1221
+ return this.pushState("shapeDataStr"), 40;
1222
+ case 9:
1223
+ return this.popState(), 40;
1224
+ case 10:
1225
+ const t = /\n\s*/g;
1226
+ return g.yytext = g.yytext.replace(t, "<br/>"), 40;
1227
+ case 11:
1228
+ return 40;
1229
+ case 12:
1230
+ this.popState();
1231
+ break;
1232
+ case 13:
1233
+ this.begin("callbackname");
1234
+ break;
1235
+ case 14:
1236
+ this.popState();
1237
+ break;
1238
+ case 15:
1239
+ this.popState(), this.begin("callbackargs");
1240
+ break;
1241
+ case 16:
1242
+ return 95;
1243
+ case 17:
1244
+ this.popState();
1245
+ break;
1246
+ case 18:
1247
+ return 96;
1248
+ case 19:
1249
+ return "MD_STR";
1250
+ case 20:
1251
+ this.popState();
1252
+ break;
1253
+ case 21:
1254
+ this.begin("md_string");
1255
+ break;
1256
+ case 22:
1257
+ return "STR";
1258
+ case 23:
1259
+ this.popState();
1260
+ break;
1261
+ case 24:
1262
+ this.pushState("string");
1263
+ break;
1264
+ case 25:
1265
+ return 84;
1266
+ case 26:
1267
+ return 102;
1268
+ case 27:
1269
+ return 85;
1270
+ case 28:
1271
+ return 104;
1272
+ case 29:
1273
+ return 86;
1274
+ case 30:
1275
+ return 87;
1276
+ case 31:
1277
+ return 97;
1278
+ case 32:
1279
+ this.begin("click");
1280
+ break;
1281
+ case 33:
1282
+ this.popState();
1283
+ break;
1284
+ case 34:
1285
+ return 88;
1286
+ case 35:
1287
+ return p.lex.firstGraph() && this.begin("dir"), 12;
1288
+ case 36:
1289
+ return p.lex.firstGraph() && this.begin("dir"), 12;
1290
+ case 37:
1291
+ return p.lex.firstGraph() && this.begin("dir"), 12;
1292
+ case 38:
1293
+ return 27;
1294
+ case 39:
1295
+ return 32;
1296
+ case 40:
1297
+ return 98;
1298
+ case 41:
1299
+ return 98;
1300
+ case 42:
1301
+ return 98;
1302
+ case 43:
1303
+ return 98;
1304
+ case 44:
1305
+ return this.popState(), 13;
1306
+ case 45:
1307
+ return this.popState(), 14;
1308
+ case 46:
1309
+ return this.popState(), 14;
1310
+ case 47:
1311
+ return this.popState(), 14;
1312
+ case 48:
1313
+ return this.popState(), 14;
1314
+ case 49:
1315
+ return this.popState(), 14;
1316
+ case 50:
1317
+ return this.popState(), 14;
1318
+ case 51:
1319
+ return this.popState(), 14;
1320
+ case 52:
1321
+ return this.popState(), 14;
1322
+ case 53:
1323
+ return this.popState(), 14;
1324
+ case 54:
1325
+ return this.popState(), 14;
1326
+ case 55:
1327
+ return 121;
1328
+ case 56:
1329
+ return 122;
1330
+ case 57:
1331
+ return 123;
1332
+ case 58:
1333
+ return 124;
1334
+ case 59:
1335
+ return 78;
1336
+ case 60:
1337
+ return 105;
1338
+ case 61:
1339
+ return 111;
1340
+ case 62:
1341
+ return 46;
1342
+ case 63:
1343
+ return 60;
1344
+ case 64:
1345
+ return 44;
1346
+ case 65:
1347
+ return 8;
1348
+ case 66:
1349
+ return 106;
1350
+ case 67:
1351
+ return 115;
1352
+ case 68:
1353
+ return this.popState(), 77;
1354
+ case 69:
1355
+ return this.pushState("edgeText"), 75;
1356
+ case 70:
1357
+ return 119;
1358
+ case 71:
1359
+ return this.popState(), 77;
1360
+ case 72:
1361
+ return this.pushState("thickEdgeText"), 75;
1362
+ case 73:
1363
+ return 119;
1364
+ case 74:
1365
+ return this.popState(), 77;
1366
+ case 75:
1367
+ return this.pushState("dottedEdgeText"), 75;
1368
+ case 76:
1369
+ return 119;
1370
+ case 77:
1371
+ return 77;
1372
+ case 78:
1373
+ return this.popState(), 53;
1374
+ case 79:
1375
+ return "TEXT";
1376
+ case 80:
1377
+ return this.pushState("ellipseText"), 52;
1378
+ case 81:
1379
+ return this.popState(), 55;
1380
+ case 82:
1381
+ return this.pushState("text"), 54;
1382
+ case 83:
1383
+ return this.popState(), 57;
1384
+ case 84:
1385
+ return this.pushState("text"), 56;
1386
+ case 85:
1387
+ return 58;
1388
+ case 86:
1389
+ return this.pushState("text"), 67;
1390
+ case 87:
1391
+ return this.popState(), 64;
1392
+ case 88:
1393
+ return this.pushState("text"), 63;
1394
+ case 89:
1395
+ return this.popState(), 49;
1396
+ case 90:
1397
+ return this.pushState("text"), 48;
1398
+ case 91:
1399
+ return this.popState(), 69;
1400
+ case 92:
1401
+ return this.popState(), 71;
1402
+ case 93:
1403
+ return 117;
1404
+ case 94:
1405
+ return this.pushState("trapText"), 68;
1406
+ case 95:
1407
+ return this.pushState("trapText"), 70;
1408
+ case 96:
1409
+ return 118;
1410
+ case 97:
1411
+ return 67;
1412
+ case 98:
1413
+ return 90;
1414
+ case 99:
1415
+ return "SEP";
1416
+ case 100:
1417
+ return 89;
1418
+ case 101:
1419
+ return 115;
1420
+ case 102:
1421
+ return 111;
1422
+ case 103:
1423
+ return 44;
1424
+ case 104:
1425
+ return 109;
1426
+ case 105:
1427
+ return 114;
1428
+ case 106:
1429
+ return 116;
1430
+ case 107:
1431
+ return this.popState(), 62;
1432
+ case 108:
1433
+ return this.pushState("text"), 62;
1434
+ case 109:
1435
+ return this.popState(), 51;
1436
+ case 110:
1437
+ return this.pushState("text"), 50;
1438
+ case 111:
1439
+ return this.popState(), 31;
1440
+ case 112:
1441
+ return this.pushState("text"), 29;
1442
+ case 113:
1443
+ return this.popState(), 66;
1444
+ case 114:
1445
+ return this.pushState("text"), 65;
1446
+ case 115:
1447
+ return "TEXT";
1448
+ case 116:
1449
+ return "QUOTE";
1450
+ case 117:
1451
+ return 9;
1452
+ case 118:
1453
+ return 10;
1454
+ case 119:
1455
+ return 11;
1456
+ }
1457
+ }, "anonymous"),
1458
+ rules: [/^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:@\{)/, /^(?:["])/, /^(?:["])/, /^(?:[^\"]+)/, /^(?:[^}^"]+)/, /^(?:\})/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["][`])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:["])/, /^(?:style\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\b)/, /^(?:class\b)/, /^(?:href[\s])/, /^(?:click[\s]+)/, /^(?:[\s\n])/, /^(?:[^\s\n]*)/, /^(?:flowchart-elk\b)/, /^(?:graph\b)/, /^(?:flowchart\b)/, /^(?:subgraph\b)/, /^(?:end\b\s*)/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:(\r?\n)*\s*\n)/, /^(?:\s*LR\b)/, /^(?:\s*RL\b)/, /^(?:\s*TB\b)/, /^(?:\s*BT\b)/, /^(?:\s*TD\b)/, /^(?:\s*BR\b)/, /^(?:\s*<)/, /^(?:\s*>)/, /^(?:\s*\^)/, /^(?:\s*v\b)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:[^\s\"]+@(?=[^\{\"]))/, /^(?:[0-9]+)/, /^(?:#)/, /^(?::::)/, /^(?::)/, /^(?:&)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:[^-]|-(?!-)+)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:[^=]|=(?!))/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:[^\.]|\.(?!))/, /^(?:\s*~~[\~]+\s*)/, /^(?:[-/\)][\)])/, /^(?:[^\(\)\[\]\{\}]|!\)+)/, /^(?:\(-)/, /^(?:\]\))/, /^(?:\(\[)/, /^(?:\]\])/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:>)/, /^(?:\)\])/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\(\(\()/, /^(?:[\\(?=\])][\]])/, /^(?:\/(?=\])\])/, /^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:<)/, /^(?:>)/, /^(?:\^)/, /^(?:\\\|)/, /^(?:v\b)/, /^(?:\*)/, /^(?:#)/, /^(?:&)/, /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/, /^(?:-)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\|)/, /^(?:\|)/, /^(?:\))/, /^(?:\()/, /^(?:\])/, /^(?:\[)/, /^(?:(\}))/, /^(?:\{)/, /^(?:[^\[\]\(\)\{\}\|\"]+)/, /^(?:")/, /^(?:(\r?\n)+)/, /^(?:\s)/, /^(?:$)/],
1459
+ conditions: { shapeDataEndBracket: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, shapeDataStr: { rules: [9, 10, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, shapeData: { rules: [8, 11, 12, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, callbackargs: { rules: [17, 18, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, callbackname: { rules: [14, 15, 16, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, href: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, click: { rules: [21, 24, 33, 34, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, dottedEdgeText: { rules: [21, 24, 74, 76, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, thickEdgeText: { rules: [21, 24, 71, 73, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, edgeText: { rules: [21, 24, 68, 70, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, trapText: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 91, 92, 93, 94, 95, 108, 110, 112, 114], inclusive: !1 }, ellipseText: { rules: [21, 24, 77, 78, 79, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, text: { rules: [21, 24, 77, 80, 81, 82, 83, 84, 87, 88, 89, 90, 94, 95, 107, 108, 109, 110, 111, 112, 113, 114, 115], inclusive: !1 }, vertex: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, dir: { rules: [21, 24, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, acc_descr: { rules: [3, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, acc_title: { rules: [1, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, md_string: { rules: [19, 20, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, string: { rules: [21, 22, 23, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 13, 21, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 74, 75, 77, 80, 82, 84, 85, 86, 88, 90, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 108, 110, 112, 114, 116, 117, 118, 119], inclusive: !0 } }
1460
+ };
1461
+ return gt;
1462
+ }();
1463
+ Jt.lexer = W1;
1464
+ function qt() {
1465
+ this.yy = {};
1466
+ }
1467
+ return m(qt, "Parser"), qt.prototype = Jt, Jt.Parser = qt, new qt();
1468
+ }();
1469
+ r1.parser = r1;
1470
+ var M1 = r1, U1 = Object.assign({}, M1);
1471
+ U1.parse = (s) => {
1472
+ const i = s.replace(/}\s*\n/g, `}
1473
+ `);
1474
+ return M1.parse(i);
1475
+ };
1476
+ var Ae = U1, ke = /* @__PURE__ */ m((s, i) => {
1477
+ const a = he, n = a(s, "r"), u = a(s, "g"), o = a(s, "b");
1478
+ return oe(n, u, o, i);
1479
+ }, "fade"), me = /* @__PURE__ */ m((s) => `.label {
1480
+ font-family: ${s.fontFamily};
1481
+ color: ${s.nodeTextColor || s.textColor};
1482
+ }
1483
+ .cluster-label text {
1484
+ fill: ${s.titleColor};
1485
+ }
1486
+ .cluster-label span {
1487
+ color: ${s.titleColor};
1488
+ }
1489
+ .cluster-label span p {
1490
+ background-color: transparent;
1491
+ }
1492
+
1493
+ .label text,span {
1494
+ fill: ${s.nodeTextColor || s.textColor};
1495
+ color: ${s.nodeTextColor || s.textColor};
1496
+ }
1497
+
1498
+ .node rect,
1499
+ .node circle,
1500
+ .node ellipse,
1501
+ .node polygon,
1502
+ .node path {
1503
+ fill: ${s.mainBkg};
1504
+ stroke: ${s.nodeBorder};
1505
+ stroke-width: 1px;
1506
+ }
1507
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1508
+ text-anchor: middle;
1509
+ }
1510
+ // .flowchart-label .text-outer-tspan {
1511
+ // text-anchor: middle;
1512
+ // }
1513
+ // .flowchart-label .text-inner-tspan {
1514
+ // text-anchor: start;
1515
+ // }
1516
+
1517
+ .node .katex path {
1518
+ fill: #000;
1519
+ stroke: #000;
1520
+ stroke-width: 1px;
1521
+ }
1522
+
1523
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1524
+ text-align: center;
1525
+ }
1526
+ .node.clickable {
1527
+ cursor: pointer;
1528
+ }
1529
+
1530
+
1531
+ .root .anchor path {
1532
+ fill: ${s.lineColor} !important;
1533
+ stroke-width: 0;
1534
+ stroke: ${s.lineColor};
1535
+ }
1536
+
1537
+ .arrowheadPath {
1538
+ fill: ${s.arrowheadColor};
1539
+ }
1540
+
1541
+ .edgePath .path {
1542
+ stroke: ${s.lineColor};
1543
+ stroke-width: 2.0px;
1544
+ }
1545
+
1546
+ .flowchart-link {
1547
+ stroke: ${s.lineColor};
1548
+ fill: none;
1549
+ }
1550
+
1551
+ .edgeLabel {
1552
+ background-color: ${s.edgeLabelBackground};
1553
+ p {
1554
+ background-color: ${s.edgeLabelBackground};
1555
+ }
1556
+ rect {
1557
+ opacity: 0.5;
1558
+ background-color: ${s.edgeLabelBackground};
1559
+ fill: ${s.edgeLabelBackground};
1560
+ }
1561
+ text-align: center;
1562
+ }
1563
+
1564
+ /* For html labels only */
1565
+ .labelBkg {
1566
+ background-color: ${ke(s.edgeLabelBackground, 0.5)};
1567
+ // background-color:
1568
+ }
1569
+
1570
+ .cluster rect {
1571
+ fill: ${s.clusterBkg};
1572
+ stroke: ${s.clusterBorder};
1573
+ stroke-width: 1px;
1574
+ }
1575
+
1576
+ .cluster text {
1577
+ fill: ${s.titleColor};
1578
+ }
1579
+
1580
+ .cluster span {
1581
+ color: ${s.titleColor};
1582
+ }
1583
+ /* .cluster div {
1584
+ color: ${s.titleColor};
1585
+ } */
1586
+
1587
+ div.mermaidTooltip {
1588
+ position: absolute;
1589
+ text-align: center;
1590
+ max-width: 200px;
1591
+ padding: 2px;
1592
+ font-family: ${s.fontFamily};
1593
+ font-size: 12px;
1594
+ background: ${s.tertiaryColor};
1595
+ border: 1px solid ${s.border2};
1596
+ border-radius: 2px;
1597
+ pointer-events: none;
1598
+ z-index: 100;
1599
+ }
1600
+
1601
+ .flowchartTitleText {
1602
+ text-anchor: middle;
1603
+ font-size: 18px;
1604
+ fill: ${s.textColor};
1605
+ }
1606
+
1607
+ rect.text {
1608
+ fill: none;
1609
+ stroke-width: 0;
1610
+ }
1611
+
1612
+ .icon-shape, .image-shape {
1613
+ background-color: ${s.edgeLabelBackground};
1614
+ p {
1615
+ background-color: ${s.edgeLabelBackground};
1616
+ padding: 2px;
1617
+ }
1618
+ rect {
1619
+ opacity: 0.5;
1620
+ background-color: ${s.edgeLabelBackground};
1621
+ fill: ${s.edgeLabelBackground};
1622
+ }
1623
+ text-align: center;
1624
+ }
1625
+ ${q1()}
1626
+ `, "getStyles"), Ce = me, Ge = {
1627
+ parser: Ae,
1628
+ get db() {
1629
+ return new pe();
1630
+ },
1631
+ renderer: be,
1632
+ styles: Ce,
1633
+ init: /* @__PURE__ */ m((s) => {
1634
+ s.flowchart || (s.flowchart = {}), s.layout && O1({ layout: s.layout }), s.flowchart.arrowMarkerAbsolute = s.arrowMarkerAbsolute, O1({ flowchart: { arrowMarkerAbsolute: s.arrowMarkerAbsolute } });
1635
+ }, "init")
1636
+ };
1637
+ export {
1638
+ Ge as diagram
1639
+ };