@ucap-llm/ai-ui 1.1.13 → 1.1.15

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 (111) hide show
  1. package/_basePickBy-DMehTBs0-8955b30b.mjs +151 -0
  2. package/_basePickBy-e7598e72.mjs +153 -0
  3. package/{_baseUniq-2bcae05e.mjs → _baseUniq-8cd7fbc4.mjs} +150 -150
  4. package/_baseUniq-DPnX6tpB-5eb6efbd.mjs +615 -0
  5. package/ai-ui.es.js +9 -8
  6. package/ai-ui.umd.js +3425 -923
  7. package/arc-8909f880.mjs +85 -0
  8. package/arc-qimaJRLH-591a6072.mjs +85 -0
  9. package/architecture-4AB2E3PP-DFmEpUnA-62fe65dd.mjs +10 -0
  10. package/architecture-4AB2E3PP-b04ae9dd.mjs +10 -0
  11. package/{architectureDiagram-IEHRJDOE-e4684ef3.mjs → architectureDiagram-IEHRJDOE-1ccc2c64.mjs} +123 -123
  12. package/architectureDiagram-IEHRJDOE-BRVAVUEE-c068faae.mjs +4641 -0
  13. package/{blockDiagram-JOT3LUYC-504ee31e.mjs → blockDiagram-JOT3LUYC-63569de5.mjs} +5 -5
  14. package/blockDiagram-JOT3LUYC-Cs4tSRey-54d8e29b.mjs +2251 -0
  15. package/{c4Diagram-VJAJSXHY-c5ba6af4.mjs → c4Diagram-VJAJSXHY-355a4170.mjs} +23 -23
  16. package/c4Diagram-VJAJSXHY-C3F9fO0L-0df97cd8.mjs +1583 -0
  17. package/channel-CuHzivgY-bb3d765a.mjs +5 -0
  18. package/channel-a1f4f18c.mjs +5 -0
  19. package/{chunk-4BMEZGHF-8d9a2e4f.mjs → chunk-4BMEZGHF-705995af.mjs} +1 -1
  20. package/chunk-4BMEZGHF-btTOjzEX-c9c5432c.mjs +9 -0
  21. package/{chunk-A2AXSNBT-41ae29f2.mjs → chunk-A2AXSNBT-3a857566.mjs} +10 -10
  22. package/chunk-A2AXSNBT-CPBZRsS7-a80df701.mjs +1373 -0
  23. package/{chunk-AEK57VVT-69e121d6.mjs → chunk-AEK57VVT-6c60e1ee.mjs} +45 -45
  24. package/chunk-AEK57VVT-D62Iwyam-238a3d85.mjs +1361 -0
  25. package/{chunk-D6G4REZN-472adc5b.mjs → chunk-D6G4REZN-11c52918.mjs} +5 -5
  26. package/chunk-D6G4REZN-HlFmQTJy-20704636.mjs +64 -0
  27. package/chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs +24 -0
  28. package/{chunk-RZ5BOZE2-b7d5d4f5.mjs → chunk-RZ5BOZE2-d6db8103.mjs} +9 -9
  29. package/chunk-XZIHB7SX-CCrbsG0u-f30e4124.mjs +15 -0
  30. package/{chunk-XZIHB7SX-56c08d07.mjs → chunk-XZIHB7SX-fafd3ca2.mjs} +1 -1
  31. package/classDiagram-GIVACNV2-Bv5U0XPL-622b22ed.mjs +18 -0
  32. package/{classDiagram-v2-COTLJTTW-1deea5cc.mjs → classDiagram-GIVACNV2-eca9aeb6.mjs} +5 -5
  33. package/classDiagram-v2-COTLJTTW-Bv5U0XPL-622b22ed.mjs +18 -0
  34. package/{classDiagram-GIVACNV2-1deea5cc.mjs → classDiagram-v2-COTLJTTW-eca9aeb6.mjs} +5 -5
  35. package/{clone-1f18a17f.mjs → clone-327a1426.mjs} +1 -1
  36. package/clone-Csc9uFbU-6c4f28bd.mjs +8 -0
  37. package/cytoscape.esm-Swd9B-1A-3101f241.mjs +18730 -0
  38. package/{dagre-OKDRZEBW-74e73dcf.mjs → dagre-OKDRZEBW-9059bb36.mjs} +81 -81
  39. package/dagre-OKDRZEBW-CoMQYlxF-96274fb0.mjs +448 -0
  40. package/{diagram-SSKATNLV-1a562cb0.mjs → diagram-SSKATNLV-70f68e72.mjs} +34 -34
  41. package/diagram-SSKATNLV-CPuZUaGP-50edcaa0.mjs +225 -0
  42. package/{diagram-VNBRO52H-b765e46f.mjs → diagram-VNBRO52H-39273710.mjs} +35 -35
  43. package/diagram-VNBRO52H-DIIZ-Sll-969266e6.mjs +130 -0
  44. package/{erDiagram-Q7BY3M3F-022c4343.mjs → erDiagram-Q7BY3M3F-96ba3906.mjs} +3 -3
  45. package/erDiagram-Q7BY3M3F-ZKWAM_uE-41c0350d.mjs +843 -0
  46. package/{flowDiagram-4HSFHLVR-6036e284.mjs → flowDiagram-4HSFHLVR-795e3830.mjs} +29 -29
  47. package/flowDiagram-4HSFHLVR-CUJXGEG3-801dde13.mjs +1624 -0
  48. package/{ganttDiagram-APWFNJXF-be871387.mjs → ganttDiagram-APWFNJXF-736e67b6.mjs} +398 -398
  49. package/ganttDiagram-APWFNJXF-C1pgubbs-20beffc3.mjs +2527 -0
  50. package/gitGraph-O2Q2CXLX-00465db9.mjs +10 -0
  51. package/gitGraph-O2Q2CXLX-BYavwGzs-e5f1990e.mjs +10 -0
  52. package/{gitGraphDiagram-7IBYFJ6S-da63c888.mjs → gitGraphDiagram-7IBYFJ6S-115329ab.mjs} +88 -88
  53. package/gitGraphDiagram-7IBYFJ6S-CndxirR4-b39d4089.mjs +716 -0
  54. package/{graph-e71f0e3e.mjs → graph-9e073c5f.mjs} +8 -8
  55. package/graph-DOmtxVvg-727f4e14.mjs +247 -0
  56. package/index-433e2395.mjs +168385 -0
  57. package/info-4N47QTOZ-688db415.mjs +10 -0
  58. package/info-4N47QTOZ-DPyDFN1Z-821cf2f7.mjs +10 -0
  59. package/{infoDiagram-PH2N3AL5-3e1c1c1f.mjs → infoDiagram-PH2N3AL5-29e9585a.mjs} +9 -9
  60. package/infoDiagram-PH2N3AL5-BkSS3vpU-ef4bf66d.mjs +26 -0
  61. package/init-DjUOC4st-87c930f1.mjs +16 -0
  62. package/{journeyDiagram-U35MCT3I-6d29748d.mjs → journeyDiagram-U35MCT3I-7c5644d1.mjs} +41 -41
  63. package/journeyDiagram-U35MCT3I-BN-kCDeJ-ac350902.mjs +811 -0
  64. package/{kanban-definition-NDS4AKOZ-c231ae4c.mjs → kanban-definition-NDS4AKOZ-eff441f9.mjs} +47 -47
  65. package/kanban-definition-NDS4AKOZ-gaDUOiKt-efdba942.mjs +720 -0
  66. package/{layout-b9b9e407.mjs → layout-501d22f0.mjs} +19 -19
  67. package/layout-8X5HiOVA-b6e13cf9.mjs +1323 -0
  68. package/linear-BgV5F0PU-8137edad.mjs +447 -0
  69. package/{linear-99040ddc.mjs → linear-fd3cd932.mjs} +56 -56
  70. package/{mermaid-parser.core-55f134dc.mjs → mermaid-parser.core-6eb44241.mjs} +160 -160
  71. package/mermaid-parser.core-BTS3sfcL-8c80284a.mjs +12810 -0
  72. package/{mindmap-definition-ALO5MXBD-938e2e65.mjs → mindmap-definition-ALO5MXBD-2fe3c748.mjs} +1 -1
  73. package/mindmap-definition-ALO5MXBD-B8q_1sIj-c3599d3c.mjs +3225 -0
  74. package/ordinal-DfAQgscy-1c8e46a9.mjs +65 -0
  75. package/package.json +2 -2
  76. package/packet-KVYON367-DcfdOX-U-afac932a.mjs +10 -0
  77. package/packet-KVYON367-c82af3fe.mjs +10 -0
  78. package/pie-R6RNRRYF-DKruFncB-d07f60c2.mjs +10 -0
  79. package/pie-R6RNRRYF-eb27797b.mjs +10 -0
  80. package/pieDiagram-IB7DONF6-Bijui6_Q-db9fdf3a.mjs +166 -0
  81. package/{pieDiagram-IB7DONF6-6a11673b.mjs → pieDiagram-IB7DONF6-e6863984.mjs} +36 -36
  82. package/{quadrantDiagram-7GDLP6J5-a4a4d9ac.mjs → quadrantDiagram-7GDLP6J5-88df12c2.mjs} +15 -15
  83. package/quadrantDiagram-7GDLP6J5-DzIzViUj-b13add98.mjs +1027 -0
  84. package/radar-MK3ICKWK-723229d0.mjs +10 -0
  85. package/radar-MK3ICKWK-D8wbkmr5-3165faf6.mjs +10 -0
  86. package/{requirementDiagram-KVF5MWMF-a7093c74.mjs → requirementDiagram-KVF5MWMF-7228051c.mjs} +50 -50
  87. package/requirementDiagram-KVF5MWMF-Hqsbdpfq-23374f24.mjs +853 -0
  88. package/{sankeyDiagram-QLVOVGJD-f4bcbb2d.mjs → sankeyDiagram-QLVOVGJD-00a31a99.mjs} +87 -87
  89. package/sankeyDiagram-QLVOVGJD-DGCeusqJ-8ca7e64d.mjs +826 -0
  90. package/{sequenceDiagram-X6HHIX6F-9071cfff.mjs → sequenceDiagram-X6HHIX6F-de203309.mjs} +3 -3
  91. package/sequenceDiagram-X6HHIX6F-kuEE9wSd-5f0ec5cd.mjs +2283 -0
  92. package/{stateDiagram-DGXRK772-fb22a7a5.mjs → stateDiagram-DGXRK772-2341237a.mjs} +48 -48
  93. package/stateDiagram-DGXRK772-Cq-Ce3WP-266efa7f.mjs +274 -0
  94. package/{stateDiagram-v2-YXO3MK2T-67326b76.mjs → stateDiagram-v2-YXO3MK2T-8c81deed.mjs} +5 -5
  95. package/stateDiagram-v2-YXO3MK2T-CplwFWn1-c0024e4e.mjs +18 -0
  96. package/style.css +10 -1
  97. package/timeline-definition-BDJGKUSR-USv5sZzx-22548912.mjs +806 -0
  98. package/{timeline-definition-BDJGKUSR-44f50d45.mjs → timeline-definition-BDJGKUSR-e615901b.mjs} +79 -79
  99. package/{xychartDiagram-VJFVF3MP-2df503f6.mjs → xychartDiagram-VJFVF3MP-9ad66a6b.mjs} +28 -28
  100. package/xychartDiagram-VJFVF3MP-CXCfFZBM-e5ca151e.mjs +1306 -0
  101. package/_basePickBy-12958109.mjs +0 -153
  102. package/arc-14f9a207.mjs +0 -85
  103. package/architecture-4AB2E3PP-bb512ddb.mjs +0 -10
  104. package/channel-7bd711b4.mjs +0 -5
  105. package/gitGraph-O2Q2CXLX-83cfcbef.mjs +0 -10
  106. package/index-f83d4b07.mjs +0 -97448
  107. package/info-4N47QTOZ-20cf90f5.mjs +0 -10
  108. package/katex-2e45926a.mjs +0 -11700
  109. package/packet-KVYON367-453a49e8.mjs +0 -10
  110. package/pie-R6RNRRYF-4d95c8dc.mjs +0 -10
  111. package/radar-MK3ICKWK-100e8fa4.mjs +0 -10
