@blueking/ai-blueking 2.1.4-beta.7 → 2.1.4-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/standalone/_baseFor-DZ1vnh4H.js +393 -0
  2. package/dist/standalone/arc-WNacHY26.js +80 -0
  3. package/dist/standalone/architecture-YZFGNWBL-pIa_tKdA.js +3 -0
  4. package/dist/standalone/architectureDiagram-Q4EWVU46-Bfam8Fg3.js +4057 -0
  5. package/dist/standalone/array-CWNufkl9.js +6 -0
  6. package/dist/standalone/blockDiagram-DXYQGD6D-vAb9uyF5.js +3033 -0
  7. package/dist/standalone/c4Diagram-AHTNJAMY-BWACU0ER.js +2961 -0
  8. package/dist/standalone/channel-Br5ChI8U.js +5 -0
  9. package/dist/standalone/chunk-2KRD3SAO-Deh6AASy.js +23 -0
  10. package/dist/standalone/chunk-336JU56O-CFKWNcxR.js +49 -0
  11. package/dist/standalone/chunk-426QAEUC-D_wKNd3w.js +9 -0
  12. package/dist/standalone/chunk-4BX2VUAB-DKC_OBWg.js +8 -0
  13. package/dist/standalone/chunk-4TB4RGXK-HiVG7T1A.js +3254 -0
  14. package/dist/standalone/chunk-55IACEB6-DBivnNb2.js +8 -0
  15. package/dist/standalone/chunk-5FUZZQ4R-tiEjqlP4.js +3638 -0
  16. package/dist/standalone/chunk-5PVQY5BW-BCjrVrWB.js +1299 -0
  17. package/dist/standalone/chunk-67CJDMHE-BX09W6oy.js +23 -0
  18. package/dist/standalone/chunk-7N4EOEYR-G144j5Vc.js +35 -0
  19. package/dist/standalone/chunk-AA7GKIK3-Dx9YCoJ-.js +30 -0
  20. package/dist/standalone/chunk-BSJP7CBP-DE8WR0MI.js +82 -0
  21. package/dist/standalone/chunk-CIAEETIT-Bv86XVLB.js +23 -0
  22. package/dist/standalone/chunk-EDXVE4YY-DE9KzYM-.js +25 -0
  23. package/dist/standalone/chunk-ENJZ2VHE-DlxIC-A3.js +560 -0
  24. package/dist/standalone/chunk-FMBD7UC4-DCkBrKFO.js +5 -0
  25. package/dist/standalone/chunk-FOC6F5B3-C7hwrEZJ.js +23 -0
  26. package/dist/standalone/chunk-ICPOFSXX-B9JXAgJU.js +2772 -0
  27. package/dist/standalone/chunk-K5T4RW27-T6hJxJM0.js +16070 -0
  28. package/dist/standalone/chunk-KGLVRYIC-C0JPhrjn.js +23 -0
  29. package/dist/standalone/chunk-LIHQZDEY-CiavnvWh.js +64 -0
  30. package/dist/standalone/chunk-ORNJ4GCN-BtJ79bik.js +31 -0
  31. package/dist/standalone/chunk-OYMX7WX6-D2UHnmfD.js +2014 -0
  32. package/dist/standalone/chunk-QZHKN3VN-DhzThSvb.js +15 -0
  33. package/dist/standalone/chunk-U2HBQHQK-75Isf1R4.js +1896 -0
  34. package/dist/standalone/chunk-WQLz0Won.js +20 -0
  35. package/dist/standalone/chunk-X2U36JSP-DSzducJI.js +67 -0
  36. package/dist/standalone/chunk-XPW4576I-BFhmu0d4.js +1146 -0
  37. package/dist/standalone/chunk-YZCP3GAM-90EaSO-2.js +60 -0
  38. package/dist/standalone/chunk-ZZ45TVLE-DUagTZ9d.js +32 -0
  39. package/dist/standalone/classDiagram-6PBFFD2Q-Bwt78q4N.js +29 -0
  40. package/dist/standalone/classDiagram-v2-HSJHXN6E-B2qI9-xf.js +29 -0
  41. package/dist/standalone/clone-CBw-BHXl.js +8 -0
  42. package/dist/standalone/cose-bilkent-S5V4N54A-DFJ1nlog.js +2250 -0
  43. package/dist/standalone/cytoscape.esm-DdhenceR.js +18103 -0
  44. package/dist/standalone/dagre-KV5264BT-CXTBtAae.js +293 -0
  45. package/dist/standalone/dagre-kfvGmNUa.js +1606 -0
  46. package/dist/standalone/defaultLocale-bckJcYh1.js +201 -0
  47. package/dist/standalone/diagram-5BDNPKRD--gLHDKg-.js +101 -0
  48. package/dist/standalone/diagram-G4DWMVQ6-BwLE9Hsf.js +524 -0
  49. package/dist/standalone/diagram-MMDJMWI5-CoilYxa0.js +213 -0
  50. package/dist/standalone/diagram-TYMM5635-BupwRdr6.js +133 -0
  51. package/dist/standalone/dist-Dlj1jr8W.js +59 -0
  52. package/dist/standalone/erDiagram-SMLLAGMA-tIdn6ZCM.js +1700 -0
  53. package/dist/standalone/flatten-CXxC4cn2.js +40 -0
  54. package/dist/standalone/flowDiagram-DWJPFMVM-C86bLTAY.js +4146 -0
  55. package/dist/standalone/ganttDiagram-T4ZO3ILL-BT23lv_X.js +3077 -0
  56. package/dist/standalone/gitGraph-7Q5UKJZL-C-7nG8PF.js +3 -0
  57. package/dist/standalone/gitGraphDiagram-UUTBAWPF-DT1BGQsP.js +728 -0
  58. package/dist/standalone/graphlib-DrXiQBFg.js +373 -0
  59. package/dist/standalone/index.es.min.js +59705 -0
  60. package/dist/standalone/index.iife.min.js +3502 -0
  61. package/dist/standalone/index.umd.min.js +3502 -0
  62. package/dist/standalone/info-OMHHGYJF-BOS7mrON.js +3 -0
  63. package/dist/standalone/infoDiagram-42DDH7IO-Dx7LFK0B.js +19 -0
  64. package/dist/standalone/init-B75p2clj.js +15 -0
  65. package/dist/standalone/isEmpty-CVG4Bj-P.js +35 -0
  66. package/dist/standalone/ishikawaDiagram-UXIWVN3A-CX4cX3qb.js +718 -0
  67. package/dist/standalone/journeyDiagram-VCZTEJTY-BCvxmmFn.js +883 -0
  68. package/dist/standalone/kanban-definition-6JOO6SKY-SVINWaiM.js +973 -0
  69. package/dist/standalone/katex-CKrw0rbA.js +22016 -0
  70. package/dist/standalone/line-BF1XS-Ng.js +34 -0
  71. package/dist/standalone/linear-DGQDIL28.js +289 -0
  72. package/dist/standalone/mermaid-parser.core-Blz-Qy2h.js +69 -0
  73. package/dist/standalone/mermaid.core-CHTh1JGx.js +944 -0
  74. package/dist/standalone/mindmap-definition-QFDTVHPH-1Trzro3y.js +1009 -0
  75. package/dist/standalone/ordinal-F3U6aXtP.js +65 -0
  76. package/dist/standalone/packet-4T2RLAQJ-ai5Omp1h.js +3 -0
  77. package/dist/standalone/path-Dm3C8WEs.js +85 -0
  78. package/dist/standalone/pie-ZZUOXDRM-Df1rG6QC.js +3 -0
  79. package/dist/standalone/pieDiagram-DEJITSTG-D5Omb898.js +165 -0
  80. package/dist/standalone/purify.es-CZ_RvYUu.js +549 -0
  81. package/dist/standalone/quadrantDiagram-34T5L4WZ-Ct4g9T4o.js +1974 -0
  82. package/dist/standalone/radar-PYXPWWZC-B2t6k6Fg.js +3 -0
  83. package/dist/standalone/reduce-DbMsJ4nx.js +532 -0
  84. package/dist/standalone/requirementDiagram-MS252O5E-CP0BUgnz.js +2221 -0
  85. package/dist/standalone/rough.esm-UCEI3PYn.js +1352 -0
  86. package/dist/standalone/sankeyDiagram-XADWPNL6-D6C7yZ3k.js +920 -0
  87. package/dist/standalone/sequenceDiagram-FGHM5R23-KeodespT.js +4157 -0
  88. package/dist/standalone/src-CFVe5TPD.js +2146 -0
  89. package/dist/standalone/stateDiagram-FHFEXIEX-DAupoS9U.js +217 -0
  90. package/dist/standalone/stateDiagram-v2-QKLJ7IA2-C1Lw_i_z.js +27 -0
  91. package/dist/standalone/style.css +1 -0
  92. package/dist/standalone/timeline-definition-GMOUNBTQ-Cwhj84lX.js +1068 -0
  93. package/dist/standalone/treeView-SZITEDCU-BnoMeJSb.js +3 -0
  94. package/dist/standalone/treemap-W4RFUUIX-B38XFBZF.js +3 -0
  95. package/dist/standalone/vennDiagram-DHZGUBPP-_1PHloeO.js +1858 -0
  96. package/dist/standalone/wardley-RL74JXVD-bB8BBy_Y.js +3 -0
  97. package/dist/standalone/wardleyDiagram-NUSXRM2D-DRLCx-qh.js +578 -0
  98. package/dist/standalone/xychartDiagram-5P7HB3ND-Bz2-4Ufi.js +2044 -0
  99. package/dist/standalone-mount-core.d.ts +34 -0
  100. package/dist/standalone-mount-core.d.ts.map +1 -0
  101. package/dist/standalone-mount.d.ts +14 -0
  102. package/dist/standalone-mount.d.ts.map +1 -0
  103. package/dist/standalone.d.ts +8 -0
  104. package/dist/standalone.d.ts.map +1 -0
  105. package/package.json +12 -3
