@kong-ui-public/documentation 0.7.83 → 0.7.85

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 (66) hide show
  1. package/dist/_basePickBy-CMfPif8e-CmRJF0Pz.js +151 -0
  2. package/dist/_baseUniq-CXqhI00C-BfnSCqya.js +615 -0
  3. package/dist/arc-JIMrD458-iE0qPqUL.js +83 -0
  4. package/dist/architecture-I3QFYML2-Bgw7-fJd-BmHcSoDq.js +5 -0
  5. package/dist/{architectureDiagram-V6B76FHG-CMXFnETI-RxxML1uW.js → architectureDiagram-AYX4OTIS-XPsSAXrN-CriQXfFm.js} +4 -4
  6. package/dist/blockDiagram-XN6IQ5JY-IfzOVP1S-DoilgKcQ.js +2247 -0
  7. package/dist/{c4Diagram-THADGKDP-BoXI_MdM-85LhjWUD.js → c4Diagram-GPMAACGM-RttNBnvg-DemUG3qf.js} +2 -2
  8. package/dist/{channel-BlAyqTfO-DcF7shsf.js → channel-DEiqvYYf-DqQTZyIM.js} +1 -1
  9. package/dist/{chunk-OQCM5LHU-BXp7HdZf-DAxyAqhb.js → chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js} +1 -1
  10. package/dist/chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js +1301 -0
  11. package/dist/{chunk-DUMQOTYW-BvseU82P-Cv9cgfHg.js → chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js} +1 -1
  12. package/dist/{chunk-2JBRQKJ5-D-tjQIH--CX9PfGSj.js → chunk-JZAHL7AJ-B8L_7Xh_-C2ETRUtV.js} +21 -21
  13. package/dist/{chunk-2RYQ3QTB-CJAPCFIj-C6EEVa0L.js → chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js} +1 -1
  14. package/dist/{chunk-XVOYOM2C-DSF8EQmO-CJoKjxiE.js → chunk-VCFP4HPQ-qZEjUbIz-7kfkUrsj.js} +1 -1
  15. package/dist/classDiagram-FEGYTUDG-Bu9qKgav-DF2ZcQyp.js +14 -0
  16. package/dist/classDiagram-v2-R65JCUOM-Bu9qKgav-DF2ZcQyp.js +14 -0
  17. package/dist/{clone-BxgFQWIV-C8w0qOf5.js → clone-elND5I63-U8WRvSPu.js} +1 -1
  18. package/dist/dagre-SWNTG5WE-CcKMLYcK-tREOd3Fb.js +447 -0
  19. package/dist/{diagram-QS5GVLUX-Ck_HO8gZ-CFWjkYXj.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js} +6 -6
  20. package/dist/documentation.es.js +1 -1
  21. package/dist/documentation.umd.js +401 -273
  22. package/dist/{erDiagram-62CBQV5Y-CaO8CQzG-DYEXkRnA.js → erDiagram-WO52GFNT-N8TeMKSM-BojFH-Dn.js} +56 -56
  23. package/dist/flowDiagram-TSWR6T2D-DzECWIN--CnDMIIi-.js +1484 -0
  24. package/dist/{ganttDiagram-ASEIQ4P5-BiIuu6iJ-DXC89NBD.js → ganttDiagram-FAOCOTIY-DmxDGUpf-BGJLIQAo.js} +61 -61
  25. package/dist/gitGraph-YCYPL57B-BKlVjqGu-BRRTPERj.js +5 -0
  26. package/dist/{gitGraphDiagram-UL5UFKDR-C4dDL1m3-pGO-Nubf.js → gitGraphDiagram-5C7YHVU6-CfJ_hQ2h-C2aLT5AH.js} +21 -21
  27. package/dist/{graph-BDwITe7N-Dg4ZhErV.js → graph-C5siWsaJ-djbzUgq8.js} +52 -55
  28. package/dist/{index-D1jNpyAG.js → index-BXFfc1qh.js} +17314 -15496
  29. package/dist/info-46DW6VJ7-QBUrqpM0-D7DXfBfh.js +5 -0
  30. package/dist/{infoDiagram-7APDZ6AT-DQAU4aEA-ZuNKK8Q1.js → infoDiagram-P5D6MX3V-CthsN8fk-ju-grajk.js} +2 -2
  31. package/dist/{journeyDiagram-G5LC7W2K-BDjs8Ede-CBVXgKDg.js → journeyDiagram-UIGPPNLY-CB1xWSVF-CnOTIXjT.js} +3 -3
  32. package/dist/kanban-definition-KMT3NSR2-B76JZ_Kx-BuaYPyou.js +718 -0
  33. package/dist/layout-mwnMvyc4-B2PmGvWD.js +1321 -0
  34. package/dist/{linear-DJf2yjqH-Qa8JBmhC.js → linear-XztDb0hj-RsuwoFLQ.js} +46 -46
  35. package/dist/{mermaid-parser.core-DKcB0zTx-Cuc2e_U9.js → mermaid-parser.core-C4mt_cFi-BuaZi6gx.js} +9 -9
  36. package/dist/{mindmap-definition-FCEC46F3-Dfona71I-BMB5v8Sw.js → mindmap-definition-R7LC4OIY-Cg3Nsctr-BcCPx65V.js} +1 -1
  37. package/dist/packet-W2GHVCYJ-BJGXYVlB-DlnQVVmK.js +5 -0
  38. package/dist/pie-BEWT4RHE-XO1bTOj2-DEYSeXSg.js +5 -0
  39. package/dist/{pieDiagram-OZX6XH5M-CVVFrPaX-C40AWUnf.js → pieDiagram-BLWKPB35-Bs5Iyn_g-CnOiPji_.js} +27 -27
  40. package/dist/{quadrantDiagram-VG34DGKC-D_n6ouG0-B7tCVKZS.js → quadrantDiagram-QXWEEFXS-n8j7IqmF-CloVXY0U.js} +16 -16
  41. package/dist/{requirementDiagram-FPZB6IJI-DgzsPnSP-BdT6rZ42.js → requirementDiagram-XAUNFCZY-DI_Pyl2h-D8hqXle2.js} +20 -20
  42. package/dist/{sankeyDiagram-KMMQDL5K-slN_anzC-C8cSA1pn.js → sankeyDiagram-LVV36NHA-Bei7yBJl-DvbyWSci.js} +1 -1
  43. package/dist/{sequenceDiagram-PQT5PN7B-DmYxtSNe-kmiDoefU.js → sequenceDiagram-D25TJ2OB-NAPdhBbI-DQR1b0UZ.js} +21 -21
  44. package/dist/{stateDiagram-TQSDS2D4-DaGylNtS-DZvK22EK.js → stateDiagram-GNSP7T6Y-Dzq9j0YG-BgVCaCOx.js} +14 -15
  45. package/dist/{stateDiagram-v2-J5TZWJW5-CkpV3aOb-CRLcbMy9.js → stateDiagram-v2-HP6YRVRG-Jl4ubGlG-BeMvcZLQ.js} +2 -3
  46. package/dist/{timeline-definition-KYQAIZUX-BbQn7lRo-DdMJtCcZ.js → timeline-definition-27KQCCZ3-Dyj-cUhB-cBpLcB_z.js} +91 -91
  47. package/dist/{xychartDiagram-LESROZAQ-C5RGN8Yc-D1Q0T8zi.js → xychartDiagram-MYLB5AYS-Bc_nZcHL-YLCG5NJT.js} +2 -2
  48. package/package.json +5 -5
  49. package/dist/_basePickBy-C3_IHxiB-Bgb-nBpw.js +0 -143
  50. package/dist/_baseUniq-Cede_3wW-BVX848YU.js +0 -622
  51. package/dist/arc-CFIMKg_S-CJkN7pL8.js +0 -83
  52. package/dist/architecture-I3QFYML2-CsfpifL5-B7ba29Kf.js +0 -5
  53. package/dist/blockDiagram-EN3ZKWFM-CyddtNyi-BO48RJ5X.js +0 -1232
  54. package/dist/chunk-BAVOGKFW-DMR4mnUx-ZqKP-ubQ.js +0 -1092
  55. package/dist/chunk-UGV5ZQQN-DJ9JPuwX-CiNn-tmJ.js +0 -254
  56. package/dist/chunk-YWFND7JV-CJxpOF0s-CKv3TLz3.js +0 -786
  57. package/dist/classDiagram-4BHYIK4I-Bh2E4V_q-Bp1df6xf.js +0 -214
  58. package/dist/classDiagram-v2-FI7KE7WJ-zeS53lAE--zqW0wuN.js +0 -545
  59. package/dist/dagre-P3YPLUS5-DvPNKrZS-BqJ7-FR_.js +0 -421
  60. package/dist/flowDiagram-JSIZSE4D-C3p20RgK-76C6C_fU.js +0 -1380
  61. package/dist/gitGraph-YCYPL57B-BXHaWu1_-L6S_Q-ER.js +0 -5
  62. package/dist/info-46DW6VJ7-gLazUuGQ-CgME-TPe.js +0 -5
  63. package/dist/json-Dg9P6BhK-CcBa4IfV.js +0 -31
  64. package/dist/layout--tn8zpzB-CFuPSG6n.js +0 -1381
  65. package/dist/packet-W2GHVCYJ-Dn1-cCwP-_7hKzD3w.js +0 -5
  66. package/dist/pie-BEWT4RHE-DvPKCMtn-CWoQ7JX6.js +0 -5
