docmedown 0.1.0 → 0.1.2

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 (233) hide show
  1. package/README.md +69 -20
  2. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +89 -0
  3. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +1 -0
  4. package/dist/arc-DgPKXEdT.mjs +82 -0
  5. package/dist/arc-n7TW7Bis.js +1 -0
  6. package/dist/architecture-7GRP2DOG-B7myQ46f.js +1 -0
  7. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +3 -0
  8. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +36 -0
  9. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +4154 -0
  10. package/dist/array-CApNbSU9.mjs +6 -0
  11. package/dist/array-DZSRzHA_.js +1 -0
  12. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +129 -0
  13. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +1922 -0
  14. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +38 -0
  15. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +3010 -0
  16. package/dist/channel-LgHproiI.mjs +5 -0
  17. package/dist/channel-yqu0m4cl.js +1 -0
  18. package/dist/chunk-2E4U76K2-BOyeRQsI.js +1 -0
  19. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +348 -0
  20. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +15 -0
  21. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +1 -0
  22. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +62 -0
  23. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +4188 -0
  24. package/dist/chunk-5VM5RSS4-GINalzIv.js +15 -0
  25. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +5 -0
  26. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +2 -0
  27. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +1330 -0
  28. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +1 -0
  29. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +14 -0
  30. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +3836 -0
  31. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +127 -0
  32. package/dist/chunk-F27PBJKO-8jvY_jJK.js +1 -0
  33. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +61 -0
  34. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +21456 -0
  35. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +161 -0
  36. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +1863 -0
  37. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +72 -0
  38. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +37 -0
  39. package/dist/chunk-GVQU2GXP-CdJIWN41.js +1 -0
  40. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +2042 -0
  41. package/dist/chunk-IMKFNOWR-CPJsszGN.js +231 -0
  42. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +8 -0
  43. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +1 -0
  44. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +1 -0
  45. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +245 -0
  46. package/dist/chunk-LNGE3PJU-BQX75wkM.js +34 -0
  47. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +1521 -0
  48. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +672 -0
  49. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +10 -0
  50. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +67 -0
  51. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +1 -0
  52. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +26 -0
  53. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +1 -0
  54. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +275 -0
  55. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +1 -0
  56. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +4183 -0
  57. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +168 -0
  58. package/dist/chunk-SVP7TREG-BFMd615E.js +88 -0
  59. package/dist/chunk-SVP7TREG-CynckzeF.mjs +490 -0
  60. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +3357 -0
  61. package/dist/chunk-TICWLB2K-agcyBfUp.js +206 -0
  62. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +59 -0
  63. package/dist/chunk-TLUHSLCS-Drx_a7am.js +1 -0
  64. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +1 -0
  65. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +9 -0
  66. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +1 -0
  67. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +12 -0
  68. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +1 -0
  69. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +30 -0
  70. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +1 -0
  71. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +30 -0
  72. package/dist/cli.js +719 -532
  73. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +1 -0
  74. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +2253 -0
  75. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +3 -0
  76. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +1 -0
  77. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +62 -0
  78. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +355 -0
  79. package/dist/cytoscape.esm-C5TvPYYm.mjs +18148 -0
  80. package/dist/cytoscape.esm-CBmWJr5M.js +321 -0
  81. package/dist/dagre-CZ6P9L_h.js +1 -0
  82. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +4 -0
  83. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +425 -0
  84. package/dist/dagre-J_1oH0eY.mjs +1934 -0
  85. package/dist/defaultLocale-N-0uLSyg.mjs +198 -0
  86. package/dist/defaultLocale-ybN1Vtvg.js +1 -0
  87. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +30 -0
  88. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +301 -0
  89. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +41 -0
  90. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +214 -0
  91. package/dist/diagram-VSXAHHWV-DgVT19mq.js +3 -0
  92. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +432 -0
  93. package/dist/diagram-VX7I27RA-CNw0pOX_.js +24 -0
  94. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +527 -0
  95. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +134 -0
  96. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +24 -0
  97. package/dist/dist-CXWJafG_.js +1 -0
  98. package/dist/dist-DNdLIC8h.mjs +59 -0
  99. package/dist/docmedown.cjs +125 -44
  100. package/dist/docmedown.iife.js +3477 -72
  101. package/dist/docmedown.mjs +10003 -4807
  102. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +1 -0
  103. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +100 -0
  104. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +99 -0
  105. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +1966 -0
  106. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +1 -0
  107. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +3 -0
  108. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +1 -0
  109. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +17 -0
  110. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +3072 -0
  111. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +292 -0
  112. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +1 -0
  113. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +3 -0
  114. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +106 -0
  115. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +733 -0
  116. package/dist/graphlib-BaETKKSa.js +1 -0
  117. package/dist/graphlib-XW-Jr8pF.mjs +1267 -0
  118. package/dist/info-A6RAGUB7-ClYskpn6.mjs +3 -0
  119. package/dist/info-A6RAGUB7-DDvvt-fW.js +1 -0
  120. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +20 -0
  121. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +2 -0
  122. package/dist/init-BJdqMO10.js +1 -0
  123. package/dist/init-CsQUQz36.mjs +13 -0
  124. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +70 -0
  125. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +719 -0
  126. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +139 -0
  127. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +884 -0
  128. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +976 -0
  129. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +89 -0
  130. package/dist/line-BEwhHSLl.js +1 -0
  131. package/dist/line-CiXRog8O.mjs +34 -0
  132. package/dist/linear-75tfjrny.js +1 -0
  133. package/dist/linear-Ncx_RuON.mjs +288 -0
  134. package/dist/mermaid-parser.core-BBApyu_y.js +6 -0
  135. package/dist/mermaid-parser.core-BRHibdUE.mjs +638 -0
  136. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +1006 -0
  137. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +96 -0
  138. package/dist/ordinal-B1BNQwUR.mjs +65 -0
  139. package/dist/ordinal-B9aFWmF9.js +1 -0
  140. package/dist/packet-AYTQ26CC-CorIy9Ul.js +1 -0
  141. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +3 -0
  142. package/dist/path-CnWkkRiY.mjs +84 -0
  143. package/dist/path-DIS6ck99.js +1 -0
  144. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +1 -0
  145. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +94 -0
  146. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +3 -0
  147. package/dist/pie-WAS4IAKB-D84xrSoY.js +1 -0
  148. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +39 -0
  149. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +203 -0
  150. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +7 -0
  151. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +2001 -0
  152. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +3 -0
  153. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +1 -0
  154. package/dist/railroad-74A4TZTK-BOZIf6ts.js +1 -0
  155. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +3 -0
  156. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +3 -0
  157. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +1 -0
  158. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +1 -0
  159. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +3 -0
  160. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +3 -0
  161. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +1 -0
  162. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +76 -0
  163. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +1 -0
  164. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +84 -0
  165. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +2224 -0
  166. package/dist/rough.esm-ChRLLRha.js +1 -0
  167. package/dist/rough.esm-DXYGHN3m.mjs +1361 -0
  168. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +972 -0
  169. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +40 -0
  170. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +162 -0
  171. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +4156 -0
  172. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +1 -0
  173. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +46 -0
  174. package/dist/src-B4mN2BMl.js +1 -0
  175. package/dist/src-D_hsMyeP.mjs +2154 -0
  176. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +220 -0
  177. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +1 -0
  178. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +30 -0
  179. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +1 -0
  180. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +4979 -0
  181. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +1 -0
  182. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +8 -0
  183. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +31 -0
  184. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +120 -0
  185. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +1069 -0
  186. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +3 -0
  187. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +1 -0
  188. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +3 -0
  189. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +1 -0
  190. package/dist/types/runtime/app.d.ts +3 -3
  191. package/dist/types/runtime/components/AppearanceMenu.d.ts +2 -0
  192. package/dist/types/runtime/components/Builtins.d.ts +3 -3
  193. package/dist/types/runtime/components/Content.d.ts +1 -1
  194. package/dist/types/runtime/components/DmdRegistry.d.ts +4 -2
  195. package/dist/types/runtime/components/Layout.d.ts +1 -1
  196. package/dist/types/runtime/components/MermaidDiagram.d.ts +16 -0
  197. package/dist/types/runtime/components/Navbar.d.ts +1 -1
  198. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +2 -0
  199. package/dist/types/runtime/components/Sidebar.d.ts +1 -1
  200. package/dist/types/runtime/components/TableOfContents.d.ts +2 -2
  201. package/dist/types/runtime/config-schema.d.ts +386 -0
  202. package/dist/types/runtime/config.d.ts +10 -3
  203. package/dist/types/runtime/index.d.ts +7 -5
  204. package/dist/types/runtime/loader/auto-indexer.d.ts +1 -1
  205. package/dist/types/runtime/loader/local-loader.d.ts +1 -1
  206. package/dist/types/runtime/loader/remote-github.d.ts +2 -2
  207. package/dist/types/runtime/loader/remote-gitlab.d.ts +2 -2
  208. package/dist/types/runtime/markdown/callouts.d.ts +1 -1
  209. package/dist/types/runtime/markdown/highlighter.d.ts +16 -16
  210. package/dist/types/runtime/markdown/mermaid.d.ts +82 -1
  211. package/dist/types/runtime/markdown/parser.d.ts +1 -1
  212. package/dist/types/runtime/markdown/renderer.d.ts +1 -1
  213. package/dist/types/runtime/offline-export.d.ts +26 -0
  214. package/dist/types/runtime/provider/DocProvider.d.ts +5 -5
  215. package/dist/types/runtime/provider/ThemeProvider.d.ts +13 -6
  216. package/dist/types/runtime/search/SearchModal.d.ts +2 -2
  217. package/dist/types/runtime/search/search-index.d.ts +1 -1
  218. package/dist/types/runtime/types.d.ts +28 -99
  219. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +34 -0
  220. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +1880 -0
  221. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +3 -0
  222. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +1 -0
  223. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +78 -0
  224. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +645 -0
  225. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +7 -0
  226. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +2210 -0
  227. package/package.json +15 -4
  228. package/schemas/docs.schema.json +166 -0
  229. package/templates/README.md +4 -4
  230. package/templates/docs.json +5 -2
  231. package/templates/getting-started.md +1 -1
  232. package/templates/guides/custom-components.md +2 -0
  233. package/templates/index.html +2 -4
