@blueking/ai-blueking 2.0.0-dev.2 → 2.0.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/vue2/_baseFor-DAbrc8SN.js +309 -0
  2. package/dist/vue2/arc-BqlAOiZb.js +78 -0
  3. package/dist/vue2/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
  4. package/dist/vue2/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
  5. package/dist/vue2/array-TB8zN_HT.js +5 -0
  6. package/dist/vue2/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
  7. package/dist/vue2/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
  8. package/dist/vue2/channel-edTl5mpN.js +3 -0
  9. package/dist/vue2/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
  10. package/dist/vue2/chunk-55IACEB6-CTzuTcHv.js +6 -0
  11. package/dist/vue2/chunk-76Q3JFCE-BrJX66ha.js +19 -0
  12. package/dist/vue2/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
  13. package/dist/vue2/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
  14. package/dist/vue2/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
  15. package/dist/vue2/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
  16. package/dist/vue2/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
  17. package/dist/vue2/chunk-DNh5sLlG.js +18 -0
  18. package/dist/vue2/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
  19. package/dist/vue2/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
  20. package/dist/vue2/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
  21. package/dist/vue2/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
  22. package/dist/vue2/chunk-HN2XXSSU-DueSY85P.js +74 -0
  23. package/dist/vue2/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
  24. package/dist/vue2/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
  25. package/dist/vue2/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
  26. package/dist/vue2/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
  27. package/dist/vue2/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
  28. package/dist/vue2/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
  29. package/dist/vue2/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
  30. package/dist/vue2/chunk-QN33PNHL-DsC-XeM9.js +23 -0
  31. package/dist/vue2/chunk-QXUST7PY-DxFRymyS.js +486 -0
  32. package/dist/vue2/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
  33. package/dist/vue2/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
  34. package/dist/vue2/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
  35. package/dist/vue2/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
  36. package/dist/vue2/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
  37. package/dist/vue2/chunk-XAJISQIX-XsDvU4jW.js +135 -0
  38. package/dist/vue2/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
  39. package/dist/vue2/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
  40. package/dist/vue2/clone-Bbr3WSpg.js +7 -0
  41. package/dist/vue2/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
  42. package/dist/vue2/cytoscape.esm-nrcriBSO.js +18100 -0
  43. package/dist/vue2/dagre-6UL2VRFP-CTl_U96l.js +298 -0
  44. package/dist/vue2/dagre-DUjlMe_B.js +1496 -0
  45. package/dist/vue2/defaultLocale-BLATqOV5.js +177 -0
  46. package/dist/vue2/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
  47. package/dist/vue2/diagram-QEK2KX5R-CAeywSxy.js +226 -0
  48. package/dist/vue2/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
  49. package/dist/vue2/dist-xWJvauxf.js +49 -0
  50. package/dist/vue2/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
  51. package/dist/vue2/flatten-CfPhNHUL.js +34 -0
  52. package/dist/vue2/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
  53. package/dist/vue2/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
  54. package/dist/vue2/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
  55. package/dist/vue2/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
  56. package/dist/vue2/graphlib-KDKEjVHX.js +344 -0
  57. package/dist/vue2/index.es.min.js +26703 -786
  58. package/dist/vue2/index.umd.min.js +2796 -9
  59. package/dist/vue2/info-NVLQJR56-DBsOnIKy.js +7 -0
  60. package/dist/vue2/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
  61. package/dist/vue2/init-hAkIK9Bd.js +13 -0
  62. package/dist/vue2/isEmpty-z27q3o-D.js +32 -0
  63. package/dist/vue2/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
  64. package/dist/vue2/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
  65. package/dist/vue2/katex-CEAw-xiA.js +22097 -0
  66. package/dist/vue2/katex-D8o5-F7C.js +2 -0
  67. package/dist/vue2/line-wvheYP7S.js +30 -0
  68. package/dist/vue2/linear-STTevhnH.js +250 -0
  69. package/dist/vue2/math-DF_v6dOl.js +8 -0
  70. package/dist/vue2/mermaid-parser.core-VAa8Vi1g.js +48 -0
  71. package/dist/vue2/mermaid.core-vqI6KB9k.js +895 -0
  72. package/dist/vue2/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
  73. package/dist/vue2/ordinal-DOM6Fa9P.js +61 -0
  74. package/dist/vue2/packet-BFZMPI3H-CG049KmZ.js +7 -0
  75. package/dist/vue2/path-CW_-_Ti7.js +79 -0
  76. package/dist/vue2/pie-7BOR55EZ-BHq0KcLP.js +7 -0
  77. package/dist/vue2/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
  78. package/dist/vue2/purify.es-Cm_tUMzZ.js +547 -0
  79. package/dist/vue2/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
  80. package/dist/vue2/radar-NHE76QYJ-CUoVtrAx.js +7 -0
  81. package/dist/vue2/reduce-BFKSG9Rs.js +451 -0
  82. package/dist/vue2/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
  83. package/dist/vue2/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
  84. package/dist/vue2/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
  85. package/dist/vue2/src-VlKYSsxJ.js +1975 -0
  86. package/dist/vue2/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
  87. package/dist/vue2/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
  88. package/dist/vue2/style.css +1 -1
  89. package/dist/vue2/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
  90. package/dist/vue2/treemap-KMMF4GRG--FdijCcy.js +7 -0
  91. package/dist/vue2/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
  92. package/dist/vue3/_baseFor-DAbrc8SN.js +309 -0
  93. package/dist/vue3/arc-BqlAOiZb.js +78 -0
  94. package/dist/vue3/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
  95. package/dist/vue3/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
  96. package/dist/vue3/array-TB8zN_HT.js +5 -0
  97. package/dist/vue3/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
  98. package/dist/vue3/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
  99. package/dist/vue3/channel-edTl5mpN.js +3 -0
  100. package/dist/vue3/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
  101. package/dist/vue3/chunk-55IACEB6-CTzuTcHv.js +6 -0
  102. package/dist/vue3/chunk-76Q3JFCE-BrJX66ha.js +19 -0
  103. package/dist/vue3/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
  104. package/dist/vue3/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
  105. package/dist/vue3/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
  106. package/dist/vue3/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
  107. package/dist/vue3/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
  108. package/dist/vue3/chunk-DNh5sLlG.js +18 -0
  109. package/dist/vue3/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
  110. package/dist/vue3/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
  111. package/dist/vue3/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
  112. package/dist/vue3/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
  113. package/dist/vue3/chunk-HN2XXSSU-DueSY85P.js +74 -0
  114. package/dist/vue3/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
  115. package/dist/vue3/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
  116. package/dist/vue3/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
  117. package/dist/vue3/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
  118. package/dist/vue3/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
  119. package/dist/vue3/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
  120. package/dist/vue3/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
  121. package/dist/vue3/chunk-QN33PNHL-DsC-XeM9.js +23 -0
  122. package/dist/vue3/chunk-QXUST7PY-DxFRymyS.js +486 -0
  123. package/dist/vue3/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
  124. package/dist/vue3/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
  125. package/dist/vue3/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
  126. package/dist/vue3/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
  127. package/dist/vue3/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
  128. package/dist/vue3/chunk-XAJISQIX-XsDvU4jW.js +135 -0
  129. package/dist/vue3/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
  130. package/dist/vue3/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
  131. package/dist/vue3/clone-Bbr3WSpg.js +7 -0
  132. package/dist/vue3/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
  133. package/dist/vue3/cytoscape.esm-nrcriBSO.js +18100 -0
  134. package/dist/vue3/dagre-6UL2VRFP-CTl_U96l.js +298 -0
  135. package/dist/vue3/dagre-DUjlMe_B.js +1496 -0
  136. package/dist/vue3/defaultLocale-BLATqOV5.js +177 -0
  137. package/dist/vue3/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
  138. package/dist/vue3/diagram-QEK2KX5R-CAeywSxy.js +226 -0
  139. package/dist/vue3/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
  140. package/dist/vue3/dist-xWJvauxf.js +49 -0
  141. package/dist/vue3/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
  142. package/dist/vue3/flatten-CfPhNHUL.js +34 -0
  143. package/dist/vue3/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
  144. package/dist/vue3/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
  145. package/dist/vue3/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
  146. package/dist/vue3/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
  147. package/dist/vue3/graphlib-KDKEjVHX.js +344 -0
  148. package/dist/vue3/index.es.min.js +26730 -813
  149. package/dist/vue3/index.umd.min.js +2796 -9
  150. package/dist/vue3/info-NVLQJR56-DBsOnIKy.js +7 -0
  151. package/dist/vue3/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
  152. package/dist/vue3/init-hAkIK9Bd.js +13 -0
  153. package/dist/vue3/isEmpty-z27q3o-D.js +32 -0
  154. package/dist/vue3/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
  155. package/dist/vue3/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
  156. package/dist/vue3/katex-CEAw-xiA.js +22097 -0
  157. package/dist/vue3/katex-D8o5-F7C.js +2 -0
  158. package/dist/vue3/line-wvheYP7S.js +30 -0
  159. package/dist/vue3/linear-STTevhnH.js +250 -0
  160. package/dist/vue3/math-DF_v6dOl.js +8 -0
  161. package/dist/vue3/mermaid-parser.core-VAa8Vi1g.js +48 -0
  162. package/dist/vue3/mermaid.core-vqI6KB9k.js +895 -0
  163. package/dist/vue3/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
  164. package/dist/vue3/ordinal-DOM6Fa9P.js +61 -0
  165. package/dist/vue3/packet-BFZMPI3H-CG049KmZ.js +7 -0
  166. package/dist/vue3/path-CW_-_Ti7.js +79 -0
  167. package/dist/vue3/pie-7BOR55EZ-BHq0KcLP.js +7 -0
  168. package/dist/vue3/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
  169. package/dist/vue3/purify.es-Cm_tUMzZ.js +547 -0
  170. package/dist/vue3/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
  171. package/dist/vue3/radar-NHE76QYJ-CUoVtrAx.js +7 -0
  172. package/dist/vue3/reduce-BFKSG9Rs.js +451 -0
  173. package/dist/vue3/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
  174. package/dist/vue3/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
  175. package/dist/vue3/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
  176. package/dist/vue3/src-VlKYSsxJ.js +1975 -0
  177. package/dist/vue3/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
  178. package/dist/vue3/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
  179. package/dist/vue3/style.css +1 -1
  180. package/dist/vue3/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
  181. package/dist/vue3/treemap-KMMF4GRG--FdijCcy.js +7 -0
  182. package/dist/vue3/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
  183. package/package.json +1 -1
