@fibery/custom-app-text-editor 1.2.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.
Files changed (105) hide show
  1. package/LICENSE +214 -0
  2. package/README.md +33 -0
  3. package/lib/abnfDiagram-VRR7QNED-BgjOQqEh.js +89 -0
  4. package/lib/arc-Dp0rqagO.js +82 -0
  5. package/lib/architecture-TIHT7OUA-DDwCCw0y.js +3 -0
  6. package/lib/architectureDiagram-ZJ3FMSHR-BucIluTN.js +4129 -0
  7. package/lib/array-CApNbSU9.js +6 -0
  8. package/lib/blockDiagram-677ZJIJ3-CWYuHThP.js +3157 -0
  9. package/lib/c4Diagram-LMCZKHZV-Cr3_W-xe.js +2982 -0
  10. package/lib/channel-Bb7a6w5c.js +5 -0
  11. package/lib/chunk-2Q5K7J3B-CINvUK-A.js +15 -0
  12. package/lib/chunk-32BRIVSS-b-BvyGz0.js +61 -0
  13. package/lib/chunk-52WLFC77-Cf8zEoqs.js +593 -0
  14. package/lib/chunk-5VM5RSS4-Dnx15xMv.js +5 -0
  15. package/lib/chunk-7BUUIJ7U-B018BbRy.js +82 -0
  16. package/lib/chunk-C7G6YPKG-CmOuVFlJ.js +67 -0
  17. package/lib/chunk-EX3LRPZG-LynZw14I.js +2042 -0
  18. package/lib/chunk-HOUHSVGY-Br7ZSMKe.js +275 -0
  19. package/lib/chunk-ICXQ74PX-VqT5WUTt.js +1330 -0
  20. package/lib/chunk-JWPE2WC7-Ch0jmUXM.js +8 -0
  21. package/lib/chunk-KEIR6QF5-RwFi50en.js +21456 -0
  22. package/lib/chunk-MOJQB5TN-rQ4AfTd9.js +490 -0
  23. package/lib/chunk-OGEWGWER-BvF6eV9Q.js +32 -0
  24. package/lib/chunk-PUDLZKDR-BW7SZvCB.js +4135 -0
  25. package/lib/chunk-Q4XR5HBZ-CRgGP3ez.js +1635 -0
  26. package/lib/chunk-RYQCIY6F-CHlASUpG.js +241 -0
  27. package/lib/chunk-V7JOEXUC-OY39ml6X.js +3357 -0
  28. package/lib/chunk-VR4S4FIN-Bk7IFdYB.js +26 -0
  29. package/lib/chunk-WYO6CB5R-MV-yOaop.js +3769 -0
  30. package/lib/chunk-XXDRQBXY-Djd1ChwJ.js +9 -0
  31. package/lib/chunk-Y2CYZVJY-QdJ4V9rh.js +12 -0
  32. package/lib/chunk-ZGVPDNZ5-l81xl1BI.js +3738 -0
  33. package/lib/classDiagram-OUVF2IWQ--wRzSvLt.js +30 -0
  34. package/lib/classDiagram-v2-EOCWNBFH-ChMCdPO-.js +30 -0
  35. package/lib/cose-bilkent-JH36ORCC-CyVZn5M3.js +2254 -0
  36. package/lib/custom-app-text-editor.css +2 -0
  37. package/lib/custom-app-text-editor.js +81102 -0
  38. package/lib/cynefin-VYW2F7L2-CMgnLl46.js +3 -0
  39. package/lib/cynefinDiagram-TSTJHNR4-988Y73wV.js +355 -0
  40. package/lib/cytoscape.esm-DMXbtFI-.js +18145 -0
  41. package/lib/dagre-Dmarb1s8.js +1699 -0
  42. package/lib/dagre-VKFMJZFB-Bf-pz2Lx.js +328 -0
  43. package/lib/defaultLocale-A87O3snN.js +198 -0
  44. package/lib/diagram-FQU43EPY-BT8WeVzc.js +432 -0
  45. package/lib/diagram-G47NLZAW-vZ2XG37l.js +527 -0
  46. package/lib/diagram-NH7WQ7WH-CH0IfHB0.js +134 -0
  47. package/lib/diagram-OA4YK3LP-BgwQcJfp.js +300 -0
  48. package/lib/diagram-WEI45ONY-Cd3sVPil.js +214 -0
  49. package/lib/dist-PGS6ynRO.js +59 -0
  50. package/lib/ebnfDiagram-CCIWWBDH-CwBFb2Fm.js +100 -0
  51. package/lib/erDiagram-Q63AITRT-BshRACvj.js +1727 -0
  52. package/lib/eventmodeling-45OFAUF4-BDhzj03B.js +3 -0
  53. package/lib/flowDiagram-23GEKE2U-C3zDgFvZ.js +16 -0
  54. package/lib/ganttDiagram-NO4QXBWP-BD5PiE8x.js +3073 -0
  55. package/lib/gitGraph-TEB2WS4Q-DJA_hE4G.js +3 -0
  56. package/lib/gitGraphDiagram-IHSO6WYX-BAhccBh3.js +733 -0
  57. package/lib/graphlib-DglfpsVp.js +1267 -0
  58. package/lib/index.browser-Dv9K8IAp.js +26 -0
  59. package/lib/info-DKCQHKI2-BD_vOCz6.js +3 -0
  60. package/lib/infoDiagram-FWYZ7A6U-CGZnf03G.js +20 -0
  61. package/lib/init-sjaVZO3f.js +13 -0
  62. package/lib/ishikawaDiagram-FXEZZL3T-PFfVM0NO.js +719 -0
  63. package/lib/journeyDiagram-5HDEW3XC-CRGz7dcx.js +884 -0
  64. package/lib/kanban-definition-HUTT4EX6-BBH4Yn5e.js +974 -0
  65. package/lib/line-CJQicKfr.js +34 -0
  66. package/lib/linear-B9Cv96-J.js +288 -0
  67. package/lib/map-C7KALUOH.js +241 -0
  68. package/lib/mermaid-parser.core-BupC9XGF.js +638 -0
  69. package/lib/mermaid-renderer-Cp0xusfR.js +2425 -0
  70. package/lib/mindmap-definition-LN4V7U3C-CWL1sg0K.js +978 -0
  71. package/lib/ordinal-CNQzPcrr.js +65 -0
  72. package/lib/packet-7NZHBO7P-CgBlALV1.js +3 -0
  73. package/lib/path-DVvH25eQ.js +84 -0
  74. package/lib/pegDiagram-2B236MQR-BKv8dTtv.js +94 -0
  75. package/lib/pie-RZYD4A2V-CryPC-P_.js +3 -0
  76. package/lib/pieDiagram-ENE6RG2P-CXeFg_cL.js +203 -0
  77. package/lib/quadrantDiagram-ABIIQ3AL-v_u3aC8Y.js +2001 -0
  78. package/lib/radar-I7S5WNFK-DgzJDRy3.js +3 -0
  79. package/lib/railroad-3IZDKUUU-DFp3mbpB.js +3 -0
  80. package/lib/railroad-abnf-AHOZXSZD-BRjidKH0.js +3 -0
  81. package/lib/railroad-ebnf-EBAXGLYW-PgrDWact.js +3 -0
  82. package/lib/railroad-peg-LSFZ7HO6-CMKir81Y.js +3 -0
  83. package/lib/railroadDiagram-RFXS5EU6-mEC9tVS-.js +76 -0
  84. package/lib/requirementDiagram-TGXJPOKE-BAEzI7V4.js +2223 -0
  85. package/lib/rolldown-runtime-DArdT4gl.js +23 -0
  86. package/lib/rough.esm-B2w_aYoc.js +1361 -0
  87. package/lib/sankeyDiagram-HTMAVEWB-Dbu-sl2E.js +972 -0
  88. package/lib/sequenceDiagram-DBY2YBRQ-DCuWmWHX.js +4156 -0
  89. package/lib/sizeCapture-X5ZJPWSS-BEIM84He.js +46 -0
  90. package/lib/src-DQbL46sB.js +2139 -0
  91. package/lib/src-DuuHKEe6.js +704 -0
  92. package/lib/stateDiagram-2N3HPSRC-fs9QmDMR.js +220 -0
  93. package/lib/stateDiagram-v2-6OUMAXLB-wWxYbttN.js +30 -0
  94. package/lib/swimlanes-5IMT3BWC-QaXUd9db.js +5069 -0
  95. package/lib/swimlanesDiagram-G3AALYLV-BtGToCzH.js +30 -0
  96. package/lib/timeline-definition-FHXFAJF6-CAsyJrsw.js +1069 -0
  97. package/lib/treeView-QDETBFTQ-DVp4aTZQ.js +3 -0
  98. package/lib/treemap-6X3UGDF4-BbBnHMHJ.js +3 -0
  99. package/lib/types.d.ts +44 -0
  100. package/lib/v4-CZv9Hsqq.js +33 -0
  101. package/lib/vennDiagram-L72KCM5P-C87u0gjr.js +1880 -0
  102. package/lib/wardley-OPB4EBWU-B-RXhnoN.js +3 -0
  103. package/lib/wardleyDiagram-EHGQE667-BxviBDl_.js +645 -0
  104. package/lib/xychartDiagram-FW5EYKEG-BQQhanuH.js +2098 -0
  105. package/package.json +29 -0
