@schmitech/chatbot-widget 0.6.3 → 0.7.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 (82) hide show
  1. package/dist/ChatWidget.d.ts +11 -0
  2. package/dist/{_baseUniq-BPMphbq5-xiRWQlDn.js → _baseUniq-BRKsqoH--HqBVqMpT.js} +126 -126
  3. package/dist/arc-pab_su9s-DkImmxyv.js +84 -0
  4. package/dist/architecture-U656AL7Q-CRlU-eNB-vFayp_Gk.js +7 -0
  5. package/dist/{architectureDiagram-VXUJARFQ-BiqZtsDe-rYpYn0Hz.js → architectureDiagram-VXUJARFQ-DqQ8r_6g-DTzMoAeY.js} +5 -5
  6. package/dist/{blockDiagram-VD42YOAC-zcRIdFTD-B54KiQJD.js → blockDiagram-VD42YOAC-B-dKfcH3-DKPGmrNb.js} +50 -50
  7. package/dist/{c4Diagram-YG6GDRKO-DYXNcDX4-B9fXQAMg.js → c4Diagram-YG6GDRKO-DMUPaBEl-CXjiCiKq.js} +63 -63
  8. package/dist/channel-HKsfPa5q-B30_3C0d.js +6 -0
  9. package/dist/chatbot-widget.bundle.js +11596 -0
  10. package/dist/chatbot-widget.es.js +1 -1
  11. package/dist/chatbot-widget.umd.js +4342 -3550
  12. package/dist/{chunk-4BX2VUAB-DAh9ktmY-CF6YTNXg.js → chunk-4BX2VUAB-CX67kh_B-JdLaNmBY.js} +1 -1
  13. package/dist/chunk-55IACEB6-BocSyyvr--btUJ1po.js +9 -0
  14. package/dist/{chunk-B4BG7PRW-BTUSpeKy-CXaYsx4a.js → chunk-B4BG7PRW-CO8QAyfE-p5mLBzD4.js} +30 -30
  15. package/dist/{chunk-DI55MBZ5-DKt4WII7-CjsnNRFb.js → chunk-DI55MBZ5-Dw1L6Eos-zQC2oI_e.js} +149 -149
  16. package/dist/{chunk-FMBD7UC4-DdcCR8w3-BbYkKjQZ.js → chunk-FMBD7UC4-dPK7Boav-C-fxYlU9.js} +1 -1
  17. package/dist/{chunk-QN33PNHL-v6AkzOl1-DrzKpDUJ.js → chunk-QN33PNHL-vP2PqfVG-ByquTp49.js} +5 -5
  18. package/dist/{chunk-QZHKN3VN-DVJOrqBZ-BQORk0pj.js → chunk-QZHKN3VN-Bcidzu63-ukwvi4Mt.js} +1 -1
  19. package/dist/{chunk-TZMSLE5B-G2jJHqli-B_BRSOS0.js → chunk-TZMSLE5B-BtljMjlg-DP4v1MME.js} +1 -1
  20. package/dist/{classDiagram-v2-WZHVMYZB-CxmgTanh-ByLirDpd.js → classDiagram-2ON5EDUG-C7cYN9hv-CtX4c_16.js} +2 -2
  21. package/dist/{classDiagram-2ON5EDUG-CxmgTanh-ByLirDpd.js → classDiagram-v2-WZHVMYZB-C7cYN9hv-CtX4c_16.js} +2 -2
  22. package/dist/{clone-CsNB4mMi-B2bGL_Hr.js → clone-DoPb9X13-BkFPVisk.js} +1 -1
  23. package/dist/config/index.d.ts +81 -0
  24. package/dist/{cose-bilkent-S5V4N54A-BRr2Y6dg-C4O3AMLV.js → cose-bilkent-S5V4N54A-BGzO4EsH-BNoSF82N.js} +1 -1
  25. package/dist/{dagre-6UL2VRFP-DX8gNHmJ-BSzSR8Xh.js → dagre-6UL2VRFP-TzNvXCds-Dnr2OGZv.js} +45 -45
  26. package/dist/{diagram-PSM6KHXK-DNX818To-D60Hp_rL.js → diagram-PSM6KHXK-BqY4RpUg-BAHxSfLA.js} +119 -119
  27. package/dist/{diagram-QEK2KX5R-BDO6hKtm-BHvRInjZ.js → diagram-QEK2KX5R-CTjgBsne-D-9APhrR.js} +74 -74
  28. package/dist/{diagram-S2PKOQOG-IEqaDwzi-CZZkmLuc.js → diagram-S2PKOQOG-BqrhTIpA-DvsAaFEx.js} +21 -21
  29. package/dist/{erDiagram-Q2GNP2WA-DbLpN8Jp-902zC-_U.js → erDiagram-Q2GNP2WA-B2hsi_Tl-CQQl2KTS.js} +24 -24
  30. package/dist/{flowDiagram-NV44I4VS-pJlHae8Y-hM8e9jah.js → flowDiagram-NV44I4VS-C03vtt_F-Ds5DxRz1.js} +37 -37
  31. package/dist/{ganttDiagram-JELNMOA3-J0Tkq5TR-C8n0Mtt1.js → ganttDiagram-JELNMOA3-B3hAg964-D9cHQTuZ.js} +110 -110
  32. package/dist/gitGraph-F6HP7TQM-B-XXB6PA-CXOJho2m.js +7 -0
  33. package/dist/{gitGraphDiagram-NY62KEGX-DgYonpsZ-CAVA4-Vo.js → gitGraphDiagram-NY62KEGX-ByhMH0yZ-DTWIR_Gp.js} +238 -238
  34. package/dist/{graph-BpcfrHXY-Dllj_YdG.js → graph-BmNkcFEM-CTJN7Ty_.js} +67 -67
  35. package/dist/hooks/useAnimationManagement.d.ts +16 -0
  36. package/dist/hooks/useInputManagement.d.ts +21 -0
  37. package/dist/hooks/useScrollManagement.d.ts +17 -0
  38. package/dist/index-BXexqYFc-Bn0M0HQB.js +13693 -0
  39. package/dist/{index-DlxA4QQ9.js → index-DU3Jqd59.js} +80142 -50172
  40. package/dist/index.d.ts +19 -0
  41. package/dist/info-NVLQJR56-BJV_yXNb-CH_hMh0K.js +7 -0
  42. package/dist/infoDiagram-WHAUD3N6-is6Ho4-T-E3qEjHYs.js +25 -0
  43. package/dist/{journeyDiagram-XKPGCS4Q-CfjB2Qdf-nD3bX36U.js → journeyDiagram-XKPGCS4Q-CRTOL26C-VvuJ7JPc.js} +71 -71
  44. package/dist/{kanban-definition-3W4ZIXB7-CrW8yVmd-C_Okjmcp.js → kanban-definition-3W4ZIXB7-CNnO_t6O-BsqhwZAY.js} +88 -88
  45. package/dist/{layout-bsfAhWjc-fb3F3QBs.js → layout-C0kZPebx-CrIgKtBd.js} +109 -109
  46. package/dist/{mermaid-parser.core-3GIbpcw--KxsyRnD0.js → mermaid-parser.core-C88_DDui-CHG6v5qB.js} +10 -10
  47. package/dist/min-7Gb0pNxh-Cd_K7Lpk.js +39 -0
  48. package/dist/{mindmap-definition-VGOIOE7T-Dj37RkY_-BXffQH_4.js → mindmap-definition-VGOIOE7T-CJZ2wTTa-D4yK-MK1.js} +40 -40
  49. package/dist/packet-BFZMPI3H-DPt2EftX-Bgsdgnv-.js +7 -0
  50. package/dist/pie-7BOR55EZ-aEOtXZZV-CT0TLfil.js +7 -0
  51. package/dist/{pieDiagram-ADFJNKIX-BiQvDx8I-DnApOdvY.js → pieDiagram-ADFJNKIX-C9OSknjr-DguaGmOm.js} +49 -49
  52. package/dist/{quadrantDiagram-AYHSOK5B-D4b-YFzI-DrTslixM.js → quadrantDiagram-AYHSOK5B-CW8yuAqv-Dp9c_xnT.js} +54 -54
  53. package/dist/radar-NHE76QYJ-Dv7iPziq-DzohugO5.js +7 -0
  54. package/dist/{requirementDiagram-UZGBJVZJ-km07nlVd-C-mMa1KG.js → requirementDiagram-UZGBJVZJ-nGPhruO1-DINXeP9u.js} +5 -5
  55. package/dist/{sankeyDiagram-TZEHDZUN-LfuSRRbf-4X6kl_ss.js → sankeyDiagram-TZEHDZUN-CmL90u-m-YTiy7xgb.js} +146 -146
  56. package/dist/{sequenceDiagram-WL72ISMW-CQ4J-0_7-CEQiE3WJ.js → sequenceDiagram-WL72ISMW-B02VRcnM-B0n6W8Zi.js} +3 -3
  57. package/dist/shared/styles.d.ts +76 -0
  58. package/dist/{stateDiagram-FKZM4ZOC-JtogJwt6-YmKguJGd.js → stateDiagram-FKZM4ZOC-DjoyLUdz-BEUNa8-U.js} +14 -14
  59. package/dist/{stateDiagram-v2-4FDKWEC3-DuQ7UaeU-D6r92VaJ.js → stateDiagram-v2-4FDKWEC3-Bq76BTB7-DJxNsvnB.js} +2 -2
  60. package/dist/store/chatStore.d.ts +19 -0
  61. package/dist/{timeline-definition-IT6M3QCI-Cs3NnF2M-BigQwSNM.js → timeline-definition-IT6M3QCI-CTn0Gm3T-sHrk-A3B.js} +78 -78
  62. package/dist/treemap-KMMF4GRG-BjgLKKyi-CXHyJ_sr.js +7 -0
  63. package/dist/ui/ChatInput.d.ts +17 -0
  64. package/dist/ui/Message.d.ts +22 -0
  65. package/dist/ui/MessagesList.d.ts +32 -0
  66. package/dist/utils/contentFiltering.d.ts +12 -0
  67. package/dist/utils/sessionManager.d.ts +2 -0
  68. package/dist/{xychartDiagram-PRI3JC2R-JzAaXa5z-k94imfkQ.js → xychartDiagram-PRI3JC2R-Cgg6Uija-BysdxdV7.js} +79 -79
  69. package/package.json +9 -9
  70. package/dist/arc-D9rhTKV0-3XdW6Lry.js +0 -84
  71. package/dist/architecture-U656AL7Q-BFNI3st4-ChEUjpe5.js +0 -6
  72. package/dist/channel-CUIutAfm-COC3Ib4R.js +0 -6
  73. package/dist/chunk-55IACEB6-Cza7pcpr-C1E53ZSc.js +0 -9
  74. package/dist/gitGraph-F6HP7TQM-CD3YuciB-WOZqeAgY.js +0 -6
  75. package/dist/index-DvNpGWs7-CTu7Fgm8.js +0 -13251
  76. package/dist/info-NVLQJR56-yPC6AWqF-CQWIUnLc.js +0 -6
  77. package/dist/infoDiagram-WHAUD3N6-C3JLOAnb-o3ipZ1gK.js +0 -25
  78. package/dist/min-C2aDz5ZK-NndI1eE7.js +0 -39
  79. package/dist/packet-BFZMPI3H-3ROFuof--C96yO55O.js +0 -6
  80. package/dist/pie-7BOR55EZ-BZ_QeD6P-Bs0c_r6N.js +0 -6
  81. package/dist/radar-NHE76QYJ-BkSncUeS-jHSdaVBc.js +0 -6
  82. package/dist/treemap-KMMF4GRG-CkW25-tn-CkfndsG5.js +0 -6
