@versini/sassysaint 8.118.3 → 8.119.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.CzRPl_ZJ.js → AboutChangelog.B3zToB4T.js} +2 -2
- package/dist/chunks/{AboutEntry.T0dEx5ss.js → AboutEntry.Dc0GMtzL.js} +7 -7
- package/dist/chunks/{App.b-02jOnK.js → App.Bcw00dJK.js} +648 -647
- package/dist/chunks/{BubbleActions.DlzjlTV0.js → BubbleActions.BcwPpzhU.js} +3 -3
- package/dist/chunks/ButtonIconDelete.CASHORv6.js +523 -0
- package/dist/chunks/{Chart.DGg3yX93.js → Chart.B0oqrdYo.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DuOK1hTq.js → ChatBubbleAssistant.DAwx85Wd.js} +9 -6
- package/dist/chunks/{ChatBubbleUser.BbO4WHsG.js → ChatBubbleUser.BRTLYDmZ.js} +4 -4
- package/dist/chunks/HistoryDataGrid.Bg984Jd_.js +465 -0
- package/dist/chunks/HistoryEntry.4GpBDf9x.js +305 -0
- package/dist/chunks/InlineFilter.Cv_LUpTp.js +123 -0
- package/dist/chunks/{LoginEntry.BzDE1Poe.js → LoginEntry.5bQhuYQl.js} +4 -4
- package/dist/chunks/{LogoEntry.cAcKJnnq.js → LogoEntry.CN5P16eA.js} +175 -163
- package/dist/chunks/{MemoriesEntry.BOW5ccxB.js → MemoriesEntry.D0q1U5FD.js} +234 -206
- package/dist/chunks/{ProfileEntry.D0ZvtSLW.js → ProfileEntry.Ck-5SP70.js} +4 -4
- package/dist/chunks/{SettingsEntry.Cu6XoVBP.js → SettingsEntry.CfB9DKIp.js} +5 -5
- package/dist/chunks/{UsageEntry.Dg2VQMNQ.js → UsageEntry.BCFJMOjQ.js} +5 -5
- package/dist/chunks/{_baseUniq.CDFOdpsq.js → _baseUniq.DRTEXwBu.js} +1 -1
- package/dist/chunks/{arc.DIMWacuO.js → arc.x_GRGNuD.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.EZuTwf79.js → architecture-U656AL7Q.DSfD0nUy.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.XWG69Opw.js → architectureDiagram-VXUJARFQ.CAS-oDjc.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.DTDyWto5.js → blockDiagram-VD42YOAC.P_XB2AgQ.js} +5 -5
- package/dist/chunks/{browser.BUwFK0it.js → browser.oW1ZW8ge.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.CiOZ3jjz.js → c4Diagram-YG6GDRKO.Dc9Vyv3k.js} +2 -2
- package/dist/chunks/{channel.CNtCxYS9.js → channel.TjlRRr3U.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.BmiSnljb.js → chunk-4BX2VUAB.BwgmyLAX.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.CypQ3DlX.js → chunk-55IACEB6.Cgq1oeLK.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.CAsGHOXd.js → chunk-B4BG7PRW.Ds2wbzEG.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.BsvwBeSE.js → chunk-DI55MBZ5.Bft9jyaz.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.CMZG9a_j.js → chunk-FMBD7UC4.DF-Zr883.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.B1G6yVKe.js → chunk-QN33PNHL.BVMRH_Hs.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.BVTUFZ9G.js → chunk-QZHKN3VN.DS306ds1.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.Cj68sFYC.js → chunk-TZMSLE5B.Cl4RUaGp.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.BdBLe1Pm.js → classDiagram-2ON5EDUG.DbFfjSp_.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.BdBLe1Pm.js → classDiagram-v2-WZHVMYZB.DbFfjSp_.js} +2 -2
- package/dist/chunks/{clone.Bl1H1sdZ.js → clone.B8XxgJj0.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.BngEZF8t.js → cose-bilkent-S5V4N54A.CL-tsB7O.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.BIOJIiYB.js → dagre-6UL2VRFP.7xKesqEK.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.BA3fj6Nq.js → diagram-PSM6KHXK.D6JNXJQr.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.BDz34UEM.js → diagram-QEK2KX5R.VaJKE9Ih.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.BtdDbeYp.js → diagram-S2PKOQOG.BjCuqhPd.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.DYaFc4z-.js → erDiagram-Q2GNP2WA.BYnxwTG-.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.D-v3of4Q.js → flowDiagram-NV44I4VS.DefWDma3.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.oDBdmAkc.js → ganttDiagram-JELNMOA3.BrEeaW2n.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.DN2di_Fe.js → gitGraph-F6HP7TQM.C4_YWAr0.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.DajMwrkL.js → gitGraphDiagram-NY62KEGX.GGrXKGya.js} +4 -4
- package/dist/chunks/{graph.B6hUKMGa.js → graph.BxDrvENy.js} +2 -2
- package/dist/chunks/{index.BP0mr4EX.js → index.BMADibmh.js} +3 -3
- package/dist/chunks/{index.Ce-phw-r.js → index.CR0NHbVR.js} +1 -1
- package/dist/chunks/{index.5G9kbS3g.js → index.CZRaE0eA.js} +1 -1
- package/dist/chunks/{index.BK8xVBCf.js → index.CsAjUl3G.js} +3 -3
- package/dist/chunks/{index.DVhdxxbV.js → index.DOwjLeiM.js} +1 -1
- package/dist/chunks/{index.BdK0dyZF.js → index.DS9SCH32.js} +1 -1
- package/dist/chunks/{index.WKe5H80p.js → index.DvThh-C6.js} +1 -1
- package/dist/chunks/{index.CK-6GwI_.js → index.o4ZD5ALX.js} +5 -5
- package/dist/chunks/{index.BYnYkgl6.js → index.tqKeN7sl.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.Ff-LQyU7.js → info-NVLQJR56.E0G9wIVE.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.B1g8ka0M.js → infoDiagram-WHAUD3N6.CY9ADLsc.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.B2pvmFIq.js → journeyDiagram-XKPGCS4Q.BZHhK7w4.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.86ACWbVN.js → kanban-definition-3W4ZIXB7.DQSZD0Em.js} +2 -2
- package/dist/chunks/{layout.BTjGFptt.js → layout.DUh_4gWb.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.AD6ac88f.js → mermaid-parser.core.lAJFSSvC.js} +10 -10
- package/dist/chunks/{min.D3P2ZKZS.js → min.B3NH5ZNz.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.DODKOgNQ.js → mindmap-definition-VGOIOE7T.CVTcq_-S.js} +257 -232
- package/dist/chunks/{packet-BFZMPI3H.5TsgoQAg.js → packet-BFZMPI3H.CaaCaP6S.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.Cjt_2-eq.js → pie-7BOR55EZ.Ctr5Wngs.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.C5d0mn2P.js → pieDiagram-ADFJNKIX.v0K5SYBL.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.Cpz6Q0uO.js → quadrantDiagram-AYHSOK5B.CSGhc5R-.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.C4ikLYa9.js → radar-NHE76QYJ.BYJioslS.js} +1 -1
- package/dist/chunks/{rehype-mermaid.BAT9MpFC.js → rehype-mermaid.CYJb7tO-.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.BxNfK087.js → requirementDiagram-UZGBJVZJ.07FdvPam.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.DbQNnnUN.js → sankeyDiagram-TZEHDZUN.BJQl-LVq.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.BJlAOxoz.js → sequenceDiagram-WL72ISMW.D3HP-wCt.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.Dv1-v3Pv.js → stateDiagram-FKZM4ZOC.uXuYKEnS.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.C7A0KOQG.js → stateDiagram-v2-4FDKWEC3.i7NR_lBC.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.BnnEO1qA.js → timeline-definition-IT6M3QCI.CfrxZtW7.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.ktiMR3IF.js → treemap-KMMF4GRG.D0E-EXib.js} +1 -1
- package/dist/chunks/{useMarkdown.gc4xGDfZ.js → useMarkdown.CVmi3L7b.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.RJg0uRPz.js → xychartDiagram-PRI3JC2R.BedGeb-X.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/chunks/ButtonIconDelete.c_Sj_7Q4.js +0 -326
- package/dist/chunks/ChatHistoryTable.6lV7mI6Q.js +0 -322
- package/dist/chunks/HistoryEntry.C8W5YNCP.js +0 -333
- package/dist/chunks/useAnimatedHeight.CkKrKI_C.js +0 -91
|
@@ -1,21 +1,46 @@
|
|
|
1
|
-
import { getDiagramElement as
|
|
2
|
-
import { setupViewPortForSVG as
|
|
3
|
-
import { __name as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { getDiagramElement as le } from "./chunk-55IACEB6.Cgq1oeLK.js";
|
|
2
|
+
import { setupViewPortForSVG as he } from "./chunk-QN33PNHL.BVMRH_Hs.js";
|
|
3
|
+
import { __name as l, log as I, getRegisteredLayoutAlgorithm as de, render as ge, defaultConfig_default as B, getConfig2 as z, sanitizeText as V, getUserDefinedConfig as ue, isDark as pe, lighten as fe, darken as ye } from "./rehype-mermaid.CYJb7tO-.js";
|
|
4
|
+
const E = [];
|
|
5
|
+
for (let t = 0; t < 256; ++t)
|
|
6
|
+
E.push((t + 256).toString(16).slice(1));
|
|
7
|
+
function me(t, e = 0) {
|
|
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
|
+
}
|
|
10
|
+
let W;
|
|
11
|
+
const Ee = new Uint8Array(16);
|
|
12
|
+
function _e() {
|
|
13
|
+
if (!W) {
|
|
14
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
15
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
16
|
+
W = crypto.getRandomValues.bind(crypto);
|
|
17
|
+
}
|
|
18
|
+
return W(Ee);
|
|
19
|
+
}
|
|
20
|
+
const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
|
|
21
|
+
function Se(t, e, n) {
|
|
22
|
+
if (ne.randomUUID && !t)
|
|
23
|
+
return ne.randomUUID();
|
|
24
|
+
t = t || {};
|
|
25
|
+
const c = t.random ?? t.rng?.() ?? _e();
|
|
26
|
+
if (c.length < 16)
|
|
27
|
+
throw new Error("Random bytes length must be >= 16");
|
|
28
|
+
return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
|
|
29
|
+
}
|
|
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) ;
|
|
33
|
+
return i;
|
|
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 = {
|
|
35
|
+
trace: /* @__PURE__ */ l(function() {
|
|
11
36
|
}, "trace"),
|
|
12
37
|
yy: {},
|
|
13
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 },
|
|
14
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" },
|
|
15
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]],
|
|
16
|
-
performAction: /* @__PURE__ */
|
|
17
|
-
var
|
|
18
|
-
switch (
|
|
41
|
+
performAction: /* @__PURE__ */ l(function(s, i, o, a, g, r, w) {
|
|
42
|
+
var d = r.length - 1;
|
|
43
|
+
switch (g) {
|
|
19
44
|
case 6:
|
|
20
45
|
case 7:
|
|
21
46
|
return a;
|
|
@@ -32,105 +57,105 @@ var z = (function() {
|
|
|
32
57
|
a.getLogger().trace("Stop EOF2 ");
|
|
33
58
|
break;
|
|
34
59
|
case 15:
|
|
35
|
-
a.getLogger().info("Node: ",
|
|
60
|
+
a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
|
|
36
61
|
break;
|
|
37
62
|
case 16:
|
|
38
|
-
a.getLogger().trace("Icon: ",
|
|
63
|
+
a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
|
|
39
64
|
break;
|
|
40
65
|
case 17:
|
|
41
66
|
case 21:
|
|
42
|
-
a.decorateNode({ class:
|
|
67
|
+
a.decorateNode({ class: r[d] });
|
|
43
68
|
break;
|
|
44
69
|
case 18:
|
|
45
70
|
a.getLogger().trace("SPACELIST");
|
|
46
71
|
break;
|
|
47
72
|
case 19:
|
|
48
|
-
a.getLogger().trace("Node: ",
|
|
73
|
+
a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
|
|
49
74
|
break;
|
|
50
75
|
case 20:
|
|
51
|
-
a.decorateNode({ icon:
|
|
76
|
+
a.decorateNode({ icon: r[d] });
|
|
52
77
|
break;
|
|
53
78
|
case 25:
|
|
54
|
-
a.getLogger().trace("node found ..",
|
|
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]) };
|
|
55
80
|
break;
|
|
56
81
|
case 26:
|
|
57
|
-
this.$ = { id:
|
|
82
|
+
this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
|
|
58
83
|
break;
|
|
59
84
|
case 27:
|
|
60
|
-
a.getLogger().trace("node found ..",
|
|
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]) };
|
|
61
86
|
break;
|
|
62
87
|
}
|
|
63
88
|
}, "anonymous"),
|
|
64
|
-
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:
|
|
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])],
|
|
65
90
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
66
|
-
parseError: /* @__PURE__ */
|
|
67
|
-
if (
|
|
91
|
+
parseError: /* @__PURE__ */ l(function(s, i) {
|
|
92
|
+
if (i.recoverable)
|
|
68
93
|
this.trace(s);
|
|
69
94
|
else {
|
|
70
95
|
var o = new Error(s);
|
|
71
|
-
throw o.hash =
|
|
96
|
+
throw o.hash = i, o;
|
|
72
97
|
}
|
|
73
98
|
}, "parseError"),
|
|
74
|
-
parse: /* @__PURE__ */
|
|
75
|
-
var
|
|
76
|
-
for (var
|
|
77
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
78
|
-
y.setInput(s,
|
|
99
|
+
parse: /* @__PURE__ */ l(function(s) {
|
|
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 = {});
|
|
79
104
|
var G = y.yylloc;
|
|
80
|
-
|
|
81
|
-
var
|
|
82
|
-
typeof
|
|
83
|
-
function
|
|
84
|
-
o.length = o.length - 2 *
|
|
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;
|
|
85
110
|
}
|
|
86
|
-
|
|
87
|
-
function
|
|
88
|
-
var
|
|
89
|
-
return
|
|
111
|
+
l(ce, "popStack");
|
|
112
|
+
function te() {
|
|
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;
|
|
90
115
|
}
|
|
91
|
-
|
|
92
|
-
for (var
|
|
93
|
-
if (
|
|
116
|
+
l(te, "lex");
|
|
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]) {
|
|
94
119
|
var $ = "";
|
|
95
120
|
M = [];
|
|
96
|
-
for (P in
|
|
97
|
-
this.terminals_[P] && P >
|
|
98
|
-
y.showPosition ? $ = "Parse error on line " + (
|
|
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) + `:
|
|
99
124
|
` + y.showPosition() + `
|
|
100
|
-
Expecting ` + M.join(", ") + ", got '" + (this.terminals_[
|
|
125
|
+
Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "Parse error on line " + (U + 1) + ": Unexpected " + (_ == ee ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError($, {
|
|
101
126
|
text: y.match,
|
|
102
|
-
token: this.terminals_[
|
|
127
|
+
token: this.terminals_[_] || _,
|
|
103
128
|
line: y.yylineno,
|
|
104
129
|
loc: G,
|
|
105
130
|
expected: M
|
|
106
131
|
});
|
|
107
132
|
}
|
|
108
|
-
if (
|
|
109
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
110
|
-
switch (
|
|
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]) {
|
|
111
136
|
case 1:
|
|
112
|
-
o.push(
|
|
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;
|
|
113
138
|
break;
|
|
114
139
|
case 2:
|
|
115
|
-
if (
|
|
116
|
-
first_line:
|
|
117
|
-
last_line:
|
|
118
|
-
first_column:
|
|
119
|
-
last_column:
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
]),
|
|
124
|
-
g,
|
|
125
|
-
K,
|
|
126
|
-
w,
|
|
127
|
-
x.yy,
|
|
128
|
-
S[1],
|
|
140
|
+
if (k = this.productions_[D[1]][1], O.$ = g[g.length - k], O._$ = {
|
|
141
|
+
first_line: r[r.length - (k || 1)].first_line,
|
|
142
|
+
last_line: r[r.length - 1].last_line,
|
|
143
|
+
first_column: r[r.length - (k || 1)].first_column,
|
|
144
|
+
last_column: r[r.length - 1].last_column
|
|
145
|
+
}, ae && (O._$.range = [
|
|
146
|
+
r[r.length - (k || 1)].range[0],
|
|
147
|
+
r[r.length - 1].range[1]
|
|
148
|
+
]), H = this.performAction.apply(O, [
|
|
129
149
|
d,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
150
|
+
Z,
|
|
151
|
+
U,
|
|
152
|
+
v.yy,
|
|
153
|
+
D[1],
|
|
154
|
+
g,
|
|
155
|
+
r
|
|
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);
|
|
134
159
|
break;
|
|
135
160
|
case 3:
|
|
136
161
|
return !0;
|
|
@@ -138,18 +163,18 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
138
163
|
}
|
|
139
164
|
return !0;
|
|
140
165
|
}, "parse")
|
|
141
|
-
},
|
|
142
|
-
var
|
|
166
|
+
}, se = /* @__PURE__ */ (function() {
|
|
167
|
+
var x = {
|
|
143
168
|
EOF: 1,
|
|
144
|
-
parseError: /* @__PURE__ */
|
|
169
|
+
parseError: /* @__PURE__ */ l(function(i, o) {
|
|
145
170
|
if (this.yy.parser)
|
|
146
|
-
this.yy.parser.parseError(
|
|
171
|
+
this.yy.parser.parseError(i, o);
|
|
147
172
|
else
|
|
148
|
-
throw new Error(
|
|
173
|
+
throw new Error(i);
|
|
149
174
|
}, "parseError"),
|
|
150
175
|
// resets the lexer, sets new input
|
|
151
|
-
setInput: /* @__PURE__ */
|
|
152
|
-
return this.yy =
|
|
176
|
+
setInput: /* @__PURE__ */ l(function(s, i) {
|
|
177
|
+
return this.yy = i || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
153
178
|
first_line: 1,
|
|
154
179
|
first_column: 0,
|
|
155
180
|
last_line: 1,
|
|
@@ -157,32 +182,32 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
157
182
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
158
183
|
}, "setInput"),
|
|
159
184
|
// consumes and returns one char from the input
|
|
160
|
-
input: /* @__PURE__ */
|
|
185
|
+
input: /* @__PURE__ */ l(function() {
|
|
161
186
|
var s = this._input[0];
|
|
162
187
|
this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
|
|
163
|
-
var
|
|
164
|
-
return
|
|
188
|
+
var i = s.match(/(?:\r\n?|\n).*/g);
|
|
189
|
+
return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
|
|
165
190
|
}, "input"),
|
|
166
191
|
// unshifts one char (or a string) into the input
|
|
167
|
-
unput: /* @__PURE__ */
|
|
168
|
-
var
|
|
169
|
-
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
192
|
+
unput: /* @__PURE__ */ l(function(s) {
|
|
193
|
+
var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
|
|
194
|
+
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
170
195
|
var a = this.match.split(/(?:\r\n?|\n)/g);
|
|
171
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);
|
|
172
|
-
var
|
|
197
|
+
var g = this.yylloc.range;
|
|
173
198
|
return this.yylloc = {
|
|
174
199
|
first_line: this.yylloc.first_line,
|
|
175
200
|
last_line: this.yylineno + 1,
|
|
176
201
|
first_column: this.yylloc.first_column,
|
|
177
|
-
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 -
|
|
178
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
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
|
|
203
|
+
}, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
179
204
|
}, "unput"),
|
|
180
205
|
// When called from action, caches matched text and appends it on next action
|
|
181
|
-
more: /* @__PURE__ */
|
|
206
|
+
more: /* @__PURE__ */ l(function() {
|
|
182
207
|
return this._more = !0, this;
|
|
183
208
|
}, "more"),
|
|
184
209
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
185
|
-
reject: /* @__PURE__ */
|
|
210
|
+
reject: /* @__PURE__ */ l(function() {
|
|
186
211
|
if (this.options.backtrack_lexer)
|
|
187
212
|
this._backtrack = !0;
|
|
188
213
|
else
|
|
@@ -195,29 +220,29 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
195
220
|
return this;
|
|
196
221
|
}, "reject"),
|
|
197
222
|
// retain first n characters of the match
|
|
198
|
-
less: /* @__PURE__ */
|
|
223
|
+
less: /* @__PURE__ */ l(function(s) {
|
|
199
224
|
this.unput(this.match.slice(s));
|
|
200
225
|
}, "less"),
|
|
201
226
|
// displays already matched input, i.e. for error messages
|
|
202
|
-
pastInput: /* @__PURE__ */
|
|
227
|
+
pastInput: /* @__PURE__ */ l(function() {
|
|
203
228
|
var s = this.matched.substr(0, this.matched.length - this.match.length);
|
|
204
229
|
return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
|
|
205
230
|
}, "pastInput"),
|
|
206
231
|
// displays upcoming input, i.e. for error messages
|
|
207
|
-
upcomingInput: /* @__PURE__ */
|
|
232
|
+
upcomingInput: /* @__PURE__ */ l(function() {
|
|
208
233
|
var s = this.match;
|
|
209
234
|
return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
210
235
|
}, "upcomingInput"),
|
|
211
236
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
212
|
-
showPosition: /* @__PURE__ */
|
|
213
|
-
var s = this.pastInput(),
|
|
237
|
+
showPosition: /* @__PURE__ */ l(function() {
|
|
238
|
+
var s = this.pastInput(), i = new Array(s.length + 1).join("-");
|
|
214
239
|
return s + this.upcomingInput() + `
|
|
215
|
-
` +
|
|
240
|
+
` + i + "^";
|
|
216
241
|
}, "showPosition"),
|
|
217
242
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
218
|
-
test_match: /* @__PURE__ */
|
|
219
|
-
var o, a,
|
|
220
|
-
if (this.options.backtrack_lexer && (
|
|
243
|
+
test_match: /* @__PURE__ */ l(function(s, i) {
|
|
244
|
+
var o, a, g;
|
|
245
|
+
if (this.options.backtrack_lexer && (g = {
|
|
221
246
|
yylineno: this.yylineno,
|
|
222
247
|
yylloc: {
|
|
223
248
|
first_line: this.yylloc.first_line,
|
|
@@ -236,41 +261,41 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
236
261
|
yy: this.yy,
|
|
237
262
|
conditionStack: this.conditionStack.slice(0),
|
|
238
263
|
done: this.done
|
|
239
|
-
}, this.options.ranges && (
|
|
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 = {
|
|
240
265
|
first_line: this.yylloc.last_line,
|
|
241
266
|
last_line: this.yylineno + 1,
|
|
242
267
|
first_column: this.yylloc.last_column,
|
|
243
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
|
|
244
|
-
}, 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,
|
|
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)
|
|
245
270
|
return o;
|
|
246
271
|
if (this._backtrack) {
|
|
247
|
-
for (var
|
|
248
|
-
this[
|
|
272
|
+
for (var r in g)
|
|
273
|
+
this[r] = g[r];
|
|
249
274
|
return !1;
|
|
250
275
|
}
|
|
251
276
|
return !1;
|
|
252
277
|
}, "test_match"),
|
|
253
278
|
// return next match in input
|
|
254
|
-
next: /* @__PURE__ */
|
|
279
|
+
next: /* @__PURE__ */ l(function() {
|
|
255
280
|
if (this.done)
|
|
256
281
|
return this.EOF;
|
|
257
282
|
this._input || (this.done = !0);
|
|
258
|
-
var s,
|
|
283
|
+
var s, i, o, a;
|
|
259
284
|
this._more || (this.yytext = "", this.match = "");
|
|
260
|
-
for (var
|
|
261
|
-
if (o = this._input.match(this.rules[
|
|
262
|
-
if (
|
|
263
|
-
if (s = this.test_match(o,
|
|
285
|
+
for (var g = this._currentRules(), r = 0; r < g.length; r++)
|
|
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)
|
|
264
289
|
return s;
|
|
265
290
|
if (this._backtrack) {
|
|
266
|
-
|
|
291
|
+
i = !1;
|
|
267
292
|
continue;
|
|
268
293
|
} else
|
|
269
294
|
return !1;
|
|
270
295
|
} else if (!this.options.flex)
|
|
271
296
|
break;
|
|
272
297
|
}
|
|
273
|
-
return
|
|
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.
|
|
274
299
|
` + this.showPosition(), {
|
|
275
300
|
text: "",
|
|
276
301
|
token: null,
|
|
@@ -278,40 +303,40 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
278
303
|
});
|
|
279
304
|
}, "next"),
|
|
280
305
|
// return next match that has a token
|
|
281
|
-
lex: /* @__PURE__ */
|
|
282
|
-
var
|
|
283
|
-
return
|
|
306
|
+
lex: /* @__PURE__ */ l(function() {
|
|
307
|
+
var i = this.next();
|
|
308
|
+
return i || this.lex();
|
|
284
309
|
}, "lex"),
|
|
285
310
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
286
|
-
begin: /* @__PURE__ */
|
|
287
|
-
this.conditionStack.push(
|
|
311
|
+
begin: /* @__PURE__ */ l(function(i) {
|
|
312
|
+
this.conditionStack.push(i);
|
|
288
313
|
}, "begin"),
|
|
289
314
|
// pop the previously active lexer condition state off the condition stack
|
|
290
|
-
popState: /* @__PURE__ */
|
|
291
|
-
var
|
|
292
|
-
return
|
|
315
|
+
popState: /* @__PURE__ */ l(function() {
|
|
316
|
+
var i = this.conditionStack.length - 1;
|
|
317
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
293
318
|
}, "popState"),
|
|
294
319
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
295
|
-
_currentRules: /* @__PURE__ */
|
|
320
|
+
_currentRules: /* @__PURE__ */ l(function() {
|
|
296
321
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
297
322
|
}, "_currentRules"),
|
|
298
323
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
299
|
-
topState: /* @__PURE__ */
|
|
300
|
-
return
|
|
324
|
+
topState: /* @__PURE__ */ l(function(i) {
|
|
325
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
301
326
|
}, "topState"),
|
|
302
327
|
// alias for begin(condition)
|
|
303
|
-
pushState: /* @__PURE__ */
|
|
304
|
-
this.begin(
|
|
328
|
+
pushState: /* @__PURE__ */ l(function(i) {
|
|
329
|
+
this.begin(i);
|
|
305
330
|
}, "pushState"),
|
|
306
331
|
// return the number of states currently on the stack
|
|
307
|
-
stateStackSize: /* @__PURE__ */
|
|
332
|
+
stateStackSize: /* @__PURE__ */ l(function() {
|
|
308
333
|
return this.conditionStack.length;
|
|
309
334
|
}, "stateStackSize"),
|
|
310
335
|
options: { "case-insensitive": !0 },
|
|
311
|
-
performAction: /* @__PURE__ */
|
|
336
|
+
performAction: /* @__PURE__ */ l(function(i, o, a, g) {
|
|
312
337
|
switch (a) {
|
|
313
338
|
case 0:
|
|
314
|
-
return
|
|
339
|
+
return i.getLogger().trace("Found comment", o.yytext), 6;
|
|
315
340
|
case 1:
|
|
316
341
|
return 8;
|
|
317
342
|
case 2:
|
|
@@ -323,25 +348,25 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
323
348
|
this.popState();
|
|
324
349
|
break;
|
|
325
350
|
case 5:
|
|
326
|
-
|
|
351
|
+
i.getLogger().trace("Begin icon"), this.begin("ICON");
|
|
327
352
|
break;
|
|
328
353
|
case 6:
|
|
329
|
-
return
|
|
354
|
+
return i.getLogger().trace("SPACELINE"), 6;
|
|
330
355
|
case 7:
|
|
331
356
|
return 7;
|
|
332
357
|
case 8:
|
|
333
358
|
return 15;
|
|
334
359
|
case 9:
|
|
335
|
-
|
|
360
|
+
i.getLogger().trace("end icon"), this.popState();
|
|
336
361
|
break;
|
|
337
362
|
case 10:
|
|
338
|
-
return
|
|
363
|
+
return i.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
|
|
339
364
|
case 11:
|
|
340
|
-
return
|
|
365
|
+
return i.getLogger().trace("Cloud"), this.begin("NODE"), 19;
|
|
341
366
|
case 12:
|
|
342
|
-
return
|
|
367
|
+
return i.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
|
|
343
368
|
case 13:
|
|
344
|
-
return
|
|
369
|
+
return i.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
|
|
345
370
|
case 14:
|
|
346
371
|
return this.begin("NODE"), 19;
|
|
347
372
|
case 15:
|
|
@@ -365,48 +390,48 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "
|
|
|
365
390
|
this.popState();
|
|
366
391
|
break;
|
|
367
392
|
case 24:
|
|
368
|
-
|
|
393
|
+
i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
369
394
|
break;
|
|
370
395
|
case 25:
|
|
371
|
-
return
|
|
396
|
+
return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
|
|
372
397
|
case 26:
|
|
373
398
|
this.popState();
|
|
374
399
|
break;
|
|
375
400
|
case 27:
|
|
376
|
-
return this.popState(),
|
|
401
|
+
return this.popState(), i.getLogger().trace("node end ))"), "NODE_DEND";
|
|
377
402
|
case 28:
|
|
378
|
-
return this.popState(),
|
|
403
|
+
return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
|
|
379
404
|
case 29:
|
|
380
|
-
return this.popState(),
|
|
405
|
+
return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
|
|
381
406
|
case 30:
|
|
382
|
-
return this.popState(),
|
|
407
|
+
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
383
408
|
case 31:
|
|
384
|
-
return this.popState(),
|
|
409
|
+
return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
|
|
385
410
|
case 32:
|
|
386
|
-
return this.popState(),
|
|
411
|
+
return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
|
|
387
412
|
case 33:
|
|
388
|
-
return this.popState(),
|
|
413
|
+
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
389
414
|
case 34:
|
|
390
|
-
return this.popState(),
|
|
415
|
+
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
391
416
|
case 35:
|
|
392
|
-
return
|
|
417
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
393
418
|
case 36:
|
|
394
|
-
return
|
|
419
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
395
420
|
}
|
|
396
421
|
}, "anonymous"),
|
|
397
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],
|
|
398
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 } }
|
|
399
424
|
};
|
|
400
|
-
return
|
|
425
|
+
return x;
|
|
401
426
|
})();
|
|
402
|
-
F.lexer =
|
|
427
|
+
F.lexer = se;
|
|
403
428
|
function A() {
|
|
404
429
|
this.yy = {};
|
|
405
430
|
}
|
|
406
|
-
return
|
|
431
|
+
return l(A, "Parser"), A.prototype = F, F.Parser = A, new A();
|
|
407
432
|
})();
|
|
408
|
-
|
|
409
|
-
var
|
|
433
|
+
X.parser = X;
|
|
434
|
+
var De = X, L = {
|
|
410
435
|
DEFAULT: 0,
|
|
411
436
|
NO_BORDER: 0,
|
|
412
437
|
ROUNDED_RECT: 1,
|
|
@@ -415,27 +440,27 @@ var fe = z, k = {
|
|
|
415
440
|
CLOUD: 4,
|
|
416
441
|
BANG: 5,
|
|
417
442
|
HEXAGON: 6
|
|
418
|
-
}, C,
|
|
443
|
+
}, C, Ne = (C = class {
|
|
419
444
|
constructor() {
|
|
420
|
-
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType =
|
|
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);
|
|
421
446
|
}
|
|
422
447
|
clear() {
|
|
423
448
|
this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
|
|
424
449
|
}
|
|
425
450
|
getParent(e) {
|
|
426
|
-
for (let
|
|
427
|
-
if (this.nodes[
|
|
428
|
-
return this.nodes[
|
|
451
|
+
for (let n = this.nodes.length - 1; n >= 0; n--)
|
|
452
|
+
if (this.nodes[n].level < e)
|
|
453
|
+
return this.nodes[n];
|
|
429
454
|
return null;
|
|
430
455
|
}
|
|
431
456
|
getMindmap() {
|
|
432
457
|
return this.nodes.length > 0 ? this.nodes[0] : null;
|
|
433
458
|
}
|
|
434
|
-
addNode(e,
|
|
435
|
-
|
|
459
|
+
addNode(e, n, c, f) {
|
|
460
|
+
I.info("addNode", e, n, c, f);
|
|
436
461
|
let h = !1;
|
|
437
462
|
this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
|
|
438
|
-
const p =
|
|
463
|
+
const p = z();
|
|
439
464
|
let m = p.mindmap?.padding ?? B.mindmap.padding;
|
|
440
465
|
switch (f) {
|
|
441
466
|
case this.nodeType.ROUNDED_RECT:
|
|
@@ -446,9 +471,9 @@ var fe = z, k = {
|
|
|
446
471
|
}
|
|
447
472
|
const u = {
|
|
448
473
|
id: this.count++,
|
|
449
|
-
nodeId:
|
|
474
|
+
nodeId: V(n, p),
|
|
450
475
|
level: e,
|
|
451
|
-
descr:
|
|
476
|
+
descr: V(c, p),
|
|
452
477
|
type: f,
|
|
453
478
|
children: [],
|
|
454
479
|
width: p.mindmap?.maxNodeWidth ?? B.mindmap.maxNodeWidth,
|
|
@@ -464,12 +489,12 @@ var fe = z, k = {
|
|
|
464
489
|
`There can be only one root. No parent could be found for ("${u.descr}")`
|
|
465
490
|
);
|
|
466
491
|
}
|
|
467
|
-
getType(e,
|
|
468
|
-
switch (
|
|
492
|
+
getType(e, n) {
|
|
493
|
+
switch (I.debug("In get type", e, n), e) {
|
|
469
494
|
case "[":
|
|
470
495
|
return this.nodeType.RECT;
|
|
471
496
|
case "(":
|
|
472
|
-
return
|
|
497
|
+
return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
|
|
473
498
|
case "((":
|
|
474
499
|
return this.nodeType.CIRCLE;
|
|
475
500
|
case ")":
|
|
@@ -482,8 +507,8 @@ var fe = z, k = {
|
|
|
482
507
|
return this.nodeType.DEFAULT;
|
|
483
508
|
}
|
|
484
509
|
}
|
|
485
|
-
setElementForId(e,
|
|
486
|
-
this.elements[e] =
|
|
510
|
+
setElementForId(e, n) {
|
|
511
|
+
this.elements[e] = n;
|
|
487
512
|
}
|
|
488
513
|
getElementById(e) {
|
|
489
514
|
return this.elements[e];
|
|
@@ -491,8 +516,8 @@ var fe = z, k = {
|
|
|
491
516
|
decorateNode(e) {
|
|
492
517
|
if (!e)
|
|
493
518
|
return;
|
|
494
|
-
const
|
|
495
|
-
e.icon && (
|
|
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));
|
|
496
521
|
}
|
|
497
522
|
type2Str(e) {
|
|
498
523
|
switch (e) {
|
|
@@ -520,10 +545,10 @@ var fe = z, k = {
|
|
|
520
545
|
* @param node - The mindmap node to process
|
|
521
546
|
* @param sectionNumber - The section number to assign (undefined for root)
|
|
522
547
|
*/
|
|
523
|
-
assignSections(e,
|
|
524
|
-
if (e.level === 0 ? e.section = void 0 : e.section =
|
|
525
|
-
for (const [
|
|
526
|
-
const h = e.level === 0 ?
|
|
548
|
+
assignSections(e, n) {
|
|
549
|
+
if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
|
|
550
|
+
for (const [c, f] of e.children.entries()) {
|
|
551
|
+
const h = e.level === 0 ? c : n;
|
|
527
552
|
this.assignSections(f, h);
|
|
528
553
|
}
|
|
529
554
|
}
|
|
@@ -532,26 +557,26 @@ var fe = z, k = {
|
|
|
532
557
|
* @param node - The mindmap node to process
|
|
533
558
|
* @param processedNodes - Array to collect processed nodes
|
|
534
559
|
*/
|
|
535
|
-
flattenNodes(e,
|
|
536
|
-
const
|
|
537
|
-
e.isRoot === !0 ?
|
|
538
|
-
const f =
|
|
560
|
+
flattenNodes(e, n) {
|
|
561
|
+
const c = ["mindmap-node"];
|
|
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);
|
|
563
|
+
const f = c.join(" "), h = /* @__PURE__ */ l((m) => {
|
|
539
564
|
switch (m) {
|
|
540
|
-
case
|
|
565
|
+
case L.CIRCLE:
|
|
541
566
|
return "mindmapCircle";
|
|
542
|
-
case
|
|
567
|
+
case L.RECT:
|
|
543
568
|
return "rect";
|
|
544
|
-
case
|
|
569
|
+
case L.ROUNDED_RECT:
|
|
545
570
|
return "rounded";
|
|
546
|
-
case
|
|
571
|
+
case L.CLOUD:
|
|
547
572
|
return "cloud";
|
|
548
|
-
case
|
|
573
|
+
case L.BANG:
|
|
549
574
|
return "bang";
|
|
550
|
-
case
|
|
575
|
+
case L.HEXAGON:
|
|
551
576
|
return "hexagon";
|
|
552
|
-
case
|
|
577
|
+
case L.DEFAULT:
|
|
553
578
|
return "defaultMindmapNode";
|
|
554
|
-
case
|
|
579
|
+
case L.NO_BORDER:
|
|
555
580
|
default:
|
|
556
581
|
return "rect";
|
|
557
582
|
}
|
|
@@ -576,26 +601,26 @@ var fe = z, k = {
|
|
|
576
601
|
type: e.type,
|
|
577
602
|
section: e.section
|
|
578
603
|
};
|
|
579
|
-
if (
|
|
604
|
+
if (n.push(p), e.children)
|
|
580
605
|
for (const m of e.children)
|
|
581
|
-
this.flattenNodes(m,
|
|
606
|
+
this.flattenNodes(m, n);
|
|
582
607
|
}
|
|
583
608
|
/**
|
|
584
609
|
* Generate edges from parent-child relationships in mindmap tree
|
|
585
610
|
* @param node - The mindmap node to process
|
|
586
611
|
* @param edges - Array to collect edges
|
|
587
612
|
*/
|
|
588
|
-
generateEdges(e,
|
|
613
|
+
generateEdges(e, n) {
|
|
589
614
|
if (e.children)
|
|
590
|
-
for (const
|
|
615
|
+
for (const c of e.children) {
|
|
591
616
|
let f = "edge";
|
|
592
|
-
|
|
617
|
+
c.section !== void 0 && (f += ` section-edge-${c.section}`);
|
|
593
618
|
const h = e.level + 1;
|
|
594
619
|
f += ` edge-depth-${h}`;
|
|
595
620
|
const p = {
|
|
596
|
-
id: `edge_${e.id}_${
|
|
621
|
+
id: `edge_${e.id}_${c.id}`,
|
|
597
622
|
start: e.id.toString(),
|
|
598
|
-
end:
|
|
623
|
+
end: c.id.toString(),
|
|
599
624
|
type: "normal",
|
|
600
625
|
curve: "basis",
|
|
601
626
|
thickness: "normal",
|
|
@@ -603,9 +628,9 @@ var fe = z, k = {
|
|
|
603
628
|
classes: f,
|
|
604
629
|
// Store mindmap-specific data
|
|
605
630
|
depth: e.level,
|
|
606
|
-
section:
|
|
631
|
+
section: c.section
|
|
607
632
|
};
|
|
608
|
-
|
|
633
|
+
n.push(p), this.generateEdges(c, n);
|
|
609
634
|
}
|
|
610
635
|
}
|
|
611
636
|
/**
|
|
@@ -614,16 +639,16 @@ var fe = z, k = {
|
|
|
614
639
|
* @returns Structured data containing nodes, edges, and config
|
|
615
640
|
*/
|
|
616
641
|
getData() {
|
|
617
|
-
const e = this.getMindmap(),
|
|
642
|
+
const e = this.getMindmap(), n = z(), f = ue().layout !== void 0, h = n;
|
|
618
643
|
if (f || (h.layout = "cose-bilkent"), !e)
|
|
619
644
|
return {
|
|
620
645
|
nodes: [],
|
|
621
646
|
edges: [],
|
|
622
647
|
config: h
|
|
623
648
|
};
|
|
624
|
-
|
|
649
|
+
I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
|
|
625
650
|
const p = [], m = [];
|
|
626
|
-
this.flattenNodes(e, p), this.generateEdges(e, m),
|
|
651
|
+
this.flattenNodes(e, p), this.generateEdges(e, m), I.debug(
|
|
627
652
|
`getData: processed ${p.length} nodes and ${m.length} edges`
|
|
628
653
|
);
|
|
629
654
|
const u = /* @__PURE__ */ new Map();
|
|
@@ -653,54 +678,54 @@ var fe = z, k = {
|
|
|
653
678
|
shapes: Object.fromEntries(u),
|
|
654
679
|
// Additional properties that layout algorithms might expect
|
|
655
680
|
type: "mindmap",
|
|
656
|
-
diagramId: "mindmap-" +
|
|
681
|
+
diagramId: "mindmap-" + Se()
|
|
657
682
|
};
|
|
658
683
|
}
|
|
659
684
|
// Expose logger to grammar
|
|
660
685
|
getLogger() {
|
|
661
|
-
return
|
|
686
|
+
return I;
|
|
662
687
|
}
|
|
663
|
-
},
|
|
664
|
-
|
|
665
|
-
` +
|
|
666
|
-
const f =
|
|
667
|
-
h.type =
|
|
688
|
+
}, l(C, "MindmapDB"), C), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
|
|
689
|
+
I.debug(`Rendering mindmap diagram
|
|
690
|
+
` + t);
|
|
691
|
+
const f = c.db, h = f.getData(), p = le(e, h.config.securityLevel);
|
|
692
|
+
h.type = c.type, h.layoutAlgorithm = de(h.config.layout, {
|
|
668
693
|
fallback: "cose-bilkent"
|
|
669
694
|
}), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
|
|
670
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);
|
|
671
|
-
}), await
|
|
696
|
+
}), await ge(h, p), he(
|
|
672
697
|
p,
|
|
673
698
|
h.config.mindmap?.padding ?? B.mindmap.padding,
|
|
674
699
|
"mindmapDiagram",
|
|
675
700
|
h.config.mindmap?.useMaxWidth ?? B.mindmap.useMaxWidth
|
|
676
701
|
));
|
|
677
|
-
}, "draw"),
|
|
678
|
-
draw:
|
|
679
|
-
},
|
|
702
|
+
}, "draw"), Le = {
|
|
703
|
+
draw: ke
|
|
704
|
+
}, xe = /* @__PURE__ */ l((t) => {
|
|
680
705
|
let e = "";
|
|
681
|
-
for (let
|
|
682
|
-
|
|
683
|
-
for (let
|
|
684
|
-
const
|
|
706
|
+
for (let n = 0; n < t.THEME_COLOR_LIMIT; n++)
|
|
707
|
+
t["lineColor" + n] = t["lineColor" + n] || t["cScaleInv" + n], pe(t["lineColor" + n]) ? t["lineColor" + n] = fe(t["lineColor" + n], 20) : t["lineColor" + n] = ye(t["lineColor" + n], 20);
|
|
708
|
+
for (let n = 0; n < t.THEME_COLOR_LIMIT; n++) {
|
|
709
|
+
const c = "" + (17 - 3 * n);
|
|
685
710
|
e += `
|
|
686
|
-
.section-${
|
|
687
|
-
fill: ${
|
|
711
|
+
.section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
|
|
712
|
+
fill: ${t["cScale" + n]};
|
|
688
713
|
}
|
|
689
|
-
.section-${
|
|
690
|
-
fill: ${
|
|
714
|
+
.section-${n - 1} text {
|
|
715
|
+
fill: ${t["cScaleLabel" + n]};
|
|
691
716
|
}
|
|
692
|
-
.node-icon-${
|
|
717
|
+
.node-icon-${n - 1} {
|
|
693
718
|
font-size: 40px;
|
|
694
|
-
color: ${
|
|
719
|
+
color: ${t["cScaleLabel" + n]};
|
|
695
720
|
}
|
|
696
|
-
.section-edge-${
|
|
697
|
-
stroke: ${
|
|
721
|
+
.section-edge-${n - 1}{
|
|
722
|
+
stroke: ${t["cScale" + n]};
|
|
698
723
|
}
|
|
699
|
-
.edge-depth-${
|
|
700
|
-
stroke-width: ${
|
|
724
|
+
.edge-depth-${n - 1}{
|
|
725
|
+
stroke-width: ${c};
|
|
701
726
|
}
|
|
702
|
-
.section-${
|
|
703
|
-
stroke: ${
|
|
727
|
+
.section-${n - 1} line {
|
|
728
|
+
stroke: ${t["cScaleInv" + n]} ;
|
|
704
729
|
stroke-width: 3;
|
|
705
730
|
}
|
|
706
731
|
|
|
@@ -713,22 +738,22 @@ var fe = z, k = {
|
|
|
713
738
|
`;
|
|
714
739
|
}
|
|
715
740
|
return e;
|
|
716
|
-
}, "genSections"),
|
|
741
|
+
}, "genSections"), ve = /* @__PURE__ */ l((t) => `
|
|
717
742
|
.edge {
|
|
718
743
|
stroke-width: 3;
|
|
719
744
|
}
|
|
720
|
-
${
|
|
745
|
+
${xe(t)}
|
|
721
746
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
722
|
-
fill: ${
|
|
747
|
+
fill: ${t.git0};
|
|
723
748
|
}
|
|
724
749
|
.section-root text {
|
|
725
|
-
fill: ${
|
|
750
|
+
fill: ${t.gitBranchLabel0};
|
|
726
751
|
}
|
|
727
752
|
.section-root span {
|
|
728
|
-
color: ${
|
|
753
|
+
color: ${t.gitBranchLabel0};
|
|
729
754
|
}
|
|
730
755
|
.section-2 span {
|
|
731
|
-
color: ${
|
|
756
|
+
color: ${t.gitBranchLabel0};
|
|
732
757
|
}
|
|
733
758
|
.icon-container {
|
|
734
759
|
height:100%;
|
|
@@ -746,14 +771,14 @@ var fe = z, k = {
|
|
|
746
771
|
dominant-baseline: middle;
|
|
747
772
|
text-align: center;
|
|
748
773
|
}
|
|
749
|
-
`, "getStyles"),
|
|
774
|
+
`, "getStyles"), Te = ve, Re = {
|
|
750
775
|
get db() {
|
|
751
|
-
return new
|
|
776
|
+
return new Ne();
|
|
752
777
|
},
|
|
753
|
-
renderer:
|
|
754
|
-
parser:
|
|
755
|
-
styles:
|
|
778
|
+
renderer: Le,
|
|
779
|
+
parser: De,
|
|
780
|
+
styles: Te
|
|
756
781
|
};
|
|
757
782
|
export {
|
|
758
|
-
|
|
783
|
+
Re as diagram
|
|
759
784
|
};
|