@bytechain.cn/colamd 1.5.1 → 2.7.7

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 (398) hide show
  1. package/LICENSE +22 -21
  2. package/README.md +160 -1012
  3. package/README_CN.md +210 -1070
  4. package/dist/main/chunks/docx-export.js +29695 -0
  5. package/dist/main/chunks/image-export.js +175 -0
  6. package/dist/main/index.js +17765 -452
  7. package/dist/preload/index.js +135 -23
  8. package/dist/renderer/assets/2DXBBFLN-BmaQ8lqV.js +667 -0
  9. package/dist/renderer/assets/46IJ22JX-Caywmaj-.js +854 -0
  10. package/dist/renderer/assets/4TTDE5I4-C82Tw8vO.js +502 -0
  11. package/dist/renderer/assets/4UF3HTLV-BD8W-BSm.js +30 -0
  12. package/dist/renderer/assets/5THPTBWS-2mBFupjU.js +21 -0
  13. package/dist/renderer/assets/7WLXJQOR-C8MM6Bra.js +23 -0
  14. package/dist/renderer/assets/AAXQQPKT-CCArPgA1.js +1131 -0
  15. package/dist/renderer/assets/AKE5O7KZ-DOAgUvEX.js +185 -0
  16. package/dist/renderer/assets/BNMLP6AG-igM96Ol7.js +805 -0
  17. package/dist/renderer/assets/DKTLEL5E-Dj3316cp.js +42 -0
  18. package/dist/renderer/assets/DR6PKOQU-C-e6zzyf.js +302 -0
  19. package/dist/renderer/assets/E4RJ7UJB-BMF4zoOQ.js +442 -0
  20. package/dist/renderer/assets/ELSXBIJH-BI2ySIoX.js +39 -0
  21. package/dist/renderer/assets/ERTIBQVS-CnvF3w9r.js +183 -0
  22. package/dist/renderer/assets/F653G4FO-CgzvjfOe.js +1498 -0
  23. package/dist/renderer/assets/FKCDD66M-BkVPFntx.js +205 -0
  24. package/dist/renderer/assets/FP7KDXVC-K0VCFuri.js +222 -0
  25. package/dist/renderer/assets/FT5I3RHX-zgsvTvBh.js +244 -0
  26. package/dist/renderer/assets/FTXIJQGB-BX14b7pN.js +13 -0
  27. package/dist/renderer/assets/G3MDBVQH-qZ3yfAIw.js +25 -0
  28. package/dist/renderer/assets/GY35JXOZ-Lo9DxsPK.js +169 -0
  29. package/dist/renderer/assets/H5EEJPP2-Bw2musel.js +354 -0
  30. package/dist/renderer/assets/HWDLEDTA-CCOSSl9K.js +982 -0
  31. package/dist/renderer/assets/JZWSX6AR-BBtw8K-1.js +67 -0
  32. package/dist/renderer/assets/KQOEJWJY-Brg31xSn.js +84 -0
  33. package/dist/renderer/assets/KS3BB3KE-2GQdjVNT.js +139 -0
  34. package/dist/renderer/assets/KXJRRZHI-B0Oj-tMS.js +503 -0
  35. package/dist/renderer/assets/MFVI5XKI-BpwEOECT.js +10 -0
  36. package/dist/renderer/assets/MWY2J62P-CSmi7lMQ.js +1103 -0
  37. package/dist/renderer/assets/MXGNCBL2-CSoCLfJw.js +217 -0
  38. package/dist/renderer/assets/N6DAJLIZ-DB-xlSjM.js +120 -0
  39. package/dist/renderer/assets/NU5M23IW-BhGgUeDk.js +117 -0
  40. package/dist/renderer/assets/NV4XNBIS-DMg8ibKU.js +1221 -0
  41. package/dist/renderer/assets/OGLU4SIR-DOU7cIL3.js +290 -0
  42. package/dist/renderer/assets/OUNS5N76-BO_k5M0O.js +1065 -0
  43. package/dist/renderer/assets/PU4ISKXV-Cw53csyu.js +516 -0
  44. package/dist/renderer/assets/PUZGS23X-_iUQg51-.js +21 -0
  45. package/dist/renderer/assets/Q3IYVLG5-ZFBZi3vs.js +501 -0
  46. package/dist/renderer/assets/QYHQDLKZ-BPb6lHi6.js +984 -0
  47. package/dist/renderer/assets/RVARI57O-DMrXgtoB.js +10 -0
  48. package/dist/renderer/assets/RZSVICHU-I7fvqLMQ.js +263 -0
  49. package/dist/renderer/assets/UEXXS2NB-AVpw2xTC.js +25 -0
  50. package/dist/renderer/assets/UHTQJXKL-6oSc4D2k.js +135 -0
  51. package/dist/renderer/assets/URA2L2QI-DkFUeeK0.js +201 -0
  52. package/dist/renderer/assets/UXCHDUKG-B54p4156.js +174 -0
  53. package/dist/renderer/assets/VKNV3BUX-Cc_4x0WI.js +278 -0
  54. package/dist/renderer/assets/VMV7XPHP-BjfrE66I.js +127 -0
  55. package/dist/renderer/assets/WEVWDWVA-Ca8eMbXN.js +57 -0
  56. package/dist/renderer/assets/XRRJ35LF-EWRU-xXu.js +120 -0
  57. package/dist/renderer/assets/YFKBLVVN-D2oaE2c2.js +991 -0
  58. package/dist/renderer/assets/YHRE5QGZ-ucJgE2vP.js +698 -0
  59. package/dist/renderer/assets/ZF3OVT4B-SN2E7Wbi.js +421 -0
  60. package/dist/renderer/assets/apl-fqmucPXA.js +140 -0
  61. package/dist/renderer/assets/asciiarmor-DucZyvP0.js +56 -0
  62. package/dist/renderer/assets/asn1-BnOEsgAm.js +144 -0
  63. package/dist/renderer/assets/asterisk-QAlztEwS.js +345 -0
  64. package/dist/renderer/assets/brainfuck-DZVCuF_t.js +53 -0
  65. package/dist/renderer/assets/clike-xqXYL6ge.js +805 -0
  66. package/dist/renderer/assets/clojure-BhXMqnxz.js +849 -0
  67. package/dist/renderer/assets/cmake-BGaNd9E7.js +71 -0
  68. package/dist/renderer/assets/cobol-4yqQntpt.js +120 -0
  69. package/dist/renderer/assets/coffeescript-D2dXvhEc.js +308 -0
  70. package/dist/renderer/assets/commonlisp-CF_VNHQR.js +130 -0
  71. package/dist/renderer/assets/crystal-DyuLTqLs.js +398 -0
  72. package/dist/renderer/assets/css-c-jst79C.js +1783 -0
  73. package/dist/renderer/assets/cypher-Dlu_3r4V.js +121 -0
  74. package/dist/renderer/assets/d-UURgV0Ux.js +179 -0
  75. package/dist/renderer/assets/diff-B_Bi2Crb.js +25 -0
  76. package/dist/renderer/assets/dockerfile-Bvk733Ga.js +201 -0
  77. package/dist/renderer/assets/dtd-Dy74G54E.js +114 -0
  78. package/dist/renderer/assets/dylan-TSb-Nfix.js +314 -0
  79. package/dist/renderer/assets/ebnf-4fKAGW3a.js +140 -0
  80. package/dist/renderer/assets/ecl-B59qGGVg.js +178 -0
  81. package/dist/renderer/assets/eiffel-Dze7nlu3.js +134 -0
  82. package/dist/renderer/assets/elm-DG7jkhNZ.js +176 -0
  83. package/dist/renderer/assets/erlang-BO6gOnGA.js +674 -0
  84. package/dist/renderer/assets/factor-CMxFHDqz.js +65 -0
  85. package/dist/renderer/assets/fcl-CDDUNjTj.js +141 -0
  86. package/dist/renderer/assets/forth-B9D2JCeE.js +116 -0
  87. package/dist/renderer/assets/fortran-CAG2BFbe.js +467 -0
  88. package/dist/renderer/assets/gas-d3KEcW3x.js +294 -0
  89. package/dist/renderer/assets/gherkin-DhZlEZiy.js +115 -0
  90. package/dist/renderer/assets/groovy-CpwJiBl7.js +223 -0
  91. package/dist/renderer/assets/haskell-ySd-OUo8.js +459 -0
  92. package/dist/renderer/assets/haxe-7MlzfeYV.js +514 -0
  93. package/dist/renderer/assets/http-BqypyemW.js +79 -0
  94. package/dist/renderer/assets/idl-4HIGJlDI.js +985 -0
  95. package/dist/renderer/assets/index-6G13Twgt.js +311 -0
  96. package/dist/renderer/assets/index-B2_pQa3G.js +384 -0
  97. package/dist/renderer/assets/index-B4keY9Xz.js +328 -0
  98. package/dist/renderer/assets/index-B5Jih3QA.js +47421 -0
  99. package/dist/renderer/assets/index-BH0PaTow.js +405 -0
  100. package/dist/renderer/assets/index-BWfIKsyn.js +8 -0
  101. package/dist/renderer/assets/index-B_BLxvag.js +156 -0
  102. package/dist/renderer/assets/index-BnXxA35e.js +325 -0
  103. package/dist/renderer/assets/index-Bu1PrnbA.js +81 -0
  104. package/dist/renderer/assets/index-BvXJHaQ4.js +60 -0
  105. package/dist/renderer/assets/index-BzHXcCGC.js +307 -0
  106. package/dist/renderer/assets/index-CXI9cRfo.js +287 -0
  107. package/dist/renderer/assets/index-Ccsf_83j.js +149 -0
  108. package/dist/renderer/assets/index-CkLQq2g4.js +688 -0
  109. package/dist/renderer/assets/index-DNL6Tijf.js +8 -0
  110. package/dist/renderer/assets/index-DRZsGkXi.js +78 -0
  111. package/dist/renderer/assets/index-Dfyz4Aee.js +181 -0
  112. package/dist/renderer/assets/index-HtqODURL.js +703 -0
  113. package/dist/renderer/assets/{index-DxOzbfR-.js → index-MJfkvBRx.js} +1 -1
  114. package/dist/renderer/assets/index-NsiBA9UX.js +113 -0
  115. package/dist/renderer/assets/index-aUzhL6sM.js +96 -0
  116. package/dist/renderer/assets/index-bx07CRyn.css +2503 -0
  117. package/dist/renderer/assets/{index-CBcVpA3d.js → index-k1ZFPJcr.js} +3 -4
  118. package/dist/renderer/assets/javascript-C_OHM9hj.js +994 -0
  119. package/dist/renderer/assets/julia-Bs6JJhYG.js +407 -0
  120. package/dist/renderer/assets/lazy-BY7ljzvO.js +1041 -0
  121. package/dist/renderer/assets/livescript-DmzgM3Yt.js +296 -0
  122. package/dist/renderer/assets/lua-Cvg8VrAA.js +256 -0
  123. package/dist/renderer/assets/mathematica-DNLOL9PQ.js +110 -0
  124. package/dist/renderer/assets/mbox-Ga7d4MMN.js +117 -0
  125. package/dist/renderer/assets/mirc-Dma3B8rS.js +107 -0
  126. package/dist/renderer/assets/mllike-DHn7xckP.js +334 -0
  127. package/dist/renderer/assets/modelica-0d55jYY0.js +147 -0
  128. package/dist/renderer/assets/mscgen-DdqZYINH.js +135 -0
  129. package/dist/renderer/assets/mumps-Btr8VblO.js +93 -0
  130. package/dist/renderer/assets/nginx-DTDtBDVN.js +141 -0
  131. package/dist/renderer/assets/nsis-CyKBdPWp.js +62 -0
  132. package/dist/renderer/assets/ntriples-CvgOYMpL.js +153 -0
  133. package/dist/renderer/assets/octave-DYBj3-tl.js +200 -0
  134. package/dist/renderer/assets/oz-R_e8WMIi.js +231 -0
  135. package/dist/renderer/assets/pascal-GD8iposT.js +105 -0
  136. package/dist/renderer/assets/perl-DL9mHpoi.js +1105 -0
  137. package/dist/renderer/assets/pig-C_4T4YIV.js +101 -0
  138. package/dist/renderer/assets/powershell-B0suO7Vd.js +328 -0
  139. package/dist/renderer/assets/properties-BR-vP1aU.js +58 -0
  140. package/dist/renderer/assets/protobuf-BxgpyhoW.js +77 -0
  141. package/dist/renderer/assets/pug-CTXt1f8z.js +405 -0
  142. package/dist/renderer/assets/puppet-Bdao66PW.js +137 -0
  143. package/dist/renderer/assets/python-CvWbmiX4.js +427 -0
  144. package/dist/renderer/assets/q-CrbCVq4a.js +131 -0
  145. package/dist/renderer/assets/r-V7nswm59.js +170 -0
  146. package/dist/renderer/assets/rpm-C-DLY-If.js +109 -0
  147. package/dist/renderer/assets/ruby-CQTpZw6f.js +331 -0
  148. package/dist/renderer/assets/sas-D2UG-yhZ.js +207 -0
  149. package/dist/renderer/assets/scheme-BKzrkGJD.js +222 -0
  150. package/dist/renderer/assets/shell-BlsXDxCn.js +222 -0
  151. package/dist/renderer/assets/sieve-CjwBwOY5.js +135 -0
  152. package/dist/renderer/assets/simple-mode-DMneyfDu.js +130 -0
  153. package/dist/renderer/assets/smalltalk-BOIGQuhN.js +121 -0
  154. package/dist/renderer/assets/solr-CwD7U71z.js +69 -0
  155. package/dist/renderer/assets/sparql-DYskk2vE.js +249 -0
  156. package/dist/renderer/assets/spreadsheet-Bgtt3oLP.js +87 -0
  157. package/dist/renderer/assets/sql-BSrOzCRI.js +354 -0
  158. package/dist/renderer/assets/stex-B6LNC55o.js +231 -0
  159. package/dist/renderer/assets/stylus-BkS-boTH.js +565 -0
  160. package/dist/renderer/assets/swift-FRZi1uvB.js +291 -0
  161. package/dist/renderer/assets/tcl-CUcaCdmq.js +114 -0
  162. package/dist/renderer/assets/textile-BnFpjsrl.js +414 -0
  163. package/dist/renderer/assets/tiddlywiki-CjprD-Qp.js +218 -0
  164. package/dist/renderer/assets/tiki-DK9DOeWn.js +268 -0
  165. package/dist/renderer/assets/toml-BOuWGMcf.js +76 -0
  166. package/dist/renderer/assets/troff-E1bJ0PPL.js +61 -0
  167. package/dist/renderer/assets/ttcn-cfg-Dc39-fIP.js +133 -0
  168. package/dist/renderer/assets/ttcn-tKd4HLu4.js +192 -0
  169. package/dist/renderer/assets/turtle-Dq7-1WAf.js +124 -0
  170. package/dist/renderer/assets/vb-Dp90gtsv.js +196 -0
  171. package/dist/renderer/assets/vbscript-CI6_mxxU.js +479 -0
  172. package/dist/renderer/assets/velocity-BwIZK1TH.js +149 -0
  173. package/dist/renderer/assets/verilog-DDCYnHN8.js +430 -0
  174. package/dist/renderer/assets/vhdl-DCkMIyT9.js +158 -0
  175. package/dist/renderer/assets/{web-BKE0SH0E.js → web-C4yaM4Cl.js} +1 -1
  176. package/dist/renderer/assets/{web-CBsFp24u.js → web-CF2Dtak3.js} +2 -3
  177. package/dist/renderer/assets/{web-Dc8YgoHP.js → web-DUy9unYf.js} +1 -1
  178. package/dist/renderer/assets/webidl-BTLTThCm.js +204 -0
  179. package/dist/renderer/assets/xquery-BrBUuxMR.js +525 -0
  180. package/dist/renderer/assets/yacas-b5lAVEIl.js +130 -0
  181. package/dist/renderer/assets/z80-BZV19vqv.js +93 -0
  182. package/dist/renderer/index.html +97 -77
  183. package/package.json +88 -60
  184. package/themes/README.md +99 -300
  185. package/themes/bear.css +38 -0
  186. package/themes/dark.css +20 -0
  187. package/themes/dracula.css +38 -0
  188. package/themes/elegant.css +53 -671
  189. package/themes/gruvbox.css +42 -0
  190. package/themes/light.css +20 -0
  191. package/themes/midnight.css +31 -0
  192. package/themes/nord.css +38 -0
  193. package/themes/notion.css +48 -0
  194. package/themes/sepia.css +48 -0
  195. package/themes/solarized-dark.css +35 -0
  196. package/themes/template.css +76 -498
  197. package/themes/writer.css +44 -0
  198. package/.github/workflows/release.yml +0 -66
  199. package/.trae/specs/optimize-theme-loading/checklist.md +0 -20
  200. package/.trae/specs/optimize-theme-loading/spec.md +0 -103
  201. package/.trae/specs/optimize-theme-loading/tasks.md +0 -40
  202. package/CHANGELOG.md +0 -320
  203. package/CLAUDE.md +0 -143
  204. package/android/app/build/.npmkeep +0 -0
  205. package/android/app/build.gradle +0 -76
  206. package/android/app/capacitor.build.gradle +0 -24
  207. package/android/app/proguard-rules.pro +0 -21
  208. package/android/app/release.keystore +0 -0
  209. package/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +0 -26
  210. package/android/app/src/main/AndroidManifest.xml +0 -64
  211. package/android/app/src/main/java/cn/bytechain/colamd/MainActivity.java +0 -180
  212. package/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -170
  213. package/android/app/src/main/res/drawable/splash.png +0 -0
  214. package/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
  215. package/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
  216. package/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
  217. package/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
  218. package/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
  219. package/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
  220. package/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
  221. package/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
  222. package/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
  223. package/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
  224. package/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +0 -34
  225. package/android/app/src/main/res/layout/activity_main.xml +0 -12
  226. package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
  227. package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
  228. package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  229. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
  230. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  231. package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  232. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
  233. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  234. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  235. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
  236. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  237. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  238. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
  239. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  240. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  241. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
  242. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  243. package/android/app/src/main/res/values/ic_launcher_background.xml +0 -4
  244. package/android/app/src/main/res/values/strings.xml +0 -7
  245. package/android/app/src/main/res/values/styles.xml +0 -22
  246. package/android/app/src/main/res/xml/file_paths.xml +0 -5
  247. package/android/app/src/main/res/xml/network_security_config.xml +0 -8
  248. package/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +0 -18
  249. package/android/build.gradle +0 -29
  250. package/android/capacitor.settings.gradle +0 -21
  251. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  252. package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  253. package/android/gradle.properties +0 -22
  254. package/android/gradlew +0 -248
  255. package/android/gradlew.bat +0 -92
  256. package/android/settings.gradle +0 -5
  257. package/android/variables.gradle +0 -16
  258. package/capacitor.config.js +0 -29
  259. package/capacitor.config.ts +0 -30
  260. package/demo.md +0 -193
  261. package/dist/renderer/assets/arc-_lugyDzx.js +0 -131
  262. package/dist/renderer/assets/architectureDiagram-3BPJPVTR-DDfP-F9D.js +0 -8721
  263. package/dist/renderer/assets/blockDiagram-GPEHLZMM-DOETUKma.js +0 -3826
  264. package/dist/renderer/assets/c4Diagram-AAUBKEIU-kAmLfVtk.js +0 -2483
  265. package/dist/renderer/assets/channel-CD4vJFwr.js +0 -7
  266. package/dist/renderer/assets/chunk-2J33WTMH-DkVrgw4l.js +0 -24
  267. package/dist/renderer/assets/chunk-4BX2VUAB-JTZ-VKNX.js +0 -16
  268. package/dist/renderer/assets/chunk-55IACEB6-Di_O5box.js +0 -13
  269. package/dist/renderer/assets/chunk-727SXJPM-BgKvwR8w.js +0 -2016
  270. package/dist/renderer/assets/chunk-AQP2D5EJ-DonSXCCQ.js +0 -1953
  271. package/dist/renderer/assets/chunk-FMBD7UC4-CsV8Lmy6.js +0 -19
  272. package/dist/renderer/assets/chunk-ND2GUHAM-C_-_dlq7.js +0 -116
  273. package/dist/renderer/assets/chunk-QZHKN3VN-aCmcDsfu.js +0 -19
  274. package/dist/renderer/assets/classDiagram-4FO5ZUOK-nuHQLjzM.js +0 -24
  275. package/dist/renderer/assets/classDiagram-v2-Q7XG4LA2-nuHQLjzM.js +0 -24
  276. package/dist/renderer/assets/cose-bilkent-S5V4N54A-Di1_SXt9.js +0 -4943
  277. package/dist/renderer/assets/cytoscape.esm-CpHeHM5e.js +0 -30269
  278. package/dist/renderer/assets/dagre-BM42HDAG-CqOUIYsL.js +0 -706
  279. package/dist/renderer/assets/defaultLocale-B2RvLBDe.js +0 -206
  280. package/dist/renderer/assets/diagram-2AECGRRQ-F-fP19TC.js +0 -302
  281. package/dist/renderer/assets/diagram-5GNKFQAL-BD5XZc8G.js +0 -170
  282. package/dist/renderer/assets/diagram-KO2AKTUF-Qa3ZxA67.js +0 -633
  283. package/dist/renderer/assets/diagram-LMA3HP47-DqDnw2RA.js +0 -213
  284. package/dist/renderer/assets/diagram-OG6HWLK6-BH4Elzby.js +0 -852
  285. package/dist/renderer/assets/erDiagram-TEJ5UH35-CaKZCewa.js +0 -1228
  286. package/dist/renderer/assets/flowDiagram-I6XJVG4X-C8znUgyL.js +0 -2333
  287. package/dist/renderer/assets/ganttDiagram-6RSMTGT7-DnRvbMnU.js +0 -3721
  288. package/dist/renderer/assets/gitGraphDiagram-PVQCEYII-CZuRZzk4.js +0 -1374
  289. package/dist/renderer/assets/graph-CYiEKt0j.js +0 -1988
  290. package/dist/renderer/assets/index-B4uDgADr.js +0 -530
  291. package/dist/renderer/assets/index-BX6JHKv6.js +0 -73314
  292. package/dist/renderer/assets/index-CGj1spkU.js +0 -27
  293. package/dist/renderer/assets/index-CcwAgVRi.css +0 -2226
  294. package/dist/renderer/assets/index-D4CPFkph.js +0 -9
  295. package/dist/renderer/assets/index-Y89U1ptl.js +0 -9
  296. package/dist/renderer/assets/infoDiagram-5YYISTIA-BlBUdqMb.js +0 -32
  297. package/dist/renderer/assets/init-ZxktEp_H.js +0 -16
  298. package/dist/renderer/assets/ishikawaDiagram-YF4QCWOH-TeVytCrP.js +0 -968
  299. package/dist/renderer/assets/journeyDiagram-JHISSGLW-BLZa3jnX.js +0 -1256
  300. package/dist/renderer/assets/kanban-definition-UN3LZRKU-foVxWrJn.js +0 -1053
  301. package/dist/renderer/assets/layout-DOAlFUVb.js +0 -2610
  302. package/dist/renderer/assets/linear-BMBn6kVq.js +0 -340
  303. package/dist/renderer/assets/mindmap-definition-RKZ34NQL-5pGeNCcp.js +0 -1181
  304. package/dist/renderer/assets/ordinal-DSZU4PqD.js +0 -76
  305. package/dist/renderer/assets/pieDiagram-4H26LBE5-N9aAUxfr.js +0 -247
  306. package/dist/renderer/assets/preload-helper-tXtZnHb0.js +0 -88
  307. package/dist/renderer/assets/quadrantDiagram-W4KKPZXB-BPxbtjga.js +0 -1345
  308. package/dist/renderer/assets/requirementDiagram-4Y6WPE33-CK1LrJyG.js +0 -1205
  309. package/dist/renderer/assets/sankeyDiagram-5OEKKPKP-BNj7Sqii.js +0 -1275
  310. package/dist/renderer/assets/sequenceDiagram-3UESZ5HK-B-r7lNhI.js +0 -4515
  311. package/dist/renderer/assets/stateDiagram-AJRCARHV-wrWE0MRa.js +0 -451
  312. package/dist/renderer/assets/stateDiagram-v2-BHNVJYJU-CE-Lqo2d.js +0 -22
  313. package/dist/renderer/assets/timeline-definition-PNZ67QCA-BkeMGH4J.js +0 -1597
  314. package/dist/renderer/assets/vennDiagram-CIIHVFJN-BTxVzto3.js +0 -2487
  315. package/dist/renderer/assets/wardley-L42UT6IY-b-_GPpqL.js +0 -30699
  316. package/dist/renderer/assets/wardleyDiagram-YWT4CUSO-D2r5dVGW.js +0 -976
  317. package/dist/renderer/assets/web-TfDzToU7.js +0 -58
  318. package/dist/renderer/assets/xychartDiagram-2RQKCTM6-BHQdINVc.js +0 -1933
  319. package/docs/RELEASE_NOTES_v1.5.1.md +0 -382
  320. package/docs/academic-demo.md +0 -567
  321. package/docs/agent-diff-view.md +0 -48
  322. package/docs/demo.html +0 -748
  323. package/docs/demo.md +0 -546
  324. package/docs/demo.pdf +0 -0
  325. package/docs/theme-paradigm.md +0 -797
  326. package/electron-builder.yml +0 -64
  327. package/electron.vite.config.js +0 -31
  328. package/electron.vite.config.ts +0 -30
  329. package/ios/App/App/AppDelegate.swift +0 -49
  330. package/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
  331. package/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -14
  332. package/ios/App/App/Assets.xcassets/Contents.json +0 -6
  333. package/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +0 -23
  334. package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
  335. package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
  336. package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
  337. package/ios/App/App/Base.lproj/LaunchScreen.storyboard +0 -32
  338. package/ios/App/App/Base.lproj/Main.storyboard +0 -19
  339. package/ios/App/App/Info.plist +0 -49
  340. package/ios/App/App.xcodeproj/project.pbxproj +0 -408
  341. package/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  342. package/ios/App/Podfile +0 -28
  343. package/resources/entitlements.mac.plist +0 -12
  344. package/resources/icon.icns +0 -0
  345. package/resources/icon.png +0 -0
  346. package/resources/icon.svg +0 -23
  347. package/resources/templates/slides/icon.png +0 -0
  348. package/resources/templates/slides/slides-template.md +0 -74
  349. package/resources/templates/slides/template-forest-ink.html +0 -540
  350. package/resources/templates/slides/template.html +0 -535
  351. package/scripts/afterPack.js +0 -13
  352. package/scripts/generate-icons.js +0 -102
  353. package/src/main/index.ts +0 -919
  354. package/src/preload/index.d.ts +0 -51
  355. package/src/preload/index.js +0 -70
  356. package/src/preload/index.ts +0 -110
  357. package/src/renderer/capacitor-api.ts +0 -713
  358. package/src/renderer/editor/editor.ts +0 -287
  359. package/src/renderer/editor/html-view.ts +0 -15
  360. package/src/renderer/editor/plugins/index.ts +0 -86
  361. package/src/renderer/editor/plugins/math-plugin.ts +0 -305
  362. package/src/renderer/editor/plugins/mermaid-plugin-custom.css +0 -46
  363. package/src/renderer/editor/plugins/mermaid-plugin-dark.css +0 -428
  364. package/src/renderer/editor/plugins/mermaid-plugin-elegant.css +0 -443
  365. package/src/renderer/editor/plugins/mermaid-plugin-newsprint.css +0 -208
  366. package/src/renderer/editor/plugins/mermaid-plugin.css +0 -111
  367. package/src/renderer/editor/plugins/mermaid-plugin.ts +0 -680
  368. package/src/renderer/editor/plugins/themes/base/dark.css +0 -23
  369. package/src/renderer/editor/plugins/themes/base/elegant.css +0 -32
  370. package/src/renderer/editor/plugins/themes/base/light.css +0 -20
  371. package/src/renderer/editor/plugins/themes/base/newsprint.css +0 -27
  372. package/src/renderer/editor/plugins/themes/base.css +0 -509
  373. package/src/renderer/editor/plugins/themes/components/mermaid/academic.css +0 -43
  374. package/src/renderer/editor/plugins/themes/components/mermaid/dark.css +0 -20
  375. package/src/renderer/editor/plugins/themes/components/mermaid/elegant.css +0 -24
  376. package/src/renderer/editor/plugins/themes/components/mermaid/light.css +0 -21
  377. package/src/renderer/editor/plugins/themes/components/mermaid/newsprint.css +0 -26
  378. package/src/renderer/editor/plugins/themes/components/mermaid/variables.css +0 -592
  379. package/src/renderer/editor/plugins/themes/foundation.css +0 -143
  380. package/src/renderer/editor/plugins/themes/theme-manager.ts +0 -133
  381. package/src/renderer/env.d.ts +0 -10
  382. package/src/renderer/index.html +0 -76
  383. package/src/renderer/main.ts +0 -775
  384. package/src/renderer/mobile.css +0 -428
  385. package/themes/academic-paper-pt.css +0 -1321
  386. package/themes/academic-paper.css +0 -1416
  387. package/themes/forest-ink.css +0 -664
  388. package/themes/guizang.css +0 -732
  389. package/themes/pixso-design.css +0 -1261
  390. package/themes/swiss-design.css +0 -596
  391. package/tsconfig.json +0 -14
  392. package/tsconfig.main.json +0 -12
  393. package/tsconfig.main.tsbuildinfo +0 -1
  394. package/tsconfig.preload.json +0 -12
  395. package/tsconfig.preload.tsbuildinfo +0 -1
  396. package/tsconfig.renderer.json +0 -13
  397. package/tsconfig.renderer.tsbuildinfo +0 -1
  398. package/tsconfig.tsbuildinfo +0 -1