@@ -1,19 +1,19 @@
1
- import { d as Jt } from "./chunk-55IACEB6-Cza7pcpr-C1E53ZSc.js";
2
- import { d as te } from "./chunk-QN33PNHL-v6AkzOl1-DrzKpDUJ.js";
3
- import { Q as d, s as T, k as F, u as ee, O as se, h as ie, B as re, p as ne, e as ae, v as oe, E as le, aU as ce, l as K, F as he } from "./index-DlxA4QQ9.js";
1
+ import { d as Jt } from "./chunk-55IACEB6-BocSyyvr--btUJ1po.js";
2
+ import { d as te } from "./chunk-QN33PNHL-vP2PqfVG-ByquTp49.js";
3
+ import { M as d, a as T, C as P, q as ee, r as se, g as ie, h as re, f as ae, e as ne, s as oe, t as le, aU as ce, m as K, N as he } from "./index-DU3Jqd59.js";
4
4
  typeof window < "u" && (window.global = window);
5
5
  var Dt = function() {
6
- var t = /* @__PURE__ */ d(function(B, r, n, y) {
7
- for (n = n || {}, y = B.length; y--; n[B[y]] = r) ;
8
- return n;
9
- }, "o"), e = [1, 2], a = [1, 3], s = [1, 4], c = [2, 4], o = [1, 9], f = [1, 11], m = [1, 16], u = [1, 17], S = [1, 18], E = [1, 19], g = [1, 33], N = [1, 20], A = [1, 21], R = [1, 22], D = [1, 23], I = [1, 24], h = [1, 26], C = [1, 27], v = [1, 28], w = [1, 29], M = [1, 30], Y = [1, 31], G = [1, 32], it = [1, 35], rt = [1, 36], nt = [1, 37], at = [1, 38], V = [1, 34], p = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], ot = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 39, 40, 41, 45, 48, 51, 52, 53, 54, 57], $t = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], gt = {
6
+ var t = /* @__PURE__ */ d(function(B, r, a, y) {
7
+ for (a = a || {}, y = B.length; y--; a[B[y]] = r) ;
8
+ return a;
9
+ }, "o"), e = [1, 2], n = [1, 3], s = [1, 4], c = [2, 4], o = [1, 9], f = [1, 11], m = [1, 16], u = [1, 17], S = [1, 18], E = [1, 19], g = [1, 33], O = [1, 20], A = [1, 21], R = [1, 22], D = [1, 23], I = [1, 24], h = [1, 26], C = [1, 27], v = [1, 28], w = [1, 29], M = [1, 30], Y = [1, 31], G = [1, 32], it = [1, 35], rt = [1, 36], at = [1, 37], nt = [1, 38], V = [1, 34], p = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], ot = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 39, 40, 41, 45, 48, 51, 52, 53, 54, 57], $t = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], gt = {
10
10
  trace: /* @__PURE__ */ d(function() {
11
11
  }, "trace"),
12
12
  yy: {},
13
13
  symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, styleStatement: 11, cssClassStatement: 12, idStatement: 13, DESCR: 14, "-->": 15, HIDE_EMPTY: 16, scale: 17, WIDTH: 18, COMPOSIT_STATE: 19, STRUCT_START: 20, STRUCT_STOP: 21, STATE_DESCR: 22, AS: 23, ID: 24, FORK: 25, JOIN: 26, CHOICE: 27, CONCURRENT: 28, note: 29, notePosition: 30, NOTE_TEXT: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, CLICK: 38, STRING: 39, HREF: 40, classDef: 41, CLASSDEF_ID: 42, CLASSDEF_STYLEOPTS: 43, DEFAULT: 44, style: 45, STYLE_IDS: 46, STYLEDEF_STYLEOPTS: 47, class: 48, CLASSENTITY_IDS: 49, STYLECLASS: 50, direction_tb: 51, direction_bt: 52, direction_rl: 53, direction_lr: 54, eol: 55, ";": 56, EDGE_STATE: 57, STYLE_SEPARATOR: 58, left_of: 59, right_of: 60, $accept: 0, $end: 1 },
