@pi-outpost/embed 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
  5. package/dist/arc-BBnpgwVQ.js +80 -0
  6. package/dist/arc-DcUn9_NX.cjs +1 -0
  7. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
  11. package/dist/array-CApNbSU9.js +6 -0
  12. package/dist/array-DZSRzHA_.cjs +1 -0
  13. package/dist/bash-BLBHkRa_.js +169 -0
  14. package/dist/bash-DHJu-DNv.cjs +1 -0
  15. package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
  16. package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
  17. package/dist/c-4QgYfi8K.cjs +1 -0
  18. package/dist/c-Cw4FsAeJ.js +176 -0
  19. package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
  20. package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
  21. package/dist/channel-DV0ST12Z.js +5 -0
  22. package/dist/channel-DkMGzfUR.cjs +1 -0
  23. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  24. package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
  25. package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
  26. package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
  27. package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
  28. package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
  29. package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
  30. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
  31. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
  32. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
  33. package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
  34. package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
  35. package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
  36. package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
  37. package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
  38. package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
  39. package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
  40. package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
  41. package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
  42. package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
  43. package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
  44. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  45. package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
  46. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
  47. package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
  48. package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
  49. package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
  50. package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
  51. package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
  52. package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
  53. package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
  54. package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
  55. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
  56. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
  57. package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
  58. package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
  59. package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
  60. package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
  61. package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
  62. package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
  63. package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
  64. package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
  65. package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
  66. package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
  67. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  68. package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
  69. package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
  70. package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
  71. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
  72. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
  73. package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
  74. package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
  75. package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
  76. package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
  77. package/dist/core-2nR1zkKb.cjs +3 -0
  78. package/dist/core-BO2hTFeF.js +845 -0
  79. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
  80. package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
  81. package/dist/cpp-BUtp-HE2.cjs +1 -0
  82. package/dist/cpp-CeyO6lBG.js +225 -0
  83. package/dist/csharp-BJu4kEpt.cjs +1 -0
  84. package/dist/csharp-Ck6Fet_o.js +260 -0
  85. package/dist/css-ClSGJRju.js +140 -0
  86. package/dist/css-DeFr0lev.cjs +1 -0
  87. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
  88. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
  89. package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
  90. package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
  91. package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
  92. package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
  93. package/dist/dagre-BBlCxSvR.cjs +1 -0
  94. package/dist/dagre-BpqwxFKp.js +1701 -0
  95. package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
  96. package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
  97. package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
  98. package/dist/defaultLocale-up9-vqhM.js +201 -0
  99. package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
  100. package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
  101. package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
  102. package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
  103. package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
  104. package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
  105. package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
  106. package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
  107. package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
  108. package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
  109. package/dist/dist-D6LMt8nW.js +59 -0
  110. package/dist/dist-DNGlMOWd.cjs +1 -0
  111. package/dist/dockerfile-O4rAswfG.js +34 -0
  112. package/dist/dockerfile-YBgAWga3.cjs +1 -0
  113. package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
  114. package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
  115. package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
  116. package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
  117. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
  118. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
  119. package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
  120. package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
  121. package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
  122. package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
  123. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
  124. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
  125. package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
  126. package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
  127. package/dist/go-D-pz-dmd.cjs +1 -0
  128. package/dist/go-rg7jg1mu.js +140 -0
  129. package/dist/graphlib-B0GbLif1.js +1267 -0
  130. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  131. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
  132. package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
  133. package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
  134. package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
  135. package/dist/ini-C1q3_1-Q.js +88 -0
  136. package/dist/ini-nVcUEghj.cjs +1 -0
  137. package/dist/init-07zIhv_j.cjs +1 -0
  138. package/dist/init-CirqLVcp.js +15 -0
  139. package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
  140. package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
  141. package/dist/java-CUN_usaq.cjs +1 -0
  142. package/dist/java-HguKEfA2.js +169 -0
  143. package/dist/javascript-C8NCH8DE.js +436 -0
  144. package/dist/javascript-UZXSyUuu.cjs +1 -0
  145. package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
  146. package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
  147. package/dist/json-Cp01TR_B.js +36 -0
  148. package/dist/json-usH_MUzR.cjs +1 -0
  149. package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
  150. package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
  151. package/dist/line-Ca8dE_lT.cjs +1 -0
  152. package/dist/line-O2xx2vVQ.js +34 -0
  153. package/dist/linear-CVhyaVzf.js +289 -0
  154. package/dist/linear-Cl2-QuPP.cjs +1 -0
  155. package/dist/map-CwPlMWPw.cjs +1 -0
  156. package/dist/map-DU12fF3s.js +241 -0
  157. package/dist/markdown-CzgRofaE.js +181 -0
  158. package/dist/markdown-qeo95R0i.cjs +1 -0
  159. package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
  160. package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
  161. package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
  162. package/dist/mermaid.core-DQrbAA--.cjs +10 -0
  163. package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
  164. package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
  165. package/dist/mount.d.ts +31 -0
  166. package/dist/ordinal-CCTD6_le.js +65 -0
  167. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  168. package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
  169. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
  170. package/dist/path-Kklx0M1v.cjs +1 -0
  171. package/dist/path-mKa7UESy.js +85 -0
  172. package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
  173. package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
  174. package/dist/php-C9FOMGEA.js +294 -0
  175. package/dist/php-j6EhDZDE.cjs +2 -0
  176. package/dist/pi-outpost-embed.cjs +305 -0
  177. package/dist/pi-outpost-embed.js +40942 -0
  178. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
  179. package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
  180. package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
  181. package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
  182. package/dist/plaintext-BYYAHR3Z.js +10 -0
  183. package/dist/plaintext-DmnjizxG.cjs +1 -0
  184. package/dist/python-BYJzTRkK.cjs +1 -0
  185. package/dist/python-DKAazMIE.js +238 -0
  186. package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
  187. package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
  188. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
  189. package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
  190. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
  191. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
  192. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
  193. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
  194. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
  195. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
  196. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
  197. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
  198. package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
  199. package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
  200. package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
  201. package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
  202. package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
  203. package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
  204. package/dist/rough.esm-C5XyeDCN.js +1352 -0
  205. package/dist/rough.esm-r0QOSzHM.cjs +1 -0
  206. package/dist/ruby-BAUeZQKZ.js +262 -0
  207. package/dist/ruby-ClR4zp-1.cjs +1 -0
  208. package/dist/rust-DiTjMjP5.js +169 -0
  209. package/dist/rust-ghVvEWhm.cjs +1 -0
  210. package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
  211. package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
  212. package/dist/scss-CKxh5HRg.cjs +1 -0
  213. package/dist/scss-CckAvQOx.js +150 -0
  214. package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
  215. package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
  216. package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
  217. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
  218. package/dist/sql-B-Rnc2C3.js +118 -0
  219. package/dist/sql-B7syKcd8.cjs +1 -0
  220. package/dist/src-CR--T_NF.cjs +1 -0
  221. package/dist/src-DJ4x3y2O.js +2142 -0
  222. package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
  223. package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
  224. package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
  225. package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
  226. package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
  227. package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
  228. package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
  229. package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
  230. package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
  231. package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
  232. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
  233. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
  234. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
  235. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
  236. package/dist/typescript-clWeqIBY.cjs +1 -0
  237. package/dist/typescript-mdYq8uqf.js +521 -0
  238. package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
  239. package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
  240. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
  241. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
  242. package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
  243. package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
  244. package/dist/xml-BamqaQOf.cjs +1 -0
  245. package/dist/xml-DVYfB8uY.js +166 -0
  246. package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
  247. package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
  248. package/dist/yaml-_1BORZTQ.js +144 -0
  249. package/dist/yaml-bAgWofBg.cjs +1 -0
  250. package/package.json +72 -0
