@versini/sassysaint 8.111.0 → 8.111.1
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.C2XY50vz.js → AboutChangelog.DBS-W0Io.js} +2 -2
- package/dist/chunks/{AboutEntry.Cb9SsCPf.js → AboutEntry.BALXq3uG.js} +7 -7
- package/dist/chunks/{App.DGxXr87W.js → App.DYc2zQb9.js} +603 -604
- package/dist/chunks/{Bubble.Clu4S8d6.js → Bubble.CjFOupdI.js} +1 -1
- package/dist/chunks/{ButtonIconDelete.DKVmeb_a.js → ButtonIconDelete.CrLclEN-.js} +2 -2
- package/dist/chunks/{Chart.CWIodG_b.js → Chart.DE2Pj6I-.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.nF6n_UOG.js → ChatBubbleAssistant.Iepb3p0t.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.yDbfqB9q.js → ChatBubbleUser.BfkYxwnc.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.r64gEami.js → ChatHistoryTable.DD5ZuAbI.js} +4 -4
- package/dist/chunks/{HistoryEntry.BYoP2jmh.js → HistoryEntry.C8Ld2sD4.js} +6 -6
- package/dist/chunks/{LoginEntry.fWdybqkL.js → LoginEntry.C6nNtgTg.js} +4 -4
- package/dist/chunks/{LogoEntry.B0JD2Dvi.js → LogoEntry.BzJx8V2c.js} +1 -1
- package/dist/chunks/{MemoriesEntry.BJTON_0g.js → MemoriesEntry.BEXE9loJ.js} +5 -5
- package/dist/chunks/{ProfileEntry.Wgw5fwWy.js → ProfileEntry.3BYJrVIt.js} +4 -4
- package/dist/chunks/{SettingsEntry.C2awDFnm.js → SettingsEntry.C6nWCZpc.js} +5 -5
- package/dist/chunks/{UsageEntry.KjvOxxf0.js → UsageEntry.Dd-xUxjd.js} +5 -5
- package/dist/chunks/{_baseUniq.BQj9VQCI.js → _baseUniq.CO1pQ3TU.js} +1 -1
- package/dist/chunks/{arc.CiAS2eYX.js → arc.UmkSc1Aq.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.CVUHtRfF.js → architecture-U656AL7Q.BVslGbEi.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.CgrAbwge.js → architectureDiagram-VXUJARFQ.CcnHrQNJ.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.D3L4iHFU.js → blockDiagram-VD42YOAC.DBW_inb5.js} +5 -5
- package/dist/chunks/{browser.BniR_7tQ.js → browser.B3njUrBi.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.DaqVxdM5.js → c4Diagram-YG6GDRKO.BSs-xFSk.js} +2 -2
- package/dist/chunks/{channel.D6pYdr4m.js → channel.D0sWdRVT.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.B0jMQ0-g.js → chunk-4BX2VUAB.CjUvcA9v.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.CZWgysSN.js → chunk-55IACEB6.C2qmG191.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.BLKEW44-.js → chunk-B4BG7PRW.De4jw-e4.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.BVi9Ji2G.js → chunk-DI55MBZ5.Bs_RrXB7.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.BT-BUhly.js → chunk-FMBD7UC4.CBEVGMvu.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.Do-JMiRE.js → chunk-QN33PNHL.DybGTku4.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.Cb4U6GWz.js → chunk-QZHKN3VN.C8J2iNyQ.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.CjH2lexg.js → chunk-TZMSLE5B.DWPNgloc.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.C0bN4r0o.js → classDiagram-2ON5EDUG.C8iMt-CB.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.C0bN4r0o.js → classDiagram-v2-WZHVMYZB.C8iMt-CB.js} +2 -2
- package/dist/chunks/{clone.XXHGa3gy.js → clone.DeBg-xtY.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.9sjLSjOU.js → cose-bilkent-S5V4N54A.DdmGTxAx.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.D9sQhwbv.js → dagre-6UL2VRFP.DUYGMAN4.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.DSwJVrvl.js → diagram-PSM6KHXK.Ccpr6tNA.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.PWoDNvRj.js → diagram-QEK2KX5R.DM7BsSur.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.C1OQ73Sn.js → diagram-S2PKOQOG.CcNYo6mZ.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.D7JWQHt9.js → erDiagram-Q2GNP2WA.B8GbIkl0.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.C7O2QB96.js → flowDiagram-NV44I4VS.D8a1Zxq6.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.VBq2nliA.js → ganttDiagram-JELNMOA3.CxIyi0FP.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.10pgCtOx.js → gitGraph-F6HP7TQM.DdmXatf1.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.B9HumAJW.js → gitGraphDiagram-NY62KEGX.gdP5EUcb.js} +4 -4
- package/dist/chunks/{graph.CYVJHeb-.js → graph.vmnThUrw.js} +2 -2
- package/dist/chunks/{index.D613DWMc.js → index.BJsn-vQm.js} +1 -1
- package/dist/chunks/{index.BPWrnQWZ.js → index.BiVcH-1l.js} +1 -1
- package/dist/chunks/{index.D4L4-Nwi.js → index.CQ1tNoqY.js} +2 -2
- package/dist/chunks/{index.Bud3dXvV.js → index.CacVTYUi.js} +1 -1
- package/dist/chunks/{index.InLvErKB.js → index.Cwy5dqPH.js} +3 -3
- package/dist/chunks/{index.D6Tu9zFS.js → index.DFah9PmB.js} +3 -3
- package/dist/chunks/{index.CCeNl_80.js → index.DVV06j5x.js} +1 -1
- package/dist/chunks/{index.De7XRv6H.js → index._wuBqYM-.js} +1 -1
- package/dist/chunks/{index.9k-M8fl6.js → index.rtvKWBwR.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.B4pjiGi7.js → info-NVLQJR56.DGgSzZvD.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.D8mV6IrX.js → infoDiagram-WHAUD3N6.Cr9uswM-.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.BEk3Qjne.js → journeyDiagram-XKPGCS4Q.BeAeXdZw.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.BYm5y-Wz.js → kanban-definition-3W4ZIXB7.BE8r8cZr.js} +2 -2
- package/dist/chunks/{layout.CSCjDcWy.js → layout.Ce8z59EY.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.DF5M4N1b.js → mermaid-parser.core.DV6o_bdd.js} +10 -10
- package/dist/chunks/{min.Dh0ZVEl0.js → min.tslYr6eP.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T._UOWcrCX.js → mindmap-definition-VGOIOE7T.CuQAhOps.js} +232 -257
- package/dist/chunks/{packet-BFZMPI3H.BMR6w9Kg.js → packet-BFZMPI3H.Bcwvega6.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.B4cqwVA5.js → pie-7BOR55EZ.D8RARbd5.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.BmytQGxo.js → pieDiagram-ADFJNKIX.CvBdPnGV.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.B9QQuFsA.js → quadrantDiagram-AYHSOK5B.CROQ_Frk.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.BJCmD0cU.js → radar-NHE76QYJ.CCshv9eV.js} +1 -1
- package/dist/chunks/{rehype-mermaid.BIw5jZHE.js → rehype-mermaid.BdX4FNx6.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.BW_HkcG-.js → requirementDiagram-UZGBJVZJ.CGaK5g7H.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.CObU1oB8.js → sankeyDiagram-TZEHDZUN.BmuzrAiO.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.2HfWAtI7.js → sequenceDiagram-WL72ISMW.WbZc3G3z.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.CawOOxby.js → stateDiagram-FKZM4ZOC.BcipU7Ac.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.Dy5CqQcG.js → stateDiagram-v2-4FDKWEC3.CsiWj86-.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.Bf1desUQ.js → timeline-definition-IT6M3QCI.CGhuUKcI.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.CFy7U8nV.js → treemap-KMMF4GRG.DXHxrJFh.js} +1 -1
- package/dist/chunks/{useMarkdown.BuiOClxY.js → useMarkdown.DXXZNSYf.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.D56fFIO3.js → xychartDiagram-PRI3JC2R.DcXD2HKb.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
|
@@ -1,46 +1,21 @@
|
|
|
1
|
-
import { getDiagramElement as
|
|
2
|
-
import { setupViewPortForSVG as
|
|
3
|
-
import { __name as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
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() {
|
|
1
|
+
import { getDiagramElement as oe } from "./chunk-55IACEB6.C2qmG191.js";
|
|
2
|
+
import { setupViewPortForSVG as ae } from "./chunk-QN33PNHL.DybGTku4.js";
|
|
3
|
+
import { __name as c, log as O, getRegisteredLayoutAlgorithm as ce, render as le, defaultConfig_default as B, getConfig2 as H, sanitizeText as U, getUserDefinedConfig as he, isDark as ge, lighten as de, darken as ue } from "./rehype-mermaid.BdX4FNx6.js";
|
|
4
|
+
import { v4 as pe } from "./App.DYc2zQb9.js";
|
|
5
|
+
var z = (function() {
|
|
6
|
+
var r = /* @__PURE__ */ c(function(L, s, t, o) {
|
|
7
|
+
for (t = t || {}, o = L.length; o--; t[L[o]] = s) ;
|
|
8
|
+
return t;
|
|
9
|
+
}, "o"), e = [1, 4], i = [1, 13], l = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [1, 26], W = [1, 24], X = [1, 25], _ = [6, 7, 11], Y = [1, 6, 13, 15, 16, 19, 22], q = [1, 33], J = [1, 34], I = [1, 6, 7, 11, 13, 15, 16, 19, 22], F = {
|
|
10
|
+
trace: /* @__PURE__ */ c(function() {
|
|
36
11
|
}, "trace"),
|
|
37
12
|
yy: {},
|
|
38
13
|
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 },
|
|
39
14
|
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" },
|
|
40
15
|
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]],
|
|
41
|
-
performAction: /* @__PURE__ */
|
|
42
|
-
var
|
|
43
|
-
switch (
|
|
16
|
+
performAction: /* @__PURE__ */ c(function(s, t, o, a, d, n, R) {
|
|
17
|
+
var g = n.length - 1;
|
|
18
|
+
switch (d) {
|
|
44
19
|
case 6:
|
|
45
20
|
case 7:
|
|
46
21
|
return a;
|
|
@@ -57,105 +32,105 @@ var X = (function() {
|
|
|
57
32
|
a.getLogger().trace("Stop EOF2 ");
|
|
58
33
|
break;
|
|
59
34
|
case 15:
|
|
60
|
-
a.getLogger().info("Node: ",
|
|
35
|
+
a.getLogger().info("Node: ", n[g].id), a.addNode(n[g - 1].length, n[g].id, n[g].descr, n[g].type);
|
|
61
36
|
break;
|
|
62
37
|
case 16:
|
|
63
|
-
a.getLogger().trace("Icon: ",
|
|
38
|
+
a.getLogger().trace("Icon: ", n[g]), a.decorateNode({ icon: n[g] });
|
|
64
39
|
break;
|
|
65
40
|
case 17:
|
|
66
41
|
case 21:
|
|
67
|
-
a.decorateNode({ class:
|
|
42
|
+
a.decorateNode({ class: n[g] });
|
|
68
43
|
break;
|
|
69
44
|
case 18:
|
|
70
45
|
a.getLogger().trace("SPACELIST");
|
|
71
46
|
break;
|
|
72
47
|
case 19:
|
|
73
|
-
a.getLogger().trace("Node: ",
|
|
48
|
+
a.getLogger().trace("Node: ", n[g].id), a.addNode(0, n[g].id, n[g].descr, n[g].type);
|
|
74
49
|
break;
|
|
75
50
|
case 20:
|
|
76
|
-
a.decorateNode({ icon:
|
|
51
|
+
a.decorateNode({ icon: n[g] });
|
|
77
52
|
break;
|
|
78
53
|
case 25:
|
|
79
|
-
a.getLogger().trace("node found ..",
|
|
54
|
+
a.getLogger().trace("node found ..", n[g - 2]), this.$ = { id: n[g - 1], descr: n[g - 1], type: a.getType(n[g - 2], n[g]) };
|
|
80
55
|
break;
|
|
81
56
|
case 26:
|
|
82
|
-
this.$ = { id:
|
|
57
|
+
this.$ = { id: n[g], descr: n[g], type: a.nodeType.DEFAULT };
|
|
83
58
|
break;
|
|
84
59
|
case 27:
|
|
85
|
-
a.getLogger().trace("node found ..",
|
|
60
|
+
a.getLogger().trace("node found ..", n[g - 3]), this.$ = { id: n[g - 3], descr: n[g - 1], type: a.getType(n[g - 2], n[g]) };
|
|
86
61
|
break;
|
|
87
62
|
}
|
|
88
63
|
}, "anonymous"),
|
|
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:
|
|
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: i, 7: [1, 10], 9: 9, 12: 11, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, r(u, [2, 3]), { 1: [2, 2] }, r(u, [2, 4]), r(u, [2, 5]), { 1: [2, 6], 6: i, 12: 21, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: i, 9: 22, 12: 11, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: W, 10: 23, 11: X }, r(_, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), r(_, [2, 18]), r(_, [2, 19]), r(_, [2, 20]), r(_, [2, 21]), r(_, [2, 23]), r(_, [2, 24]), r(_, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: N, 7: W, 10: 32, 11: X }, { 1: [2, 7], 6: i, 12: 21, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, r(Y, [2, 14], { 7: q, 11: J }), r(I, [2, 8]), r(I, [2, 9]), r(I, [2, 10]), r(_, [2, 15]), r(_, [2, 16]), r(_, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, r(Y, [2, 13], { 7: q, 11: J }), r(I, [2, 11]), r(I, [2, 12]), { 21: [1, 37] }, r(_, [2, 25]), r(_, [2, 27])],
|
|
90
65
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
91
|
-
parseError: /* @__PURE__ */
|
|
92
|
-
if (
|
|
66
|
+
parseError: /* @__PURE__ */ c(function(s, t) {
|
|
67
|
+
if (t.recoverable)
|
|
93
68
|
this.trace(s);
|
|
94
69
|
else {
|
|
95
70
|
var o = new Error(s);
|
|
96
|
-
throw o.hash =
|
|
71
|
+
throw o.hash = t, o;
|
|
97
72
|
}
|
|
98
73
|
}, "parseError"),
|
|
99
|
-
parse: /* @__PURE__ */
|
|
100
|
-
var
|
|
101
|
-
for (var
|
|
102
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
103
|
-
y.setInput(s,
|
|
74
|
+
parse: /* @__PURE__ */ c(function(s) {
|
|
75
|
+
var t = this, o = [0], a = [], d = [null], n = [], R = this.table, g = "", w = 0, K = 0, ie = 2, Q = 1, se = n.slice.call(arguments, 1), y = Object.create(this.lexer), x = { yy: {} };
|
|
76
|
+
for (var V in this.yy)
|
|
77
|
+
Object.prototype.hasOwnProperty.call(this.yy, V) && (x.yy[V] = this.yy[V]);
|
|
78
|
+
y.setInput(s, x.yy), x.yy.lexer = y, x.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
|
|
104
79
|
var G = y.yylloc;
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
typeof
|
|
108
|
-
function
|
|
109
|
-
o.length = o.length - 2 *
|
|
80
|
+
n.push(G);
|
|
81
|
+
var ne = y.options && y.options.ranges;
|
|
82
|
+
typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
83
|
+
function re(b) {
|
|
84
|
+
o.length = o.length - 2 * b, d.length = d.length - b, n.length = n.length - b;
|
|
110
85
|
}
|
|
111
|
-
|
|
112
|
-
function
|
|
113
|
-
var
|
|
114
|
-
return
|
|
86
|
+
c(re, "popStack");
|
|
87
|
+
function Z() {
|
|
88
|
+
var b;
|
|
89
|
+
return b = a.pop() || y.lex() || Q, typeof b != "number" && (b instanceof Array && (a = b, b = a.pop()), b = t.symbols_[b] || b), b;
|
|
115
90
|
}
|
|
116
|
-
|
|
117
|
-
for (var
|
|
118
|
-
if (
|
|
91
|
+
c(Z, "lex");
|
|
92
|
+
for (var E, v, S, j, T = {}, P, D, ee, M; ; ) {
|
|
93
|
+
if (v = o[o.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((E === null || typeof E > "u") && (E = Z()), S = R[v] && R[v][E]), typeof S > "u" || !S.length || !S[0]) {
|
|
119
94
|
var $ = "";
|
|
120
95
|
M = [];
|
|
121
|
-
for (P in
|
|
122
|
-
this.terminals_[P] && P >
|
|
123
|
-
y.showPosition ? $ = "Parse error on line " + (
|
|
96
|
+
for (P in R[v])
|
|
97
|
+
this.terminals_[P] && P > ie && M.push("'" + this.terminals_[P] + "'");
|
|
98
|
+
y.showPosition ? $ = "Parse error on line " + (w + 1) + `:
|
|
124
99
|
` + y.showPosition() + `
|
|
125
|
-
Expecting ` + M.join(", ") + ", got '" + (this.terminals_[
|
|
100
|
+
Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "Parse error on line " + (w + 1) + ": Unexpected " + (E == Q ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError($, {
|
|
126
101
|
text: y.match,
|
|
127
|
-
token: this.terminals_[
|
|
102
|
+
token: this.terminals_[E] || E,
|
|
128
103
|
line: y.yylineno,
|
|
129
104
|
loc: G,
|
|
130
105
|
expected: M
|
|
131
106
|
});
|
|
132
107
|
}
|
|
133
|
-
if (
|
|
134
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
135
|
-
switch (
|
|
108
|
+
if (S[0] instanceof Array && S.length > 1)
|
|
109
|
+
throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + E);
|
|
110
|
+
switch (S[0]) {
|
|
136
111
|
case 1:
|
|
137
|
-
o.push(
|
|
112
|
+
o.push(E), d.push(y.yytext), n.push(y.yylloc), o.push(S[1]), E = null, K = y.yyleng, g = y.yytext, w = y.yylineno, G = y.yylloc;
|
|
138
113
|
break;
|
|
139
114
|
case 2:
|
|
140
|
-
if (
|
|
141
|
-
first_line:
|
|
142
|
-
last_line:
|
|
143
|
-
first_column:
|
|
144
|
-
last_column:
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
]),
|
|
149
|
-
d,
|
|
150
|
-
Z,
|
|
151
|
-
U,
|
|
152
|
-
v.yy,
|
|
153
|
-
D[1],
|
|
115
|
+
if (D = this.productions_[S[1]][1], T.$ = d[d.length - D], T._$ = {
|
|
116
|
+
first_line: n[n.length - (D || 1)].first_line,
|
|
117
|
+
last_line: n[n.length - 1].last_line,
|
|
118
|
+
first_column: n[n.length - (D || 1)].first_column,
|
|
119
|
+
last_column: n[n.length - 1].last_column
|
|
120
|
+
}, ne && (T._$.range = [
|
|
121
|
+
n[n.length - (D || 1)].range[0],
|
|
122
|
+
n[n.length - 1].range[1]
|
|
123
|
+
]), j = this.performAction.apply(T, [
|
|
154
124
|
g,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
125
|
+
K,
|
|
126
|
+
w,
|
|
127
|
+
x.yy,
|
|
128
|
+
S[1],
|
|
129
|
+
d,
|
|
130
|
+
n
|
|
131
|
+
].concat(se)), typeof j < "u")
|
|
132
|
+
return j;
|
|
133
|
+
D && (o = o.slice(0, -1 * D * 2), d = d.slice(0, -1 * D), n = n.slice(0, -1 * D)), o.push(this.productions_[S[1]][0]), d.push(T.$), n.push(T._$), ee = R[o[o.length - 2]][o[o.length - 1]], o.push(ee);
|
|
159
134
|
break;
|
|
160
135
|
case 3:
|
|
161
136
|
return !0;
|
|
@@ -163,18 +138,18 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "
|
|
|
163
138
|
}
|
|
164
139
|
return !0;
|
|
165
140
|
}, "parse")
|
|
166
|
-
},
|
|
167
|
-
var
|
|
141
|
+
}, te = /* @__PURE__ */ (function() {
|
|
142
|
+
var L = {
|
|
168
143
|
EOF: 1,
|
|
169
|
-
parseError: /* @__PURE__ */
|
|
144
|
+
parseError: /* @__PURE__ */ c(function(t, o) {
|
|
170
145
|
if (this.yy.parser)
|
|
171
|
-
this.yy.parser.parseError(
|
|
146
|
+
this.yy.parser.parseError(t, o);
|
|
172
147
|
else
|
|
173
|
-
throw new Error(
|
|
148
|
+
throw new Error(t);
|
|
174
149
|
}, "parseError"),
|
|
175
150
|
// resets the lexer, sets new input
|
|
176
|
-
setInput: /* @__PURE__ */
|
|
177
|
-
return this.yy =
|
|
151
|
+
setInput: /* @__PURE__ */ c(function(s, t) {
|
|
152
|
+
return this.yy = t || 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 = {
|
|
178
153
|
first_line: 1,
|
|
179
154
|
first_column: 0,
|
|
180
155
|
last_line: 1,
|
|
@@ -182,32 +157,32 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "
|
|
|
182
157
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
183
158
|
}, "setInput"),
|
|
184
159
|
// consumes and returns one char from the input
|
|
185
|
-
input: /* @__PURE__ */
|
|
160
|
+
input: /* @__PURE__ */ c(function() {
|
|
186
161
|
var s = this._input[0];
|
|
187
162
|
this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
|
|
188
|
-
var
|
|
189
|
-
return
|
|
163
|
+
var t = s.match(/(?:\r\n?|\n).*/g);
|
|
164
|
+
return t ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
|
|
190
165
|
}, "input"),
|
|
191
166
|
// unshifts one char (or a string) into the input
|
|
192
|
-
unput: /* @__PURE__ */
|
|
193
|
-
var
|
|
194
|
-
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
167
|
+
unput: /* @__PURE__ */ c(function(s) {
|
|
168
|
+
var t = s.length, o = s.split(/(?:\r\n?|\n)/g);
|
|
169
|
+
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
195
170
|
var a = this.match.split(/(?:\r\n?|\n)/g);
|
|
196
171
|
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);
|
|
197
|
-
var
|
|
172
|
+
var d = this.yylloc.range;
|
|
198
173
|
return this.yylloc = {
|
|
199
174
|
first_line: this.yylloc.first_line,
|
|
200
175
|
last_line: this.yylineno + 1,
|
|
201
176
|
first_column: this.yylloc.first_column,
|
|
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 -
|
|
203
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
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 - t
|
|
178
|
+
}, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
204
179
|
}, "unput"),
|
|
205
180
|
// When called from action, caches matched text and appends it on next action
|
|
206
|
-
more: /* @__PURE__ */
|
|
181
|
+
more: /* @__PURE__ */ c(function() {
|
|
207
182
|
return this._more = !0, this;
|
|
208
183
|
}, "more"),
|
|
209
184
|
// 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.
|
|
210
|
-
reject: /* @__PURE__ */
|
|
185
|
+
reject: /* @__PURE__ */ c(function() {
|
|
211
186
|
if (this.options.backtrack_lexer)
|
|
212
187
|
this._backtrack = !0;
|
|
213
188
|
else
|
|
@@ -220,29 +195,29 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "
|
|
|
220
195
|
return this;
|
|
221
196
|
}, "reject"),
|
|
222
197
|
// retain first n characters of the match
|
|
223
|
-
less: /* @__PURE__ */
|
|
198
|
+
less: /* @__PURE__ */ c(function(s) {
|
|
224
199
|
this.unput(this.match.slice(s));
|
|
225
200
|
}, "less"),
|
|
226
201
|
// displays already matched input, i.e. for error messages
|
|
227
|
-
pastInput: /* @__PURE__ */
|
|
202
|
+
pastInput: /* @__PURE__ */ c(function() {
|
|
228
203
|
var s = this.matched.substr(0, this.matched.length - this.match.length);
|
|
229
204
|
return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
|
|
230
205
|
}, "pastInput"),
|
|
231
206
|
// displays upcoming input, i.e. for error messages
|
|
232
|
-
upcomingInput: /* @__PURE__ */
|
|
207
|
+
upcomingInput: /* @__PURE__ */ c(function() {
|
|
233
208
|
var s = this.match;
|
|
234
209
|
return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
235
210
|
}, "upcomingInput"),
|
|
236
211
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
237
|
-
showPosition: /* @__PURE__ */
|
|
238
|
-
var s = this.pastInput(),
|
|
212
|
+
showPosition: /* @__PURE__ */ c(function() {
|
|
213
|
+
var s = this.pastInput(), t = new Array(s.length + 1).join("-");
|
|
239
214
|
return s + this.upcomingInput() + `
|
|
240
|
-
` +
|
|
215
|
+
` + t + "^";
|
|
241
216
|
}, "showPosition"),
|
|
242
217
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
243
|
-
test_match: /* @__PURE__ */
|
|
244
|
-
var o, a,
|
|
245
|
-
if (this.options.backtrack_lexer && (
|
|
218
|
+
test_match: /* @__PURE__ */ c(function(s, t) {
|
|
219
|
+
var o, a, d;
|
|
220
|
+
if (this.options.backtrack_lexer && (d = {
|
|
246
221
|
yylineno: this.yylineno,
|
|
247
222
|
yylloc: {
|
|
248
223
|
first_line: this.yylloc.first_line,
|
|
@@ -261,41 +236,41 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "
|
|
|
261
236
|
yy: this.yy,
|
|
262
237
|
conditionStack: this.conditionStack.slice(0),
|
|
263
238
|
done: this.done
|
|
264
|
-
}, this.options.ranges && (
|
|
239
|
+
}, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
|
|
265
240
|
first_line: this.yylloc.last_line,
|
|
266
241
|
last_line: this.yylineno + 1,
|
|
267
242
|
first_column: this.yylloc.last_column,
|
|
268
243
|
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,
|
|
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, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
270
245
|
return o;
|
|
271
246
|
if (this._backtrack) {
|
|
272
|
-
for (var
|
|
273
|
-
this[
|
|
247
|
+
for (var n in d)
|
|
248
|
+
this[n] = d[n];
|
|
274
249
|
return !1;
|
|
275
250
|
}
|
|
276
251
|
return !1;
|
|
277
252
|
}, "test_match"),
|
|
278
253
|
// return next match in input
|
|
279
|
-
next: /* @__PURE__ */
|
|
254
|
+
next: /* @__PURE__ */ c(function() {
|
|
280
255
|
if (this.done)
|
|
281
256
|
return this.EOF;
|
|
282
257
|
this._input || (this.done = !0);
|
|
283
|
-
var s,
|
|
258
|
+
var s, t, o, a;
|
|
284
259
|
this._more || (this.yytext = "", this.match = "");
|
|
285
|
-
for (var
|
|
286
|
-
if (o = this._input.match(this.rules[
|
|
287
|
-
if (
|
|
288
|
-
if (s = this.test_match(o,
|
|
260
|
+
for (var d = this._currentRules(), n = 0; n < d.length; n++)
|
|
261
|
+
if (o = this._input.match(this.rules[d[n]]), o && (!t || o[0].length > t[0].length)) {
|
|
262
|
+
if (t = o, a = n, this.options.backtrack_lexer) {
|
|
263
|
+
if (s = this.test_match(o, d[n]), s !== !1)
|
|
289
264
|
return s;
|
|
290
265
|
if (this._backtrack) {
|
|
291
|
-
|
|
266
|
+
t = !1;
|
|
292
267
|
continue;
|
|
293
268
|
} else
|
|
294
269
|
return !1;
|
|
295
270
|
} else if (!this.options.flex)
|
|
296
271
|
break;
|
|
297
272
|
}
|
|
298
|
-
return
|
|
273
|
+
return t ? (s = this.test_match(t, d[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
299
274
|
` + this.showPosition(), {
|
|
300
275
|
text: "",
|
|
301
276
|
token: null,
|
|
@@ -303,40 +278,40 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "
|
|
|
303
278
|
});
|
|
304
279
|
}, "next"),
|
|
305
280
|
// return next match that has a token
|
|
306
|
-
lex: /* @__PURE__ */
|
|
307
|
-
var
|
|
308
|
-
return
|
|
281
|
+
lex: /* @__PURE__ */ c(function() {
|
|
282
|
+
var t = this.next();
|
|
283
|
+
return t || this.lex();
|
|
309
284
|
}, "lex"),
|
|
310
285
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
311
|
-
begin: /* @__PURE__ */
|
|
312
|
-
this.conditionStack.push(
|
|
286
|
+
begin: /* @__PURE__ */ c(function(t) {
|
|
287
|
+
this.conditionStack.push(t);
|
|
313
288
|
}, "begin"),
|
|
314
289
|
// pop the previously active lexer condition state off the condition stack
|
|
315
|
-
popState: /* @__PURE__ */
|
|
316
|
-
var
|
|
317
|
-
return
|
|
290
|
+
popState: /* @__PURE__ */ c(function() {
|
|
291
|
+
var t = this.conditionStack.length - 1;
|
|
292
|
+
return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
318
293
|
}, "popState"),
|
|
319
294
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
320
|
-
_currentRules: /* @__PURE__ */
|
|
295
|
+
_currentRules: /* @__PURE__ */ c(function() {
|
|
321
296
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
322
297
|
}, "_currentRules"),
|
|
323
298
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
324
|
-
topState: /* @__PURE__ */
|
|
325
|
-
return
|
|
299
|
+
topState: /* @__PURE__ */ c(function(t) {
|
|
300
|
+
return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
|
|
326
301
|
}, "topState"),
|
|
327
302
|
// alias for begin(condition)
|
|
328
|
-
pushState: /* @__PURE__ */
|
|
329
|
-
this.begin(
|
|
303
|
+
pushState: /* @__PURE__ */ c(function(t) {
|
|
304
|
+
this.begin(t);
|
|
330
305
|
}, "pushState"),
|
|
331
306
|
// return the number of states currently on the stack
|
|
332
|
-
stateStackSize: /* @__PURE__ */
|
|
307
|
+
stateStackSize: /* @__PURE__ */ c(function() {
|
|
333
308
|
return this.conditionStack.length;
|
|
334
309
|
}, "stateStackSize"),
|
|
335
310
|
options: { "case-insensitive": !0 },
|
|
336
|
-
performAction: /* @__PURE__ */
|
|
311
|
+
performAction: /* @__PURE__ */ c(function(t, o, a, d) {
|
|
337
312
|
switch (a) {
|
|
338
313
|
case 0:
|
|
339
|
-
return
|
|
314
|
+
return t.getLogger().trace("Found comment", o.yytext), 6;
|
|
340
315
|
case 1:
|
|
341
316
|
return 8;
|
|
342
317
|
case 2:
|
|
@@ -348,25 +323,25 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "
|
|
|
348
323
|
this.popState();
|
|
349
324
|
break;
|
|
350
325
|
case 5:
|
|
351
|
-
|
|
326
|
+
t.getLogger().trace("Begin icon"), this.begin("ICON");
|
|
352
327
|
break;
|
|
353
328
|
case 6:
|
|
354
|
-
return
|
|
329
|
+
return t.getLogger().trace("SPACELINE"), 6;
|
|
355
330
|
case 7:
|
|
356
331
|
return 7;
|
|
357
332
|
case 8:
|
|
358
333
|
return 15;
|
|
359
334
|
case 9:
|
|
360
|
-
|
|
335
|
+
t.getLogger().trace("end icon"), this.popState();
|
|
361
336
|
break;
|
|
362
337
|
case 10:
|
|
363
|
-
return
|
|
338
|
+
return t.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
|
|
364
339
|
case 11:
|
|
365
|
-
return
|
|
340
|
+
return t.getLogger().trace("Cloud"), this.begin("NODE"), 19;
|
|
366
341
|
case 12:
|
|
367
|
-
return
|
|
342
|
+
return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
|
|
368
343
|
case 13:
|
|
369
|
-
return
|
|
344
|
+
return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
|
|
370
345
|
case 14:
|
|
371
346
|
return this.begin("NODE"), 19;
|
|
372
347
|
case 15:
|
|
@@ -390,48 +365,48 @@ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "
|
|
|
390
365
|
this.popState();
|
|
391
366
|
break;
|
|
392
367
|
case 24:
|
|
393
|
-
|
|
368
|
+
t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
394
369
|
break;
|
|
395
370
|
case 25:
|
|
396
|
-
return
|
|
371
|
+
return t.getLogger().trace("description:", o.yytext), "NODE_DESCR";
|
|
397
372
|
case 26:
|
|
398
373
|
this.popState();
|
|
399
374
|
break;
|
|
400
375
|
case 27:
|
|
401
|
-
return this.popState(),
|
|
376
|
+
return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
|
|
402
377
|
case 28:
|
|
403
|
-
return this.popState(),
|
|
378
|
+
return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
|
|
404
379
|
case 29:
|
|
405
|
-
return this.popState(),
|
|
380
|
+
return this.popState(), t.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
|
|
406
381
|
case 30:
|
|
407
|
-
return this.popState(),
|
|
382
|
+
return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
|
|
408
383
|
case 31:
|
|
409
|
-
return this.popState(),
|
|
384
|
+
return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
|
|
410
385
|
case 32:
|
|
411
|
-
return this.popState(),
|
|
386
|
+
return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
|
|
412
387
|
case 33:
|
|
413
|
-
return this.popState(),
|
|
388
|
+
return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
|
|
414
389
|
case 34:
|
|
415
|
-
return this.popState(),
|
|
390
|
+
return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
|
|
416
391
|
case 35:
|
|
417
|
-
return
|
|
392
|
+
return t.getLogger().trace("Long description:", o.yytext), 20;
|
|
418
393
|
case 36:
|
|
419
|
-
return
|
|
394
|
+
return t.getLogger().trace("Long description:", o.yytext), 20;
|
|
420
395
|
}
|
|
421
396
|
}, "anonymous"),
|
|
422
397
|
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],
|
|
423
398
|
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 } }
|
|
424
399
|
};
|
|
425
|
-
return
|
|
400
|
+
return L;
|
|
426
401
|
})();
|
|
427
|
-
F.lexer =
|
|
402
|
+
F.lexer = te;
|
|
428
403
|
function A() {
|
|
429
404
|
this.yy = {};
|
|
430
405
|
}
|
|
431
|
-
return
|
|
406
|
+
return c(A, "Parser"), A.prototype = F, F.Parser = A, new A();
|
|
432
407
|
})();
|
|
433
|
-
|
|
434
|
-
var
|
|
408
|
+
z.parser = z;
|
|
409
|
+
var fe = z, k = {
|
|
435
410
|
DEFAULT: 0,
|
|
436
411
|
NO_BORDER: 0,
|
|
437
412
|
ROUNDED_RECT: 1,
|
|
@@ -440,27 +415,27 @@ var De = X, L = {
|
|
|
440
415
|
CLOUD: 4,
|
|
441
416
|
BANG: 5,
|
|
442
417
|
HEXAGON: 6
|
|
443
|
-
}, C,
|
|
418
|
+
}, C, ye = (C = class {
|
|
444
419
|
constructor() {
|
|
445
|
-
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType =
|
|
420
|
+
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = k, 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);
|
|
446
421
|
}
|
|
447
422
|
clear() {
|
|
448
423
|
this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
|
|
449
424
|
}
|
|
450
425
|
getParent(e) {
|
|
451
|
-
for (let
|
|
452
|
-
if (this.nodes[
|
|
453
|
-
return this.nodes[
|
|
426
|
+
for (let i = this.nodes.length - 1; i >= 0; i--)
|
|
427
|
+
if (this.nodes[i].level < e)
|
|
428
|
+
return this.nodes[i];
|
|
454
429
|
return null;
|
|
455
430
|
}
|
|
456
431
|
getMindmap() {
|
|
457
432
|
return this.nodes.length > 0 ? this.nodes[0] : null;
|
|
458
433
|
}
|
|
459
|
-
addNode(e,
|
|
460
|
-
|
|
434
|
+
addNode(e, i, l, f) {
|
|
435
|
+
O.info("addNode", e, i, l, f);
|
|
461
436
|
let h = !1;
|
|
462
437
|
this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
|
|
463
|
-
const p =
|
|
438
|
+
const p = H();
|
|
464
439
|
let m = p.mindmap?.padding ?? B.mindmap.padding;
|
|
465
440
|
switch (f) {
|
|
466
441
|
case this.nodeType.ROUNDED_RECT:
|
|
@@ -471,9 +446,9 @@ var De = X, L = {
|
|
|
471
446
|
}
|
|
472
447
|
const u = {
|
|
473
448
|
id: this.count++,
|
|
474
|
-
nodeId:
|
|
449
|
+
nodeId: U(i, p),
|
|
475
450
|
level: e,
|
|
476
|
-
descr:
|
|
451
|
+
descr: U(l, p),
|
|
477
452
|
type: f,
|
|
478
453
|
children: [],
|
|
479
454
|
width: p.mindmap?.maxNodeWidth ?? B.mindmap.maxNodeWidth,
|
|
@@ -489,12 +464,12 @@ var De = X, L = {
|
|
|
489
464
|
`There can be only one root. No parent could be found for ("${u.descr}")`
|
|
490
465
|
);
|
|
491
466
|
}
|
|
492
|
-
getType(e,
|
|
493
|
-
switch (
|
|
467
|
+
getType(e, i) {
|
|
468
|
+
switch (O.debug("In get type", e, i), e) {
|
|
494
469
|
case "[":
|
|
495
470
|
return this.nodeType.RECT;
|
|
496
471
|
case "(":
|
|
497
|
-
return
|
|
472
|
+
return i === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
|
|
498
473
|
case "((":
|
|
499
474
|
return this.nodeType.CIRCLE;
|
|
500
475
|
case ")":
|
|
@@ -507,8 +482,8 @@ var De = X, L = {
|
|
|
507
482
|
return this.nodeType.DEFAULT;
|
|
508
483
|
}
|
|
509
484
|
}
|
|
510
|
-
setElementForId(e,
|
|
511
|
-
this.elements[e] =
|
|
485
|
+
setElementForId(e, i) {
|
|
486
|
+
this.elements[e] = i;
|
|
512
487
|
}
|
|
513
488
|
getElementById(e) {
|
|
514
489
|
return this.elements[e];
|
|
@@ -516,8 +491,8 @@ var De = X, L = {
|
|
|
516
491
|
decorateNode(e) {
|
|
517
492
|
if (!e)
|
|
518
493
|
return;
|
|
519
|
-
const
|
|
520
|
-
e.icon && (
|
|
494
|
+
const i = H(), l = this.nodes[this.nodes.length - 1];
|
|
495
|
+
e.icon && (l.icon = U(e.icon, i)), e.class && (l.class = U(e.class, i));
|
|
521
496
|
}
|
|
522
497
|
type2Str(e) {
|
|
523
498
|
switch (e) {
|
|
@@ -545,10 +520,10 @@ var De = X, L = {
|
|
|
545
520
|
* @param node - The mindmap node to process
|
|
546
521
|
* @param sectionNumber - The section number to assign (undefined for root)
|
|
547
522
|
*/
|
|
548
|
-
assignSections(e,
|
|
549
|
-
if (e.level === 0 ? e.section = void 0 : e.section =
|
|
550
|
-
for (const [
|
|
551
|
-
const h = e.level === 0 ?
|
|
523
|
+
assignSections(e, i) {
|
|
524
|
+
if (e.level === 0 ? e.section = void 0 : e.section = i, e.children)
|
|
525
|
+
for (const [l, f] of e.children.entries()) {
|
|
526
|
+
const h = e.level === 0 ? l : i;
|
|
552
527
|
this.assignSections(f, h);
|
|
553
528
|
}
|
|
554
529
|
}
|
|
@@ -557,26 +532,26 @@ var De = X, L = {
|
|
|
557
532
|
* @param node - The mindmap node to process
|
|
558
533
|
* @param processedNodes - Array to collect processed nodes
|
|
559
534
|
*/
|
|
560
|
-
flattenNodes(e,
|
|
561
|
-
const
|
|
562
|
-
e.isRoot === !0 ?
|
|
563
|
-
const f =
|
|
535
|
+
flattenNodes(e, i) {
|
|
536
|
+
const l = ["mindmap-node"];
|
|
537
|
+
e.isRoot === !0 ? l.push("section-root", "section--1") : e.section !== void 0 && l.push(`section-${e.section}`), e.class && l.push(e.class);
|
|
538
|
+
const f = l.join(" "), h = /* @__PURE__ */ c((m) => {
|
|
564
539
|
switch (m) {
|
|
565
|
-
case
|
|
540
|
+
case k.CIRCLE:
|
|
566
541
|
return "mindmapCircle";
|
|
567
|
-
case
|
|
542
|
+
case k.RECT:
|
|
568
543
|
return "rect";
|
|
569
|
-
case
|
|
544
|
+
case k.ROUNDED_RECT:
|
|
570
545
|
return "rounded";
|
|
571
|
-
case
|
|
546
|
+
case k.CLOUD:
|
|
572
547
|
return "cloud";
|
|
573
|
-
case
|
|
548
|
+
case k.BANG:
|
|
574
549
|
return "bang";
|
|
575
|
-
case
|
|
550
|
+
case k.HEXAGON:
|
|
576
551
|
return "hexagon";
|
|
577
|
-
case
|
|
552
|
+
case k.DEFAULT:
|
|
578
553
|
return "defaultMindmapNode";
|
|
579
|
-
case
|
|
554
|
+
case k.NO_BORDER:
|
|
580
555
|
default:
|
|
581
556
|
return "rect";
|
|
582
557
|
}
|
|
@@ -601,26 +576,26 @@ var De = X, L = {
|
|
|
601
576
|
type: e.type,
|
|
602
577
|
section: e.section
|
|
603
578
|
};
|
|
604
|
-
if (
|
|
579
|
+
if (i.push(p), e.children)
|
|
605
580
|
for (const m of e.children)
|
|
606
|
-
this.flattenNodes(m,
|
|
581
|
+
this.flattenNodes(m, i);
|
|
607
582
|
}
|
|
608
583
|
/**
|
|
609
584
|
* Generate edges from parent-child relationships in mindmap tree
|
|
610
585
|
* @param node - The mindmap node to process
|
|
611
586
|
* @param edges - Array to collect edges
|
|
612
587
|
*/
|
|
613
|
-
generateEdges(e,
|
|
588
|
+
generateEdges(e, i) {
|
|
614
589
|
if (e.children)
|
|
615
|
-
for (const
|
|
590
|
+
for (const l of e.children) {
|
|
616
591
|
let f = "edge";
|
|
617
|
-
|
|
592
|
+
l.section !== void 0 && (f += ` section-edge-${l.section}`);
|
|
618
593
|
const h = e.level + 1;
|
|
619
594
|
f += ` edge-depth-${h}`;
|
|
620
595
|
const p = {
|
|
621
|
-
id: `edge_${e.id}_${
|
|
596
|
+
id: `edge_${e.id}_${l.id}`,
|
|
622
597
|
start: e.id.toString(),
|
|
623
|
-
end:
|
|
598
|
+
end: l.id.toString(),
|
|
624
599
|
type: "normal",
|
|
625
600
|
curve: "basis",
|
|
626
601
|
thickness: "normal",
|
|
@@ -628,9 +603,9 @@ var De = X, L = {
|
|
|
628
603
|
classes: f,
|
|
629
604
|
// Store mindmap-specific data
|
|
630
605
|
depth: e.level,
|
|
631
|
-
section:
|
|
606
|
+
section: l.section
|
|
632
607
|
};
|
|
633
|
-
|
|
608
|
+
i.push(p), this.generateEdges(l, i);
|
|
634
609
|
}
|
|
635
610
|
}
|
|
636
611
|
/**
|
|
@@ -639,16 +614,16 @@ var De = X, L = {
|
|
|
639
614
|
* @returns Structured data containing nodes, edges, and config
|
|
640
615
|
*/
|
|
641
616
|
getData() {
|
|
642
|
-
const e = this.getMindmap(),
|
|
617
|
+
const e = this.getMindmap(), i = H(), f = he().layout !== void 0, h = i;
|
|
643
618
|
if (f || (h.layout = "cose-bilkent"), !e)
|
|
644
619
|
return {
|
|
645
620
|
nodes: [],
|
|
646
621
|
edges: [],
|
|
647
622
|
config: h
|
|
648
623
|
};
|
|
649
|
-
|
|
624
|
+
O.debug("getData: mindmapRoot", e, i), this.assignSections(e);
|
|
650
625
|
const p = [], m = [];
|
|
651
|
-
this.flattenNodes(e, p), this.generateEdges(e, m),
|
|
626
|
+
this.flattenNodes(e, p), this.generateEdges(e, m), O.debug(
|
|
652
627
|
`getData: processed ${p.length} nodes and ${m.length} edges`
|
|
653
628
|
);
|
|
654
629
|
const u = /* @__PURE__ */ new Map();
|
|
@@ -678,54 +653,54 @@ var De = X, L = {
|
|
|
678
653
|
shapes: Object.fromEntries(u),
|
|
679
654
|
// Additional properties that layout algorithms might expect
|
|
680
655
|
type: "mindmap",
|
|
681
|
-
diagramId: "mindmap-" +
|
|
656
|
+
diagramId: "mindmap-" + pe()
|
|
682
657
|
};
|
|
683
658
|
}
|
|
684
659
|
// Expose logger to grammar
|
|
685
660
|
getLogger() {
|
|
686
|
-
return
|
|
661
|
+
return O;
|
|
687
662
|
}
|
|
688
|
-
},
|
|
689
|
-
|
|
690
|
-
` +
|
|
691
|
-
const f =
|
|
692
|
-
h.type =
|
|
663
|
+
}, c(C, "MindmapDB"), C), me = /* @__PURE__ */ c(async (r, e, i, l) => {
|
|
664
|
+
O.debug(`Rendering mindmap diagram
|
|
665
|
+
` + r);
|
|
666
|
+
const f = l.db, h = f.getData(), p = oe(e, h.config.securityLevel);
|
|
667
|
+
h.type = l.type, h.layoutAlgorithm = ce(h.config.layout, {
|
|
693
668
|
fallback: "cose-bilkent"
|
|
694
669
|
}), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
|
|
695
670
|
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);
|
|
696
|
-
}), await
|
|
671
|
+
}), await le(h, p), ae(
|
|
697
672
|
p,
|
|
698
673
|
h.config.mindmap?.padding ?? B.mindmap.padding,
|
|
699
674
|
"mindmapDiagram",
|
|
700
675
|
h.config.mindmap?.useMaxWidth ?? B.mindmap.useMaxWidth
|
|
701
676
|
));
|
|
702
|
-
}, "draw"),
|
|
703
|
-
draw:
|
|
704
|
-
},
|
|
677
|
+
}, "draw"), Ee = {
|
|
678
|
+
draw: me
|
|
679
|
+
}, _e = /* @__PURE__ */ c((r) => {
|
|
705
680
|
let e = "";
|
|
706
|
-
for (let
|
|
707
|
-
|
|
708
|
-
for (let
|
|
709
|
-
const
|
|
681
|
+
for (let i = 0; i < r.THEME_COLOR_LIMIT; i++)
|
|
682
|
+
r["lineColor" + i] = r["lineColor" + i] || r["cScaleInv" + i], ge(r["lineColor" + i]) ? r["lineColor" + i] = de(r["lineColor" + i], 20) : r["lineColor" + i] = ue(r["lineColor" + i], 20);
|
|
683
|
+
for (let i = 0; i < r.THEME_COLOR_LIMIT; i++) {
|
|
684
|
+
const l = "" + (17 - 3 * i);
|
|
710
685
|
e += `
|
|
711
|
-
.section-${
|
|
712
|
-
fill: ${
|
|
686
|
+
.section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
|
|
687
|
+
fill: ${r["cScale" + i]};
|
|
713
688
|
}
|
|
714
|
-
.section-${
|
|
715
|
-
fill: ${
|
|
689
|
+
.section-${i - 1} text {
|
|
690
|
+
fill: ${r["cScaleLabel" + i]};
|
|
716
691
|
}
|
|
717
|
-
.node-icon-${
|
|
692
|
+
.node-icon-${i - 1} {
|
|
718
693
|
font-size: 40px;
|
|
719
|
-
color: ${
|
|
694
|
+
color: ${r["cScaleLabel" + i]};
|
|
720
695
|
}
|
|
721
|
-
.section-edge-${
|
|
722
|
-
stroke: ${
|
|
696
|
+
.section-edge-${i - 1}{
|
|
697
|
+
stroke: ${r["cScale" + i]};
|
|
723
698
|
}
|
|
724
|
-
.edge-depth-${
|
|
725
|
-
stroke-width: ${
|
|
699
|
+
.edge-depth-${i - 1}{
|
|
700
|
+
stroke-width: ${l};
|
|
726
701
|
}
|
|
727
|
-
.section-${
|
|
728
|
-
stroke: ${
|
|
702
|
+
.section-${i - 1} line {
|
|
703
|
+
stroke: ${r["cScaleInv" + i]} ;
|
|
729
704
|
stroke-width: 3;
|
|
730
705
|
}
|
|
731
706
|
|
|
@@ -738,22 +713,22 @@ var De = X, L = {
|
|
|
738
713
|
`;
|
|
739
714
|
}
|
|
740
715
|
return e;
|
|
741
|
-
}, "genSections"),
|
|
716
|
+
}, "genSections"), be = /* @__PURE__ */ c((r) => `
|
|
742
717
|
.edge {
|
|
743
718
|
stroke-width: 3;
|
|
744
719
|
}
|
|
745
|
-
${
|
|
720
|
+
${_e(r)}
|
|
746
721
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
747
|
-
fill: ${
|
|
722
|
+
fill: ${r.git0};
|
|
748
723
|
}
|
|
749
724
|
.section-root text {
|
|
750
|
-
fill: ${
|
|
725
|
+
fill: ${r.gitBranchLabel0};
|
|
751
726
|
}
|
|
752
727
|
.section-root span {
|
|
753
|
-
color: ${
|
|
728
|
+
color: ${r.gitBranchLabel0};
|
|
754
729
|
}
|
|
755
730
|
.section-2 span {
|
|
756
|
-
color: ${
|
|
731
|
+
color: ${r.gitBranchLabel0};
|
|
757
732
|
}
|
|
758
733
|
.icon-container {
|
|
759
734
|
height:100%;
|
|
@@ -771,14 +746,14 @@ var De = X, L = {
|
|
|
771
746
|
dominant-baseline: middle;
|
|
772
747
|
text-align: center;
|
|
773
748
|
}
|
|
774
|
-
`, "getStyles"),
|
|
749
|
+
`, "getStyles"), Se = be, xe = {
|
|
775
750
|
get db() {
|
|
776
|
-
return new
|
|
751
|
+
return new ye();
|
|
777
752
|
},
|
|
778
|
-
renderer:
|
|
779
|
-
parser:
|
|
780
|
-
styles:
|
|
753
|
+
renderer: Ee,
|
|
754
|
+
parser: fe,
|
|
755
|
+
styles: Se
|
|
781
756
|
};
|
|
782
757
|
export {
|
|
783
|
-
|
|
758
|
+
xe as diagram
|
|
784
759
|
};
|