@@ -0,0 +1,978 @@
1
+ import { t as e } from "./v4-CZv9Hsqq.js";
2
+ import { n as t } from "./chunk-Y2CYZVJY-QdJ4V9rh.js";
3
+ import { m as n } from "./src-DQbL46sB.js";
4
+ import { b as r, et as i, f as a, k as o, rt as s, tt as c, x as l, z as u } from "./chunk-WYO6CB5R-MV-yOaop.js";
5
+ import "./chunk-ICXQ74PX-VqT5WUTt.js";
6
+ import "./chunk-HOUHSVGY-Br7ZSMKe.js";
7
+ import "./chunk-Q4XR5HBZ-CRgGP3ez.js";
8
+ import "./chunk-7BUUIJ7U-B018BbRy.js";
9
+ import "./chunk-OGEWGWER-BvF6eV9Q.js";
10
+ import { t as d } from "./chunk-XXDRQBXY-Djd1ChwJ.js";
11
+ import { t as f } from "./chunk-VR4S4FIN-Bk7IFdYB.js";
12
+ import "./chunk-C7G6YPKG-CmOuVFlJ.js";
13
+ import "./chunk-ZGVPDNZ5-l81xl1BI.js";
14
+ import "./chunk-52WLFC77-Cf8zEoqs.js";
15
+ import { i as p, r as m } from "./mermaid-renderer-Cp0xusfR.js";
16
+ //#region ../../node_modules/.pnpm/mermaid@11.16.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-LN4V7U3C.mjs
17
+ var h = (function() {
18
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
19
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
20
+ return n;
21
+ }, "o"), n = [1, 4], r = [1, 13], i = [1, 12], a = [1, 15], o = [1, 16], s = [1, 20], c = [1, 19], l = [
22
+ 6,
23
+ 7,
24
+ 8
25
+ ], u = [1, 26], d = [1, 24], f = [1, 25], p = [
26
+ 6,
27
+ 7,
28
+ 11
29
+ ], m = [
30
+ 1,
31
+ 6,
32
+ 13,
33
+ 15,
34
+ 16,
35
+ 19,
36
+ 22
37
+ ], h = [1, 33], g = [1, 34], _ = [
38
+ 1,
39
+ 6,
40
+ 7,
41
+ 11,
42
+ 13,
43
+ 15,
44
+ 16,
45
+ 19,
46
+ 22
47
+ ], v = {
48
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
49
+ yy: {},
50
+ symbols_: {
51
+ error: 2,
52
+ start: 3,
53
+ mindMap: 4,
54
+ spaceLines: 5,
55
+ SPACELINE: 6,
56
+ NL: 7,
57
+ MINDMAP: 8,
58
+ document: 9,
59
+ stop: 10,
60
+ EOF: 11,
61
+ statement: 12,
62
+ SPACELIST: 13,
63
+ node: 14,
64
+ ICON: 15,
65
+ CLASS: 16,
66
+ nodeWithId: 17,
67
+ nodeWithoutId: 18,
68
+ NODE_DSTART: 19,
69
+ NODE_DESCR: 20,
70
+ NODE_DEND: 21,
71
+ NODE_ID: 22,
72
+ $accept: 0,
73
+ $end: 1
74
+ },
75
+ terminals_: {
76
+ 2: "error",
77
+ 6: "SPACELINE",
78
+ 7: "NL",
79
+ 8: "MINDMAP",
80
+ 11: "EOF",
81
+ 13: "SPACELIST",
82
+ 15: "ICON",
83
+ 16: "CLASS",
84
+ 19: "NODE_DSTART",
85
+ 20: "NODE_DESCR",
86
+ 21: "NODE_DEND",
87
+ 22: "NODE_ID"
88
+ },
89
+ productions_: [
90
+ 0,
91
+ [3, 1],
92
+ [3, 2],
93
+ [5, 1],
94
+ [5, 2],
95
+ [5, 2],
96
+ [4, 2],
97
+ [4, 3],
98
+ [10, 1],
99
+ [10, 1],
100
+ [10, 1],
101
+ [10, 2],
102
+ [10, 2],
103
+ [9, 3],
104
+ [9, 2],
105
+ [12, 2],
106
+ [12, 2],
107
+ [12, 2],
108
+ [12, 1],
109
+ [12, 1],
110
+ [12, 1],
111
+ [12, 1],
112
+ [12, 1],
113
+ [14, 1],
114
+ [14, 1],
115
+ [18, 3],
116
+ [17, 1],
117
+ [17, 4]
118
+ ],
119
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
120
+ var s = a.length - 1;
121
+ switch (i) {
122
+ case 6:
123
+ case 7: return r;
124
+ case 8:
125
+ r.getLogger().trace("Stop NL ");
126
+ break;
127
+ case 9:
128
+ r.getLogger().trace("Stop EOF ");
129
+ break;
130
+ case 11:
131
+ r.getLogger().trace("Stop NL2 ");
132
+ break;
133
+ case 12:
134
+ r.getLogger().trace("Stop EOF2 ");
135
+ break;
136
+ case 15:
137
+ r.getLogger().info("Node: ", a[s].id), r.addNode(a[s - 1].length, a[s].id, a[s].descr, a[s].type);
138
+ break;
139
+ case 16:
140
+ r.getLogger().trace("Icon: ", a[s]), r.decorateNode({ icon: a[s] });
141
+ break;
142
+ case 17:
143
+ case 21:
144
+ r.decorateNode({ class: a[s] });
145
+ break;
146
+ case 18:
147
+ r.getLogger().trace("SPACELIST");
148
+ break;
149
+ case 19:
150
+ r.getLogger().trace("Node: ", a[s].id), r.addNode(0, a[s].id, a[s].descr, a[s].type);
151
+ break;
152
+ case 20:
153
+ r.decorateNode({ icon: a[s] });
154
+ break;
155
+ case 25:
156
+ r.getLogger().trace("node found ..", a[s - 2]), this.$ = {
157
+ id: a[s - 1],
158
+ descr: a[s - 1],
159
+ type: r.getType(a[s - 2], a[s])
160
+ };
161
+ break;
162
+ case 26:
163
+ this.$ = {
164
+ id: a[s],
165
+ descr: a[s],
166
+ type: r.nodeType.DEFAULT
167
+ };
168
+ break;
169
+ case 27: r.getLogger().trace("node found ..", a[s - 3]), this.$ = {
170
+ id: a[s - 3],
171
+ descr: a[s - 1],
172
+ type: r.getType(a[s - 2], a[s])
173
+ };
174
+ }
175
+ }, "anonymous"),
176
+ table: [
177
+ {
178
+ 3: 1,
179
+ 4: 2,
180
+ 5: 3,
181
+ 6: [1, 5],
182
+ 8: n
183
+ },
184
+ { 1: [3] },
185
+ { 1: [2, 1] },
186
+ {
187
+ 4: 6,
188
+ 6: [1, 7],
189
+ 7: [1, 8],
190
+ 8: n
191
+ },
192
+ {
193
+ 6: r,
194
+ 7: [1, 10],
195
+ 9: 9,
196
+ 12: 11,
197
+ 13: i,
198
+ 14: 14,
199
+ 15: a,
200
+ 16: o,
201
+ 17: 17,
202
+ 18: 18,
203
+ 19: s,
204
+ 22: c
205
+ },
206
+ e(l, [2, 3]),
207
+ { 1: [2, 2] },
208
+ e(l, [2, 4]),
209
+ e(l, [2, 5]),
210
+ {
211
+ 1: [2, 6],
212
+ 6: r,
213
+ 12: 21,
214
+ 13: i,
215
+ 14: 14,
216
+ 15: a,
217
+ 16: o,
218
+ 17: 17,
219
+ 18: 18,
220
+ 19: s,
221
+ 22: c
222
+ },
223
+ {
224
+ 6: r,
225
+ 9: 22,
226
+ 12: 11,
227
+ 13: i,
228
+ 14: 14,
229
+ 15: a,
230
+ 16: o,
231
+ 17: 17,
232
+ 18: 18,
233
+ 19: s,
234
+ 22: c
235
+ },
236
+ {
237
+ 6: u,
238
+ 7: d,
239
+ 10: 23,
240
+ 11: f
241
+ },
242
+ e(p, [2, 22], {
243
+ 17: 17,
244
+ 18: 18,
245
+ 14: 27,
246
+ 15: [1, 28],
247
+ 16: [1, 29],
248
+ 19: s,
249
+ 22: c
250
+ }),
251
+ e(p, [2, 18]),
252
+ e(p, [2, 19]),
253
+ e(p, [2, 20]),
254
+ e(p, [2, 21]),
255
+ e(p, [2, 23]),
256
+ e(p, [2, 24]),
257
+ e(p, [2, 26], { 19: [1, 30] }),
258
+ { 20: [1, 31] },
259
+ {
260
+ 6: u,
261
+ 7: d,
262
+ 10: 32,
263
+ 11: f
264
+ },
265
+ {
266
+ 1: [2, 7],
267
+ 6: r,
268
+ 12: 21,
269
+ 13: i,
270
+ 14: 14,
271
+ 15: a,
272
+ 16: o,
273
+ 17: 17,
274
+ 18: 18,
275
+ 19: s,
276
+ 22: c
277
+ },
278
+ e(m, [2, 14], {
279
+ 7: h,
280
+ 11: g
281
+ }),
282
+ e(_, [2, 8]),
283
+ e(_, [2, 9]),
284
+ e(_, [2, 10]),
285
+ e(p, [2, 15]),
286
+ e(p, [2, 16]),
287
+ e(p, [2, 17]),
288
+ { 20: [1, 35] },
289
+ { 21: [1, 36] },
290
+ e(m, [2, 13], {
291
+ 7: h,
292
+ 11: g
293
+ }),
294
+ e(_, [2, 11]),
295
+ e(_, [2, 12]),
296
+ { 21: [1, 37] },
297
+ e(p, [2, 25]),
298
+ e(p, [2, 27])
299
+ ],
300
+ defaultActions: {
301
+ 2: [2, 1],
302
+ 6: [2, 2]
303
+ },
304
+ parseError: /* @__PURE__ */ t(function(e, t) {
305
+ if (t.recoverable) this.trace(e);
306
+ else {
307
+ var n = Error(e);
308
+ throw n.hash = t, n;
309
+ }
310
+ }, "parseError"),
311
+ parse: /* @__PURE__ */ t(function(e) {
312
+ 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: {} };
313
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
314
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
315
+ var v = h.yylloc;
316
+ o.push(v);
317
+ var y = h.options && h.options.ranges;
318
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
319
+ function b(e) {
320
+ r.length -= 2 * e, a.length -= e, o.length -= e;
321
+ }
322
+ t(b, "popStack");
323
+ function x() {
324
+ var e = i.pop() || h.lex() || p;
325
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
326
+ }
327
+ t(x, "lex");
328
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
329
+ 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]) {
330
+ var M = "";
331
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
332
+ 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, {
333
+ text: h.match,
334
+ token: this.terminals_[S] || S,
335
+ line: h.yylineno,
336
+ loc: v,
337
+ expected: j
338
+ });
339
+ }
340
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
341
+ switch (T[0]) {
342
+ case 1:
343
+ 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--);
344
+ break;
345
+ case 2:
346
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
347
+ first_line: o[o.length - (k || 1)].first_line,
348
+ last_line: o[o.length - 1].last_line,
349
+ first_column: o[o.length - (k || 1)].first_column,
350
+ last_column: o[o.length - 1].last_column
351
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
352
+ c,
353
+ u,
354
+ l,
355
+ g.yy,
356
+ T[1],
357
+ a,
358
+ o
359
+ ].concat(m)), E !== void 0) return E;
360
+ 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);
361
+ break;
362
+ case 3: return !0;
363
+ }
364
+ }
365
+ return !0;
366
+ }, "parse")
367
+ };
368
+ v.lexer = /* @__PURE__ */ (function() {
369
+ return {
370
+ EOF: 1,
371
+ parseError: /* @__PURE__ */ t(function(e, t) {
372
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
373
+ else throw Error(e);
374
+ }, "parseError"),
375
+ setInput: /* @__PURE__ */ t(function(e, t) {
376
+ 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 = {
377
+ first_line: 1,
378
+ first_column: 0,
379
+ last_line: 1,
380
+ last_column: 0
381
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
382
+ }, "setInput"),
383
+ input: /* @__PURE__ */ t(function() {
384
+ var e = this._input[0];
385
+ 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;
386
+ }, "input"),
387
+ unput: /* @__PURE__ */ t(function(e) {
388
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
389
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
390
+ var r = this.match.split(/(?:\r\n?|\n)/g);
391
+ 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);
392
+ var i = this.yylloc.range;
393
+ return this.yylloc = {
394
+ first_line: this.yylloc.first_line,
395
+ last_line: this.yylineno + 1,
396
+ first_column: this.yylloc.first_column,
397
+ 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
398
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
399
+ }, "unput"),
400
+ more: /* @__PURE__ */ t(function() {
401
+ return this._more = !0, this;
402
+ }, "more"),
403
+ reject: /* @__PURE__ */ t(function() {
404
+ if (this.options.backtrack_lexer) this._backtrack = !0;
405
+ 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(), {
406
+ text: "",
407
+ token: null,
408
+ line: this.yylineno
409
+ });
410
+ return this;
411
+ }, "reject"),
412
+ less: /* @__PURE__ */ t(function(e) {
413
+ this.unput(this.match.slice(e));
414
+ }, "less"),
415
+ pastInput: /* @__PURE__ */ t(function() {
416
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
417
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
418
+ }, "pastInput"),
419
+ upcomingInput: /* @__PURE__ */ t(function() {
420
+ var e = this.match;
421
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
422
+ }, "upcomingInput"),
423
+ showPosition: /* @__PURE__ */ t(function() {
424
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
425
+ return e + this.upcomingInput() + "\n" + t + "^";
426
+ }, "showPosition"),
427
+ test_match: /* @__PURE__ */ t(function(e, t) {
428
+ var n, r, i;
429
+ if (this.options.backtrack_lexer && (i = {
430
+ yylineno: this.yylineno,
431
+ yylloc: {
432
+ first_line: this.yylloc.first_line,
433
+ last_line: this.last_line,
434
+ first_column: this.yylloc.first_column,
435
+ last_column: this.yylloc.last_column
436
+ },
437
+ yytext: this.yytext,
438
+ match: this.match,
439
+ matches: this.matches,
440
+ matched: this.matched,
441
+ yyleng: this.yyleng,
442
+ offset: this.offset,
443
+ _more: this._more,
444
+ _input: this._input,
445
+ yy: this.yy,
446
+ conditionStack: this.conditionStack.slice(0),
447
+ done: this.done
448
+ }, 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 = {
449
+ first_line: this.yylloc.last_line,
450
+ last_line: this.yylineno + 1,
451
+ first_column: this.yylloc.last_column,
452
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
453
+ }, 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;
454
+ if (this._backtrack) {
455
+ for (var a in i) this[a] = i[a];
456
+ return !1;
457
+ }
458
+ return !1;
459
+ }, "test_match"),
460
+ next: /* @__PURE__ */ t(function() {
461
+ if (this.done) return this.EOF;
462
+ this._input || (this.done = !0);
463
+ var e, t, n, r;
464
+ this._more || (this.yytext = "", this.match = "");
465
+ 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)) {
466
+ if (t = n, r = a, this.options.backtrack_lexer) {
467
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
468
+ if (this._backtrack) {
469
+ t = !1;
470
+ continue;
471
+ }
472
+ return !1;
473
+ }
474
+ if (!this.options.flex) break;
475
+ }
476
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
477
+ text: "",
478
+ token: null,
479
+ line: this.yylineno
480
+ });
481
+ }, "next"),
482
+ lex: /* @__PURE__ */ t(function() {
483
+ return this.next() || this.lex();
484
+ }, "lex"),
485
+ begin: /* @__PURE__ */ t(function(e) {
486
+ this.conditionStack.push(e);
487
+ }, "begin"),
488
+ popState: /* @__PURE__ */ t(function() {
489
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
490
+ }, "popState"),
491
+ _currentRules: /* @__PURE__ */ t(function() {
492
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
493
+ }, "_currentRules"),
494
+ topState: /* @__PURE__ */ t(function(e) {
495
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
496
+ }, "topState"),
497
+ pushState: /* @__PURE__ */ t(function(e) {
498
+ this.begin(e);
499
+ }, "pushState"),
500
+ stateStackSize: /* @__PURE__ */ t(function() {
501
+ return this.conditionStack.length;
502
+ }, "stateStackSize"),
503
+ options: { "case-insensitive": !0 },
504
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
505
+ switch (n) {
506
+ case 0: return e.getLogger().trace("Found comment", t.yytext), 6;
507
+ case 1: return 8;
508
+ case 2:
509
+ this.begin("CLASS");
510
+ break;
511
+ case 3: return this.popState(), 16;
512
+ case 4:
513
+ this.popState();
514
+ break;
515
+ case 5:
516
+ e.getLogger().trace("Begin icon"), this.begin("ICON");
517
+ break;
518
+ case 6: return e.getLogger().trace("SPACELINE"), 6;
519
+ case 7: return 7;
520
+ case 8: return 15;
521
+ case 9:
522
+ e.getLogger().trace("end icon"), this.popState();
523
+ break;
524
+ case 10: return e.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
525
+ case 11: return e.getLogger().trace("Cloud"), this.begin("NODE"), 19;
526
+ case 12: return e.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
527
+ case 13: return e.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
528
+ case 14: return this.begin("NODE"), 19;
529
+ case 15: return this.begin("NODE"), 19;
530
+ case 16: return this.begin("NODE"), 19;
531
+ case 17: return this.begin("NODE"), 19;
532
+ case 18: return 13;
533
+ case 19: return 22;
534
+ case 20: return 11;
535
+ case 21:
536
+ this.begin("NSTR2");
537
+ break;
538
+ case 22: return "NODE_DESCR";
539
+ case 23:
540
+ this.popState();
541
+ break;
542
+ case 24:
543
+ e.getLogger().trace("Starting NSTR"), this.begin("NSTR");
544
+ break;
545
+ case 25: return e.getLogger().trace("description:", t.yytext), "NODE_DESCR";
546
+ case 26:
547
+ this.popState();
548
+ break;
549
+ case 27: return this.popState(), e.getLogger().trace("node end ))"), "NODE_DEND";
550
+ case 28: return this.popState(), e.getLogger().trace("node end )"), "NODE_DEND";
551
+ case 29: return this.popState(), e.getLogger().trace("node end ...", t.yytext), "NODE_DEND";
552
+ case 30: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
553
+ case 31: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
554
+ case 32: return this.popState(), e.getLogger().trace("node end (-"), "NODE_DEND";
555
+ case 33: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
556
+ case 34: return this.popState(), e.getLogger().trace("node end (("), "NODE_DEND";
557
+ case 35: return e.getLogger().trace("Long description:", t.yytext), 20;
558
+ case 36: return e.getLogger().trace("Long description:", t.yytext), 20;
559
+ }
560
+ }, "anonymous"),
561
+ rules: [
562
+ /^(?:\s*%%.*)/i,
563
+ /^(?:mindmap\b)/i,
564
+ /^(?::::)/i,
565
+ /^(?:.+)/i,
566
+ /^(?:\n)/i,
567
+ /^(?:::icon\()/i,
568
+ /^(?:[\s]+[\n])/i,
569
+ /^(?:[\n]+)/i,
570
+ /^(?:[^\)]+)/i,
571
+ /^(?:\))/i,
572
+ /^(?:-\))/i,
573
+ /^(?:\(-)/i,
574
+ /^(?:\)\))/i,
575
+ /^(?:\))/i,
576
+ /^(?:\(\()/i,
577
+ /^(?:\{\{)/i,
578
+ /^(?:\()/i,
579
+ /^(?:\[)/i,
580
+ /^(?:[\s]+)/i,
581
+ /^(?:[^\(\[\n\)\{\}]+)/i,
582
+ /^(?:$)/i,
583
+ /^(?:["][`])/i,
584
+ /^(?:[^`"]+)/i,
585
+ /^(?:[`]["])/i,
586
+ /^(?:["])/i,
587
+ /^(?:[^"]+)/i,
588
+ /^(?:["])/i,
589
+ /^(?:[\)]\))/i,
590
+ /^(?:[\)])/i,
591
+ /^(?:[\]])/i,
592
+ /^(?:\}\})/i,
593
+ /^(?:\(-)/i,
594
+ /^(?:-\))/i,
595
+ /^(?:\(\()/i,
596
+ /^(?:\()/i,
597
+ /^(?:[^\)\]\(\}]+)/i,
598
+ /^(?:.+(?!\(\())/i
599
+ ],
600
+ conditions: {
601
+ CLASS: {
602
+ rules: [3, 4],
603
+ inclusive: !1
604
+ },
605
+ ICON: {
606
+ rules: [8, 9],
607
+ inclusive: !1
608
+ },
609
+ NSTR2: {
610
+ rules: [22, 23],
611
+ inclusive: !1
612
+ },
613
+ NSTR: {
614
+ rules: [25, 26],
615
+ inclusive: !1
616
+ },
617
+ NODE: {
618
+ rules: [
619
+ 21,
620
+ 24,
621
+ 27,
622
+ 28,
623
+ 29,
624
+ 30,
625
+ 31,
626
+ 32,
627
+ 33,
628
+ 34,
629
+ 35,
630
+ 36
631
+ ],
632
+ inclusive: !1
633
+ },
634
+ INITIAL: {
635
+ rules: [
636
+ 0,
637
+ 1,
638
+ 2,
639
+ 5,
640
+ 6,
641
+ 7,
642
+ 10,
643
+ 11,
644
+ 12,
645
+ 13,
646
+ 14,
647
+ 15,
648
+ 16,
649
+ 17,
650
+ 18,
651
+ 19,
652
+ 20
653
+ ],
654
+ inclusive: !0
655
+ }
656
+ }
657
+ };
658
+ })();
659
+ function y() {
660
+ this.yy = {};
661
+ }
662
+ return t(y, "Parser"), y.prototype = v, v.Parser = y, new y();
663
+ })();
664
+ h.parser = h;
665
+ var g = h, _ = 12, v = {
666
+ DEFAULT: 0,
667
+ NO_BORDER: 0,
668
+ ROUNDED_RECT: 1,
669
+ RECT: 2,
670
+ CIRCLE: 3,
671
+ CLOUD: 4,
672
+ BANG: 5,
673
+ HEXAGON: 6
674
+ }, y = class {
675
+ constructor() {
676
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = v, 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);
677
+ }
678
+ static {
679
+ t(this, "MindmapDB");
680
+ }
681
+ clear() {
682
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
683
+ }
684
+ getParent(e) {
685
+ for (let t = this.nodes.length - 1; t >= 0; t--) if (this.nodes[t].level < e) return this.nodes[t];
686
+ return null;
687
+ }
688
+ getMindmap() {
689
+ return this.nodes.length > 0 ? this.nodes[0] : null;
690
+ }
691
+ addNode(e, t, r, i) {
692
+ n.info("addNode", e, t, r, i);
693
+ let o = !1;
694
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, o = !0) : this.baseLevel !== void 0 && (e -= this.baseLevel, o = !1);
695
+ let s = l(), c = s.mindmap?.padding ?? a.mindmap.padding;
696
+ switch (i) {
697
+ case this.nodeType.ROUNDED_RECT:
698
+ case this.nodeType.RECT:
699
+ case this.nodeType.HEXAGON: c *= 2;
700
+ }
701
+ let d = {
702
+ id: this.count++,
703
+ nodeId: u(t, s),
704
+ level: e,
705
+ descr: u(r, s),
706
+ type: i,
707
+ children: [],
708
+ width: s.mindmap?.maxNodeWidth ?? a.mindmap.maxNodeWidth,
709
+ padding: c,
710
+ isRoot: o
711
+ }, f = this.getParent(e);
712
+ if (f) f.children.push(d), this.nodes.push(d);
713
+ else if (o) this.nodes.push(d);
714
+ else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`);
715
+ }
716
+ getType(e, t) {
717
+ switch (n.debug("In get type", e, t), e) {
718
+ case "[": return this.nodeType.RECT;
719
+ case "(": return t === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
720
+ case "((": return this.nodeType.CIRCLE;
721
+ case ")": return this.nodeType.CLOUD;
722
+ case "))": return this.nodeType.BANG;
723
+ case "{{": return this.nodeType.HEXAGON;
724
+ default: return this.nodeType.DEFAULT;
725
+ }
726
+ }
727
+ setElementForId(e, t) {
728
+ this.elements[e] = t;
729
+ }
730
+ getElementById(e) {
731
+ return this.elements[e];
732
+ }
733
+ decorateNode(e) {
734
+ if (!e) return;
735
+ let t = l(), n = this.nodes[this.nodes.length - 1];
736
+ e.icon && (n.icon = u(e.icon, t)), e.class && (n.class = u(e.class, t));
737
+ }
738
+ type2Str(e) {
739
+ switch (e) {
740
+ case this.nodeType.DEFAULT: return "no-border";
741
+ case this.nodeType.RECT: return "rect";
742
+ case this.nodeType.ROUNDED_RECT: return "rounded-rect";
743
+ case this.nodeType.CIRCLE: return "circle";
744
+ case this.nodeType.CLOUD: return "cloud";
745
+ case this.nodeType.BANG: return "bang";
746
+ case this.nodeType.HEXAGON: return "hexgon";
747
+ default: return "no-border";
748
+ }
749
+ }
750
+ assignSections(e, t) {
751
+ if (e.section = e.level === 0 ? void 0 : t, e.children) for (let [n, r] of e.children.entries()) {
752
+ let i = e.level === 0 ? n % (_ - 1) : t;
753
+ this.assignSections(r, i);
754
+ }
755
+ }
756
+ flattenNodes(e, n) {
757
+ let r = l(), i = ["mindmap-node"];
758
+ e.isRoot === !0 ? i.push("section-root", "section--1") : e.section !== void 0 && i.push(`section-${e.section}`), e.class && i.push(e.class);
759
+ let a = i.join(" "), o = /* @__PURE__ */ t((e) => {
760
+ let t = (r.theme?.toLowerCase() ?? "").includes("redux");
761
+ switch (e) {
762
+ case v.CIRCLE: return "mindmapCircle";
763
+ case v.RECT: return "rect";
764
+ case v.ROUNDED_RECT: return "rounded";
765
+ case v.CLOUD: return "cloud";
766
+ case v.BANG: return "bang";
767
+ case v.HEXAGON: return "hexagon";
768
+ case v.DEFAULT: return t ? "rounded" : "defaultMindmapNode";
769
+ case v.NO_BORDER:
770
+ default: return "rect";
771
+ }
772
+ }, "getShapeFromType"), s = {
773
+ id: e.id.toString(),
774
+ domId: "node_" + e.id.toString(),
775
+ label: e.descr,
776
+ labelType: "markdown",
777
+ isGroup: !1,
778
+ shape: o(e.type),
779
+ width: e.width,
780
+ height: e.height ?? 0,
781
+ padding: e.padding,
782
+ cssClasses: a,
783
+ cssStyles: [],
784
+ look: r.look,
785
+ icon: e.icon,
786
+ x: e.x,
787
+ y: e.y,
788
+ level: e.level,
789
+ nodeId: e.nodeId,
790
+ type: e.type,
791
+ section: e.section
792
+ };
793
+ if (n.push(s), e.children) for (let t of e.children) this.flattenNodes(t, n);
794
+ }
795
+ generateEdges(e, t) {
796
+ if (!e.children) return;
797
+ let n = l();
798
+ for (let r of e.children) {
799
+ let i = "edge";
800
+ r.section !== void 0 && (i += ` section-edge-${r.section}`);
801
+ let a = e.level + 1;
802
+ i += ` edge-depth-${a}`;
803
+ let o = {
804
+ id: `edge_${e.id}_${r.id}`,
805
+ start: e.id.toString(),
806
+ end: r.id.toString(),
807
+ type: "normal",
808
+ curve: "basis",
809
+ thickness: "normal",
810
+ look: n.look,
811
+ classes: i,
812
+ depth: e.level,
813
+ section: r.section
814
+ };
815
+ t.push(o), this.generateEdges(r, t);
816
+ }
817
+ }
818
+ getData() {
819
+ let t = this.getMindmap(), r = l(), i = o().layout !== void 0, a = r;
820
+ if (i || (a.layout = "cose-bilkent"), !t) return {
821
+ nodes: [],
822
+ edges: [],
823
+ config: a
824
+ };
825
+ n.debug("getData: mindmapRoot", t, r), this.assignSections(t);
826
+ let s = [], c = [];
827
+ this.flattenNodes(t, s), this.generateEdges(t, c), n.debug(`getData: processed ${s.length} nodes and ${c.length} edges`);
828
+ let u = /* @__PURE__ */ new Map();
829
+ for (let e of s) u.set(e.id, {
830
+ shape: e.shape,
831
+ width: e.width,
832
+ height: e.height,
833
+ padding: e.padding
834
+ });
835
+ return {
836
+ nodes: s,
837
+ edges: c,
838
+ config: a,
839
+ rootNode: t,
840
+ markers: ["point"],
841
+ direction: "TB",
842
+ nodeSpacing: 50,
843
+ rankSpacing: 50,
844
+ shapes: Object.fromEntries(u),
845
+ type: "mindmap",
846
+ diagramId: "mindmap-" + e()
847
+ };
848
+ }
849
+ getLogger() {
850
+ return n;
851
+ }
852
+ }, b = { draw: /* @__PURE__ */ t(async (e, t, i, o) => {
853
+ n.debug("Rendering mindmap diagram\n" + e);
854
+ let s = o.db, c = s.getData(), l = d(t, c.config.securityLevel);
855
+ if (c.type = o.type, c.layoutAlgorithm = m(c.config.layout, { fallback: "cose-bilkent" }), c.diagramId = t, !s.getMindmap()) return;
856
+ c.nodes.forEach((e) => {
857
+ 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);
858
+ }), await p(c, l);
859
+ let { themeVariables: u } = r(), { useGradient: h, gradientStart: g, gradientStop: _ } = u;
860
+ if (h && g && _) {
861
+ let e = l.attr("id"), t = l.append("defs").append("linearGradient").attr("id", `${e}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
862
+ 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);
863
+ }
864
+ f(l, c.config.mindmap?.padding ?? a.mindmap.padding, "mindmapDiagram", c.config.mindmap?.useMaxWidth ?? a.mindmap.useMaxWidth);
865
+ }, "draw") }, x = /* @__PURE__ */ t((e) => {
866
+ let { theme: t, look: n } = e, r = "";
867
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], s(e["lineColor" + t]) ? e["lineColor" + t] = c(e["lineColor" + t], 20) : e["lineColor" + t] = i(e["lineColor" + t], 20);
868
+ for (let i = 0; i < e.THEME_COLOR_LIMIT; i++) {
869
+ let a = "" + (n === "neo" ? Math.max(10 - (i - 1) * 2, 2) : 17 - 3 * i);
870
+ r += `
871
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
872
+ fill: ${e["cScale" + i]};
873
+ }
874
+ .section-${i - 1} text {
875
+ fill: ${e["cScaleLabel" + i]};
876
+ }
877
+ .section-${i - 1} span {
878
+ color: ${e["cScaleLabel" + i]};
879
+ }
880
+ .node-icon-${i - 1} {
881
+ font-size: 40px;
882
+ color: ${e["cScaleLabel" + i]};
883
+ }
884
+ .section-edge-${i - 1}{
885
+ stroke: ${e["cScale" + i]};
886
+ }
887
+ .edge-depth-${i - 1}{
888
+ stroke-width: ${a};
889
+ }
890
+ .section-${i - 1} line {
891
+ stroke: ${e["cScaleInv" + i]} ;
892
+ stroke-width: 3;
893
+ }
894
+
895
+ .disabled, .disabled circle, .disabled text {
896
+ fill: lightgray;
897
+ }
898
+ .disabled text {
899
+ fill: #efefef;
900
+ }
901
+ [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 {
902
+ fill: ${t === "redux" || t === "redux-dark" || t === "neutral" ? e.mainBkg : e["cScale" + i]};
903
+ stroke: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScale" + i]};
904
+ stroke-width: ${e.strokeWidth ?? 2}px;
905
+ }
906
+ [data-look="neo"].section-edge-${i - 1}{
907
+ stroke: ${t?.includes("redux") || t === "neo-dark" ? e.nodeBorder : e["cScale" + i]};
908
+ }
909
+ [data-look="neo"].mindmap-node.section-${i - 1} text {
910
+ fill: ${t === "redux" || t === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (t === "neutral" ? 1 : i)]};
911
+ }
912
+ `;
913
+ }
914
+ return r;
915
+ }, "genSections"), S = /* @__PURE__ */ t((e, t, n) => {
916
+ let r = "";
917
+ for (let i = 0; i < e; i++) r += `
918
+ [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 {
919
+ stroke: url(${t}-gradient);
920
+ fill: ${n};
921
+ }
922
+ .section-${i - 1} line {
923
+ stroke-width: 0;
924
+ }`;
925
+ return r;
926
+ }, "genGradient"), C = {
927
+ get db() {
928
+ return new y();
929
+ },
930
+ renderer: b,
931
+ parser: g,
932
+ styles: /* @__PURE__ */ t((e) => {
933
+ let { theme: t } = e, n = e.svgId, r = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${n}-drop-shadow)`) : "none";
934
+ return `
935
+ .edge {
936
+ stroke-width: 3;
937
+ }
938
+ ${x(e)}
939
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
940
+ fill: ${e.git0};
941
+ }
942
+ .section-root text {
943
+ fill: ${e.gitBranchLabel0};
944
+ }
945
+ .section-root span {
946
+ color: ${t?.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
947
+ }
948
+ .icon-container {
949
+ height:100%;
950
+ display: flex;
951
+ justify-content: center;
952
+ align-items: center;
953
+ }
954
+ .edge {
955
+ fill: none;
956
+ }
957
+ .mindmap-node-label {
958
+ dy: 1em;
959
+ alignment-baseline: middle;
960
+ text-anchor: middle;
961
+ dominant-baseline: middle;
962
+ text-align: center;
963
+ }
964
+ [data-look="neo"].mindmap-node {
965
+ filter: ${r};
966
+ }
967
+ [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 {
968
+ fill: ${t?.includes("redux") ? e.mainBkg : e.git0};
969
+ }
970
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
971
+ fill: ${t?.includes("redux") ? e.nodeBorder : e["cScaleLabel" + +(t === "neutral")]};
972
+ }
973
+ ${e.useGradient && n && e.mainBkg ? S(e.THEME_COLOR_LIMIT, n, e.mainBkg) : ""}
974
+ `;
975
+ }, "getStyles")
976
+ };
977
+ //#endregion
978
+ export { C as diagram };