@belonguniverseai/react-sdk 0.6.2 → 0.6.4

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 (81) hide show
  1. package/dist/api/agent-grants.d.ts +23 -8
  2. package/dist/api/client.d.ts +53 -4
  3. package/dist/api/queries.d.ts +2 -0
  4. package/dist/app/call-summary.d.ts +30 -0
  5. package/dist/component/abnfDiagram-N423BO3Z-DR3fMT7g.js +90 -0
  6. package/dist/component/arc-DJkYOSuJ.js +86 -0
  7. package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-BIp4IBPk.js} +1872 -1785
  8. package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-BqryGqC6.js} +895 -894
  9. package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-GktlF-Di.js} +3 -3
  10. package/dist/component/{channel-CYFijF_t.js → channel-3CusDaXb.js} +2 -2
  11. package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-DMTs6j_c.js} +5 -5
  12. package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-CIU34hPH.js} +2 -2
  13. package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-Ds3vF1Mv.js} +399 -378
  14. package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-DGxDkIm6.js} +2 -2
  15. package/dist/component/chunk-6Q2QTUOP-BI8oZt98.js +673 -0
  16. package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-D-36xUd5.js} +244 -239
  17. package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-8N_wQ762.js} +2 -2
  18. package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-ChxxpkWc.js} +2 -2
  19. package/dist/component/chunk-RYQCIY6F-CSY-95OP.js +316 -0
  20. package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-BQd9yyE1.js} +2 -2
  21. package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-BOq63iUL.js} +3 -3
  22. package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-BOq63iUL.js} +3 -3
  23. package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-B9x8cp5w.js} +2 -2
  24. package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
  25. package/dist/component/cynefinDiagram-MW4NZA55-OF6l99SS.js +302 -0
  26. package/dist/component/dagre-VZM6K2ZE-CELO1hFb.js +343 -0
  27. package/dist/component/diagram-7IWD3JNH-COzvm6E2.js +353 -0
  28. package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DR9KMRGw.js} +24 -24
  29. package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-D47Zqm-k.js} +23 -23
  30. package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-Key1bw_Y.js} +197 -197
  31. package/dist/component/diagram-UB23O5K3-Cxf-sZnK.js +222 -0
  32. package/dist/component/ebnfDiagram-BXEA7PRR-C8uURt_x.js +112 -0
  33. package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-CpCxe8Ib.js} +142 -131
  34. package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-urFG2I71.js} +268 -258
  35. package/dist/component/ganttDiagram-PKOTCBZU-8nA9faYf.js +2714 -0
  36. package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-u4cbNW8o.js} +33 -33
  37. package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
  38. package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-Bo-15uvJ.js} +2 -2
  39. package/dist/component/index.js +2 -2
  40. package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-ZAv4gZpA.js} +4 -4
  41. package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-CvB6evSz.js} +27 -27
  42. package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-M5BRYuPr.js} +5 -5
  43. package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-LL6GkmVe.js} +35 -35
  44. package/dist/component/layout-Br2UjHRU.js +1522 -0
  45. package/dist/component/{linear-BT4blD8s.js → linear-DVg61V66.js} +13 -13
  46. package/dist/component/map-CdwokNh2.js +227 -0
  47. package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-C2L7fCIM.js} +29577 -29128
  48. package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-BBZzsLh7.js} +26 -26
  49. package/dist/component/pegDiagram-VL7TDLO6-BEG86cY8.js +98 -0
  50. package/dist/component/pieDiagram-7S7Q4E2Y-BTkrNjAi.js +210 -0
  51. package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-BsjBAd4w.js} +14 -15
  52. package/dist/component/railroadDiagram-AXF67PYL-DuE0ZFxj.js +80 -0
  53. package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-CcshEEMy.js} +15 -15
  54. package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-CFn011ig.js} +2 -2
  55. package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-DmMZNJDw.js} +960 -963
  56. package/dist/component/sizeCapture-X5ZJPWSS-Ce4PhIAO.js +49 -0
  57. package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DDVzQKaO.js} +5 -5
  58. package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DeeW8PDA.js} +3 -3
  59. package/dist/component/swimlanes-SLNWSIFB-CZh2_vzg.js +5335 -0
  60. package/dist/component/swimlanesDiagram-ULZ7WXOC-Wb0Ri7qR.js +16 -0
  61. package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-rfiLwdTR.js} +15 -15
  62. package/dist/component/vennDiagram-T6HMQDX7-D8l7hqNb.js +1581 -0
  63. package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-7YqmpmtC.js} +15 -15
  64. package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-Dx2ECqt8.js} +464 -418
  65. package/dist/embed/voice/line-slots.d.ts +37 -2
  66. package/dist/embed/voice-call.d.ts +12 -0
  67. package/dist/i18n/messages/en.d.ts +1 -2
  68. package/dist/lib/web-storage.d.ts +8 -0
  69. package/dist/stream/belong-chat-transport.d.ts +1 -0
  70. package/dist/stream/belong-data-parts.d.ts +2 -0
  71. package/dist/stream/stream-state-store.d.ts +13 -0
  72. package/dist/types/public.d.ts +3 -0
  73. package/package.json +1 -1
  74. package/dist/component/arc-TLcl3N8_.js +0 -86
  75. package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
  76. package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
  77. package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
  78. package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
  79. package/dist/component/layout-Bu6nRdWm.js +0 -1731
  80. package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
  81. package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