@@ -0,0 +1,976 @@
1
+ import { m as e } from "./src-D_hsMyeP.mjs";
2
+ import { n as t } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
+ import { J as n, et as r, f as i, rt as a, tt as o, x as s, z as c } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
+ import "./chunk-75Z2AOVW-Dz0Sko9Y.mjs";
5
+ import { t as l } from "./chunk-CLGD4ZFX-DBkwyMMv.mjs";
6
+ import "./chunk-P2QGCYS3-6q3AXPt5.mjs";
7
+ import "./chunk-PWAF6VOD-BYG76tEe.mjs";
8
+ import "./chunk-GMAD6QVW-BZeZ4fdb.mjs";
9
+ import "./chunk-4HAMMTFA-VgWPe1ng.mjs";
10
+ import { i as u, r as d } from "./chunk-GVQU2GXP-B1D3J05J.mjs";
11
+ import { n as f } from "./chunk-L3NEJ4N5-lal8wUID.mjs";
12
+ import { n as p, t as m } from "./chunk-LNGE3PJU-DJ9JuXV6.mjs";
13
+ import { t as h } from "./chunk-5VM5RSS4-TqxtqrwE.mjs";
14
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-UXKFOSKX.mjs
15
+ var g = (function() {
16
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
17
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
18
+ return n;
19
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
20
+ 6,
21
+ 7,
22
+ 8
23
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
24
+ 6,
25
+ 7,
26
+ 11
27
+ ], m = [1, 31], h = [
28
+ 6,
29
+ 7,
30
+ 11,
31
+ 24
32
+ ], g = [
33
+ 1,
34
+ 6,
35
+ 13,
36
+ 16,
37
+ 17,
38
+ 20,
39
+ 23
40
+ ], _ = [1, 35], v = [1, 36], y = [
41
+ 1,
42
+ 6,
43
+ 7,
44
+ 11,
45
+ 13,
46
+ 16,
47
+ 17,
48
+ 20,
49
+ 23
50
+ ], b = [1, 38], x = {
51
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
52
+ yy: {},
53
+ symbols_: {
54
+ error: 2,
55
+ start: 3,
56
+ mindMap: 4,
57
+ spaceLines: 5,
58
+ SPACELINE: 6,
59
+ NL: 7,
60
+ KANBAN: 8,
61
+ document: 9,
62
+ stop: 10,
63
+ EOF: 11,
64
+ statement: 12,
65
+ SPACELIST: 13,
66
+ node: 14,
67
+ shapeData: 15,
68
+ ICON: 16,
69
+ CLASS: 17,
70
+ nodeWithId: 18,
71
+ nodeWithoutId: 19,
72
+ NODE_DSTART: 20,
73
+ NODE_DESCR: 21,
74
+ NODE_DEND: 22,
75
+ NODE_ID: 23,
76
+ SHAPE_DATA: 24,
77
+ $accept: 0,
78
+ $end: 1
79
+ },
80
+ terminals_: {
81
+ 2: "error",
82
+ 6: "SPACELINE",
83
+ 7: "NL",
84
+ 8: "KANBAN",
85
+ 11: "EOF",
86
+ 13: "SPACELIST",
87
+ 16: "ICON",
88
+ 17: "CLASS",
89
+ 20: "NODE_DSTART",
90
+ 21: "NODE_DESCR",
91
+ 22: "NODE_DEND",
92
+ 23: "NODE_ID",
93
+ 24: "SHAPE_DATA"
94
+ },
95
+ productions_: [
96
+ 0,
97
+ [3, 1],
98
+ [3, 2],
99
+ [5, 1],
100
+ [5, 2],
101
+ [5, 2],
102
+ [4, 2],
103
+ [4, 3],
104
+ [10, 1],
105
+ [10, 1],
106
+ [10, 1],
107
+ [10, 2],
108
+ [10, 2],
109
+ [9, 3],
110
+ [9, 2],
111
+ [12, 3],
112
+ [12, 2],
113
+ [12, 2],
114
+ [12, 2],
115
+ [12, 1],
116
+ [12, 2],
117
+ [12, 1],
118
+ [12, 1],
119
+ [12, 1],
120
+ [12, 1],
121
+ [14, 1],
122
+ [14, 1],
123
+ [19, 3],
124
+ [18, 1],
125
+ [18, 4],
126
+ [15, 2],
127
+ [15, 1]
128
+ ],
129
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
130
+ var s = a.length - 1;
131
+ switch (i) {
132
+ case 6:
133
+ case 7: return r;
134
+ case 8:
135
+ r.getLogger().trace("Stop NL ");
136
+ break;
137
+ case 9:
138
+ r.getLogger().trace("Stop EOF ");
139
+ break;
140
+ case 11:
141
+ r.getLogger().trace("Stop NL2 ");
142
+ break;
143
+ case 12:
144
+ r.getLogger().trace("Stop EOF2 ");
145
+ break;
146
+ case 15:
147
+ r.getLogger().info("Node: ", a[s - 1].id), r.addNode(a[s - 2].length, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
148
+ break;
149
+ case 16:
150
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
151
+ break;
152
+ case 17:
153
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
154
+ break;
155
+ case 18:
156
+ case 23:
157
+ r.decorateNode({ class: a[s] });
158
+ break;
159
+ case 19:
160
+ r.getLogger().trace("SPACELIST");
161
+ break;
162
+ case 20:
163
+ r.getLogger().trace("Node: ", a[s - 1].id), r.addNode(0, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
164
+ break;
165
+ case 21:
166
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
167
+ break;
168
+ case 22:
169
+ r.decorateNode({ icon: a[s] });
170
+ break;
171
+ case 27:
172
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
173
+ id: a[s - 1],
174
+ descr: a[s - 1],
175
+ type: r.getType(a[s - 2], a[s])
176
+ };
177
+ break;
178
+ case 28:
179
+ this.$ = {
180
+ id: a[s],
181
+ descr: a[s],
182
+ type: 0
183
+ };
184
+ break;
185
+ case 29:
186
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
187
+ id: a[s - 3],
188
+ descr: a[s - 1],
189
+ type: r.getType(a[s - 2], a[s])
190
+ };
191
+ break;
192
+ case 30:
193
+ this.$ = a[s - 1] + a[s];
194
+ break;
195
+ case 31: this.$ = a[s];
196
+ }
197
+ }, "anonymous"),
198
+ table: [
199
+ {
200
+ 3: 1,
201
+ 4: 2,
202
+ 5: 3,
203
+ 6: [1, 5],
204
+ 8: n
205
+ },
206
+ { 1: [3] },
207
+ { 1: [2, 1] },
208
+ {
209
+ 4: 6,
210
+ 6: [1, 7],
211
+ 7: [1, 8],
212
+ 8: n
213
+ },
214
+ {
215
+ 6: r,
216
+ 7: [1, 10],
217
+ 9: 9,
218
+ 12: 11,
219
+ 13: i,
220
+ 14: 14,
221
+ 16: a,
222
+ 17: o,
223
+ 18: 17,
224
+ 19: 18,
225
+ 20: s,
226
+ 23: c
227
+ },
228
+ e(l, [2, 3]),
229
+ { 1: [2, 2] },
230
+ e(l, [2, 4]),
231
+ e(l, [2, 5]),
232
+ {
233
+ 1: [2, 6],
234
+ 6: r,
235
+ 12: 21,
236
+ 13: i,
237
+ 14: 14,
238
+ 16: a,
239
+ 17: o,
240
+ 18: 17,
241
+ 19: 18,
242
+ 20: s,
243
+ 23: c
244
+ },
245
+ {
246
+ 6: r,
247
+ 9: 22,
248
+ 12: 11,
249
+ 13: i,
250
+ 14: 14,
251
+ 16: a,
252
+ 17: o,
253
+ 18: 17,
254
+ 19: 18,
255
+ 20: s,
256
+ 23: c
257
+ },
258
+ {
259
+ 6: u,
260
+ 7: d,
261
+ 10: 23,
262
+ 11: f
263
+ },
264
+ e(p, [2, 24], {
265
+ 18: 17,
266
+ 19: 18,
267
+ 14: 27,
268
+ 16: [1, 28],
269
+ 17: [1, 29],
270
+ 20: s,
271
+ 23: c
272
+ }),
273
+ e(p, [2, 19]),
274
+ e(p, [2, 21], {
275
+ 15: 30,
276
+ 24: m
277
+ }),
278
+ e(p, [2, 22]),
279
+ e(p, [2, 23]),
280
+ e(h, [2, 25]),
281
+ e(h, [2, 26]),
282
+ e(h, [2, 28], { 20: [1, 32] }),
283
+ { 21: [1, 33] },
284
+ {
285
+ 6: u,
286
+ 7: d,
287
+ 10: 34,
288
+ 11: f
289
+ },
290
+ {
291
+ 1: [2, 7],
292
+ 6: r,
293
+ 12: 21,
294
+ 13: i,
295
+ 14: 14,
296
+ 16: a,
297
+ 17: o,
298
+ 18: 17,
299
+ 19: 18,
300
+ 20: s,
301
+ 23: c
302
+ },
303
+ e(g, [2, 14], {
304
+ 7: _,
305
+ 11: v
306
+ }),
307
+ e(y, [2, 8]),
308
+ e(y, [2, 9]),
309
+ e(y, [2, 10]),
310
+ e(p, [2, 16], {
311
+ 15: 37,
312
+ 24: m
313
+ }),
314
+ e(p, [2, 17]),
315
+ e(p, [2, 18]),
316
+ e(p, [2, 20], { 24: b }),
317
+ e(h, [2, 31]),
318
+ { 21: [1, 39] },
319
+ { 22: [1, 40] },
320
+ e(g, [2, 13], {
321
+ 7: _,
322
+ 11: v
323
+ }),
324
+ e(y, [2, 11]),
325
+ e(y, [2, 12]),
326
+ e(p, [2, 15], { 24: b }),
327
+ e(h, [2, 30]),
328
+ { 22: [1, 41] },
329
+ e(h, [2, 27]),
330
+ e(h, [2, 29])
331
+ ],
332
+ defaultActions: {
333
+ 2: [2, 1],
334
+ 6: [2, 2]
335
+ },
336
+ parseError: /* @__PURE__ */ t(function(e, t) {
337
+ if (t.recoverable) this.trace(e);
338
+ else {
339
+ var n = Error(e);
340
+ throw n.hash = t, n;
341
+ }
342
+ }, "parseError"),
343
+ parse: /* @__PURE__ */ t(function(e) {
344
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
345
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
346
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
347
+ var v = h.yylloc;
348
+ o.push(v);
349
+ var y = h.options && h.options.ranges;
350
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
351
+ function b(e) {
352
+ r.length -= 2 * e, a.length -= e, o.length -= e;
353
+ }
354
+ t(b, "popStack");
355
+ function x() {
356
+ var e = i.pop() || h.lex() || p;
357
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
358
+ }
359
+ t(x, "lex");
360
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
361
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
362
+ var M = "";
363
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
364
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
365
+ text: h.match,
366
+ token: this.terminals_[S] || S,
367
+ line: h.yylineno,
368
+ loc: v,
369
+ expected: j
370
+ });
371
+ }
372
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
373
+ switch (T[0]) {
374
+ case 1:
375
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
376
+ break;
377
+ case 2:
378
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
379
+ first_line: o[o.length - (k || 1)].first_line,
380
+ last_line: o[o.length - 1].last_line,
381
+ first_column: o[o.length - (k || 1)].first_column,
382
+ last_column: o[o.length - 1].last_column
383
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
384
+ c,
385
+ u,
386
+ l,
387
+ g.yy,
388
+ T[1],
389
+ a,
390
+ o
391
+ ].concat(m)), E !== void 0) return E;
392
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
393
+ break;
394
+ case 3: return !0;
395
+ }
396
+ }
397
+ return !0;
398
+ }, "parse")
399
+ };
400
+ x.lexer = /* @__PURE__ */ (function() {
401
+ return {
402
+ EOF: 1,
403
+ parseError: /* @__PURE__ */ t(function(e, t) {
404
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
405
+ else throw Error(e);
406
+ }, "parseError"),
407
+ setInput: /* @__PURE__ */ t(function(e, t) {
408
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
409
+ first_line: 1,
410
+ first_column: 0,
411
+ last_line: 1,
412
+ last_column: 0
413
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
414
+ }, "setInput"),
415
+ input: /* @__PURE__ */ t(function() {
416
+ var e = this._input[0];
417
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
418
+ }, "input"),
419
+ unput: /* @__PURE__ */ t(function(e) {
420
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
421
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
422
+ var r = this.match.split(/(?:\r\n?|\n)/g);
423
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
424
+ var i = this.yylloc.range;
425
+ return this.yylloc = {
426
+ first_line: this.yylloc.first_line,
427
+ last_line: this.yylineno + 1,
428
+ first_column: this.yylloc.first_column,
429
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
430
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
431
+ }, "unput"),
432
+ more: /* @__PURE__ */ t(function() {
433
+ return this._more = !0, this;
434
+ }, "more"),
435
+ reject: /* @__PURE__ */ t(function() {
436
+ if (this.options.backtrack_lexer) this._backtrack = !0;
437
+ else 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(), {
438
+ text: "",
439
+ token: null,
440
+ line: this.yylineno
441
+ });
442
+ return this;
443
+ }, "reject"),
444
+ less: /* @__PURE__ */ t(function(e) {
445
+ this.unput(this.match.slice(e));
446
+ }, "less"),
447
+ pastInput: /* @__PURE__ */ t(function() {
448
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
449
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
450
+ }, "pastInput"),
451
+ upcomingInput: /* @__PURE__ */ t(function() {
452
+ var e = this.match;
453
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
454
+ }, "upcomingInput"),
455
+ showPosition: /* @__PURE__ */ t(function() {
456
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
457
+ return e + this.upcomingInput() + "\n" + t + "^";
458
+ }, "showPosition"),
459
+ test_match: /* @__PURE__ */ t(function(e, t) {
460
+ var n, r, i;
461
+ if (this.options.backtrack_lexer && (i = {
462
+ yylineno: this.yylineno,
463
+ yylloc: {
464
+ first_line: this.yylloc.first_line,
465
+ last_line: this.last_line,
466
+ first_column: this.yylloc.first_column,
467
+ last_column: this.yylloc.last_column
468
+ },
469
+ yytext: this.yytext,
470
+ match: this.match,
471
+ matches: this.matches,
472
+ matched: this.matched,
473
+ yyleng: this.yyleng,
474
+ offset: this.offset,
475
+ _more: this._more,
476
+ _input: this._input,
477
+ yy: this.yy,
478
+ conditionStack: this.conditionStack.slice(0),
479
+ done: this.done
480
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
481
+ first_line: this.yylloc.last_line,
482
+ last_line: this.yylineno + 1,
483
+ first_column: this.yylloc.last_column,
484
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
485
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
486
+ if (this._backtrack) {
487
+ for (var a in i) this[a] = i[a];
488
+ return !1;
489
+ }
490
+ return !1;
491
+ }, "test_match"),
492
+ next: /* @__PURE__ */ t(function() {
493
+ if (this.done) return this.EOF;
494
+ this._input || (this.done = !0);
495
+ var e, t, n, r;
496
+ this._more || (this.yytext = "", this.match = "");
497
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
498
+ if (t = n, r = a, this.options.backtrack_lexer) {
499
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
500
+ if (this._backtrack) {
501
+ t = !1;
502
+ continue;
503
+ }
504
+ return !1;
505
+ }
506
+ if (!this.options.flex) break;
507
+ }
508
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
509
+ text: "",
510
+ token: null,
511
+ line: this.yylineno
512
+ });
513
+ }, "next"),
514
+ lex: /* @__PURE__ */ t(function() {
515
+ return this.next() || this.lex();
516
+ }, "lex"),
517
+ begin: /* @__PURE__ */ t(function(e) {
518
+ this.conditionStack.push(e);
519
+ }, "begin"),
520
+ popState: /* @__PURE__ */ t(function() {
521
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
522
+ }, "popState"),
523
+ _currentRules: /* @__PURE__ */ t(function() {
524
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
525
+ }, "_currentRules"),
526
+ topState: /* @__PURE__ */ t(function(e) {
527
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
528
+ }, "topState"),
529
+ pushState: /* @__PURE__ */ t(function(e) {
530
+ this.begin(e);
531
+ }, "pushState"),
532
+ stateStackSize: /* @__PURE__ */ t(function() {
533
+ return this.conditionStack.length;
534
+ }, "stateStackSize"),
535
+ options: { "case-insensitive": !0 },
536
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
537
+ switch (n) {
538
+ case 0: return this.pushState("shapeData"), t.yytext = "", 24;
539
+ case 1: return this.pushState("shapeDataStr"), 24;
540
+ case 2: return this.popState(), 24;
541
+ case 3: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 24;
542
+ case 4: return 24;
543
+ case 5:
544
+ this.popState();
545
+ break;
546
+ case 6: return e.getLogger().trace("Found comment", t.yytext), 6;
547
+ case 7: return 8;
548
+ case 8:
549
+ this.begin("CLASS");
550
+ break;
551
+ case 9: return this.popState(), 17;
552
+ case 10:
553
+ this.popState();
554
+ break;
555
+ case 11:
556
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
557
+ break;
558
+ case 12: return e.getLogger().trace("SPACELINE"), 6;
559
+ case 13: return 7;
560
+ case 14: return 16;
561
+ case 15:
562
+ e.getLogger().trace("end icon"), this.popState();
563
+ break;
564
+ case 16: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
565
+ case 17: return e.getLogger().trace("Cloud"), this.begin("NODE"), 20;
566
+ case 18: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
567
+ case 19: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
568
+ case 20: return this.begin("NODE"), 20;
569
+ case 21: return this.begin("NODE"), 20;
570
+ case 22: return this.begin("NODE"), 20;
571
+ case 23: return this.begin("NODE"), 20;
572
+ case 24: return 13;
573
+ case 25: return 23;
574
+ case 26: return 11;
575
+ case 27:
576
+ this.begin("NSTR2");
577
+ break;
578
+ case 28: return "NODE_DESCR";
579
+ case 29:
580
+ this.popState();
581
+ break;
582
+ case 30:
583
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
584
+ break;
585
+ case 31: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
586
+ case 32:
587
+ this.popState();
588
+ break;
589
+ case 33: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
590
+ case 34: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
591
+ case 35: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
592
+ case 36: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
593
+ case 37: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
594
+ case 38: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
595
+ case 39: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
596
+ case 40: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
597
+ case 41: return e.getLogger().trace("Long description:", t.yytext), 21;
598
+ case 42: return e.getLogger().trace("Long description:", t.yytext), 21;
599
+ }
600
+ }, "anonymous"),
601
+ rules: [
602
+ /^(?:@\{)/i,
603
+ /^(?:["])/i,
604
+ /^(?:["])/i,
605
+ /^(?:[^\"]+)/i,
606
+ /^(?:[^}^"]+)/i,
607
+ /^(?:\})/i,
608
+ /^(?:\s*%%.*)/i,
609
+ /^(?:kanban\b)/i,
610
+ /^(?::::)/i,
611
+ /^(?:.+)/i,
612
+ /^(?:\n)/i,
613
+ /^(?:::icon\()/i,
614
+ /^(?:[\s]+[\n])/i,
615
+ /^(?:[\n]+)/i,
616
+ /^(?:[^\)]+)/i,
617
+ /^(?:\))/i,
618
+ /^(?:-\))/i,
619
+ /^(?:\(-)/i,
620
+ /^(?:\)\))/i,
621
+ /^(?:\))/i,
622
+ /^(?:\(\()/i,
623
+ /^(?:\{\{)/i,
624
+ /^(?:\()/i,
625
+ /^(?:\[)/i,
626
+ /^(?:[\s]+)/i,
627
+ /^(?:[^\(\[\n\)\{\}@]+)/i,
628
+ /^(?:$)/i,
629
+ /^(?:["][`])/i,
630
+ /^(?:[^`"]+)/i,
631
+ /^(?:[`]["])/i,
632
+ /^(?:["])/i,
633
+ /^(?:[^"]+)/i,
634
+ /^(?:["])/i,
635
+ /^(?:[\)]\))/i,
636
+ /^(?:[\)])/i,
637
+ /^(?:[\]])/i,
638
+ /^(?:\}\})/i,
639
+ /^(?:\(-)/i,
640
+ /^(?:-\))/i,
641
+ /^(?:\(\()/i,
642
+ /^(?:\()/i,
643
+ /^(?:[^\)\]\(\}]+)/i,
644
+ /^(?:.+(?!\(\())/i
645
+ ],
646
+ conditions: {
647
+ shapeDataEndBracket: {
648
+ rules: [],
649
+ inclusive: !1
650
+ },
651
+ shapeDataStr: {
652
+ rules: [2, 3],
653
+ inclusive: !1
654
+ },
655
+ shapeData: {
656
+ rules: [
657
+ 1,
658
+ 4,
659
+ 5
660
+ ],
661
+ inclusive: !1
662
+ },
663
+ CLASS: {
664
+ rules: [9, 10],
665
+ inclusive: !1
666
+ },
667
+ ICON: {
668
+ rules: [14, 15],
669
+ inclusive: !1
670
+ },
671
+ NSTR2: {
672
+ rules: [28, 29],
673
+ inclusive: !1
674
+ },
675
+ NSTR: {
676
+ rules: [31, 32],
677
+ inclusive: !1
678
+ },
679
+ NODE: {
680
+ rules: [
681
+ 27,
682
+ 30,
683
+ 33,
684
+ 34,
685
+ 35,
686
+ 36,
687
+ 37,
688
+ 38,
689
+ 39,
690
+ 40,
691
+ 41,
692
+ 42
693
+ ],
694
+ inclusive: !1
695
+ },
696
+ INITIAL: {
697
+ rules: [
698
+ 0,
699
+ 6,
700
+ 7,
701
+ 8,
702
+ 11,
703
+ 12,
704
+ 13,
705
+ 16,
706
+ 17,
707
+ 18,
708
+ 19,
709
+ 20,
710
+ 21,
711
+ 22,
712
+ 23,
713
+ 24,
714
+ 25,
715
+ 26
716
+ ],
717
+ inclusive: !0
718
+ }
719
+ }
720
+ };
721
+ })();
722
+ function S() {
723
+ this.yy = {};
724
+ }
725
+ return t(S, "Parser"), S.prototype = x, x.Parser = S, new S();
726
+ })();
727
+ g.parser = g;
728
+ var _ = g, v = [], y = [], b = 0, x = {}, S = /* @__PURE__ */ t(() => {
729
+ v = [], y = [], b = 0, x = {};
730
+ }, "clear"), C = /* @__PURE__ */ t((e) => {
731
+ if (v.length === 0) return null;
732
+ let t = v[0].level, n = null;
733
+ for (let e = v.length - 1; e >= 0; e--) if (v[e].level === t && !n && (n = v[e]), v[e].level < t) throw Error("Items without section detected, found section (\"" + v[e].label + "\")");
734
+ return e === n?.level ? null : n;
735
+ }, "getSection"), w = /* @__PURE__ */ t(function() {
736
+ return y;
737
+ }, "getSections"), T = /* @__PURE__ */ t(function() {
738
+ let e = [], t = [], n = w(), r = s();
739
+ for (let e of n) {
740
+ let n = {
741
+ id: e.id,
742
+ label: c(e.label ?? "", r),
743
+ labelType: "markdown",
744
+ isGroup: !0,
745
+ ticket: e.ticket,
746
+ shape: "kanbanSection",
747
+ level: e.level,
748
+ look: r.look
749
+ };
750
+ t.push(n);
751
+ let i = v.filter((t) => t.parentId === e.id);
752
+ for (let n of i) {
753
+ let i = {
754
+ id: n.id,
755
+ parentId: e.id,
756
+ label: c(n.label ?? "", r),
757
+ labelType: "markdown",
758
+ isGroup: !1,
759
+ ticket: n?.ticket,
760
+ priority: n?.priority,
761
+ assigned: n?.assigned,
762
+ icon: n?.icon,
763
+ shape: "kanbanItem",
764
+ level: n.level,
765
+ rx: 5,
766
+ ry: 5,
767
+ cssStyles: ["text-align: left"]
768
+ };
769
+ t.push(i);
770
+ }
771
+ }
772
+ return {
773
+ nodes: t,
774
+ edges: e,
775
+ other: {},
776
+ config: s()
777
+ };
778
+ }, "getData"), E = /* @__PURE__ */ t((e, t, n, r, a) => {
779
+ let o = s(), l = o.mindmap?.padding ?? i.mindmap.padding;
780
+ switch (r) {
781
+ case D.ROUNDED_RECT:
782
+ case D.RECT:
783
+ case D.HEXAGON: l *= 2;
784
+ }
785
+ let u = {
786
+ id: c(t, o) || "kbn" + b++,
787
+ level: e,
788
+ label: c(n, o),
789
+ width: o.mindmap?.maxNodeWidth ?? i.mindmap.maxNodeWidth,
790
+ padding: l,
791
+ isGroup: !1
792
+ };
793
+ if (a !== void 0) {
794
+ let e;
795
+ e = a.includes("\n") ? a + "\n" : "{\n" + a + "\n}";
796
+ let t = p(e, { schema: m });
797
+ if (t.shape && (t.shape !== t.shape.toLowerCase() || t.shape.includes("_"))) throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);
798
+ t?.shape && t.shape === "kanbanItem" && (u.shape = t?.shape), t?.label && (u.label = t?.label), t?.icon && (u.icon = t?.icon.toString()), t?.assigned && (u.assigned = t?.assigned.toString()), t?.ticket && (u.ticket = t?.ticket.toString()), t?.priority && (u.priority = t?.priority);
799
+ }
800
+ let d = C(e);
801
+ d ? u.parentId = d.id || "kbn" + b++ : y.push(u), v.push(u);
802
+ }, "addNode"), D = {
803
+ DEFAULT: 0,
804
+ NO_BORDER: 0,
805
+ ROUNDED_RECT: 1,
806
+ RECT: 2,
807
+ CIRCLE: 3,
808
+ CLOUD: 4,
809
+ BANG: 5,
810
+ HEXAGON: 6
811
+ }, O = {
812
+ clear: S,
813
+ addNode: E,
814
+ getSections: w,
815
+ getData: T,
816
+ nodeType: D,
817
+ getType: /* @__PURE__ */ t((t, n) => {
818
+ switch (e.debug("In get type", t, n), t) {
819
+ case "[": return D.RECT;
820
+ case "(": return n === ")" ? D.ROUNDED_RECT : D.CLOUD;
821
+ case "((": return D.CIRCLE;
822
+ case ")": return D.CLOUD;
823
+ case "))": return D.BANG;
824
+ case "{{": return D.HEXAGON;
825
+ default: return D.DEFAULT;
826
+ }
827
+ }, "getType"),
828
+ setElementForId: /* @__PURE__ */ t((e, t) => {
829
+ x[e] = t;
830
+ }, "setElementForId"),
831
+ decorateNode: /* @__PURE__ */ t((e) => {
832
+ if (!e) return;
833
+ let t = s(), n = v[v.length - 1];
834
+ e.icon && (n.icon = c(e.icon, t)), e.class && (n.cssClasses = c(e.class, t));
835
+ }, "decorateNode"),
836
+ type2Str: /* @__PURE__ */ t((e) => {
837
+ switch (e) {
838
+ case D.DEFAULT: return "no-border";
839
+ case D.RECT: return "rect";
840
+ case D.ROUNDED_RECT: return "rounded-rect";
841
+ case D.CIRCLE: return "circle";
842
+ case D.CLOUD: return "cloud";
843
+ case D.BANG: return "bang";
844
+ case D.HEXAGON: return "hexgon";
845
+ default: return "no-border";
846
+ }
847
+ }, "type2Str"),
848
+ getLogger: /* @__PURE__ */ t(() => e, "getLogger"),
849
+ getElementById: /* @__PURE__ */ t((e) => x[e], "getElementById")
850
+ }, k = { draw: /* @__PURE__ */ t(async (t, r, a, o) => {
851
+ e.debug("Rendering kanban diagram\n" + t);
852
+ let c = o.db.getData(), p = s();
853
+ p.htmlLabels = !1;
854
+ let m = l(r);
855
+ for (let e of c.nodes) e.domId = `${r}-${e.id}`;
856
+ let h = m.append("g");
857
+ h.attr("class", "sections");
858
+ let g = m.append("g");
859
+ g.attr("class", "items");
860
+ let _ = c.nodes.filter((e) => e.isGroup), v = 0, y = [], b = 25;
861
+ for (let e of _) {
862
+ let t = p?.kanban?.sectionWidth || 200;
863
+ v += 1, e.x = t * v + (v - 1) * 10 / 2, e.width = t, e.y = 0, e.height = t * 3, e.rx = 5, e.ry = 5, e.cssClasses = e.cssClasses + " section-" + v;
864
+ let n = await f(h, e);
865
+ b = Math.max(b, n?.labelBBox?.height), y.push(n);
866
+ }
867
+ let x = 0;
868
+ for (let e of _) {
869
+ let t = y[x];
870
+ x += 1;
871
+ let n = p?.kanban?.sectionWidth || 200, r = -n * 3 / 2 + b, i = r, a = c.nodes.filter((t) => t.parentId === e.id);
872
+ for (let t of a) {
873
+ if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
874
+ t.x = e.x, t.width = n - 15;
875
+ let r = (await d(g, t, { config: p })).node().getBBox();
876
+ t.y = i + r.height / 2, await u(t), i = t.y + r.height / 2 + 5;
877
+ }
878
+ let o = t.cluster.select("rect"), s = Math.max(i - r + 30, 50) + (b - 25);
879
+ o.attr("height", s);
880
+ }
881
+ n(void 0, m, p.mindmap?.padding ?? i.kanban.padding, p.mindmap?.useMaxWidth ?? i.kanban.useMaxWidth);
882
+ }, "draw") }, A = /* @__PURE__ */ t((e) => {
883
+ let n = "";
884
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], a(e["lineColor" + t]) ? e["lineColor" + t] = o(e["lineColor" + t], 20) : e["lineColor" + t] = r(e["lineColor" + t], 20);
885
+ let i = /* @__PURE__ */ t((t, n) => e.darkMode ? r(t, n) : o(t, n), "adjuster");
886
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
887
+ let r = "" + (17 - 3 * t);
888
+ n += `
889
+ .section-${t - 1} rect, .section-${t - 1} path, .section-${t - 1} circle, .section-${t - 1} polygon, .section-${t - 1} path {
890
+ fill: ${i(e["cScale" + t], 10)};
891
+ stroke: ${i(e["cScale" + t], 10)};
892
+
893
+ }
894
+ .section-${t - 1} text {
895
+ fill: ${e["cScaleLabel" + t]};
896
+ }
897
+ .node-icon-${t - 1} {
898
+ font-size: 40px;
899
+ color: ${e["cScaleLabel" + t]};
900
+ }
901
+ .section-edge-${t - 1}{
902
+ stroke: ${e["cScale" + t]};
903
+ }
904
+ .edge-depth-${t - 1}{
905
+ stroke-width: ${r};
906
+ }
907
+ .section-${t - 1} line {
908
+ stroke: ${e["cScaleInv" + t]} ;
909
+ stroke-width: 3;
910
+ }
911
+
912
+ .disabled, .disabled circle, .disabled text {
913
+ fill: lightgray;
914
+ }
915
+ .disabled text {
916
+ fill: #efefef;
917
+ }
918
+
919
+ .node rect,
920
+ .node circle,
921
+ .node ellipse,
922
+ .node polygon,
923
+ .node path {
924
+ fill: ${e.background};
925
+ stroke: ${e.nodeBorder};
926
+ stroke-width: 1px;
927
+ }
928
+
929
+ .kanban-ticket-link {
930
+ fill: ${e.background};
931
+ stroke: ${e.nodeBorder};
932
+ text-decoration: underline;
933
+ }
934
+ `;
935
+ }
936
+ return n;
937
+ }, "genSections"), j = {
938
+ db: O,
939
+ renderer: k,
940
+ parser: _,
941
+ styles: /* @__PURE__ */ t((e) => `
942
+ .edge {
943
+ stroke-width: 3;
944
+ }
945
+ ${A(e)}
946
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
947
+ fill: ${e.git0};
948
+ }
949
+ .section-root text {
950
+ fill: ${e.gitBranchLabel0};
951
+ }
952
+ .icon-container {
953
+ height:100%;
954
+ display: flex;
955
+ justify-content: center;
956
+ align-items: center;
957
+ }
958
+ .edge {
959
+ fill: none;
960
+ }
961
+ .cluster-label, .label {
962
+ color: ${e.textColor};
963
+ fill: ${e.textColor};
964
+ }
965
+ .kanban-label {
966
+ dy: 1em;
967
+ alignment-baseline: middle;
968
+ text-anchor: middle;
969
+ dominant-baseline: middle;
970
+ text-align: center;
971
+ }
972
+ ${h()}
973
+ `, "getStyles")
974
+ };
975
+ //#endregion
976
+ export { j as diagram };