@@ -0,0 +1,975 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
+ import { m as t } from "./src-DJ4x3y2O.js";
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-WYO6CB5R-Y9HJHB3Q.js";
4
+ import "./chunk-ICXQ74PX-CC59NQmW.js";
5
+ import { t as l } from "./chunk-VAUOI2AC-05FwamOA.js";
6
+ import "./chunk-HOUHSVGY-CtRCnz1G.js";
7
+ import "./chunk-Q4XR5HBZ-Bk18cMuk.js";
8
+ import { t as u } from "./chunk-5VM5RSS4-BMfgdMFU.js";
9
+ import "./chunk-OGEWGWER-BGdqgMza.js";
10
+ import "./chunk-C7G6YPKG-GTlyrFFt.js";
11
+ import { a as d, c as f, i as p } from "./chunk-ZGVPDNZ5-CDTkXY1G.js";
12
+ import { n as m, t as h } from "./chunk-ZIRB5QZD-Cj-y77rH.js";
13
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-HUTT4EX6.mjs
14
+ var g = (function() {
15
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
16
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
17
+ return n;
18
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
19
+ 6,
20
+ 7,
21
+ 8
22
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
23
+ 6,
24
+ 7,
25
+ 11
26
+ ], m = [1, 31], h = [
27
+ 6,
28
+ 7,
29
+ 11,
30
+ 24
31
+ ], g = [
32
+ 1,
33
+ 6,
34
+ 13,
35
+ 16,
36
+ 17,
37
+ 20,
38
+ 23
39
+ ], _ = [1, 35], v = [1, 36], y = [
40
+ 1,
41
+ 6,
42
+ 7,
43
+ 11,
44
+ 13,
45
+ 16,
46
+ 17,
47
+ 20,
48
+ 23
49
+ ], b = [1, 38], x = {
50
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
51
+ yy: {},
52
+ symbols_: {
53
+ error: 2,
54
+ start: 3,
55
+ mindMap: 4,
56
+ spaceLines: 5,
57
+ SPACELINE: 6,
58
+ NL: 7,
59
+ KANBAN: 8,
60
+ document: 9,
61
+ stop: 10,
62
+ EOF: 11,
63
+ statement: 12,
64
+ SPACELIST: 13,
65
+ node: 14,
66
+ shapeData: 15,
67
+ ICON: 16,
68
+ CLASS: 17,
69
+ nodeWithId: 18,
70
+ nodeWithoutId: 19,
71
+ NODE_DSTART: 20,
72
+ NODE_DESCR: 21,
73
+ NODE_DEND: 22,
74
+ NODE_ID: 23,
75
+ SHAPE_DATA: 24,
76
+ $accept: 0,
77
+ $end: 1
78
+ },
79
+ terminals_: {
80
+ 2: "error",
81
+ 6: "SPACELINE",
82
+ 7: "NL",
83
+ 8: "KANBAN",
84
+ 11: "EOF",
85
+ 13: "SPACELIST",
86
+ 16: "ICON",
87
+ 17: "CLASS",
88
+ 20: "NODE_DSTART",
89
+ 21: "NODE_DESCR",
90
+ 22: "NODE_DEND",
91
+ 23: "NODE_ID",
92
+ 24: "SHAPE_DATA"
93
+ },
94
+ productions_: [
95
+ 0,
96
+ [3, 1],
97
+ [3, 2],
98
+ [5, 1],
99
+ [5, 2],
100
+ [5, 2],
101
+ [4, 2],
102
+ [4, 3],
103
+ [10, 1],
104
+ [10, 1],
105
+ [10, 1],
106
+ [10, 2],
107
+ [10, 2],
108
+ [9, 3],
109
+ [9, 2],
110
+ [12, 3],
111
+ [12, 2],
112
+ [12, 2],
113
+ [12, 2],
114
+ [12, 1],
115
+ [12, 2],
116
+ [12, 1],
117
+ [12, 1],
118
+ [12, 1],
119
+ [12, 1],
120
+ [14, 1],
121
+ [14, 1],
122
+ [19, 3],
123
+ [18, 1],
124
+ [18, 4],
125
+ [15, 2],
126
+ [15, 1]
127
+ ],
128
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
129
+ var s = a.length - 1;
130
+ switch (i) {
131
+ case 6:
132
+ case 7: return r;
133
+ case 8:
134
+ r.getLogger().trace("Stop NL ");
135
+ break;
136
+ case 9:
137
+ r.getLogger().trace("Stop EOF ");
138
+ break;
139
+ case 11:
140
+ r.getLogger().trace("Stop NL2 ");
141
+ break;
142
+ case 12:
143
+ r.getLogger().trace("Stop EOF2 ");
144
+ break;
145
+ case 15:
146
+ 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]);
147
+ break;
148
+ case 16:
149
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
150
+ break;
151
+ case 17:
152
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
153
+ break;
154
+ case 18:
155
+ case 23:
156
+ r.decorateNode({ class: a[s] });
157
+ break;
158
+ case 19:
159
+ r.getLogger().trace("SPACELIST");
160
+ break;
161
+ case 20:
162
+ 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]);
163
+ break;
164
+ case 21:
165
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
166
+ break;
167
+ case 22:
168
+ r.decorateNode({ icon: a[s] });
169
+ break;
170
+ case 27:
171
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
172
+ id: a[s - 1],
173
+ descr: a[s - 1],
174
+ type: r.getType(a[s - 2], a[s])
175
+ };
176
+ break;
177
+ case 28:
178
+ this.$ = {
179
+ id: a[s],
180
+ descr: a[s],
181
+ type: 0
182
+ };
183
+ break;
184
+ case 29:
185
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
186
+ id: a[s - 3],
187
+ descr: a[s - 1],
188
+ type: r.getType(a[s - 2], a[s])
189
+ };
190
+ break;
191
+ case 30:
192
+ this.$ = a[s - 1] + a[s];
193
+ break;
194
+ case 31:
195
+ this.$ = a[s];
196
+ break;
197
+ }
198
+ }, "anonymous"),
199
+ table: [
200
+ {
201
+ 3: 1,
202
+ 4: 2,
203
+ 5: 3,
204
+ 6: [1, 5],
205
+ 8: n
206
+ },
207
+ { 1: [3] },
208
+ { 1: [2, 1] },
209
+ {
210
+ 4: 6,
211
+ 6: [1, 7],
212
+ 7: [1, 8],
213
+ 8: n
214
+ },
215
+ {
216
+ 6: r,
217
+ 7: [1, 10],
218
+ 9: 9,
219
+ 12: 11,
220
+ 13: i,
221
+ 14: 14,
222
+ 16: a,
223
+ 17: o,
224
+ 18: 17,
225
+ 19: 18,
226
+ 20: s,
227
+ 23: c
228
+ },
229
+ t(l, [2, 3]),
230
+ { 1: [2, 2] },
231
+ t(l, [2, 4]),
232
+ t(l, [2, 5]),
233
+ {
234
+ 1: [2, 6],
235
+ 6: r,
236
+ 12: 21,
237
+ 13: i,
238
+ 14: 14,
239
+ 16: a,
240
+ 17: o,
241
+ 18: 17,
242
+ 19: 18,
243
+ 20: s,
244
+ 23: c
245
+ },
246
+ {
247
+ 6: r,
248
+ 9: 22,
249
+ 12: 11,
250
+ 13: i,
251
+ 14: 14,
252
+ 16: a,
253
+ 17: o,
254
+ 18: 17,
255
+ 19: 18,
256
+ 20: s,
257
+ 23: c
258
+ },
259
+ {
260
+ 6: u,
261
+ 7: d,
262
+ 10: 23,
263
+ 11: f
264
+ },
265
+ t(p, [2, 24], {
266
+ 18: 17,
267
+ 19: 18,
268
+ 14: 27,
269
+ 16: [1, 28],
270
+ 17: [1, 29],
271
+ 20: s,
272
+ 23: c
273
+ }),
274
+ t(p, [2, 19]),
275
+ t(p, [2, 21], {
276
+ 15: 30,
277
+ 24: m
278
+ }),
279
+ t(p, [2, 22]),
280
+ t(p, [2, 23]),
281
+ t(h, [2, 25]),
282
+ t(h, [2, 26]),
283
+ t(h, [2, 28], { 20: [1, 32] }),
284
+ { 21: [1, 33] },
285
+ {
286
+ 6: u,
287
+ 7: d,
288
+ 10: 34,
289
+ 11: f
290
+ },
291
+ {
292
+ 1: [2, 7],
293
+ 6: r,
294
+ 12: 21,
295
+ 13: i,
296
+ 14: 14,
297
+ 16: a,
298
+ 17: o,
299
+ 18: 17,
300
+ 19: 18,
301
+ 20: s,
302
+ 23: c
303
+ },
304
+ t(g, [2, 14], {
305
+ 7: _,
306
+ 11: v
307
+ }),
308
+ t(y, [2, 8]),
309
+ t(y, [2, 9]),
310
+ t(y, [2, 10]),
311
+ t(p, [2, 16], {
312
+ 15: 37,
313
+ 24: m
314
+ }),
315
+ t(p, [2, 17]),
316
+ t(p, [2, 18]),
317
+ t(p, [2, 20], { 24: b }),
318
+ t(h, [2, 31]),
319
+ { 21: [1, 39] },
320
+ { 22: [1, 40] },
321
+ t(g, [2, 13], {
322
+ 7: _,
323
+ 11: v
324
+ }),
325
+ t(y, [2, 11]),
326
+ t(y, [2, 12]),
327
+ t(p, [2, 15], { 24: b }),
328
+ t(h, [2, 30]),
329
+ { 22: [1, 41] },
330
+ t(h, [2, 27]),
331
+ t(h, [2, 29])
332
+ ],
333
+ defaultActions: {
334
+ 2: [2, 1],
335
+ 6: [2, 2]
336
+ },
337
+ parseError: /* @__PURE__ */ e(function(e, t) {
338
+ if (t.recoverable) this.trace(e);
339
+ else {
340
+ var n = Error(e);
341
+ throw n.hash = t, n;
342
+ }
343
+ }, "parseError"),
344
+ parse: /* @__PURE__ */ e(function(t) {
345
+ 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: {} };
346
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
347
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
348
+ var v = h.yylloc;
349
+ o.push(v);
350
+ var y = h.options && h.options.ranges;
351
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
352
+ function b(e) {
353
+ r.length -= 2 * e, a.length -= e, o.length -= e;
354
+ }
355
+ e(b, "popStack");
356
+ function x() {
357
+ var e = i.pop() || h.lex() || p;
358
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
359
+ }
360
+ e(x, "lex");
361
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
362
+ 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]) {
363
+ var M = "";
364
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
365
+ 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, {
366
+ text: h.match,
367
+ token: this.terminals_[S] || S,
368
+ line: h.yylineno,
369
+ loc: v,
370
+ expected: j
371
+ });
372
+ }
373
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
374
+ switch (T[0]) {
375
+ case 1:
376
+ 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--);
377
+ break;
378
+ case 2:
379
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
380
+ first_line: o[o.length - (k || 1)].first_line,
381
+ last_line: o[o.length - 1].last_line,
382
+ first_column: o[o.length - (k || 1)].first_column,
383
+ last_column: o[o.length - 1].last_column
384
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
385
+ c,
386
+ u,
387
+ l,
388
+ g.yy,
389
+ T[1],
390
+ a,
391
+ o
392
+ ].concat(m)), E !== void 0) return E;
393
+ 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);
394
+ break;
395
+ case 3: return !0;
396
+ }
397
+ }
398
+ return !0;
399
+ }, "parse")
400
+ };
401
+ x.lexer = /* @__PURE__ */ (function() {
402
+ return {
403
+ EOF: 1,
404
+ parseError: /* @__PURE__ */ e(function(e, t) {
405
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
406
+ else throw Error(e);
407
+ }, "parseError"),
408
+ setInput: /* @__PURE__ */ e(function(e, t) {
409
+ 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 = {
410
+ first_line: 1,
411
+ first_column: 0,
412
+ last_line: 1,
413
+ last_column: 0
414
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
415
+ }, "setInput"),
416
+ input: /* @__PURE__ */ e(function() {
417
+ var e = this._input[0];
418
+ 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;
419
+ }, "input"),
420
+ unput: /* @__PURE__ */ e(function(e) {
421
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
422
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
423
+ var r = this.match.split(/(?:\r\n?|\n)/g);
424
+ 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);
425
+ var i = this.yylloc.range;
426
+ return this.yylloc = {
427
+ first_line: this.yylloc.first_line,
428
+ last_line: this.yylineno + 1,
429
+ first_column: this.yylloc.first_column,
430
+ 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
431
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
432
+ }, "unput"),
433
+ more: /* @__PURE__ */ e(function() {
434
+ return this._more = !0, this;
435
+ }, "more"),
436
+ reject: /* @__PURE__ */ e(function() {
437
+ if (this.options.backtrack_lexer) this._backtrack = !0;
438
+ 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(), {
439
+ text: "",
440
+ token: null,
441
+ line: this.yylineno
442
+ });
443
+ return this;
444
+ }, "reject"),
445
+ less: /* @__PURE__ */ e(function(e) {
446
+ this.unput(this.match.slice(e));
447
+ }, "less"),
448
+ pastInput: /* @__PURE__ */ e(function() {
449
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
450
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
451
+ }, "pastInput"),
452
+ upcomingInput: /* @__PURE__ */ e(function() {
453
+ var e = this.match;
454
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
455
+ }, "upcomingInput"),
456
+ showPosition: /* @__PURE__ */ e(function() {
457
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
458
+ return e + this.upcomingInput() + "\n" + t + "^";
459
+ }, "showPosition"),
460
+ test_match: /* @__PURE__ */ e(function(e, t) {
461
+ var n, r, i;
462
+ if (this.options.backtrack_lexer && (i = {
463
+ yylineno: this.yylineno,
464
+ yylloc: {
465
+ first_line: this.yylloc.first_line,
466
+ last_line: this.last_line,
467
+ first_column: this.yylloc.first_column,
468
+ last_column: this.yylloc.last_column
469
+ },
470
+ yytext: this.yytext,
471
+ match: this.match,
472
+ matches: this.matches,
473
+ matched: this.matched,
474
+ yyleng: this.yyleng,
475
+ offset: this.offset,
476
+ _more: this._more,
477
+ _input: this._input,
478
+ yy: this.yy,
479
+ conditionStack: this.conditionStack.slice(0),
480
+ done: this.done
481
+ }, 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 = {
482
+ first_line: this.yylloc.last_line,
483
+ last_line: this.yylineno + 1,
484
+ first_column: this.yylloc.last_column,
485
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
486
+ }, 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;
487
+ if (this._backtrack) {
488
+ for (var a in i) this[a] = i[a];
489
+ return !1;
490
+ }
491
+ return !1;
492
+ }, "test_match"),
493
+ next: /* @__PURE__ */ e(function() {
494
+ if (this.done) return this.EOF;
495
+ this._input || (this.done = !0);
496
+ var e, t, n, r;
497
+ this._more || (this.yytext = "", this.match = "");
498
+ 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)) {
499
+ if (t = n, r = a, this.options.backtrack_lexer) {
500
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
501
+ if (this._backtrack) {
502
+ t = !1;
503
+ continue;
504
+ } else return !1;
505
+ } else if (!this.options.flex) break;
506
+ }
507
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
508
+ text: "",
509
+ token: null,
510
+ line: this.yylineno
511
+ });
512
+ }, "next"),
513
+ lex: /* @__PURE__ */ e(function() {
514
+ return this.next() || this.lex();
515
+ }, "lex"),
516
+ begin: /* @__PURE__ */ e(function(e) {
517
+ this.conditionStack.push(e);
518
+ }, "begin"),
519
+ popState: /* @__PURE__ */ e(function() {
520
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
521
+ }, "popState"),
522
+ _currentRules: /* @__PURE__ */ e(function() {
523
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
524
+ }, "_currentRules"),
525
+ topState: /* @__PURE__ */ e(function(e) {
526
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
527
+ }, "topState"),
528
+ pushState: /* @__PURE__ */ e(function(e) {
529
+ this.begin(e);
530
+ }, "pushState"),
531
+ stateStackSize: /* @__PURE__ */ e(function() {
532
+ return this.conditionStack.length;
533
+ }, "stateStackSize"),
534
+ options: { "case-insensitive": !0 },
535
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
536
+ switch (n) {
537
+ case 0: return this.pushState("shapeData"), t.yytext = "", 24;
538
+ case 1: return this.pushState("shapeDataStr"), 24;
539
+ case 2: return this.popState(), 24;
540
+ case 3: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 24;
541
+ case 4: return 24;
542
+ case 5:
543
+ this.popState();
544
+ break;
545
+ case 6: return e.getLogger().trace("Found comment", t.yytext), 6;
546
+ case 7: return 8;
547
+ case 8:
548
+ this.begin("CLASS");
549
+ break;
550
+ case 9: return this.popState(), 17;
551
+ case 10:
552
+ this.popState();
553
+ break;
554
+ case 11:
555
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
556
+ break;
557
+ case 12: return e.getLogger().trace("SPACELINE"), 6;
558
+ case 13: return 7;
559
+ case 14: return 16;
560
+ case 15:
561
+ e.getLogger().trace("end icon"), this.popState();
562
+ break;
563
+ case 16: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
564
+ case 17: return e.getLogger().trace("Cloud"), this.begin("NODE"), 20;
565
+ case 18: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
566
+ case 19: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
567
+ case 20: return this.begin("NODE"), 20;
568
+ case 21: return this.begin("NODE"), 20;
569
+ case 22: return this.begin("NODE"), 20;
570
+ case 23: return this.begin("NODE"), 20;
571
+ case 24: return 13;
572
+ case 25: return 23;
573
+ case 26: return 11;
574
+ case 27:
575
+ this.begin("NSTR2");
576
+ break;
577
+ case 28: return "NODE_DESCR";
578
+ case 29:
579
+ this.popState();
580
+ break;
581
+ case 30:
582
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
583
+ break;
584
+ case 31: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
585
+ case 32:
586
+ this.popState();
587
+ break;
588
+ case 33: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
589
+ case 34: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
590
+ case 35: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
591
+ case 36: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
592
+ case 37: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
593
+ case 38: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
594
+ case 39: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
595
+ case 40: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
596
+ case 41: return e.getLogger().trace("Long description:", t.yytext), 21;
597
+ case 42: return e.getLogger().trace("Long description:", t.yytext), 21;
598
+ }
599
+ }, "anonymous"),
600
+ rules: [
601
+ /^(?:@\{)/i,
602
+ /^(?:["])/i,
603
+ /^(?:["])/i,
604
+ /^(?:[^\"]+)/i,
605
+ /^(?:[^}^"]+)/i,
606
+ /^(?:\})/i,
607
+ /^(?:\s*%%.*)/i,
608
+ /^(?:kanban\b)/i,
609
+ /^(?::::)/i,
610
+ /^(?:.+)/i,
611
+ /^(?:\n)/i,
612
+ /^(?:::icon\()/i,
613
+ /^(?:[\s]+[\n])/i,
614
+ /^(?:[\n]+)/i,
615
+ /^(?:[^\)]+)/i,
616
+ /^(?:\))/i,
617
+ /^(?:-\))/i,
618
+ /^(?:\(-)/i,
619
+ /^(?:\)\))/i,
620
+ /^(?:\))/i,
621
+ /^(?:\(\()/i,
622
+ /^(?:\{\{)/i,
623
+ /^(?:\()/i,
624
+ /^(?:\[)/i,
625
+ /^(?:[\s]+)/i,
626
+ /^(?:[^\(\[\n\)\{\}@]+)/i,
627
+ /^(?:$)/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
+ ],
645
+ conditions: {
646
+ shapeDataEndBracket: {
647
+ rules: [],
648
+ inclusive: !1
649
+ },
650
+ shapeDataStr: {
651
+ rules: [2, 3],
652
+ inclusive: !1
653
+ },
654
+ shapeData: {
655
+ rules: [
656
+ 1,
657
+ 4,
658
+ 5
659
+ ],
660
+ inclusive: !1
661
+ },
662
+ CLASS: {
663
+ rules: [9, 10],
664
+ inclusive: !1
665
+ },
666
+ ICON: {
667
+ rules: [14, 15],
668
+ inclusive: !1
669
+ },
670
+ NSTR2: {
671
+ rules: [28, 29],
672
+ inclusive: !1
673
+ },
674
+ NSTR: {
675
+ rules: [31, 32],
676
+ inclusive: !1
677
+ },
678
+ NODE: {
679
+ rules: [
680
+ 27,
681
+ 30,
682
+ 33,
683
+ 34,
684
+ 35,
685
+ 36,
686
+ 37,
687
+ 38,
688
+ 39,
689
+ 40,
690
+ 41,
691
+ 42
692
+ ],
693
+ inclusive: !1
694
+ },
695
+ INITIAL: {
696
+ rules: [
697
+ 0,
698
+ 6,
699
+ 7,
700
+ 8,
701
+ 11,
702
+ 12,
703
+ 13,
704
+ 16,
705
+ 17,
706
+ 18,
707
+ 19,
708
+ 20,
709
+ 21,
710
+ 22,
711
+ 23,
712
+ 24,
713
+ 25,
714
+ 26
715
+ ],
716
+ inclusive: !0
717
+ }
718
+ }
719
+ };
720
+ })();
721
+ function S() {
722
+ this.yy = {};
723
+ }
724
+ return e(S, "Parser"), S.prototype = x, x.Parser = S, new S();
725
+ })();
726
+ g.parser = g;
727
+ var _ = g, v = [], y = [], b = 0, x = {}, S = /* @__PURE__ */ e(() => {
728
+ v = [], y = [], b = 0, x = {};
729
+ }, "clear"), C = /* @__PURE__ */ e((e) => {
730
+ if (v.length === 0) return null;
731
+ let t = v[0].level, n = null;
732
+ 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 + "\")");
733
+ return e === n?.level ? null : n;
734
+ }, "getSection"), w = /* @__PURE__ */ e(function() {
735
+ return y;
736
+ }, "getSections"), T = /* @__PURE__ */ e(function() {
737
+ let e = [], t = [], n = w(), r = s();
738
+ for (let e of n) {
739
+ let n = {
740
+ id: e.id,
741
+ label: c(e.label ?? "", r),
742
+ labelType: "markdown",
743
+ isGroup: !0,
744
+ ticket: e.ticket,
745
+ shape: "kanbanSection",
746
+ level: e.level,
747
+ look: r.look
748
+ };
749
+ t.push(n);
750
+ let i = v.filter((t) => t.parentId === e.id);
751
+ for (let n of i) {
752
+ let i = {
753
+ id: n.id,
754
+ parentId: e.id,
755
+ label: c(n.label ?? "", r),
756
+ labelType: "markdown",
757
+ isGroup: !1,
758
+ ticket: n?.ticket,
759
+ priority: n?.priority,
760
+ assigned: n?.assigned,
761
+ icon: n?.icon,
762
+ shape: "kanbanItem",
763
+ level: n.level,
764
+ rx: 5,
765
+ ry: 5,
766
+ cssStyles: ["text-align: left"]
767
+ };
768
+ t.push(i);
769
+ }
770
+ }
771
+ return {
772
+ nodes: t,
773
+ edges: e,
774
+ other: {},
775
+ config: s()
776
+ };
777
+ }, "getData"), E = /* @__PURE__ */ e((e, t, n, r, a) => {
778
+ let o = s(), l = o.mindmap?.padding ?? i.mindmap.padding;
779
+ switch (r) {
780
+ case D.ROUNDED_RECT:
781
+ case D.RECT:
782
+ case D.HEXAGON: l *= 2;
783
+ }
784
+ let u = {
785
+ id: c(t, o) || "kbn" + b++,
786
+ level: e,
787
+ label: c(n, o),
788
+ width: o.mindmap?.maxNodeWidth ?? i.mindmap.maxNodeWidth,
789
+ padding: l,
790
+ isGroup: !1
791
+ };
792
+ if (a !== void 0) {
793
+ let e;
794
+ e = a.includes("\n") ? a + "\n" : "{\n" + a + "\n}";
795
+ let t = m(e, { schema: h });
796
+ if (t.shape && (t.shape !== t.shape.toLowerCase() || t.shape.includes("_"))) throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);
797
+ 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);
798
+ }
799
+ let d = C(e);
800
+ d ? u.parentId = d.id || "kbn" + b++ : y.push(u), v.push(u);
801
+ }, "addNode"), D = {
802
+ DEFAULT: 0,
803
+ NO_BORDER: 0,
804
+ ROUNDED_RECT: 1,
805
+ RECT: 2,
806
+ CIRCLE: 3,
807
+ CLOUD: 4,
808
+ BANG: 5,
809
+ HEXAGON: 6
810
+ }, O = {
811
+ clear: S,
812
+ addNode: E,
813
+ getSections: w,
814
+ getData: T,
815
+ nodeType: D,
816
+ getType: /* @__PURE__ */ e((e, n) => {
817
+ switch (t.debug("In get type", e, n), e) {
818
+ case "[": return D.RECT;
819
+ case "(": return n === ")" ? D.ROUNDED_RECT : D.CLOUD;
820
+ case "((": return D.CIRCLE;
821
+ case ")": return D.CLOUD;
822
+ case "))": return D.BANG;
823
+ case "{{": return D.HEXAGON;
824
+ default: return D.DEFAULT;
825
+ }
826
+ }, "getType"),
827
+ setElementForId: /* @__PURE__ */ e((e, t) => {
828
+ x[e] = t;
829
+ }, "setElementForId"),
830
+ decorateNode: /* @__PURE__ */ e((e) => {
831
+ if (!e) return;
832
+ let t = s(), n = v[v.length - 1];
833
+ e.icon && (n.icon = c(e.icon, t)), e.class && (n.cssClasses = c(e.class, t));
834
+ }, "decorateNode"),
835
+ type2Str: /* @__PURE__ */ e((e) => {
836
+ switch (e) {
837
+ case D.DEFAULT: return "no-border";
838
+ case D.RECT: return "rect";
839
+ case D.ROUNDED_RECT: return "rounded-rect";
840
+ case D.CIRCLE: return "circle";
841
+ case D.CLOUD: return "cloud";
842
+ case D.BANG: return "bang";
843
+ case D.HEXAGON: return "hexgon";
844
+ default: return "no-border";
845
+ }
846
+ }, "type2Str"),
847
+ getLogger: /* @__PURE__ */ e(() => t, "getLogger"),
848
+ getElementById: /* @__PURE__ */ e((e) => x[e], "getElementById")
849
+ }, k = { draw: /* @__PURE__ */ e(async (e, r, a, o) => {
850
+ t.debug("Rendering kanban diagram\n" + e);
851
+ let c = o.db.getData(), u = s();
852
+ u.htmlLabels = !1;
853
+ let m = l(r);
854
+ for (let e of c.nodes) e.domId = `${r}-${e.id}`;
855
+ let h = m.append("g");
856
+ h.attr("class", "sections");
857
+ let g = m.append("g");
858
+ g.attr("class", "items");
859
+ let _ = c.nodes.filter((e) => e.isGroup), v = 0, y = [], b = 25;
860
+ for (let e of _) {
861
+ let t = u?.kanban?.sectionWidth || 200;
862
+ 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;
863
+ let n = await p(h, e);
864
+ b = Math.max(b, n?.labelBBox?.height), y.push(n);
865
+ }
866
+ let x = 0;
867
+ for (let e of _) {
868
+ let t = y[x];
869
+ x += 1;
870
+ let n = u?.kanban?.sectionWidth || 200, r = -n * 3 / 2 + b, i = r, a = c.nodes.filter((t) => t.parentId === e.id);
871
+ for (let t of a) {
872
+ if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
873
+ t.x = e.x, t.width = n - 1.5 * 10;
874
+ let r = (await d(g, t, { config: u })).node().getBBox();
875
+ t.y = i + r.height / 2, await f(t), i = t.y + r.height / 2 + 10 / 2;
876
+ }
877
+ let o = t.cluster.select("rect"), s = Math.max(i - r + 30, 50) + (b - 25);
878
+ o.attr("height", s);
879
+ }
880
+ n(void 0, m, u.mindmap?.padding ?? i.kanban.padding, u.mindmap?.useMaxWidth ?? i.kanban.useMaxWidth);
881
+ }, "draw") }, A = /* @__PURE__ */ e((t) => {
882
+ let n = "";
883
+ for (let e = 0; e < t.THEME_COLOR_LIMIT; e++) t["lineColor" + e] = t["lineColor" + e] || t["cScaleInv" + e], a(t["lineColor" + e]) ? t["lineColor" + e] = o(t["lineColor" + e], 20) : t["lineColor" + e] = r(t["lineColor" + e], 20);
884
+ let i = /* @__PURE__ */ e((e, n) => t.darkMode ? r(e, n) : o(e, n), "adjuster");
885
+ for (let e = 0; e < t.THEME_COLOR_LIMIT; e++) {
886
+ let r = "" + (17 - 3 * e);
887
+ n += `
888
+ .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} polygon, .section-${e - 1} path {
889
+ fill: ${i(t["cScale" + e], 10)};
890
+ stroke: ${i(t["cScale" + e], 10)};
891
+
892
+ }
893
+ .section-${e - 1} text {
894
+ fill: ${t["cScaleLabel" + e]};
895
+ }
896
+ .node-icon-${e - 1} {
897
+ font-size: 40px;
898
+ color: ${t["cScaleLabel" + e]};
899
+ }
900
+ .section-edge-${e - 1}{
901
+ stroke: ${t["cScale" + e]};
902
+ }
903
+ .edge-depth-${e - 1}{
904
+ stroke-width: ${r};
905
+ }
906
+ .section-${e - 1} line {
907
+ stroke: ${t["cScaleInv" + e]} ;
908
+ stroke-width: 3;
909
+ }
910
+
911
+ .disabled, .disabled circle, .disabled text {
912
+ fill: lightgray;
913
+ }
914
+ .disabled text {
915
+ fill: #efefef;
916
+ }
917
+
918
+ .node rect,
919
+ .node circle,
920
+ .node ellipse,
921
+ .node polygon,
922
+ .node path {
923
+ fill: ${t.background};
924
+ stroke: ${t.nodeBorder};
925
+ stroke-width: 1px;
926
+ }
927
+
928
+ .kanban-ticket-link {
929
+ fill: ${t.background};
930
+ stroke: ${t.nodeBorder};
931
+ text-decoration: underline;
932
+ }
933
+ `;
934
+ }
935
+ return n;
936
+ }, "genSections"), j = {
937
+ db: O,
938
+ renderer: k,
939
+ parser: _,
940
+ styles: /* @__PURE__ */ e((e) => `
941
+ .edge {
942
+ stroke-width: 3;
943
+ }
944
+ ${A(e)}
945
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
946
+ fill: ${e.git0};
947
+ }
948
+ .section-root text {
949
+ fill: ${e.gitBranchLabel0};
950
+ }
951
+ .icon-container {
952
+ height:100%;
953
+ display: flex;
954
+ justify-content: center;
955
+ align-items: center;
956
+ }
957
+ .edge {
958
+ fill: none;
959
+ }
960
+ .cluster-label, .label {
961
+ color: ${e.textColor};
962
+ fill: ${e.textColor};
963
+ }
964
+ .kanban-label {
965
+ dy: 1em;
966
+ alignment-baseline: middle;
967
+ text-anchor: middle;
968
+ dominant-baseline: middle;
969
+ text-align: center;
970
+ }
971
+ ${u()}
972
+ `, "getStyles")
973
+ };
974
+ //#endregion
975
+ export { j as diagram };