@@ -0,0 +1,718 @@
1
+ import { _ as a, l as tt, g as G, aX as pt, f as yt, i as ft, p as mt, bn as bt, aB as K, ae as F, an as _t, ao as Et, bo as St, bp as at, bq as lt } from "./index-BXFfc1qh.js";
2
+ var Y = function() {
3
+ var i = /* @__PURE__ */ a(function(k, t, n, r) {
4
+ for (n = n || {}, r = k.length; r--; n[k[r]] = t) ;
5
+ return n;
6
+ }, "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 = {
7
+ trace: /* @__PURE__ */ a(function() {
8
+ }, "trace"),
9
+ yy: {},
10
+ 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 },
11
+ 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" },
12
+ 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]],
13
+ performAction: /* @__PURE__ */ a(function(k, t, n, r, c, e, m) {
14
+ var l = e.length - 1;
15
+ switch (c) {
16
+ case 6:
17
+ case 7:
18
+ return r;
19
+ case 8:
20
+ r.getLogger().trace("Stop NL ");
21
+ break;
22
+ case 9:
23
+ r.getLogger().trace("Stop EOF ");
24
+ break;
25
+ case 11:
26
+ r.getLogger().trace("Stop NL2 ");
27
+ break;
28
+ case 12:
29
+ r.getLogger().trace("Stop EOF2 ");
30
+ break;
31
+ case 15:
32
+ 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]);
33
+ break;
34
+ case 16:
35
+ r.getLogger().info("Node: ", e[l].id), r.addNode(e[l - 1].length, e[l].id, e[l].descr, e[l].type);
36
+ break;
37
+ case 17:
38
+ r.getLogger().trace("Icon: ", e[l]), r.decorateNode({ icon: e[l] });
39
+ break;
40
+ case 18:
41
+ case 23:
42
+ r.decorateNode({ class: e[l] });
43
+ break;
44
+ case 19:
45
+ r.getLogger().trace("SPACELIST");
46
+ break;
47
+ case 20:
48
+ 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]);
49
+ break;
50
+ case 21:
51
+ r.getLogger().trace("Node: ", e[l].id), r.addNode(0, e[l].id, e[l].descr, e[l].type);
52
+ break;
53
+ case 22:
54
+ r.decorateNode({ icon: e[l] });
55
+ break;
56
+ case 27:
57
+ 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]) };
58
+ break;
59
+ case 28:
60
+ this.$ = { id: e[l], descr: e[l], type: 0 };
61
+ break;
62
+ case 29:
63
+ 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]) };
64
+ break;
65
+ case 30:
66
+ this.$ = e[l - 1] + e[l];
67
+ break;
68
+ case 31:
69
+ this.$ = e[l];
70
+ break;
71
+ }
72
+ }, "anonymous"),
73
+ 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])],
74
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
75
+ parseError: /* @__PURE__ */ a(function(k, t) {
76
+ if (t.recoverable)
77
+ this.trace(k);
78
+ else {
79
+ var n = new Error(k);
80
+ throw n.hash = t, n;
81
+ }
82
+ }, "parseError"),
83
+ parse: /* @__PURE__ */ a(function(k) {
84
+ 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: {} };
85
+ for (var q in this.yy)
86
+ Object.prototype.hasOwnProperty.call(this.yy, q) && (P.yy[q] = this.yy[q]);
87
+ f.setInput(k, P.yy), P.yy.lexer = f, P.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
88
+ var X = f.yylloc;
89
+ e.push(X);
90
+ var gt = f.options && f.options.ranges;
91
+ typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
92
+ function dt(N) {
93
+ n.length = n.length - 2 * N, c.length = c.length - N, e.length = e.length - N;
94
+ }
95
+ a(dt, "popStack");
96
+ function rt() {
97
+ var N;
98
+ return N = r.pop() || f.lex() || st, typeof N != "number" && (N instanceof Array && (r = N, N = r.pop()), N = t.symbols_[N] || N), N;
99
+ }
100
+ a(rt, "lex");
101
+ for (var E, B, x, J, U = {}, z, I, ot, V; ; ) {
102
+ 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]) {
103
+ var Q = "";
104
+ V = [];
105
+ for (z in m[B])
106
+ this.terminals_[z] && z > ht && V.push("'" + this.terminals_[z] + "'");
107
+ f.showPosition ? Q = "Parse error on line " + (W + 1) + `:
108
+ ` + f.showPosition() + `
109
+ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "Parse error on line " + (W + 1) + ": Unexpected " + (E == st ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Q, {
110
+ text: f.match,
111
+ token: this.terminals_[E] || E,
112
+ line: f.yylineno,
113
+ loc: X,
114
+ expected: V
115
+ });
116
+ }
117
+ if (x[0] instanceof Array && x.length > 1)
118
+ throw new Error("Parse Error: multiple actions possible at state: " + B + ", token: " + E);
119
+ switch (x[0]) {
120
+ case 1:
121
+ 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, X = f.yylloc;
122
+ break;
123
+ case 2:
124
+ if (I = this.productions_[x[1]][1], U.$ = c[c.length - I], U._$ = {
125
+ first_line: e[e.length - (I || 1)].first_line,
126
+ last_line: e[e.length - 1].last_line,
127
+ first_column: e[e.length - (I || 1)].first_column,
128
+ last_column: e[e.length - 1].last_column
129
+ }, gt && (U._$.range = [
130
+ e[e.length - (I || 1)].range[0],
131
+ e[e.length - 1].range[1]
132
+ ]), J = this.performAction.apply(U, [
133
+ l,
134
+ nt,
135
+ W,
136
+ P.yy,
137
+ x[1],
138
+ c,
139
+ e
140
+ ].concat(ut)), typeof J < "u")
141
+ return J;
142
+ 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);
143
+ break;
144
+ case 3:
145
+ return !0;
146
+ }
147
+ }
148
+ return !0;
149
+ }, "parse")
150
+ }, R = /* @__PURE__ */ function() {
151
+ var k = {
152
+ EOF: 1,
153
+ parseError: /* @__PURE__ */ a(function(t, n) {
154
+ if (this.yy.parser)
155
+ this.yy.parser.parseError(t, n);
156
+ else
157
+ throw new Error(t);
158
+ }, "parseError"),
159
+ // resets the lexer, sets new input
160
+ setInput: /* @__PURE__ */ a(function(t, n) {
161
+ 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 = {
162
+ first_line: 1,
163
+ first_column: 0,
164
+ last_line: 1,
165
+ last_column: 0
166
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
167
+ }, "setInput"),
168
+ // consumes and returns one char from the input
169
+ input: /* @__PURE__ */ a(function() {
170
+ var t = this._input[0];
171
+ this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
172
+ var n = t.match(/(?:\r\n?|\n).*/g);
173
+ 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;
174
+ }, "input"),
175
+ // unshifts one char (or a string) into the input
176
+ unput: /* @__PURE__ */ a(function(t) {
177
+ var n = t.length, r = t.split(/(?:\r\n?|\n)/g);
178
+ this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
179
+ var c = this.match.split(/(?:\r\n?|\n)/g);
180
+ 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);
181
+ var e = this.yylloc.range;
182
+ return this.yylloc = {
183
+ first_line: this.yylloc.first_line,
184
+ last_line: this.yylineno + 1,
185
+ first_column: this.yylloc.first_column,
186
+ 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
187
+ }, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
188
+ }, "unput"),
189
+ // When called from action, caches matched text and appends it on next action
190
+ more: /* @__PURE__ */ a(function() {
191
+ return this._more = !0, this;
192
+ }, "more"),
193
+ // 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.
194
+ reject: /* @__PURE__ */ a(function() {
195
+ if (this.options.backtrack_lexer)
196
+ this._backtrack = !0;
197
+ else
198
+ 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).
199
+ ` + this.showPosition(), {
200
+ text: "",
201
+ token: null,
202
+ line: this.yylineno
203
+ });
204
+ return this;
205
+ }, "reject"),
206
+ // retain first n characters of the match
207
+ less: /* @__PURE__ */ a(function(t) {
208
+ this.unput(this.match.slice(t));
209
+ }, "less"),
210
+ // displays already matched input, i.e. for error messages
211
+ pastInput: /* @__PURE__ */ a(function() {
212
+ var t = this.matched.substr(0, this.matched.length - this.match.length);
213
+ return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
214
+ }, "pastInput"),
215
+ // displays upcoming input, i.e. for error messages
216
+ upcomingInput: /* @__PURE__ */ a(function() {
217
+ var t = this.match;
218
+ return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
219
+ }, "upcomingInput"),
220
+ // displays the character position where the lexing error occurred, i.e. for error messages
221
+ showPosition: /* @__PURE__ */ a(function() {
222
+ var t = this.pastInput(), n = new Array(t.length + 1).join("-");
223
+ return t + this.upcomingInput() + `
224
+ ` + n + "^";
225
+ }, "showPosition"),
226
+ // test the lexed token: return FALSE when not a match, otherwise return token
227
+ test_match: /* @__PURE__ */ a(function(t, n) {
228
+ var r, c, e;
229
+ if (this.options.backtrack_lexer && (e = {
230
+ yylineno: this.yylineno,
231
+ yylloc: {
232
+ first_line: this.yylloc.first_line,
233
+ last_line: this.last_line,
234
+ first_column: this.yylloc.first_column,
235
+ last_column: this.yylloc.last_column
236
+ },
237
+ yytext: this.yytext,
238
+ match: this.match,
239
+ matches: this.matches,
240
+ matched: this.matched,
241
+ yyleng: this.yyleng,
242
+ offset: this.offset,
243
+ _more: this._more,
244
+ _input: this._input,
245
+ yy: this.yy,
246
+ conditionStack: this.conditionStack.slice(0),
247
+ done: this.done
248
+ }, 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 = {
249
+ first_line: this.yylloc.last_line,
250
+ last_line: this.yylineno + 1,
251
+ first_column: this.yylloc.last_column,
252
+ last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
253
+ }, 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)
254
+ return r;
255
+ if (this._backtrack) {
256
+ for (var m in e)
257
+ this[m] = e[m];
258
+ return !1;
259
+ }
260
+ return !1;
261
+ }, "test_match"),
262
+ // return next match in input
263
+ next: /* @__PURE__ */ a(function() {
264
+ if (this.done)
265
+ return this.EOF;
266
+ this._input || (this.done = !0);
267
+ var t, n, r, c;
268
+ this._more || (this.yytext = "", this.match = "");
269
+ for (var e = this._currentRules(), m = 0; m < e.length; m++)
270
+ if (r = this._input.match(this.rules[e[m]]), r && (!n || r[0].length > n[0].length)) {
271
+ if (n = r, c = m, this.options.backtrack_lexer) {
272
+ if (t = this.test_match(r, e[m]), t !== !1)
273
+ return t;
274
+ if (this._backtrack) {
275
+ n = !1;
276
+ continue;
277
+ } else
278
+ return !1;
279
+ } else if (!this.options.flex)
280
+ break;
281
+ }
282
+ 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.
283
+ ` + this.showPosition(), {
284
+ text: "",
285
+ token: null,
286
+ line: this.yylineno
287
+ });
288
+ }, "next"),
289
+ // return next match that has a token
290
+ lex: /* @__PURE__ */ a(function() {
291
+ var t = this.next();
292
+ return t || this.lex();
293
+ }, "lex"),
294
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
295
+ begin: /* @__PURE__ */ a(function(t) {
296
+ this.conditionStack.push(t);
297
+ }, "begin"),
298
+ // pop the previously active lexer condition state off the condition stack
299
+ popState: /* @__PURE__ */ a(function() {
300
+ var t = this.conditionStack.length - 1;
301
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
302
+ }, "popState"),
303
+ // produce the lexer rule set which is active for the currently active lexer condition state
304
+ _currentRules: /* @__PURE__ */ a(function() {
305
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
306
+ }, "_currentRules"),
307
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
308
+ topState: /* @__PURE__ */ a(function(t) {
309
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
310
+ }, "topState"),
311
+ // alias for begin(condition)
312
+ pushState: /* @__PURE__ */ a(function(t) {
313
+ this.begin(t);
314
+ }, "pushState"),
315
+ // return the number of states currently on the stack
316
+ stateStackSize: /* @__PURE__ */ a(function() {
317
+ return this.conditionStack.length;
318
+ }, "stateStackSize"),
319
+ options: { "case-insensitive": !0 },
320
+ performAction: /* @__PURE__ */ a(function(t, n, r, c) {
321
+ switch (r) {
322
+ case 0:
323
+ return this.pushState("shapeData"), n.yytext = "", 24;
324
+ case 1:
325
+ return this.pushState("shapeDataStr"), 24;
326
+ case 2:
327
+ return this.popState(), 24;
328
+ case 3:
329
+ const e = /\n\s*/g;
330
+ return n.yytext = n.yytext.replace(e, "<br/>"), 24;
331
+ case 4:
332
+ return 24;
333
+ case 5:
334
+ this.popState();
335
+ break;
336
+ case 6:
337
+ return t.getLogger().trace("Found comment", n.yytext), 6;
338
+ case 7:
339
+ return 8;
340
+ case 8:
341
+ this.begin("CLASS");
342
+ break;
343
+ case 9:
344
+ return this.popState(), 17;
345
+ case 10:
346
+ this.popState();
347
+ break;
348
+ case 11:
349
+ t.getLogger().trace("Begin icon"), this.begin("ICON");
350
+ break;
351
+ case 12:
352
+ return t.getLogger().trace("SPACELINE"), 6;
353
+ case 13:
354
+ return 7;
355
+ case 14:
356
+ return 16;
357
+ case 15:
358
+ t.getLogger().trace("end icon"), this.popState();
359
+ break;
360
+ case 16:
361
+ return t.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
362
+ case 17:
363
+ return t.getLogger().trace("Cloud"), this.begin("NODE"), 20;
364
+ case 18:
365
+ return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
366
+ case 19:
367
+ return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
368
+ case 20:
369
+ return this.begin("NODE"), 20;
370
+ case 21:
371
+ return this.begin("NODE"), 20;
372
+ case 22:
373
+ return this.begin("NODE"), 20;
374
+ case 23:
375
+ return this.begin("NODE"), 20;
376
+ case 24:
377
+ return 13;
378
+ case 25:
379
+ return 23;
380
+ case 26:
381
+ return 11;
382
+ case 27:
383
+ this.begin("NSTR2");
384
+ break;
385
+ case 28:
386
+ return "NODE_DESCR";
387
+ case 29:
388
+ this.popState();
389
+ break;
390
+ case 30:
391
+ t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
392
+ break;
393
+ case 31:
394
+ return t.getLogger().trace("description:", n.yytext), "NODE_DESCR";
395
+ case 32:
396
+ this.popState();
397
+ break;
398
+ case 33:
399
+ return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
400
+ case 34:
401
+ return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
402
+ case 35:
403
+ return this.popState(), t.getLogger().trace("node end ...", n.yytext), "NODE_DEND";
404
+ case 36:
405
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
406
+ case 37:
407
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
408
+ case 38:
409
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
410
+ case 39:
411
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
412
+ case 40:
413
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
414
+ case 41:
415
+ return t.getLogger().trace("Long description:", n.yytext), 21;
416
+ case 42:
417
+ return t.getLogger().trace("Long description:", n.yytext), 21;
418
+ }
419
+ }, "anonymous"),
420
+ 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],
421
+ 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 } }
422
+ };
423
+ return k;
424
+ }();
425
+ y.lexer = R;
426
+ function O() {
427
+ this.yy = {};
428
+ }
429
+ return a(O, "Parser"), O.prototype = y, y.Parser = O, new O();
430
+ }();
431
+ Y.parser = Y;
432
+ var kt = Y, L = [], et = [], Z = 0, it = {}, Nt = /* @__PURE__ */ a(() => {
433
+ L = [], et = [], Z = 0, it = {};
434
+ }, "clear"), Dt = /* @__PURE__ */ a((i) => {
435
+ if (L.length === 0)
436
+ return null;
437
+ const u = L[0].level;
438
+ let d = null;
439
+ for (let s = L.length - 1; s >= 0; s--)
440
+ if (L[s].level === u && !d && (d = L[s]), L[s].level < u)
441
+ throw new Error('Items without section detected, found section ("' + L[s].label + '")');
442
+ return i === (d == null ? void 0 : d.level) ? null : d;
443
+ }, "getSection"), ct = /* @__PURE__ */ a(function() {
444
+ return et;
445
+ }, "getSections"), xt = /* @__PURE__ */ a(function() {
446
+ const i = [], u = [], d = ct(), s = G();
447
+ for (const g of d) {
448
+ const D = {
449
+ id: g.id,
450
+ label: F(g.label ?? "", s),
451
+ isGroup: !0,
452
+ ticket: g.ticket,
453
+ shape: "kanbanSection",
454
+ level: g.level,
455
+ look: s.look
456
+ };
457
+ u.push(D);
458
+ const S = L.filter((h) => h.parentId === g.id);
459
+ for (const h of S) {
460
+ const v = {
461
+ id: h.id,
462
+ parentId: g.id,
463
+ label: F(h.label ?? "", s),
464
+ isGroup: !1,
465
+ ticket: h == null ? void 0 : h.ticket,
466
+ priority: h == null ? void 0 : h.priority,
467
+ assigned: h == null ? void 0 : h.assigned,
468
+ icon: h == null ? void 0 : h.icon,
469
+ shape: "kanbanItem",
470
+ level: h.level,
471
+ rx: 5,
472
+ ry: 5,
473
+ cssStyles: ["text-align: left"]
474
+ };
475
+ u.push(v);
476
+ }
477
+ }
478
+ return { nodes: u, edges: i, other: {}, config: G() };
479
+ }, "getData"), Lt = /* @__PURE__ */ a((i, u, d, s, g) => {
480
+ var D, S;
481
+ const h = G();
482
+ let v = ((D = h.mindmap) == null ? void 0 : D.padding) ?? K.mindmap.padding;
483
+ switch (s) {
484
+ case p.ROUNDED_RECT:
485
+ case p.RECT:
486
+ case p.HEXAGON:
487
+ v *= 2;
488
+ }
489
+ const b = {
490
+ id: F(u, h) || "kbn" + Z++,
491
+ level: i,
492
+ label: F(d, h),
493
+ width: ((S = h.mindmap) == null ? void 0 : S.maxNodeWidth) ?? K.mindmap.maxNodeWidth,
494
+ padding: v,
495
+ isGroup: !1
496
+ };
497
+ if (g !== void 0) {
498
+ let C;
499
+ g.includes(`
500
+ `) ? C = g + `
501
+ ` : C = `{
502
+ ` + g + `
503
+ }`;
504
+ const o = _t(C, { schema: Et });
505
+ if (o.shape && (o.shape !== o.shape.toLowerCase() || o.shape.includes("_")))
506
+ throw new Error(`No such shape: ${o.shape}. Shape names should be lowercase.`);
507
+ 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), o != null && o.assigned && (b.assigned = o == null ? void 0 : o.assigned), o != null && o.ticket && (b.ticket = o == null ? void 0 : o.ticket), o != null && o.priority && (b.priority = o == null ? void 0 : o.priority);
508
+ }
509
+ const _ = Dt(i);
510
+ _ ? b.parentId = _.id || "kbn" + Z++ : et.push(b), L.push(b);
511
+ }, "addNode"), p = {
512
+ DEFAULT: 0,
513
+ NO_BORDER: 0,
514
+ ROUNDED_RECT: 1,
515
+ RECT: 2,
516
+ CIRCLE: 3,
517
+ CLOUD: 4,
518
+ BANG: 5,
519
+ HEXAGON: 6
520
+ }, vt = /* @__PURE__ */ a((i, u) => {
521
+ switch (tt.debug("In get type", i, u), i) {
522
+ case "[":
523
+ return p.RECT;
524
+ case "(":
525
+ return u === ")" ? p.ROUNDED_RECT : p.CLOUD;
526
+ case "((":
527
+ return p.CIRCLE;
528
+ case ")":
529
+ return p.CLOUD;
530
+ case "))":
531
+ return p.BANG;
532
+ case "{{":
533
+ return p.HEXAGON;
534
+ default:
535
+ return p.DEFAULT;
536
+ }
537
+ }, "getType"), Ot = /* @__PURE__ */ a((i, u) => {
538
+ it[i] = u;
539
+ }, "setElementForId"), Ct = /* @__PURE__ */ a((i) => {
540
+ if (!i)
541
+ return;
542
+ const u = G(), d = L[L.length - 1];
543
+ i.icon && (d.icon = F(i.icon, u)), i.class && (d.cssClasses = F(i.class, u));
544
+ }, "decorateNode"), wt = /* @__PURE__ */ a((i) => {
545
+ switch (i) {
546
+ case p.DEFAULT:
547
+ return "no-border";
548
+ case p.RECT:
549
+ return "rect";
550
+ case p.ROUNDED_RECT:
551
+ return "rounded-rect";
552
+ case p.CIRCLE:
553
+ return "circle";
554
+ case p.CLOUD:
555
+ return "cloud";
556
+ case p.BANG:
557
+ return "bang";
558
+ case p.HEXAGON:
559
+ return "hexgon";
560
+ default:
561
+ return "no-border";
562
+ }
563
+ }, "type2Str"), At = /* @__PURE__ */ a(() => tt, "getLogger"), It = /* @__PURE__ */ a((i) => it[i], "getElementById"), Tt = {
564
+ clear: Nt,
565
+ addNode: Lt,
566
+ getSections: ct,
567
+ getData: xt,
568
+ nodeType: p,
569
+ getType: vt,
570
+ setElementForId: Ot,
571
+ decorateNode: Ct,
572
+ type2Str: wt,
573
+ getLogger: At,
574
+ getElementById: It
575
+ }, $t = Tt, Rt = /* @__PURE__ */ a(async (i, u, d, s) => {
576
+ var g, D, S, h, v;
577
+ tt.debug(`Rendering kanban diagram
578
+ ` + i);
579
+ const b = s.db.getData(), _ = G();
580
+ _.htmlLabels = !1;
581
+ const C = pt(u), o = C.append("g");
582
+ o.attr("class", "sections");
583
+ const j = C.append("g");
584
+ j.attr("class", "items");
585
+ const w = b.nodes.filter(
586
+ // TODO: TypeScript 5.5 will infer this predicate automatically
587
+ (y) => y.isGroup
588
+ );
589
+ let T = 0;
590
+ const $ = 10, H = [];
591
+ let A = 25;
592
+ for (const y of w) {
593
+ const R = ((g = _ == null ? void 0 : _.kanban) == null ? void 0 : g.sectionWidth) || 200;
594
+ 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;
595
+ const O = await yt(o, y);
596
+ A = Math.max(A, (D = O == null ? void 0 : O.labelBBox) == null ? void 0 : D.height), H.push(O);
597
+ }
598
+ let M = 0;
599
+ for (const y of w) {
600
+ const R = H[M];
601
+ M = M + 1;
602
+ const O = ((S = _ == null ? void 0 : _.kanban) == null ? void 0 : S.sectionWidth) || 200, k = -O * 3 / 2 + A;
603
+ let t = k;
604
+ const n = b.nodes.filter((e) => e.parentId === y.id);
605
+ for (const e of n) {
606
+ if (e.isGroup)
607
+ throw new Error("Groups within groups are not allowed in Kanban diagrams");
608
+ e.x = y.x, e.width = O - 1.5 * $;
609
+ const m = (await ft(j, e, { config: _ })).node().getBBox();
610
+ e.y = t + m.height / 2, await mt(e), t = e.y + m.height / 2 + $ / 2;
611
+ }
612
+ const r = R.cluster.select("rect"), c = Math.max(t - k + 3 * $, 50) + (A - 25);
613
+ r.attr("height", c);
614
+ }
615
+ bt(
616
+ void 0,
617
+ C,
618
+ ((h = _.mindmap) == null ? void 0 : h.padding) ?? K.kanban.padding,
619
+ ((v = _.mindmap) == null ? void 0 : v.useMaxWidth) ?? K.kanban.useMaxWidth
620
+ );
621
+ }, "draw"), Pt = {
622
+ draw: Rt
623
+ }, Bt = /* @__PURE__ */ a((i) => {
624
+ let u = "";
625
+ for (let s = 0; s < i.THEME_COLOR_LIMIT; s++)
626
+ 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);
627
+ const d = /* @__PURE__ */ a((s, g) => i.darkMode ? lt(s, g) : at(s, g), "adjuster");
628
+ for (let s = 0; s < i.THEME_COLOR_LIMIT; s++) {
629
+ const g = "" + (17 - 3 * s);
630
+ u += `
631
+ .section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
632
+ fill: ${d(i["cScale" + s], 10)};
633
+ stroke: ${d(i["cScale" + s], 10)};
634
+
635
+ }
636
+ .section-${s - 1} text {
637
+ fill: ${i["cScaleLabel" + s]};
638
+ }
639
+ .node-icon-${s - 1} {
640
+ font-size: 40px;
641
+ color: ${i["cScaleLabel" + s]};
642
+ }
643
+ .section-edge-${s - 1}{
644
+ stroke: ${i["cScale" + s]};
645
+ }
646
+ .edge-depth-${s - 1}{
647
+ stroke-width: ${g};
648
+ }
649
+ .section-${s - 1} line {
650
+ stroke: ${i["cScaleInv" + s]} ;
651
+ stroke-width: 3;
652
+ }
653
+
654
+ .disabled, .disabled circle, .disabled text {
655
+ fill: lightgray;
656
+ }
657
+ .disabled text {
658
+ fill: #efefef;
659
+ }
660
+
661
+ .node rect,
662
+ .node circle,
663
+ .node ellipse,
664
+ .node polygon,
665
+ .node path {
666
+ fill: ${i.background};
667
+ stroke: ${i.nodeBorder};
668
+ stroke-width: 1px;
669
+ }
670
+
671
+ .kanban-ticket-link {
672
+ fill: ${i.background};
673
+ stroke: ${i.nodeBorder};
674
+ text-decoration: underline;
675
+ }
676
+ `;
677
+ }
678
+ return u;
679
+ }, "genSections"), Mt = /* @__PURE__ */ a((i) => `
680
+ .edge {
681
+ stroke-width: 3;
682
+ }
683
+ ${Bt(i)}
684
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
685
+ fill: ${i.git0};
686
+ }
687
+ .section-root text {
688
+ fill: ${i.gitBranchLabel0};
689
+ }
690
+ .icon-container {
691
+ height:100%;
692
+ display: flex;
693
+ justify-content: center;
694
+ align-items: center;
695
+ }
696
+ .edge {
697
+ fill: none;
698
+ }
699
+ .cluster-label, .label {
700
+ color: ${i.textColor};
701
+ fill: ${i.textColor};
702
+ }
703
+ .kanban-label {
704
+ dy: 1em;
705
+ alignment-baseline: middle;
706
+ text-anchor: middle;
707
+ dominant-baseline: middle;
708
+ text-align: center;
709
+ }
710
+ `, "getStyles"), Ut = Mt, jt = {
711
+ db: $t,
712
+ renderer: Pt,
713
+ parser: kt,
714
+ styles: Ut
715
+ };
716
+ export {
717
+ jt as diagram
718
+ };