mio-previewer 0.2.73 → 0.2.76

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 (282) hide show
  1. package/README.md +1 -0
  2. package/README.zh-CN.md +2 -1
  3. package/dist/_basePickBy-CXmXW7jd.js +166 -0
  4. package/dist/_basePickBy-CtuVwROD.cjs +1 -0
  5. package/dist/_baseUniq-CGoiOkSa.js +682 -0
  6. package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
  7. package/dist/_createAssigner-DqH64jc7.cjs +1 -0
  8. package/dist/_createAssigner-IEX8lwxm.js +573 -0
  9. package/dist/arc-C78br9Yj.cjs +1 -0
  10. package/dist/arc-vLgDTVZZ.js +80 -0
  11. package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
  12. package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
  13. package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
  14. package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
  15. package/dist/array-CApNbSU9.js +6 -0
  16. package/dist/array-DZSRzHA_.cjs +1 -0
  17. package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
  18. package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
  19. package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
  20. package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
  21. package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
  22. package/dist/channel-BWHkpgVD.cjs +1 -0
  23. package/dist/channel-JT7eWw2w.js +5 -0
  24. package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
  25. package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
  26. package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
  27. package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
  28. package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
  29. package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
  30. package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
  31. package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
  32. package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
  33. package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
  34. package/dist/chunk-BNMv73og.cjs +1 -0
  35. package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
  36. package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
  37. package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
  38. package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
  39. package/dist/chunk-Dbv0sNQl.js +20 -0
  40. package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
  41. package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
  42. package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
  43. package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
  44. package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
  45. package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
  46. package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
  47. package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
  48. package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
  49. package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
  50. package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
  51. package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
  52. package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
  53. package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
  54. package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
  55. package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
  56. package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
  57. package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
  58. package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
  59. package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
  60. package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
  61. package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
  62. package/dist/clone-B0KDIkSS.js +8 -0
  63. package/dist/clone-wvtBTB6v.cjs +1 -0
  64. package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
  65. package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
  66. package/dist/custom-Bl_fVJZ0.cjs +84 -0
  67. package/dist/custom-D-TzPpWT.js +5281 -0
  68. package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
  69. package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
  70. package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
  71. package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
  72. package/dist/dagre-BfAHSwtP.js +1472 -0
  73. package/dist/dagre-Buvkww-e.cjs +1 -0
  74. package/dist/defaultLocale-B5dSAwiC.js +201 -0
  75. package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
  76. package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
  77. package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
  78. package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
  79. package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
  80. package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
  81. package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
  82. package/dist/dist-DC-lM4uX.cjs +1 -0
  83. package/dist/dist-zNcLEPGR.js +51 -0
  84. package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
  85. package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
  86. package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
  87. package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
  88. package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
  89. package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
  90. package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
  91. package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
  92. package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
  93. package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
  94. package/dist/graphlib-C3tPLMbC.js +225 -0
  95. package/dist/graphlib-Cdg0u3TT.cjs +1 -0
  96. package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
  97. package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
  98. package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
  99. package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
  100. package/dist/init-07zIhv_j.cjs +1 -0
  101. package/dist/init-Bwwdo3M6.js +15 -0
  102. package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
  103. package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
  104. package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
  105. package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
  106. package/dist/katex-6UpFeIdV.cjs +261 -0
  107. package/dist/katex-BHcJffnM.js +22112 -0
  108. package/dist/line-DYhVGH2B.js +34 -0
  109. package/dist/line-DdNAPGaw.cjs +1 -0
  110. package/dist/linear-n4_iirEu.js +289 -0
  111. package/dist/linear-rQLpRrSH.cjs +1 -0
  112. package/dist/loadCss-D6257oR0.js +8 -0
  113. package/dist/loadCss-DhrQh6-A.cjs +1 -0
  114. package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
  115. package/dist/markdown-it-D-hH4G7k.js +173 -0
  116. package/dist/math-G8rF7UWn.cjs +1 -0
  117. package/dist/math-H49DsxYR.js +10 -0
  118. package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
  119. package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
  120. package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
  121. package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
  122. package/dist/mio-previewer.cjs.js +11 -21
  123. package/dist/mio-previewer.css +2 -9
  124. package/dist/mio-previewer.esm.js +4939 -0
  125. package/dist/ordinal-C55HfHHp.js +65 -0
  126. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  127. package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
  128. package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
  129. package/dist/path-DNvJyUE8.js +85 -0
  130. package/dist/path-Kklx0M1v.cjs +1 -0
  131. package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
  132. package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
  133. package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
  134. package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
  135. package/dist/plugins/custom.cjs.js +1 -1
  136. package/dist/plugins/custom.esm.js +2 -0
  137. package/dist/plugins/markdown-it.cjs.js +1 -3
  138. package/dist/plugins/markdown-it.esm.js +2 -0
  139. package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
  140. package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
  141. package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
  142. package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
  143. package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
  144. package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
  145. package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
  146. package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
  147. package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
  148. package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
  149. package/dist/src-BMjps4Ui.cjs +1 -0
  150. package/dist/src-BuisGndr.js +2149 -0
  151. package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
  152. package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
  153. package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
  154. package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
  155. package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
  156. package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
  157. package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
  158. package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
  159. package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
  160. package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
  161. package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
  162. package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
  163. package/package.json +2 -2
  164. package/dist/_basePickBy-Be3yyf2d.js +0 -151
  165. package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
  166. package/dist/_baseUniq-BXkA0Pgx.js +0 -614
  167. package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
  168. package/dist/arc-B-QGG8RZ.cjs +0 -1
  169. package/dist/arc-djW14lrn.js +0 -83
  170. package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
  171. package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
  172. package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
  173. package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
  174. package/dist/assets/parser.worker-67NQKZt5.js +0 -16
  175. package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
  176. package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
  177. package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
  178. package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
  179. package/dist/channel-D_ITz6Jy.cjs +0 -1
  180. package/dist/channel-sXy9EduO.js +0 -5
  181. package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
  182. package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
  183. package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
  184. package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
  185. package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
  186. package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
  187. package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
  188. package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
  189. package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
  190. package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
  191. package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
  192. package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
  193. package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
  194. package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
  195. package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
  196. package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
  197. package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
  198. package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
  199. package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
  200. package/dist/clone-DOYxaT_d.js +0 -8
  201. package/dist/clone-DSlm33NG.cjs +0 -1
  202. package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
  203. package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
  204. package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
  205. package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
  206. package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
  207. package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
  208. package/dist/defaultLocale-D7EN2tov.js +0 -171
  209. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  210. package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
  211. package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
  212. package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
  213. package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
  214. package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
  215. package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
  216. package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
  217. package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
  218. package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
  219. package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
  220. package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
  221. package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
  222. package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
  223. package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
  224. package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
  225. package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
  226. package/dist/graph-DEnt0OtZ.js +0 -247
  227. package/dist/graph-Dgcjs2XL.cjs +0 -1
  228. package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
  229. package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
  230. package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
  231. package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
  232. package/dist/init-CHZsXQcr.cjs +0 -1
  233. package/dist/init-DjUOC4st.js +0 -16
  234. package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
  235. package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
  236. package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
  237. package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
  238. package/dist/katex-CmGeg_OO.js +0 -11692
  239. package/dist/katex-DEiiRhcn.cjs +0 -261
  240. package/dist/layout-BDNzBIaA.cjs +0 -1
  241. package/dist/layout-DTBfbHzy.js +0 -1324
  242. package/dist/linear-BRl2UYUr.cjs +0 -1
  243. package/dist/linear-CwbXkgvF.js +0 -259
  244. package/dist/loadCss-BbD6mdv-.cjs +0 -1
  245. package/dist/loadCss-DS0Fuaxe.js +0 -8
  246. package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
  247. package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
  248. package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
  249. package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
  250. package/dist/mio-previewer.es.js +0 -6171
  251. package/dist/ordinal-CagbB1m8.cjs +0 -1
  252. package/dist/ordinal-DfAQgscy.js +0 -61
  253. package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
  254. package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
  255. package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
  256. package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
  257. package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
  258. package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
  259. package/dist/plugins/custom.es.js +0 -85
  260. package/dist/plugins/markdown-it.es.js +0 -173
  261. package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
  262. package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
  263. package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
  264. package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
  265. package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
  266. package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
  267. package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
  268. package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
  269. package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
  270. package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
  271. package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
  272. package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
  273. package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
  274. package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
  275. package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
  276. package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
  277. package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
  278. package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
  279. package/dist/viewer-CZUSHxhf.js +0 -19131
  280. package/dist/viewer-Canph5Zx.cjs +0 -305
  281. package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
  282. package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