@@ -0,0 +1,971 @@
1
+ import "./purify.es-Cm_tUMzZ.js";
2
+ import "./_baseFor-DAbrc8SN.js";
3
+ import { g as log, h as __name } from "./src-VlKYSsxJ.js";
4
+ import { G as setupGraphViewbox, I as sanitizeText, Q as is_dark_default, X as darken_default, Z as lighten_default, b as getConfig2, d as defaultConfig_default } from "./chunk-ABZYJK2D-gsx40GnJ.js";
5
+ import "./math-DF_v6dOl.js";
6
+ import "./chunk-S3R3BYOJ-Bs_r55Kk.js";
7
+ import { t as selectSvgElement } from "./chunk-EXTU4WIE-BPc8ye_N.js";
8
+ import "./dist-xWJvauxf.js";
9
+ import "./chunk-JA3XYJ7Z-CRet4f6a.js";
10
+ import { t as getIconStyles } from "./chunk-FMBD7UC4-PFlLPz_s.js";
11
+ import "./chunk-CVBHYZKI-Cs8lCw3u.js";
12
+ import "./chunk-ATLVNIR6-CTTwtx-5.js";
13
+ import { a as insertNode, c as positionNode, i as insertCluster } from "./chunk-JZLCHNYA-Df0-MseJ.js";
14
+ import { n as load, t as JSON_SCHEMA } from "./chunk-MI3HLSF2-6-T1J0MS.js";
15
+ var parser = (function() {
16
+ var e = /* @__PURE__ */ __name(function(e, t, n, r) {
17
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
18
+ return n;
19
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
20
+ 6,
21
+ 7,
22
+ 8
23
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
24
+ 6,
25
+ 7,
26
+ 11
27
+ ], m = [1, 31], h = [
28
+ 6,
29
+ 7,
30
+ 11,
31
+ 24
32
+ ], g = [
33
+ 1,
34
+ 6,
35
+ 13,
36
+ 16,
37
+ 17,
38
+ 20,
39
+ 23
40
+ ], _ = [1, 35], v = [1, 36], y = [
41
+ 1,
42
+ 6,
43
+ 7,
44
+ 11,
45
+ 13,
46
+ 16,
47
+ 17,
48
+ 20,
49
+ 23
50
+ ], b = [1, 38], x = {
51
+ trace: /* @__PURE__ */ __name(function() {}, "trace"),
52
+ yy: {},
53
+ symbols_: {
54
+ error: 2,
55
+ start: 3,
56
+ mindMap: 4,
57
+ spaceLines: 5,
58
+ SPACELINE: 6,
59
+ NL: 7,
60
+ KANBAN: 8,
61
+ document: 9,
62
+ stop: 10,
63
+ EOF: 11,
64
+ statement: 12,
65
+ SPACELIST: 13,
66
+ node: 14,
67
+ shapeData: 15,
68
+ ICON: 16,
69
+ CLASS: 17,
70
+ nodeWithId: 18,
71
+ nodeWithoutId: 19,
72
+ NODE_DSTART: 20,
73
+ NODE_DESCR: 21,
74
+ NODE_DEND: 22,
75
+ NODE_ID: 23,
76
+ SHAPE_DATA: 24,
77
+ $accept: 0,
78
+ $end: 1
79
+ },
80
+ terminals_: {
81
+ 2: "error",
82
+ 6: "SPACELINE",
83
+ 7: "NL",
84
+ 8: "KANBAN",
85
+ 11: "EOF",
86
+ 13: "SPACELIST",
87
+ 16: "ICON",
88
+ 17: "CLASS",
89
+ 20: "NODE_DSTART",
90
+ 21: "NODE_DESCR",
91
+ 22: "NODE_DEND",
92
+ 23: "NODE_ID",
93
+ 24: "SHAPE_DATA"
94
+ },
95
+ productions_: [
96
+ 0,
97
+ [3, 1],
98
+ [3, 2],
99
+ [5, 1],
100
+ [5, 2],
101
+ [5, 2],
102
+ [4, 2],
103
+ [4, 3],
104
+ [10, 1],
105
+ [10, 1],
106
+ [10, 1],
107
+ [10, 2],
108
+ [10, 2],
109
+ [9, 3],
110
+ [9, 2],
111
+ [12, 3],
112
+ [12, 2],
113
+ [12, 2],
114
+ [12, 2],
115
+ [12, 1],
116
+ [12, 2],
117
+ [12, 1],
118
+ [12, 1],
119
+ [12, 1],
120
+ [12, 1],
121
+ [14, 1],
122
+ [14, 1],
123
+ [19, 3],
124
+ [18, 1],
125
+ [18, 4],
126
+ [15, 2],
127
+ [15, 1]
128
+ ],
129
+ performAction: /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
130
+ var s = a.length - 1;
131
+ switch (i) {
132
+ case 6:
133
+ case 7: return r;
134
+ case 8:
135
+ r.getLogger().trace("Stop NL ");
136
+ break;
137
+ case 9:
138
+ r.getLogger().trace("Stop EOF ");
139
+ break;
140
+ case 11:
141
+ r.getLogger().trace("Stop NL2 ");
142
+ break;
143
+ case 12:
144
+ r.getLogger().trace("Stop EOF2 ");
145
+ break;
146
+ case 15:
147
+ r.getLogger().info("Node: ", a[s - 1].id), r.addNode(a[s - 2].length, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
148
+ break;
149
+ case 16:
150
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
151
+ break;
152
+ case 17:
153
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
154
+ break;
155
+ case 18:
156
+ case 23:
157
+ r.decorateNode({ class: a[s] });
158
+ break;
159
+ case 19:
160
+ r.getLogger().trace("SPACELIST");
161
+ break;
162
+ case 20:
163
+ r.getLogger().trace("Node: ", a[s - 1].id), r.addNode(0, a[s - 1].id, a[s - 1].descr, a[s - 1].type, a[s]);
164
+ break;
165
+ case 21:
166
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
167
+ break;
168
+ case 22:
169
+ r.decorateNode({ icon: a[s] });
170
+ break;
171
+ case 27:
172
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
173
+ id: a[s - 1],
174
+ descr: a[s - 1],
175
+ type: r.getType(a[s - 2], a[s])
176
+ };
177
+ break;
178
+ case 28:
179
+ this.$ = {
180
+ id: a[s],
181
+ descr: a[s],
182
+ type: 0
183
+ };
184
+ break;
185
+ case 29:
186
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
187
+ id: a[s - 3],
188
+ descr: a[s - 1],
189
+ type: r.getType(a[s - 2], a[s])
190
+ };
191
+ break;
192
+ case 30:
193
+ this.$ = a[s - 1] + a[s];
194
+ break;
195
+ case 31:
196
+ this.$ = a[s];
197
+ break;
198
+ }
199
+ }, "anonymous"),
200
+ table: [
201
+ {
202
+ 3: 1,
203
+ 4: 2,
204
+ 5: 3,
205
+ 6: [1, 5],
206
+ 8: n
207
+ },
208
+ { 1: [3] },
209
+ { 1: [2, 1] },
210
+ {
211
+ 4: 6,
212
+ 6: [1, 7],
213
+ 7: [1, 8],
214
+ 8: n
215
+ },
216
+ {
217
+ 6: r,
218
+ 7: [1, 10],
219
+ 9: 9,
220
+ 12: 11,
221
+ 13: i,
222
+ 14: 14,
223
+ 16: a,
224
+ 17: o,
225
+ 18: 17,
226
+ 19: 18,
227
+ 20: s,
228
+ 23: c
229
+ },
230
+ e(l, [2, 3]),
231
+ { 1: [2, 2] },
232
+ e(l, [2, 4]),
233
+ e(l, [2, 5]),
234
+ {
235
+ 1: [2, 6],
236
+ 6: r,
237
+ 12: 21,
238
+ 13: i,
239
+ 14: 14,
240
+ 16: a,
241
+ 17: o,
242
+ 18: 17,
243
+ 19: 18,
244
+ 20: s,
245
+ 23: c
246
+ },
247
+ {
248
+ 6: r,
249
+ 9: 22,
250
+ 12: 11,
251
+ 13: i,
252
+ 14: 14,
253
+ 16: a,
254
+ 17: o,
255
+ 18: 17,
256
+ 19: 18,
257
+ 20: s,
258
+ 23: c
259
+ },
260
+ {
261
+ 6: u,
262
+ 7: d,
263
+ 10: 23,
264
+ 11: f
265
+ },
266
+ e(p, [2, 24], {
267
+ 18: 17,
268
+ 19: 18,
269
+ 14: 27,
270
+ 16: [1, 28],
271
+ 17: [1, 29],
272
+ 20: s,
273
+ 23: c
274
+ }),
275
+ e(p, [2, 19]),
276
+ e(p, [2, 21], {
277
+ 15: 30,
278
+ 24: m
279
+ }),
280
+ e(p, [2, 22]),
281
+ e(p, [2, 23]),
282
+ e(h, [2, 25]),
283
+ e(h, [2, 26]),
284
+ e(h, [2, 28], { 20: [1, 32] }),
285
+ { 21: [1, 33] },
286
+ {
287
+ 6: u,
288
+ 7: d,
289
+ 10: 34,
290
+ 11: f
291
+ },
292
+ {
293
+ 1: [2, 7],
294
+ 6: r,
295
+ 12: 21,
296
+ 13: i,
297
+ 14: 14,
298
+ 16: a,
299
+ 17: o,
300
+ 18: 17,
301
+ 19: 18,
302
+ 20: s,
303
+ 23: c
304
+ },
305
+ e(g, [2, 14], {
306
+ 7: _,
307
+ 11: v
308
+ }),
309
+ e(y, [2, 8]),
310
+ e(y, [2, 9]),
311
+ e(y, [2, 10]),
312
+ e(p, [2, 16], {
313
+ 15: 37,
314
+ 24: m
315
+ }),
316
+ e(p, [2, 17]),
317
+ e(p, [2, 18]),
318
+ e(p, [2, 20], { 24: b }),
319
+ e(h, [2, 31]),
320
+ { 21: [1, 39] },
321
+ { 22: [1, 40] },
322
+ e(g, [2, 13], {
323
+ 7: _,
324
+ 11: v
325
+ }),
326
+ e(y, [2, 11]),
327
+ e(y, [2, 12]),
328
+ e(p, [2, 15], { 24: b }),
329
+ e(h, [2, 30]),
330
+ { 22: [1, 41] },
331
+ e(h, [2, 27]),
332
+ e(h, [2, 29])
333
+ ],
334
+ defaultActions: {
335
+ 2: [2, 1],
336
+ 6: [2, 2]
337
+ },
338
+ parseError: /* @__PURE__ */ __name(function(e, t) {
339
+ if (t.recoverable) this.trace(e);
340
+ else {
341
+ var n = Error(e);
342
+ throw n.hash = t, n;
343
+ }
344
+ }, "parseError"),
345
+ parse: /* @__PURE__ */ __name(function(e) {
346
+ 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: {} };
347
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
348
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
349
+ var v = h.yylloc;
350
+ o.push(v);
351
+ var y = h.options && h.options.ranges;
352
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
353
+ function b(e) {
354
+ r.length -= 2 * e, a.length -= e, o.length -= e;
355
+ }
356
+ __name(b, "popStack");
357
+ function x() {
358
+ var e = i.pop() || h.lex() || p;
359
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
360
+ }
361
+ __name(x, "lex");
362
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
363
+ 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]) {
364
+ var M = "";
365
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
366
+ 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, {
367
+ text: h.match,
368
+ token: this.terminals_[S] || S,
369
+ line: h.yylineno,
370
+ loc: v,
371
+ expected: j
372
+ });
373
+ }
374
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
375
+ switch (T[0]) {
376
+ case 1:
377
+ 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--);
378
+ break;
379
+ case 2:
380
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
381
+ first_line: o[o.length - (k || 1)].first_line,
382
+ last_line: o[o.length - 1].last_line,
383
+ first_column: o[o.length - (k || 1)].first_column,
384
+ last_column: o[o.length - 1].last_column
385
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
386
+ c,
387
+ u,
388
+ l,
389
+ g.yy,
390
+ T[1],
391
+ a,
392
+ o
393
+ ].concat(m)), E !== void 0) return E;
394
+ 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);
395
+ break;
396
+ case 3: return !0;
397
+ }
398
+ }
399
+ return !0;
400
+ }, "parse")
401
+ };
402
+ x.lexer = /* @__PURE__ */ (function() {
403
+ return {
404
+ EOF: 1,
405
+ parseError: /* @__PURE__ */ __name(function(e, t) {
406
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
407
+ else throw Error(e);
408
+ }, "parseError"),
409
+ setInput: /* @__PURE__ */ __name(function(e, t) {
410
+ 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 = {
411
+ first_line: 1,
412
+ first_column: 0,
413
+ last_line: 1,
414
+ last_column: 0
415
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
416
+ }, "setInput"),
417
+ input: /* @__PURE__ */ __name(function() {
418
+ var e = this._input[0];
419
+ 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;
420
+ }, "input"),
421
+ unput: /* @__PURE__ */ __name(function(e) {
422
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
423
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
424
+ var r = this.match.split(/(?:\r\n?|\n)/g);
425
+ 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);
426
+ var i = this.yylloc.range;
427
+ return this.yylloc = {
428
+ first_line: this.yylloc.first_line,
429
+ last_line: this.yylineno + 1,
430
+ first_column: this.yylloc.first_column,
431
+ 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
432
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
433
+ }, "unput"),
434
+ more: /* @__PURE__ */ __name(function() {
435
+ return this._more = !0, this;
436
+ }, "more"),
437
+ reject: /* @__PURE__ */ __name(function() {
438
+ if (this.options.backtrack_lexer) this._backtrack = !0;
439
+ 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(), {
440
+ text: "",
441
+ token: null,
442
+ line: this.yylineno
443
+ });
444
+ return this;
445
+ }, "reject"),
446
+ less: /* @__PURE__ */ __name(function(e) {
447
+ this.unput(this.match.slice(e));
448
+ }, "less"),
449
+ pastInput: /* @__PURE__ */ __name(function() {
450
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
451
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
452
+ }, "pastInput"),
453
+ upcomingInput: /* @__PURE__ */ __name(function() {
454
+ var e = this.match;
455
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
456
+ }, "upcomingInput"),
457
+ showPosition: /* @__PURE__ */ __name(function() {
458
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
459
+ return e + this.upcomingInput() + "\n" + t + "^";
460
+ }, "showPosition"),
461
+ test_match: /* @__PURE__ */ __name(function(e, t) {
462
+ var n, r, i;
463
+ if (this.options.backtrack_lexer && (i = {
464
+ yylineno: this.yylineno,
465
+ yylloc: {
466
+ first_line: this.yylloc.first_line,
467
+ last_line: this.last_line,
468
+ first_column: this.yylloc.first_column,
469
+ last_column: this.yylloc.last_column
470
+ },
471
+ yytext: this.yytext,
472
+ match: this.match,
473
+ matches: this.matches,
474
+ matched: this.matched,
475
+ yyleng: this.yyleng,
476
+ offset: this.offset,
477
+ _more: this._more,
478
+ _input: this._input,
479
+ yy: this.yy,
480
+ conditionStack: this.conditionStack.slice(0),
481
+ done: this.done
482
+ }, 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 = {
483
+ first_line: this.yylloc.last_line,
484
+ last_line: this.yylineno + 1,
485
+ first_column: this.yylloc.last_column,
486
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
487
+ }, 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;
488
+ if (this._backtrack) {
489
+ for (var a in i) this[a] = i[a];
490
+ return !1;
491
+ }
492
+ return !1;
493
+ }, "test_match"),
494
+ next: /* @__PURE__ */ __name(function() {
495
+ if (this.done) return this.EOF;
496
+ this._input || (this.done = !0);
497
+ var e, t, n, r;
498
+ this._more || (this.yytext = "", this.match = "");
499
+ 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)) {
500
+ if (t = n, r = a, this.options.backtrack_lexer) {
501
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
502
+ if (this._backtrack) {
503
+ t = !1;
504
+ continue;
505
+ } else return !1;
506
+ } else if (!this.options.flex) break;
507
+ }
508
+ 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(), {
509
+ text: "",
510
+ token: null,
511
+ line: this.yylineno
512
+ });
513
+ }, "next"),
514
+ lex: /* @__PURE__ */ __name(function() {
515
+ return this.next() || this.lex();
516
+ }, "lex"),
517
+ begin: /* @__PURE__ */ __name(function(e) {
518
+ this.conditionStack.push(e);
519
+ }, "begin"),
520
+ popState: /* @__PURE__ */ __name(function() {
521
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
522
+ }, "popState"),
523
+ _currentRules: /* @__PURE__ */ __name(function() {
524
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
525
+ }, "_currentRules"),
526
+ topState: /* @__PURE__ */ __name(function(e) {
527
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
528
+ }, "topState"),
529
+ pushState: /* @__PURE__ */ __name(function(e) {
530
+ this.begin(e);
531
+ }, "pushState"),
532
+ stateStackSize: /* @__PURE__ */ __name(function() {
533
+ return this.conditionStack.length;
534
+ }, "stateStackSize"),
535
+ options: { "case-insensitive": !0 },
536
+ performAction: /* @__PURE__ */ __name(function(e, t, n, r) {
537
+ switch (n) {
538
+ case 0: return this.pushState("shapeData"), t.yytext = "", 24;
539
+ case 1: return this.pushState("shapeDataStr"), 24;
540
+ case 2: return this.popState(), 24;
541
+ case 3: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 24;
542
+ case 4: return 24;
543
+ case 5:
544
+ this.popState();
545
+ break;
546
+ case 6: return e.getLogger().trace("Found comment", t.yytext), 6;
547
+ case 7: return 8;
548
+ case 8:
549
+ this.begin("CLASS");
550
+ break;
551
+ case 9: return this.popState(), 17;
552
+ case 10:
553
+ this.popState();
554
+ break;
555
+ case 11:
556
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
557
+ break;
558
+ case 12: return e.getLogger().trace("SPACELINE"), 6;
559
+ case 13: return 7;
560
+ case 14: return 16;
561
+ case 15:
562
+ e.getLogger().trace("end icon"), this.popState();
563
+ break;
564
+ case 16: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
565
+ case 17: return e.getLogger().trace("Cloud"), this.begin("NODE"), 20;
566
+ case 18: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
567
+ case 19: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
568
+ case 20: return this.begin("NODE"), 20;
569
+ case 21: return this.begin("NODE"), 20;
570
+ case 22: return this.begin("NODE"), 20;
571
+ case 23: return this.begin("NODE"), 20;
572
+ case 24: return 13;
573
+ case 25: return 23;
574
+ case 26: return 11;
575
+ case 27:
576
+ this.begin("NSTR2");
577
+ break;
578
+ case 28: return "NODE_DESCR";
579
+ case 29:
580
+ this.popState();
581
+ break;
582
+ case 30:
583
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
584
+ break;
585
+ case 31: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
586
+ case 32:
587
+ this.popState();
588
+ break;
589
+ case 33: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
590
+ case 34: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
591
+ case 35: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
592
+ case 36: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
593
+ case 37: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
594
+ case 38: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
595
+ case 39: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
596
+ case 40: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
597
+ case 41: return e.getLogger().trace("Long description:", t.yytext), 21;
598
+ case 42: return e.getLogger().trace("Long description:", t.yytext), 21;
599
+ }
600
+ }, "anonymous"),
601
+ rules: [
602
+ /^(?:@\{)/i,
603
+ /^(?:["])/i,
604
+ /^(?:["])/i,
605
+ /^(?:[^\"]+)/i,
606
+ /^(?:[^}^"]+)/i,
607
+ /^(?:\})/i,
608
+ /^(?:\s*%%.*)/i,
609
+ /^(?:kanban\b)/i,
610
+ /^(?::::)/i,
611
+ /^(?:.+)/i,
612
+ /^(?:\n)/i,
613
+ /^(?:::icon\()/i,
614
+ /^(?:[\s]+[\n])/i,
615
+ /^(?:[\n]+)/i,
616
+ /^(?:[^\)]+)/i,
617
+ /^(?:\))/i,
618
+ /^(?:-\))/i,
619
+ /^(?:\(-)/i,
620
+ /^(?:\)\))/i,
621
+ /^(?:\))/i,
622
+ /^(?:\(\()/i,
623
+ /^(?:\{\{)/i,
624
+ /^(?:\()/i,
625
+ /^(?:\[)/i,
626
+ /^(?:[\s]+)/i,
627
+ /^(?:[^\(\[\n\)\{\}@]+)/i,
628
+ /^(?:$)/i,
629
+ /^(?:["][`])/i,
630
+ /^(?:[^`"]+)/i,
631
+ /^(?:[`]["])/i,
632
+ /^(?:["])/i,
633
+ /^(?:[^"]+)/i,
634
+ /^(?:["])/i,
635
+ /^(?:[\)]\))/i,
636
+ /^(?:[\)])/i,
637
+ /^(?:[\]])/i,
638
+ /^(?:\}\})/i,
639
+ /^(?:\(-)/i,
640
+ /^(?:-\))/i,
641
+ /^(?:\(\()/i,
642
+ /^(?:\()/i,
643
+ /^(?:[^\)\]\(\}]+)/i,
644
+ /^(?:.+(?!\(\())/i
645
+ ],
646
+ conditions: {
647
+ shapeDataEndBracket: {
648
+ rules: [],
649
+ inclusive: !1
650
+ },
651
+ shapeDataStr: {
652
+ rules: [2, 3],
653
+ inclusive: !1
654
+ },
655
+ shapeData: {
656
+ rules: [
657
+ 1,
658
+ 4,
659
+ 5
660
+ ],
661
+ inclusive: !1
662
+ },
663
+ CLASS: {
664
+ rules: [9, 10],
665
+ inclusive: !1
666
+ },
667
+ ICON: {
668
+ rules: [14, 15],
669
+ inclusive: !1
670
+ },
671
+ NSTR2: {
672
+ rules: [28, 29],
673
+ inclusive: !1
674
+ },
675
+ NSTR: {
676
+ rules: [31, 32],
677
+ inclusive: !1
678
+ },
679
+ NODE: {
680
+ rules: [
681
+ 27,
682
+ 30,
683
+ 33,
684
+ 34,
685
+ 35,
686
+ 36,
687
+ 37,
688
+ 38,
689
+ 39,
690
+ 40,
691
+ 41,
692
+ 42
693
+ ],
694
+ inclusive: !1
695
+ },
696
+ INITIAL: {
697
+ rules: [
698
+ 0,
699
+ 6,
700
+ 7,
701
+ 8,
702
+ 11,
703
+ 12,
704
+ 13,
705
+ 16,
706
+ 17,
707
+ 18,
708
+ 19,
709
+ 20,
710
+ 21,
711
+ 22,
712
+ 23,
713
+ 24,
714
+ 25,
715
+ 26
716
+ ],
717
+ inclusive: !0
718
+ }
719
+ }
720
+ };
721
+ })();
722
+ function S() {
723
+ this.yy = {};
724
+ }
725
+ return __name(S, "Parser"), S.prototype = x, x.Parser = S, new S();
726
+ })();
727
+ parser.parser = parser;
728
+ var kanban_default = parser, nodes = [], sections = [], cnt = 0, elements = {}, clear = /* @__PURE__ */ __name(() => {
729
+ nodes = [], sections = [], cnt = 0, elements = {};
730
+ }, "clear"), getSection = /* @__PURE__ */ __name((e) => {
731
+ if (nodes.length === 0) return null;
732
+ let t = nodes[0].level, n = null;
733
+ for (let e = nodes.length - 1; e >= 0; e--) if (nodes[e].level === t && !n && (n = nodes[e]), nodes[e].level < t) throw Error("Items without section detected, found section (\"" + nodes[e].label + "\")");
734
+ return e === n?.level ? null : n;
735
+ }, "getSection"), getSections = /* @__PURE__ */ __name(function() {
736
+ return sections;
737
+ }, "getSections"), getData = /* @__PURE__ */ __name(function() {
738
+ let e = [], t = [], n = getSections(), i = getConfig2();
739
+ for (let e of n) {
740
+ let n = {
741
+ id: e.id,
742
+ label: sanitizeText(e.label ?? "", i),
743
+ isGroup: !0,
744
+ ticket: e.ticket,
745
+ shape: "kanbanSection",
746
+ level: e.level,
747
+ look: i.look
748
+ };
749
+ t.push(n);
750
+ let a = nodes.filter((t) => t.parentId === e.id);
751
+ for (let n of a) {
752
+ let a = {
753
+ id: n.id,
754
+ parentId: e.id,
755
+ label: sanitizeText(n.label ?? "", i),
756
+ isGroup: !1,
757
+ ticket: n?.ticket,
758
+ priority: n?.priority,
759
+ assigned: n?.assigned,
760
+ icon: n?.icon,
761
+ shape: "kanbanItem",
762
+ level: n.level,
763
+ rx: 5,
764
+ ry: 5,
765
+ cssStyles: ["text-align: left"]
766
+ };
767
+ t.push(a);
768
+ }
769
+ }
770
+ return {
771
+ nodes: t,
772
+ edges: e,
773
+ other: {},
774
+ config: getConfig2()
775
+ };
776
+ }, "getData"), addNode = /* @__PURE__ */ __name((e, t, n, i, a) => {
777
+ let o = getConfig2(), l = o.mindmap?.padding ?? defaultConfig_default.mindmap.padding;
778
+ switch (i) {
779
+ case nodeType.ROUNDED_RECT:
780
+ case nodeType.RECT:
781
+ case nodeType.HEXAGON: l *= 2;
782
+ }
783
+ let u = {
784
+ id: sanitizeText(t, o) || "kbn" + cnt++,
785
+ level: e,
786
+ label: sanitizeText(n, o),
787
+ width: o.mindmap?.maxNodeWidth ?? defaultConfig_default.mindmap.maxNodeWidth,
788
+ padding: l,
789
+ isGroup: !1
790
+ };
791
+ if (a !== void 0) {
792
+ let e;
793
+ e = a.includes("\n") ? a + "\n" : "{\n" + a + "\n}";
794
+ let t = load(e, { schema: JSON_SCHEMA });
795
+ if (t.shape && (t.shape !== t.shape.toLowerCase() || t.shape.includes("_"))) throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);
796
+ 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);
797
+ }
798
+ let d = getSection(e);
799
+ d ? u.parentId = d.id || "kbn" + cnt++ : sections.push(u), nodes.push(u);
800
+ }, "addNode"), nodeType = {
801
+ DEFAULT: 0,
802
+ NO_BORDER: 0,
803
+ ROUNDED_RECT: 1,
804
+ RECT: 2,
805
+ CIRCLE: 3,
806
+ CLOUD: 4,
807
+ BANG: 5,
808
+ HEXAGON: 6
809
+ }, kanbanDb_default = {
810
+ clear,
811
+ addNode,
812
+ getSections,
813
+ getData,
814
+ nodeType,
815
+ getType: /* @__PURE__ */ __name((t, n) => {
816
+ switch (log.debug("In get type", t, n), t) {
817
+ case "[": return nodeType.RECT;
818
+ case "(": return n === ")" ? nodeType.ROUNDED_RECT : nodeType.CLOUD;
819
+ case "((": return nodeType.CIRCLE;
820
+ case ")": return nodeType.CLOUD;
821
+ case "))": return nodeType.BANG;
822
+ case "{{": return nodeType.HEXAGON;
823
+ default: return nodeType.DEFAULT;
824
+ }
825
+ }, "getType"),
826
+ setElementForId: /* @__PURE__ */ __name((e, t) => {
827
+ elements[e] = t;
828
+ }, "setElementForId"),
829
+ decorateNode: /* @__PURE__ */ __name((e) => {
830
+ if (!e) return;
831
+ let t = getConfig2(), n = nodes[nodes.length - 1];
832
+ e.icon && (n.icon = sanitizeText(e.icon, t)), e.class && (n.cssClasses = sanitizeText(e.class, t));
833
+ }, "decorateNode"),
834
+ type2Str: /* @__PURE__ */ __name((e) => {
835
+ switch (e) {
836
+ case nodeType.DEFAULT: return "no-border";
837
+ case nodeType.RECT: return "rect";
838
+ case nodeType.ROUNDED_RECT: return "rounded-rect";
839
+ case nodeType.CIRCLE: return "circle";
840
+ case nodeType.CLOUD: return "cloud";
841
+ case nodeType.BANG: return "bang";
842
+ case nodeType.HEXAGON: return "hexgon";
843
+ default: return "no-border";
844
+ }
845
+ }, "type2Str"),
846
+ getLogger: /* @__PURE__ */ __name(() => log, "getLogger"),
847
+ getElementById: /* @__PURE__ */ __name((e) => elements[e], "getElementById")
848
+ }, kanbanRenderer_default = { draw: /* @__PURE__ */ __name(async (t, r, i, a) => {
849
+ log.debug("Rendering kanban diagram\n" + t);
850
+ let o = a.db.getData(), u = getConfig2();
851
+ u.htmlLabels = !1;
852
+ let m = selectSvgElement(r), h = m.append("g");
853
+ h.attr("class", "sections");
854
+ let g = m.append("g");
855
+ g.attr("class", "items");
856
+ let _ = o.nodes.filter((e) => e.isGroup), v = 0, y = [], b = 25;
857
+ for (let e of _) {
858
+ let t = u?.kanban?.sectionWidth || 200;
859
+ 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;
860
+ let n = await insertCluster(h, e);
861
+ b = Math.max(b, n?.labelBBox?.height), y.push(n);
862
+ }
863
+ let x = 0;
864
+ for (let e of _) {
865
+ let t = y[x];
866
+ x += 1;
867
+ let n = u?.kanban?.sectionWidth || 200, r = -n * 3 / 2 + b, i = r, a = o.nodes.filter((t) => t.parentId === e.id);
868
+ for (let t of a) {
869
+ if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
870
+ t.x = e.x, t.width = n - 1.5 * 10;
871
+ let r = (await insertNode(g, t, { config: u })).node().getBBox();
872
+ t.y = i + r.height / 2, await positionNode(t), i = t.y + r.height / 2 + 10 / 2;
873
+ }
874
+ let s = t.cluster.select("rect"), c = Math.max(i - r + 30, 50) + (b - 25);
875
+ s.attr("height", c);
876
+ }
877
+ setupGraphViewbox(void 0, m, u.mindmap?.padding ?? defaultConfig_default.kanban.padding, u.mindmap?.useMaxWidth ?? defaultConfig_default.kanban.useMaxWidth);
878
+ }, "draw") }, genSections = /* @__PURE__ */ __name((e) => {
879
+ let n = "";
880
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], is_dark_default(e["lineColor" + t]) ? e["lineColor" + t] = lighten_default(e["lineColor" + t], 20) : e["lineColor" + t] = darken_default(e["lineColor" + t], 20);
881
+ let r = /* @__PURE__ */ __name((t, n) => e.darkMode ? darken_default(t, n) : lighten_default(t, n), "adjuster");
882
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
883
+ let i = "" + (17 - 3 * t);
884
+ n += `
885
+ .section-${t - 1} rect, .section-${t - 1} path, .section-${t - 1} circle, .section-${t - 1} polygon, .section-${t - 1} path {
886
+ fill: ${r(e["cScale" + t], 10)};
887
+ stroke: ${r(e["cScale" + t], 10)};
888
+
889
+ }
890
+ .section-${t - 1} text {
891
+ fill: ${e["cScaleLabel" + t]};
892
+ }
893
+ .node-icon-${t - 1} {
894
+ font-size: 40px;
895
+ color: ${e["cScaleLabel" + t]};
896
+ }
897
+ .section-edge-${t - 1}{
898
+ stroke: ${e["cScale" + t]};
899
+ }
900
+ .edge-depth-${t - 1}{
901
+ stroke-width: ${i};
902
+ }
903
+ .section-${t - 1} line {
904
+ stroke: ${e["cScaleInv" + t]} ;
905
+ stroke-width: 3;
906
+ }
907
+
908
+ .disabled, .disabled circle, .disabled text {
909
+ fill: lightgray;
910
+ }
911
+ .disabled text {
912
+ fill: #efefef;
913
+ }
914
+
915
+ .node rect,
916
+ .node circle,
917
+ .node ellipse,
918
+ .node polygon,
919
+ .node path {
920
+ fill: ${e.background};
921
+ stroke: ${e.nodeBorder};
922
+ stroke-width: 1px;
923
+ }
924
+
925
+ .kanban-ticket-link {
926
+ fill: ${e.background};
927
+ stroke: ${e.nodeBorder};
928
+ text-decoration: underline;
929
+ }
930
+ `;
931
+ }
932
+ return n;
933
+ }, "genSections"), diagram = {
934
+ db: kanbanDb_default,
935
+ renderer: kanbanRenderer_default,
936
+ parser: kanban_default,
937
+ styles: /* @__PURE__ */ __name((e) => `
938
+ .edge {
939
+ stroke-width: 3;
940
+ }
941
+ ${genSections(e)}
942
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
943
+ fill: ${e.git0};
944
+ }
945
+ .section-root text {
946
+ fill: ${e.gitBranchLabel0};
947
+ }
948
+ .icon-container {
949
+ height:100%;
950
+ display: flex;
951
+ justify-content: center;
952
+ align-items: center;
953
+ }
954
+ .edge {
955
+ fill: none;
956
+ }
957
+ .cluster-label, .label {
958
+ color: ${e.textColor};
959
+ fill: ${e.textColor};
960
+ }
961
+ .kanban-label {
962
+ dy: 1em;
963
+ alignment-baseline: middle;
964
+ text-anchor: middle;
965
+ dominant-baseline: middle;
966
+ text-align: center;
967
+ }
968
+ ${getIconStyles()}
969
+ `, "getStyles")
970
+ };
971
+ export { diagram };