@leanspec/ui-components 0.2.21 → 0.2.22

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 (167) hide show
  1. package/dist/{_baseUniq-KSDS6tgF.js → _baseUniq-D7Jo4wA-.js} +2 -2
  2. package/dist/{_baseUniq-ifpVq4u5.cjs → _baseUniq-DuU2z5Ko.cjs} +1 -1
  3. package/dist/{arc-CutFaiCL.cjs → arc-DVobalXV.cjs} +1 -1
  4. package/dist/{arc-C-X5Xt_b.js → arc-bSbgZKu2.js} +1 -1
  5. package/dist/{architecture-U656AL7Q-DOVRDeZr.cjs → architecture-U656AL7Q-BnnsKr-v.cjs} +1 -1
  6. package/dist/{architecture-U656AL7Q-BB1A66AM.js → architecture-U656AL7Q-pOUzdaWZ.js} +1 -1
  7. package/dist/{architectureDiagram-VXUJARFQ-Bal8NTn4.js → architectureDiagram-VXUJARFQ-B9csKaKv.js} +1272 -1279
  8. package/dist/architectureDiagram-VXUJARFQ-Dwe8uzg_.cjs +36 -0
  9. package/dist/blockDiagram-VD42YOAC-B4iBhDdw.cjs +122 -0
  10. package/dist/{blockDiagram-VD42YOAC-B2gTo5wW.js → blockDiagram-VD42YOAC-DrRsdznF.js} +911 -920
  11. package/dist/c4Diagram-YG6GDRKO-BRDnNTAH.cjs +10 -0
  12. package/dist/{c4Diagram-YG6GDRKO-dIf_vNCY.js → c4Diagram-YG6GDRKO-Di2rkJ8i.js} +162 -163
  13. package/dist/{channel-klR7o7JB.js → channel-CTeTHv-y.js} +1 -1
  14. package/dist/channel-Dzz86sIh.cjs +1 -0
  15. package/dist/chunk-4BX2VUAB-Ckv-xIp1.cjs +1 -0
  16. package/dist/chunk-4BX2VUAB-Dkr-Egsj.js +8 -0
  17. package/dist/{chunk-55IACEB6-C88Xx0rU.cjs → chunk-55IACEB6-CVnZTCiR.cjs} +1 -1
  18. package/dist/{chunk-55IACEB6-Dd3NjClm.js → chunk-55IACEB6-D_uwi6CC.js} +1 -1
  19. package/dist/{chunk-B4BG7PRW-DLUrgkJI.js → chunk-B4BG7PRW-BipBIVhj.js} +247 -248
  20. package/dist/{chunk-B4BG7PRW-BTU_nPVE.cjs → chunk-B4BG7PRW-Bne1UwNu.cjs} +6 -6
  21. package/dist/{chunk-DI55MBZ5-BwHLqSW9.js → chunk-DI55MBZ5-8tWOlvAD.js} +440 -452
  22. package/dist/chunk-DI55MBZ5-UAAzyEQX.cjs +220 -0
  23. package/dist/{chunk-FMBD7UC4-6dsbMKM7.js → chunk-FMBD7UC4-CLc8_72-.js} +1 -1
  24. package/dist/{chunk-FMBD7UC4-CedTj9g2.cjs → chunk-FMBD7UC4-DsaPsLgZ.cjs} +1 -1
  25. package/dist/chunk-QN33PNHL-BBlw4H4R.cjs +1 -0
  26. package/dist/chunk-QN33PNHL-QKH9jByz.js +19 -0
  27. package/dist/{chunk-QZHKN3VN-CVAEdzef.js → chunk-QZHKN3VN-BPpgPA2g.js} +1 -1
  28. package/dist/{chunk-QZHKN3VN-CU1cLvn7.cjs → chunk-QZHKN3VN-CB9ZTvXU.cjs} +1 -1
  29. package/dist/{chunk-TZMSLE5B-Cc8_PJIq.js → chunk-TZMSLE5B-Coq49FaX.js} +1 -1
  30. package/dist/{chunk-TZMSLE5B-Dy6zxWyY.cjs → chunk-TZMSLE5B-Dl7DiX7D.cjs} +1 -1
  31. package/dist/{classDiagram-v2-WZHVMYZB-D7bjndmT.js → classDiagram-2ON5EDUG-DYaKkEXb.js} +2 -2
  32. package/dist/{classDiagram-2ON5EDUG-CJQWUYqu.cjs → classDiagram-2ON5EDUG-Fsj2z4ej.cjs} +1 -1
  33. package/dist/{classDiagram-2ON5EDUG-D7bjndmT.js → classDiagram-v2-WZHVMYZB-DYaKkEXb.js} +2 -2
  34. package/dist/{classDiagram-v2-WZHVMYZB-CJQWUYqu.cjs → classDiagram-v2-WZHVMYZB-Fsj2z4ej.cjs} +1 -1
  35. package/dist/{clone-7srXemyd.js → clone-Ctm6tjrV.js} +1 -1
  36. package/dist/clone-JAtNXNmq.cjs +1 -0
  37. package/dist/{code-block-37QAKDTI-MRm4xHKr.js → code-block-37QAKDTI-3zaK1Sok.js} +1 -1
  38. package/dist/{code-block-37QAKDTI-BAYBliUK.cjs → code-block-37QAKDTI-UmxtJ5VR.cjs} +1 -1
  39. package/dist/components/graph/dependency-graph.d.ts.map +1 -1
  40. package/dist/components/hierarchy/hierarchy-tree.d.ts +17 -0
  41. package/dist/components/hierarchy/hierarchy-tree.d.ts.map +1 -0
  42. package/dist/components/hierarchy/index.d.ts +2 -0
  43. package/dist/components/hierarchy/index.d.ts.map +1 -0
  44. package/dist/components/index.d.ts +1 -0
  45. package/dist/components/index.d.ts.map +1 -1
  46. package/dist/components/spec/spec-card.d.ts +1 -1
  47. package/dist/components/spec/spec-card.d.ts.map +1 -1
  48. package/dist/components/ui/index.d.ts +3 -3
  49. package/dist/components/ui/index.d.ts.map +1 -1
  50. package/dist/cose-bilkent-S5V4N54A-BMt11jHq.cjs +1 -0
  51. package/dist/{cose-bilkent-S5V4N54A-0O3dLIoy.js → cose-bilkent-S5V4N54A-iUMgKFJZ.js} +281 -281
  52. package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
  53. package/dist/{cytoscape.esm-CjI2IsL8.js → cytoscape.esm-Cvf3sx9F.js} +18 -49
  54. package/dist/dagre-6UL2VRFP-CKc2IEbO.js +443 -0
  55. package/dist/dagre-6UL2VRFP-sN44kpPp.cjs +4 -0
  56. package/dist/{diagram-PSM6KHXK-s2xYLlND.js → diagram-PSM6KHXK-DERIvROx.js} +17 -19
  57. package/dist/diagram-PSM6KHXK-Ltn89usT.cjs +24 -0
  58. package/dist/{diagram-QEK2KX5R-D700jvoY.js → diagram-QEK2KX5R-B6CdcylU.js} +10 -14
  59. package/dist/diagram-QEK2KX5R-CDZWBlgA.cjs +43 -0
  60. package/dist/{diagram-S2PKOQOG-BkgBSa1Q.js → diagram-S2PKOQOG-5f_4uCtF.js} +22 -23
  61. package/dist/diagram-S2PKOQOG-D4WcZEo0.cjs +24 -0
  62. package/dist/{erDiagram-Q2GNP2WA-CXv6THpi.js → erDiagram-Q2GNP2WA-CnN7DF_N.js} +73 -74
  63. package/dist/{erDiagram-Q2GNP2WA-DKKIPwgH.cjs → erDiagram-Q2GNP2WA-mIz8VRgG.cjs} +3 -3
  64. package/dist/flowDiagram-NV44I4VS-BwUl8_y0.cjs +162 -0
  65. package/dist/{flowDiagram-NV44I4VS-Dsrv00Gy.js → flowDiagram-NV44I4VS-Dl3ZZj2W.js} +438 -445
  66. package/dist/{ganttDiagram-JELNMOA3-BuwyOUxF.cjs → ganttDiagram-JELNMOA3-Dl_PUPHn.cjs} +1 -1
  67. package/dist/{ganttDiagram-JELNMOA3-CqVYbgbk.js → ganttDiagram-JELNMOA3-q87tSGGF.js} +2 -2
  68. package/dist/{gitGraph-F6HP7TQM-q5owfB75.js → gitGraph-F6HP7TQM-C4DmI2Gg.js} +1 -1
  69. package/dist/{gitGraph-F6HP7TQM-BtoBLEOj.cjs → gitGraph-F6HP7TQM-Cq9d8Pu6.cjs} +1 -1
  70. package/dist/gitGraphDiagram-NY62KEGX-DMhKqh_S.cjs +65 -0
  71. package/dist/gitGraphDiagram-NY62KEGX-NeHUXng4.js +699 -0
  72. package/dist/{graph-CxpBbnBw.cjs → graph-AuIe-DO_.cjs} +1 -1
  73. package/dist/{graph-rt_wscbL.js → graph-Da1z0n_J.js} +2 -2
  74. package/dist/hooks/index.d.ts +1 -0
  75. package/dist/hooks/index.d.ts.map +1 -1
  76. package/dist/hooks/use-spec-sync.d.ts +13 -0
  77. package/dist/hooks/use-spec-sync.d.ts.map +1 -0
  78. package/dist/{index-BsdeQX2F.js → index-B5zgF_S5.js} +30337 -30055
  79. package/dist/index-KEDsBA0n.cjs +2103 -0
  80. package/dist/index.cjs +1 -1
  81. package/dist/index.js +512 -500
  82. package/dist/info-NVLQJR56-A56PvZ_B.js +5 -0
  83. package/dist/{info-NVLQJR56-Ctx23Jwq.cjs → info-NVLQJR56-FWiEuR29.cjs} +1 -1
  84. package/dist/{infoDiagram-WHAUD3N6-Fq8ToFQ6.js → infoDiagram-WHAUD3N6-Cj-s-gtw.js} +2 -2
  85. package/dist/{infoDiagram-WHAUD3N6-ICmXrgfx.cjs → infoDiagram-WHAUD3N6-Dvc-cZjb.cjs} +1 -1
  86. package/dist/{journeyDiagram-XKPGCS4Q-BkYLuV5M.cjs → journeyDiagram-XKPGCS4Q-B54o9W3g.cjs} +1 -1
  87. package/dist/{journeyDiagram-XKPGCS4Q-BzZgPZwu.js → journeyDiagram-XKPGCS4Q-BbXXFBC-.js} +4 -4
  88. package/dist/kanban-definition-3W4ZIXB7-BQfiIWMB.cjs +89 -0
  89. package/dist/kanban-definition-3W4ZIXB7-ClCUbNCO.js +719 -0
  90. package/dist/{layout-CeChnsru.cjs → layout-9b_FTQ6g.cjs} +1 -1
  91. package/dist/{layout-CX9neEHw.js → layout-BoJlbrAK.js} +4 -4
  92. package/dist/lib/hierarchy.d.ts +12 -0
  93. package/dist/lib/hierarchy.d.ts.map +1 -0
  94. package/dist/lib/index.d.ts +1 -0
  95. package/dist/lib/index.d.ts.map +1 -1
  96. package/dist/{linear-CkUVga7d.js → linear-4rmylyIU.js} +1 -1
  97. package/dist/{linear-DLfe3Is-.cjs → linear-FU7lEwDb.cjs} +1 -1
  98. package/dist/{mermaid-4DMBBIKO-DK6bOe0l.cjs → mermaid-4DMBBIKO-CGMd2ylH.cjs} +1 -1
  99. package/dist/mermaid-4DMBBIKO-CNvUKRvV.js +4 -0
  100. package/dist/{mermaid-parser.core-B7VTdQ1C.js → mermaid-parser.core-BbeEQ08m.js} +2740 -2756
  101. package/dist/mermaid-parser.core-CQwGaxt2.cjs +128 -0
  102. package/dist/{min-Ar5ebLd-.js → min-C8aXS73f.js} +2 -2
  103. package/dist/{min-C_bmS8M7.cjs → min-Ddv5U3O-.cjs} +1 -1
  104. package/dist/{mindmap-definition-VGOIOE7T-DeGZNL21.js → mindmap-definition-VGOIOE7T-BRNm-2aJ.js} +166 -169
  105. package/dist/mindmap-definition-VGOIOE7T-Gp-Ji6eO.cjs +68 -0
  106. package/dist/{ordinal-DfAQgscy.js → ordinal-B6-f3MAq.js} +1 -1
  107. package/dist/{packet-BFZMPI3H-DFZzoAsC.js → packet-BFZMPI3H-CJ8lOlJN.js} +1 -1
  108. package/dist/{packet-BFZMPI3H-BVRarKKV.cjs → packet-BFZMPI3H-CpWVF6Ne.cjs} +1 -1
  109. package/dist/pie-7BOR55EZ-BCyVC33Q.js +5 -0
  110. package/dist/{pie-7BOR55EZ-0edBRKAY.cjs → pie-7BOR55EZ-Ceke0LDu.cjs} +1 -1
  111. package/dist/{pieDiagram-ADFJNKIX-C_V2NX6O.js → pieDiagram-ADFJNKIX-BVRqurYx.js} +21 -21
  112. package/dist/{pieDiagram-ADFJNKIX-Ceq-kf3C.cjs → pieDiagram-ADFJNKIX-CwhRxtMH.cjs} +2 -2
  113. package/dist/{quadrantDiagram-AYHSOK5B-B8fSnYQi.js → quadrantDiagram-AYHSOK5B-CcsZBY3e.js} +227 -229
  114. package/dist/quadrantDiagram-AYHSOK5B-DBTVya8p.cjs +7 -0
  115. package/dist/radar-NHE76QYJ-C6zEuLeW.js +5 -0
  116. package/dist/{radar-NHE76QYJ-gAJ22qc7.cjs → radar-NHE76QYJ-CX8DsGdu.cjs} +1 -1
  117. package/dist/{requirementDiagram-UZGBJVZJ-D6BE-Q1l.cjs → requirementDiagram-UZGBJVZJ-5bxQUo0r.cjs} +7 -7
  118. package/dist/{requirementDiagram-UZGBJVZJ-MnXD59Yw.js → requirementDiagram-UZGBJVZJ-CV5SUGj-.js} +186 -188
  119. package/dist/{sankeyDiagram-TZEHDZUN-Dfyu7oJ6.js → sankeyDiagram-TZEHDZUN-BFPvVGcz.js} +186 -186
  120. package/dist/{sankeyDiagram-TZEHDZUN-Dx8_KSIc.cjs → sankeyDiagram-TZEHDZUN-D33DzO8E.cjs} +5 -5
  121. package/dist/{sequenceDiagram-WL72ISMW-D2pgAoWi.js → sequenceDiagram-WL72ISMW-CQ5u3b_o.js} +213 -220
  122. package/dist/{sequenceDiagram-WL72ISMW-CUYHrDfm.cjs → sequenceDiagram-WL72ISMW-DFEVNSSA.cjs} +16 -16
  123. package/dist/{stateDiagram-FKZM4ZOC-CtYt1Ixa.cjs → stateDiagram-FKZM4ZOC-sKqH3kHZ.cjs} +1 -1
  124. package/dist/{stateDiagram-FKZM4ZOC-DYV-na53.js → stateDiagram-FKZM4ZOC-zOb-V3pD.js} +4 -4
  125. package/dist/{stateDiagram-v2-4FDKWEC3-CeSnHO3T.cjs → stateDiagram-v2-4FDKWEC3-DwWb55sM.cjs} +1 -1
  126. package/dist/{stateDiagram-v2-4FDKWEC3-Kp4sxr9o.js → stateDiagram-v2-4FDKWEC3-_Mzc1jVl.js} +2 -2
  127. package/dist/{timeline-definition-IT6M3QCI-621ePKJ0.js → timeline-definition-IT6M3QCI-B2T2QrC5.js} +211 -215
  128. package/dist/timeline-definition-IT6M3QCI-D19MQs5w.cjs +61 -0
  129. package/dist/{treemap-KMMF4GRG-DSNryTu7.cjs → treemap-KMMF4GRG-C7E3CtG7.cjs} +1 -1
  130. package/dist/{treemap-KMMF4GRG-l6HrdCLC.js → treemap-KMMF4GRG-wB3pBnFc.js} +1 -1
  131. package/dist/types/specs.d.ts +2 -0
  132. package/dist/types/specs.d.ts.map +1 -1
  133. package/dist/ui-components.css +1 -1
  134. package/dist/{xychartDiagram-PRI3JC2R-CkfCv2o_.js → xychartDiagram-PRI3JC2R-BSPghzKh.js} +3 -3
  135. package/dist/{xychartDiagram-PRI3JC2R-C2_xziD5.cjs → xychartDiagram-PRI3JC2R-hKFxVf6x.cjs} +1 -1
  136. package/package.json +5 -2
  137. package/dist/architectureDiagram-VXUJARFQ-WCtQIdet.cjs +0 -36
  138. package/dist/blockDiagram-VD42YOAC-CGdaLv7H.cjs +0 -122
  139. package/dist/c4Diagram-YG6GDRKO-DfRXyZHM.cjs +0 -10
  140. package/dist/channel-CMrUjUoZ.cjs +0 -1
  141. package/dist/chunk-4BX2VUAB-BQgzc1Sm.js +0 -9
  142. package/dist/chunk-4BX2VUAB-CO5acanJ.cjs +0 -1
  143. package/dist/chunk-DI55MBZ5-lVvJu2kr.cjs +0 -220
  144. package/dist/chunk-QN33PNHL-DHNejhbC.js +0 -20
  145. package/dist/chunk-QN33PNHL-Dr9ghdFD.cjs +0 -1
  146. package/dist/clone-Chgndk5P.cjs +0 -1
  147. package/dist/cose-bilkent-S5V4N54A-CPai-c_a.cjs +0 -1
  148. package/dist/cytoscape.esm-o9WRfNPd.cjs +0 -331
  149. package/dist/dagre-6UL2VRFP-BqaZre9N.js +0 -446
  150. package/dist/dagre-6UL2VRFP-CeIiJJG5.cjs +0 -4
  151. package/dist/diagram-PSM6KHXK-oD045yZG.cjs +0 -24
  152. package/dist/diagram-QEK2KX5R-VH7_rcp0.cjs +0 -43
  153. package/dist/diagram-S2PKOQOG-CjDpLVdl.cjs +0 -24
  154. package/dist/flowDiagram-NV44I4VS-U52jVnrS.cjs +0 -162
  155. package/dist/gitGraphDiagram-NY62KEGX-DH1I05Ix.cjs +0 -65
  156. package/dist/gitGraphDiagram-NY62KEGX-DOanbk62.js +0 -712
  157. package/dist/index-Cg8ByiK0.cjs +0 -2153
  158. package/dist/info-NVLQJR56-hH82KARZ.js +0 -5
  159. package/dist/kanban-definition-3W4ZIXB7-BV7UYL3n.cjs +0 -89
  160. package/dist/kanban-definition-3W4ZIXB7-CrmrjRAg.js +0 -721
  161. package/dist/mermaid-4DMBBIKO-wnX9ATcq.js +0 -4
  162. package/dist/mermaid-parser.core-DvlzR6J2.cjs +0 -128
  163. package/dist/mindmap-definition-VGOIOE7T-BBqv9TKM.cjs +0 -68
  164. package/dist/pie-7BOR55EZ-zLMdfI8h.js +0 -5
  165. package/dist/quadrantDiagram-AYHSOK5B-BButfYaS.cjs +0 -7
  166. package/dist/radar-NHE76QYJ-DeqJwy76.js +0 -5
  167. package/dist/timeline-definition-IT6M3QCI-4fRZfQpb.cjs +0 -61
