@ashwin_droid/notion-stream 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/{_baseUniq-DSwfPiGC.js → _baseUniq-D32sgNIc.js} +1 -1
  2. package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-DCnQIx8G.mjs} +51 -51
  3. package/dist/{arc-BBnIBs2j.js → arc-B0uBm0sN.js} +1 -1
  4. package/dist/{arc-DmoYXidQ.mjs → arc-OrNNmmBm.mjs} +1 -1
  5. package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-CLYqYgyv.js} +1 -1
  6. package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-seCMyeyz.mjs} +1 -1
  7. package/dist/architectureDiagram-VXUJARFQ-BGsDPmi_.js +36 -0
  8. package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-BmPLNLcs.mjs} +1846 -1850
  9. package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-CXKvT-9-.mjs} +913 -922
  10. package/dist/blockDiagram-VD42YOAC-NQhzFvsO.js +122 -0
  11. package/dist/c4Diagram-YG6GDRKO-CMXx6pyB.js +10 -0
  12. package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-DAGMHESb.mjs} +169 -170
  13. package/dist/{channel-DVpqhnow.mjs → channel-BXGyzQA6.mjs} +1 -1
  14. package/dist/channel-Dw8BXC8D.js +1 -0
  15. package/dist/chunk-4BX2VUAB-MnK73C0-.js +1 -0
  16. package/dist/chunk-4BX2VUAB-ZaWvd3Xe.mjs +8 -0
  17. package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-B1EpdpVW.js} +1 -1
  18. package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-iKbZBHA5.mjs} +1 -1
  19. package/dist/chunk-B4BG7PRW-Bo_sfBKL.js +165 -0
  20. package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-DgqSow4f.mjs} +251 -252
  21. package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-BAHL-2VJ.mjs} +444 -456
  22. package/dist/chunk-DI55MBZ5-BuuMLI1S.js +220 -0
  23. package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BE8MbNLe.mjs} +1 -1
  24. package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-Cs1BNv23.js} +1 -1
  25. package/dist/chunk-QN33PNHL-MX1ZMWu-.js +1 -0
  26. package/dist/chunk-QN33PNHL-ZaWv5vaA.mjs +19 -0
  27. package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-D2X7PBDi.mjs} +1 -1
  28. package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-Db6mVb9M.js} +1 -1
  29. package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-AMFXF6mq.mjs} +20 -20
  30. package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-CzjtACDr.js} +1 -1
  31. package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-CPwvtUDj.mjs} +2 -2
  32. package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-UNrH9bQo.js} +1 -1
  33. package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-CPwvtUDj.mjs} +2 -2
  34. package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-UNrH9bQo.js} +1 -1
  35. package/dist/{clone-KtLCwiKH.mjs → clone-CV4F8CSW.mjs} +1 -1
  36. package/dist/clone-HVsPHeK3.js +1 -0
  37. package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-38K5Mxo2.js} +1 -1
  38. package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-Q-OOsw6q.mjs} +1 -1
  39. package/dist/cose-bilkent-S5V4N54A-1B77PywG.js +1 -0
  40. package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-greBbyuM.mjs} +592 -589
  41. package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
  42. package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
  43. package/dist/dagre-6UL2VRFP-DEQXyXKh.js +4 -0
  44. package/dist/dagre-6UL2VRFP-DN5Inkgr.mjs +443 -0
  45. package/dist/diagram-PSM6KHXK-C7tjFZpr.js +24 -0
  46. package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-D-GS1fTc.mjs} +45 -48
  47. package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-DJXBxeH4.mjs} +10 -14
  48. package/dist/diagram-QEK2KX5R-Doa8ooC_.js +43 -0
  49. package/dist/diagram-S2PKOQOG-BN04h93a.js +24 -0
  50. package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-BuPevKqw.mjs} +22 -23
  51. package/dist/erDiagram-Q2GNP2WA-AS2vnQKc.js +60 -0
  52. package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-DxOmvmqL.mjs} +77 -78
  53. package/dist/flowDiagram-NV44I4VS-BChiRwcp.js +162 -0
  54. package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-Cs_jC87H.mjs} +442 -449
  55. package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-02b_-xyZ.mjs} +1049 -1041
  56. package/dist/ganttDiagram-JELNMOA3-BGy1b6TD.js +267 -0
  57. package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-BWm0SBV4.mjs} +1 -1
  58. package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-DVfckSNX.js} +1 -1
  59. package/dist/gitGraphDiagram-NY62KEGX-CfzoE07P.mjs +699 -0
  60. package/dist/gitGraphDiagram-NY62KEGX-Cm9ywQoW.js +65 -0
  61. package/dist/{graph-C_T4ZBuC.mjs → graph-DEu7-ZhH.mjs} +8 -8
  62. package/dist/{graph-BNpx6ebg.js → graph-Dw_87ii6.js} +1 -1
  63. package/dist/index-BwYOYPeK.js +670 -0
  64. package/dist/{index-oe4HpmeG.mjs → index-DH3CVXwD.mjs} +22541 -22646
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.js +1 -1
  67. package/dist/index.mjs +3 -3
  68. package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-BpKxONZx.js} +1 -1
  69. package/dist/info-NVLQJR56-MmJP3L6S.mjs +5 -0
  70. package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-Bfsucvti.mjs} +2 -2
  71. package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-q-yX3_By.js} +1 -1
  72. package/dist/journeyDiagram-XKPGCS4Q-BqtyHvQF.js +139 -0
  73. package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-dFRLmnr-.mjs} +24 -26
  74. package/dist/kanban-definition-3W4ZIXB7-DeOl9Eme.mjs +719 -0
  75. package/dist/kanban-definition-3W4ZIXB7-DraMxv75.js +89 -0
  76. package/dist/{layout-CuWQnP5Y.js → layout-BKTUO8WZ.js} +1 -1
  77. package/dist/{layout-Cd98WJ7r.mjs → layout-CpL-hYTa.mjs} +22 -22
  78. package/dist/{linear-SU4e8MRt.mjs → linear-CLwIU3di.mjs} +20 -20
  79. package/dist/{linear-DFDw13y6.js → linear-DvM229Di.js} +1 -1
  80. package/dist/mermaid-4DMBBIKO-BpqXz0_U.mjs +4 -0
  81. package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-Cd15t2pT.js} +1 -1
  82. package/dist/mermaid-parser.core-BVlc9Lqd.js +128 -0
  83. package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CLAapB2-.mjs} +3404 -3369
  84. package/dist/{min-C2k771MZ.mjs → min--ML-ONY_.mjs} +2 -2
  85. package/dist/{min-CppMRDFn.js → min-BQ4NUvNf.js} +1 -1
  86. package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-78K_EDCb.mjs} +170 -172
  87. package/dist/mindmap-definition-VGOIOE7T-ZHY70ZzV.js +68 -0
  88. package/dist/notion-stream.css +1 -0
  89. package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
  90. package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-B34lFb6T.mjs} +1 -1
  91. package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-C9xcJQVN.js} +1 -1
  92. package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-Bz_jfTd_.js} +1 -1
  93. package/dist/pie-7BOR55EZ-DW2Zgje5.mjs +5 -0
  94. package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-CKzchAXU.js} +2 -2
  95. package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-Ctp6QR7f.mjs} +21 -21
  96. package/dist/quadrantDiagram-AYHSOK5B-D2Rt32D2.js +7 -0
  97. package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-D3U_Qicu.mjs} +230 -232
  98. package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-CO5ECFHq.mjs} +1 -1
  99. package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-DI4PJJjm.js} +1 -1
  100. package/dist/requirementDiagram-UZGBJVZJ-CSgb6U9N.js +64 -0
  101. package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-Da_yWSD1.mjs} +190 -192
  102. package/dist/sankeyDiagram-TZEHDZUN-C8jpBnM0.js +10 -0
  103. package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-Dp3Eyl8Q.mjs} +189 -189
  104. package/dist/sequenceDiagram-WL72ISMW-BZJ7d_X4.js +145 -0
  105. package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-yJKe02sV.mjs} +222 -229
  106. package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-Cfuygt_P.js} +1 -1
  107. package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-z0IX85WL.mjs} +4 -4
  108. package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-BDMFqSat.mjs} +2 -2
  109. package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-BiriAQkj.js} +1 -1
  110. package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-BmEq-RM3.mjs} +217 -223
  111. package/dist/timeline-definition-IT6M3QCI-CBmpRgUM.js +61 -0
  112. package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-IaHP18r_.mjs} +1 -1
  113. package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-qP0VzKwW.js} +1 -1
  114. package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BSaI76KX.mjs} +7 -7
  115. package/dist/xychartDiagram-PRI3JC2R-CQgij0Fy.js +7 -0
  116. package/package.json +5 -5
  117. package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
  118. package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
  119. package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
  120. package/dist/channel-6dUO0MQi.js +0 -1
  121. package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
  122. package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
  123. package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
  124. package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
  125. package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
  126. package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
  127. package/dist/clone-B0UaPT2Z.js +0 -1
  128. package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
  129. package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
  130. package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
  131. package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
  132. package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
  133. package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
  134. package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
  135. package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
  136. package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
  137. package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
  138. package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
  139. package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
  140. package/dist/index-CkYZRBYn.js +0 -676
  141. package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
  142. package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
  143. package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
  144. package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
  145. package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
  146. package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
  147. package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
  148. package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
  149. package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
  150. package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
  151. package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
  152. package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
  153. package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
  154. package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