@@ -1,6 +1,6 @@
1
- import { g as oe } from "./chunk-55IACEB6-DmZctFkK.js";
2
- import { s as ae } from "./chunk-2J33WTMH-B06Y_xVy.js";
3
- import { _ as l, l as C, p as ce, r as le, G as he, K as G, c as B, i as F, b6 as de, af as ge, ag as ue, ah as pe } from "./mermaid-GHXKKRXX-DXPXjnb7.js";
1
+ import { g as oe } from "./chunk-XXDRQBXY-BQd9yyE1.js";
2
+ import { s as ae } from "./chunk-KBJHAD2P-ChxxpkWc.js";
3
+ import { _ as l, l as C, v as ce, x as le, z as he, E as G, c as B, i as F, b9 as de, ad as ge, ae as ue, af as pe } from "./mermaid-GHXKKRXX-C2L7fCIM.js";
4
4
  globalThis.process = globalThis.process || { env: {} };
5
5
  globalThis.global = globalThis.global || globalThis;
6
6
  const b = [];
@@ -27,7 +27,7 @@ var Y = (function() {
27
27
  var e = /* @__PURE__ */ l(function(D, s, i, o) {
28
28
  for (i = i || {}, o = D.length; o--; i[D[o]] = s) ;
29
29
  return i;
30
- }, "o"), n = [1, 4], g = [1, 13], a = [1, 12], t = [1, 15], h = [1, 16], f = [1, 20], m = [1, 19], E = [6, 7, 8], v = [1, 26], I = [1, 24], w = [1, 25], d = [6, 7, 11], R = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], q = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], j = {
30
+ }, "o"), n = [1, 4], g = [1, 13], a = [1, 12], t = [1, 15], h = [1, 16], f = [1, 20], m = [1, 19], E = [6, 7, 8], T = [1, 26], I = [1, 24], w = [1, 25], d = [6, 7, 11], R = [1, 6, 13, 15, 16, 19, 22], q = [1, 33], J = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], j = {
31
31
  trace: /* @__PURE__ */ l(function() {
32
32
  }, "trace"),
33
33
  yy: {},
@@ -82,7 +82,7 @@ var Y = (function() {
82
82
  break;
83
83
  }
84
84
  }, "anonymous"),