@@ -1,162 +1,161 @@
1
- import { g as le } from "./chunk-55IACEB6-Dd3NjClm.js";
2
- import { s as he } from "./chunk-QN33PNHL-DHNejhbC.js";
3
- import { _ as l, l as C, u as de, v as ge, M as j, f as X, m as F, aH as ue, ai as pe, aj as fe, ak as ye } from "./index-BsdeQX2F.js";
1
+ import { g as le } from "./chunk-55IACEB6-D_uwi6CC.js";
2
+ import { s as he } from "./chunk-QN33PNHL-QKH9jByz.js";
3
+ import { _ as l, l as I, u as de, v as ge, M as B, f as z, m as V, aH as ue, ai as pe, aj as fe, ak as ye } from "./index-B5zgF_S5.js";
4
4
  const E = [];
5
5
  for (let t = 0; t < 256; ++t)
6
6
  E.push((t + 256).toString(16).slice(1));
7
7
  function me(t, e = 0) {
8
8
  return (E[t[e + 0]] + E[t[e + 1]] + E[t[e + 2]] + E[t[e + 3]] + "-" + E[t[e + 4]] + E[t[e + 5]] + "-" + E[t[e + 6]] + E[t[e + 7]] + "-" + E[t[e + 8]] + E[t[e + 9]] + "-" + E[t[e + 10]] + E[t[e + 11]] + E[t[e + 12]] + E[t[e + 13]] + E[t[e + 14]] + E[t[e + 15]]).toLowerCase();
9
9
  }