@@ -1,162 +1,161 @@
1
- import { g as le } from "./chunk-55IACEB6-Du1Simcj.mjs";
2
- import { s as he } from "./chunk-QN33PNHL-B_PGnTkk.mjs";
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-oe4HpmeG.mjs";
1
+ import { g as le } from "./chunk-55IACEB6-iKbZBHA5.mjs";
2
+ import { s as he } from "./chunk-QN33PNHL-ZaWv5vaA.mjs";
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-DH3CVXwD.mjs";
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;
@@ -164,12 +163,12 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
164
163
  }
165
164
  return !0;
166
165
  }, "parse")
167
- }, se = /* @__PURE__ */ function() {
168
- var v = {
166
+ }, se = /* @__PURE__ */ (function() {
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;
427
- }();
428
- G.lexer = se;
429
- function P() {
425
+ return x;
426
+ })();
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();
433
- }();
434
- q.parser = q;
435
- var De = q, x = {
431
+ return l(A, "Parser"), A.prototype = F, F.Parser = A, new A();
432
+ })();
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) {
@@ -537,6 +535,7 @@ var De = q, x = {
537
535
  return "bang";
538
536
  case this.nodeType.HEXAGON:
539
537
  return "hexgon";
538
+ // cspell: disable-line
540
539
  default:
541
540
  return "no-border";
542
541
  }
@@ -548,9 +547,9 @@ var De = q, x = {
548
547
  */
549
548
  assignSections(e, n) {
550
549
  if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
551
- for (const [c, u] of e.children.entries()) {
550
+ for (const [c, f] of e.children.entries()) {
552
551
  const h = e.level === 0 ? c : n;
553
- this.assignSections(u, h);
552
+ this.assignSections(f, h);
554
553
  }
555
554
  }
556
555
  /**
@@ -561,23 +560,23 @@ var De = q, x = {
561
560
  flattenNodes(e, n) {
562
561
  const c = ["mindmap-node"];
563
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);
564
- const u = c.join(" "), h = /* @__PURE__ */ l((y) => {
565
- switch (y) {
566
- case x.CIRCLE:
563
+ const f = c.join(" "), h = /* @__PURE__ */ l((m) => {
564
+ switch (m) {
565
+ case L.CIRCLE:
567
566
  return "mindmapCircle";
568
- case x.RECT:
567
+ case L.RECT:
569
568
  return "rect";
570
- case x.ROUNDED_RECT:
569
+ case L.ROUNDED_RECT:
571
570
  return "rounded";
572
- case x.CLOUD:
571
+ case L.CLOUD:
573
572
  return "cloud";
574
- case x.BANG:
573
+ case L.BANG:
575
574
  return "bang";
576
- case x.HEXAGON:
575
+ case L.HEXAGON:
577
576
  return "hexagon";
578
- case x.DEFAULT:
577
+ case L.DEFAULT:
579
578
  return "defaultMindmapNode";
580
- case x.NO_BORDER:
579
+ case L.NO_BORDER:
581
580
  default:
582
581
  return "rect";
583
582
  }
@@ -590,7 +589,7 @@ var De = q, x = {
590
589
  width: e.width,
591
590
  height: e.height ?? 0,
592
591
  padding: e.padding,
593
- cssClasses: u,
592
+ cssClasses: f,
594
593
  cssStyles: [],
595
594
  look: "default",
596
595
  icon: e.icon,
@@ -603,8 +602,8 @@ var De = q, x = {
603
602
  section: e.section
604
603
  };
605
604
  if (n.push(p), e.children)
606
- for (const y of e.children)
607
- this.flattenNodes(y, n);
605
+ for (const m of e.children)
606
+ this.flattenNodes(m, n);
608
607
  }
609
608
  /**
610
609
  * Generate edges from parent-child relationships in mindmap tree
@@ -614,10 +613,10 @@ var De = q, x = {
614
613
  generateEdges(e, n) {
615
614
  if (e.children)
616
615
  for (const c of e.children) {
617
- let u = "edge";
618
- c.section !== void 0 && (u += ` section-edge-${c.section}`);
616
+ let f = "edge";
617
+ c.section !== void 0 && (f += ` section-edge-${c.section}`);
619
618
  const h = e.level + 1;
620
- u += ` edge-depth-${h}`;
619
+ f += ` edge-depth-${h}`;
621
620
  const p = {
622
621
  id: `edge_${e.id}_${c.id}`,
623
622
  start: e.id.toString(),
@@ -626,7 +625,7 @@ var De = q, x = {
626
625
  curve: "basis",
627
626
  thickness: "normal",
628
627
  look: "default",
629
- classes: u,
628
+ classes: f,
630
629
  // Store mindmap-specific data
631
630
  depth: e.level,
632
631
  section: c.section
@@ -640,29 +639,29 @@ var De = q, x = {
640
639
  * @returns Structured data containing nodes, edges, and config
641
640
  */
642
641
  getData() {
643
- const e = this.getMindmap(), n = X(), u = ue().layout !== void 0, h = n;
644
- 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)
645
644
  return {
646
645
  nodes: [],
647
646
  edges: [],
648
647
  config: h
649
648
  };
650
- C.debug("getData: mindmapRoot", e, n), this.assignSections(e);
651
- const p = [], y = [];
652
- this.flattenNodes(e, p), this.generateEdges(e, y), C.debug(
653
- `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`
654
653
  );
655
- const _ = /* @__PURE__ */ new Map();
656
- for (const b of p)
657
- _.set(b.id, {
658
- shape: b.shape,
659
- width: b.width,
660
- height: b.height,
661
- 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
662
661
  });
663
662
  return {
664
663
  nodes: p,
665
- edges: y,
664
+ edges: m,
666
665
  config: h,
667
666
  // Store the root node for mindmap-specific layout algorithms
668
667
  rootNode: e,
@@ -676,7 +675,7 @@ var De = q, x = {
676
675
  rankSpacing: 50,
677
676
  // Default spacing between ranks
678
677
  // Add shapes for ELK compatibility
679
- shapes: Object.fromEntries(_),
678
+ shapes: Object.fromEntries(u),
680
679
  // Additional properties that layout algorithms might expect
681
680
  type: "mindmap",
682
681
  diagramId: "mindmap-" + Se()
@@ -684,22 +683,21 @@ var De = q, x = {
684
683
  }
685
684
  // Expose logger to grammar
686
685
  getLogger() {
687
- return C;
686
+ return I;
688
687
  }
689
- }, l(R, "MindmapDB"), R), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
690
- var _, b;
691
- C.debug(`Rendering mindmap diagram
688
+ }, l(C, "MindmapDB"), C), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
689
+ I.debug(`Rendering mindmap diagram
692
690
  ` + t);
693
- 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);
694
692
  h.type = c.type, h.layoutAlgorithm = de(h.config.layout, {
695
693
  fallback: "cose-bilkent"
696
- }), h.diagramId = e, u.getMindmap() && (h.nodes.forEach((m) => {
697
- 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);
698
696
  }), await ge(h, p), he(
699
697
  p,
700
- ((_ = h.config.mindmap) == null ? void 0 : _.padding) ?? j.mindmap.padding,
698
+ h.config.mindmap?.padding ?? B.mindmap.padding,
701
699
  "mindmapDiagram",
702
- ((b = h.config.mindmap) == null ? void 0 : b.useMaxWidth) ?? j.mindmap.useMaxWidth
700
+ h.config.mindmap?.useMaxWidth ?? B.mindmap.useMaxWidth
703
701
  ));
704
702
  }, "draw"), Le = {
705
703
  draw: ke