@@ -0,0 +1,1009 @@
1
+ import { g as e, h as t } from "./src-CFVe5TPD.js";
2
+ import { L as n, O as r, Q as i, Z as a, b as o, d as s, et as c, y as l } from "./chunk-ICPOFSXX-B9JXAgJU.js";
3
+ import "./chunk-5PVQY5BW-BCjrVrWB.js";
4
+ import "./chunk-U2HBQHQK-75Isf1R4.js";
5
+ import "./chunk-BSJP7CBP-DE8WR0MI.js";
6
+ import "./chunk-ZZ45TVLE-DUagTZ9d.js";
7
+ import { t as u } from "./chunk-55IACEB6-DBivnNb2.js";
8
+ import { t as d } from "./chunk-EDXVE4YY-DE9KzYM-.js";
9
+ import "./chunk-X2U36JSP-DSzducJI.js";
10
+ import "./chunk-5FUZZQ4R-tiEjqlP4.js";
11
+ import "./chunk-ENJZ2VHE-DlxIC-A3.js";
12
+ import { r as f, t as p } from "./chunk-336JU56O-CFKWNcxR.js";
13
+ //#region ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js
14
+ var m = [];
15
+ for (let e = 0; e < 256; ++e) m.push((e + 256).toString(16).slice(1));
16
+ function h(e, t = 0) {
17
+ return (m[e[t + 0]] + m[e[t + 1]] + m[e[t + 2]] + m[e[t + 3]] + "-" + m[e[t + 4]] + m[e[t + 5]] + "-" + m[e[t + 6]] + m[e[t + 7]] + "-" + m[e[t + 8]] + m[e[t + 9]] + "-" + m[e[t + 10]] + m[e[t + 11]] + m[e[t + 12]] + m[e[t + 13]] + m[e[t + 14]] + m[e[t + 15]]).toLowerCase();
18
+ }
19
+ //#endregion
20
+ //#region ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js
21
+ var g, _ = new Uint8Array(16);
22
+ function v() {
23
+ if (!g) {
24
+ if (typeof crypto > "u" || !crypto.getRandomValues) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
25
+ g = crypto.getRandomValues.bind(crypto);
26
+ }
27
+ return g(_);
28
+ }
29
+ var y = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
30
+ //#endregion
31
+ //#region ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js
32
+ function b(e, t, n) {
33
+ if (y.randomUUID && !t && !e) return y.randomUUID();
34
+ e ||= {};
35
+ let r = e.random ?? e.rng?.() ?? v();
36
+ if (r.length < 16) throw Error("Random bytes length must be >= 16");
37
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
38
+ if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
39
+ for (let e = 0; e < 16; ++e) t[n + e] = r[e];
40
+ return t;
41
+ }
42
+ return h(r);
43
+ }
44
+ //#endregion
45
+ //#region ../../node_modules/.pnpm/mermaid@11.14.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.mjs
46
+ var x = (function() {
47
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
48
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
49
+ return n;
50
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
51
+ 6,
52
+ 7,
53
+ 8
54
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
55
+ 6,
56
+ 7,
57
+ 11
58
+ ], m = [
59
+ 1,
60
+ 6,
61
+ 13,
62
+ 15,
63
+ 16,
64
+ 19,
65
+ 22
66
+ ], h = [1, 33], g = [1, 34], _ = [
67
+ 1,
68
+ 6,
69
+ 7,
70
+ 11,
71
+ 13,
72
+ 15,
73
+ 16,
74
+ 19,
75
+ 22
76
+ ], v = {
77
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
78
+ yy: {},
79
+ symbols_: {
80
+ error: 2,
81
+ start: 3,
82
+ mindMap: 4,
83
+ spaceLines: 5,
84
+ SPACELINE: 6,
85
+ NL: 7,
86
+ MINDMAP: 8,
87
+ document: 9,
88
+ stop: 10,
89
+ EOF: 11,
90
+ statement: 12,
91
+ SPACELIST: 13,
92
+ node: 14,
93
+ ICON: 15,
94
+ CLASS: 16,
95
+ nodeWithId: 17,
96
+ nodeWithoutId: 18,
97
+ NODE_DSTART: 19,
98
+ NODE_DESCR: 20,
99
+ NODE_DEND: 21,
100
+ NODE_ID: 22,
101
+ $accept: 0,
102
+ $end: 1
103
+ },
104
+ terminals_: {
105
+ 2: "error",
106
+ 6: "SPACELINE",
107
+ 7: "NL",
108
+ 8: "MINDMAP",
109
+ 11: "EOF",
110
+ 13: "SPACELIST",
111
+ 15: "ICON",
112
+ 16: "CLASS",
113
+ 19: "NODE_DSTART",
114
+ 20: "NODE_DESCR",
115
+ 21: "NODE_DEND",
116
+ 22: "NODE_ID"
117
+ },
118
+ productions_: [
119
+ 0,
120
+ [3, 1],
121
+ [3, 2],
122
+ [5, 1],
123
+ [5, 2],
124
+ [5, 2],
125
+ [4, 2],
126
+ [4, 3],
127
+ [10, 1],
128
+ [10, 1],
129
+ [10, 1],
130
+ [10, 2],
131
+ [10, 2],
132
+ [9, 3],
133
+ [9, 2],
134
+ [12, 2],
135
+ [12, 2],
136
+ [12, 2],
137
+ [12, 1],
138
+ [12, 1],
139
+ [12, 1],
140
+ [12, 1],
141
+ [12, 1],
142
+ [14, 1],
143
+ [14, 1],
144
+ [18, 3],
145
+ [17, 1],
146
+ [17, 4]
147
+ ],
148
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
149
+ var s = a.length - 1;
150
+ switch (i) {
151
+ case 6:
152
+ case 7: return r;
153
+ case 8:
154
+ r.getLogger().trace("Stop NL ");
155
+ break;
156
+ case 9:
157
+ r.getLogger().trace("Stop EOF ");
158
+ break;
159
+ case 11:
160
+ r.getLogger().trace("Stop NL2 ");
161
+ break;
162
+ case 12:
163
+ r.getLogger().trace("Stop EOF2 ");
164
+ break;
165
+ case 15:
166
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
167
+ break;
168
+ case 16:
169
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
170
+ break;
171
+ case 17:
172
+ case 21:
173
+ r.decorateNode({ class: a[s] });
174
+ break;
175
+ case 18:
176
+ r.getLogger().trace("SPACELIST");
177
+ break;
178
+ case 19:
179
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
180
+ break;
181
+ case 20:
182
+ r.decorateNode({ icon: a[s] });
183
+ break;
184
+ case 25:
185
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
186
+ id: a[s - 1],
187
+ descr: a[s - 1],
188
+ type: r.getType(a[s - 2], a[s])
189
+ };
190
+ break;
191
+ case 26:
192
+ this.$ = {
193
+ id: a[s],
194
+ descr: a[s],
195
+ type: r.nodeType.DEFAULT
196
+ };
197
+ break;
198
+ case 27:
199
+ r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
200
+ id: a[s - 3],
201
+ descr: a[s - 1],
202
+ type: r.getType(a[s - 2], a[s])
203
+ };
204
+ break;
205
+ }
206
+ }, "anonymous"),
207
+ table: [
208
+ {
209
+ 3: 1,
210
+ 4: 2,
211
+ 5: 3,
212
+ 6: [1, 5],
213
+ 8: n
214
+ },
215
+ { 1: [3] },
216
+ { 1: [2, 1] },
217
+ {
218
+ 4: 6,
219
+ 6: [1, 7],
220
+ 7: [1, 8],
221
+ 8: n
222
+ },
223
+ {
224
+ 6: r,
225
+ 7: [1, 10],
226
+ 9: 9,
227
+ 12: 11,
228
+ 13: i,
229
+ 14: 14,
230
+ 15: a,
231
+ 16: o,
232
+ 17: 17,
233
+ 18: 18,
234
+ 19: s,
235
+ 22: c
236
+ },
237
+ e(l, [2, 3]),
238
+ { 1: [2, 2] },
239
+ e(l, [2, 4]),
240
+ e(l, [2, 5]),
241
+ {
242
+ 1: [2, 6],
243
+ 6: r,
244
+ 12: 21,
245
+ 13: i,
246
+ 14: 14,
247
+ 15: a,
248
+ 16: o,
249
+ 17: 17,
250
+ 18: 18,
251
+ 19: s,
252
+ 22: c
253
+ },
254
+ {
255
+ 6: r,
256
+ 9: 22,
257
+ 12: 11,
258
+ 13: i,
259
+ 14: 14,
260
+ 15: a,
261
+ 16: o,
262
+ 17: 17,
263
+ 18: 18,
264
+ 19: s,
265
+ 22: c
266
+ },
267
+ {
268
+ 6: u,
269
+ 7: d,
270
+ 10: 23,
271
+ 11: f
272
+ },
273
+ e(p, [2, 22], {
274
+ 17: 17,
275
+ 18: 18,
276
+ 14: 27,
277
+ 15: [1, 28],
278
+ 16: [1, 29],
279
+ 19: s,
280
+ 22: c
281
+ }),
282
+ e(p, [2, 18]),
283
+ e(p, [2, 19]),
284
+ e(p, [2, 20]),
285
+ e(p, [2, 21]),
286
+ e(p, [2, 23]),
287
+ e(p, [2, 24]),
288
+ e(p, [2, 26], { 19: [1, 30] }),
289
+ { 20: [1, 31] },
290
+ {
291
+ 6: u,
292
+ 7: d,
293
+ 10: 32,
294
+ 11: f
295
+ },
296
+ {
297
+ 1: [2, 7],
298
+ 6: r,
299
+ 12: 21,
300
+ 13: i,
301
+ 14: 14,
302
+ 15: a,
303
+ 16: o,
304
+ 17: 17,
305
+ 18: 18,
306
+ 19: s,
307
+ 22: c
308
+ },
309
+ e(m, [2, 14], {
310
+ 7: h,
311
+ 11: g
312
+ }),
313
+ e(_, [2, 8]),
314
+ e(_, [2, 9]),
315
+ e(_, [2, 10]),
316
+ e(p, [2, 15]),
317
+ e(p, [2, 16]),
318
+ e(p, [2, 17]),
319
+ { 20: [1, 35] },
320
+ { 21: [1, 36] },
321
+ e(m, [2, 13], {
322
+ 7: h,
323
+ 11: g
324
+ }),
325
+ e(_, [2, 11]),
326
+ e(_, [2, 12]),
327
+ { 21: [1, 37] },
328
+ e(p, [2, 25]),
329
+ e(p, [2, 27])
330
+ ],
331
+ defaultActions: {
332
+ 2: [2, 1],
333
+ 6: [2, 2]
334
+ },
335
+ parseError: /* @__PURE__ */ t(function(e, t) {
336
+ if (t.recoverable) this.trace(e);
337
+ else {
338
+ var n = Error(e);
339
+ throw n.hash = t, n;
340
+ }
341
+ }, "parseError"),
342
+ parse: /* @__PURE__ */ t(function(e) {
343
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
344
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
345
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
346
+ var v = h.yylloc;
347
+ o.push(v);
348
+ var y = h.options && h.options.ranges;
349
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
350
+ function b(e) {
351
+ r.length -= 2 * e, a.length -= e, o.length -= e;
352
+ }
353
+ t(b, "popStack");
354
+ function x() {
355
+ var e = i.pop() || h.lex() || p;
356
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
357
+ }
358
+ t(x, "lex");
359
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
360
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
361
+ var M = "";
362
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
363
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
364
+ text: h.match,
365
+ token: this.terminals_[S] || S,
366
+ line: h.yylineno,
367
+ loc: v,
368
+ expected: j
369
+ });
370
+ }
371
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
372
+ switch (T[0]) {
373
+ case 1:
374
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
375
+ break;
376
+ case 2:
377
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
378
+ first_line: o[o.length - (k || 1)].first_line,
379
+ last_line: o[o.length - 1].last_line,
380
+ first_column: o[o.length - (k || 1)].first_column,
381
+ last_column: o[o.length - 1].last_column
382
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
383
+ c,
384
+ u,
385
+ l,
386
+ g.yy,
387
+ T[1],
388
+ a,
389
+ o
390
+ ].concat(m)), E !== void 0) return E;
391
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
392
+ break;
393
+ case 3: return !0;
394
+ }
395
+ }
396
+ return !0;
397
+ }, "parse")
398
+ };
399
+ v.lexer = /* @__PURE__ */ (function() {
400
+ return {
401
+ EOF: 1,
402
+ parseError: /* @__PURE__ */ t(function(e, t) {
403
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
404
+ else throw Error(e);
405
+ }, "parseError"),
406
+ setInput: /* @__PURE__ */ t(function(e, t) {
407
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
408
+ first_line: 1,
409
+ first_column: 0,
410
+ last_line: 1,
411
+ last_column: 0
412
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
413
+ }, "setInput"),
414
+ input: /* @__PURE__ */ t(function() {
415
+ var e = this._input[0];
416
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
417
+ }, "input"),
418
+ unput: /* @__PURE__ */ t(function(e) {
419
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
420
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
421
+ var r = this.match.split(/(?:\r\n?|\n)/g);
422
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
423
+ var i = this.yylloc.range;
424
+ return this.yylloc = {
425
+ first_line: this.yylloc.first_line,
426
+ last_line: this.yylineno + 1,
427
+ first_column: this.yylloc.first_column,
428
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
429
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
430
+ }, "unput"),
431
+ more: /* @__PURE__ */ t(function() {
432
+ return this._more = !0, this;
433
+ }, "more"),
434
+ reject: /* @__PURE__ */ t(function() {
435
+ if (this.options.backtrack_lexer) this._backtrack = !0;
436
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
437
+ text: "",
438
+ token: null,
439
+ line: this.yylineno
440
+ });
441
+ return this;
442
+ }, "reject"),
443
+ less: /* @__PURE__ */ t(function(e) {
444
+ this.unput(this.match.slice(e));
445
+ }, "less"),
446
+ pastInput: /* @__PURE__ */ t(function() {
447
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
448
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
449
+ }, "pastInput"),
450
+ upcomingInput: /* @__PURE__ */ t(function() {
451
+ var e = this.match;
452
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
453
+ }, "upcomingInput"),
454
+ showPosition: /* @__PURE__ */ t(function() {
455
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
456
+ return e + this.upcomingInput() + "\n" + t + "^";
457
+ }, "showPosition"),
458
+ test_match: /* @__PURE__ */ t(function(e, t) {
459
+ var n, r, i;
460
+ if (this.options.backtrack_lexer && (i = {
461
+ yylineno: this.yylineno,
462
+ yylloc: {
463
+ first_line: this.yylloc.first_line,
464
+ last_line: this.last_line,
465
+ first_column: this.yylloc.first_column,
466
+ last_column: this.yylloc.last_column
467
+ },
468
+ yytext: this.yytext,
469
+ match: this.match,
470
+ matches: this.matches,
471
+ matched: this.matched,
472
+ yyleng: this.yyleng,
473
+ offset: this.offset,
474
+ _more: this._more,
475
+ _input: this._input,
476
+ yy: this.yy,
477
+ conditionStack: this.conditionStack.slice(0),
478
+ done: this.done
479
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
480
+ first_line: this.yylloc.last_line,
481
+ last_line: this.yylineno + 1,
482
+ first_column: this.yylloc.last_column,
483
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
484
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
485
+ if (this._backtrack) {
486
+ for (var a in i) this[a] = i[a];
487
+ return !1;
488
+ }
489
+ return !1;
490
+ }, "test_match"),
491
+ next: /* @__PURE__ */ t(function() {
492
+ if (this.done) return this.EOF;
493
+ this._input || (this.done = !0);
494
+ var e, t, n, r;
495
+ this._more || (this.yytext = "", this.match = "");
496
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
497
+ if (t = n, r = a, this.options.backtrack_lexer) {
498
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
499
+ if (this._backtrack) {
500
+ t = !1;
501
+ continue;
502
+ } else return !1;
503
+ } else if (!this.options.flex) break;
504
+ }
505
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
506
+ text: "",
507
+ token: null,
508
+ line: this.yylineno
509
+ });
510
+ }, "next"),
511
+ lex: /* @__PURE__ */ t(function() {
512
+ return this.next() || this.lex();
513
+ }, "lex"),
514
+ begin: /* @__PURE__ */ t(function(e) {
515
+ this.conditionStack.push(e);
516
+ }, "begin"),
517
+ popState: /* @__PURE__ */ t(function() {
518
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
519
+ }, "popState"),
520
+ _currentRules: /* @__PURE__ */ t(function() {
521
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
522
+ }, "_currentRules"),
523
+ topState: /* @__PURE__ */ t(function(e) {
524
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
525
+ }, "topState"),
526
+ pushState: /* @__PURE__ */ t(function(e) {
527
+ this.begin(e);
528
+ }, "pushState"),
529
+ stateStackSize: /* @__PURE__ */ t(function() {
530
+ return this.conditionStack.length;
531
+ }, "stateStackSize"),
532
+ options: { "case-insensitive": !0 },
533
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
534
+ switch (n) {
535
+ case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
536
+ case 1: return 8;
537
+ case 2:
538
+ this.begin("CLASS");
539
+ break;
540
+ case 3: return this.popState(), 16;
541
+ case 4:
542
+ this.popState();
543
+ break;
544
+ case 5:
545
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
546
+ break;
547
+ case 6: return e.getLogger().trace("SPACELINE"), 6;
548
+ case 7: return 7;
549
+ case 8: return 15;
550
+ case 9:
551
+ e.getLogger().trace("end icon"), this.popState();
552
+ break;
553
+ case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
554
+ case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
555
+ case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
556
+ case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
557
+ case 14: return this.begin("NODE"), 19;
558
+ case 15: return this.begin("NODE"), 19;
559
+ case 16: return this.begin("NODE"), 19;
560
+ case 17: return this.begin("NODE"), 19;
561
+ case 18: return 13;
562
+ case 19: return 22;
563
+ case 20: return 11;
564
+ case 21:
565
+ this.begin("NSTR2");
566
+ break;
567
+ case 22: return "NODE_DESCR";
568
+ case 23:
569
+ this.popState();
570
+ break;
571
+ case 24:
572
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
573
+ break;
574
+ case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
575
+ case 26:
576
+ this.popState();
577
+ break;
578
+ case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
579
+ case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
580
+ case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
581
+ case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
582
+ case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
583
+ case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
584
+ case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
585
+ case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
586
+ case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
587
+ case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
588
+ }
589
+ }, "anonymous"),
590
+ rules: [
591
+ /^(?:\s*%%.*)/i,
592
+ /^(?:mindmap\b)/i,
593
+ /^(?::::)/i,
594
+ /^(?:.+)/i,
595
+ /^(?:\n)/i,
596
+ /^(?:::icon\()/i,
597
+ /^(?:[\s]+[\n])/i,
598
+ /^(?:[\n]+)/i,
599
+ /^(?:[^\)]+)/i,
600
+ /^(?:\))/i,
601
+ /^(?:-\))/i,
602
+ /^(?:\(-)/i,
603
+ /^(?:\)\))/i,
604
+ /^(?:\))/i,
605
+ /^(?:\(\()/i,
606
+ /^(?:\{\{)/i,
607
+ /^(?:\()/i,
608
+ /^(?:\[)/i,
609
+ /^(?:[\s]+)/i,
610
+ /^(?:[^\(\[\n\)\{\}]+)/i,
611
+ /^(?:$)/i,
612
+ /^(?:["][`])/i,
613
+ /^(?:[^`"]+)/i,
614
+ /^(?:[`]["])/i,
615
+ /^(?:["])/i,
616
+ /^(?:[^"]+)/i,
617
+ /^(?:["])/i,
618
+ /^(?:[\)]\))/i,
619
+ /^(?:[\)])/i,
620
+ /^(?:[\]])/i,
621
+ /^(?:\}\})/i,
622
+ /^(?:\(-)/i,
623
+ /^(?:-\))/i,
624
+ /^(?:\(\()/i,
625
+ /^(?:\()/i,
626
+ /^(?:[^\)\]\(\}]+)/i,
627
+ /^(?:.+(?!\(\())/i
628
+ ],
629
+ conditions: {
630
+ CLASS: {
631
+ rules: [3, 4],
632
+ inclusive: !1
633
+ },
634
+ ICON: {
635
+ rules: [8, 9],
636
+ inclusive: !1
637
+ },
638
+ NSTR2: {
639
+ rules: [22, 23],
640
+ inclusive: !1
641
+ },
642
+ NSTR: {
643
+ rules: [25, 26],
644
+ inclusive: !1
645
+ },
646
+ NODE: {
647
+ rules: [
648
+ 21,
649
+ 24,
650
+ 27,
651
+ 28,
652
+ 29,
653
+ 30,
654
+ 31,
655
+ 32,
656
+ 33,
657
+ 34,
658
+ 35,
659
+ 36
660
+ ],
661
+ inclusive: !1
662
+ },
663
+ INITIAL: {
664
+ rules: [
665
+ 0,
666
+ 1,
667
+ 2,
668
+ 5,
669
+ 6,
670
+ 7,
671
+ 10,
672
+ 11,
673
+ 12,
674
+ 13,
675
+ 14,
676
+ 15,
677
+ 16,
678
+ 17,
679
+ 18,
680
+ 19,
681
+ 20
682
+ ],
683
+ inclusive: !0
684
+ }
685
+ }
686
+ };
687
+ })();
688
+ function y() {
689
+ this.yy = {};
690
+ }
691
+ return t(y, "Parser"), y.prototype = v, v.Parser = y, new y();
692
+ })();
693
+ x.parser = x;
694
+ var S = x, C = 12, w = {
695
+ DEFAULT: 0,
696
+ NO_BORDER: 0,
697
+ ROUNDED_RECT: 1,
698
+ RECT: 2,
699
+ CIRCLE: 3,
700
+ CLOUD: 4,
701
+ BANG: 5,
702
+ HEXAGON: 6
703
+ }, T = class {
704
+ constructor() {
705
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = w, 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);
706
+ }
707
+ static {
708
+ t(this, "MindmapDB");
709
+ }
710
+ clear() {
711
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
712
+ }
713
+ getParent(e) {
714
+ for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
715
+ return null;
716
+ }
717
+ getMindmap() {
718
+ return this.nodes.length > 0 ? this.nodes[0] : null;
719
+ }
720
+ addNode(t, r, i, a) {
721
+ e.info("addNode", t, r, i, a);
722
+ let c = !1;
723
+ this.nodes.length === 0 ? (this.baseLevel = t, t = 0, c = !0) : this.baseLevel !== void 0 && (t -= this.baseLevel, c = !1);
724
+ let l = o(), u = l.mindmap?.padding ?? s.mindmap.padding;
725
+ switch (a) {
726
+ case this.nodeType.ROUNDED_RECT:
727
+ case this.nodeType.RECT:
728
+ case this.nodeType.HEXAGON:
729
+ u *= 2;
730
+ break;
731
+ }
732
+ let d = {
733
+ id: this.count++,
734
+ nodeId: n(r, l),
735
+ level: t,
736
+ descr: n(i, l),
737
+ type: a,
738
+ children: [],
739
+ width: l.mindmap?.maxNodeWidth ?? s.mindmap.maxNodeWidth,
740
+ padding: u,
741
+ isRoot: c
742
+ }, f = this.getParent(t);
743
+ if (f) f.children.push(d), this.nodes.push(d);
744
+ else if (c) this.nodes.push(d);
745
+ else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`);
746
+ }
747
+ getType(t, n) {
748
+ switch (e.debug("In get type", t, n), t) {
749
+ case "[": return this.nodeType.RECT;
750
+ case "(": return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
751
+ case "((": return this.nodeType.CIRCLE;
752
+ case ")": return this.nodeType.CLOUD;
753
+ case "))": return this.nodeType.BANG;
754
+ case "{{": return this.nodeType.HEXAGON;
755
+ default: return this.nodeType.DEFAULT;
756
+ }
757
+ }
758
+ setElementForId(e, t) {
759
+ this.elements[e] = t;
760
+ }
761
+ getElementById(e) {
762
+ return this.elements[e];
763
+ }
764
+ decorateNode(e) {
765
+ if (!e) return;
766
+ let t = o(), r = this.nodes[this.nodes.length - 1];
767
+ e.icon && (r.icon = n(e.icon, t)), e.class && (r.class = n(e.class, t));
768
+ }
769
+ type2Str(e) {
770
+ switch (e) {
771
+ case this.nodeType.DEFAULT: return "no-border";
772
+ case this.nodeType.RECT: return "rect";
773
+ case this.nodeType.ROUNDED_RECT: return "rounded-rect";
774
+ case this.nodeType.CIRCLE: return "circle";
775
+ case this.nodeType.CLOUD: return "cloud";
776
+ case this.nodeType.BANG: return "bang";
777
+ case this.nodeType.HEXAGON: return "hexgon";
778
+ default: return "no-border";
779
+ }
780
+ }
781
+ assignSections(e, t) {
782
+ if (e.level === 0 ? e.section = void 0 : e.section = t, e.children) for (let [n, r] of e.children.entries()) {
783
+ let i = e.level === 0 ? n % (C - 1) : t;
784
+ this.assignSections(r, i);
785
+ }
786
+ }
787
+ flattenNodes(e, n) {
788
+ let r = o(), i = ["mindmap-node"];
789
+ e.isRoot === !0 ? i.push("section-root", "section--1") : e.section !== void 0 && i.push(`section-${e.section}`), e.class && i.push(e.class);
790
+ let a = i.join(" "), s = /* @__PURE__ */ t((e) => {
791
+ let t = (r.theme?.toLowerCase() ?? "").includes("redux");
792
+ switch (e) {
793
+ case w.CIRCLE: return "mindmapCircle";
794
+ case w.RECT: return "rect";
795
+ case w.ROUNDED_RECT: return "rounded";
796
+ case w.CLOUD: return "cloud";
797
+ case w.BANG: return "bang";
798
+ case w.HEXAGON: return "hexagon";
799
+ case w.DEFAULT: return t ? "rounded" : "defaultMindmapNode";
800
+ case w.NO_BORDER:
801
+ default: return "rect";
802
+ }
803
+ }, "getShapeFromType"), c = {
804
+ id: e.id.toString(),
805
+ domId: "node_" + e.id.toString(),
806
+ label: e.descr,
807
+ labelType: "markdown",
808
+ isGroup: !1,
809
+ shape: s(e.type),
810
+ width: e.width,
811
+ height: e.height ?? 0,
812
+ padding: e.padding,
813
+ cssClasses: a,
814
+ cssStyles: [],
815
+ look: r.look,
816
+ icon: e.icon,
817
+ x: e.x,
818
+ y: e.y,
819
+ level: e.level,
820
+ nodeId: e.nodeId,
821
+ type: e.type,
822
+ section: e.section
823
+ };
824
+ if (n.push(c), e.children) for (let t of e.children) this.flattenNodes(t, n);
825
+ }
826
+ generateEdges(e, t) {
827
+ if (!e.children) return;
828
+ let n = o();
829
+ for (let r of e.children) {
830
+ let i = "edge";
831
+ r.section !== void 0 && (i += ` section-edge-${r.section}`);
832
+ let a = e.level + 1;
833
+ i += ` edge-depth-${a}`;
834
+ let o = {
835
+ id: `edge_${e.id}_${r.id}`,
836
+ start: e.id.toString(),
837
+ end: r.id.toString(),
838
+ type: "normal",
839
+ curve: "basis",
840
+ thickness: "normal",
841
+ look: n.look,
842
+ classes: i,
843
+ depth: e.level,
844
+ section: r.section
845
+ };
846
+ t.push(o), this.generateEdges(r, t);
847
+ }
848
+ }
849
+ getData() {
850
+ let t = this.getMindmap(), n = o(), i = r().layout !== void 0, a = n;
851
+ if (i || (a.layout = "cose-bilkent"), !t) return {
852
+ nodes: [],
853
+ edges: [],
854
+ config: a
855
+ };
856
+ e.debug("getData: mindmapRoot", t, n), this.assignSections(t);
857
+ let s = [], c = [];
858
+ this.flattenNodes(t, s), this.generateEdges(t, c), e.debug(`getData: processed ${s.length} nodes and ${c.length} edges`);
859
+ let l = /* @__PURE__ */ new Map();
860
+ for (let e of s) l.set(e.id, {
861
+ shape: e.shape,
862
+ width: e.width,
863
+ height: e.height,
864
+ padding: e.padding
865
+ });
866
+ return {
867
+ nodes: s,
868
+ edges: c,
869
+ config: a,
870
+ rootNode: t,
871
+ markers: ["point"],
872
+ direction: "TB",
873
+ nodeSpacing: 50,
874
+ rankSpacing: 50,
875
+ shapes: Object.fromEntries(l),
876
+ type: "mindmap",
877
+ diagramId: "mindmap-" + b()
878
+ };
879
+ }
880
+ getLogger() {
881
+ return e;
882
+ }
883
+ }, E = { draw: /* @__PURE__ */ t(async (t, n, r, i) => {
884
+ e.debug("Rendering mindmap diagram\n" + t);
885
+ let a = i.db, o = a.getData(), c = u(n, o.config.securityLevel);
886
+ if (o.type = i.type, o.layoutAlgorithm = p(o.config.layout, { fallback: "cose-bilkent" }), o.diagramId = n, !a.getMindmap()) return;
887
+ o.nodes.forEach((e) => {
888
+ e.shape === "rounded" ? (e.radius = 15, e.taper = 15, e.stroke = "none", e.width = 0, e.padding = 15) : e.shape === "circle" ? e.padding = 10 : e.shape === "rect" ? (e.width = 0, e.padding = 10) : e.shape === "hexagon" && (e.width = 0, e.height = 0);
889
+ }), await f(o, c);
890
+ let { themeVariables: m } = l(), { useGradient: h, gradientStart: g, gradientStop: _ } = m;
891
+ if (h && g && _) {
892
+ let e = c.attr("id"), t = c.append("defs").append("linearGradient").attr("id", `${e}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
893
+ t.append("stop").attr("offset", "0%").attr("stop-color", g).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", _).attr("stop-opacity", 1);
894
+ }
895
+ d(c, o.config.mindmap?.padding ?? s.mindmap.padding, "mindmapDiagram", o.config.mindmap?.useMaxWidth ?? s.mindmap.useMaxWidth);
896
+ }, "draw") }, D = /* @__PURE__ */ t((e) => {
897
+ let { theme: t, look: n } = e, r = "";
898
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], c(e["lineColor" + t]) ? e["lineColor" + t] = i(e["lineColor" + t], 20) : e["lineColor" + t] = a(e["lineColor" + t], 20);
899
+ for (let i = 0; i < e.THEME_COLOR_LIMIT; i++) {
900
+ let a = "" + (n === "neo" ? Math.max(10 - (i - 1) * 2, 2) : 17 - 3 * i);
901
+ r += `
902
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
903
+ fill: ${e["cScale" + i]};
904
+ }
905
+ .section-${i - 1} text {
906
+ fill: ${e["cScaleLabel" + i]};
907
+ }
908
+ .section-${i - 1} span {
909
+ color: ${e["cScaleLabel" + i]};
910
+ }
911
+ .node-icon-${i - 1} {
912
+ font-size: 40px;
913
+ color: ${e["cScaleLabel" + i]};
914
+ }
915
+ .section-edge-${i - 1}{
916
+ stroke: ${e["cScale" + i]};
917
+ }
918
+ .edge-depth-${i - 1}{
919
+ stroke-width: ${a};
920
+ }
921
+ .section-${i - 1} line {
922
+ stroke: ${e["cScaleInv" + i]} ;
923
+ stroke-width: 3;
924
+ }
925
+
926
+ .disabled, .disabled circle, .disabled text {
927
+ fill: lightgray;
928
+ }
929
+ .disabled text {
930
+ fill: #efefef;
931
+ }
932
+ [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
933
+ fill: ${t === "redux" || t === "redux-dark" || t === "neutral" ? e.mainBkg : e["cScale" + i]};
934
+ stroke: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScale" + i]};
935
+ stroke-width: ${e.strokeWidth ?? 2}px;
936
+ }
937
+ [data-look="neo"].section-edge-${i - 1}{
938
+ stroke: ${t?.includes("redux") || t === "neo-dark" ? e.nodeBorder : e["cScale" + i]};
939
+ }
940
+ [data-look="neo"].mindmap-node.section-${i - 1} text {
941
+ fill: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (t === "neutral" ? 1 : i)]};
942
+ }
943
+ `;
944
+ }
945
+ return r;
946
+ }, "genSections"), O = /* @__PURE__ */ t((e, t, n) => {
947
+ let r = "";
948
+ for (let i = 0; i < e; i++) r += `
949
+ [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
950
+ stroke: url(${t}-gradient);
951
+ fill: ${n};
952
+ }
953
+ .section-${i - 1} line {
954
+ stroke-width: 0;
955
+ }`;
956
+ return r;
957
+ }, "genGradient"), k = {
958
+ get db() {
959
+ return new T();
960
+ },
961
+ renderer: E,
962
+ parser: S,
963
+ styles: /* @__PURE__ */ t((e) => {
964
+ let { theme: t } = e, n = e.svgId, r = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${n}-drop-shadow)`) : "none";
965
+ return `
966
+ .edge {
967
+ stroke-width: 3;
968
+ }
969
+ ${D(e)}
970
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
971
+ fill: ${e.git0};
972
+ }
973
+ .section-root text {
974
+ fill: ${e.gitBranchLabel0};
975
+ }
976
+ .section-root span {
977
+ color: ${t?.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
978
+ }
979
+ .icon-container {
980
+ height:100%;
981
+ display: flex;
982
+ justify-content: center;
983
+ align-items: center;
984
+ }
985
+ .edge {
986
+ fill: none;
987
+ }
988
+ .mindmap-node-label {
989
+ dy: 1em;
990
+ alignment-baseline: middle;
991
+ text-anchor: middle;
992
+ dominant-baseline: middle;
993
+ text-align: center;
994
+ }
995
+ [data-look="neo"].mindmap-node {
996
+ filter: ${r};
997
+ }
998
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
999
+ fill: ${t?.includes("redux") ? e.mainBkg : e.git0};
1000
+ }
1001
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
1002
+ fill: ${t?.includes("redux") ? e.nodeBorder : e["cScaleLabel" + +(t === "neutral")]};
1003
+ }
1004
+ ${e.useGradient && n && e.mainBkg ? O(e.THEME_COLOR_LIMIT, n, e.mainBkg) : ""}
1005
+ `;
1006
+ }, "getStyles")
1007
+ };
1008
+ //#endregion
1009
+ export { k as diagram };