@@ -0,0 +1,720 @@
1
+ import { v as a, J as tt, l as F, a3 as pt, f as yt, V as ft, a as mt, aD as bt, A as q, w as G, o as _t, s as Et, aE as St, aF as at, aG as lt } from "./index-433e2395.mjs";
2
+ import "vue";
3
+ var Q = function() {
4
+ var i = /* @__PURE__ */ a(function(k, t, n, r) {
5
+ for (n = n || {}, r = k.length; r--; n[k[r]] = t)
6
+ ;
7
+ return n;
8
+ }, "o"), u = [1, 4], d = [1, 13], s = [1, 12], g = [1, 15], D = [1, 16], S = [1, 20], h = [1, 19], v = [6, 7, 8], b = [1, 26], _ = [1, 24], C = [1, 25], o = [6, 7, 11], j = [1, 31], w = [6, 7, 11, 24], T = [1, 6, 13, 16, 17, 20, 23], $ = [1, 35], H = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], M = [1, 38], y = {
9
+ trace: /* @__PURE__ */ a(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
14
+ 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, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
15
+ performAction: /* @__PURE__ */ a(function(k, t, n, r, c, e, m) {
16
+ var l = e.length - 1;
17
+ switch (c) {
18
+ case 6:
19
+ case 7:
20
+ return r;
21
+ case 8:
22
+ r.getLogger().trace("Stop NL ");
23
+ break;
24
+ case 9:
25
+ r.getLogger().trace("Stop EOF ");
26
+ break;
27
+ case 11:
28
+ r.getLogger().trace("Stop NL2 ");
29
+ break;
30
+ case 12:
31
+ r.getLogger().trace("Stop EOF2 ");
32
+ break;
33
+ case 15:
34
+ r.getLogger().info("Node: ", e[l - 1].id), r.addNode(e[l - 2].length, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
35
+ break;
36
+ case 16:
37
+ r.getLogger().info("Node: ", e[l].id), r.addNode(e[l - 1].length, e[l].id, e[l].descr, e[l].type);
38
+ break;
39
+ case 17:
40
+ r.getLogger().trace("Icon: ", e[l]), r.decorateNode({ icon: e[l] });
41
+ break;
42
+ case 18:
43
+ case 23:
44
+ r.decorateNode({ class: e[l] });
45
+ break;
46
+ case 19:
47
+ r.getLogger().trace("SPACELIST");
48
+ break;
49
+ case 20:
50
+ r.getLogger().trace("Node: ", e[l - 1].id), r.addNode(0, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
51
+ break;
52
+ case 21:
53
+ r.getLogger().trace("Node: ", e[l].id), r.addNode(0, e[l].id, e[l].descr, e[l].type);
54
+ break;
55
+ case 22:
56
+ r.decorateNode({ icon: e[l] });
57
+ break;
58
+ case 27:
59
+ r.getLogger().trace("node found ..", e[l - 2]), this.$ = { id: e[l - 1], descr: e[l - 1], type: r.getType(e[l - 2], e[l]) };
60
+ break;
61
+ case 28:
62
+ this.$ = { id: e[l], descr: e[l], type: 0 };
63
+ break;
64
+ case 29:
65
+ r.getLogger().trace("node found ..", e[l - 3]), this.$ = { id: e[l - 3], descr: e[l - 1], type: r.getType(e[l - 2], e[l]) };
66
+ break;
67
+ case 30:
68
+ this.$ = e[l - 1] + e[l];
69
+ break;
70
+ case 31:
71
+ this.$ = e[l];
72
+ break;
73
+ }
74
+ }, "anonymous"),
75
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: u }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: u }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, i(v, [2, 3]), { 1: [2, 2] }, i(v, [2, 4]), i(v, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, { 6: d, 9: 22, 12: 11, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, { 6: b, 7: _, 10: 23, 11: C }, i(o, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: S, 23: h }), i(o, [2, 19]), i(o, [2, 21], { 15: 30, 24: j }), i(o, [2, 22]), i(o, [2, 23]), i(w, [2, 25]), i(w, [2, 26]), i(w, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: b, 7: _, 10: 34, 11: C }, { 1: [2, 7], 6: d, 12: 21, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, i(T, [2, 14], { 7: $, 11: H }), i(A, [2, 8]), i(A, [2, 9]), i(A, [2, 10]), i(o, [2, 16], { 15: 37, 24: j }), i(o, [2, 17]), i(o, [2, 18]), i(o, [2, 20], { 24: M }), i(w, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, i(T, [2, 13], { 7: $, 11: H }), i(A, [2, 11]), i(A, [2, 12]), i(o, [2, 15], { 24: M }), i(w, [2, 30]), { 22: [1, 41] }, i(w, [2, 27]), i(w, [2, 29])],
76
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
77
+ parseError: /* @__PURE__ */ a(function(k, t) {
78
+ if (t.recoverable)
79
+ this.trace(k);
80
+ else {
81
+ var n = new Error(k);
82
+ throw n.hash = t, n;
83
+ }
84
+ }, "parseError"),
85
+ parse: /* @__PURE__ */ a(function(k) {
86
+ var t = this, n = [0], r = [], c = [null], e = [], m = this.table, l = "", W = 0, nt = 0, ht = 2, st = 1, ut = e.slice.call(arguments, 1), f = Object.create(this.lexer), P = { yy: {} };
87
+ for (var X in this.yy)
88
+ Object.prototype.hasOwnProperty.call(this.yy, X) && (P.yy[X] = this.yy[X]);
89
+ f.setInput(k, P.yy), P.yy.lexer = f, P.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
90
+ var Y = f.yylloc;
91
+ e.push(Y);
92
+ var gt = f.options && f.options.ranges;
93
+ typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
94
+ function dt(N) {
95
+ n.length = n.length - 2 * N, c.length = c.length - N, e.length = e.length - N;
96
+ }
97
+ a(dt, "popStack");
98
+ function rt() {
99
+ var N;
100
+ return N = r.pop() || f.lex() || st, typeof N != "number" && (N instanceof Array && (r = N, N = r.pop()), N = t.symbols_[N] || N), N;
101
+ }
102
+ a(rt, "lex");
103
+ for (var E, B, x, K, U = {}, z, I, ot, V; ; ) {
104
+ if (B = n[n.length - 1], this.defaultActions[B] ? x = this.defaultActions[B] : ((E === null || typeof E > "u") && (E = rt()), x = m[B] && m[B][E]), typeof x > "u" || !x.length || !x[0]) {
105
+ var J = "";
106
+ V = [];
107
+ for (z in m[B])
108
+ this.terminals_[z] && z > ht && V.push("'" + this.terminals_[z] + "'");
109
+ f.showPosition ? J = "Parse error on line " + (W + 1) + `:
110
+ ` + f.showPosition() + `
111
+ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : J = "Parse error on line " + (W + 1) + ": Unexpected " + (E == st ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(J, {
112
+ text: f.match,
113
+ token: this.terminals_[E] || E,
114
+ line: f.yylineno,
115
+ loc: Y,
116
+ expected: V
117
+ });
118
+ }
119
+ if (x[0] instanceof Array && x.length > 1)
120
+ throw new Error("Parse Error: multiple actions possible at state: " + B + ", token: " + E);
121
+ switch (x[0]) {
122
+ case 1:
123
+ n.push(E), c.push(f.yytext), e.push(f.yylloc), n.push(x[1]), E = null, nt = f.yyleng, l = f.yytext, W = f.yylineno, Y = f.yylloc;
124
+ break;
125
+ case 2:
126
+ if (I = this.productions_[x[1]][1], U.$ = c[c.length - I], U._$ = {
127
+ first_line: e[e.length - (I || 1)].first_line,
128
+ last_line: e[e.length - 1].last_line,
129
+ first_column: e[e.length - (I || 1)].first_column,
130
+ last_column: e[e.length - 1].last_column
131
+ }, gt && (U._$.range = [
132
+ e[e.length - (I || 1)].range[0],
133
+ e[e.length - 1].range[1]
134
+ ]), K = this.performAction.apply(U, [
135
+ l,
136
+ nt,
137
+ W,
138
+ P.yy,
139
+ x[1],
140
+ c,
141
+ e
142
+ ].concat(ut)), typeof K < "u")
143
+ return K;
144
+ I && (n = n.slice(0, -1 * I * 2), c = c.slice(0, -1 * I), e = e.slice(0, -1 * I)), n.push(this.productions_[x[1]][0]), c.push(U.$), e.push(U._$), ot = m[n[n.length - 2]][n[n.length - 1]], n.push(ot);
145
+ break;
146
+ case 3:
147
+ return !0;
148
+ }
149
+ }
150
+ return !0;
151
+ }, "parse")
152
+ }, R = /* @__PURE__ */ function() {
153
+ var k = {
154
+ EOF: 1,
155
+ parseError: /* @__PURE__ */ a(function(t, n) {
156
+ if (this.yy.parser)
157
+ this.yy.parser.parseError(t, n);
158
+ else
159
+ throw new Error(t);
160
+ }, "parseError"),
161
+ // resets the lexer, sets new input
162
+ setInput: /* @__PURE__ */ a(function(t, n) {
163
+ return this.yy = n || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
164
+ first_line: 1,
165
+ first_column: 0,
166
+ last_line: 1,
167
+ last_column: 0
168
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
169
+ }, "setInput"),
170
+ // consumes and returns one char from the input
171
+ input: /* @__PURE__ */ a(function() {
172
+ var t = this._input[0];
173
+ this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
174
+ var n = t.match(/(?:\r\n?|\n).*/g);
175
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
176
+ }, "input"),
177
+ // unshifts one char (or a string) into the input
178
+ unput: /* @__PURE__ */ a(function(t) {
179
+ var n = t.length, r = t.split(/(?:\r\n?|\n)/g);
180
+ this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
181
+ var c = this.match.split(/(?:\r\n?|\n)/g);
182
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
183
+ var e = this.yylloc.range;
184
+ return this.yylloc = {
185
+ first_line: this.yylloc.first_line,
186
+ last_line: this.yylineno + 1,
187
+ first_column: this.yylloc.first_column,
188
+ last_column: r ? (r.length === c.length ? this.yylloc.first_column : 0) + c[c.length - r.length].length - r[0].length : this.yylloc.first_column - n
189
+ }, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
190
+ }, "unput"),
191
+ // When called from action, caches matched text and appends it on next action
192
+ more: /* @__PURE__ */ a(function() {
193
+ return this._more = !0, this;
194
+ }, "more"),
195
+ // 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.
196
+ reject: /* @__PURE__ */ a(function() {
197
+ if (this.options.backtrack_lexer)
198
+ this._backtrack = !0;
199
+ else
200
+ 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).
201
+ ` + this.showPosition(), {
202
+ text: "",
203
+ token: null,
204
+ line: this.yylineno
205
+ });
206
+ return this;
207
+ }, "reject"),
208
+ // retain first n characters of the match
209
+ less: /* @__PURE__ */ a(function(t) {
210
+ this.unput(this.match.slice(t));
211
+ }, "less"),
212
+ // displays already matched input, i.e. for error messages
213
+ pastInput: /* @__PURE__ */ a(function() {
214
+ var t = this.matched.substr(0, this.matched.length - this.match.length);
215
+ return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
216
+ }, "pastInput"),
217
+ // displays upcoming input, i.e. for error messages
218
+ upcomingInput: /* @__PURE__ */ a(function() {
219
+ var t = this.match;
220
+ return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
221
+ }, "upcomingInput"),
222
+ // displays the character position where the lexing error occurred, i.e. for error messages
223
+ showPosition: /* @__PURE__ */ a(function() {
224
+ var t = this.pastInput(), n = new Array(t.length + 1).join("-");
225
+ return t + this.upcomingInput() + `
226
+ ` + n + "^";
227
+ }, "showPosition"),
228
+ // test the lexed token: return FALSE when not a match, otherwise return token
229
+ test_match: /* @__PURE__ */ a(function(t, n) {
230
+ var r, c, e;
231
+ if (this.options.backtrack_lexer && (e = {
232
+ yylineno: this.yylineno,
233
+ yylloc: {
234
+ first_line: this.yylloc.first_line,
235
+ last_line: this.last_line,
236
+ first_column: this.yylloc.first_column,
237
+ last_column: this.yylloc.last_column
238
+ },
239
+ yytext: this.yytext,
240
+ match: this.match,
241
+ matches: this.matches,
242
+ matched: this.matched,
243
+ yyleng: this.yyleng,
244
+ offset: this.offset,
245
+ _more: this._more,
246
+ _input: this._input,
247
+ yy: this.yy,
248
+ conditionStack: this.conditionStack.slice(0),
249
+ done: this.done
250
+ }, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), c = t[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
251
+ first_line: this.yylloc.last_line,
252
+ last_line: this.yylineno + 1,
253
+ first_column: this.yylloc.last_column,
254
+ last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
255
+ }, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
256
+ return r;
257
+ if (this._backtrack) {
258
+ for (var m in e)
259
+ this[m] = e[m];
260
+ return !1;
261
+ }
262
+ return !1;
263
+ }, "test_match"),
264
+ // return next match in input
265
+ next: /* @__PURE__ */ a(function() {
266
+ if (this.done)
267
+ return this.EOF;
268
+ this._input || (this.done = !0);
269
+ var t, n, r, c;
270
+ this._more || (this.yytext = "", this.match = "");
271
+ for (var e = this._currentRules(), m = 0; m < e.length; m++)
272
+ if (r = this._input.match(this.rules[e[m]]), r && (!n || r[0].length > n[0].length)) {
273
+ if (n = r, c = m, this.options.backtrack_lexer) {
274
+ if (t = this.test_match(r, e[m]), t !== !1)
275
+ return t;
276
+ if (this._backtrack) {
277
+ n = !1;
278
+ continue;
279
+ } else
280
+ return !1;
281
+ } else if (!this.options.flex)
282
+ break;
283
+ }
284
+ return n ? (t = this.test_match(n, e[c]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
285
+ ` + this.showPosition(), {
286
+ text: "",
287
+ token: null,
288
+ line: this.yylineno
289
+ });
290
+ }, "next"),
291
+ // return next match that has a token
292
+ lex: /* @__PURE__ */ a(function() {
293
+ var t = this.next();
294
+ return t || this.lex();
295
+ }, "lex"),
296
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
297
+ begin: /* @__PURE__ */ a(function(t) {
298
+ this.conditionStack.push(t);
299
+ }, "begin"),
300
+ // pop the previously active lexer condition state off the condition stack
301
+ popState: /* @__PURE__ */ a(function() {
302
+ var t = this.conditionStack.length - 1;
303
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
304
+ }, "popState"),
305
+ // produce the lexer rule set which is active for the currently active lexer condition state
306
+ _currentRules: /* @__PURE__ */ a(function() {
307
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
308
+ }, "_currentRules"),
309
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
310
+ topState: /* @__PURE__ */ a(function(t) {
311
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
312
+ }, "topState"),
313
+ // alias for begin(condition)
314
+ pushState: /* @__PURE__ */ a(function(t) {
315
+ this.begin(t);
316
+ }, "pushState"),
317
+ // return the number of states currently on the stack
318
+ stateStackSize: /* @__PURE__ */ a(function() {
319
+ return this.conditionStack.length;
320
+ }, "stateStackSize"),
321
+ options: { "case-insensitive": !0 },
322
+ performAction: /* @__PURE__ */ a(function(t, n, r, c) {
323
+ switch (r) {
324
+ case 0:
325
+ return this.pushState("shapeData"), n.yytext = "", 24;
326
+ case 1:
327
+ return this.pushState("shapeDataStr"), 24;
328
+ case 2:
329
+ return this.popState(), 24;
330
+ case 3:
331
+ const e = /\n\s*/g;
332
+ return n.yytext = n.yytext.replace(e, "<br/>"), 24;
333
+ case 4:
334
+ return 24;
335
+ case 5:
336
+ this.popState();
337
+ break;
338
+ case 6:
339
+ return t.getLogger().trace("Found comment", n.yytext), 6;
340
+ case 7:
341
+ return 8;
342
+ case 8:
343
+ this.begin("CLASS");
344
+ break;
345
+ case 9:
346
+ return this.popState(), 17;
347
+ case 10:
348
+ this.popState();
349
+ break;
350
+ case 11:
351
+ t.getLogger().trace("Begin icon"), this.begin("ICON");
352
+ break;
353
+ case 12:
354
+ return t.getLogger().trace("SPACELINE"), 6;
355
+ case 13:
356
+ return 7;
357
+ case 14:
358
+ return 16;
359
+ case 15:
360
+ t.getLogger().trace("end icon"), this.popState();
361
+ break;
362
+ case 16:
363
+ return t.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
364
+ case 17:
365
+ return t.getLogger().trace("Cloud"), this.begin("NODE"), 20;
366
+ case 18:
367
+ return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
368
+ case 19:
369
+ return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
370
+ case 20:
371
+ return this.begin("NODE"), 20;
372
+ case 21:
373
+ return this.begin("NODE"), 20;
374
+ case 22:
375
+ return this.begin("NODE"), 20;
376
+ case 23:
377
+ return this.begin("NODE"), 20;
378
+ case 24:
379
+ return 13;
380
+ case 25:
381
+ return 23;
382
+ case 26:
383
+ return 11;
384
+ case 27:
385
+ this.begin("NSTR2");
386
+ break;
387
+ case 28:
388
+ return "NODE_DESCR";
389
+ case 29:
390
+ this.popState();
391
+ break;
392
+ case 30:
393
+ t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
394
+ break;
395
+ case 31:
396
+ return t.getLogger().trace("description:", n.yytext), "NODE_DESCR";
397
+ case 32:
398
+ this.popState();
399
+ break;
400
+ case 33:
401
+ return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
402
+ case 34:
403
+ return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
404
+ case 35:
405
+ return this.popState(), t.getLogger().trace("node end ...", n.yytext), "NODE_DEND";
406
+ case 36:
407
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
408
+ case 37:
409
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
410
+ case 38:
411
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
412
+ case 39:
413
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
414
+ case 40:
415
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
416
+ case 41:
417
+ return t.getLogger().trace("Long description:", n.yytext), 21;
418
+ case 42:
419
+ return t.getLogger().trace("Long description:", n.yytext), 21;
420
+ }
421
+ }, "anonymous"),
422
+ rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\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
+ conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
424
+ };
425
+ return k;
426
+ }();
427
+ y.lexer = R;
428
+ function O() {
429
+ this.yy = {};
430
+ }
431
+ return a(O, "Parser"), O.prototype = y, y.Parser = O, new O();
432
+ }();
433
+ Q.parser = Q;
434
+ var kt = Q, L = [], et = [], Z = 0, it = {}, Nt = /* @__PURE__ */ a(() => {
435
+ L = [], et = [], Z = 0, it = {};
436
+ }, "clear"), Dt = /* @__PURE__ */ a((i) => {
437
+ if (L.length === 0)
438
+ return null;
439
+ const u = L[0].level;
440
+ let d = null;
441
+ for (let s = L.length - 1; s >= 0; s--)
442
+ if (L[s].level === u && !d && (d = L[s]), L[s].level < u)
443
+ throw new Error('Items without section detected, found section ("' + L[s].label + '")');
444
+ return i === (d == null ? void 0 : d.level) ? null : d;
445
+ }, "getSection"), ct = /* @__PURE__ */ a(function() {
446
+ return et;
447
+ }, "getSections"), xt = /* @__PURE__ */ a(function() {
448
+ const i = [], u = [], d = ct(), s = F();
449
+ for (const g of d) {
450
+ const D = {
451
+ id: g.id,
452
+ label: G(g.label ?? "", s),
453
+ isGroup: !0,
454
+ ticket: g.ticket,
455
+ shape: "kanbanSection",
456
+ level: g.level,
457
+ look: s.look
458
+ };
459
+ u.push(D);
460
+ const S = L.filter((h) => h.parentId === g.id);
461
+ for (const h of S) {
462
+ const v = {
463
+ id: h.id,
464
+ parentId: g.id,
465
+ label: G(h.label ?? "", s),
466
+ isGroup: !1,
467
+ ticket: h == null ? void 0 : h.ticket,
468
+ priority: h == null ? void 0 : h.priority,
469
+ assigned: h == null ? void 0 : h.assigned,
470
+ icon: h == null ? void 0 : h.icon,
471
+ shape: "kanbanItem",
472
+ level: h.level,
473
+ rx: 5,
474
+ ry: 5,
475
+ cssStyles: ["text-align: left"]
476
+ };
477
+ u.push(v);
478
+ }
479
+ }
480
+ return { nodes: u, edges: i, other: {}, config: F() };
481
+ }, "getData"), Lt = /* @__PURE__ */ a((i, u, d, s, g) => {
482
+ var D, S;
483
+ const h = F();
484
+ let v = ((D = h.mindmap) == null ? void 0 : D.padding) ?? q.mindmap.padding;
485
+ switch (s) {
486
+ case p.ROUNDED_RECT:
487
+ case p.RECT:
488
+ case p.HEXAGON:
489
+ v *= 2;
490
+ }
491
+ const b = {
492
+ id: G(u, h) || "kbn" + Z++,
493
+ level: i,
494
+ label: G(d, h),
495
+ width: ((S = h.mindmap) == null ? void 0 : S.maxNodeWidth) ?? q.mindmap.maxNodeWidth,
496
+ padding: v,
497
+ isGroup: !1
498
+ };
499
+ if (g !== void 0) {
500
+ let C;
501
+ g.includes(`
502
+ `) ? C = g + `
503
+ ` : C = `{
504
+ ` + g + `
505
+ }`;
506
+ const o = _t(C, { schema: Et });
507
+ if (o.shape && (o.shape !== o.shape.toLowerCase() || o.shape.includes("_")))
508
+ throw new Error(`No such shape: ${o.shape}. Shape names should be lowercase.`);
509
+ o != null && o.shape && o.shape === "kanbanItem" && (b.shape = o == null ? void 0 : o.shape), o != null && o.label && (b.label = o == null ? void 0 : o.label), o != null && o.icon && (b.icon = o == null ? void 0 : o.icon.toString()), o != null && o.assigned && (b.assigned = o == null ? void 0 : o.assigned.toString()), o != null && o.ticket && (b.ticket = o == null ? void 0 : o.ticket.toString()), o != null && o.priority && (b.priority = o == null ? void 0 : o.priority);
510
+ }
511
+ const _ = Dt(i);
512
+ _ ? b.parentId = _.id || "kbn" + Z++ : et.push(b), L.push(b);
513
+ }, "addNode"), p = {
514
+ DEFAULT: 0,
515
+ NO_BORDER: 0,
516
+ ROUNDED_RECT: 1,
517
+ RECT: 2,
518
+ CIRCLE: 3,
519
+ CLOUD: 4,
520
+ BANG: 5,
521
+ HEXAGON: 6
522
+ }, vt = /* @__PURE__ */ a((i, u) => {
523
+ switch (tt.debug("In get type", i, u), i) {
524
+ case "[":
525
+ return p.RECT;
526
+ case "(":
527
+ return u === ")" ? p.ROUNDED_RECT : p.CLOUD;
528
+ case "((":
529
+ return p.CIRCLE;
530
+ case ")":
531
+ return p.CLOUD;
532
+ case "))":
533
+ return p.BANG;
534
+ case "{{":
535
+ return p.HEXAGON;
536
+ default:
537
+ return p.DEFAULT;
538
+ }
539
+ }, "getType"), Ot = /* @__PURE__ */ a((i, u) => {
540
+ it[i] = u;
541
+ }, "setElementForId"), Ct = /* @__PURE__ */ a((i) => {
542
+ if (!i)
543
+ return;
544
+ const u = F(), d = L[L.length - 1];
545
+ i.icon && (d.icon = G(i.icon, u)), i.class && (d.cssClasses = G(i.class, u));
546
+ }, "decorateNode"), wt = /* @__PURE__ */ a((i) => {
547
+ switch (i) {
548
+ case p.DEFAULT:
549
+ return "no-border";
550
+ case p.RECT:
551
+ return "rect";
552
+ case p.ROUNDED_RECT:
553
+ return "rounded-rect";
554
+ case p.CIRCLE:
555
+ return "circle";
556
+ case p.CLOUD:
557
+ return "cloud";
558
+ case p.BANG:
559
+ return "bang";
560
+ case p.HEXAGON:
561
+ return "hexgon";
562
+ default:
563
+ return "no-border";
564
+ }
565
+ }, "type2Str"), At = /* @__PURE__ */ a(() => tt, "getLogger"), It = /* @__PURE__ */ a((i) => it[i], "getElementById"), Tt = {
566
+ clear: Nt,
567
+ addNode: Lt,
568
+ getSections: ct,
569
+ getData: xt,
570
+ nodeType: p,
571
+ getType: vt,
572
+ setElementForId: Ot,
573
+ decorateNode: Ct,
574
+ type2Str: wt,
575
+ getLogger: At,
576
+ getElementById: It
577
+ }, $t = Tt, Rt = /* @__PURE__ */ a(async (i, u, d, s) => {
578
+ var g, D, S, h, v;
579
+ tt.debug(`Rendering kanban diagram
580
+ ` + i);
581
+ const b = s.db.getData(), _ = F();
582
+ _.htmlLabels = !1;
583
+ const C = pt(u), o = C.append("g");
584
+ o.attr("class", "sections");
585
+ const j = C.append("g");
586
+ j.attr("class", "items");
587
+ const w = b.nodes.filter(
588
+ // TODO: TypeScript 5.5 will infer this predicate automatically
589
+ (y) => y.isGroup
590
+ );
591
+ let T = 0;
592
+ const $ = 10, H = [];
593
+ let A = 25;
594
+ for (const y of w) {
595
+ const R = ((g = _ == null ? void 0 : _.kanban) == null ? void 0 : g.sectionWidth) || 200;
596
+ T = T + 1, y.x = R * T + (T - 1) * $ / 2, y.width = R, y.y = 0, y.height = R * 3, y.rx = 5, y.ry = 5, y.cssClasses = y.cssClasses + " section-" + T;
597
+ const O = await yt(o, y);
598
+ A = Math.max(A, (D = O == null ? void 0 : O.labelBBox) == null ? void 0 : D.height), H.push(O);
599
+ }
600
+ let M = 0;
601
+ for (const y of w) {
602
+ const R = H[M];
603
+ M = M + 1;
604
+ const O = ((S = _ == null ? void 0 : _.kanban) == null ? void 0 : S.sectionWidth) || 200, k = -O * 3 / 2 + A;
605
+ let t = k;
606
+ const n = b.nodes.filter((e) => e.parentId === y.id);
607
+ for (const e of n) {
608
+ if (e.isGroup)
609
+ throw new Error("Groups within groups are not allowed in Kanban diagrams");
610
+ e.x = y.x, e.width = O - 1.5 * $;
611
+ const m = (await ft(j, e, { config: _ })).node().getBBox();
612
+ e.y = t + m.height / 2, await mt(e), t = e.y + m.height / 2 + $ / 2;
613
+ }
614
+ const r = R.cluster.select("rect"), c = Math.max(t - k + 3 * $, 50) + (A - 25);
615
+ r.attr("height", c);
616
+ }
617
+ bt(
618
+ void 0,
619
+ C,
620
+ ((h = _.mindmap) == null ? void 0 : h.padding) ?? q.kanban.padding,
621
+ ((v = _.mindmap) == null ? void 0 : v.useMaxWidth) ?? q.kanban.useMaxWidth
622
+ );
623
+ }, "draw"), Pt = {
624
+ draw: Rt
625
+ }, Bt = /* @__PURE__ */ a((i) => {
626
+ let u = "";
627
+ for (let s = 0; s < i.THEME_COLOR_LIMIT; s++)
628
+ i["lineColor" + s] = i["lineColor" + s] || i["cScaleInv" + s], St(i["lineColor" + s]) ? i["lineColor" + s] = at(i["lineColor" + s], 20) : i["lineColor" + s] = lt(i["lineColor" + s], 20);
629
+ const d = /* @__PURE__ */ a((s, g) => i.darkMode ? lt(s, g) : at(s, g), "adjuster");
630
+ for (let s = 0; s < i.THEME_COLOR_LIMIT; s++) {
631
+ const g = "" + (17 - 3 * s);
632
+ u += `
633
+ .section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
634
+ fill: ${d(i["cScale" + s], 10)};
635
+ stroke: ${d(i["cScale" + s], 10)};
636
+
637
+ }
638
+ .section-${s - 1} text {
639
+ fill: ${i["cScaleLabel" + s]};
640
+ }
641
+ .node-icon-${s - 1} {
642
+ font-size: 40px;
643
+ color: ${i["cScaleLabel" + s]};
644
+ }
645
+ .section-edge-${s - 1}{
646
+ stroke: ${i["cScale" + s]};
647
+ }
648
+ .edge-depth-${s - 1}{
649
+ stroke-width: ${g};
650
+ }
651
+ .section-${s - 1} line {
652
+ stroke: ${i["cScaleInv" + s]} ;
653
+ stroke-width: 3;
654
+ }
655
+
656
+ .disabled, .disabled circle, .disabled text {
657
+ fill: lightgray;
658
+ }
659
+ .disabled text {
660
+ fill: #efefef;
661
+ }
662
+
663
+ .node rect,
664
+ .node circle,
665
+ .node ellipse,
666
+ .node polygon,
667
+ .node path {
668
+ fill: ${i.background};
669
+ stroke: ${i.nodeBorder};
670
+ stroke-width: 1px;
671
+ }
672
+
673
+ .kanban-ticket-link {
674
+ fill: ${i.background};
675
+ stroke: ${i.nodeBorder};
676
+ text-decoration: underline;
677
+ }
678
+ `;
679
+ }
680
+ return u;
681
+ }, "genSections"), Mt = /* @__PURE__ */ a((i) => `
682
+ .edge {
683
+ stroke-width: 3;
684
+ }
685
+ ${Bt(i)}
686
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
687
+ fill: ${i.git0};
688
+ }
689
+ .section-root text {
690
+ fill: ${i.gitBranchLabel0};
691
+ }
692
+ .icon-container {
693
+ height:100%;
694
+ display: flex;
695
+ justify-content: center;
696
+ align-items: center;
697
+ }
698
+ .edge {
699
+ fill: none;
700
+ }
701
+ .cluster-label, .label {
702
+ color: ${i.textColor};
703
+ fill: ${i.textColor};
704
+ }
705
+ .kanban-label {
706
+ dy: 1em;
707
+ alignment-baseline: middle;
708
+ text-anchor: middle;
709
+ dominant-baseline: middle;
710
+ text-align: center;
711
+ }
712
+ `, "getStyles"), Ut = Mt, Ht = {
713
+ db: $t,
714
+ renderer: Pt,
715
+ parser: kt,
716
+ styles: Ut
717
+ };
718
+ export {
719
+ Ht as diagram
720
+ };