@foris/ai-agent 0.3.0 → 0.4.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 (57) hide show
  1. package/dist/ai-agent.es.js +3 -3
  2. package/dist/ai-agent.umd.js +619 -609
  3. package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +15 -0
  4. package/dist/ai-prompt-code-editor/index.d.ts +1 -0
  5. package/dist/ai-prompt-code-editor/promptCodeEditor.mock.d.ts +5 -0
  6. package/dist/arc-CYayZuAl.js +85 -0
  7. package/dist/{architectureDiagram-VXUJARFQ-CuFlEJrK.js → architectureDiagram-VXUJARFQ-CqFKxLlH.js} +3 -3
  8. package/dist/{blockDiagram-VD42YOAC-Ceho4Zhj.js → blockDiagram-VD42YOAC-DEi-xIcu.js} +46 -46
  9. package/dist/{c4Diagram-YG6GDRKO-zPB3iQJ7.js → c4Diagram-YG6GDRKO-mFZhX_-U.js} +3 -3
  10. package/dist/channel-CbDO3juL.js +5 -0
  11. package/dist/{chunk-4BX2VUAB-BZlHuf6l.js → chunk-4BX2VUAB-D5qkn5BA.js} +1 -1
  12. package/dist/{chunk-55IACEB6-Dr8rgvy_.js → chunk-55IACEB6-CR8xZK7z.js} +1 -1
  13. package/dist/{chunk-B4BG7PRW-Ccllo2e-.js → chunk-B4BG7PRW-Cm3F2ypm.js} +11 -11
  14. package/dist/{chunk-DI55MBZ5-DvAROTIr.js → chunk-DI55MBZ5-CxISwEU9.js} +44 -44
  15. package/dist/{chunk-FMBD7UC4-CVr83prI.js → chunk-FMBD7UC4-DZxSUJCY.js} +1 -1
  16. package/dist/{chunk-QN33PNHL-nSyFq8_s.js → chunk-QN33PNHL-5NUdQ31M.js} +1 -1
  17. package/dist/{chunk-QZHKN3VN-Dg8JYP6e.js → chunk-QZHKN3VN-CSeHgX9s.js} +1 -1
  18. package/dist/{chunk-TZMSLE5B-Bmj6LGNW.js → chunk-TZMSLE5B-DfqMo2XK.js} +1 -1
  19. package/dist/{classDiagram-2ON5EDUG-DAkxtl6o.js → classDiagram-2ON5EDUG-6wC7c07U.js} +6 -6
  20. package/dist/{classDiagram-v2-WZHVMYZB-DAkxtl6o.js → classDiagram-v2-WZHVMYZB-6wC7c07U.js} +6 -6
  21. package/dist/code-block-QI2IAROF-zqFu2qJj.js +2812 -0
  22. package/dist/{cose-bilkent-S5V4N54A-DwRYWoaW.js → cose-bilkent-S5V4N54A-BzL4MMWZ.js} +2 -2
  23. package/dist/{dagre-6UL2VRFP-imN1Fyg8.js → dagre-6UL2VRFP-CwTDE2RX.js} +3 -3
  24. package/dist/{diagram-PSM6KHXK-DAIDeBLn.js → diagram-PSM6KHXK-UeQhynP7.js} +47 -47
  25. package/dist/{diagram-QEK2KX5R-DQFy-qK9.js → diagram-QEK2KX5R-DZy1cp9G.js} +13 -13
  26. package/dist/{diagram-S2PKOQOG-Hlk0Nx_Y.js → diagram-S2PKOQOG-DyT7Ss8-.js} +16 -16
  27. package/dist/{erDiagram-Q2GNP2WA-C8PZPSaf.js → erDiagram-Q2GNP2WA-CpzaErVm.js} +5 -5
  28. package/dist/{flowDiagram-NV44I4VS-CgTiIFnt.js → flowDiagram-NV44I4VS-BHP6h-eN.js} +6 -6
  29. package/dist/{ganttDiagram-JELNMOA3-DzYZEAE_.js → ganttDiagram-JELNMOA3-0qqei9Bz.js} +3 -3
  30. package/dist/{gitGraphDiagram-NY62KEGX-CPwI-Uag.js → gitGraphDiagram-NY62KEGX-DGukWnfa.js} +16 -16
  31. package/dist/hooks/useCodeTransform.d.ts +13 -0
  32. package/dist/{index-C2DJ8qoy.js → index-Zd10d_CE.js} +18512 -11461
  33. package/dist/index.d.ts +2 -2
  34. package/dist/{infoDiagram-WHAUD3N6-CcN7ZNYI.js → infoDiagram-WHAUD3N6-CRWuQBon.js} +2 -2
  35. package/dist/{journeyDiagram-XKPGCS4Q-BACao6jz.js → journeyDiagram-XKPGCS4Q-Bl-asDPd.js} +5 -5
  36. package/dist/{kanban-definition-3W4ZIXB7-Jb7Xwf92.js → kanban-definition-3W4ZIXB7-IdguZzXg.js} +39 -39
  37. package/dist/{linear-CxGB80S5.js → linear-CRqCHTKs.js} +1 -1
  38. package/dist/{mermaid-NA5CF7SZ-DekDSZe_.js → mermaid-NA5CF7SZ-CkTMfgBy.js} +1 -1
  39. package/dist/{mermaid.core-xMGW442o.js → mermaid.core-DyFxH-Px.js} +87 -87
  40. package/dist/{mindmap-definition-VGOIOE7T-UHZgRHb7.js → mindmap-definition-VGOIOE7T-C8jP5oWr.js} +69 -69
  41. package/dist/{pieDiagram-ADFJNKIX-CHrTFTbw.js → pieDiagram-ADFJNKIX-DuP0zFKX.js} +23 -23
  42. package/dist/{quadrantDiagram-AYHSOK5B-CDfhMB18.js → quadrantDiagram-AYHSOK5B-ACKBMWQA.js} +3 -3
  43. package/dist/{requirementDiagram-UZGBJVZJ-C0aeVQh6.js → requirementDiagram-UZGBJVZJ-DAH6cyPg.js} +4 -4
  44. package/dist/{sankeyDiagram-TZEHDZUN-kjxRgXd2.js → sankeyDiagram-TZEHDZUN-DpLK8yNI.js} +2 -2
  45. package/dist/{sequenceDiagram-WL72ISMW-Bs0jyVuH.js → sequenceDiagram-WL72ISMW-CslcsjON.js} +4 -4
  46. package/dist/{stateDiagram-FKZM4ZOC-CAWwlh9R.js → stateDiagram-FKZM4ZOC-oVuJ6JZY.js} +12 -12
  47. package/dist/{stateDiagram-v2-4FDKWEC3-9TYlTzc3.js → stateDiagram-v2-4FDKWEC3-Dw3L9jZX.js} +5 -5
  48. package/dist/style.css +1 -1
  49. package/dist/tailwind.css +52 -0
  50. package/dist/{timeline-definition-IT6M3QCI-DrPozOxH.js → timeline-definition-IT6M3QCI-D_aGDXh0.js} +47 -47
  51. package/dist/{xychartDiagram-PRI3JC2R-BkO8dJff.js → xychartDiagram-PRI3JC2R-u3osfT09.js} +35 -35
  52. package/package.json +2 -1
  53. package/dist/ai-input-action/InputAction.d.ts +0 -8
  54. package/dist/ai-input-action/index.d.ts +0 -1
  55. package/dist/arc-DN1xn8kz.js +0 -85
  56. package/dist/channel-BC4mWQQF.js +0 -5
  57. package/dist/code-block-QI2IAROF-DN-BnDmt.js +0 -9263