10
- let Y;
10
+ let W;
11
11
  const Ee = new Uint8Array(16);
12
12
  function _e() {
13
- if (!Y) {
13
+ if (!W) {
14
14
  if (typeof crypto > "u" || !crypto.getRandomValues)
15
15
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
16
- Y = crypto.getRandomValues.bind(crypto);
16
+ W = crypto.getRandomValues.bind(crypto);
17
17
  }
18
- return Y(Ee);
18
+ return W(Ee);
19
19
  }
20
20
  const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
21
21
  function Se(t, e, n) {
22
- var u;
23
22
  if (ne.randomUUID && !t)
24
23
  return ne.randomUUID();
25
24
  t = t || {};
26
- const c = t.random ?? ((u = t.rng) == null ? void 0 : u.call(t)) ?? _e();
25
+ const c = t.random ?? t.rng?.() ?? _e();
27
26
  if (c.length < 16)
28
27
  throw new Error("Random bytes length must be >= 16");
29
28
  return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
30
29
  }
31
- var q = (function() {
32
- var t = /* @__PURE__ */ l(function(v, s, i, a) {
33
- for (i = i || {}, a = v.length; a--; i[v[a]] = s) ;
30
+ var X = (function() {
31
+ var t = /* @__PURE__ */ l(function(x, s, i, o) {
32
+ for (i = i || {}, o = x.length; o--; i[x[o]] = s) ;
34
33
  return i;
35
- }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], w = [1, 25], D = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], G = {
34
+ }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [1, 26], Y = [1, 24], q = [1, 25], b = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], R = [1, 6, 7, 11, 13, 15, 16, 19, 22], F = {
36
35
  trace: /* @__PURE__ */ l(function() {
37
36
  }, "trace"),
38
37
  yy: {},
39
38
  symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
40
39
  terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
41
40
  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, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
42
- performAction: /* @__PURE__ */ l(function(s, i, a, o, g, r, U) {
41
+ performAction: /* @__PURE__ */ l(function(s, i, o, a, g, r, w) {
43
42
  var d = r.length - 1;
44
43
  switch (g) {
45
44
  case 6:
46
45
  case 7:
47
- return o;
46
+ return a;
48
47
  case 8:
49
- o.getLogger().trace("Stop NL ");
48
+ a.getLogger().trace("Stop NL ");
50
49
  break;
51
50
  case 9:
52
- o.getLogger().trace("Stop EOF ");
51
+ a.getLogger().trace("Stop EOF ");
53
52
  break;
54
53
  case 11:
55
- o.getLogger().trace("Stop NL2 ");
54
+ a.getLogger().trace("Stop NL2 ");
56
55
  break;
57
56
  case 12:
58
- o.getLogger().trace("Stop EOF2 ");
57
+ a.getLogger().trace("Stop EOF2 ");
59
58
  break;
60
59
  case 15:
61
- o.getLogger().info("Node: ", r[d].id), o.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
60
+ a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
62
61
  break;
63
62
  case 16:
64
- o.getLogger().trace("Icon: ", r[d]), o.decorateNode({ icon: r[d] });
63
+ a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
65
64
  break;
66
65
  case 17:
67
66
  case 21:
68
- o.decorateNode({ class: r[d] });
67
+ a.decorateNode({ class: r[d] });
69
68
  break;
70
69
  case 18:
71
- o.getLogger().trace("SPACELIST");
70
+ a.getLogger().trace("SPACELIST");
72
71
  break;
73
72
  case 19:
74
- o.getLogger().trace("Node: ", r[d].id), o.addNode(0, r[d].id, r[d].descr, r[d].type);
73
+ a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
75
74
  break;
76
75
  case 20:
77
- o.decorateNode({ icon: r[d] });
76
+ a.decorateNode({ icon: r[d] });
78
77
  break;
79
78
  case 25:
80
- o.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
79
+ a.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
81
80
  break;
82
81
  case 26:
83
- this.$ = { id: r[d], descr: r[d], type: o.nodeType.DEFAULT };
82
+ this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
84
83
  break;
85
84
  case 27:
86
- o.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
85
+ a.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
87
86
  break;
88
87
  }
89
88
  }, "anonymous"),
90
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: w }, t(D, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(D, [2, 18]), t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 21]), t(D, [2, 23]), t(D, [2, 24]), t(D, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: w }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(J, [2, 14], { 7: K, 11: Q }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(D, [2, 15]), t(D, [2, 16]), t(D, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(A, [2, 11]), t(A, [2, 12]), { 21: [1, 37] }, t(D, [2, 25]), t(D, [2, 27])],
89
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(u, [2, 3]), { 1: [2, 2] }, t(u, [2, 4]), t(u, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: Y, 10: 23, 11: q }, t(b, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), t(b, [2, 18]), t(b, [2, 19]), t(b, [2, 20]), t(b, [2, 21]), t(b, [2, 23]), t(b, [2, 24]), t(b, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: N, 7: Y, 10: 32, 11: q }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(J, [2, 14], { 7: K, 11: Q }), t(R, [2, 8]), t(R, [2, 9]), t(R, [2, 10]), t(b, [2, 15]), t(b, [2, 16]), t(b, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(R, [2, 11]), t(R, [2, 12]), { 21: [1, 37] }, t(b, [2, 25]), t(b, [2, 27])],
91
90
  defaultActions: { 2: [2, 1], 6: [2, 2] },
92
91
  parseError: /* @__PURE__ */ l(function(s, i) {
93
92
  if (i.recoverable)
94
93
  this.trace(s);
95
94
  else {
96
- var a = new Error(s);
97
- throw a.hash = i, a;
95
+ var o = new Error(s);
96
+ throw o.hash = i, o;
98
97
  }
99
98
  }, "parseError"),
100
99
  parse: /* @__PURE__ */ l(function(s) {
101
- var i = this, a = [0], o = [], g = [null], r = [], U = this.table, d = "", M = 0, Z = 0, re = 2, ee = 1, ae = r.slice.call(arguments, 1), f = Object.create(this.lexer), T = { yy: {} };
102
- for (var H in this.yy)
103
- Object.prototype.hasOwnProperty.call(this.yy, H) && (T.yy[H] = this.yy[H]);
104
- f.setInput(s, T.yy), T.yy.lexer = f, T.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
105
- var $ = f.yylloc;
106
- r.push($);
107
- var oe = f.options && f.options.ranges;
108
- typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
109
- function ce(N) {
110
- a.length = a.length - 2 * N, g.length = g.length - N, r.length = r.length - N;
100
+ var i = this, o = [0], a = [], g = [null], r = [], w = this.table, d = "", U = 0, Z = 0, re = 2, ee = 1, oe = r.slice.call(arguments, 1), y = Object.create(this.lexer), v = { yy: {} };
101
+ for (var j in this.yy)
102
+ Object.prototype.hasOwnProperty.call(this.yy, j) && (v.yy[j] = this.yy[j]);
103
+ y.setInput(s, v.yy), v.yy.lexer = y, v.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
104
+ var G = y.yylloc;
105
+ r.push(G);
106
+ var ae = y.options && y.options.ranges;
107
+ typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
108
+ function ce(S) {
109
+ o.length = o.length - 2 * S, g.length = g.length - S, r.length = r.length - S;
111
110
  }
112
111
  l(ce, "popStack");
113
112
  function te() {
114
- var N;
115
- return N = o.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = i.symbols_[N] || N), N;
113
+ var S;
114
+ return S = a.pop() || y.lex() || ee, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = i.symbols_[S] || S), S;
116
115
  }
117
116
  l(te, "lex");
118
- for (var S, O, k, z, I = {}, V, L, ie, B; ; ) {
119
- if (O = a[a.length - 1], this.defaultActions[O] ? k = this.defaultActions[O] : ((S === null || typeof S > "u") && (S = te()), k = U[O] && U[O][S]), typeof k > "u" || !k.length || !k[0]) {
120
- var W = "";
121
- B = [];
122
- for (V in U[O])
123
- this.terminals_[V] && V > re && B.push("'" + this.terminals_[V] + "'");
124
- f.showPosition ? W = "Parse error on line " + (M + 1) + `:
125
- ` + f.showPosition() + `
126
- Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "Parse error on line " + (M + 1) + ": Unexpected " + (S == ee ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(W, {
127
- text: f.match,
128
- token: this.terminals_[S] || S,
129
- line: f.yylineno,
130
- loc: $,
131
- expected: B
117
+ for (var _, T, D, H, O = {}, P, k, ie, M; ; ) {
118
+ if (T = o[o.length - 1], this.defaultActions[T] ? D = this.defaultActions[T] : ((_ === null || typeof _ > "u") && (_ = te()), D = w[T] && w[T][_]), typeof D > "u" || !D.length || !D[0]) {
119
+ var $ = "";
120
+ M = [];
121
+ for (P in w[T])
122
+ this.terminals_[P] && P > re && M.push("'" + this.terminals_[P] + "'");
123
+ y.showPosition ? $ = "Parse error on line " + (U + 1) + `:
124
+ ` + y.showPosition() + `
125
+ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "Parse error on line " + (U + 1) + ": Unexpected " + (_ == ee ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError($, {
126
+ text: y.match,
127
+ token: this.terminals_[_] || _,
128
+ line: y.yylineno,
129
+ loc: G,
130
+ expected: M
132
131
  });
133
132
  }
134
- if (k[0] instanceof Array && k.length > 1)
135
- throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + S);
136
- switch (k[0]) {
133
+ if (D[0] instanceof Array && D.length > 1)
134
+ throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
135
+ switch (D[0]) {
137
136
  case 1:
138
- a.push(S), g.push(f.yytext), r.push(f.yylloc), a.push(k[1]), S = null, Z = f.yyleng, d = f.yytext, M = f.yylineno, $ = f.yylloc;
137
+ o.push(_), g.push(y.yytext), r.push(y.yylloc), o.push(D[1]), _ = null, Z = y.yyleng, d = y.yytext, U = y.yylineno, G = y.yylloc;
139
138
  break;
140
139
  case 2:
141
- if (L = this.productions_[k[1]][1], I.$ = g[g.length - L], I._$ = {
142
- first_line: r[r.length - (L || 1)].first_line,
140
+ if (k = this.productions_[D[1]][1], O.$ = g[g.length - k], O._$ = {
141
+ first_line: r[r.length - (k || 1)].first_line,
143
142
  last_line: r[r.length - 1].last_line,
144
- first_column: r[r.length - (L || 1)].first_column,
143
+ first_column: r[r.length - (k || 1)].first_column,
145
144
  last_column: r[r.length - 1].last_column
146
- }, oe && (I._$.range = [
147
- r[r.length - (L || 1)].range[0],
145
+ }, ae && (O._$.range = [
146
+ r[r.length - (k || 1)].range[0],
148
147
  r[r.length - 1].range[1]
149
- ]), z = this.performAction.apply(I, [
148
+ ]), H = this.performAction.apply(O, [
150
149
  d,
151
150
  Z,
152
- M,
153
- T.yy,
154
- k[1],
151
+ U,
152
+ v.yy,
153
+ D[1],
155
154
  g,
156
155
  r
157
- ].concat(ae)), typeof z < "u")
158
- return z;
159
- L && (a = a.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), r = r.slice(0, -1 * L)), a.push(this.productions_[k[1]][0]), g.push(I.$), r.push(I._$), ie = U[a[a.length - 2]][a[a.length - 1]], a.push(ie);
156
+ ].concat(oe)), typeof H < "u")
157
+ return H;
158
+ k && (o = o.slice(0, -1 * k * 2), g = g.slice(0, -1 * k), r = r.slice(0, -1 * k)), o.push(this.productions_[D[1]][0]), g.push(O.$), r.push(O._$), ie = w[o[o.length - 2]][o[o.length - 1]], o.push(ie);
160
159
  break;
161
160
  case 3:
162
161
  return !0;
@@ -165,11 +164,11 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
165
164
  return !0;
166
165
  }, "parse")
167
166
  }, se = /* @__PURE__ */ (function() {
168
- var v = {
167
+ var x = {
169
168
  EOF: 1,
170
- parseError: /* @__PURE__ */ l(function(i, a) {
169
+ parseError: /* @__PURE__ */ l(function(i, o) {
171
170
  if (this.yy.parser)
172
- this.yy.parser.parseError(i, a);
171
+ this.yy.parser.parseError(i, o);
173
172
  else
174
173
  throw new Error(i);
175
174
  }, "parseError"),
@@ -191,16 +190,16 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
191
190
  }, "input"),
192
191
  // unshifts one char (or a string) into the input
193
192
  unput: /* @__PURE__ */ l(function(s) {
194
- var i = s.length, a = s.split(/(?:\r\n?|\n)/g);
193
+ var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
195
194
  this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
196
- var o = this.match.split(/(?:\r\n?|\n)/g);
197
- 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);
195
+ var a = this.match.split(/(?:\r\n?|\n)/g);
196
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
198
197
  var g = this.yylloc.range;
199
198
  return this.yylloc = {
200
199
  first_line: this.yylloc.first_line,
201
200
  last_line: this.yylineno + 1,
202
201
  first_column: this.yylloc.first_column,
203
- 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
202
+ last_column: o ? (o.length === a.length ? this.yylloc.first_column : 0) + a[a.length - o.length].length - o[0].length : this.yylloc.first_column - i
204
203
  }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
205
204
  }, "unput"),
206
205
  // When called from action, caches matched text and appends it on next action
@@ -242,7 +241,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
242
241
  }, "showPosition"),
243
242
  // test the lexed token: return FALSE when not a match, otherwise return token
244
243
  test_match: /* @__PURE__ */ l(function(s, i) {
245
- var a, o, g;
244
+ var o, a, g;
246
245
  if (this.options.backtrack_lexer && (g = {
247
246
  yylineno: this.yylineno,
248
247
  yylloc: {
@@ -262,13 +261,13 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
262
261
  yy: this.yy,
263
262
  conditionStack: this.conditionStack.slice(0),
264
263
  done: this.done
265
- }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
264
+ }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
266
265
  first_line: this.yylloc.last_line,
267
266
  last_line: this.yylineno + 1,
268
267
  first_column: this.yylloc.last_column,
269
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
270
- }, 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)
271
- return a;
268
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
269
+ }, 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], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
270
+ return o;
272
271
  if (this._backtrack) {
273
272
  for (var r in g)
274
273
  this[r] = g[r];
@@ -281,12 +280,12 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
281
280
  if (this.done)
282
281
  return this.EOF;
283
282
  this._input || (this.done = !0);
284
- var s, i, a, o;
283
+ var s, i, o, a;
285
284
  this._more || (this.yytext = "", this.match = "");
286
285
  for (var g = this._currentRules(), r = 0; r < g.length; r++)
287
- if (a = this._input.match(this.rules[g[r]]), a && (!i || a[0].length > i[0].length)) {
288
- if (i = a, o = r, this.options.backtrack_lexer) {
289
- if (s = this.test_match(a, g[r]), s !== !1)
286
+ if (o = this._input.match(this.rules[g[r]]), o && (!i || o[0].length > i[0].length)) {
287
+ if (i = o, a = r, this.options.backtrack_lexer) {
288
+ if (s = this.test_match(o, g[r]), s !== !1)
290
289
  return s;
291
290
  if (this._backtrack) {
292
291
  i = !1;
@@ -296,7 +295,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
296
295
  } else if (!this.options.flex)
297
296
  break;
298
297
  }
299
- return i ? (s = this.test_match(i, g[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
298
+ return i ? (s = this.test_match(i, g[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
300
299
  ` + this.showPosition(), {
301
300
  text: "",
302
301
  token: null,
@@ -334,10 +333,10 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
334
333
  return this.conditionStack.length;
335
334
  }, "stateStackSize"),
336
335
  options: { "case-insensitive": !0 },
337
- performAction: /* @__PURE__ */ l(function(i, a, o, g) {
338
- switch (o) {
336
+ performAction: /* @__PURE__ */ l(function(i, o, a, g) {
337
+ switch (a) {
339
338
  case 0:
340
- return i.getLogger().trace("Found comment", a.yytext), 6;
339
+ return i.getLogger().trace("Found comment", o.yytext), 6;
341
340
  case 1:
342
341
  return 8;
343
342
  case 2:
@@ -394,7 +393,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
394
393
  i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
395
394
  break;
396
395
  case 25:
397
- return i.getLogger().trace("description:", a.yytext), "NODE_DESCR";
396
+ return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
398
397
  case 26:
399
398
  this.popState();
400
399
  break;
@@ -403,7 +402,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
403
402
  case 28:
404
403
  return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
405
404
  case 29:
406
- return this.popState(), i.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
405
+ return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
407
406
  case 30:
408
407
  return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
409
408
  case 31:
@@ -415,24 +414,24 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
415
414
  case 34:
416
415
  return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
417
416
  case 35:
418
- return i.getLogger().trace("Long description:", a.yytext), 20;
417
+ return i.getLogger().trace("Long description:", o.yytext), 20;
419
418
  case 36:
420
- return i.getLogger().trace("Long description:", a.yytext), 20;
419
+ return i.getLogger().trace("Long description:", o.yytext), 20;
421
420
  }
422
421
  }, "anonymous"),
423
422
  rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\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],
424
423
  conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
425
424
  };
426
- return v;
425
+ return x;
427
426
  })();
428
- G.lexer = se;
429
- function P() {
427
+ F.lexer = se;
428
+ function A() {
430
429
  this.yy = {};
431
430
  }
432
- return l(P, "Parser"), P.prototype = G, G.Parser = P, new P();
431
+ return l(A, "Parser"), A.prototype = F, F.Parser = A, new A();
433
432
  })();
434
- q.parser = q;
435
- var De = q, x = {
433
+ X.parser = X;
434
+ var De = X, L = {
436
435
  DEFAULT: 0,
437
436
  NO_BORDER: 0,
438
437
  ROUNDED_RECT: 1,
@@ -441,9 +440,9 @@ var De = q, x = {
441
440
  CLOUD: 4,
442
441
  BANG: 5,
443
442
  HEXAGON: 6
444
- }, R, Ne = (R = class {
443
+ }, C, Ne = (C = class {
445
444
  constructor() {
446
- this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = x, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
445
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = L, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
447
446
  }
448
447
  clear() {
449
448
  this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
@@ -457,42 +456,41 @@ var De = q, x = {
457
456
  getMindmap() {
458
457
  return this.nodes.length > 0 ? this.nodes[0] : null;
459
458
  }
460
- addNode(e, n, c, u) {
461
- var m, w;
462
- C.info("addNode", e, n, c, u);
459
+ addNode(e, n, c, f) {
460
+ I.info("addNode", e, n, c, f);
463
461
  let h = !1;
464
462
  this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
465
- const p = X();
466
- let y = ((m = p.mindmap) == null ? void 0 : m.padding) ?? j.mindmap.padding;
467
- switch (u) {
463
+ const p = z();
464
+ let m = p.mindmap?.padding ?? B.mindmap.padding;
465
+ switch (f) {
468
466
  case this.nodeType.ROUNDED_RECT:
469
467
  case this.nodeType.RECT:
470
468
  case this.nodeType.HEXAGON:
471
- y *= 2;
469
+ m *= 2;
472
470
  break;
473
471
  }
474
- const _ = {
472
+ const u = {
475
473
  id: this.count++,
476
- nodeId: F(n, p),
474
+ nodeId: V(n, p),
477
475
  level: e,
478
- descr: F(c, p),
479
- type: u,
476
+ descr: V(c, p),
477
+ type: f,
480
478
  children: [],
481
- width: ((w = p.mindmap) == null ? void 0 : w.maxNodeWidth) ?? j.mindmap.maxNodeWidth,
482
- padding: y,
479
+ width: p.mindmap?.maxNodeWidth ?? B.mindmap.maxNodeWidth,
480
+ padding: m,
483
481
  isRoot: h
484
- }, b = this.getParent(e);
485
- if (b)
486
- b.children.push(_), this.nodes.push(_);
482
+ }, N = this.getParent(e);
483
+ if (N)
484
+ N.children.push(u), this.nodes.push(u);
487
485
  else if (h)
488
- this.nodes.push(_);
486
+ this.nodes.push(u);
489
487
  else
490
488
  throw new Error(
491
- `There can be only one root. No parent could be found for ("${_.descr}")`
489
+ `There can be only one root. No parent could be found for ("${u.descr}")`
492
490
  );
493
491
  }
494
492
  getType(e, n) {
495
- switch (C.debug("In get type", e, n), e) {
493
+ switch (I.debug("In get type", e, n), e) {
496
494
  case "[":
497
495
  return this.nodeType.RECT;
498
496
  case "(":
@@ -518,8 +516,8 @@ var De = q, x = {
518
516
  decorateNode(e) {
519
517
  if (!e)
520
518
  return;
521
- const n = X(), c = this.nodes[this.nodes.length - 1];
522
- e.icon && (c.icon = F(e.icon, n)), e.class && (c.class = F(e.class, n));
519
+ const n = z(), c = this.nodes[this.nodes.length - 1];
520
+ e.icon && (c.icon = V(e.icon, n)), e.class && (c.class = V(e.class, n));
523
521
  }
524
522
  type2Str(e) {
525
523
  switch (e) {
@@ -549,9 +547,9 @@ var De = q, x = {
549
547
  */
550
548
  assignSections(e, n) {
551
549
  if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
552
- for (const [c, u] of e.children.entries()) {
550
+ for (const [c, f] of e.children.entries()) {
553
551
  const h = e.level === 0 ? c : n;
554
- this.assignSections(u, h);
552
+ this.assignSections(f, h);
555
553
  }
556
554
  }
557
555
  /**
@@ -562,23 +560,23 @@ var De = q, x = {
562
560
  flattenNodes(e, n) {
563
561
  const c = ["mindmap-node"];
564
562
  e.isRoot === !0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
565
- const u = c.join(" "), h = /* @__PURE__ */ l((y) => {
566
- switch (y) {
567
- case x.CIRCLE:
563
+ const f = c.join(" "), h = /* @__PURE__ */ l((m) => {
564
+ switch (m) {
565
+ case L.CIRCLE:
568
566
  return "mindmapCircle";
569
- case x.RECT:
567
+ case L.RECT:
570
568
  return "rect";
571
- case x.ROUNDED_RECT:
569
+ case L.ROUNDED_RECT:
572
570
  return "rounded";
573
- case x.CLOUD:
571
+ case L.CLOUD:
574
572
  return "cloud";
575
- case x.BANG:
573
+ case L.BANG:
576
574
  return "bang";
577
- case x.HEXAGON:
575
+ case L.HEXAGON:
578
576
  return "hexagon";
579
- case x.DEFAULT:
577
+ case L.DEFAULT:
580
578
  return "defaultMindmapNode";
581
- case x.NO_BORDER:
579
+ case L.NO_BORDER:
582
580
  default:
583
581
  return "rect";
584
582
  }
@@ -591,7 +589,7 @@ var De = q, x = {
591
589
  width: e.width,
592
590
  height: e.height ?? 0,
593
591
  padding: e.padding,
594
- cssClasses: u,
592
+ cssClasses: f,
595
593
  cssStyles: [],
596
594
  look: "default",
597
595
  icon: e.icon,
@@ -604,8 +602,8 @@ var De = q, x = {
604
602
  section: e.section
605
603
  };
606
604
  if (n.push(p), e.children)
607
- for (const y of e.children)
608
- this.flattenNodes(y, n);
605
+ for (const m of e.children)
606
+ this.flattenNodes(m, n);
609
607
  }
610
608
  /**
611
609
  * Generate edges from parent-child relationships in mindmap tree
@@ -615,10 +613,10 @@ var De = q, x = {
615
613
  generateEdges(e, n) {
616
614
  if (e.children)
617
615
  for (const c of e.children) {
618
- let u = "edge";
619
- c.section !== void 0 && (u += ` section-edge-${c.section}`);
616
+ let f = "edge";
617
+ c.section !== void 0 && (f += ` section-edge-${c.section}`);
620
618
  const h = e.level + 1;
621
- u += ` edge-depth-${h}`;
619
+ f += ` edge-depth-${h}`;
622
620
  const p = {
623
621
  id: `edge_${e.id}_${c.id}`,
624
622
  start: e.id.toString(),
@@ -627,7 +625,7 @@ var De = q, x = {
627
625
  curve: "basis",
628
626
  thickness: "normal",
629
627
  look: "default",
630
- classes: u,
628
+ classes: f,
631
629
  // Store mindmap-specific data
632
630
  depth: e.level,
633
631
  section: c.section
@@ -641,29 +639,29 @@ var De = q, x = {
641
639
  * @returns Structured data containing nodes, edges, and config
642
640
  */
643
641
  getData() {
644
- const e = this.getMindmap(), n = X(), u = ue().layout !== void 0, h = n;
645
- if (u || (h.layout = "cose-bilkent"), !e)
642
+ const e = this.getMindmap(), n = z(), f = ue().layout !== void 0, h = n;
643
+ if (f || (h.layout = "cose-bilkent"), !e)
646
644
  return {
647
645
  nodes: [],
648
646
  edges: [],
649
647
  config: h
650
648
  };
651
- C.debug("getData: mindmapRoot", e, n), this.assignSections(e);
652
- const p = [], y = [];
653
- this.flattenNodes(e, p), this.generateEdges(e, y), C.debug(
654
- `getData: processed ${p.length} nodes and ${y.length} edges`
649
+ I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
650
+ const p = [], m = [];
651
+ this.flattenNodes(e, p), this.generateEdges(e, m), I.debug(
652
+ `getData: processed ${p.length} nodes and ${m.length} edges`
655
653
  );
656
- const _ = /* @__PURE__ */ new Map();
657
- for (const b of p)
658
- _.set(b.id, {
659
- shape: b.shape,
660
- width: b.width,
661
- height: b.height,
662
- padding: b.padding
654
+ const u = /* @__PURE__ */ new Map();
655
+ for (const N of p)
656
+ u.set(N.id, {
657
+ shape: N.shape,
658
+ width: N.width,
659
+ height: N.height,
660
+ padding: N.padding
663
661
  });
664
662
  return {
665
663
  nodes: p,
666
- edges: y,
664
+ edges: m,
667
665
  config: h,
668
666
  // Store the root node for mindmap-specific layout algorithms
669
667
  rootNode: e,
@@ -677,7 +675,7 @@ var De = q, x = {
677
675
  rankSpacing: 50,
678
676
  // Default spacing between ranks
679
677
  // Add shapes for ELK compatibility
680
- shapes: Object.fromEntries(_),
678
+ shapes: Object.fromEntries(u),
681
679
  // Additional properties that layout algorithms might expect
682
680
  type: "mindmap",
683
681
  diagramId: "mindmap-" + Se()
@@ -685,22 +683,21 @@ var De = q, x = {
685
683
  }
686
684
  // Expose logger to grammar
687
685
  getLogger() {
688
- return C;
686
+ return I;
689
687
  }
690
- }, l(R, "MindmapDB"), R), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
691
- var _, b;
692
- C.debug(`Rendering mindmap diagram
688
+ }, l(C, "MindmapDB"), C), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
689
+ I.debug(`Rendering mindmap diagram
693
690
  ` + t);
694
- const u = c.db, h = u.getData(), p = le(e, h.config.securityLevel);
691
+ const f = c.db, h = f.getData(), p = le(e, h.config.securityLevel);
695
692
  h.type = c.type, h.layoutAlgorithm = de(h.config.layout, {
696
693
  fallback: "cose-bilkent"
697
- }), h.diagramId = e, u.getMindmap() && (h.nodes.forEach((m) => {
698
- m.shape === "rounded" ? (m.radius = 15, m.taper = 15, m.stroke = "none", m.width = 0, m.padding = 15) : m.shape === "circle" ? m.padding = 10 : m.shape === "rect" && (m.width = 0, m.padding = 10);
694
+ }), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
695
+ u.shape === "rounded" ? (u.radius = 15, u.taper = 15, u.stroke = "none", u.width = 0, u.padding = 15) : u.shape === "circle" ? u.padding = 10 : u.shape === "rect" && (u.width = 0, u.padding = 10);
699
696
  }), await ge(h, p), he(
700
697
  p,
701
- ((_ = h.config.mindmap) == null ? void 0 : _.padding) ?? j.mindmap.padding,
698
+ h.config.mindmap?.padding ?? B.mindmap.padding,
702
699
  "mindmapDiagram",
703
- ((b = h.config.mindmap) == null ? void 0 : b.useMaxWidth) ?? j.mindmap.useMaxWidth
700
+ h.config.mindmap?.useMaxWidth ?? B.mindmap.useMaxWidth
704
701
  ));
705
702
  }, "draw"), Le = {
706
703
  draw: ke