@@ -1,2333 +0,0 @@
1
- import { g as getIconStyles } from "./chunk-FMBD7UC4-CsV8Lmy6.js";
2
- import { _ as __name, n as setConfig2, l as log, c as getConfig2, o as getRegisteredLayoutAlgorithm, r as render, u as utils_default, b as setAccTitle, s as setAccDescription, p as setDiagramTitle, a as getAccTitle, g as getAccDescription, q as getDiagramTitle, k as common_default, t as load, J as JSON_SCHEMA, v as isValidShape, x as getEdgeId, d as select, y as purify, z as clear, A as defaultConfig2, B as rgba } from "./index-BX6JHKv6.js";
3
- import { c as createTooltip } from "./chunk-ND2GUHAM-C_-_dlq7.js";
4
- import { g as getDiagramElement } from "./chunk-55IACEB6-Di_O5box.js";
5
- import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-DkVrgw4l.js";
6
- import { c as channel } from "./channel-CD4vJFwr.js";
7
- import "./preload-helper-tXtZnHb0.js";
8
- var MERMAID_DOM_ID_PREFIX = "flowchart-";
9
- var FlowDB = class {
10
- // cspell:ignore funs
11
- constructor() {
12
- this.vertexCounter = 0;
13
- this.config = getConfig2();
14
- this.diagramId = "";
15
- this.vertices = /* @__PURE__ */ new Map();
16
- this.edges = [];
17
- this.classes = /* @__PURE__ */ new Map();
18
- this.subGraphs = [];
19
- this.subGraphLookup = /* @__PURE__ */ new Map();
20
- this.tooltips = /* @__PURE__ */ new Map();
21
- this.subCount = 0;
22
- this.firstGraphFlag = true;
23
- this.secCount = -1;
24
- this.posCrossRef = [];
25
- this.funs = [];
26
- this.setAccTitle = setAccTitle;
27
- this.setAccDescription = setAccDescription;
28
- this.setDiagramTitle = setDiagramTitle;
29
- this.getAccTitle = getAccTitle;
30
- this.getAccDescription = getAccDescription;
31
- this.getDiagramTitle = getDiagramTitle;
32
- this.funs.push(this.setupToolTips.bind(this));
33
- this.addVertex = this.addVertex.bind(this);
34
- this.firstGraph = this.firstGraph.bind(this);
35
- this.setDirection = this.setDirection.bind(this);
36
- this.addSubGraph = this.addSubGraph.bind(this);
37
- this.addLink = this.addLink.bind(this);
38
- this.setLink = this.setLink.bind(this);
39
- this.updateLink = this.updateLink.bind(this);
40
- this.addClass = this.addClass.bind(this);
41
- this.setClass = this.setClass.bind(this);
42
- this.destructLink = this.destructLink.bind(this);
43
- this.setClickEvent = this.setClickEvent.bind(this);
44
- this.setTooltip = this.setTooltip.bind(this);
45
- this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this);
46
- this.setClickFun = this.setClickFun.bind(this);
47
- this.bindFunctions = this.bindFunctions.bind(this);
48
- this.lex = {
49
- firstGraph: this.firstGraph.bind(this)
50
- };
51
- this.clear();
52
- this.setGen("gen-2");
53
- }
54
- static {
55
- __name(this, "FlowDB");
56
- }
57
- sanitizeText(txt) {
58
- return common_default.sanitizeText(txt, this.config);
59
- }
60
- sanitizeNodeLabelType(labelType) {
61
- switch (labelType) {
62
- case "markdown":
63
- case "string":
64
- case "text":
65
- return labelType;
66
- default:
67
- return "markdown";
68
- }
69
- }
70
- /**
71
- * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
72
- * across multiple diagrams on the same page.
73
- */
74
- setDiagramId(svgElementId) {
75
- this.diagramId = svgElementId;
76
- }
77
- /**
78
- * Function to lookup domId from id in the graph definition.
79
- * When diagramId is set, returns the prefixed version for DOM uniqueness.
80
- *
81
- * @param id - id of the node
82
- */
83
- lookUpDomId(id) {
84
- for (const vertex of this.vertices.values()) {
85
- if (vertex.id === id) {
86
- return this.diagramId ? `${this.diagramId}-${vertex.domId}` : vertex.domId;
87
- }
88
- }
89
- return this.diagramId ? `${this.diagramId}-${id}` : id;
90
- }
91
- /**
92
- * Function called by parser when a node definition has been found
93
- */
94
- addVertex(id, textObj, type, style, classes, dir, props = {}, metadata) {
95
- if (!id || id.trim().length === 0) {
96
- return;
97
- }
98
- let doc;
99
- if (metadata !== void 0) {
100
- let yamlData;
101
- if (!metadata.includes("\n")) {
102
- yamlData = "{\n" + metadata + "\n}";
103
- } else {
104
- yamlData = metadata + "\n";
105
- }
106
- doc = load(yamlData, { schema: JSON_SCHEMA });
107
- }
108
- const edge = this.edges.find((e) => e.id === id);
109
- if (edge) {
110
- const edgeDoc = doc;
111
- if (edgeDoc?.animate !== void 0) {
112
- edge.animate = edgeDoc.animate;
113
- }
114
- if (edgeDoc?.animation !== void 0) {
115
- edge.animation = edgeDoc.animation;
116
- }
117
- if (edgeDoc?.curve !== void 0) {
118
- edge.interpolate = edgeDoc.curve;
119
- }
120
- return;
121
- }
122
- let txt;
123
- let vertex = this.vertices.get(id);
124
- if (vertex === void 0) {
125
- if (textObj === void 0 && type === void 0 && style !== void 0 && style !== null) {
126
- log.warn(
127
- `Style applied to unknown node "${id}". This may indicate a typo. The node will be created automatically.`
128
- );
129
- }
130
- vertex = {
131
- id,
132
- labelType: "text",
133
- domId: MERMAID_DOM_ID_PREFIX + id + "-" + this.vertexCounter,
134
- styles: [],
135
- classes: []
136
- };
137
- this.vertices.set(id, vertex);
138
- }
139
- this.vertexCounter++;
140
- if (textObj !== void 0) {
141
- this.config = getConfig2();
142
- txt = this.sanitizeText(textObj.text.trim());
143
- vertex.labelType = textObj.type;
144
- if (txt.startsWith('"') && txt.endsWith('"')) {
145
- txt = txt.substring(1, txt.length - 1);
146
- }
147
- vertex.text = txt;
148
- } else {
149
- if (vertex.text === void 0) {
150
- vertex.text = id;
151
- }
152
- }
153
- if (type !== void 0) {
154
- vertex.type = type;
155
- }
156
- if (style !== void 0 && style !== null) {
157
- style.forEach((s) => {
158
- vertex.styles.push(s);
159
- });
160
- }
161
- if (classes !== void 0 && classes !== null) {
162
- classes.forEach((s) => {
163
- vertex.classes.push(s);
164
- });
165
- }
166
- if (dir !== void 0) {
167
- vertex.dir = dir;
168
- }
169
- if (vertex.props === void 0) {
170
- vertex.props = props;
171
- } else if (props !== void 0) {
172
- Object.assign(vertex.props, props);
173
- }
174
- if (doc !== void 0) {
175
- if (doc.shape) {
176
- if (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes("_")) {
177
- throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
178
- } else if (!isValidShape(doc.shape)) {
179
- throw new Error(`No such shape: ${doc.shape}.`);
180
- }
181
- vertex.type = doc?.shape;
182
- }
183
- if (doc?.label) {
184
- vertex.text = doc?.label;
185
- vertex.labelType = this.sanitizeNodeLabelType(doc?.labelType);
186
- }
187
- if (doc?.icon) {
188
- vertex.icon = doc?.icon;
189
- if (!doc.label?.trim() && vertex.text === id) {
190
- vertex.text = "";
191
- }
192
- }
193
- if (doc?.form) {
194
- vertex.form = doc?.form;
195
- }
196
- if (doc?.pos) {
197
- vertex.pos = doc?.pos;
198
- }
199
- if (doc?.img) {
200
- vertex.img = doc?.img;
201
- if (!doc.label?.trim() && vertex.text === id) {
202
- vertex.text = "";
203
- }
204
- }
205
- if (doc?.constraint) {
206
- vertex.constraint = doc.constraint;
207
- }
208
- if (doc.w) {
209
- vertex.assetWidth = Number(doc.w);
210
- }
211
- if (doc.h) {
212
- vertex.assetHeight = Number(doc.h);
213
- }
214
- }
215
- }
216
- /**
217
- * Function called by parser when a link/edge definition has been found
218
- *
219
- */
220
- addSingleLink(_start, _end, type, id) {
221
- const start = _start;
222
- const end = _end;
223
- const edge = {
224
- start,
225
- end,
226
- type: void 0,
227
- text: "",
228
- labelType: "text",
229
- classes: [],
230
- isUserDefinedId: false,
231
- interpolate: this.edges.defaultInterpolate
232
- };
233
- log.info("abc78 Got edge...", edge);
234
- const linkTextObj = type.text;
235
- if (linkTextObj !== void 0) {
236
- edge.text = this.sanitizeText(linkTextObj.text.trim());
237
- if (edge.text.startsWith('"') && edge.text.endsWith('"')) {
238
- edge.text = edge.text.substring(1, edge.text.length - 1);
239
- }
240
- edge.labelType = this.sanitizeNodeLabelType(linkTextObj.type);
241
- }
242
- if (type !== void 0) {
243
- edge.type = type.type;
244
- edge.stroke = type.stroke;
245
- edge.length = type.length > 10 ? 10 : type.length;
246
- }
247
- if (id && !this.edges.some((e) => e.id === id)) {
248
- edge.id = id;
249
- edge.isUserDefinedId = true;
250
- } else {
251
- const existingLinks = this.edges.filter((e) => e.start === edge.start && e.end === edge.end);
252
- if (existingLinks.length === 0) {
253
- edge.id = getEdgeId(edge.start, edge.end, { counter: 0, prefix: "L" });
254
- } else {
255
- edge.id = getEdgeId(edge.start, edge.end, {
256
- counter: existingLinks.length + 1,
257
- prefix: "L"
258
- });
259
- }
260
- }
261
- if (this.edges.length < (this.config.maxEdges ?? 500)) {
262
- log.info("Pushing edge...");
263
- this.edges.push(edge);
264
- } else {
265
- throw new Error(
266
- `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
267
-
268
- Initialize mermaid with maxEdges set to a higher number to allow more edges.
269
- You cannot set this config via configuration inside the diagram as it is a secure config.
270
- You have to call mermaid.initialize.`
271
- );
272
- }
273
- }
274
- isLinkData(value) {
275
- return value !== null && typeof value === "object" && "id" in value && typeof value.id === "string";
276
- }
277
- addLink(_start, _end, linkData) {
278
- const id = this.isLinkData(linkData) ? linkData.id.replace("@", "") : void 0;
279
- log.info("addLink", _start, _end, id);
280
- for (const start of _start) {
281
- for (const end of _end) {
282
- const isLastStart = start === _start[_start.length - 1];
283
- const isFirstEnd = end === _end[0];
284
- if (isLastStart && isFirstEnd) {
285
- this.addSingleLink(start, end, linkData, id);
286
- } else {
287
- this.addSingleLink(start, end, linkData, void 0);
288
- }
289
- }
290
- }
291
- }
292
- /**
293
- * Updates a link's line interpolation algorithm
294
- */
295
- updateLinkInterpolate(positions, interpolate) {
296
- positions.forEach((pos) => {
297
- if (pos === "default") {
298
- this.edges.defaultInterpolate = interpolate;
299
- } else {
300
- this.edges[pos].interpolate = interpolate;
301
- }
302
- });
303
- }
304
- /**
305
- * Updates a link with a style
306
- *
307
- */
308
- updateLink(positions, style) {
309
- positions.forEach((pos) => {
310
- if (typeof pos === "number" && pos >= this.edges.length) {
311
- throw new Error(
312
- `The index ${pos} 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.)`
313
- );
314
- }
315
- if (pos === "default") {
316
- this.edges.defaultStyle = style;
317
- } else {
318
- this.edges[pos].style = style;
319
- if ((this.edges[pos]?.style?.length ?? 0) > 0 && !this.edges[pos]?.style?.some((s) => s?.startsWith("fill"))) {
320
- this.edges[pos]?.style?.push("fill:none");
321
- }
322
- }
323
- });
324
- }
325
- addClass(ids, _style) {
326
- const style = _style.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
327
- ids.split(",").forEach((id) => {
328
- let classNode = this.classes.get(id);
329
- if (classNode === void 0) {
330
- classNode = { id, styles: [], textStyles: [] };
331
- this.classes.set(id, classNode);
332
- }
333
- if (style !== void 0 && style !== null) {
334
- style.forEach((s) => {
335
- if (/color/.exec(s)) {
336
- const newStyle = s.replace("fill", "bgFill");
337
- classNode.textStyles.push(newStyle);
338
- }
339
- classNode.styles.push(s);
340
- });
341
- }
342
- });
343
- }
344
- /**
345
- * Called by parser when a graph definition is found, stores the direction of the chart.
346
- *
347
- */
348
- setDirection(dir) {
349
- this.direction = dir.trim();
350
- if (/.*</.exec(this.direction)) {
351
- this.direction = "RL";
352
- }
353
- if (/.*\^/.exec(this.direction)) {
354
- this.direction = "BT";
355
- }
356
- if (/.*>/.exec(this.direction)) {
357
- this.direction = "LR";
358
- }
359
- if (/.*v/.exec(this.direction)) {
360
- this.direction = "TB";
361
- }
362
- if (this.direction === "TD") {
363
- this.direction = "TB";
364
- }
365
- }
366
- /**
367
- * Called by parser when a special node is found, e.g. a clickable element.
368
- *
369
- * @param ids - Comma separated list of ids
370
- * @param className - Class to add
371
- */
372
- setClass(ids, className) {
373
- for (const id of ids.split(",")) {
374
- const vertex = this.vertices.get(id);
375
- if (vertex) {
376
- vertex.classes.push(className);
377
- }
378
- const edge = this.edges.find((e) => e.id === id);
379
- if (edge) {
380
- edge.classes.push(className);
381
- }
382
- const subGraph = this.subGraphLookup.get(id);
383
- if (subGraph) {
384
- subGraph.classes.push(className);
385
- }
386
- }
387
- }
388
- setTooltip(ids, tooltip) {
389
- if (tooltip === void 0) {
390
- return;
391
- }
392
- tooltip = this.sanitizeText(tooltip);
393
- for (const id of ids.split(",")) {
394
- this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(id) : id, tooltip);
395
- }
396
- }
397
- setClickFun(id, functionName, functionArgs) {
398
- if (getConfig2().securityLevel !== "loose") {
399
- return;
400
- }
401
- if (functionName === void 0) {
402
- return;
403
- }
404
- let argList = [];
405
- if (typeof functionArgs === "string") {
406
- argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
407
- for (let i = 0; i < argList.length; i++) {
408
- let item = argList[i].trim();
409
- if (item.startsWith('"') && item.endsWith('"')) {
410
- item = item.substr(1, item.length - 2);
411
- }
412
- argList[i] = item;
413
- }
414
- }
415
- if (argList.length === 0) {
416
- argList.push(id);
417
- }
418
- const vertex = this.vertices.get(id);
419
- if (vertex) {
420
- vertex.haveCallback = true;
421
- this.funs.push(() => {
422
- const domId = this.lookUpDomId(id);
423
- const elem = document.querySelector(`[id="${domId}"]`);
424
- if (elem !== null) {
425
- elem.addEventListener(
426
- "click",
427
- () => {
428
- utils_default.runFunc(functionName, ...argList);
429
- },
430
- false
431
- );
432
- }
433
- });
434
- }
435
- }
436
- /**
437
- * Called by parser when a link is found. Adds the URL to the vertex data.
438
- *
439
- * @param ids - Comma separated list of ids
440
- * @param linkStr - URL to create a link for
441
- * @param target - Target attribute for the link
442
- */
443
- setLink(ids, linkStr, target) {
444
- ids.split(",").forEach((id) => {
445
- const vertex = this.vertices.get(id);
446
- if (vertex !== void 0) {
447
- vertex.link = utils_default.formatUrl(linkStr, this.config);
448
- vertex.linkTarget = target;
449
- }
450
- });
451
- this.setClass(ids, "clickable");
452
- }
453
- getTooltip(id) {
454
- return this.tooltips.get(id);
455
- }
456
- /**
457
- * Called by parser when a click definition is found. Registers an event handler.
458
- *
459
- * @param ids - Comma separated list of ids
460
- * @param functionName - Function to be called on click
461
- * @param functionArgs - Arguments to be passed to the function
462
- */
463
- setClickEvent(ids, functionName, functionArgs) {
464
- ids.split(",").forEach((id) => {
465
- this.setClickFun(id, functionName, functionArgs);
466
- });
467
- this.setClass(ids, "clickable");
468
- }
469
- bindFunctions(element) {
470
- this.funs.forEach((fun) => {
471
- fun(element);
472
- });
473
- }
474
- getDirection() {
475
- return this.direction?.trim();
476
- }
477
- /**
478
- * Retrieval function for fetching the found nodes after parsing has completed.
479
- *
480
- */
481
- getVertices() {
482
- return this.vertices;
483
- }
484
- /**
485
- * Retrieval function for fetching the found links after parsing has completed.
486
- *
487
- */
488
- getEdges() {
489
- return this.edges;
490
- }
491
- /**
492
- * Retrieval function for fetching the found class definitions after parsing has completed.
493
- *
494
- */
495
- getClasses() {
496
- return this.classes;
497
- }
498
- setupToolTips(element) {
499
- const tooltipElem = createTooltip();
500
- const svg = select(element).select("svg");
501
- const nodes = svg.selectAll("g.node");
502
- nodes.on("mouseover", (e) => {
503
- const el = select(e.currentTarget);
504
- const title = el.attr("title");
505
- if (title === null) {
506
- return;
507
- }
508
- const rect = e.currentTarget?.getBoundingClientRect();
509
- tooltipElem.transition().duration(200).style("opacity", ".9");
510
- tooltipElem.text(el.attr("title")).style("left", window.scrollX + rect.left + (rect.right - rect.left) / 2 + "px").style("top", window.scrollY + rect.bottom + "px");
511
- tooltipElem.html(purify.sanitize(title));
512
- el.classed("hover", true);
513
- }).on("mouseout", (e) => {
514
- tooltipElem.transition().duration(500).style("opacity", 0);
515
- const el = select(e.currentTarget);
516
- el.classed("hover", false);
517
- });
518
- }
519
- /**
520
- * Clears the internal graph db so that a new graph can be parsed.
521
- *
522
- */
523
- clear(ver = "gen-2") {
524
- this.vertices = /* @__PURE__ */ new Map();
525
- this.classes = /* @__PURE__ */ new Map();
526
- this.edges = [];
527
- this.funs = [this.setupToolTips.bind(this)];
528
- this.diagramId = "";
529
- this.subGraphs = [];
530
- this.subGraphLookup = /* @__PURE__ */ new Map();
531
- this.subCount = 0;
532
- this.tooltips = /* @__PURE__ */ new Map();
533
- this.firstGraphFlag = true;
534
- this.version = ver;
535
- this.config = getConfig2();
536
- clear();
537
- }
538
- setGen(ver) {
539
- this.version = ver || "gen-2";
540
- }
541
- defaultStyle() {
542
- return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
543
- }
544
- addSubGraph(_id, list, _title) {
545
- let id = _id.text.trim();
546
- let title = _title.text;
547
- if (_id === _title && /\s/.exec(_title.text)) {
548
- id = void 0;
549
- }
550
- const uniq = /* @__PURE__ */ __name((a) => {
551
- const prims = { boolean: {}, number: {}, string: {} };
552
- const objs = [];
553
- let dir2;
554
- const nodeList2 = a.filter(function(item) {
555
- const type = typeof item;
556
- if (item.stmt && item.stmt === "dir") {
557
- dir2 = item.value;
558
- return false;
559
- }
560
- if (item.trim() === "") {
561
- return false;
562
- }
563
- if (type in prims) {
564
- return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true;
565
- } else {
566
- return objs.includes(item) ? false : objs.push(item);
567
- }
568
- });
569
- return { nodeList: nodeList2, dir: dir2 };
570
- }, "uniq");
571
- const result = uniq(list.flat());
572
- const nodeList = result.nodeList;
573
- let dir = result.dir;
574
- const flowchartConfig = getConfig2().flowchart ?? {};
575
- dir = dir ?? (flowchartConfig.inheritDir ? this.getDirection() ?? getConfig2().direction ?? void 0 : void 0);
576
- if (this.version === "gen-1") {
577
- for (let i = 0; i < nodeList.length; i++) {
578
- nodeList[i] = this.lookUpDomId(nodeList[i]);
579
- }
580
- }
581
- id = id ?? "subGraph" + this.subCount;
582
- title = title || "";
583
- title = this.sanitizeText(title);
584
- this.subCount = this.subCount + 1;
585
- const subGraph = {
586
- id,
587
- nodes: nodeList,
588
- title: title.trim(),
589
- classes: [],
590
- dir,
591
- labelType: this.sanitizeNodeLabelType(_title?.type)
592
- };
593
- log.info("Adding", subGraph.id, subGraph.nodes, subGraph.dir);
594
- subGraph.nodes = this.makeUniq(subGraph, this.subGraphs).nodes;
595
- this.subGraphs.push(subGraph);
596
- this.subGraphLookup.set(id, subGraph);
597
- return id;
598
- }
599
- getPosForId(id) {
600
- for (const [i, subGraph] of this.subGraphs.entries()) {
601
- if (subGraph.id === id) {
602
- return i;
603
- }
604
- }
605
- return -1;
606
- }
607
- indexNodes2(id, pos) {
608
- const nodes = this.subGraphs[pos].nodes;
609
- this.secCount = this.secCount + 1;
610
- if (this.secCount > 2e3) {
611
- return {
612
- result: false,
613
- count: 0
614
- };
615
- }
616
- this.posCrossRef[this.secCount] = pos;
617
- if (this.subGraphs[pos].id === id) {
618
- return {
619
- result: true,
620
- count: 0
621
- };
622
- }
623
- let count = 0;
624
- let posCount = 1;
625
- while (count < nodes.length) {
626
- const childPos = this.getPosForId(nodes[count]);
627
- if (childPos >= 0) {
628
- const res = this.indexNodes2(id, childPos);
629
- if (res.result) {
630
- return {
631
- result: true,
632
- count: posCount + res.count
633
- };
634
- } else {
635
- posCount = posCount + res.count;
636
- }
637
- }
638
- count = count + 1;
639
- }
640
- return {
641
- result: false,
642
- count: posCount
643
- };
644
- }
645
- getDepthFirstPos(pos) {
646
- return this.posCrossRef[pos];
647
- }
648
- indexNodes() {
649
- this.secCount = -1;
650
- if (this.subGraphs.length > 0) {
651
- this.indexNodes2("none", this.subGraphs.length - 1);
652
- }
653
- }
654
- getSubGraphs() {
655
- return this.subGraphs;
656
- }
657
- firstGraph() {
658
- if (this.firstGraphFlag) {
659
- this.firstGraphFlag = false;
660
- return true;
661
- }
662
- return false;
663
- }
664
- destructStartLink(_str) {
665
- let str = _str.trim();
666
- let type = "arrow_open";
667
- switch (str[0]) {
668
- case "<":
669
- type = "arrow_point";
670
- str = str.slice(1);
671
- break;
672
- case "x":
673
- type = "arrow_cross";
674
- str = str.slice(1);
675
- break;
676
- case "o":
677
- type = "arrow_circle";
678
- str = str.slice(1);
679
- break;
680
- }
681
- let stroke = "normal";
682
- if (str.includes("=")) {
683
- stroke = "thick";
684
- }
685
- if (str.includes(".")) {
686
- stroke = "dotted";
687
- }
688
- return { type, stroke };
689
- }
690
- countChar(char, str) {
691
- const length = str.length;
692
- let count = 0;
693
- for (let i = 0; i < length; ++i) {
694
- if (str[i] === char) {
695
- ++count;
696
- }
697
- }
698
- return count;
699
- }
700
- destructEndLink(_str) {
701
- const str = _str.trim();
702
- let line = str.slice(0, -1);
703
- let type = "arrow_open";
704
- switch (str.slice(-1)) {
705
- case "x":
706
- type = "arrow_cross";
707
- if (str.startsWith("x")) {
708
- type = "double_" + type;
709
- line = line.slice(1);
710
- }
711
- break;
712
- case ">":
713
- type = "arrow_point";
714
- if (str.startsWith("<")) {
715
- type = "double_" + type;
716
- line = line.slice(1);
717
- }
718
- break;
719
- case "o":
720
- type = "arrow_circle";
721
- if (str.startsWith("o")) {
722
- type = "double_" + type;
723
- line = line.slice(1);
724
- }
725
- break;
726
- }
727
- let stroke = "normal";
728
- let length = line.length - 1;
729
- if (line.startsWith("=")) {
730
- stroke = "thick";
731
- }
732
- if (line.startsWith("~")) {
733
- stroke = "invisible";
734
- }
735
- const dots = this.countChar(".", line);
736
- if (dots) {
737
- stroke = "dotted";
738
- length = dots;
739
- }
740
- return { type, stroke, length };
741
- }
742
- destructLink(_str, _startStr) {
743
- const info = this.destructEndLink(_str);
744
- let startInfo;
745
- if (_startStr) {
746
- startInfo = this.destructStartLink(_startStr);
747
- if (startInfo.stroke !== info.stroke) {
748
- return { type: "INVALID", stroke: "INVALID" };
749
- }
750
- if (startInfo.type === "arrow_open") {
751
- startInfo.type = info.type;
752
- } else {
753
- if (startInfo.type !== info.type) {
754
- return { type: "INVALID", stroke: "INVALID" };
755
- }
756
- startInfo.type = "double_" + startInfo.type;
757
- }
758
- if (startInfo.type === "double_arrow") {
759
- startInfo.type = "double_arrow_point";
760
- }
761
- startInfo.length = info.length;
762
- return startInfo;
763
- }
764
- return info;
765
- }
766
- // Todo optimizer this by caching existing nodes
767
- exists(allSgs, _id) {
768
- for (const sg of allSgs) {
769
- if (sg.nodes.includes(_id)) {
770
- return true;
771
- }
772
- }
773
- return false;
774
- }
775
- /**
776
- * Deletes an id from all subgraphs
777
- *
778
- */
779
- makeUniq(sg, allSubgraphs) {
780
- const res = [];
781
- sg.nodes.forEach((_id, pos) => {
782
- if (!this.exists(allSubgraphs, _id)) {
783
- res.push(sg.nodes[pos]);
784
- }
785
- });
786
- return { nodes: res };
787
- }
788
- getTypeFromVertex(vertex) {
789
- if (vertex.img) {
790
- return "imageSquare";
791
- }
792
- if (vertex.icon) {
793
- if (vertex.form === "circle") {
794
- return "iconCircle";
795
- }
796
- if (vertex.form === "square") {
797
- return "iconSquare";
798
- }
799
- if (vertex.form === "rounded") {
800
- return "iconRounded";
801
- }
802
- return "icon";
803
- }
804
- switch (vertex.type) {
805
- case "square":
806
- case void 0:
807
- return "squareRect";
808
- case "round":
809
- return "roundedRect";
810
- case "ellipse":
811
- return "ellipse";
812
- default:
813
- return vertex.type;
814
- }
815
- }
816
- findNode(nodes, id) {
817
- return nodes.find((node) => node.id === id);
818
- }
819
- destructEdgeType(type) {
820
- let arrowTypeStart = "none";
821
- let arrowTypeEnd = "arrow_point";
822
- switch (type) {
823
- case "arrow_point":
824
- case "arrow_circle":
825
- case "arrow_cross":
826
- arrowTypeEnd = type;
827
- break;
828
- case "double_arrow_point":
829
- case "double_arrow_circle":
830
- case "double_arrow_cross":
831
- arrowTypeStart = type.replace("double_", "");
832
- arrowTypeEnd = arrowTypeStart;
833
- break;
834
- }
835
- return { arrowTypeStart, arrowTypeEnd };
836
- }
837
- addNodeFromVertex(vertex, nodes, parentDB, subGraphDB, config, look) {
838
- const parentId = parentDB.get(vertex.id);
839
- const isGroup = subGraphDB.get(vertex.id) ?? false;
840
- const node = this.findNode(nodes, vertex.id);
841
- if (node) {
842
- node.cssStyles = vertex.styles;
843
- node.cssCompiledStyles = this.getCompiledStyles(vertex.classes);
844
- node.cssClasses = vertex.classes.join(" ");
845
- } else {
846
- const baseNode = {
847
- id: vertex.id,
848
- label: vertex.text,
849
- labelType: vertex.labelType,
850
- labelStyle: "",
851
- parentId,
852
- padding: config.flowchart?.padding || 8,
853
- cssStyles: vertex.styles,
854
- cssCompiledStyles: this.getCompiledStyles(["default", "node", ...vertex.classes]),
855
- cssClasses: "default " + vertex.classes.join(" "),
856
- dir: vertex.dir,
857
- domId: vertex.domId,
858
- look,
859
- link: vertex.link,
860
- linkTarget: vertex.linkTarget,
861
- tooltip: this.getTooltip(vertex.id),
862
- icon: vertex.icon,
863
- pos: vertex.pos,
864
- img: vertex.img,
865
- assetWidth: vertex.assetWidth,
866
- assetHeight: vertex.assetHeight,
867
- constraint: vertex.constraint
868
- };
869
- if (isGroup) {
870
- nodes.push({
871
- ...baseNode,
872
- isGroup: true,
873
- shape: "rect"
874
- });
875
- } else {
876
- nodes.push({
877
- ...baseNode,
878
- isGroup: false,
879
- shape: this.getTypeFromVertex(vertex)
880
- });
881
- }
882
- }
883
- }
884
- getCompiledStyles(classDefs) {
885
- let compiledStyles = [];
886
- for (const customClass of classDefs) {
887
- const cssClass = this.classes.get(customClass);
888
- if (cssClass?.styles) {
889
- compiledStyles = [...compiledStyles, ...cssClass.styles ?? []].map((s) => s.trim());
890
- }
891
- if (cssClass?.textStyles) {
892
- compiledStyles = [...compiledStyles, ...cssClass.textStyles ?? []].map((s) => s.trim());
893
- }
894
- }
895
- return compiledStyles;
896
- }
897
- getData() {
898
- const config = getConfig2();
899
- const nodes = [];
900
- const edges = [];
901
- const subGraphs = this.getSubGraphs();
902
- const parentDB = /* @__PURE__ */ new Map();
903
- const subGraphDB = /* @__PURE__ */ new Map();
904
- for (let i = subGraphs.length - 1; i >= 0; i--) {
905
- const subGraph = subGraphs[i];
906
- if (subGraph.nodes.length > 0) {
907
- subGraphDB.set(subGraph.id, true);
908
- }
909
- for (const id of subGraph.nodes) {
910
- parentDB.set(id, subGraph.id);
911
- }
912
- }
913
- for (let i = subGraphs.length - 1; i >= 0; i--) {
914
- const subGraph = subGraphs[i];
915
- nodes.push({
916
- id: subGraph.id,
917
- label: subGraph.title,
918
- labelStyle: "",
919
- labelType: subGraph.labelType,
920
- parentId: parentDB.get(subGraph.id),
921
- padding: 8,
922
- cssCompiledStyles: this.getCompiledStyles(subGraph.classes),
923
- cssClasses: subGraph.classes.join(" "),
924
- shape: "rect",
925
- dir: subGraph.dir,
926
- isGroup: true,
927
- look: config.look
928
- });
929
- }
930
- const n = this.getVertices();
931
- n.forEach((vertex) => {
932
- this.addNodeFromVertex(vertex, nodes, parentDB, subGraphDB, config, config.look || "classic");
933
- });
934
- const e = this.getEdges();
935
- e.forEach((rawEdge, index) => {
936
- const { arrowTypeStart, arrowTypeEnd } = this.destructEdgeType(rawEdge.type);
937
- const styles = [...e.defaultStyle ?? []];
938
- if (rawEdge.style) {
939
- styles.push(...rawEdge.style);
940
- }
941
- const edge = {
942
- id: getEdgeId(rawEdge.start, rawEdge.end, { counter: index, prefix: "L" }, rawEdge.id),
943
- isUserDefinedId: rawEdge.isUserDefinedId,
944
- start: rawEdge.start,
945
- end: rawEdge.end,
946
- type: rawEdge.type ?? "normal",
947
- label: rawEdge.text,
948
- labelType: rawEdge.labelType,
949
- labelpos: "c",
950
- thickness: rawEdge.stroke,
951
- minlen: rawEdge.length,
952
- classes: rawEdge?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
953
- arrowTypeStart: rawEdge?.stroke === "invisible" || rawEdge?.type === "arrow_open" ? "none" : arrowTypeStart,
954
- arrowTypeEnd: rawEdge?.stroke === "invisible" || rawEdge?.type === "arrow_open" ? "none" : arrowTypeEnd,
955
- arrowheadStyle: "fill: #333",
956
- cssCompiledStyles: this.getCompiledStyles(rawEdge.classes),
957
- labelStyle: styles,
958
- style: styles,
959
- pattern: rawEdge.stroke,
960
- look: config.look,
961
- animate: rawEdge.animate,
962
- animation: rawEdge.animation,
963
- curve: rawEdge.interpolate || this.edges.defaultInterpolate || config.flowchart?.curve
964
- };
965
- edges.push(edge);
966
- });
967
- return { nodes, edges, other: {}, config };
968
- }
969
- defaultConfig() {
970
- return defaultConfig2.flowchart;
971
- }
972
- };
973
- var getClasses = /* @__PURE__ */ __name(function(text, diagramObj) {
974
- return diagramObj.db.getClasses();
975
- }, "getClasses");
976
- var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
977
- log.info("REF0:");
978
- log.info("Drawing state diagram (v2)", id);
979
- const { securityLevel, flowchart: conf, layout } = getConfig2();
980
- diag.db.setDiagramId(id);
981
- log.debug("Before getData: ");
982
- const data4Layout = diag.db.getData();
983
- log.debug("Data: ", data4Layout);
984
- const svg = getDiagramElement(id, securityLevel);
985
- const direction = diag.db.getDirection();
986
- data4Layout.type = diag.type;
987
- data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(layout);
988
- if (data4Layout.layoutAlgorithm === "dagre" && layout === "elk") {
989
- log.warn(
990
- "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."
991
- );
992
- }
993
- data4Layout.direction = direction;
994
- data4Layout.nodeSpacing = conf?.nodeSpacing || 50;
995
- data4Layout.rankSpacing = conf?.rankSpacing || 50;
996
- data4Layout.markers = ["point", "circle", "cross"];
997
- data4Layout.diagramId = id;
998
- log.debug("REF1:", data4Layout);
999
- await render(data4Layout, svg);
1000
- const padding = data4Layout.config.flowchart?.diagramPadding ?? 8;
1001
- utils_default.insertTitle(
1002
- svg,
1003
- "flowchartTitleText",
1004
- conf?.titleTopMargin || 0,
1005
- diag.db.getDiagramTitle()
1006
- );
1007
- setupViewPortForSVG(svg, padding, "flowchart", conf?.useMaxWidth || false);
1008
- }, "draw");
1009
- var flowRenderer_v3_unified_default = {
1010
- getClasses,
1011
- draw
1012
- };
1013
- var parser = (function() {
1014
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
1015
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
1016
- return o2;
1017
- }, "o"), $V0 = [1, 4], $V1 = [1, 3], $V2 = [1, 5], $V3 = [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, 125], $V4 = [2, 2], $V5 = [1, 13], $V6 = [1, 14], $V7 = [1, 15], $V8 = [1, 16], $V9 = [1, 23], $Va = [1, 25], $Vb = [1, 26], $Vc = [1, 27], $Vd = [1, 50], $Ve = [1, 49], $Vf = [1, 29], $Vg = [1, 30], $Vh = [1, 31], $Vi = [1, 32], $Vj = [1, 33], $Vk = [1, 45], $Vl = [1, 47], $Vm = [1, 43], $Vn = [1, 48], $Vo = [1, 44], $Vp = [1, 51], $Vq = [1, 46], $Vr = [1, 52], $Vs = [1, 53], $Vt = [1, 34], $Vu = [1, 35], $Vv = [1, 36], $Vw = [1, 37], $Vx = [1, 38], $Vy = [1, 58], $Vz = [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, 125], $VA = [1, 62], $VB = [1, 61], $VC = [1, 63], $VD = [8, 9, 11, 75, 77, 78], $VE = [1, 79], $VF = [1, 92], $VG = [1, 97], $VH = [1, 96], $VI = [1, 93], $VJ = [1, 89], $VK = [1, 95], $VL = [1, 91], $VM = [1, 98], $VN = [1, 94], $VO = [1, 99], $VP = [1, 90], $VQ = [8, 9, 10, 11, 40, 75, 77, 78], $VR = [8, 9, 10, 11, 40, 46, 75, 77, 78], $VS = [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], $VT = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VU = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VV = [1, 122], $VW = [1, 123], $VX = [1, 125], $VY = [1, 124], $VZ = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], $V_ = [1, 134], $V$ = [1, 148], $V01 = [1, 149], $V11 = [1, 150], $V21 = [1, 151], $V31 = [1, 136], $V41 = [1, 138], $V51 = [1, 142], $V61 = [1, 143], $V71 = [1, 144], $V81 = [1, 145], $V91 = [1, 146], $Va1 = [1, 147], $Vb1 = [1, 152], $Vc1 = [1, 153], $Vd1 = [1, 132], $Ve1 = [1, 133], $Vf1 = [1, 140], $Vg1 = [1, 135], $Vh1 = [1, 139], $Vi1 = [1, 137], $Vj1 = [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, 125], $Vk1 = [1, 155], $Vl1 = [1, 157], $Vm1 = [8, 9, 11], $Vn1 = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], $Vo1 = [1, 177], $Vp1 = [1, 173], $Vq1 = [1, 174], $Vr1 = [1, 178], $Vs1 = [1, 175], $Vt1 = [1, 176], $Vu1 = [77, 116, 119], $Vv1 = [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], $Vw1 = [10, 106], $Vx1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], $Vy1 = [1, 248], $Vz1 = [1, 246], $VA1 = [1, 250], $VB1 = [1, 244], $VC1 = [1, 245], $VD1 = [1, 247], $VE1 = [1, 249], $VF1 = [1, 251], $VG1 = [1, 269], $VH1 = [8, 9, 11, 106], $VI1 = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112];
1018
- var parser2 = {
1019
- trace: /* @__PURE__ */ __name(function trace() {
1020
- }, "trace"),
1021
- yy: {},
1022
- 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, "direction_td": 125, "$accept": 0, "$end": 1 },
1023
- 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", 125: "direction_td" },
1024
- 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], [33, 1]],
1025
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
1026
- var $0 = $$.length - 1;
1027
- switch (yystate) {
1028
- case 2:
1029
- this.$ = [];
1030
- break;
1031
- case 3:
1032
- if (!Array.isArray($$[$0]) || $$[$0].length > 0) {
1033
- $$[$0 - 1].push($$[$0]);
1034
- }
1035
- this.$ = $$[$0 - 1];
1036
- break;
1037
- case 4:
1038
- case 183:
1039
- this.$ = $$[$0];
1040
- break;
1041
- case 11:
1042
- yy.setDirection("TB");
1043
- this.$ = "TB";
1044
- break;
1045
- case 12:
1046
- yy.setDirection($$[$0 - 1]);
1047
- this.$ = $$[$0 - 1];
1048
- break;
1049
- case 27:
1050
- this.$ = $$[$0 - 1].nodes;
1051
- break;
1052
- case 28:
1053
- case 29:
1054
- case 30:
1055
- case 31:
1056
- case 32:
1057
- this.$ = [];
1058
- break;
1059
- case 33:
1060
- this.$ = yy.addSubGraph($$[$0 - 6], $$[$0 - 1], $$[$0 - 4]);
1061
- break;
1062
- case 34:
1063
- this.$ = yy.addSubGraph($$[$0 - 3], $$[$0 - 1], $$[$0 - 3]);
1064
- break;
1065
- case 35:
1066
- this.$ = yy.addSubGraph(void 0, $$[$0 - 1], void 0);
1067
- break;
1068
- case 37:
1069
- this.$ = $$[$0].trim();
1070
- yy.setAccTitle(this.$);
1071
- break;
1072
- case 38:
1073
- case 39:
1074
- this.$ = $$[$0].trim();
1075
- yy.setAccDescription(this.$);
1076
- break;
1077
- case 43:
1078
- this.$ = $$[$0 - 1] + $$[$0];
1079
- break;
1080
- case 44:
1081
- this.$ = $$[$0];
1082
- break;
1083
- case 45:
1084
- yy.addVertex($$[$0 - 1][$$[$0 - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1085
- yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1086
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1087
- break;
1088
- case 46:
1089
- yy.addLink($$[$0 - 2].stmt, $$[$0], $$[$0 - 1]);
1090
- this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0 - 2].nodes) };
1091
- break;
1092
- case 47:
1093
- yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1094
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1095
- break;
1096
- case 48:
1097
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1] };
1098
- break;
1099
- case 49:
1100
- yy.addVertex($$[$0 - 1][$$[$0 - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1101
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1], shapeData: $$[$0] };
1102
- break;
1103
- case 50:
1104
- this.$ = { stmt: $$[$0], nodes: $$[$0] };
1105
- break;
1106
- case 51:
1107
- this.$ = [$$[$0]];
1108
- break;
1109
- case 52:
1110
- yy.addVertex($$[$0 - 5][$$[$0 - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0 - 4]);
1111
- this.$ = $$[$0 - 5].concat($$[$0]);
1112
- break;
1113
- case 53:
1114
- this.$ = $$[$0 - 4].concat($$[$0]);
1115
- break;
1116
- case 54:
1117
- this.$ = $$[$0];
1118
- break;
1119
- case 55:
1120
- this.$ = $$[$0 - 2];
1121
- yy.setClass($$[$0 - 2], $$[$0]);
1122
- break;
1123
- case 56:
1124
- this.$ = $$[$0 - 3];
1125
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "square");
1126
- break;
1127
- case 57:
1128
- this.$ = $$[$0 - 3];
1129
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "doublecircle");
1130
- break;
1131
- case 58:
1132
- this.$ = $$[$0 - 5];
1133
- yy.addVertex($$[$0 - 5], $$[$0 - 2], "circle");
1134
- break;
1135
- case 59:
1136
- this.$ = $$[$0 - 3];
1137
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "ellipse");
1138
- break;
1139
- case 60:
1140
- this.$ = $$[$0 - 3];
1141
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "stadium");
1142
- break;
1143
- case 61:
1144
- this.$ = $$[$0 - 3];
1145
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "subroutine");
1146
- break;
1147
- case 62:
1148
- this.$ = $$[$0 - 7];
1149
- yy.addVertex($$[$0 - 7], $$[$0 - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[$$[$0 - 5], $$[$0 - 3]]]));
1150
- break;
1151
- case 63:
1152
- this.$ = $$[$0 - 3];
1153
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "cylinder");
1154
- break;
1155
- case 64:
1156
- this.$ = $$[$0 - 3];
1157
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "round");
1158
- break;
1159
- case 65:
1160
- this.$ = $$[$0 - 3];
1161
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "diamond");
1162
- break;
1163
- case 66:
1164
- this.$ = $$[$0 - 5];
1165
- yy.addVertex($$[$0 - 5], $$[$0 - 2], "hexagon");
1166
- break;
1167
- case 67:
1168
- this.$ = $$[$0 - 3];
1169
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "odd");
1170
- break;
1171
- case 68:
1172
- this.$ = $$[$0 - 3];
1173
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "trapezoid");
1174
- break;
1175
- case 69:
1176
- this.$ = $$[$0 - 3];
1177
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "inv_trapezoid");
1178
- break;
1179
- case 70:
1180
- this.$ = $$[$0 - 3];
1181
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_right");
1182
- break;
1183
- case 71:
1184
- this.$ = $$[$0 - 3];
1185
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_left");
1186
- break;
1187
- case 72:
1188
- this.$ = $$[$0];
1189
- yy.addVertex($$[$0]);
1190
- break;
1191
- case 73:
1192
- $$[$0 - 1].text = $$[$0];
1193
- this.$ = $$[$0 - 1];
1194
- break;
1195
- case 74:
1196
- case 75:
1197
- $$[$0 - 2].text = $$[$0 - 1];
1198
- this.$ = $$[$0 - 2];
1199
- break;
1200
- case 76:
1201
- this.$ = $$[$0];
1202
- break;
1203
- case 77:
1204
- var inf = yy.destructLink($$[$0], $$[$0 - 2]);
1205
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1] };
1206
- break;
1207
- case 78:
1208
- var inf = yy.destructLink($$[$0], $$[$0 - 2]);
1209
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1], "id": $$[$0 - 3] };
1210
- break;
1211
- case 79:
1212
- this.$ = { text: $$[$0], type: "text" };
1213
- break;
1214
- case 80:
1215
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1216
- break;
1217
- case 81:
1218
- this.$ = { text: $$[$0], type: "string" };
1219
- break;
1220
- case 82:
1221
- this.$ = { text: $$[$0], type: "markdown" };
1222
- break;
1223
- case 83:
1224
- var inf = yy.destructLink($$[$0]);
1225
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length };
1226
- break;
1227
- case 84:
1228
- var inf = yy.destructLink($$[$0]);
1229
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "id": $$[$0 - 1] };
1230
- break;
1231
- case 85:
1232
- this.$ = $$[$0 - 1];
1233
- break;
1234
- case 86:
1235
- this.$ = { text: $$[$0], type: "text" };
1236
- break;
1237
- case 87:
1238
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1239
- break;
1240
- case 88:
1241
- this.$ = { text: $$[$0], type: "string" };
1242
- break;
1243
- case 89:
1244
- case 104:
1245
- this.$ = { text: $$[$0], type: "markdown" };
1246
- break;
1247
- case 101:
1248
- this.$ = { text: $$[$0], type: "text" };
1249
- break;
1250
- case 102:
1251
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1252
- break;
1253
- case 103:
1254
- this.$ = { text: $$[$0], type: "text" };
1255
- break;
1256
- case 105:
1257
- this.$ = $$[$0 - 4];
1258
- yy.addClass($$[$0 - 2], $$[$0]);
1259
- break;
1260
- case 106:
1261
- this.$ = $$[$0 - 4];
1262
- yy.setClass($$[$0 - 2], $$[$0]);
1263
- break;
1264
- case 107:
1265
- case 115:
1266
- this.$ = $$[$0 - 1];
1267
- yy.setClickEvent($$[$0 - 1], $$[$0]);
1268
- break;
1269
- case 108:
1270
- case 116:
1271
- this.$ = $$[$0 - 3];
1272
- yy.setClickEvent($$[$0 - 3], $$[$0 - 2]);
1273
- yy.setTooltip($$[$0 - 3], $$[$0]);
1274
- break;
1275
- case 109:
1276
- this.$ = $$[$0 - 2];
1277
- yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
1278
- break;
1279
- case 110:
1280
- this.$ = $$[$0 - 4];
1281
- yy.setClickEvent($$[$0 - 4], $$[$0 - 3], $$[$0 - 2]);
1282
- yy.setTooltip($$[$0 - 4], $$[$0]);
1283
- break;
1284
- case 111:
1285
- this.$ = $$[$0 - 2];
1286
- yy.setLink($$[$0 - 2], $$[$0]);
1287
- break;
1288
- case 112:
1289
- this.$ = $$[$0 - 4];
1290
- yy.setLink($$[$0 - 4], $$[$0 - 2]);
1291
- yy.setTooltip($$[$0 - 4], $$[$0]);
1292
- break;
1293
- case 113:
1294
- this.$ = $$[$0 - 4];
1295
- yy.setLink($$[$0 - 4], $$[$0 - 2], $$[$0]);
1296
- break;
1297
- case 114:
1298
- this.$ = $$[$0 - 6];
1299
- yy.setLink($$[$0 - 6], $$[$0 - 4], $$[$0]);
1300
- yy.setTooltip($$[$0 - 6], $$[$0 - 2]);
1301
- break;
1302
- case 117:
1303
- this.$ = $$[$0 - 1];
1304
- yy.setLink($$[$0 - 1], $$[$0]);
1305
- break;
1306
- case 118:
1307
- this.$ = $$[$0 - 3];
1308
- yy.setLink($$[$0 - 3], $$[$0 - 2]);
1309
- yy.setTooltip($$[$0 - 3], $$[$0]);
1310
- break;
1311
- case 119:
1312
- this.$ = $$[$0 - 3];
1313
- yy.setLink($$[$0 - 3], $$[$0 - 2], $$[$0]);
1314
- break;
1315
- case 120:
1316
- this.$ = $$[$0 - 5];
1317
- yy.setLink($$[$0 - 5], $$[$0 - 4], $$[$0]);
1318
- yy.setTooltip($$[$0 - 5], $$[$0 - 2]);
1319
- break;
1320
- case 121:
1321
- this.$ = $$[$0 - 4];
1322
- yy.addVertex($$[$0 - 2], void 0, void 0, $$[$0]);
1323
- break;
1324
- case 122:
1325
- this.$ = $$[$0 - 4];
1326
- yy.updateLink([$$[$0 - 2]], $$[$0]);
1327
- break;
1328
- case 123:
1329
- this.$ = $$[$0 - 4];
1330
- yy.updateLink($$[$0 - 2], $$[$0]);
1331
- break;
1332
- case 124:
1333
- this.$ = $$[$0 - 8];
1334
- yy.updateLinkInterpolate([$$[$0 - 6]], $$[$0 - 2]);
1335
- yy.updateLink([$$[$0 - 6]], $$[$0]);
1336
- break;
1337
- case 125:
1338
- this.$ = $$[$0 - 8];
1339
- yy.updateLinkInterpolate($$[$0 - 6], $$[$0 - 2]);
1340
- yy.updateLink($$[$0 - 6], $$[$0]);
1341
- break;
1342
- case 126:
1343
- this.$ = $$[$0 - 6];
1344
- yy.updateLinkInterpolate([$$[$0 - 4]], $$[$0]);
1345
- break;
1346
- case 127:
1347
- this.$ = $$[$0 - 6];
1348
- yy.updateLinkInterpolate($$[$0 - 4], $$[$0]);
1349
- break;
1350
- case 128:
1351
- case 130:
1352
- this.$ = [$$[$0]];
1353
- break;
1354
- case 129:
1355
- case 131:
1356
- $$[$0 - 2].push($$[$0]);
1357
- this.$ = $$[$0 - 2];
1358
- break;
1359
- case 133:
1360
- this.$ = $$[$0 - 1] + $$[$0];
1361
- break;
1362
- case 181:
1363
- this.$ = $$[$0];
1364
- break;
1365
- case 182:
1366
- this.$ = $$[$0 - 1] + "" + $$[$0];
1367
- break;
1368
- case 184:
1369
- this.$ = $$[$0 - 1] + "" + $$[$0];
1370
- break;
1371
- case 185:
1372
- this.$ = { stmt: "dir", value: "TB" };
1373
- break;
1374
- case 186:
1375
- this.$ = { stmt: "dir", value: "BT" };
1376
- break;
1377
- case 187:
1378
- this.$ = { stmt: "dir", value: "RL" };
1379
- break;
1380
- case 188:
1381
- this.$ = { stmt: "dir", value: "LR" };
1382
- break;
1383
- case 189:
1384
- this.$ = { stmt: "dir", value: "TD" };
1385
- break;
1386
- }
1387
- }, "anonymous"),
1388
- table: [{ 3: 1, 4: 2, 9: $V0, 10: $V1, 12: $V2 }, { 1: [3] }, o($V3, $V4, { 5: 6 }), { 4: 7, 9: $V0, 10: $V1, 12: $V2 }, { 4: 8, 9: $V0, 10: $V1, 12: $V2 }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 39, 44: $Vd, 45: 40, 47: 41, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw, 125: $Vx }, o($V3, [2, 9]), o($V3, [2, 10]), o($V3, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: $Vy, 15: 54, 18: 57 }, o($Vz, [2, 3]), o($Vz, [2, 4]), o($Vz, [2, 5]), o($Vz, [2, 6]), o($Vz, [2, 7]), o($Vz, [2, 8]), { 8: $VA, 9: $VB, 11: $VC, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: $VA, 9: $VB, 11: $VC, 21: 68 }, { 8: $VA, 9: $VB, 11: $VC, 21: 69 }, { 8: $VA, 9: $VB, 11: $VC, 21: 70 }, { 8: $VA, 9: $VB, 11: $VC, 21: 71 }, { 8: $VA, 9: $VB, 11: $VC, 21: 72 }, { 8: $VA, 9: $VB, 10: [1, 73], 11: $VC, 21: 74 }, o($Vz, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, o($Vz, [2, 39]), o($VD, [2, 50], { 18: 77, 39: 78, 10: $Vy, 40: $VE }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: $VF, 44: $VG, 60: $VH, 80: [1, 87], 89: $VI, 95: [1, 84], 97: [1, 85], 101: 86, 105: $VJ, 106: $VK, 109: $VL, 111: $VM, 114: $VN, 115: $VO, 116: $VP, 120: 88 }, o($Vz, [2, 185]), o($Vz, [2, 186]), o($Vz, [2, 187]), o($Vz, [2, 188]), o($Vz, [2, 189]), o($VQ, [2, 51]), o($VQ, [2, 54], { 46: [1, 100] }), o($VR, [2, 72], { 113: 113, 29: [1, 101], 44: $Vd, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: $Ve, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), o($VS, [2, 181]), o($VS, [2, 142]), o($VS, [2, 143]), o($VS, [2, 144]), o($VS, [2, 145]), o($VS, [2, 146]), o($VS, [2, 147]), o($VS, [2, 148]), o($VS, [2, 149]), o($VS, [2, 150]), o($VS, [2, 151]), o($VS, [2, 152]), o($V3, [2, 12]), o($V3, [2, 18]), o($V3, [2, 19]), { 9: [1, 114] }, o($VT, [2, 26], { 18: 115, 10: $Vy }), o($Vz, [2, 27]), { 42: 116, 43: 39, 44: $Vd, 45: 40, 47: 41, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vz, [2, 40]), o($Vz, [2, 41]), o($Vz, [2, 42]), o($VU, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: $VV, 81: $VW, 116: $VX, 119: $VY }, { 75: [1, 126], 77: [1, 127] }, o($VZ, [2, 83]), o($Vz, [2, 28]), o($Vz, [2, 29]), o($Vz, [2, 30]), o($Vz, [2, 31]), o($Vz, [2, 32]), { 10: $V_, 12: $V$, 14: $V01, 27: $V11, 28: 128, 32: $V21, 44: $V31, 60: $V41, 75: $V51, 80: [1, 130], 81: [1, 131], 83: 141, 84: $V61, 85: $V71, 86: $V81, 87: $V91, 88: $Va1, 89: $Vb1, 90: $Vc1, 91: 129, 105: $Vd1, 109: $Ve1, 111: $Vf1, 114: $Vg1, 115: $Vh1, 116: $Vi1 }, o($Vj1, $V4, { 5: 154 }), o($Vz, [2, 37]), o($Vz, [2, 38]), o($VD, [2, 48], { 44: $Vk1 }), o($VD, [2, 49], { 18: 156, 10: $Vy, 40: $Vl1 }), o($VQ, [2, 44]), { 44: $Vd, 47: 158, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: $Vd, 47: 162, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs }, { 44: $Vd, 47: 163, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vm1, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, o($Vm1, [2, 115], { 120: 168, 10: [1, 167], 14: $VF, 44: $VG, 60: $VH, 89: $VI, 105: $VJ, 106: $VK, 109: $VL, 111: $VM, 114: $VN, 115: $VO, 116: $VP }), o($Vm1, [2, 117], { 10: [1, 169] }), o($Vn1, [2, 183]), o($Vn1, [2, 170]), o($Vn1, [2, 171]), o($Vn1, [2, 172]), o($Vn1, [2, 173]), o($Vn1, [2, 174]), o($Vn1, [2, 175]), o($Vn1, [2, 176]), o($Vn1, [2, 177]), o($Vn1, [2, 178]), o($Vn1, [2, 179]), o($Vn1, [2, 180]), { 44: $Vd, 47: 170, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs }, { 30: 171, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 179, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 181, 50: [1, 180], 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 182, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 183, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 184, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 109: [1, 185] }, { 30: 186, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 187, 65: [1, 188], 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 189, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 190, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 191, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, o($VS, [2, 182]), o($V3, [2, 20]), o($VT, [2, 25]), o($VD, [2, 46], { 39: 192, 18: 193, 10: $Vy, 40: $VE }), o($VU, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 77: [1, 197], 79: 198, 116: $VX, 119: $VY }, o($Vu1, [2, 79]), o($Vu1, [2, 81]), o($Vu1, [2, 82]), o($Vu1, [2, 168]), o($Vu1, [2, 169]), { 76: 199, 79: 121, 80: $VV, 81: $VW, 116: $VX, 119: $VY }, o($VZ, [2, 84]), { 8: $VA, 9: $VB, 10: $V_, 11: $VC, 12: $V$, 14: $V01, 21: 201, 27: $V11, 29: [1, 200], 32: $V21, 44: $V31, 60: $V41, 75: $V51, 83: 141, 84: $V61, 85: $V71, 86: $V81, 87: $V91, 88: $Va1, 89: $Vb1, 90: $Vc1, 91: 202, 105: $Vd1, 109: $Ve1, 111: $Vf1, 114: $Vg1, 115: $Vh1, 116: $Vi1 }, o($Vv1, [2, 101]), o($Vv1, [2, 103]), o($Vv1, [2, 104]), o($Vv1, [2, 157]), o($Vv1, [2, 158]), o($Vv1, [2, 159]), o($Vv1, [2, 160]), o($Vv1, [2, 161]), o($Vv1, [2, 162]), o($Vv1, [2, 163]), o($Vv1, [2, 164]), o($Vv1, [2, 165]), o($Vv1, [2, 166]), o($Vv1, [2, 167]), o($Vv1, [2, 90]), o($Vv1, [2, 91]), o($Vv1, [2, 92]), o($Vv1, [2, 93]), o($Vv1, [2, 94]), o($Vv1, [2, 95]), o($Vv1, [2, 96]), o($Vv1, [2, 97]), o($Vv1, [2, 98]), o($Vv1, [2, 99]), o($Vv1, [2, 100]), { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 203], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 39, 44: $Vd, 45: 40, 47: 41, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw, 125: $Vx }, { 10: $Vy, 18: 204 }, { 44: [1, 205] }, o($VQ, [2, 43]), { 10: [1, 206], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 113, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, o($Vw1, [2, 128]), { 10: [1, 210], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 113, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: [1, 211], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 113, 114: $Vq, 115: $Vr, 116: $Vs }, { 80: [1, 212] }, o($Vm1, [2, 109], { 10: [1, 213] }), o($Vm1, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, o($Vn1, [2, 184]), { 80: [1, 216], 98: [1, 217] }, o($VQ, [2, 55], { 113: 113, 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), { 31: [1, 218], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, o($Vx1, [2, 86]), o($Vx1, [2, 88]), o($Vx1, [2, 89]), o($Vx1, [2, 153]), o($Vx1, [2, 154]), o($Vx1, [2, 155]), o($Vx1, [2, 156]), { 49: [1, 220], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 221, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 51: [1, 222], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 53: [1, 223], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 55: [1, 224], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 57: [1, 225], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 60: [1, 226] }, { 64: [1, 227], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 66: [1, 228], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 30: 229, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 31: [1, 230], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 67: $Vo1, 69: [1, 231], 71: [1, 232], 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 67: $Vo1, 69: [1, 234], 71: [1, 233], 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, o($VD, [2, 45], { 18: 156, 10: $Vy, 40: $Vl1 }), o($VD, [2, 47], { 44: $Vk1 }), o($VU, [2, 75]), o($VU, [2, 74]), { 62: [1, 235], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, o($VU, [2, 77]), o($Vu1, [2, 80]), { 77: [1, 236], 79: 198, 116: $VX, 119: $VY }, { 30: 237, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, o($Vj1, $V4, { 5: 238 }), o($Vv1, [2, 102]), o($Vz, [2, 35]), { 43: 239, 44: $Vd, 45: 40, 47: 41, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: $Vy, 18: 240 }, { 10: $Vy1, 60: $Vz1, 84: $VA1, 92: 241, 105: $VB1, 107: 242, 108: 243, 109: $VC1, 110: $VD1, 111: $VE1, 112: $VF1 }, { 10: $Vy1, 60: $Vz1, 84: $VA1, 92: 252, 104: [1, 253], 105: $VB1, 107: 242, 108: 243, 109: $VC1, 110: $VD1, 111: $VE1, 112: $VF1 }, { 10: $Vy1, 60: $Vz1, 84: $VA1, 92: 254, 104: [1, 255], 105: $VB1, 107: 242, 108: 243, 109: $VC1, 110: $VD1, 111: $VE1, 112: $VF1 }, { 105: [1, 256] }, { 10: $Vy1, 60: $Vz1, 84: $VA1, 92: 257, 105: $VB1, 107: 242, 108: 243, 109: $VC1, 110: $VD1, 111: $VE1, 112: $VF1 }, { 44: $Vd, 47: 258, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vm1, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, o($Vm1, [2, 116]), o($Vm1, [2, 118], { 10: [1, 262] }), o($Vm1, [2, 119]), o($VR, [2, 56]), o($Vx1, [2, 87]), o($VR, [2, 57]), { 51: [1, 263], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, o($VR, [2, 64]), o($VR, [2, 59]), o($VR, [2, 60]), o($VR, [2, 61]), { 109: [1, 264] }, o($VR, [2, 63]), o($VR, [2, 65]), { 66: [1, 265], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, o($VR, [2, 67]), o($VR, [2, 68]), o($VR, [2, 70]), o($VR, [2, 69]), o($VR, [2, 71]), o([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), o($VU, [2, 78]), { 31: [1, 266], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 267], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 39, 44: $Vd, 45: 40, 47: 41, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw, 125: $Vx }, o($VQ, [2, 53]), { 43: 268, 44: $Vd, 45: 40, 47: 41, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vm1, [2, 121], { 106: $VG1 }), o($VH1, [2, 130], { 108: 270, 10: $Vy1, 60: $Vz1, 84: $VA1, 105: $VB1, 109: $VC1, 110: $VD1, 111: $VE1, 112: $VF1 }), o($VI1, [2, 132]), o($VI1, [2, 134]), o($VI1, [2, 135]), o($VI1, [2, 136]), o($VI1, [2, 137]), o($VI1, [2, 138]), o($VI1, [2, 139]), o($VI1, [2, 140]), o($VI1, [2, 141]), o($Vm1, [2, 122], { 106: $VG1 }), { 10: [1, 271] }, o($Vm1, [2, 123], { 106: $VG1 }), { 10: [1, 272] }, o($Vw1, [2, 129]), o($Vm1, [2, 105], { 106: $VG1 }), o($Vm1, [2, 106], { 113: 113, 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), o($Vm1, [2, 110]), o($Vm1, [2, 112], { 10: [1, 273] }), o($Vm1, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: $VA, 9: $VB, 11: $VC, 21: 278 }, o($Vz, [2, 34]), o($VQ, [2, 52]), { 10: $Vy1, 60: $Vz1, 84: $VA1, 105: $VB1, 107: 279, 108: 243, 109: $VC1, 110: $VD1, 111: $VE1, 112: $VF1 }, o($VI1, [2, 133]), { 14: $VF, 44: $VG, 60: $VH, 89: $VI, 101: 280, 105: $VJ, 106: $VK, 109: $VL, 111: $VM, 114: $VN, 115: $VO, 116: $VP, 120: 88 }, { 14: $VF, 44: $VG, 60: $VH, 89: $VI, 101: 281, 105: $VJ, 106: $VK, 109: $VL, 111: $VM, 114: $VN, 115: $VO, 116: $VP, 120: 88 }, { 98: [1, 282] }, o($Vm1, [2, 120]), o($VR, [2, 58]), { 30: 283, 67: $Vo1, 80: $Vp1, 81: $Vq1, 82: 172, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, o($VR, [2, 66]), o($Vj1, $V4, { 5: 284 }), o($VH1, [2, 131], { 108: 270, 10: $Vy1, 60: $Vz1, 84: $VA1, 105: $VB1, 109: $VC1, 110: $VD1, 111: $VE1, 112: $VF1 }), o($Vm1, [2, 126], { 120: 168, 10: [1, 285], 14: $VF, 44: $VG, 60: $VH, 89: $VI, 105: $VJ, 106: $VK, 109: $VL, 111: $VM, 114: $VN, 115: $VO, 116: $VP }), o($Vm1, [2, 127], { 120: 168, 10: [1, 286], 14: $VF, 44: $VG, 60: $VH, 89: $VI, 105: $VJ, 106: $VK, 109: $VL, 111: $VM, 114: $VN, 115: $VO, 116: $VP }), o($Vm1, [2, 114]), { 31: [1, 287], 67: $Vo1, 82: 219, 116: $Vr1, 117: $Vs1, 118: $Vt1 }, { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 288], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 39, 44: $Vd, 45: 40, 47: 41, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 42, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw, 125: $Vx }, { 10: $Vy1, 60: $Vz1, 84: $VA1, 92: 289, 105: $VB1, 107: 242, 108: 243, 109: $VC1, 110: $VD1, 111: $VE1, 112: $VF1 }, { 10: $Vy1, 60: $Vz1, 84: $VA1, 92: 290, 105: $VB1, 107: 242, 108: 243, 109: $VC1, 110: $VD1, 111: $VE1, 112: $VF1 }, o($VR, [2, 62]), o($Vz, [2, 33]), o($Vm1, [2, 124], { 106: $VG1 }), o($Vm1, [2, 125], { 106: $VG1 })],
1389
- defaultActions: {},
1390
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1391
- if (hash.recoverable) {
1392
- this.trace(str);
1393
- } else {
1394
- var error = new Error(str);
1395
- error.hash = hash;
1396
- throw error;
1397
- }
1398
- }, "parseError"),
1399
- parse: /* @__PURE__ */ __name(function parse(input) {
1400
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
1401
- var args = lstack.slice.call(arguments, 1);
1402
- var lexer2 = Object.create(this.lexer);
1403
- var sharedState = { yy: {} };
1404
- for (var k in this.yy) {
1405
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
1406
- sharedState.yy[k] = this.yy[k];
1407
- }
1408
- }
1409
- lexer2.setInput(input, sharedState.yy);
1410
- sharedState.yy.lexer = lexer2;
1411
- sharedState.yy.parser = this;
1412
- if (typeof lexer2.yylloc == "undefined") {
1413
- lexer2.yylloc = {};
1414
- }
1415
- var yyloc = lexer2.yylloc;
1416
- lstack.push(yyloc);
1417
- var ranges = lexer2.options && lexer2.options.ranges;
1418
- if (typeof sharedState.yy.parseError === "function") {
1419
- this.parseError = sharedState.yy.parseError;
1420
- } else {
1421
- this.parseError = Object.getPrototypeOf(this).parseError;
1422
- }
1423
- function popStack(n) {
1424
- stack.length = stack.length - 2 * n;
1425
- vstack.length = vstack.length - n;
1426
- lstack.length = lstack.length - n;
1427
- }
1428
- __name(popStack, "popStack");
1429
- function lex() {
1430
- var token;
1431
- token = tstack.pop() || lexer2.lex() || EOF;
1432
- if (typeof token !== "number") {
1433
- if (token instanceof Array) {
1434
- tstack = token;
1435
- token = tstack.pop();
1436
- }
1437
- token = self.symbols_[token] || token;
1438
- }
1439
- return token;
1440
- }
1441
- __name(lex, "lex");
1442
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
1443
- while (true) {
1444
- state = stack[stack.length - 1];
1445
- if (this.defaultActions[state]) {
1446
- action = this.defaultActions[state];
1447
- } else {
1448
- if (symbol === null || typeof symbol == "undefined") {
1449
- symbol = lex();
1450
- }
1451
- action = table[state] && table[state][symbol];
1452
- }
1453
- if (typeof action === "undefined" || !action.length || !action[0]) {
1454
- var errStr = "";
1455
- expected = [];
1456
- for (p in table[state]) {
1457
- if (this.terminals_[p] && p > TERROR) {
1458
- expected.push("'" + this.terminals_[p] + "'");
1459
- }
1460
- }
1461
- if (lexer2.showPosition) {
1462
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1463
- } else {
1464
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1465
- }
1466
- this.parseError(errStr, {
1467
- text: lexer2.match,
1468
- token: this.terminals_[symbol] || symbol,
1469
- line: lexer2.yylineno,
1470
- loc: yyloc,
1471
- expected
1472
- });
1473
- }
1474
- if (action[0] instanceof Array && action.length > 1) {
1475
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1476
- }
1477
- switch (action[0]) {
1478
- case 1:
1479
- stack.push(symbol);
1480
- vstack.push(lexer2.yytext);
1481
- lstack.push(lexer2.yylloc);
1482
- stack.push(action[1]);
1483
- symbol = null;
1484
- {
1485
- yyleng = lexer2.yyleng;
1486
- yytext = lexer2.yytext;
1487
- yylineno = lexer2.yylineno;
1488
- yyloc = lexer2.yylloc;
1489
- }
1490
- break;
1491
- case 2:
1492
- len = this.productions_[action[1]][1];
1493
- yyval.$ = vstack[vstack.length - len];
1494
- yyval._$ = {
1495
- first_line: lstack[lstack.length - (len || 1)].first_line,
1496
- last_line: lstack[lstack.length - 1].last_line,
1497
- first_column: lstack[lstack.length - (len || 1)].first_column,
1498
- last_column: lstack[lstack.length - 1].last_column
1499
- };
1500
- if (ranges) {
1501
- yyval._$.range = [
1502
- lstack[lstack.length - (len || 1)].range[0],
1503
- lstack[lstack.length - 1].range[1]
1504
- ];
1505
- }
1506
- r = this.performAction.apply(yyval, [
1507
- yytext,
1508
- yyleng,
1509
- yylineno,
1510
- sharedState.yy,
1511
- action[1],
1512
- vstack,
1513
- lstack
1514
- ].concat(args));
1515
- if (typeof r !== "undefined") {
1516
- return r;
1517
- }
1518
- if (len) {
1519
- stack = stack.slice(0, -1 * len * 2);
1520
- vstack = vstack.slice(0, -1 * len);
1521
- lstack = lstack.slice(0, -1 * len);
1522
- }
1523
- stack.push(this.productions_[action[1]][0]);
1524
- vstack.push(yyval.$);
1525
- lstack.push(yyval._$);
1526
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
1527
- stack.push(newState);
1528
- break;
1529
- case 3:
1530
- return true;
1531
- }
1532
- }
1533
- return true;
1534
- }, "parse")
1535
- };
1536
- var lexer = /* @__PURE__ */ (function() {
1537
- var lexer2 = {
1538
- EOF: 1,
1539
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1540
- if (this.yy.parser) {
1541
- this.yy.parser.parseError(str, hash);
1542
- } else {
1543
- throw new Error(str);
1544
- }
1545
- }, "parseError"),
1546
- // resets the lexer, sets new input
1547
- setInput: /* @__PURE__ */ __name(function(input, yy) {
1548
- this.yy = yy || this.yy || {};
1549
- this._input = input;
1550
- this._more = this._backtrack = this.done = false;
1551
- this.yylineno = this.yyleng = 0;
1552
- this.yytext = this.matched = this.match = "";
1553
- this.conditionStack = ["INITIAL"];
1554
- this.yylloc = {
1555
- first_line: 1,
1556
- first_column: 0,
1557
- last_line: 1,
1558
- last_column: 0
1559
- };
1560
- if (this.options.ranges) {
1561
- this.yylloc.range = [0, 0];
1562
- }
1563
- this.offset = 0;
1564
- return this;
1565
- }, "setInput"),
1566
- // consumes and returns one char from the input
1567
- input: /* @__PURE__ */ __name(function() {
1568
- var ch = this._input[0];
1569
- this.yytext += ch;
1570
- this.yyleng++;
1571
- this.offset++;
1572
- this.match += ch;
1573
- this.matched += ch;
1574
- var lines = ch.match(/(?:\r\n?|\n).*/g);
1575
- if (lines) {
1576
- this.yylineno++;
1577
- this.yylloc.last_line++;
1578
- } else {
1579
- this.yylloc.last_column++;
1580
- }
1581
- if (this.options.ranges) {
1582
- this.yylloc.range[1]++;
1583
- }
1584
- this._input = this._input.slice(1);
1585
- return ch;
1586
- }, "input"),
1587
- // unshifts one char (or a string) into the input
1588
- unput: /* @__PURE__ */ __name(function(ch) {
1589
- var len = ch.length;
1590
- var lines = ch.split(/(?:\r\n?|\n)/g);
1591
- this._input = ch + this._input;
1592
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
1593
- this.offset -= len;
1594
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
1595
- this.match = this.match.substr(0, this.match.length - 1);
1596
- this.matched = this.matched.substr(0, this.matched.length - 1);
1597
- if (lines.length - 1) {
1598
- this.yylineno -= lines.length - 1;
1599
- }
1600
- var r = this.yylloc.range;
1601
- this.yylloc = {
1602
- first_line: this.yylloc.first_line,
1603
- last_line: this.yylineno + 1,
1604
- first_column: this.yylloc.first_column,
1605
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
1606
- };
1607
- if (this.options.ranges) {
1608
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
1609
- }
1610
- this.yyleng = this.yytext.length;
1611
- return this;
1612
- }, "unput"),
1613
- // When called from action, caches matched text and appends it on next action
1614
- more: /* @__PURE__ */ __name(function() {
1615
- this._more = true;
1616
- return this;
1617
- }, "more"),
1618
- // 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.
1619
- reject: /* @__PURE__ */ __name(function() {
1620
- if (this.options.backtrack_lexer) {
1621
- this._backtrack = true;
1622
- } else {
1623
- 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).\n" + this.showPosition(), {
1624
- text: "",
1625
- token: null,
1626
- line: this.yylineno
1627
- });
1628
- }
1629
- return this;
1630
- }, "reject"),
1631
- // retain first n characters of the match
1632
- less: /* @__PURE__ */ __name(function(n) {
1633
- this.unput(this.match.slice(n));
1634
- }, "less"),
1635
- // displays already matched input, i.e. for error messages
1636
- pastInput: /* @__PURE__ */ __name(function() {
1637
- var past = this.matched.substr(0, this.matched.length - this.match.length);
1638
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
1639
- }, "pastInput"),
1640
- // displays upcoming input, i.e. for error messages
1641
- upcomingInput: /* @__PURE__ */ __name(function() {
1642
- var next = this.match;
1643
- if (next.length < 20) {
1644
- next += this._input.substr(0, 20 - next.length);
1645
- }
1646
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
1647
- }, "upcomingInput"),
1648
- // displays the character position where the lexing error occurred, i.e. for error messages
1649
- showPosition: /* @__PURE__ */ __name(function() {
1650
- var pre = this.pastInput();
1651
- var c = new Array(pre.length + 1).join("-");
1652
- return pre + this.upcomingInput() + "\n" + c + "^";
1653
- }, "showPosition"),
1654
- // test the lexed token: return FALSE when not a match, otherwise return token
1655
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
1656
- var token, lines, backup;
1657
- if (this.options.backtrack_lexer) {
1658
- backup = {
1659
- yylineno: this.yylineno,
1660
- yylloc: {
1661
- first_line: this.yylloc.first_line,
1662
- last_line: this.last_line,
1663
- first_column: this.yylloc.first_column,
1664
- last_column: this.yylloc.last_column
1665
- },
1666
- yytext: this.yytext,
1667
- match: this.match,
1668
- matches: this.matches,
1669
- matched: this.matched,
1670
- yyleng: this.yyleng,
1671
- offset: this.offset,
1672
- _more: this._more,
1673
- _input: this._input,
1674
- yy: this.yy,
1675
- conditionStack: this.conditionStack.slice(0),
1676
- done: this.done
1677
- };
1678
- if (this.options.ranges) {
1679
- backup.yylloc.range = this.yylloc.range.slice(0);
1680
- }
1681
- }
1682
- lines = match[0].match(/(?:\r\n?|\n).*/g);
1683
- if (lines) {
1684
- this.yylineno += lines.length;
1685
- }
1686
- this.yylloc = {
1687
- first_line: this.yylloc.last_line,
1688
- last_line: this.yylineno + 1,
1689
- first_column: this.yylloc.last_column,
1690
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
1691
- };
1692
- this.yytext += match[0];
1693
- this.match += match[0];
1694
- this.matches = match;
1695
- this.yyleng = this.yytext.length;
1696
- if (this.options.ranges) {
1697
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
1698
- }
1699
- this._more = false;
1700
- this._backtrack = false;
1701
- this._input = this._input.slice(match[0].length);
1702
- this.matched += match[0];
1703
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
1704
- if (this.done && this._input) {
1705
- this.done = false;
1706
- }
1707
- if (token) {
1708
- return token;
1709
- } else if (this._backtrack) {
1710
- for (var k in backup) {
1711
- this[k] = backup[k];
1712
- }
1713
- return false;
1714
- }
1715
- return false;
1716
- }, "test_match"),
1717
- // return next match in input
1718
- next: /* @__PURE__ */ __name(function() {
1719
- if (this.done) {
1720
- return this.EOF;
1721
- }
1722
- if (!this._input) {
1723
- this.done = true;
1724
- }
1725
- var token, match, tempMatch, index;
1726
- if (!this._more) {
1727
- this.yytext = "";
1728
- this.match = "";
1729
- }
1730
- var rules = this._currentRules();
1731
- for (var i = 0; i < rules.length; i++) {
1732
- tempMatch = this._input.match(this.rules[rules[i]]);
1733
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
1734
- match = tempMatch;
1735
- index = i;
1736
- if (this.options.backtrack_lexer) {
1737
- token = this.test_match(tempMatch, rules[i]);
1738
- if (token !== false) {
1739
- return token;
1740
- } else if (this._backtrack) {
1741
- match = false;
1742
- continue;
1743
- } else {
1744
- return false;
1745
- }
1746
- } else if (!this.options.flex) {
1747
- break;
1748
- }
1749
- }
1750
- }
1751
- if (match) {
1752
- token = this.test_match(match, rules[index]);
1753
- if (token !== false) {
1754
- return token;
1755
- }
1756
- return false;
1757
- }
1758
- if (this._input === "") {
1759
- return this.EOF;
1760
- } else {
1761
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1762
- text: "",
1763
- token: null,
1764
- line: this.yylineno
1765
- });
1766
- }
1767
- }, "next"),
1768
- // return next match that has a token
1769
- lex: /* @__PURE__ */ __name(function lex() {
1770
- var r = this.next();
1771
- if (r) {
1772
- return r;
1773
- } else {
1774
- return this.lex();
1775
- }
1776
- }, "lex"),
1777
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1778
- begin: /* @__PURE__ */ __name(function begin(condition) {
1779
- this.conditionStack.push(condition);
1780
- }, "begin"),
1781
- // pop the previously active lexer condition state off the condition stack
1782
- popState: /* @__PURE__ */ __name(function popState() {
1783
- var n = this.conditionStack.length - 1;
1784
- if (n > 0) {
1785
- return this.conditionStack.pop();
1786
- } else {
1787
- return this.conditionStack[0];
1788
- }
1789
- }, "popState"),
1790
- // produce the lexer rule set which is active for the currently active lexer condition state
1791
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
1792
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
1793
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
1794
- } else {
1795
- return this.conditions["INITIAL"].rules;
1796
- }
1797
- }, "_currentRules"),
1798
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1799
- topState: /* @__PURE__ */ __name(function topState(n) {
1800
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
1801
- if (n >= 0) {
1802
- return this.conditionStack[n];
1803
- } else {
1804
- return "INITIAL";
1805
- }
1806
- }, "topState"),
1807
- // alias for begin(condition)
1808
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
1809
- this.begin(condition);
1810
- }, "pushState"),
1811
- // return the number of states currently on the stack
1812
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
1813
- return this.conditionStack.length;
1814
- }, "stateStackSize"),
1815
- options: {},
1816
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
1817
- switch ($avoiding_name_collisions) {
1818
- case 0:
1819
- this.begin("acc_title");
1820
- return 34;
1821
- case 1:
1822
- this.popState();
1823
- return "acc_title_value";
1824
- case 2:
1825
- this.begin("acc_descr");
1826
- return 36;
1827
- case 3:
1828
- this.popState();
1829
- return "acc_descr_value";
1830
- case 4:
1831
- this.begin("acc_descr_multiline");
1832
- break;
1833
- case 5:
1834
- this.popState();
1835
- break;
1836
- case 6:
1837
- return "acc_descr_multiline_value";
1838
- case 7:
1839
- this.pushState("shapeData");
1840
- yy_.yytext = "";
1841
- return 40;
1842
- case 8:
1843
- this.pushState("shapeDataStr");
1844
- return 40;
1845
- case 9:
1846
- this.popState();
1847
- return 40;
1848
- case 10:
1849
- const re = /\n\s*/g;
1850
- yy_.yytext = yy_.yytext.replace(re, "<br/>");
1851
- return 40;
1852
- case 11:
1853
- return 40;
1854
- case 12:
1855
- this.popState();
1856
- break;
1857
- case 13:
1858
- this.begin("callbackname");
1859
- break;
1860
- case 14:
1861
- this.popState();
1862
- break;
1863
- case 15:
1864
- this.popState();
1865
- this.begin("callbackargs");
1866
- break;
1867
- case 16:
1868
- return 95;
1869
- case 17:
1870
- this.popState();
1871
- break;
1872
- case 18:
1873
- return 96;
1874
- case 19:
1875
- return "MD_STR";
1876
- case 20:
1877
- this.popState();
1878
- break;
1879
- case 21:
1880
- this.begin("md_string");
1881
- break;
1882
- case 22:
1883
- return "STR";
1884
- case 23:
1885
- this.popState();
1886
- break;
1887
- case 24:
1888
- this.pushState("string");
1889
- break;
1890
- case 25:
1891
- return 84;
1892
- case 26:
1893
- return 102;
1894
- case 27:
1895
- return 85;
1896
- case 28:
1897
- return 104;
1898
- case 29:
1899
- return 86;
1900
- case 30:
1901
- return 87;
1902
- case 31:
1903
- return 97;
1904
- case 32:
1905
- this.begin("click");
1906
- break;
1907
- case 33:
1908
- this.popState();
1909
- break;
1910
- case 34:
1911
- return 88;
1912
- case 35:
1913
- if (yy.lex.firstGraph()) {
1914
- this.begin("dir");
1915
- }
1916
- return 12;
1917
- case 36:
1918
- if (yy.lex.firstGraph()) {
1919
- this.begin("dir");
1920
- }
1921
- return 12;
1922
- case 37:
1923
- if (yy.lex.firstGraph()) {
1924
- this.begin("dir");
1925
- }
1926
- return 12;
1927
- case 38:
1928
- return 27;
1929
- case 39:
1930
- return 32;
1931
- case 40:
1932
- return 98;
1933
- case 41:
1934
- return 98;
1935
- case 42:
1936
- return 98;
1937
- case 43:
1938
- return 98;
1939
- case 44:
1940
- this.popState();
1941
- return 13;
1942
- case 45:
1943
- this.popState();
1944
- return 14;
1945
- case 46:
1946
- this.popState();
1947
- return 14;
1948
- case 47:
1949
- this.popState();
1950
- return 14;
1951
- case 48:
1952
- this.popState();
1953
- return 14;
1954
- case 49:
1955
- this.popState();
1956
- return 14;
1957
- case 50:
1958
- this.popState();
1959
- return 14;
1960
- case 51:
1961
- this.popState();
1962
- return 14;
1963
- case 52:
1964
- this.popState();
1965
- return 14;
1966
- case 53:
1967
- this.popState();
1968
- return 14;
1969
- case 54:
1970
- this.popState();
1971
- return 14;
1972
- case 55:
1973
- return 121;
1974
- case 56:
1975
- return 122;
1976
- case 57:
1977
- return 123;
1978
- case 58:
1979
- return 124;
1980
- case 59:
1981
- return 125;
1982
- case 60:
1983
- return 78;
1984
- case 61:
1985
- return 105;
1986
- case 62:
1987
- return 111;
1988
- case 63:
1989
- return 46;
1990
- case 64:
1991
- return 60;
1992
- case 65:
1993
- return 44;
1994
- case 66:
1995
- return 8;
1996
- case 67:
1997
- return 106;
1998
- case 68:
1999
- return 115;
2000
- case 69:
2001
- this.popState();
2002
- return 77;
2003
- case 70:
2004
- this.pushState("edgeText");
2005
- return 75;
2006
- case 71:
2007
- return 119;
2008
- case 72:
2009
- this.popState();
2010
- return 77;
2011
- case 73:
2012
- this.pushState("thickEdgeText");
2013
- return 75;
2014
- case 74:
2015
- return 119;
2016
- case 75:
2017
- this.popState();
2018
- return 77;
2019
- case 76:
2020
- this.pushState("dottedEdgeText");
2021
- return 75;
2022
- case 77:
2023
- return 119;
2024
- case 78:
2025
- return 77;
2026
- case 79:
2027
- this.popState();
2028
- return 53;
2029
- case 80:
2030
- return "TEXT";
2031
- case 81:
2032
- this.pushState("ellipseText");
2033
- return 52;
2034
- case 82:
2035
- this.popState();
2036
- return 55;
2037
- case 83:
2038
- this.pushState("text");
2039
- return 54;
2040
- case 84:
2041
- this.popState();
2042
- return 57;
2043
- case 85:
2044
- this.pushState("text");
2045
- return 56;
2046
- case 86:
2047
- return 58;
2048
- case 87:
2049
- this.pushState("text");
2050
- return 67;
2051
- case 88:
2052
- this.popState();
2053
- return 64;
2054
- case 89:
2055
- this.pushState("text");
2056
- return 63;
2057
- case 90:
2058
- this.popState();
2059
- return 49;
2060
- case 91:
2061
- this.pushState("text");
2062
- return 48;
2063
- case 92:
2064
- this.popState();
2065
- return 69;
2066
- case 93:
2067
- this.popState();
2068
- return 71;
2069
- case 94:
2070
- return 117;
2071
- case 95:
2072
- this.pushState("trapText");
2073
- return 68;
2074
- case 96:
2075
- this.pushState("trapText");
2076
- return 70;
2077
- case 97:
2078
- return 118;
2079
- case 98:
2080
- return 67;
2081
- case 99:
2082
- return 90;
2083
- case 100:
2084
- return "SEP";
2085
- case 101:
2086
- return 89;
2087
- case 102:
2088
- return 115;
2089
- case 103:
2090
- return 111;
2091
- case 104:
2092
- return 44;
2093
- case 105:
2094
- return 109;
2095
- case 106:
2096
- return 114;
2097
- case 107:
2098
- return 116;
2099
- case 108:
2100
- this.popState();
2101
- return 62;
2102
- case 109:
2103
- this.pushState("text");
2104
- return 62;
2105
- case 110:
2106
- this.popState();
2107
- return 51;
2108
- case 111:
2109
- this.pushState("text");
2110
- return 50;
2111
- case 112:
2112
- this.popState();
2113
- return 31;
2114
- case 113:
2115
- this.pushState("text");
2116
- return 29;
2117
- case 114:
2118
- this.popState();
2119
- return 66;
2120
- case 115:
2121
- this.pushState("text");
2122
- return 65;
2123
- case 116:
2124
- return "TEXT";
2125
- case 117:
2126
- return "QUOTE";
2127
- case 118:
2128
- return 9;
2129
- case 119:
2130
- return 10;
2131
- case 120:
2132
- return 11;
2133
- }
2134
- }, "anonymous"),
2135
- 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]*)/, /^(?:.*direction\s+TD[^\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)/, /^(?:$)/],
2136
- conditions: { "shapeDataEndBracket": { "rules": [21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "shapeDataStr": { "rules": [9, 10, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "shapeData": { "rules": [8, 11, 12, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "callbackargs": { "rules": [17, 18, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "callbackname": { "rules": [14, 15, 16, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "href": { "rules": [21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "click": { "rules": [21, 24, 33, 34, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "dottedEdgeText": { "rules": [21, 24, 75, 77, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "thickEdgeText": { "rules": [21, 24, 72, 74, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "edgeText": { "rules": [21, 24, 69, 71, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "trapText": { "rules": [21, 24, 78, 81, 83, 85, 89, 91, 92, 93, 94, 95, 96, 109, 111, 113, 115], "inclusive": false }, "ellipseText": { "rules": [21, 24, 78, 79, 80, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "text": { "rules": [21, 24, 78, 81, 82, 83, 84, 85, 88, 89, 90, 91, 95, 96, 108, 109, 110, 111, 112, 113, 114, 115, 116], "inclusive": false }, "vertex": { "rules": [21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "dir": { "rules": [21, 24, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "acc_descr_multiline": { "rules": [5, 6, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "acc_descr": { "rules": [3, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "acc_title": { "rules": [1, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "md_string": { "rules": [19, 20, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "string": { "rules": [21, 22, 23, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], "inclusive": false }, "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, 70, 72, 73, 75, 76, 78, 81, 83, 85, 86, 87, 89, 91, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 109, 111, 113, 115, 117, 118, 119, 120], "inclusive": true } }
2137
- };
2138
- return lexer2;
2139
- })();
2140
- parser2.lexer = lexer;
2141
- function Parser() {
2142
- this.yy = {};
2143
- }
2144
- __name(Parser, "Parser");
2145
- Parser.prototype = parser2;
2146
- parser2.Parser = Parser;
2147
- return new Parser();
2148
- })();
2149
- parser.parser = parser;
2150
- var flow_default = parser;
2151
- var newParser = Object.assign({}, flow_default);
2152
- newParser.parse = (src) => {
2153
- const newSrc = src.replace(/}\s*\n/g, "}\n");
2154
- return flow_default.parse(newSrc);
2155
- };
2156
- var flowParser_default = newParser;
2157
- var fade = /* @__PURE__ */ __name((color, opacity) => {
2158
- const channel2 = channel;
2159
- const r = channel2(color, "r");
2160
- const g = channel2(color, "g");
2161
- const b = channel2(color, "b");
2162
- return rgba(r, g, b, opacity);
2163
- }, "fade");
2164
- var getStyles = /* @__PURE__ */ __name((options) => `.label {
2165
- font-family: ${options.fontFamily};
2166
- color: ${options.nodeTextColor || options.textColor};
2167
- }
2168
- .cluster-label text {
2169
- fill: ${options.titleColor};
2170
- }
2171
- .cluster-label span {
2172
- color: ${options.titleColor};
2173
- }
2174
- .cluster-label span p {
2175
- background-color: transparent;
2176
- }
2177
-
2178
- .label text,span {
2179
- fill: ${options.nodeTextColor || options.textColor};
2180
- color: ${options.nodeTextColor || options.textColor};
2181
- }
2182
-
2183
- .node rect,
2184
- .node circle,
2185
- .node ellipse,
2186
- .node polygon,
2187
- .node path {
2188
- fill: ${options.mainBkg};
2189
- stroke: ${options.nodeBorder};
2190
- stroke-width: ${options.strokeWidth ?? 1}px;
2191
- }
2192
- .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
2193
- text-anchor: middle;
2194
- }
2195
- // .flowchart-label .text-outer-tspan {
2196
- // text-anchor: middle;
2197
- // }
2198
- // .flowchart-label .text-inner-tspan {
2199
- // text-anchor: start;
2200
- // }
2201
-
2202
- .node .katex path {
2203
- fill: #000;
2204
- stroke: #000;
2205
- stroke-width: 1px;
2206
- }
2207
-
2208
- .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
2209
- text-align: center;
2210
- }
2211
- .node.clickable {
2212
- cursor: pointer;
2213
- }
2214
-
2215
-
2216
- .root .anchor path {
2217
- fill: ${options.lineColor} !important;
2218
- stroke-width: 0;
2219
- stroke: ${options.lineColor};
2220
- }
2221
-
2222
- .arrowheadPath {
2223
- fill: ${options.arrowheadColor};
2224
- }
2225
-
2226
- .edgePath .path {
2227
- stroke: ${options.lineColor};
2228
- stroke-width: ${options.strokeWidth ?? 2}px;
2229
- }
2230
-
2231
- .flowchart-link {
2232
- stroke: ${options.lineColor};
2233
- fill: none;
2234
- }
2235
-
2236
- .edgeLabel {
2237
- background-color: ${options.edgeLabelBackground};
2238
- p {
2239
- background-color: ${options.edgeLabelBackground};
2240
- }
2241
- rect {
2242
- opacity: 0.5;
2243
- background-color: ${options.edgeLabelBackground};
2244
- fill: ${options.edgeLabelBackground};
2245
- }
2246
- text-align: center;
2247
- }
2248
-
2249
- /* For html labels only */
2250
- .labelBkg {
2251
- background-color: ${fade(options.edgeLabelBackground, 0.5)};
2252
- // background-color:
2253
- }
2254
-
2255
- .cluster rect {
2256
- fill: ${options.clusterBkg};
2257
- stroke: ${options.clusterBorder};
2258
- stroke-width: 1px;
2259
- }
2260
-
2261
- .cluster text {
2262
- fill: ${options.titleColor};
2263
- }
2264
-
2265
- .cluster span {
2266
- color: ${options.titleColor};
2267
- }
2268
- /* .cluster div {
2269
- color: ${options.titleColor};
2270
- } */
2271
-
2272
- div.mermaidTooltip {
2273
- position: absolute;
2274
- text-align: center;
2275
- max-width: 200px;
2276
- padding: 2px;
2277
- font-family: ${options.fontFamily};
2278
- font-size: 12px;
2279
- background: ${options.tertiaryColor};
2280
- border: 1px solid ${options.border2};
2281
- border-radius: 2px;
2282
- pointer-events: none;
2283
- z-index: 100;
2284
- }
2285
-
2286
- .flowchartTitleText {
2287
- text-anchor: middle;
2288
- font-size: 18px;
2289
- fill: ${options.textColor};
2290
- }
2291
-
2292
- rect.text {
2293
- fill: none;
2294
- stroke-width: 0;
2295
- }
2296
-
2297
- .icon-shape, .image-shape {
2298
- background-color: ${options.edgeLabelBackground};
2299
- p {
2300
- background-color: ${options.edgeLabelBackground};
2301
- padding: 2px;
2302
- }
2303
- .label rect {
2304
- opacity: 0.5;
2305
- background-color: ${options.edgeLabelBackground};
2306
- fill: ${options.edgeLabelBackground};
2307
- }
2308
- text-align: center;
2309
- }
2310
- ${getIconStyles()}
2311
- `, "getStyles");
2312
- var styles_default = getStyles;
2313
- var diagram = {
2314
- parser: flowParser_default,
2315
- get db() {
2316
- return new FlowDB();
2317
- },
2318
- renderer: flowRenderer_v3_unified_default,
2319
- styles: styles_default,
2320
- init: /* @__PURE__ */ __name((cnf) => {
2321
- if (!cnf.flowchart) {
2322
- cnf.flowchart = {};
2323
- }
2324
- if (cnf.layout) {
2325
- setConfig2({ layout: cnf.layout });
2326
- }
2327
- cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
2328
- setConfig2({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });
2329
- }, "init")
2330
- };
2331
- export {
2332
- diagram
2333
- };