14
14
  terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "CLICK", 39: "STRING", 40: "HREF", 41: "classDef", 42: "CLASSDEF_ID", 43: "CLASSDEF_STYLEOPTS", 44: "DEFAULT", 45: "style", 46: "STYLE_IDS", 47: "STYLEDEF_STYLEOPTS", 48: "class", 49: "CLASSENTITY_IDS", 50: "STYLECLASS", 51: "direction_tb", 52: "direction_bt", 53: "direction_rl", 54: "direction_lr", 56: ";", 57: "EDGE_STATE", 58: "STYLE_SEPARATOR", 59: "left_of", 60: "right_of" },
15
15
  productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [9, 5], [9, 5], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [55, 1], [55, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
16
- performAction: /* @__PURE__ */ d(function(B, r, n, y, _, i, x) {
16
+ performAction: /* @__PURE__ */ d(function(B, r, a, y, _, i, x) {
17
17
  var l = i.length - 1;
18
18
  switch (_) {
19
19
  case 3:
@@ -35,8 +35,8 @@ var Dt = function() {
35
35
  this.$ = i[l];
36
36
  break;
37
37
  case 13:
38
- const Z = i[l - 1];
39
- Z.description = y.trimColon(i[l]), this.$ = Z;
38
+ const Q = i[l - 1];
39
+ Q.description = y.trimColon(i[l]), this.$ = Q;
40
40
  break;
41
41
  case 14:
42
42
  this.$ = { stmt: "relation", state1: i[l - 2], state2: i[l] };
@@ -49,12 +49,12 @@ var Dt = function() {
49
49
  this.$ = { stmt: "state", id: i[l - 3], type: "default", description: "", doc: i[l - 1] };
50
50
  break;
51
51
  case 20:
52
- var z = i[l], X = i[l - 2].trim();
52
+ var U = i[l], X = i[l - 2].trim();
53
53
  if (i[l].match(":")) {
54
54
  var ct = i[l].split(":");
55
- z = ct[0], X = [X, ct[1]];
55
+ U = ct[0], X = [X, ct[1]];
56
56
  }
57
- this.$ = { stmt: "state", id: z, type: "default", description: X };
57
+ this.$ = { stmt: "state", id: U, type: "default", description: X };
58
58
  break;
59
59
  case 21:
60
60
  this.$ = { stmt: "state", id: i[l - 3], type: "default", description: i[l - 5], doc: i[l - 1] };
@@ -131,43 +131,43 @@ var Dt = function() {
131
131
  break;
132
132
  }
133
133
  }, "anonymous"),
134
- table: [{ 3: 1, 4: e, 5: a, 6: s }, { 1: [3] }, { 3: 5, 4: e, 5: a, 6: s }, { 3: 6, 4: e, 5: a, 6: s }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], c, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: o, 5: f, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 22: E, 24: g, 25: N, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: nt, 54: at, 57: V }, t(p, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 22: E, 24: g, 25: N, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: nt, 54: at, 57: V }, t(p, [2, 7]), t(p, [2, 8]), t(p, [2, 9]), t(p, [2, 10]), t(p, [2, 11]), t(p, [2, 12], { 14: [1, 40], 15: [1, 41] }), t(p, [2, 16]), { 18: [1, 42] }, t(p, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, t(p, [2, 22]), t(p, [2, 23]), t(p, [2, 24]), t(p, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, t(p, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, t(p, [2, 31]), { 13: 51, 24: g, 57: V }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, t(ot, [2, 44], { 58: [1, 56] }), t(ot, [2, 45], { 58: [1, 57] }), t(p, [2, 38]), t(p, [2, 39]), t(p, [2, 40]), t(p, [2, 41]), t(p, [2, 6]), t(p, [2, 13]), { 13: 58, 24: g, 57: V }, t(p, [2, 17]), t($t, c, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, t(p, [2, 29]), t(p, [2, 30]), { 39: [1, 63], 40: [1, 64] }, { 43: [1, 65] }, { 43: [1, 66] }, { 47: [1, 67] }, { 50: [1, 68] }, { 24: [1, 69] }, { 24: [1, 70] }, t(p, [2, 14], { 14: [1, 71] }), { 4: o, 5: f, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 21: [1, 72], 22: E, 24: g, 25: N, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: nt, 54: at, 57: V }, t(p, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), t(p, [2, 37]), t(ot, [2, 46]), t(ot, [2, 47]), t(p, [2, 15]), t(p, [2, 19]), t($t, c, { 7: 78 }), t(p, [2, 26]), t(p, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: o, 5: f, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 21: [1, 81], 22: E, 24: g, 25: N, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: nt, 54: at, 57: V }, t(p, [2, 32]), t(p, [2, 33]), t(p, [2, 21])],
134
+ table: [{ 3: 1, 4: e, 5: n, 6: s }, { 1: [3] }, { 3: 5, 4: e, 5: n, 6: s }, { 3: 6, 4: e, 5: n, 6: s }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], c, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: o, 5: f, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 22: E, 24: g, 25: O, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: at, 54: nt, 57: V }, t(p, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 22: E, 24: g, 25: O, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: at, 54: nt, 57: V }, t(p, [2, 7]), t(p, [2, 8]), t(p, [2, 9]), t(p, [2, 10]), t(p, [2, 11]), t(p, [2, 12], { 14: [1, 40], 15: [1, 41] }), t(p, [2, 16]), { 18: [1, 42] }, t(p, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, t(p, [2, 22]), t(p, [2, 23]), t(p, [2, 24]), t(p, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, t(p, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, t(p, [2, 31]), { 13: 51, 24: g, 57: V }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, t(ot, [2, 44], { 58: [1, 56] }), t(ot, [2, 45], { 58: [1, 57] }), t(p, [2, 38]), t(p, [2, 39]), t(p, [2, 40]), t(p, [2, 41]), t(p, [2, 6]), t(p, [2, 13]), { 13: 58, 24: g, 57: V }, t(p, [2, 17]), t($t, c, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, t(p, [2, 29]), t(p, [2, 30]), { 39: [1, 63], 40: [1, 64] }, { 43: [1, 65] }, { 43: [1, 66] }, { 47: [1, 67] }, { 50: [1, 68] }, { 24: [1, 69] }, { 24: [1, 70] }, t(p, [2, 14], { 14: [1, 71] }), { 4: o, 5: f, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 21: [1, 72], 22: E, 24: g, 25: O, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: at, 54: nt, 57: V }, t(p, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), t(p, [2, 37]), t(ot, [2, 46]), t(ot, [2, 47]), t(p, [2, 15]), t(p, [2, 19]), t($t, c, { 7: 78 }), t(p, [2, 26]), t(p, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: o, 5: f, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: S, 21: [1, 81], 22: E, 24: g, 25: O, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: at, 54: nt, 57: V }, t(p, [2, 32]), t(p, [2, 33]), t(p, [2, 21])],
135
135
  defaultActions: { 5: [2, 1], 6: [2, 2], 47: [2, 48], 48: [2, 49] },
136
136
  parseError: /* @__PURE__ */ d(function(B, r) {
137
137
  if (r.recoverable)
138
138
  this.trace(B);
139
139
  else {
140
- var n = new Error(B);
141
- throw n.hash = r, n;
140
+ var a = new Error(B);
141
+ throw a.hash = r, a;
142
142
  }
143
143
  }, "parseError"),
144
144
  parse: /* @__PURE__ */ d(function(B) {
145
- var r = this, n = [0], y = [], _ = [null], i = [], x = this.table, l = "", z = 0, X = 0, ct = 2, Z = 1, St = i.slice.call(arguments, 1), b = Object.create(this.lexer), U = { yy: {} };
145
+ var r = this, a = [0], y = [], _ = [null], i = [], x = this.table, l = "", U = 0, X = 0, ct = 2, Q = 1, St = i.slice.call(arguments, 1), b = Object.create(this.lexer), z = { yy: {} };
146
146
  for (var mt in this.yy)
147
- Object.prototype.hasOwnProperty.call(this.yy, mt) && (U.yy[mt] = this.yy[mt]);
148
- b.setInput(B, U.yy), U.yy.lexer = b, U.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
147
+ Object.prototype.hasOwnProperty.call(this.yy, mt) && (z.yy[mt] = this.yy[mt]);
148
+ b.setInput(B, z.yy), z.yy.lexer = b, z.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
149
149
  var _t = b.yylloc;
150
150
  i.push(_t);
151
- var Ht = b.options && b.options.ranges;
152
- typeof U.yy.parseError == "function" ? this.parseError = U.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
153
- function Zt(L) {
154
- n.length = n.length - 2 * L, _.length = _.length - L, i.length = i.length - L;
151
+ var Zt = b.options && b.options.ranges;
152
+ typeof z.yy.parseError == "function" ? this.parseError = z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
153
+ function Qt(L) {
154
+ a.length = a.length - 2 * L, _.length = _.length - L, i.length = i.length - L;
155
155
  }
156
- d(Zt, "popStack");
156
+ d(Qt, "popStack");
157
157
  function Ct() {
158
158
  var L;
159
- return L = y.pop() || b.lex() || Z, typeof L != "number" && (L instanceof Array && (y = L, L = y.pop()), L = r.symbols_[L] || L), L;
159
+ return L = y.pop() || b.lex() || Q, typeof L != "number" && (L instanceof Array && (y = L, L = y.pop()), L = r.symbols_[L] || L), L;
160
160
  }
161
161
  d(Ct, "lex");
162
- for (var $, W, O, Tt, Q = {}, ht, P, Lt, dt; ; ) {
163
- if (W = n[n.length - 1], this.defaultActions[W] ? O = this.defaultActions[W] : (($ === null || typeof $ > "u") && ($ = Ct()), O = x[W] && x[W][$]), typeof O > "u" || !O.length || !O[0]) {
162
+ for (var $, W, N, Tt, q = {}, ht, F, Lt, dt; ; ) {
163
+ if (W = a[a.length - 1], this.defaultActions[W] ? N = this.defaultActions[W] : (($ === null || typeof $ > "u") && ($ = Ct()), N = x[W] && x[W][$]), typeof N > "u" || !N.length || !N[0]) {
164
164
  var bt = "";
165
165
  dt = [];
166
166
  for (ht in x[W])
167
167
  this.terminals_[ht] && ht > ct && dt.push("'" + this.terminals_[ht] + "'");
168
- b.showPosition ? bt = "Parse error on line " + (z + 1) + `:
168
+ b.showPosition ? bt = "Parse error on line " + (U + 1) + `:
169
169
  ` + b.showPosition() + `
170
- Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt = "Parse error on line " + (z + 1) + ": Unexpected " + ($ == Z ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(bt, {
170
+ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt = "Parse error on line " + (U + 1) + ": Unexpected " + ($ == Q ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(bt, {
171
171
  text: b.match,
172
172
  token: this.terminals_[$] || $,
173
173
  line: b.yylineno,
@@ -175,32 +175,32 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
175
175
  expected: dt
176
176
  });
177
177
  }
178
- if (O[0] instanceof Array && O.length > 1)
178
+ if (N[0] instanceof Array && N.length > 1)
179
179
  throw new Error("Parse Error: multiple actions possible at state: " + W + ", token: " + $);
180
- switch (O[0]) {
180
+ switch (N[0]) {
181
181
  case 1:
182
- n.push($), _.push(b.yytext), i.push(b.yylloc), n.push(O[1]), $ = null, X = b.yyleng, l = b.yytext, z = b.yylineno, _t = b.yylloc;
182
+ a.push($), _.push(b.yytext), i.push(b.yylloc), a.push(N[1]), $ = null, X = b.yyleng, l = b.yytext, U = b.yylineno, _t = b.yylloc;
183
183
  break;
184
184
  case 2:
185
- if (P = this.productions_[O[1]][1], Q.$ = _[_.length - P], Q._$ = {
186
- first_line: i[i.length - (P || 1)].first_line,
185
+ if (F = this.productions_[N[1]][1], q.$ = _[_.length - F], q._$ = {
186
+ first_line: i[i.length - (F || 1)].first_line,
187
187
  last_line: i[i.length - 1].last_line,
188
- first_column: i[i.length - (P || 1)].first_column,
188
+ first_column: i[i.length - (F || 1)].first_column,
189
189
  last_column: i[i.length - 1].last_column
190
- }, Ht && (Q._$.range = [
191
- i[i.length - (P || 1)].range[0],
190
+ }, Zt && (q._$.range = [
191
+ i[i.length - (F || 1)].range[0],
192
192
  i[i.length - 1].range[1]
193
- ]), Tt = this.performAction.apply(Q, [
193
+ ]), Tt = this.performAction.apply(q, [
194
194
  l,
195
195
  X,
196
- z,
197
- U.yy,
198
- O[1],
196
+ U,
197
+ z.yy,
198
+ N[1],
199
199
  _,
200
200
  i
201
201
  ].concat(St)), typeof Tt < "u")
202
202
  return Tt;
203
- P && (n = n.slice(0, -1 * P * 2), _ = _.slice(0, -1 * P), i = i.slice(0, -1 * P)), n.push(this.productions_[O[1]][0]), _.push(Q.$), i.push(Q._$), Lt = x[n[n.length - 2]][n[n.length - 1]], n.push(Lt);
203
+ F && (a = a.slice(0, -1 * F * 2), _ = _.slice(0, -1 * F), i = i.slice(0, -1 * F)), a.push(this.productions_[N[1]][0]), _.push(q.$), i.push(q._$), Lt = x[a[a.length - 2]][a[a.length - 1]], a.push(Lt);
204
204
  break;
205
205
  case 3:
206
206
  return !0;
@@ -208,18 +208,18 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
208
208
  }
209
209
  return !0;
210
210
  }, "parse")
211
- }, qt = /* @__PURE__ */ function() {
211
+ }, Ht = /* @__PURE__ */ function() {
212
212
  var B = {
213
213
  EOF: 1,
214
- parseError: /* @__PURE__ */ d(function(r, n) {
214
+ parseError: /* @__PURE__ */ d(function(r, a) {
215
215
  if (this.yy.parser)
216
- this.yy.parser.parseError(r, n);
216
+ this.yy.parser.parseError(r, a);
217
217
  else
218
218
  throw new Error(r);
219
219
  }, "parseError"),
220
220
  // resets the lexer, sets new input
221
- setInput: /* @__PURE__ */ d(function(r, n) {
222
- return this.yy = n || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
221
+ setInput: /* @__PURE__ */ d(function(r, a) {
222
+ return this.yy = a || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
223
223
  first_line: 1,
224
224
  first_column: 0,
225
225
  last_line: 1,
@@ -230,13 +230,13 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
230
230
  input: /* @__PURE__ */ d(function() {
231
231
  var r = this._input[0];
232
232
  this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
233
- var n = r.match(/(?:\r\n?|\n).*/g);
234
- 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), r;
233
+ var a = r.match(/(?:\r\n?|\n).*/g);
234
+ return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
235
235
  }, "input"),
236
236
  // unshifts one char (or a string) into the input
237
237
  unput: /* @__PURE__ */ d(function(r) {
238
- var n = r.length, y = r.split(/(?:\r\n?|\n)/g);
239
- this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
238
+ var a = r.length, y = r.split(/(?:\r\n?|\n)/g);
239
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
240
240
  var _ = this.match.split(/(?:\r\n?|\n)/g);
241
241
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
242
242
  var i = this.yylloc.range;
@@ -244,8 +244,8 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
244
244
  first_line: this.yylloc.first_line,
245
245
  last_line: this.yylineno + 1,
246
246
  first_column: this.yylloc.first_column,
247
- last_column: y ? (y.length === _.length ? this.yylloc.first_column : 0) + _[_.length - y.length].length - y[0].length : this.yylloc.first_column - n
248
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
247
+ last_column: y ? (y.length === _.length ? this.yylloc.first_column : 0) + _[_.length - y.length].length - y[0].length : this.yylloc.first_column - a
248
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
249
249
  }, "unput"),
250
250
  // When called from action, caches matched text and appends it on next action
251
251
  more: /* @__PURE__ */ d(function() {
@@ -280,12 +280,12 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
280
280
  }, "upcomingInput"),
281
281
  // displays the character position where the lexing error occurred, i.e. for error messages
282
282
  showPosition: /* @__PURE__ */ d(function() {
283
- var r = this.pastInput(), n = new Array(r.length + 1).join("-");
283
+ var r = this.pastInput(), a = new Array(r.length + 1).join("-");
284
284
  return r + this.upcomingInput() + `
285
- ` + n + "^";
285
+ ` + a + "^";
286
286
  }, "showPosition"),
287
287
  // test the lexed token: return FALSE when not a match, otherwise return token
288
- test_match: /* @__PURE__ */ d(function(r, n) {
288
+ test_match: /* @__PURE__ */ d(function(r, a) {
289
289
  var y, _, i;
290
290
  if (this.options.backtrack_lexer && (i = {
291
291
  yylineno: this.yylineno,
@@ -311,7 +311,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
311
311
  last_line: this.yylineno + 1,
312
312
  first_column: this.yylloc.last_column,
313
313
  last_column: _ ? _[_.length - 1].length - _[_.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
314
- }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], y = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y)
314
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], y = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y)
315
315
  return y;
316
316
  if (this._backtrack) {
317
317
  for (var x in i)
@@ -325,22 +325,22 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
325
325
  if (this.done)
326
326
  return this.EOF;
327
327
  this._input || (this.done = !0);
328
- var r, n, y, _;
328
+ var r, a, y, _;
329
329
  this._more || (this.yytext = "", this.match = "");
330
330
  for (var i = this._currentRules(), x = 0; x < i.length; x++)
331
- if (y = this._input.match(this.rules[i[x]]), y && (!n || y[0].length > n[0].length)) {
332
- if (n = y, _ = x, this.options.backtrack_lexer) {
331
+ if (y = this._input.match(this.rules[i[x]]), y && (!a || y[0].length > a[0].length)) {
332
+ if (a = y, _ = x, this.options.backtrack_lexer) {
333
333
  if (r = this.test_match(y, i[x]), r !== !1)
334
334
  return r;
335
335
  if (this._backtrack) {
336
- n = !1;
336
+ a = !1;
337
337
  continue;
338
338
  } else
339
339
  return !1;
340
340
  } else if (!this.options.flex)
341
341
  break;
342
342
  }
343
- return n ? (r = this.test_match(n, i[_]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
343
+ return a ? (r = this.test_match(a, i[_]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
344
344
  ` + this.showPosition(), {
345
345
  text: "",
346
346
  token: null,
@@ -378,7 +378,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
378
378
  return this.conditionStack.length;
379
379
  }, "stateStackSize"),
380
380
  options: { "case-insensitive": !0 },
381
- performAction: /* @__PURE__ */ d(function(r, n, y, _) {
381
+ performAction: /* @__PURE__ */ d(function(r, a, y, _) {
382
382
  switch (y) {
383
383
  case 0:
384
384
  return 38;
@@ -464,17 +464,17 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
464
464
  this.pushState("STATE");
465
465
  break;
466
466
  case 39:
467
- return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
467
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
468
468
  case 40:
469
- return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
469
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
470
470
  case 41:
471
- return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
471
+ return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
472
472
  case 42:
473
- return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
473
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
474
474
  case 43:
475
- return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
475
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
476
476
  case 44:
477
- return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
477
+ return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
478
478
  case 45:
479
479
  return 51;
480
480
  case 46:
@@ -528,9 +528,9 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
528
528
  case 68:
529
529
  return this.popState(), this.pushState("NOTE_TEXT"), 24;
530
530
  case 69:
531
- return this.popState(), n.yytext = n.yytext.substr(2).trim(), 31;
531
+ return this.popState(), a.yytext = a.yytext.substr(2).trim(), 31;
532
532
  case 70:
533
- return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 31;
533
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 31;
534
534
  case 71:
535
535
  return 6;
536
536
  case 72:
@@ -542,7 +542,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
542
542
  case 75:
543
543
  return 24;
544
544
  case 76:
545
- return n.yytext = n.yytext.trim(), 14;
545
+ return a.yytext = a.yytext.trim(), 14;
546
546
  case 77:
547
547
  return 15;
548
548
  case 78:
@@ -560,38 +560,38 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt =
560
560
  };
561
561
  return B;
562
562
  }();
563
- gt.lexer = qt;
563
+ gt.lexer = Ht;
564
564
  function lt() {
565
565
  this.yy = {};
566
566
  }
567
567
  return d(lt, "Parser"), lt.prototype = gt, gt.Parser = lt, new lt();
568
568
  }();
569
569
  Dt.parser = Dt;
570
- var Ye = Dt, de = "TB", Ft = "TB", At = "dir", H = "state", q = "root", vt = "relation", ue = "classDef", pe = "style", ye = "applyClass", et = "default", Pt = "divider", Yt = "fill:none", Gt = "fill: #333", jt = "c", Mt = "text", zt = "normal", kt = "rect", Et = "rectWithTitle", fe = "stateStart", ge = "stateEnd", It = "divider", Ot = "roundedWithTitle", Se = "note", me = "noteGroup", st = "statediagram", _e = "state", Te = `${st}-${_e}`, Ut = "transition", be = "note", ke = "note-edge", Ee = `${Ut} ${ke}`, De = `${st}-${be}`, ve = "cluster", xe = `${st}-${ve}`, $e = "cluster-alt", Ce = `${st}-${$e}`, Wt = "parent", Kt = "note", Le = "state", xt = "----", Ae = `${xt}${Kt}`, Nt = `${xt}${Wt}`, Vt = /* @__PURE__ */ d((t, e = Ft) => {
570
+ var Ye = Dt, de = "TB", Pt = "TB", At = "dir", Z = "state", H = "root", vt = "relation", ue = "classDef", pe = "style", ye = "applyClass", et = "default", Ft = "divider", Yt = "fill:none", Gt = "fill: #333", jt = "c", Mt = "text", Ut = "normal", kt = "rect", Et = "rectWithTitle", fe = "stateStart", ge = "stateEnd", It = "divider", Nt = "roundedWithTitle", Se = "note", me = "noteGroup", st = "statediagram", _e = "state", Te = `${st}-${_e}`, zt = "transition", be = "note", ke = "note-edge", Ee = `${zt} ${ke}`, De = `${st}-${be}`, ve = "cluster", xe = `${st}-${ve}`, $e = "cluster-alt", Ce = `${st}-${$e}`, Wt = "parent", Kt = "note", Le = "state", xt = "----", Ae = `${xt}${Kt}`, Ot = `${xt}${Wt}`, Vt = /* @__PURE__ */ d((t, e = Pt) => {
571
571
  if (!t.doc)
572
572
  return e;
573
- let a = e;
573
+ let n = e;
574
574
  for (const s of t.doc)
575
- s.stmt === "dir" && (a = s.value);
576
- return a;
575
+ s.stmt === "dir" && (n = s.value);
576
+ return n;
577
577
  }, "getDir"), Ie = /* @__PURE__ */ d(function(t, e) {
578
578
  return e.db.getClasses();
579
- }, "getClasses"), Oe = /* @__PURE__ */ d(async function(t, e, a, s) {
579
+ }, "getClasses"), Ne = /* @__PURE__ */ d(async function(t, e, n, s) {
580
580
  T.info("REF0:"), T.info("Drawing state diagram (v2)", e);
581
- const { securityLevel: c, state: o, layout: f } = F();
581
+ const { securityLevel: c, state: o, layout: f } = P();
582
582
  s.db.extract(s.db.getRootDocV2());
583
583
  const m = s.db.getData(), u = Jt(e, c);
584
584
  m.type = s.type, m.layoutAlgorithm = f, m.nodeSpacing = (o == null ? void 0 : o.nodeSpacing) || 50, m.rankSpacing = (o == null ? void 0 : o.rankSpacing) || 50, m.markers = ["barb"], m.diagramId = e, await ee(m, u);
585
585
  const S = 8;
586
586
  try {
587
587
  (typeof s.db.getLinks == "function" ? s.db.getLinks() : /* @__PURE__ */ new Map()).forEach((E, g) => {
588
- var N;
588
+ var O;
589
589
  const A = typeof g == "string" ? g : typeof (g == null ? void 0 : g.id) == "string" ? g.id : "";
590
590
  if (!A) {
591
591
  T.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(g));
592
592
  return;
593
593
  }
594
- const R = (N = u.node()) == null ? void 0 : N.querySelectorAll("g");
594
+ const R = (O = u.node()) == null ? void 0 : O.querySelectorAll("g");
595
595
  let D;
596
596
  if (R == null || R.forEach((v) => {
597
597
  var w;
@@ -623,29 +623,29 @@ var Ye = Dt, de = "TB", Ft = "TB", At = "dir", H = "state", q = "root", vt = "re
623
623
  ), te(u, S, st, (o == null ? void 0 : o.useMaxWidth) ?? !0);
624
624
  }, "draw"), Ge = {
625
625
  getClasses: Ie,
626
- draw: Oe,
626
+ draw: Ne,
627
627
  getDir: Vt
628
628
  }, yt = /* @__PURE__ */ new Map(), j = 0;
629
- function ft(t = "", e = 0, a = "", s = xt) {
630
- const c = a !== null && a.length > 0 ? `${s}${a}` : "";
629
+ function ft(t = "", e = 0, n = "", s = xt) {
630
+ const c = n !== null && n.length > 0 ? `${s}${n}` : "";
631
631
  return `${Le}-${t}${c}-${e}`;
632
632
  }
633
633
  d(ft, "stateDomId");
634
- var Ne = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
634
+ var Oe = /* @__PURE__ */ d((t, e, n, s, c, o, f, m) => {
635
635
  T.trace("items", e), e.forEach((u) => {
636
636
  switch (u.stmt) {
637
- case H:
638
- tt(t, u, a, s, c, o, f, m);
637
+ case Z:
638
+ tt(t, u, n, s, c, o, f, m);
639
639
  break;
640
640
  case et:
641
- tt(t, u, a, s, c, o, f, m);
641
+ tt(t, u, n, s, c, o, f, m);
642
642
  break;
643
643
  case vt:
644
644
  {
645
645
  tt(
646
646
  t,
647
647
  u.state1,
648
- a,
648
+ n,
649
649
  s,
650
650
  c,
651
651
  o,
@@ -654,7 +654,7 @@ var Ne = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
654
654
  ), tt(
655
655
  t,
656
656
  u.state2,
657
- a,
657
+ n,
658
658
  s,
659
659
  c,
660
660
  o,
@@ -669,12 +669,12 @@ var Ne = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
669
669
  arrowTypeEnd: "arrow_barb",
670
670
  style: Yt,
671
671
  labelStyle: "",
672
- label: K.sanitizeText(u.description ?? "", F()),
672
+ label: K.sanitizeText(u.description ?? "", P()),
673
673
  arrowheadStyle: Gt,
674
674
  labelpos: jt,
675
675
  labelType: Mt,
676
- thickness: zt,
677
- classes: Ut,
676
+ thickness: Ut,
677
+ classes: zt,
678
678
  look: f
679
679
  };
680
680
  c.push(S), j++;
@@ -682,18 +682,18 @@ var Ne = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
682
682
  break;
683
683
  }
684
684
  });
685
- }, "setupDoc"), Rt = /* @__PURE__ */ d((t, e = Ft) => {
686
- let a = e;
685
+ }, "setupDoc"), Rt = /* @__PURE__ */ d((t, e = Pt) => {
686
+ let n = e;
687
687
  if (t.doc)
688
688
  for (const s of t.doc)
689
- s.stmt === "dir" && (a = s.value);
690
- return a;
689
+ s.stmt === "dir" && (n = s.value);
690
+ return n;
691
691
  }, "getDir");
692
- function J(t, e, a) {
692
+ function J(t, e, n) {
693
693
  if (!e.id || e.id === "</join></fork>" || e.id === "</choice>")
694
694
  return;
695
695
  e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((c) => {
696
- const o = a.get(c);
696
+ const o = n.get(c);
697
697
  o && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...o.styles]);
698
698
  }));
699
699
  const s = t.find((c) => c.id === e.id);
@@ -705,14 +705,14 @@ function Xt(t) {
705
705
  return ((e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) ?? "";
706
706
  }
707
707
  d(Xt, "getClassesFromDbInfo");
708
- function Qt(t) {
708
+ function qt(t) {
709
709
  return (t == null ? void 0 : t.styles) ?? [];
710
710
  }
711
- d(Qt, "getStylesFromDbInfo");
712
- var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
711
+ d(qt, "getStylesFromDbInfo");
712
+ var tt = /* @__PURE__ */ d((t, e, n, s, c, o, f, m) => {
713
713
  var u, S, E;
714
- const g = e.id, N = a.get(g), A = Xt(N), R = Qt(N), D = F();
715
- if (T.info("dataFetcher parsedItem", e, N, R), g !== "root") {
714
+ const g = e.id, O = n.get(g), A = Xt(O), R = qt(O), D = P();
715
+ if (T.info("dataFetcher parsedItem", e, O, R), g !== "root") {
716
716
  let I = kt;
717
717
  e.start === !0 ? I = fe : e.start === !1 && (I = ge), e.type !== et && (I = e.type), yt.get(g) || yt.set(g, {
718
718
  id: g,
@@ -722,7 +722,7 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
722
722
  cssStyles: R
723
723
  });
724
724
  const h = yt.get(g);
725
- e.description && (Array.isArray(h.description) ? (h.shape = Et, h.description.push(e.description)) : (u = h.description) != null && u.length && h.description.length > 0 ? (h.shape = Et, h.description === g ? h.description = [e.description] : h.description = [h.description, e.description]) : (h.shape = kt, h.description = e.description), h.description = K.sanitizeTextOrArray(h.description, D)), ((S = h.description) == null ? void 0 : S.length) === 1 && h.shape === Et && (h.type === "group" ? h.shape = Ot : h.shape = kt), !h.type && e.doc && (T.info("Setting cluster for XCX", g, Rt(e)), h.type = "group", h.isGroup = !0, h.dir = Rt(e), h.shape = e.type === Pt ? It : Ot, h.cssClasses = `${h.cssClasses} ${xe} ${o ? Ce : ""}`);
725
+ e.description && (Array.isArray(h.description) ? (h.shape = Et, h.description.push(e.description)) : (u = h.description) != null && u.length && h.description.length > 0 ? (h.shape = Et, h.description === g ? h.description = [e.description] : h.description = [h.description, e.description]) : (h.shape = kt, h.description = e.description), h.description = K.sanitizeTextOrArray(h.description, D)), ((S = h.description) == null ? void 0 : S.length) === 1 && h.shape === Et && (h.type === "group" ? h.shape = Nt : h.shape = kt), !h.type && e.doc && (T.info("Setting cluster for XCX", g, Rt(e)), h.type = "group", h.isGroup = !0, h.dir = Rt(e), h.shape = e.type === Ft ? It : Nt, h.cssClasses = `${h.cssClasses} ${xe} ${o ? Ce : ""}`);
726
726
  const C = {
727
727
  labelStyle: "",
728
728
  shape: h.shape,
@@ -756,13 +756,13 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
756
756
  padding: (E = D.flowchart) == null ? void 0 : E.padding,
757
757
  look: f,
758
758
  position: e.note.position
759
- }, w = g + Nt, M = {
759
+ }, w = g + Ot, M = {
760
760
  labelStyle: "",
761
761
  shape: me,
762
762
  label: e.note.text,
763
763
  cssClasses: h.cssClasses,
764
764
  cssStyles: [],
765
- id: g + Nt,
765
+ id: g + Ot,
766
766
  domId: ft(g, j, Wt),
767
767
  type: "group",
768
768
  isGroup: !0,
@@ -785,13 +785,13 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
785
785
  arrowheadStyle: Gt,
786
786
  labelpos: jt,
787
787
  labelType: Mt,
788
- thickness: zt,
788
+ thickness: Ut,
789
789
  look: f
790
790
  });
791
791
  } else
792
792
  J(s, C, m);
793
793
  }
794
- e.doc && (T.trace("Adding nodes children "), Ne(e, e.doc, a, s, c, !o, f, m));
794
+ e.doc && (T.trace("Adding nodes children "), Oe(e, e.doc, n, s, c, !o, f, m));
795
795
  }, "dataFetcher"), Re = /* @__PURE__ */ d(() => {
796
796
  yt.clear(), j = 0;
797
797
  }, "reset"), k = {
@@ -809,7 +809,7 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
809
809
  documents: {}
810
810
  }), "newDoc"), ut = /* @__PURE__ */ d((t) => JSON.parse(JSON.stringify(t)), "clone"), pt, je = (pt = class {
811
811
  constructor(t) {
812
- this.version = t, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = wt(), this.documents = { root: Bt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = ie, this.setAccTitle = re, this.getAccDescription = ne, this.setAccDescription = ae, this.setDiagramTitle = oe, this.getDiagramTitle = le, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
812
+ this.version = t, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = wt(), this.documents = { root: Bt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = ie, this.setAccTitle = re, this.getAccDescription = ae, this.setAccDescription = ne, this.setDiagramTitle = oe, this.getDiagramTitle = le, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
813
813
  }
814
814
  /**
815
815
  * Convert all of the statements (stmts) that were parsed into states and relationships.
@@ -824,7 +824,7 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
824
824
  this.clear(!0);
825
825
  for (const s of Array.isArray(t) ? t : t.doc)
826
826
  switch (s.stmt) {
827
- case H:
827
+ case Z:
828
828
  this.addState(s.id.trim(), s.type, s.doc, s.description, s.note);
829
829
  break;
830
830
  case vt:
@@ -843,7 +843,7 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
843
843
  this.addLink(s.id, s.url, s.tooltip);
844
844
  break;
845
845
  }
846
- const e = this.getStates(), a = F();
846
+ const e = this.getStates(), n = P();
847
847
  Re(), tt(
848
848
  void 0,
849
849
  this.getRootDocV2(),
@@ -851,7 +851,7 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
851
851
  this.nodes,
852
852
  this.edges,
853
853
  !0,
854
- a.look,
854
+ n.look,
855
855
  this.classes
856
856
  );
857
857
  for (const s of this.nodes)
@@ -864,14 +864,14 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
864
864
  }
865
865
  }
866
866
  handleStyleDef(t) {
867
- const e = t.id.trim().split(","), a = t.styleClass.split(",");
867
+ const e = t.id.trim().split(","), n = t.styleClass.split(",");
868
868
  for (const s of e) {
869
869
  let c = this.getState(s);
870
870
  if (!c) {
871
871
  const o = s.trim();
872
872
  this.addState(o), c = this.getState(o);
873
873
  }
874
- c && (c.styles = a.map((o) => {
874
+ c && (c.styles = n.map((o) => {
875
875
  var f;
876
876
  return (f = o.replace(/;/g, "")) == null ? void 0 : f.trim();
877
877
  }));
@@ -880,24 +880,24 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
880
880
  setRootDoc(t) {
881
881
  T.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
882
882
  }
883
- docTranslator(t, e, a) {
883
+ docTranslator(t, e, n) {
884
884
  if (e.stmt === vt) {
885
885
  this.docTranslator(t, e.state1, !0), this.docTranslator(t, e.state2, !1);
886
886
  return;
887
887
  }
888
- if (e.stmt === H && (e.id === k.START_NODE ? (e.id = t.id + (a ? "_start" : "_end"), e.start = a) : e.id = e.id.trim()), e.stmt !== q && e.stmt !== H || !e.doc)
888
+ if (e.stmt === Z && (e.id === k.START_NODE ? (e.id = t.id + (n ? "_start" : "_end"), e.start = n) : e.id = e.id.trim()), e.stmt !== H && e.stmt !== Z || !e.doc)
889
889
  return;
890
890
  const s = [];
891
891
  let c = [];
892
892
  for (const o of e.doc)
893
- if (o.type === Pt) {
893
+ if (o.type === Ft) {
894
894
  const f = ut(o);
895
895
  f.doc = ut(c), s.push(f), c = [];
896
896
  } else
897
897
  c.push(o);
898
898
  if (s.length > 0 && c.length > 0) {
899
899
  const o = {
900
- stmt: H,
900
+ stmt: Z,
901
901
  id: ce(),
902
902
  type: "divider",
903
903
  doc: ut(c)
@@ -908,10 +908,10 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
908
908
  }
909
909
  getRootDocV2() {
910
910
  return this.docTranslator(
911
- { id: q, stmt: q },
912
- { id: q, stmt: q, doc: this.rootDoc },
911
+ { id: H, stmt: H },
912
+ { id: H, stmt: H, doc: this.rootDoc },
913
913
  !0
914
- ), { id: q, doc: this.rootDoc };
914
+ ), { id: H, doc: this.rootDoc };
915
915
  }
916
916
  /**
917
917
  * Function called by parser when a node definition has been found.
@@ -921,15 +921,15 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
921
921
  * @param styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style.
922
922
  * @param textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style.
923
923
  */
924
- addState(t, e = et, a = void 0, s = void 0, c = void 0, o = void 0, f = void 0, m = void 0) {
924
+ addState(t, e = et, n = void 0, s = void 0, c = void 0, o = void 0, f = void 0, m = void 0) {
925
925
  const u = t == null ? void 0 : t.trim();
926
926
  if (!this.currentDocument.states.has(u))
927
927
  T.info("Adding state ", u, s), this.currentDocument.states.set(u, {
928
- stmt: H,
928
+ stmt: Z,
929
929
  id: u,
930
930
  descriptions: [],
931
931
  type: e,
932
- doc: a,
932
+ doc: n,
933
933
  note: c,
934
934
  classes: [],
935
935
  styles: [],
@@ -939,13 +939,13 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
939
939
  const S = this.currentDocument.states.get(u);
940
940
  if (!S)
941
941
  throw new Error(`State not found: ${u}`);
942
- S.doc || (S.doc = a), S.type || (S.type = e);
942
+ S.doc || (S.doc = n), S.type || (S.type = e);
943
943
  }
944
944
  if (s && (T.info("Setting state description", u, s), (Array.isArray(s) ? s : [s]).forEach((S) => this.addDescription(u, S.trim()))), c) {
945
945
  const S = this.currentDocument.states.get(u);
946
946
  if (!S)
947
947
  throw new Error(`State not found: ${u}`);
948
- S.note = c, S.note.text = K.sanitizeText(S.note.text, F());
948
+ S.note = c, S.note.text = K.sanitizeText(S.note.text, P());
949
949
  }
950
950
  o && (T.info("Setting state classes", u, o), (Array.isArray(o) ? o : [o]).forEach((S) => this.setCssClass(u, S.trim()))), f && (T.info("Setting state styles", u, f), (Array.isArray(f) ? f : [f]).forEach((S) => this.setStyle(u, S.trim()))), m && (T.info("Setting state styles", u, f), (Array.isArray(m) ? m : [m]).forEach((S) => this.setTextStyle(u, S.trim())));
951
951
  }
@@ -967,8 +967,8 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
967
967
  /**
968
968
  * Adds a clickable link to a state.
969
969
  */
970
- addLink(t, e, a) {
971
- this.links.set(t, { url: e, tooltip: a }), T.warn("Adding link", t, e, a);
970
+ addLink(t, e, n) {
971
+ this.links.set(t, { url: e, tooltip: n }), T.warn("Adding link", t, e, n);
972
972
  }
973
973
  /**
974
974
  * Get all registered links.
@@ -1007,7 +1007,7 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
1007
1007
  endTypeIfNeeded(t = "", e = et) {
1008
1008
  return t === k.END_NODE ? k.END_TYPE : e;
1009
1009
  }
1010
- addRelationObjs(t, e, a = "") {
1010
+ addRelationObjs(t, e, n = "") {
1011
1011
  const s = this.startIdIfNeeded(t.id.trim()), c = this.startTypeIfNeeded(t.id.trim(), t.type), o = this.startIdIfNeeded(e.id.trim()), f = this.startTypeIfNeeded(e.id.trim(), e.type);
1012
1012
  this.addState(
1013
1013
  s,
@@ -1030,28 +1030,28 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
1030
1030
  ), this.currentDocument.relations.push({
1031
1031
  id1: s,
1032
1032
  id2: o,
1033
- relationTitle: K.sanitizeText(a, F())
1033
+ relationTitle: K.sanitizeText(n, P())
1034
1034
  });
1035
1035
  }
1036
1036
  /**
1037
1037
  * Add a relation between two items. The items may be full objects or just the string id of a state.
1038
1038
  */
1039
- addRelation(t, e, a) {
1039
+ addRelation(t, e, n) {
1040
1040
  if (typeof t == "object" && typeof e == "object")
1041
- this.addRelationObjs(t, e, a);
1041
+ this.addRelationObjs(t, e, n);
1042
1042
  else if (typeof t == "string" && typeof e == "string") {
1043
1043
  const s = this.startIdIfNeeded(t.trim()), c = this.startTypeIfNeeded(t), o = this.endIdIfNeeded(e.trim()), f = this.endTypeIfNeeded(e);
1044
1044
  this.addState(s, c), this.addState(o, f), this.currentDocument.relations.push({
1045
1045
  id1: s,
1046
1046
  id2: o,
1047
- relationTitle: a ? K.sanitizeText(a, F()) : void 0
1047
+ relationTitle: n ? K.sanitizeText(n, P()) : void 0
1048
1048
  });
1049
1049
  }
1050
1050
  }
1051
1051
  addDescription(t, e) {
1052
- var a;
1052
+ var n;
1053
1053
  const s = this.currentDocument.states.get(t), c = e.startsWith(":") ? e.replace(":", "").trim() : e;
1054
- (a = s == null ? void 0 : s.descriptions) == null || a.push(K.sanitizeText(c, F()));
1054
+ (n = s == null ? void 0 : s.descriptions) == null || n.push(K.sanitizeText(c, P()));
1055
1055
  }
1056
1056
  cleanupLabel(t) {
1057
1057
  return t.startsWith(":") ? t.slice(2).trim() : t.trim();
@@ -1068,14 +1068,14 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
1068
1068
  */
1069
1069
  addStyleClass(t, e = "") {
1070
1070
  this.classes.has(t) || this.classes.set(t, { id: t, styles: [], textStyles: [] });
1071
- const a = this.classes.get(t);
1072
- e && a && e.split(k.STYLECLASS_SEP).forEach((s) => {
1071
+ const n = this.classes.get(t);
1072
+ e && n && e.split(k.STYLECLASS_SEP).forEach((s) => {
1073
1073
  const c = s.replace(/([^;]*);/, "$1").trim();
1074
1074
  if (RegExp(k.COLOR_KEYWORD).exec(s)) {
1075
1075
  const o = c.replace(k.FILL_KEYWORD, k.BG_FILL).replace(k.COLOR_KEYWORD, k.FILL_KEYWORD);
1076
- a.textStyles.push(o);
1076
+ n.textStyles.push(o);
1077
1077
  }
1078
- a.styles.push(c);
1078
+ n.styles.push(c);
1079
1079
  });
1080
1080
  }
1081
1081
  getClasses() {
@@ -1090,11 +1090,11 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
1090
1090
  * @param cssClassName - CSS class name
1091
1091
  */
1092
1092
  setCssClass(t, e) {
1093
- t.split(",").forEach((a) => {
1093
+ t.split(",").forEach((n) => {
1094
1094
  var s;
1095
- let c = this.getState(a);
1095
+ let c = this.getState(n);
1096
1096
  if (!c) {
1097
- const o = a.trim();
1097
+ const o = n.trim();
1098
1098
  this.addState(o), c = this.getState(o);
1099
1099
  }
1100
1100
  (s = c == null ? void 0 : c.classes) == null || s.push(e);
@@ -1111,8 +1111,8 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
1111
1111
  * @param styleText - the text of the attributes for the style
1112
1112
  */
1113
1113
  setStyle(t, e) {
1114
- var a, s;
1115
- (s = (a = this.getState(t)) == null ? void 0 : a.styles) == null || s.push(e);
1114
+ var n, s;
1115
+ (s = (n = this.getState(t)) == null ? void 0 : n.styles) == null || s.push(e);
1116
1116
  }
1117
1117
  /**
1118
1118
  * Add a text style to a state with the given id
@@ -1121,8 +1121,8 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
1121
1121
  * @param cssClassName - CSS class name
1122
1122
  */
1123
1123
  setTextStyle(t, e) {
1124
- var a, s;
1125
- (s = (a = this.getState(t)) == null ? void 0 : a.textStyles) == null || s.push(e);
1124
+ var n, s;
1125
+ (s = (n = this.getState(t)) == null ? void 0 : n.textStyles) == null || s.push(e);
1126
1126
  }
1127
1127
  /**
1128
1128
  * Finds the direction statement in the root document.
@@ -1143,7 +1143,7 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
1143
1143
  return t.startsWith(":") ? t.slice(1).trim() : t.trim();
1144
1144
  }
1145
1145
  getData() {
1146
- const t = F();
1146
+ const t = P();
1147
1147
  return {
1148
1148
  nodes: this.nodes,
1149
1149
  edges: this.edges,
@@ -1153,7 +1153,7 @@ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, f, m) => {
1153
1153
  };
1154
1154
  }
1155
1155
  getConfig() {
1156
- return F().state;
1156
+ return P().state;
1157
1157
  }
1158
1158
  }, d(pt, "StateDB"), pt.relationType = {
1159
1159
  AGGREGATION: 0,