@@ -1,7 +1,7 @@
1
- import { g as le } from "./chunk-55IACEB6-Dr8rgvy_.js";
2
- import { s as he } from "./chunk-QN33PNHL-nSyFq8_s.js";
3
- import { _ as l, l as I, d as X, C as j, i as F, aw as de, y as ge, z as ue, X as pe, Y as fe, $ as ye } from "./mermaid.core-xMGW442o.js";
4
- import "./index-C2DJ8qoy.js";
1
+ import { g as le } from "./chunk-55IACEB6-CR8xZK7z.js";
2
+ import { s as he } from "./chunk-QN33PNHL-5NUdQ31M.js";
3
+ import { _ as l, l as C, d as X, E as j, i as F, aw as de, z as ge, A as ue, ae as pe, af as fe, ag as ye } from "./mermaid.core-DyFxH-Px.js";
4
+ import "./index-Zd10d_CE.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  const E = [];
@@ -32,8 +32,8 @@ function Se(t, e, n) {
32
32
  return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
33
33
  }
34
34
  var q = function() {
35
- var t = /* @__PURE__ */ l(function(v, s, i, o) {
36
- for (i = i || {}, o = v.length; o--; i[v[o]] = s)
35
+ var t = /* @__PURE__ */ l(function(v, s, i, a) {
36
+ for (i = i || {}, a = v.length; a--; i[v[a]] = s)
37
37
  ;
38
38
  return i;
39
39
  }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], R = [1, 25], D = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], w = [1, 6, 7, 11, 13, 15, 16, 19, 22], G = {
@@ -43,51 +43,51 @@ var q = function() {
43
43
  symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
44
44
  terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
45
45
  productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
46
- performAction: /* @__PURE__ */ l(function(s, i, o, a, g, r, A) {
46
+ performAction: /* @__PURE__ */ l(function(s, i, a, o, g, r, A) {
47
47
  var d = r.length - 1;
48
48
  switch (g) {
49
49
  case 6:
50
50
  case 7:
51
- return a;
51
+ return o;
52
52
  case 8:
53
- a.getLogger().trace("Stop NL ");
53
+ o.getLogger().trace("Stop NL ");
54
54
  break;
55
55
  case 9:
56
- a.getLogger().trace("Stop EOF ");
56
+ o.getLogger().trace("Stop EOF ");
57
57
  break;
58
58
  case 11:
59
- a.getLogger().trace("Stop NL2 ");
59
+ o.getLogger().trace("Stop NL2 ");
60
60
  break;
61
61
  case 12:
62
- a.getLogger().trace("Stop EOF2 ");
62
+ o.getLogger().trace("Stop EOF2 ");
63
63
  break;
64
64
  case 15:
65
- a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
65
+ o.getLogger().info("Node: ", r[d].id), o.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
66
66
  break;
67
67
  case 16:
68
- a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
68
+ o.getLogger().trace("Icon: ", r[d]), o.decorateNode({ icon: r[d] });
69
69
  break;
70
70
  case 17:
71
71
  case 21:
72
- a.decorateNode({ class: r[d] });
72
+ o.decorateNode({ class: r[d] });
73
73
  break;
74
74
  case 18:
75
- a.getLogger().trace("SPACELIST");
75
+ o.getLogger().trace("SPACELIST");
76
76
  break;
77
77
  case 19:
78
- a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
78
+ o.getLogger().trace("Node: ", r[d].id), o.addNode(0, r[d].id, r[d].descr, r[d].type);
79
79
  break;
80
80
  case 20:
81
- a.decorateNode({ icon: r[d] });
81
+ o.decorateNode({ icon: r[d] });
82
82
  break;
83
83
  case 25:
84
- a.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
84
+ o.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
85
85
  break;
86
86
  case 26:
87
- this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
87
+ this.$ = { id: r[d], descr: r[d], type: o.nodeType.DEFAULT };
88
88
  break;
89
89
  case 27:
90
- a.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
90
+ o.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
91
91
  break;
92
92
  }
93
93
  }, "anonymous"),
@@ -97,30 +97,30 @@ var q = function() {
97
97
  if (i.recoverable)
98
98
  this.trace(s);
99
99
  else {
100
- var o = new Error(s);
101
- throw o.hash = i, o;
100
+ var a = new Error(s);
101
+ throw a.hash = i, a;
102
102
  }
103
103
  }, "parseError"),
104
104
  parse: /* @__PURE__ */ l(function(s) {
105
- var i = this, o = [0], a = [], g = [null], r = [], A = this.table, d = "", M = 0, Z = 0, re = 2, ee = 1, oe = r.slice.call(arguments, 1), f = Object.create(this.lexer), T = { yy: {} };
106
- for (var $ in this.yy)
107
- Object.prototype.hasOwnProperty.call(this.yy, $) && (T.yy[$] = this.yy[$]);
105
+ var i = this, a = [0], o = [], g = [null], r = [], A = this.table, d = "", M = 0, Z = 0, re = 2, ee = 1, ae = r.slice.call(arguments, 1), f = Object.create(this.lexer), T = { yy: {} };
106
+ for (var H in this.yy)
107
+ Object.prototype.hasOwnProperty.call(this.yy, H) && (T.yy[H] = this.yy[H]);
108
108
  f.setInput(s, T.yy), T.yy.lexer = f, T.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
109
- var H = f.yylloc;
110
- r.push(H);
111
- var ae = f.options && f.options.ranges;
109
+ var $ = f.yylloc;
110
+ r.push($);
111
+ var oe = f.options && f.options.ranges;
112
112
  typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
113
113
  function ce(N) {
114
- o.length = o.length - 2 * N, g.length = g.length - N, r.length = r.length - N;
114
+ a.length = a.length - 2 * N, g.length = g.length - N, r.length = r.length - N;
115
115
  }
116
116
  l(ce, "popStack");
117
117
  function te() {
118
118
  var N;
119
- return N = a.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (a = N, N = a.pop()), N = i.symbols_[N] || N), N;
119
+ return N = o.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = i.symbols_[N] || N), N;
120
120
  }
121
121
  l(te, "lex");
122
- for (var S, O, k, z, C = {}, V, L, ie, B; ; ) {
123
- if (O = o[o.length - 1], this.defaultActions[O] ? k = this.defaultActions[O] : ((S === null || typeof S > "u") && (S = te()), k = A[O] && A[O][S]), typeof k > "u" || !k.length || !k[0]) {
122
+ for (var S, O, k, z, I = {}, V, L, ie, B; ; ) {
123
+ if (O = a[a.length - 1], this.defaultActions[O] ? k = this.defaultActions[O] : ((S === null || typeof S > "u") && (S = te()), k = A[O] && A[O][S]), typeof k > "u" || !k.length || !k[0]) {
124
124
  var W = "";
125
125
  B = [];
126
126
  for (V in A[O])
@@ -131,7 +131,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
131
131
  text: f.match,
132
132
  token: this.terminals_[S] || S,
133
133
  line: f.yylineno,
134
- loc: H,
134
+ loc: $,
135
135
  expected: B
136
136
  });
137
137
  }
@@ -139,18 +139,18 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
139
139
  throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + S);
140
140
  switch (k[0]) {
141
141
  case 1:
142
- o.push(S), g.push(f.yytext), r.push(f.yylloc), o.push(k[1]), S = null, Z = f.yyleng, d = f.yytext, M = f.yylineno, H = f.yylloc;
142
+ a.push(S), g.push(f.yytext), r.push(f.yylloc), a.push(k[1]), S = null, Z = f.yyleng, d = f.yytext, M = f.yylineno, $ = f.yylloc;
143
143
  break;
144
144
  case 2:
145
- if (L = this.productions_[k[1]][1], C.$ = g[g.length - L], C._$ = {
145
+ if (L = this.productions_[k[1]][1], I.$ = g[g.length - L], I._$ = {
146
146
  first_line: r[r.length - (L || 1)].first_line,
147
147
  last_line: r[r.length - 1].last_line,
148
148
  first_column: r[r.length - (L || 1)].first_column,
149
149
  last_column: r[r.length - 1].last_column
150
- }, ae && (C._$.range = [
150
+ }, oe && (I._$.range = [
151
151
  r[r.length - (L || 1)].range[0],
152
152
  r[r.length - 1].range[1]
153
- ]), z = this.performAction.apply(C, [
153
+ ]), z = this.performAction.apply(I, [
154
154
  d,
155
155
  Z,
156
156
  M,
@@ -158,9 +158,9 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
158
158
  k[1],
159
159
  g,
160
160
  r
161
- ].concat(oe)), typeof z < "u")
161
+ ].concat(ae)), typeof z < "u")
162
162
  return z;
163
- L && (o = o.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), r = r.slice(0, -1 * L)), o.push(this.productions_[k[1]][0]), g.push(C.$), r.push(C._$), ie = A[o[o.length - 2]][o[o.length - 1]], o.push(ie);
163
+ L && (a = a.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), r = r.slice(0, -1 * L)), a.push(this.productions_[k[1]][0]), g.push(I.$), r.push(I._$), ie = A[a[a.length - 2]][a[a.length - 1]], a.push(ie);
164
164
  break;
165
165
  case 3:
166
166
  return !0;
@@ -171,9 +171,9 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
171
171
  }, se = /* @__PURE__ */ function() {
172
172
  var v = {
173
173
  EOF: 1,
174
- parseError: /* @__PURE__ */ l(function(i, o) {
174
+ parseError: /* @__PURE__ */ l(function(i, a) {
175
175
  if (this.yy.parser)
176
- this.yy.parser.parseError(i, o);
176
+ this.yy.parser.parseError(i, a);
177
177
  else
178
178
  throw new Error(i);
179
179
  }, "parseError"),
@@ -195,16 +195,16 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
195
195
  }, "input"),
196
196
  // unshifts one char (or a string) into the input
197
197
  unput: /* @__PURE__ */ l(function(s) {
198
- var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
198
+ var i = s.length, a = s.split(/(?:\r\n?|\n)/g);
199
199
  this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
200
- var a = this.match.split(/(?:\r\n?|\n)/g);
201
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
200
+ var o = this.match.split(/(?:\r\n?|\n)/g);
201
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
202
202
  var g = this.yylloc.range;
203
203
  return this.yylloc = {
204
204
  first_line: this.yylloc.first_line,
205
205
  last_line: this.yylineno + 1,
206
206
  first_column: this.yylloc.first_column,
207
- last_column: o ? (o.length === a.length ? this.yylloc.first_column : 0) + a[a.length - o.length].length - o[0].length : this.yylloc.first_column - i
207
+ last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - i
208
208
  }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
209
209
  }, "unput"),
210
210
  // When called from action, caches matched text and appends it on next action
@@ -246,7 +246,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
246
246
  }, "showPosition"),
247
247
  // test the lexed token: return FALSE when not a match, otherwise return token
248
248
  test_match: /* @__PURE__ */ l(function(s, i) {
249
- var o, a, g;
249
+ var a, o, g;
250
250
  if (this.options.backtrack_lexer && (g = {
251
251
  yylineno: this.yylineno,
252
252
  yylloc: {
@@ -266,13 +266,13 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
266
266
  yy: this.yy,
267
267
  conditionStack: this.conditionStack.slice(0),
268
268
  done: this.done
269
- }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
269
+ }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
270
270
  first_line: this.yylloc.last_line,
271
271
  last_line: this.yylineno + 1,
272
272
  first_column: this.yylloc.last_column,
273
- last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
274
- }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
275
- return o;
273
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
274
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
275
+ return a;
276
276
  if (this._backtrack) {
277
277
  for (var r in g)
278
278
  this[r] = g[r];
@@ -285,12 +285,12 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
285
285
  if (this.done)
286
286
  return this.EOF;
287
287
  this._input || (this.done = !0);
288
- var s, i, o, a;
288
+ var s, i, a, o;
289
289
  this._more || (this.yytext = "", this.match = "");
290
290
  for (var g = this._currentRules(), r = 0; r < g.length; r++)
291
- if (o = this._input.match(this.rules[g[r]]), o && (!i || o[0].length > i[0].length)) {
292
- if (i = o, a = r, this.options.backtrack_lexer) {
293
- if (s = this.test_match(o, g[r]), s !== !1)
291
+ if (a = this._input.match(this.rules[g[r]]), a && (!i || a[0].length > i[0].length)) {
292
+ if (i = a, o = r, this.options.backtrack_lexer) {
293
+ if (s = this.test_match(a, g[r]), s !== !1)
294
294
  return s;
295
295
  if (this._backtrack) {
296
296
  i = !1;
@@ -300,7 +300,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
300
300
  } else if (!this.options.flex)
301
301
  break;
302
302
  }
303
- return i ? (s = this.test_match(i, g[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
303
+ return i ? (s = this.test_match(i, g[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
304
304
  ` + this.showPosition(), {
305
305
  text: "",
306
306
  token: null,
@@ -338,10 +338,10 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
338
338
  return this.conditionStack.length;
339
339
  }, "stateStackSize"),
340
340
  options: { "case-insensitive": !0 },
341
- performAction: /* @__PURE__ */ l(function(i, o, a, g) {
342
- switch (a) {
341
+ performAction: /* @__PURE__ */ l(function(i, a, o, g) {
342
+ switch (o) {
343
343
  case 0:
344
- return i.getLogger().trace("Found comment", o.yytext), 6;
344
+ return i.getLogger().trace("Found comment", a.yytext), 6;
345
345
  case 1:
346
346
  return 8;
347
347
  case 2:
@@ -398,7 +398,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
398
398
  i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
399
399
  break;
400
400
  case 25:
401
- return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
401
+ return i.getLogger().trace("description:", a.yytext), "NODE_DESCR";
402
402
  case 26:
403
403
  this.popState();
404
404
  break;
@@ -407,7 +407,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
407
407
  case 28:
408
408
  return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
409
409
  case 29:
410
- return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
410
+ return this.popState(), i.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
411
411
  case 30:
412
412
  return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
413
413
  case 31:
@@ -419,9 +419,9 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
419
419
  case 34:
420
420
  return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
421
421
  case 35:
422
- return i.getLogger().trace("Long description:", o.yytext), 20;
422
+ return i.getLogger().trace("Long description:", a.yytext), 20;
423
423
  case 36:
424
- return i.getLogger().trace("Long description:", o.yytext), 20;
424
+ return i.getLogger().trace("Long description:", a.yytext), 20;
425
425
  }
426
426
  }, "anonymous"),
427
427
  rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
@@ -463,7 +463,7 @@ var De = q, x = {
463
463
  }
464
464
  addNode(e, n, c, u) {
465
465
  var m, R;
466
- I.info("addNode", e, n, c, u);
466
+ C.info("addNode", e, n, c, u);
467
467
  let h = !1;
468
468
  this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
469
469
  const p = X();
@@ -496,7 +496,7 @@ var De = q, x = {
496
496
  );
497
497
  }
498
498
  getType(e, n) {
499
- switch (I.debug("In get type", e, n), e) {
499
+ switch (C.debug("In get type", e, n), e) {
500
500
  case "[":
501
501
  return this.nodeType.RECT;
502
502
  case "(":
@@ -651,9 +651,9 @@ var De = q, x = {
651
651
  edges: [],
652
652
  config: h
653
653
  };
654
- I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
654
+ C.debug("getData: mindmapRoot", e, n), this.assignSections(e);
655
655
  const p = [], y = [];
656
- this.flattenNodes(e, p), this.generateEdges(e, y), I.debug(
656
+ this.flattenNodes(e, p), this.generateEdges(e, y), C.debug(
657
657
  `getData: processed ${p.length} nodes and ${y.length} edges`
658
658
  );
659
659
  const _ = /* @__PURE__ */ new Map();
@@ -688,11 +688,11 @@ var De = q, x = {
688
688
  }
689
689
  // Expose logger to grammar
690
690
  getLogger() {
691
- return I;
691
+ return C;
692
692
  }
693
693
  }, l(U, "MindmapDB"), U), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
694
694
  var _, b;
695
- I.debug(`Rendering mindmap diagram
695
+ C.debug(`Rendering mindmap diagram
696
696
  ` + t);
697
697
  const u = c.db, h = u.getData(), p = le(e, h.config.securityLevel);
698
698
  h.type = c.type, h.layoutAlgorithm = ge(h.config.layout, {
@@ -1,9 +1,9 @@
1
- import { ab as S, a3 as z, av as H, C as Z, n as q, o as J, s as K, g as Q, c as X, b as Y, _ as g, l as F, t as ee, d as te, D as ae, H as re, P as ne, k as ie } from "./mermaid.core-xMGW442o.js";
2
- import { p as se } from "./chunk-4BX2VUAB-BZlHuf6l.js";
1
+ import { Y as S, P as F, av as K, E as Y, o as Z, p as q, s as H, g as J, c as Q, b as X, _ as g, l as z, v as ee, d as te, F as ae, K as re, a6 as ne, k as ie } from "./mermaid.core-DyFxH-Px.js";
2
+ import { p as se } from "./chunk-4BX2VUAB-D5qkn5BA.js";
3
3
  import { p as le } from "./treemap-KMMF4GRG-D_L55G0b.js";
4
- import { d as I } from "./arc-DN1xn8kz.js";
4
+ import { d as I } from "./arc-CYayZuAl.js";
5
5
  import { o as oe } from "./ordinal-MUacOSdK.js";
6
- import "./index-C2DJ8qoy.js";
6
+ import "./index-Zd10d_CE.js";
7
7
  import "react";
8
8
  import "react-dom";
9
9
  import "./init-DjUOC4st.js";
@@ -14,9 +14,9 @@ function ue(e) {
14
14
  return e;
15
15
  }
16
16
  function pe() {
17
- var e = ue, a = ce, f = null, x = S(0), s = S(z), o = S(0);
17
+ var e = ue, a = ce, f = null, x = S(0), s = S(F), o = S(0);
18
18
  function l(t) {
19
- var n, c = (t = H(t)).length, u, y, h = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(z, Math.max(-z, s.apply(this, arguments) - v)), m, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), d;
19
+ var n, c = (t = K(t)).length, u, y, h = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(F, Math.max(-F, s.apply(this, arguments) - v)), m, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), d;
20
20
  for (n = 0; n < c; ++n)
21
21
  (d = i[p[n] = n] = +e(t[n], n, t)) > 0 && (h += d);
22
22
  for (a != null ? p.sort(function(A, D) {
@@ -48,7 +48,7 @@ function pe() {
48
48
  return arguments.length ? (o = typeof t == "function" ? t : S(+t), l) : o;
49
49
  }, l;
50
50
  }
51
- var L = Z.pie, G = {
51
+ var L = Y.pie, G = {
52
52
  sections: /* @__PURE__ */ new Map(),
53
53
  showData: !1,
54
54
  config: L
@@ -59,18 +59,18 @@ var L = Z.pie, G = {
59
59
  throw new Error(
60
60
  `"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
61
61
  );
62
- T.has(e) || (T.set(e, a), F.debug(`added new section: ${e}, with value: ${a}`));
62
+ T.has(e) || (T.set(e, a), z.debug(`added new section: ${e}, with value: ${a}`));
63
63
  }, "addSection"), he = /* @__PURE__ */ g(() => T, "getSections"), ve = /* @__PURE__ */ g((e) => {
64
64
  N = e;
65
65
  }, "setShowData"), Se = /* @__PURE__ */ g(() => N, "getShowData"), _ = {
66
66
  getConfig: de,
67
67
  clear: fe,
68
- setDiagramTitle: q,
69
- getDiagramTitle: J,
70
- setAccTitle: K,
71
- getAccTitle: Q,
72
- setAccDescription: X,
73
- getAccDescription: Y,
68
+ setDiagramTitle: Z,
69
+ getDiagramTitle: q,
70
+ setAccTitle: H,
71
+ getAccTitle: J,
72
+ setAccDescription: Q,
73
+ getAccDescription: X,
74
74
  addSection: me,
75
75
  getSections: he,
76
76
  setShowData: ve,
@@ -80,7 +80,7 @@ var L = Z.pie, G = {
80
80
  }, "populateDb"), ye = {
81
81
  parse: /* @__PURE__ */ g(async (e) => {
82
82
  const a = await le("pie", e);
83
- F.debug(a), xe(a, _);
83
+ z.debug(a), xe(a, _);
84
84
  }, "parse")
85
85
  }, we = /* @__PURE__ */ g((e) => `
86
86
  .pieCircle{
@@ -114,7 +114,7 @@ var L = Z.pie, G = {
114
114
  const a = [...e.values()].reduce((s, o) => s + o, 0), f = [...e.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
115
115
  return pe().value((s) => s.value)(f);
116
116
  }, "createPieArcs"), Ce = /* @__PURE__ */ g((e, a, f, x) => {
117
- F.debug(`rendering pie chart
117
+ z.debug(`rendering pie chart
118
118
  ` + e);
119
119
  const s = x.db, o = te(), l = ae(s.getConfig(), o.pie), t = 40, n = 18, c = 4, u = 450, y = u, h = re(a), p = h.append("g");
120
120
  p.attr("transform", "translate(" + y / 2 + "," + u / 2 + ")");
@@ -137,22 +137,22 @@ var L = Z.pie, G = {
137
137
  i.pie11,
138
138
  i.pie12
139
139
  ];
140
- let b = 0;
140
+ let E = 0;
141
141
  d.forEach((r) => {
142
- b += r;
142
+ E += r;
143
143
  });
144
- const P = A.filter((r) => (r.data.value / b * 100).toFixed(0) !== "0"), k = oe(D);
145
- p.selectAll("mySlices").data(P).enter().append("path").attr("d", C).attr("fill", (r) => k(r.data.label)).attr("class", "pieCircle"), p.selectAll("mySlices").data(P).enter().append("text").text((r) => (r.data.value / b * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -(u - 50) / 2).attr("class", "pieTitleText");
144
+ const P = A.filter((r) => (r.data.value / E * 100).toFixed(0) !== "0"), b = oe(D);
145
+ p.selectAll("mySlices").data(P).enter().append("path").attr("d", C).attr("fill", (r) => b(r.data.label)).attr("class", "pieCircle"), p.selectAll("mySlices").data(P).enter().append("text").text((r) => (r.data.value / E * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -(u - 50) / 2).attr("class", "pieTitleText");
146
146
  const W = [...d.entries()].map(([r, M]) => ({
147
147
  label: r,
148
148
  value: M
149
- })), E = p.selectAll(".legend").data(W).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
149
+ })), k = p.selectAll(".legend").data(W).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
150
150
  const R = n + c, V = R * W.length / 2, U = 12 * n, j = M * R - V;
151
151
  return "translate(" + U + "," + j + ")";
152
152
  });
153
- E.append("rect").attr("width", n).attr("height", n).style("fill", (r) => k(r.label)).style("stroke", (r) => k(r.label)), E.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
153
+ k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => b(r.label)).style("stroke", (r) => b(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
154
154
  const B = Math.max(
155
- ...E.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
155
+ ...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
156
156
  ), O = y + t + n + c + B;
157
157
  h.attr("viewBox", `0 0 ${O} ${u}`), ie(h, u, O, l.useMaxWidth);
158
158
  }, "draw"), $e = { draw: Ce }, Pe = {
@@ -1,6 +1,6 @@
1
- import { _ as o, K as _e, C as D, l as At, d as wt, i as Ae, o as ie, s as ke, g as Fe, n as Pe, b as ve, c as Ce, t as Le, j as zt, k as Ee } from "./mermaid.core-xMGW442o.js";
2
- import { l as ee } from "./linear-CxGB80S5.js";
3
- import "./index-C2DJ8qoy.js";
1
+ import { _ as o, a1 as _e, E as D, l as At, d as wt, i as Ae, p as ie, s as ke, g as Fe, o as Pe, b as ve, c as Ce, v as Le, j as zt, k as Ee } from "./mermaid.core-DyFxH-Px.js";
2
+ import { l as ee } from "./linear-CRqCHTKs.js";
3
+ import "./index-Zd10d_CE.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  import "./init-DjUOC4st.js";
@@ -1,7 +1,7 @@
1
- import { g as ze } from "./chunk-55IACEB6-Dr8rgvy_.js";
2
- import { s as Ge } from "./chunk-QN33PNHL-nSyFq8_s.js";
3
- import { _ as m, s as Xe, g as Je, c as Ze, b as et, n as tt, o as st, d as Ne, l as qe, t as it, B as rt, y as nt, z as at, u as lt } from "./mermaid.core-xMGW442o.js";
4
- import "./index-C2DJ8qoy.js";
1
+ import { g as ze } from "./chunk-55IACEB6-CR8xZK7z.js";
2
+ import { s as Ge } from "./chunk-QN33PNHL-5NUdQ31M.js";
3
+ import { _ as m, s as Xe, g as Je, c as Ze, b as et, o as tt, p as st, d as Ne, l as qe, v as it, D as rt, z as nt, A as at, u as lt } from "./mermaid.core-DyFxH-Px.js";
4
+ import "./index-Zd10d_CE.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  var Ae = function() {
@@ -1,6 +1,6 @@
1
- import { _ as p, d as lt, g as _t, s as xt, b as vt, c as bt, o as wt, n as St, t as Lt, e as Et, v as At, j as X, W as Tt } from "./mermaid.core-xMGW442o.js";
1
+ import { _ as p, d as lt, g as _t, s as xt, b as vt, c as bt, p as wt, o as St, v as Lt, e as Et, x as At, j as X, ad as Tt } from "./mermaid.core-DyFxH-Px.js";
2
2
  import { o as Mt } from "./ordinal-MUacOSdK.js";
3
- import "./index-C2DJ8qoy.js";
3
+ import "./index-Zd10d_CE.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  import "./init-DjUOC4st.js";
@@ -1,7 +1,7 @@
1
- import { g as ct, a as Xt, d as we, b as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B-Bmj6LGNW.js";
2
- import { _ as f, s as se, c as Ie, n as Le, g as Ae, b as _e, o as ke, d as st, p as Pe, J as Ne, t as Se, l as Q, i as St, x as Me, e as I, L as z, M as At, u as F, a as Re, j as Mt, k as De, m as re, N as Ce, O as ie, E as Ht, P as ne, Z as Oe } from "./mermaid.core-xMGW442o.js";
3
- import { I as Be } from "./chunk-QZHKN3VN-Dg8JYP6e.js";
4
- import "./index-C2DJ8qoy.js";
1
+ import { g as ct, a as Xt, d as we, b as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B-DfqMo2XK.js";
2
+ import { _ as f, s as se, c as Ie, o as Le, g as Ae, b as _e, p as ke, d as st, q as Pe, J as Ne, v as Se, l as Q, i as St, y as Me, e as I, a2 as z, a3 as At, u as F, a as Re, j as Mt, k as De, m as re, a4 as Ce, a5 as ie, G as Ht, a6 as ne, a7 as Oe } from "./mermaid.core-DyFxH-Px.js";
3
+ import { I as Be } from "./chunk-QZHKN3VN-CSeHgX9s.js";
4
+ import "./index-Zd10d_CE.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  var Ut = function() {
@@ -1,10 +1,10 @@
1
- import { s as G, S as N, a as W } from "./chunk-DI55MBZ5-DvAROTIr.js";
2
- import { _ as f, d as t, j as H, l as S, k as P, e as z, R as _, S as U, N as C, u as F } from "./mermaid.core-xMGW442o.js";
1
+ import { s as R, S as N, a as W } from "./chunk-DI55MBZ5-CxISwEU9.js";
2
+ import { _ as f, d as t, j as H, l as S, k as P, e as z, a9 as _, aa as U, a4 as C, u as F } from "./mermaid.core-DyFxH-Px.js";
3
3
  import { G as O } from "./graph-DB2UxkYH.js";
4
4
  import { l as J } from "./layout-Q6wQN5dr.js";
5
- import "./chunk-55IACEB6-Dr8rgvy_.js";
6
- import "./chunk-QN33PNHL-nSyFq8_s.js";
7
- import "./index-C2DJ8qoy.js";
5
+ import "./chunk-55IACEB6-CR8xZK7z.js";
6
+ import "./chunk-QN33PNHL-5NUdQ31M.js";
7
+ import "./index-Zd10d_CE.js";
8
8
  import "react";
9
9
  import "react-dom";
10
10
  var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => {
@@ -89,7 +89,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
89
89
  i.type === "start" && X(n), i.type === "end" && j(n), (i.type === "fork" || i.type === "join") && q(n, i), i.type === "note" && K(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i);
90
90
  const l = n.node().getBBox();
91
91
  return c.width = l.width + 2 * t().state.padding, c.height = l.height + 2 * t().state.padding, c;
92
- }, "drawState"), R = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
92
+ }, "drawState"), A = 0, Q = /* @__PURE__ */ f(function(e, i, d) {
93
93
  const c = /* @__PURE__ */ f(function(s) {
94
94
  switch (s) {
95
95
  case N.relationType.AGGREGATION:
@@ -107,7 +107,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
107
107
  return s.x;
108
108
  }).y(function(s) {
109
109
  return s.y;
110
- }).curve(U), x = e.append("path").attr("d", l(n)).attr("id", "edge" + R).attr("class", "transition");
110
+ }).curve(U), x = e.append("path").attr("d", l(n)).attr("id", "edge" + A).attr("class", "transition");
111
111
  let a = "";
112
112
  if (t().state.arrowMarkerAbsolute && (a = C(!0)), x.attr(
113
113
  "marker-end",
@@ -129,7 +129,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
129
129
  const r = s.node().getBBox();
130
130
  s.insert("rect", ":first-child").attr("class", "box").attr("x", w - m / 2 - t().state.padding / 2).attr("y", p - k / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", k + t().state.padding), S.info(r);
131
131
  }
132
- R++;
132
+ A++;
133
133
  }, "drawEdge"), b, T = {}, V = /* @__PURE__ */ f(function() {
134
134
  }, "setConf"), tt = /* @__PURE__ */ f(function(e) {
135
135
  e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
@@ -143,13 +143,13 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
143
143
  const s = x.select(`[id='${i}']`);
144
144
  tt(s);
145
145
  const w = c.db.getRootDoc();
146
- A(w, s, void 0, !1, x, a, c);
146
+ G(w, s, void 0, !1, x, a, c);
147
147
  const p = b.padding, o = s.node().getBBox(), g = o.width + p * 2, B = o.height + p * 2, m = g * 1.75;
148
148
  P(s, B, m, b.useMaxWidth), s.attr(
149
149
  "viewBox",
150
150
  `${o.x - b.padding} ${o.y - b.padding} ` + g + " " + B
151
151
  );
152
- }, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), A = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
152
+ }, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
153
153
  const a = new O({
154
154
  compound: !0,
155
155
  multigraph: !0
@@ -193,7 +193,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
193
193
  let h;
194
194
  if (u.doc) {
195
195
  let y = i.append("g").attr("id", u.id).attr("class", "stateGroup");
196
- h = A(u.doc, y, u.id, !c, n, l, x);
196
+ h = G(u.doc, y, u.id, !c, n, l, x);
197
197
  {
198
198
  y = $(y, u, c);
199
199
  let v = y.node().getBBox();
@@ -253,7 +253,7 @@ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state")
253
253
  setConf: V,
254
254
  draw: et
255
255
  }, pt = {
256
- parser: G,
256
+ parser: R,
257
257
  get db() {
258
258
  return new N(1);
259
259
  },
@@ -1,8 +1,8 @@
1
- import { s as r, S as e, b as a, a as s } from "./chunk-DI55MBZ5-DvAROTIr.js";
2
- import { _ as i } from "./mermaid.core-xMGW442o.js";
3
- import "./chunk-55IACEB6-Dr8rgvy_.js";
4
- import "./chunk-QN33PNHL-nSyFq8_s.js";
5
- import "./index-C2DJ8qoy.js";
1
+ import { s as r, S as e, b as a, a as s } from "./chunk-DI55MBZ5-CxISwEU9.js";
2
+ import { _ as i } from "./mermaid.core-DyFxH-Px.js";
3
+ import "./chunk-55IACEB6-CR8xZK7z.js";
4
+ import "./chunk-QN33PNHL-5NUdQ31M.js";
5
+ import "./index-Zd10d_CE.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  var n = {