@@ -1,139 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./chunk-TZMSLE5B-CgLDb48A.cjs"),ft=require("./chunk-FMBD7UC4-DxkUZTpt.cjs"),i=require("./viewer-Canph5Zx.cjs"),tt=require("./arc-B-QGG8RZ.cjs");var G=(function(){var t=i.__name(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],_={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i.__name(function(n,s,l,d,p,o,b){var x=o.length-1;switch(p){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 13:d.addTask(o[x-1],o[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i.__name(function(n,s){if(s.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=s,l}},"parseError"),parse:i.__name(function(n){var s=this,l=[0],d=[],p=[null],o=[],b=this.table,x="",E=0,D=0,ht=2,J=1,ut=o.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(n,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;o.push(O);var dt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}i.__name(yt,"popStack");function K(){var w;return w=d.pop()||k.lex()||J,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=s.symbols_[w]||w),w}i.__name(K,"lex");for(var v,I,T,Y,F={},N,M,Q,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((v===null||typeof v>"u")&&(v=K()),T=b[I]&&b[I][v]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in b[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?H="Parse error on line "+(E+1)+`:
2
- `+k.showPosition()+`
3
- Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":H="Parse error on line "+(E+1)+": Unexpected "+(v==J?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(H,{text:k.match,token:this.terminals_[v]||v,line:k.yylineno,loc:O,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(k.yytext),o.push(k.yylloc),l.push(T[1]),v=null,D=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},dt&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),Y=this.performAction.apply(F,[x,D,E,A.yy,T[1],p,o].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),Q=b[l[l.length-2]][l[l.length-1]],l.push(Q);break;case 3:return!0}}return!0},"parse")},g=(function(){var h={EOF:1,parseError:i.__name(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},"parseError"),setInput:i.__name(function(n,s){return this.yy=s||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i.__name(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:i.__name(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i.__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:i.__name(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var n=this.pastInput(),s=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
- `+s+"^"},"showPosition"),test_match:i.__name(function(n,s){var l,d,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),d=n[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var o in p)this[o]=p[o];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,s,l,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),o=0;o<p.length;o++)if(l=this._input.match(this.rules[p[o]]),l&&(!s||l[0].length>s[0].length)){if(s=l,d=o,this.options.backtrack_lexer){if(n=this.test_match(l,p[o]),n!==!1)return n;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(n=this.test_match(s,p[d]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i.__name(function(){var s=this.next();return s||this.lex()},"lex"),begin:i.__name(function(s){this.conditionStack.push(s)},"begin"),popState:i.__name(function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i.__name(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:i.__name(function(s){this.begin(s)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i.__name(function(s,l,d,p){switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h})();_.lexer=g;function m(){this.yy={}}return i.__name(m,"Parser"),m.prototype=_,_.Parser=m,new m})();G.parser=G;var pt=G,R="",U=[],V=[],L=[],_t=i.__name(function(){U.length=0,V.length=0,R="",L.length=0,i.clear()},"clear"),gt=i.__name(function(t){R=t,U.push(t)},"addSection"),mt=i.__name(function(){return U},"getSections"),xt=i.__name(function(){let t=et();const e=100;let a=0;for(;!t&&a<e;)t=et(),a++;return V.push(...L),V},"getTasks"),kt=i.__name(function(){const t=[];return V.forEach(a=>{a.people&&t.push(...a.people)}),[...new Set(t)].sort()},"updateActors"),vt=i.__name(function(t,e){const a=e.substr(1).split(":");let c=0,r=[];a.length===1?(c=Number(a[0]),r=[]):(c=Number(a[0]),r=a[1].split(","));const f=r.map(y=>y.trim()),u={section:R,type:R,people:f,task:t,score:c};L.push(u)},"addTask"),bt=i.__name(function(t){const e={section:R,type:R,description:t,task:t,classes:[]};V.push(e)},"addTaskOrg"),et=i.__name(function(){const t=i.__name(function(a){return L[a].processed},"compileTask");let e=!0;for(const[a,c]of L.entries())t(a),e=e&&c.processed;return e},"compileTasks"),wt=i.__name(function(){return kt()},"getActors"),nt={getConfig:i.__name(()=>i.getConfig2().journey,"getConfig"),clear:_t,setDiagramTitle:i.setDiagramTitle,getDiagramTitle:i.getDiagramTitle,setAccTitle:i.setAccTitle,getAccTitle:i.getAccTitle,setAccDescription:i.setAccDescription,getAccDescription:i.getAccDescription,addSection:gt,getSections:mt,getTasks:xt,addTask:vt,addTaskOrg:bt,getActors:wt},Tt=i.__name(t=>`.label {
7
- font-family: ${t.fontFamily};
8
- color: ${t.textColor};
9
- }
10
- .mouth {
11
- stroke: #666;
12
- }
13
-
14
- line {
15
- stroke: ${t.textColor}
16
- }
17
-
18
- .legend {
19
- fill: ${t.textColor};
20
- font-family: ${t.fontFamily};
21
- }
22
-
23
- .label text {
24
- fill: #333;
25
- }
26
- .label {
27
- color: ${t.textColor}
28
- }
29
-
30
- .face {
31
- ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
32
- stroke: #999;
33
- }
34
-
35
- .node rect,
36
- .node circle,
37
- .node ellipse,
38
- .node polygon,
39
- .node path {
40
- fill: ${t.mainBkg};
41
- stroke: ${t.nodeBorder};
42
- stroke-width: 1px;
43
- }
44
-
45
- .node .label {
46
- text-align: center;
47
- }
48
- .node.clickable {
49
- cursor: pointer;
50
- }
51
-
52
- .arrowheadPath {
53
- fill: ${t.arrowheadColor};
54
- }
55
-
56
- .edgePath .path {
57
- stroke: ${t.lineColor};
58
- stroke-width: 1.5px;
59
- }
60
-
61
- .flowchart-link {
62
- stroke: ${t.lineColor};
63
- fill: none;
64
- }
65
-
66
- .edgeLabel {
67
- background-color: ${t.edgeLabelBackground};
68
- rect {
69
- opacity: 0.5;
70
- }
71
- text-align: center;
72
- }
73
-
74
- .cluster rect {
75
- }
76
-
77
- .cluster text {
78
- fill: ${t.titleColor};
79
- }
80
-
81
- div.mermaidTooltip {
82
- position: absolute;
83
- text-align: center;
84
- max-width: 200px;
85
- padding: 2px;
86
- font-family: ${t.fontFamily};
87
- font-size: 12px;
88
- background: ${t.tertiaryColor};
89
- border: 1px solid ${t.border2};
90
- border-radius: 2px;
91
- pointer-events: none;
92
- z-index: 100;
93
- }
94
-
95
- .task-type-0, .section-type-0 {
96
- ${t.fillType0?`fill: ${t.fillType0}`:""};
97
- }
98
- .task-type-1, .section-type-1 {
99
- ${t.fillType0?`fill: ${t.fillType1}`:""};
100
- }
101
- .task-type-2, .section-type-2 {
102
- ${t.fillType0?`fill: ${t.fillType2}`:""};
103
- }
104
- .task-type-3, .section-type-3 {
105
- ${t.fillType0?`fill: ${t.fillType3}`:""};
106
- }
107
- .task-type-4, .section-type-4 {
108
- ${t.fillType0?`fill: ${t.fillType4}`:""};
109
- }
110
- .task-type-5, .section-type-5 {
111
- ${t.fillType0?`fill: ${t.fillType5}`:""};
112
- }
113
- .task-type-6, .section-type-6 {
114
- ${t.fillType0?`fill: ${t.fillType6}`:""};
115
- }
116
- .task-type-7, .section-type-7 {
117
- ${t.fillType0?`fill: ${t.fillType7}`:""};
118
- }
119
-
120
- .actor-0 {
121
- ${t.actor0?`fill: ${t.actor0}`:""};
122
- }
123
- .actor-1 {
124
- ${t.actor1?`fill: ${t.actor1}`:""};
125
- }
126
- .actor-2 {
127
- ${t.actor2?`fill: ${t.actor2}`:""};
128
- }
129
- .actor-3 {
130
- ${t.actor3?`fill: ${t.actor3}`:""};
131
- }
132
- .actor-4 {
133
- ${t.actor4?`fill: ${t.actor4}`:""};
134
- }
135
- .actor-5 {
136
- ${t.actor5?`fill: ${t.actor5}`:""};
137
- }
138
- ${ft.getIconStyles()}
139
- `,"getStyles"),St=Tt,Z=i.__name(function(t,e){return j.drawRect(t,e)},"drawRect"),$t=i.__name(function(t,e){const c=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");r.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function f(_){const g=tt.d3arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}i.__name(f,"smile");function u(_){const g=tt.d3arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);_.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}i.__name(u,"sad");function y(_){_.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i.__name(y,"ambivalent"),e.score>3?f(r):e.score<3?u(r):y(r),c},"drawFace"),st=i.__name(function(t,e){const a=t.append("circle");return a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0&&a.attr("class",a.class),e.title!==void 0&&a.append("title").text(e.title),a},"drawCircle"),lt=i.__name(function(t,e){return j.drawText(t,e)},"drawText"),Mt=i.__name(function(t,e){function a(r,f,u,y,_){return r+","+f+" "+(r+u)+","+f+" "+(r+u)+","+(f+y-_)+" "+(r+u-_*1.2)+","+(f+y)+" "+r+","+(f+y)}i.__name(a,"genPoints");const c=t.append("polygon");c.attr("points",a(e.x,e.y,50,20,7)),c.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,lt(t,e)},"drawLabel"),Ct=i.__name(function(t,e,a){const c=t.append("g"),r=j.getNoteRect();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=a.width*e.taskCount+a.diagramMarginX*(e.taskCount-1),r.height=a.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,Z(c,r),ot(a)(e.text,c,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),it=-1,Et=i.__name(function(t,e,a){const c=e.x+a.width/2,r=t.append("g");it++,r.append("line").attr("id","task"+it).attr("x1",c).attr("y1",e.y).attr("x2",c).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),$t(r,{cx:c,cy:300+(5-e.score)*30,score:e.score});const u=j.getNoteRect();u.x=e.x,u.y=e.y,u.fill=e.fill,u.width=a.width,u.height=a.height,u.class="task task-type-"+e.num,u.rx=3,u.ry=3,Z(r,u);let y=e.x+14;e.people.forEach(_=>{const g=e.actors[_].color,m={cx:y,cy:e.y,r:7,fill:g,stroke:"#000",title:_,pos:e.actors[_].position};st(r,m),y+=10}),ot(a)(e.task,r,u.x,u.y,u.width,u.height,{class:"task"},a,e.colour)},"drawTask"),Pt=i.__name(function(t,e){j.drawBackgroundRect(t,e)},"drawBackgroundRect"),ot=(function(){function t(r,f,u,y,_,g,m,h){const n=f.append("text").attr("x",u+_/2).attr("y",y+g/2+5).style("font-color",h).style("text-anchor","middle").text(r);c(n,m)}i.__name(t,"byText");function e(r,f,u,y,_,g,m,h,n){const{taskFontSize:s,taskFontFamily:l}=h,d=r.split(/<br\s*\/?>/gi);for(let p=0;p<d.length;p++){const o=p*s-s*(d.length-1)/2,b=f.append("text").attr("x",u+_/2).attr("y",y).attr("fill",n).style("text-anchor","middle").style("font-size",s).style("font-family",l);b.append("tspan").attr("x",u+_/2).attr("dy",o).text(d[p]),b.attr("y",y+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),c(b,m)}}i.__name(e,"byTspan");function a(r,f,u,y,_,g,m,h){const n=f.append("switch"),l=n.append("foreignObject").attr("x",u).attr("y",y).attr("width",_).attr("height",g).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),e(r,n,u,y,_,g,m,h),c(l,m)}i.__name(a,"byFo");function c(r,f){for(const u in f)u in f&&r.attr(u,f[u])}return i.__name(c,"_setTextAttrs"),function(r){return r.textPlacement==="fo"?a:r.textPlacement==="old"?t:e}})(),At=i.__name(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),B={drawRect:Z,drawCircle:st,drawSection:Ct,drawText:lt,drawLabel:Mt,drawTask:Et,drawBackgroundRect:Pt,initGraphics:At},It=i.__name(function(t){Object.keys(t).forEach(function(a){$[a]=t[a]})},"setConf"),C={},W=0;function ct(t){const e=i.getConfig2().journey,a=e.maxLabelWidth;W=0;let c=60;Object.keys(C).forEach(r=>{const f=C[r].color,u={cx:20,cy:c,r:7,fill:f,stroke:"#000",pos:C[r].position};B.drawCircle(t,u);let y=t.append("text").attr("visibility","hidden").text(r);const _=y.node().getBoundingClientRect().width;y.remove();let g=[];if(_<=a)g=[r];else{const m=r.split(" ");let h="";y=t.append("text").attr("visibility","hidden"),m.forEach(n=>{const s=h?`${h} ${n}`:n;if(y.text(s),y.node().getBoundingClientRect().width>a){if(h&&g.push(h),h=n,y.text(n),y.node().getBoundingClientRect().width>a){let d="";for(const p of n)d+=p,y.text(d+"-"),y.node().getBoundingClientRect().width>a&&(g.push(d.slice(0,-1)+"-"),d=p);h=d}}else h=s}),h&&g.push(h),y.remove()}g.forEach((m,h)=>{const n={x:40,y:c+7+h*20,fill:"#666",text:m,textMargin:e.boxTextMargin??5},l=B.drawText(t,n).node().getBoundingClientRect().width;l>W&&l>e.leftMargin-l&&(W=l)}),c+=Math.max(20,g.length*20)})}i.__name(ct,"drawActorLegend");var $=i.getConfig2().journey,P=0,Ft=i.__name(function(t,e,a,c){const r=i.getConfig2(),f=r.journey.titleColor,u=r.journey.titleFontSize,y=r.journey.titleFontFamily,_=r.securityLevel;let g;_==="sandbox"&&(g=i.select("#i"+e));const m=_==="sandbox"?i.select(g.nodes()[0].contentDocument.body):i.select("body");S.init();const h=m.select("#"+e);B.initGraphics(h);const n=c.db.getTasks(),s=c.db.getDiagramTitle(),l=c.db.getActors();for(const E in C)delete C[E];let d=0;l.forEach(E=>{C[E]={color:$.actorColours[d%$.actorColours.length],position:d},d++}),ct(h),P=$.leftMargin+W,S.insert(0,0,P,Object.keys(C).length*50),Rt(h,n,0);const p=S.getBounds();s&&h.append("text").text(s).attr("x",P).attr("font-size",u).attr("font-weight","bold").attr("y",25).attr("fill",f).attr("font-family",y);const o=p.stopy-p.starty+2*$.diagramMarginY,b=P+p.stopx+2*$.diagramMarginX;i.configureSvgSize(h,o,b,$.useMaxWidth),h.append("line").attr("x1",P).attr("y1",$.height*4).attr("x2",b-P-4).attr("y2",$.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const x=s?70:0;h.attr("viewBox",`${p.startx} -25 ${b} ${o+x}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",o+x+25)},"draw"),S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:i.__name(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:i.__name(function(t,e,a,c){t[e]===void 0?t[e]=a:t[e]=c(a,t[e])},"updateVal"),updateBounds:i.__name(function(t,e,a,c){const r=i.getConfig2().journey,f=this;let u=0;function y(_){return i.__name(function(m){u++;const h=f.sequenceItems.length-u+1;f.updateVal(m,"starty",e-h*r.boxMargin,Math.min),f.updateVal(m,"stopy",c+h*r.boxMargin,Math.max),f.updateVal(S.data,"startx",t-h*r.boxMargin,Math.min),f.updateVal(S.data,"stopx",a+h*r.boxMargin,Math.max),_!=="activation"&&(f.updateVal(m,"startx",t-h*r.boxMargin,Math.min),f.updateVal(m,"stopx",a+h*r.boxMargin,Math.max),f.updateVal(S.data,"starty",e-h*r.boxMargin,Math.min),f.updateVal(S.data,"stopy",c+h*r.boxMargin,Math.max))},"updateItemBounds")}i.__name(y,"updateFn"),this.sequenceItems.forEach(y())},"updateBounds"),insert:i.__name(function(t,e,a,c){const r=Math.min(t,a),f=Math.max(t,a),u=Math.min(e,c),y=Math.max(e,c);this.updateVal(S.data,"startx",r,Math.min),this.updateVal(S.data,"starty",u,Math.min),this.updateVal(S.data,"stopx",f,Math.max),this.updateVal(S.data,"stopy",y,Math.max),this.updateBounds(r,u,f,y)},"insert"),bumpVerticalPos:i.__name(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:i.__name(function(){return this.verticalPos},"getVerticalPos"),getBounds:i.__name(function(){return this.data},"getBounds")},X=$.sectionFills,rt=$.sectionColours,Rt=i.__name(function(t,e,a){const c=i.getConfig2().journey;let r="";const f=c.height*2+c.diagramMarginY,u=a+f;let y=0,_="#CCC",g="black",m=0;for(const[h,n]of e.entries()){if(r!==n.section){_=X[y%X.length],m=y%X.length,g=rt[y%rt.length];let l=0;const d=n.section;for(let o=h;o<e.length&&e[o].section==d;o++)l=l+1;const p={x:h*c.taskMargin+h*c.width+P,y:50,text:n.section,fill:_,num:m,colour:g,taskCount:l};B.drawSection(t,p,c),r=n.section,y++}const s=n.people.reduce((l,d)=>(C[d]&&(l[d]=C[d]),l),{});n.x=h*c.taskMargin+h*c.width+P,n.y=u,n.width=c.diagramMarginX,n.height=c.diagramMarginY,n.colour=g,n.fill=_,n.num=m,n.actors=s,B.drawTask(t,n,c),S.insert(n.x,n.y,n.x+n.width+c.taskMargin,450)}},"drawTasks"),at={setConf:It,draw:Ft},Vt={parser:pt,db:nt,renderer:at,styles:St,init:i.__name(t=>{at.setConf(t.journey),nt.clear()},"init")};exports.diagram=Vt;
@@ -1,89 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./viewer-Canph5Zx.cjs"),le=require("./chunk-FMBD7UC4-DxkUZTpt.cjs");var J=(function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],w=[1,25],b=[6,7,11],F=[1,31],x=[6,7,11,24],B=[1,6,13,16,17,20,23],y=[1,35],T=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,h,t,G){var c=t.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:C,7:g,10:23,11:w},e(b,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(b,[2,19]),e(b,[2,21],{15:30,24:F}),e(b,[2,22]),e(b,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:y,11:T}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(b,[2,16],{15:37,24:F}),e(b,[2,17]),e(b,[2,18]),e(b,[2,20],{24:M}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:y,11:T}),e(L,[2,11]),e(L,[2,12]),e(b,[2,15],{24:M}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],h=[null],t=[],G=this.table,c="",U=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);_.setInput(s,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var K=_.yylloc;t.push(K);var oe=_.options&&_.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,h.length=h.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||_.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},H,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(H in G[P])this.terminals_[H]&&H>re&&z.push("'"+this.terminals_[H]+"'");_.showPosition?q="Parse error on line "+(U+1)+`:
2
- `+_.showPosition()+`
3
- Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(U+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:_.match,token:this.terminals_[E]||E,line:_.yylineno,loc:K,expected:z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(N[0]){case 1:a.push(E),h.push(_.yytext),t.push(_.yylloc),a.push(N[1]),E=null,ee=_.yyleng,c=_.yytext,U=_.yylineno,K=_.yylloc;break;case 2:if(I=this.productions_[N[1]][1],j.$=h[h.length-I],j._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},oe&&(j._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),Y=this.performAction.apply(j,[c,ee,U,R.yy,N[1],h,t].concat(ae)),typeof Y<"u")return Y;I&&(a=a.slice(0,-1*I*2),h=h.slice(0,-1*I),t=t.slice(0,-1*I)),a.push(this.productions_[N[1]][0]),h.push(j.$),t.push(j._$),ie=G[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},W=(function(){var O={EOF:1,parseError:n.__name(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
- `+i+"^"},"showPosition"),test_match:n.__name(function(s,i){var a,o,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),o=s[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},"test_match"),next:n.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,i,a,o;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;t<h.length;t++)if(a=this._input.match(this.rules[h[t]]),a&&(!i||a[0].length>i[0].length)){if(i=a,o=t,this.options.backtrack_lexer){if(s=this.test_match(a,h[t]),s!==!1)return s;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(s=this.test_match(i,h[o]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n.__name(function(){var i=this.next();return i||this.lex()},"lex"),begin:n.__name(function(i){this.conditionStack.push(i)},"begin"),popState:n.__name(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n.__name(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:n.__name(function(i){this.begin(i)},"pushState"),stateStackSize:n.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n.__name(function(i,a,o,h){switch(o){case 0:return this.pushState("shapeData"),a.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const t=/\n\s*/g;return a.yytext=a.yytext.replace(t,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return i.getLogger().trace("Found comment",a.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return i.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:i.getLogger().trace("end icon"),this.popState();break;case 16:return i.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return i.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return i.getLogger().trace("description:",a.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),i.getLogger().trace("node end ...",a.yytext),"NODE_DEND";case 36:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 41:return i.getLogger().trace("Long description:",a.yytext),21;case 42:return i.getLogger().trace("Long description:",a.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return O})();A.lexer=W;function V(){this.yy={}}return n.__name(V,"Parser"),V.prototype=A,A.Parser=V,new V})();J.parser=J;var he=J,v=[],Z=[],Q=0,$={},ue=n.__name(()=>{v=[],Z=[],Q=0,$={}},"clear"),ge=n.__name(e=>{if(v.length===0)return null;const u=v[0].level;let p=null;for(let r=v.length-1;r>=0;r--)if(v[r].level===u&&!p&&(p=v[r]),v[r].level<u)throw new Error('Items without section detected, found section ("'+v[r].label+'")');return e===p?.level?null:p},"getSection"),se=n.__name(function(){return Z},"getSections"),de=n.__name(function(){const e=[],u=[],p=se(),r=n.getConfig2();for(const d of p){const k={id:d.id,label:n.sanitizeText(d.label??"",r),isGroup:!0,ticket:d.ticket,shape:"kanbanSection",level:d.level,look:r.look};u.push(k);const m=v.filter(l=>l.parentId===d.id);for(const l of m){const D={id:l.id,parentId:d.id,label:n.sanitizeText(l.label??"",r),isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};u.push(D)}}return{nodes:u,edges:e,other:{},config:n.getConfig2()}},"getData"),pe=n.__name((e,u,p,r,d)=>{const k=n.getConfig2();let m=k.mindmap?.padding??n.defaultConfig_default.mindmap.padding;switch(r){case f.ROUNDED_RECT:case f.RECT:case f.HEXAGON:m*=2}const l={id:n.sanitizeText(u,k)||"kbn"+Q++,level:e,label:n.sanitizeText(p,k),width:k.mindmap?.maxNodeWidth??n.defaultConfig_default.mindmap.maxNodeWidth,padding:m,isGroup:!1};if(d!==void 0){let C;d.includes(`
7
- `)?C=d+`
8
- `:C=`{
9
- `+d+`
10
- }`;const g=n.load(C,{schema:n.JSON_SCHEMA});if(g.shape&&(g.shape!==g.shape.toLowerCase()||g.shape.includes("_")))throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);g?.shape&&g.shape==="kanbanItem"&&(l.shape=g?.shape),g?.label&&(l.label=g?.label),g?.icon&&(l.icon=g?.icon.toString()),g?.assigned&&(l.assigned=g?.assigned.toString()),g?.ticket&&(l.ticket=g?.ticket.toString()),g?.priority&&(l.priority=g?.priority)}const D=ge(e);D?l.parentId=D.id||"kbn"+Q++:Z.push(l),v.push(l)},"addNode"),f={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},fe=n.__name((e,u)=>{switch(n.log.debug("In get type",e,u),e){case"[":return f.RECT;case"(":return u===")"?f.ROUNDED_RECT:f.CLOUD;case"((":return f.CIRCLE;case")":return f.CLOUD;case"))":return f.BANG;case"{{":return f.HEXAGON;default:return f.DEFAULT}},"getType"),_e=n.__name((e,u)=>{$[e]=u},"setElementForId"),me=n.__name(e=>{if(!e)return;const u=n.getConfig2(),p=v[v.length-1];e.icon&&(p.icon=n.sanitizeText(e.icon,u)),e.class&&(p.cssClasses=n.sanitizeText(e.class,u))},"decorateNode"),ye=n.__name(e=>{switch(e){case f.DEFAULT:return"no-border";case f.RECT:return"rect";case f.ROUNDED_RECT:return"rounded-rect";case f.CIRCLE:return"circle";case f.CLOUD:return"cloud";case f.BANG:return"bang";case f.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),be=n.__name(()=>n.log,"getLogger"),ke=n.__name(e=>$[e],"getElementById"),Ee={clear:ue,addNode:pe,getSections:se,getData:de,nodeType:f,getType:fe,setElementForId:_e,decorateNode:me,type2Str:ye,getLogger:be,getElementById:ke},Se=Ee,xe=n.__name(async(e,u,p,r)=>{n.log.debug(`Rendering kanban diagram
11
- `+e);const k=r.db.getData(),m=n.getConfig2();m.htmlLabels=!1;const l=n.selectSvgElement(u),D=l.append("g");D.attr("class","sections");const C=l.append("g");C.attr("class","items");const g=k.nodes.filter(y=>y.isGroup);let w=0;const b=10,F=[];let x=25;for(const y of g){const T=m?.kanban?.sectionWidth||200;w=w+1,y.x=T*w+(w-1)*b/2,y.width=T,y.y=0,y.height=T*3,y.rx=5,y.ry=5,y.cssClasses=y.cssClasses+" section-"+w;const L=await n.insertCluster(D,y);x=Math.max(x,L?.labelBBox?.height),F.push(L)}let B=0;for(const y of g){const T=F[B];B=B+1;const L=m?.kanban?.sectionWidth||200,M=-L*3/2+x;let A=M;const W=k.nodes.filter(s=>s.parentId===y.id);for(const s of W){if(s.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");s.x=y.x,s.width=L-1.5*b;const a=(await n.insertNode(C,s,{config:m})).node().getBBox();s.y=A+a.height/2,await n.positionNode(s),A=s.y+a.height/2+b/2}const V=T.cluster.select("rect"),O=Math.max(A-M+3*b,50)+(x-25);V.attr("height",O)}n.setupGraphViewbox(void 0,l,m.mindmap?.padding??n.defaultConfig_default.kanban.padding,m.mindmap?.useMaxWidth??n.defaultConfig_default.kanban.useMaxWidth)},"draw"),Ne={draw:xe},ve=n.__name(e=>{let u="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],n.isDark(e["lineColor"+r])?e["lineColor"+r]=n.lighten(e["lineColor"+r],20):e["lineColor"+r]=n.darken(e["lineColor"+r],20);const p=n.__name((r,d)=>e.darkMode?n.darken(r,d):n.lighten(r,d),"adjuster");for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const d=""+(17-3*r);u+=`
12
- .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path {
13
- fill: ${p(e["cScale"+r],10)};
14
- stroke: ${p(e["cScale"+r],10)};
15
-
16
- }
17
- .section-${r-1} text {
18
- fill: ${e["cScaleLabel"+r]};
19
- }
20
- .node-icon-${r-1} {
21
- font-size: 40px;
22
- color: ${e["cScaleLabel"+r]};
23
- }
24
- .section-edge-${r-1}{
25
- stroke: ${e["cScale"+r]};
26
- }
27
- .edge-depth-${r-1}{
28
- stroke-width: ${d};
29
- }
30
- .section-${r-1} line {
31
- stroke: ${e["cScaleInv"+r]} ;
32
- stroke-width: 3;
33
- }
34
-
35
- .disabled, .disabled circle, .disabled text {
36
- fill: lightgray;
37
- }
38
- .disabled text {
39
- fill: #efefef;
40
- }
41
-
42
- .node rect,
43
- .node circle,
44
- .node ellipse,
45
- .node polygon,
46
- .node path {
47
- fill: ${e.background};
48
- stroke: ${e.nodeBorder};
49
- stroke-width: 1px;
50
- }
51
-
52
- .kanban-ticket-link {
53
- fill: ${e.background};
54
- stroke: ${e.nodeBorder};
55
- text-decoration: underline;
56
- }
57
- `}return u},"genSections"),De=n.__name(e=>`
58
- .edge {
59
- stroke-width: 3;
60
- }
61
- ${ve(e)}
62
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
- fill: ${e.git0};
64
- }
65
- .section-root text {
66
- fill: ${e.gitBranchLabel0};
67
- }
68
- .icon-container {
69
- height:100%;
70
- display: flex;
71
- justify-content: center;
72
- align-items: center;
73
- }
74
- .edge {
75
- fill: none;
76
- }
77
- .cluster-label, .label {
78
- color: ${e.textColor};
79
- fill: ${e.textColor};
80
- }
81
- .kanban-label {
82
- dy: 1em;
83
- alignment-baseline: middle;
84
- text-anchor: middle;
85
- dominant-baseline: middle;
86
- text-align: center;
87
- }
88
- ${le.getIconStyles()}
89
- `,"getStyles"),Le=De,Oe={db:Se,renderer:Ne,parser:he,styles:Le};exports.diagram=Oe;