85
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: n }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: n }, { 6: g, 7: [1, 10], 9: 9, 12: 11, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(E, [2, 3]), { 1: [2, 2] }, e(E, [2, 4]), e(E, [2, 5]), { 1: [2, 6], 6: g, 12: 21, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: g, 9: 22, 12: 11, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: v, 7: I, 10: 23, 11: w }, e(d, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: f, 22: m }), e(d, [2, 18]), e(d, [2, 19]), e(d, [2, 20]), e(d, [2, 21]), e(d, [2, 23]), e(d, [2, 24]), e(d, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: v, 7: I, 10: 32, 11: w }, { 1: [2, 7], 6: g, 12: 21, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(R, [2, 14], { 7: K, 11: q }), e(A, [2, 8]), e(A, [2, 9]), e(A, [2, 10]), e(d, [2, 15]), e(d, [2, 16]), e(d, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, e(R, [2, 13], { 7: K, 11: q }), e(A, [2, 11]), e(A, [2, 12]), { 21: [1, 37] }, e(d, [2, 25]), e(d, [2, 27])],
85
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: n }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: n }, { 6: g, 7: [1, 10], 9: 9, 12: 11, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(E, [2, 3]), { 1: [2, 2] }, e(E, [2, 4]), e(E, [2, 5]), { 1: [2, 6], 6: g, 12: 21, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: g, 9: 22, 12: 11, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, { 6: T, 7: I, 10: 23, 11: w }, e(d, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: f, 22: m }), e(d, [2, 18]), e(d, [2, 19]), e(d, [2, 20]), e(d, [2, 21]), e(d, [2, 23]), e(d, [2, 24]), e(d, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: T, 7: I, 10: 32, 11: w }, { 1: [2, 7], 6: g, 12: 21, 13: a, 14: 14, 15: t, 16: h, 17: 17, 18: 18, 19: f, 22: m }, e(R, [2, 14], { 7: q, 11: J }), e(A, [2, 8]), e(A, [2, 9]), e(A, [2, 10]), e(d, [2, 15]), e(d, [2, 16]), e(d, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, e(R, [2, 13], { 7: q, 11: J }), e(A, [2, 11]), e(A, [2, 12]), { 21: [1, 37] }, e(d, [2, 25]), e(d, [2, 27])],
86
86
  defaultActions: { 2: [2, 1], 6: [2, 2] },
87
87
  parseError: /* @__PURE__ */ l(function(s, i) {
88
88
  if (i.recoverable)
@@ -93,12 +93,12 @@ var Y = (function() {
93
93
  }
94
94
  }, "parseError"),
95
95
  parse: /* @__PURE__ */ l(function(s) {
96
- var i = this, o = [0], c = [], p = [null], r = [], $ = this.table, u = "", M = 0, J = 0, ne = 2, Q = 1, ie = r.slice.call(arguments, 1), y = Object.create(this.lexer), L = { yy: {} };
96
+ var i = this, o = [0], c = [], p = [null], r = [], $ = this.table, u = "", M = 0, K = 0, ne = 2, Q = 1, ie = r.slice.call(arguments, 1), y = Object.create(this.lexer), L = { yy: {} };
97
97
  for (var H in this.yy)
98
98
  Object.prototype.hasOwnProperty.call(this.yy, H) && (L.yy[H] = this.yy[H]);
99
99
  y.setInput(s, L.yy), L.yy.lexer = y, L.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
100
- var W = y.yylloc;
101
- r.push(W);
100
+ var z = y.yylloc;
101
+ r.push(z);
102
102
  var se = y.options && y.options.ranges;
103
103
  typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
104
104
  function re(k) {
@@ -110,11 +110,11 @@ var Y = (function() {
110
110
  return k = c.pop() || y.lex() || Q, typeof k != "number" && (k instanceof Array && (c = k, k = c.pop()), k = i.symbols_[k] || k), k;
111
111
  }
112
112
  l(Z, "lex");
113
- for (var _, T, S, z, O = {}, U, x, ee, V; ; ) {
114
- if (T = o[o.length - 1], this.defaultActions[T] ? S = this.defaultActions[T] : ((_ === null || typeof _ > "u") && (_ = Z()), S = $[T] && $[T][_]), typeof S > "u" || !S.length || !S[0]) {
113
+ for (var _, v, S, W, O = {}, U, x, ee, V; ; ) {
114
+ if (v = o[o.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((_ === null || typeof _ > "u") && (_ = Z()), S = $[v] && $[v][_]), typeof S > "u" || !S.length || !S[0]) {
115
115
  var X = "";
116
116
  V = [];
117
- for (U in $[T])
117
+ for (U in $[v])
118
118
  this.terminals_[U] && U > ne && V.push("'" + this.terminals_[U] + "'");
119
119
  y.showPosition ? X = "Parse error on line " + (M + 1) + `:
120
120
  ` + y.showPosition() + `
@@ -122,15 +122,15 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : X = "
122
122
  text: y.match,
123
123
  token: this.terminals_[_] || _,
124
124
  line: y.yylineno,
125
- loc: W,
125
+ loc: z,
126
126
  expected: V
127
127
  });
128
128
  }
129
129
  if (S[0] instanceof Array && S.length > 1)
130
- throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
130
+ throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + _);
131
131
  switch (S[0]) {
132
132
  case 1:
133
- o.push(_), p.push(y.yytext), r.push(y.yylloc), o.push(S[1]), _ = null, J = y.yyleng, u = y.yytext, M = y.yylineno, W = y.yylloc;
133
+ o.push(_), p.push(y.yytext), r.push(y.yylloc), o.push(S[1]), _ = null, K = y.yyleng, u = y.yytext, M = y.yylineno, z = y.yylloc;
134
134
  break;
135
135
  case 2:
136
136
  if (x = this.productions_[S[1]][1], O.$ = p[p.length - x], O._$ = {
@@ -141,16 +141,16 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : X = "
141
141
  }, se && (O._$.range = [
142
142
  r[r.length - (x || 1)].range[0],
143
143
  r[r.length - 1].range[1]
144
- ]), z = this.performAction.apply(O, [
144
+ ]), W = this.performAction.apply(O, [
145
145
  u,
146
- J,
146
+ K,
147
147
  M,
148
148
  L.yy,
149
149
  S[1],
150
150
  p,
151
151
  r
152
- ].concat(ie)), typeof z < "u")
153
- return z;
152
+ ].concat(ie)), typeof W < "u")
153
+ return W;
154
154
  x && (o = o.slice(0, -1 * x * 2), p = p.slice(0, -1 * x), r = r.slice(0, -1 * x)), o.push(this.productions_[S[1]][0]), p.push(O.$), r.push(O._$), ee = $[o[o.length - 2]][o[o.length - 1]], o.push(ee);
155
155
  break;
156
156
  case 3:
@@ -560,7 +560,7 @@ var _e = Y, ke = 12, N = {
560
560
  const g = B(), a = ["mindmap-node"];
561
561
  e.isRoot === !0 ? a.push("section-root", "section--1") : e.section !== void 0 && a.push(`section-${e.section}`), e.class && a.push(e.class);
562
562
  const t = a.join(" "), h = /* @__PURE__ */ l((m) => {
563
- const v = (g.theme?.toLowerCase() ?? "").includes("redux");
563
+ const T = (g.theme?.toLowerCase() ?? "").includes("redux");
564
564
  switch (m) {
565
565
  case N.CIRCLE:
566
566
  return "mindmapCircle";
@@ -575,7 +575,7 @@ var _e = Y, ke = 12, N = {
575
575
  case N.HEXAGON:
576
576
  return "hexagon";
577
577
  case N.DEFAULT:
578
- return v ? "rounded" : "defaultMindmapNode";
578
+ return T ? "rounded" : "defaultMindmapNode";
579
579
  case N.NO_BORDER:
580
580
  default:
581
581
  return "rect";
@@ -699,8 +699,8 @@ var _e = Y, ke = 12, N = {
699
699
  h.nodes.forEach((d) => {
700
700
  d.shape === "rounded" ? (d.radius = 15, d.taper = 15, d.stroke = "none", d.width = 0, d.padding = 15) : d.shape === "circle" ? d.padding = 10 : d.shape === "rect" ? (d.width = 0, d.padding = 10) : d.shape === "hexagon" && (d.width = 0, d.height = 0);
701
701
  }), await le(h, f);
702
- const { themeVariables: E } = he(), { useGradient: v, gradientStart: I, gradientStop: w } = E;
703
- if (v && I && w) {
702
+ const { themeVariables: E } = he(), { useGradient: T, gradientStart: I, gradientStop: w } = E;
703
+ if (T && I && w) {
704
704
  const d = f.attr("id"), R = f.append("defs").append("linearGradient").attr("id", `${d}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
705
705
  R.append("stop").attr("offset", "0%").attr("stop-color", I).attr("stop-opacity", 1), R.append("stop").attr("offset", "100%").attr("stop-color", w).attr("stop-opacity", 1);
706
706
  }
@@ -776,7 +776,7 @@ var _e = Y, ke = 12, N = {
776
776
  stroke-width: 0;
777
777
  }`;
778
778
  return a;
779
- }, "genGradient"), Te = /* @__PURE__ */ l((e) => {
779
+ }, "genGradient"), ve = /* @__PURE__ */ l((e) => {
780
780
  const { theme: n } = e, g = e.svgId, a = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${g}-drop-shadow)`) : "none";
781
781
  return `
782
782
  .edge {
@@ -819,15 +819,15 @@ var _e = Y, ke = 12, N = {
819
819
  }
820
820
  ${e.useGradient && g && e.mainBkg ? Le(e.THEME_COLOR_LIMIT, g, e.mainBkg) : ""}
821
821
  `;
822
- }, "getStyles"), ve = Te, we = {
822
+ }, "getStyles"), Te = ve, we = {
823
823
  get db() {
824
824
  return new Se();
825
825
  },
826
826
  renderer: Ne,
827
827
  parser: _e,
828
- styles: ve
828
+ styles: Te
829
829
  };
830
830
  export {
831
831
  we as diagram
832
832
  };
833
- //# sourceMappingURL=mindmap-definition-RKZ34NQL-DO-OuAQQ.js.map
833
+ //# sourceMappingURL=mindmap-definition-FAOFIHXS-BBZzsLh7.js.map
@@ -0,0 +1,98 @@
1
+ import { g as i, r as m, d as a } from "./chunk-6Q2QTUOP-BI8oZt98.js";
2
+ import { p } from "./chunk-JWPE2WC7-8N_wQ762.js";
3
+ import { _ as t, l as o } from "./mermaid-GHXKKRXX-C2L7fCIM.js";
4
+ import { M as u, d as c } from "./cynefin-VYW2F7L2-DAyxamLw.js";
5
+ globalThis.process = globalThis.process || { env: {} };
6
+ globalThis.global = globalThis.global || globalThis;
7
+ var f = c().RailroadPeg.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
8
+ const r = e.alternatives.map(g);
9
+ return r.length === 1 ? r[0] : {
10
+ type: "choice",
11
+ alternatives: r
12
+ };
13
+ }, "transformOrderedChoice"), g = /* @__PURE__ */ t((e) => {
14
+ const r = e.elements.map(d);
15
+ return r.length === 1 ? r[0] : {
16
+ type: "sequence",
17
+ elements: r
18
+ };
19
+ }, "transformSequence"), d = /* @__PURE__ */ t((e) => {
20
+ const r = P(e.suffix);
21
+ return e.operator ? {
22
+ type: "special",
23
+ text: e.operator === "&" ? `&${s(r)}` : `!${s(r)}`
24
+ } : r;
25
+ }, "transformPrefix"), s = /* @__PURE__ */ t((e) => {
26
+ switch (e.type) {
27
+ case "terminal":
28
+ return `"${e.value}"`;
29
+ case "nonterminal":
30
+ return e.name;
31
+ case "special":
32
+ return e.text;
33
+ default:
34
+ return "(...)";
35
+ }
36
+ }, "nodeToLabel"), P = /* @__PURE__ */ t((e) => {
37
+ const r = h(e.primary);
38
+ if (!e.operator)
39
+ return r;
40
+ switch (e.operator) {
41
+ case "?":
42
+ return { type: "optional", element: r };
43
+ case "*":
44
+ return { type: "repetition", element: r, min: 0, max: 1 / 0 };
45
+ case "+":
46
+ return { type: "repetition", element: r, min: 1, max: 1 / 0 };
47
+ default:
48
+ throw new Error(`Unsupported PEG suffix operator: ${e.operator}`);
49
+ }
50
+ }, "transformSuffix"), h = /* @__PURE__ */ t((e) => {
51
+ switch (e.$type) {
52
+ case "PegLiteral":
53
+ return {
54
+ type: "terminal",
55
+ value: e.value
56
+ };
57
+ case "PegIdentifier":
58
+ return {
59
+ type: "nonterminal",
60
+ name: e.name
61
+ };
62
+ case "PegGroup":
63
+ return l(e.element);
64
+ case "PegAny":
65
+ return {
66
+ type: "special",
67
+ text: e.dot
68
+ };
69
+ default:
70
+ throw new Error(`Unsupported PEG primary node: ${e.$type}`);
71
+ }
72
+ }, "transformPrimary"), v = /* @__PURE__ */ t((e) => ({
73
+ name: e.name,
74
+ definition: l(e.definition)
75
+ }), "transformRule"), b = /* @__PURE__ */ t((e) => {
76
+ p(e, a), e.title && a.setTitle(e.title), e.rules.map((r) => a.addRule(v(r)));
77
+ }, "populateDb"), y = {
78
+ parse: /* @__PURE__ */ t((e) => {
79
+ a.clear(), o.debug("[PEG Parser] Starting Langium parse");
80
+ const r = f.parse(e);
81
+ if (r.lexerErrors.length > 0 || r.parserErrors.length > 0)
82
+ throw new u(r);
83
+ const n = r.value;
84
+ o.debug("[PEG Parser] Parsed rules:", n.rules.length), b(n), o.debug("[PEG Parser] Parse complete");
85
+ }, "parse"),
86
+ parser: {
87
+ yy: a
88
+ }
89
+ }, S = {
90
+ parser: y,
91
+ db: a,
92
+ renderer: m,
93
+ styles: i
94
+ };
95
+ export {
96
+ S as diagram
97
+ };
98
+ //# sourceMappingURL=pegDiagram-VL7TDLO6-BEG86cY8.js.map
@@ -0,0 +1,210 @@
1
+ import { p as at } from "./chunk-JWPE2WC7-8N_wQ762.js";
2
+ import { V as D, K as P, b8 as rt, g as nt, s as it, a as ot, b as st, p as lt, o as ct, _ as d, l as B, c as gt, D as ut, G as dt, a4 as ht, e as pt, q as ft, E as mt } from "./mermaid-GHXKKRXX-C2L7fCIM.js";
3
+ import { p as vt } from "./cynefin-VYW2F7L2-DAyxamLw.js";
4
+ import { d as X } from "./arc-DJkYOSuJ.js";
5
+ import { o as xt } from "./ordinal-D0x7izaa.js";
6
+ globalThis.process = globalThis.process || { env: {} };
7
+ globalThis.global = globalThis.global || globalThis;
8
+ function St(t, n) {
9
+ return n < t ? -1 : n > t ? 1 : n >= t ? 0 : NaN;
10
+ }
11
+ function yt(t) {
12
+ return t;
13
+ }
14
+ function wt() {
15
+ var t = yt, n = St, y = null, T = D(0), l = D(P), h = D(0);
16
+ function i(e) {
17
+ var r, s = (e = rt(e)).length, p, w, C = 0, f = new Array(s), o = new Array(s), $ = +T.apply(this, arguments), z = Math.min(P, Math.max(-P, l.apply(this, arguments) - $)), k, L = Math.min(Math.abs(z) / s, h.apply(this, arguments)), g = L * (z < 0 ? -1 : 1), A;
18
+ for (r = 0; r < s; ++r)
19
+ (A = o[f[r] = r] = +t(e[r], r, e)) > 0 && (C += A);
20
+ for (n != null ? f.sort(function(M, m) {
21
+ return n(o[M], o[m]);
22
+ }) : y != null && f.sort(function(M, m) {
23
+ return y(e[M], e[m]);
24
+ }), r = 0, w = C ? (z - s * g) / C : 0; r < s; ++r, $ = k)
25
+ p = f[r], A = o[p], k = $ + (A > 0 ? A * w : 0) + g, o[p] = {
26
+ data: e[p],
27
+ index: r,
28
+ value: A,
29
+ startAngle: $,
30
+ endAngle: k,
31
+ padAngle: L
32
+ };
33
+ return o;
34
+ }
35
+ return i.value = function(e) {
36
+ return arguments.length ? (t = typeof e == "function" ? e : D(+e), i) : t;
37
+ }, i.sortValues = function(e) {
38
+ return arguments.length ? (n = e, y = null, i) : n;
39
+ }, i.sort = function(e) {
40
+ return arguments.length ? (y = e, n = null, i) : y;
41
+ }, i.startAngle = function(e) {
42
+ return arguments.length ? (T = typeof e == "function" ? e : D(+e), i) : T;
43
+ }, i.endAngle = function(e) {
44
+ return arguments.length ? (l = typeof e == "function" ? e : D(+e), i) : l;
45
+ }, i.padAngle = function(e) {
46
+ return arguments.length ? (h = typeof e == "function" ? e : D(+e), i) : h;
47
+ }, i;
48
+ }
49
+ var At = mt.pie, I = {
50
+ sections: /* @__PURE__ */ new Map(),
51
+ showData: !1
52
+ }, F = I.sections, V = I.showData, bt = structuredClone(At), Ct = /* @__PURE__ */ d(() => structuredClone(bt), "getConfig"), $t = /* @__PURE__ */ d(() => {
53
+ F = /* @__PURE__ */ new Map(), V = I.showData, ft();
54
+ }, "clear"), Dt = /* @__PURE__ */ d(({ label: t, value: n }) => {
55
+ if (n < 0)
56
+ throw new Error(
57
+ `"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
58
+ );
59
+ F.has(t) || (F.set(t, n), B.debug(`added new section: ${t}, with value: ${n}`));
60
+ }, "addSection"), Tt = /* @__PURE__ */ d(() => F, "getSections"), kt = /* @__PURE__ */ d((t) => {
61
+ V = t;
62
+ }, "setShowData"), Et = /* @__PURE__ */ d(() => V, "getShowData"), Z = {
63
+ getConfig: Ct,
64
+ clear: $t,
65
+ setDiagramTitle: ct,
66
+ getDiagramTitle: lt,
67
+ setAccTitle: st,
68
+ getAccTitle: ot,
69
+ setAccDescription: it,
70
+ getAccDescription: nt,
71
+ addSection: Dt,
72
+ getSections: Tt,
73
+ setShowData: kt,
74
+ getShowData: Et
75
+ }, zt = /* @__PURE__ */ d((t, n) => {
76
+ at(t, n), n.setShowData(t.showData), t.sections.map(n.addSection);
77
+ }, "populateDb"), Mt = {
78
+ parse: /* @__PURE__ */ d(async (t) => {
79
+ const n = await vt("pie", t);
80
+ B.debug(n), zt(n, Z);
81
+ }, "parse")
82
+ }, Rt = /* @__PURE__ */ d((t) => `
83
+ .pieCircle{
84
+ stroke: ${t.pieStrokeColor};
85
+ stroke-width : ${t.pieStrokeWidth};
86
+ opacity : ${t.pieOpacity};
87
+ }
88
+ .pieCircle.highlighted{
89
+ scale: 1.05;
90
+ opacity: 1;
91
+ }
92
+ .pieCircle.highlightedOnHover:hover{
93
+ transition-duration: 250ms;
94
+ scale: 1.05;
95
+ opacity: 1;
96
+ }
97
+ .pieOuterCircle{
98
+ stroke: ${t.pieOuterStrokeColor};
99
+ stroke-width: ${t.pieOuterStrokeWidth};
100
+ fill: none;
101
+ }
102
+ .pieTitleText {
103
+ text-anchor: middle;
104
+ font-size: ${t.pieTitleTextSize};
105
+ fill: ${t.pieTitleTextColor};
106
+ font-family: ${t.fontFamily};
107
+ }
108
+ .slice {
109
+ font-family: ${t.fontFamily};
110
+ fill: ${t.pieSectionTextColor};
111
+ font-size:${t.pieSectionTextSize};
112
+ // fill: white;
113
+ }
114
+ .legend text {
115
+ fill: ${t.pieLegendTextColor};
116
+ font-family: ${t.fontFamily};
117
+ font-size: ${t.pieLegendTextSize};
118
+ }
119
+ `, "getStyles"), Lt = Rt, Wt = /* @__PURE__ */ d((t) => {
120
+ const n = [...t.values()].reduce((l, h) => l + h, 0), y = [...t.entries()].map(([l, h]) => ({ label: l, value: h })).filter((l) => l.value / n * 100 >= 1);
121
+ return wt().value((l) => l.value).sort(null)(y);
122
+ }, "createPieArcs"), _t = /* @__PURE__ */ d((t, n, y, T) => {
123
+ B.debug(`rendering pie chart
124
+ ` + t);
125
+ const l = T.db, h = gt(), i = ut(l.getConfig(), h.pie), e = 40, r = 18, s = 4, p = 450, w = p, C = dt(n), f = C.append("g");
126
+ f.attr("transform", "translate(" + w / 2 + "," + p / 2 + ")");
127
+ const { themeVariables: o } = h;
128
+ let [$] = ht(o.pieOuterStrokeWidth);
129
+ $ ??= 2;
130
+ const z = i.legendPosition, k = i.textPosition, L = i.donutHole > 0 && i.donutHole <= 0.9 ? i.donutHole : 0, g = Math.min(w, p) / 2 - e, A = X().innerRadius(L * g).outerRadius(g), M = X().innerRadius(g * k).outerRadius(g * k), m = f.append("g");
131
+ m.append("circle").attr("cx", 0).attr("cy", 0).attr("r", g + $ / 2).attr("class", "pieOuterCircle");
132
+ const W = l.getSections(), J = Wt(W), Q = [
133
+ o.pie1,
134
+ o.pie2,
135
+ o.pie3,
136
+ o.pie4,
137
+ o.pie5,
138
+ o.pie6,
139
+ o.pie7,
140
+ o.pie8,
141
+ o.pie9,
142
+ o.pie10,
143
+ o.pie11,
144
+ o.pie12
145
+ ];
146
+ let G = 0;
147
+ W.forEach((a) => {
148
+ G += a;
149
+ });
150
+ const U = J.filter((a) => (a.data.value / G * 100).toFixed(0) !== "0"), H = xt(Q).domain([
151
+ ...W.keys()
152
+ ]);
153
+ m.selectAll("mySlices").data(U).enter().append("path").attr("d", A).attr("fill", (a) => H(a.data.label)).attr("class", (a) => {
154
+ let c = "pieCircle";
155
+ return i.highlightSlice === "hover" ? c += " highlightedOnHover" : i.highlightSlice === a.data.label && (c += " highlighted"), c;
156
+ }), m.selectAll("mySlices").data(U).enter().append("text").text((a) => (a.data.value / G * 100).toFixed(0) + "%").attr("transform", (a) => "translate(" + M.centroid(a) + ")").style("text-anchor", "middle").attr("class", "slice");
157
+ const Y = f.append("text").text(l.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText"), R = [...W.entries()].map(([a, c]) => ({
158
+ label: a,
159
+ value: c
160
+ })), b = f.selectAll(".legend").data(R).enter().append("g").attr("class", "legend");
161
+ b.append("rect").attr("width", r).attr("height", r).style("fill", (a) => H(a.label)).style("stroke", (a) => H(a.label)), b.append("text").attr("x", r + s).attr("y", r - s).text((a) => l.getShowData() ? `${a.label} [${a.value}]` : a.label);
162
+ const E = Math.max(
163
+ ...b.selectAll("text").nodes().map((a) => a?.getBoundingClientRect().width ?? 0)
164
+ );
165
+ let _ = p, N = w + e;
166
+ const u = r + s, O = R.length * u;
167
+ switch (z) {
168
+ case "center":
169
+ b.attr("transform", (a, c) => {
170
+ const v = u * R.length / 2, x = -E / 2 - (r + s), S = c * u - v;
171
+ return "translate(" + x + "," + S + ")";
172
+ });
173
+ break;
174
+ case "top":
175
+ _ += O, b.attr("transform", (a, c) => {
176
+ const v = g, x = -E / 2 - (r + s), S = c * u - v;
177
+ return `translate(${x}, ${S})`;
178
+ }), m.attr("transform", () => `translate(0, ${O + u})`);
179
+ break;
180
+ case "bottom":
181
+ _ += O, b.attr("transform", (a, c) => {
182
+ const v = -g - u, x = -E / 2 - (r + s), S = c * u - v;
183
+ return "translate(" + x + "," + S + ")";
184
+ });
185
+ break;
186
+ case "left":
187
+ N += r + s + E, b.attr("transform", (a, c) => {
188
+ const v = u * R.length / 2, x = -g - (r + s), S = c * u - v;
189
+ return "translate(" + x + "," + S + ")";
190
+ }), m.attr("transform", () => `translate(${E + r + s}, 0)`);
191
+ break;
192
+ default:
193
+ N += r + s + E, b.attr("transform", (a, c) => {
194
+ const v = u * R.length / 2, x = 12 * r, S = c * u - v;
195
+ return "translate(" + x + "," + S + ")";
196
+ });
197
+ break;
198
+ }
199
+ const j = Y.node()?.getBoundingClientRect().width ?? 0, tt = w / 2 - j / 2, et = w / 2 + j / 2, q = Math.min(0, tt), K = Math.max(N, et) - q;
200
+ C.attr("viewBox", `${q} 0 ${K} ${_}`), pt(C, _, K, i.useMaxWidth);
201
+ }, "draw"), Ft = { draw: _t }, It = {
202
+ parser: Mt,
203
+ db: Z,
204
+ renderer: Ft,
205
+ styles: Lt
206
+ };
207
+ export {
208
+ It as diagram
209
+ };
210
+ //# sourceMappingURL=pieDiagram-7S7Q4E2Y-BTkrNjAi.js.map
@@ -1,5 +1,5 @@
1
- import { s as Se, g as _e, t as ee, q as Ae, a as ke, b as Fe, _ as r, c as Et, l as qt, d as vt, e as Pe, B as ve, K as z, i as Ce, a4 as Le } from "./mermaid-GHXKKRXX-DXPXjnb7.js";
2
- import { l as te } from "./linear-BT4blD8s.js";
1
+ import { s as Se, g as _e, p as ee, o as Ae, a as ke, b as Fe, _ as r, c as Et, l as qt, d as vt, e as Pe, q as ve, E as z, i as Ce, Z as Le } from "./mermaid-GHXKKRXX-C2L7fCIM.js";
2
+ import { l as te } from "./linear-DVg61V66.js";
3
3
  globalThis.process = globalThis.process || { env: {} };
4
4
  globalThis.global = globalThis.global || globalThis;
5
5
  var Ct = (function() {
@@ -852,9 +852,8 @@ function ae(t) {
852
852
  return !/^\d+px$/.test(t);
853
853
  }
854
854
  r(ae, "validateSizeInPixels");
855
- var ze = Et();
856
855
  function O(t) {
857
- return Ce(t.trim(), ze);
856
+ return Ce(t.trim(), Et());
858
857
  }
859
858
  r(O, "textSanitizer");
860
859
  var V = new De();
@@ -962,9 +961,9 @@ function pe() {
962
961
  }), V.setData({ titleText: ee() }), V.build();
963
962
  }
964
963
  r(pe, "getQuadrantData");
965
- var Ve = /* @__PURE__ */ r(function() {
964
+ var ze = /* @__PURE__ */ r(function() {
966
965
  V.clear(), ve();
967
- }, "clear"), Ie = {
966
+ }, "clear"), Ve = {
968
967
  setWidth: fe,
969
968
  setHeight: ge,
970
969
  setQuadrant1Text: ne,
@@ -979,14 +978,14 @@ var Ve = /* @__PURE__ */ r(function() {
979
978
  addPoint: ue,
980
979
  addClass: xe,
981
980
  getQuadrantData: pe,
982
- clear: Ve,
981
+ clear: ze,
983
982
  setAccTitle: Fe,
984
983
  getAccTitle: ke,
985
984
  setDiagramTitle: Ae,
986
985
  getDiagramTitle: ee,
987
986
  getAccDescription: _e,
988
987
  setAccDescription: Se
989
- }, we = /* @__PURE__ */ r((t, a, p, f) => {
988
+ }, Ie = /* @__PURE__ */ r((t, a, p, f) => {
990
989
  function o(i) {
991
990
  return i === "top" ? "hanging" : "middle";
992
991
  }
@@ -1019,15 +1018,15 @@ var Ve = /* @__PURE__ */ r(function() {
1019
1018
  "dominant-baseline",
1020
1019
  (i) => o(i.text.horizontalPos)
1021
1020
  ).attr("text-anchor", (i) => x(i.text.verticalPos)).attr("transform", (i) => _(i.text));
1022
- }, "draw"), Be = {
1023
- draw: we
1024
- }, We = {
1021
+ }, "draw"), we = {
1022
+ draw: Ie
1023
+ }, Ne = {
1025
1024
  parser: Ee,
1026
- db: Ie,
1027
- renderer: Be,
1025
+ db: Ve,
1026
+ renderer: we,
1028
1027
  styles: /* @__PURE__ */ r(() => "", "styles")
1029
1028
  };
1030
1029
  export {
1031
- We as diagram
1030
+ Ne as diagram
1032
1031
  };
1033
- //# sourceMappingURL=quadrantDiagram-W4KKPZXB-CaJWg9ep.js.map
1032
+ //# sourceMappingURL=quadrantDiagram-CIZ2JOQS-BsjBAd4w.js.map
@@ -0,0 +1,80 @@
1
+ import { g as o, r as i, d as t } from "./chunk-6Q2QTUOP-BI8oZt98.js";
2
+ import { p } from "./chunk-JWPE2WC7-8N_wQ762.js";
3
+ import { _ as l, l as n } from "./mermaid-GHXKKRXX-C2L7fCIM.js";
4
+ import { M as m, c as u } from "./cynefin-VYW2F7L2-DAyxamLw.js";
5
+ globalThis.process = globalThis.process || { env: {} };
6
+ globalThis.global = globalThis.global || globalThis;
7
+ var d = u().Railroad.parser.LangiumParser, a = /* @__PURE__ */ l((e) => {
8
+ switch (e.$type) {
9
+ case "RailroadTerminalExpr":
10
+ return {
11
+ type: "terminal",
12
+ value: e.value
13
+ };
14
+ case "RailroadNonTerminalExpr":
15
+ return {
16
+ type: "nonterminal",
17
+ name: e.name
18
+ };
19
+ case "RailroadSpecialExpr":
20
+ return {
21
+ type: "special",
22
+ text: e.text
23
+ };
24
+ case "RailroadSequenceExpr": {
25
+ const r = e.elements.map(a);
26
+ return r.length === 1 ? r[0] : { type: "sequence", elements: r };
27
+ }
28
+ case "RailroadChoiceExpr": {
29
+ const r = e.alternatives.map(a);
30
+ return r.length === 1 ? r[0] : { type: "choice", alternatives: r };
31
+ }
32
+ case "RailroadOptionalExpr":
33
+ return {
34
+ type: "optional",
35
+ element: a(e.element)
36
+ };
37
+ case "RailroadOneOrMoreExpr":
38
+ return {
39
+ type: "repetition",
40
+ element: a(e.element),
41
+ min: 1,
42
+ max: 1 / 0
43
+ };
44
+ case "RailroadZeroOrMoreExpr":
45
+ return {
46
+ type: "repetition",
47
+ element: a(e.element),
48
+ min: 0,
49
+ max: 1 / 0
50
+ };
51
+ default:
52
+ throw new Error(`Unsupported railroad expression: ${e.$type}`);
53
+ }
54
+ }, "transformExpression"), c = /* @__PURE__ */ l((e) => ({
55
+ name: e.name,
56
+ definition: a(e.definition)
57
+ }), "transformRule"), g = /* @__PURE__ */ l((e) => {
58
+ p(e, t), e.title && t.setTitle(e.title), e.rules.map((r) => t.addRule(c(r)));
59
+ }, "populateDb"), y = {
60
+ parse: /* @__PURE__ */ l((e) => {
61
+ t.clear(), n.debug("[Railroad Parser] Starting Langium parse");
62
+ const r = d.parse(e);
63
+ if (r.lexerErrors.length > 0 || r.parserErrors.length > 0)
64
+ throw new m(r);
65
+ const s = r.value;
66
+ n.debug("[Railroad Parser] Parsed rules:", s.rules.length), g(s), n.debug("[Railroad Parser] Parse complete");
67
+ }, "parse"),
68
+ parser: {
69
+ yy: t
70
+ }
71
+ }, E = {
72
+ parser: y,
73
+ db: t,
74
+ renderer: i,
75
+ styles: o
76
+ };
77
+ export {
78
+ E as diagram
79
+ };
80
+ //# sourceMappingURL=railroadDiagram-AXF67PYL-DuE0ZFxj.js.map