@marimo-team/islands 0.13.16-dev2 → 0.13.16-dev21

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 (86) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BizAnuDQ.js → ConnectedDataExplorerComponent-CbgMGTNw.js} +1495 -1496
  2. package/dist/ImageComparisonComponent-BEvxQRYY.js +248 -0
  3. package/dist/{VegaLite-BvtjUHLS.js → VegaLite-CtlLD_UH.js} +12483 -12485
  4. package/dist/{_baseUniq-C1K8a5jF.js → _baseUniq-BPYian-Y.js} +13 -13
  5. package/dist/{any-language-editor-D3C2KiQW.js → any-language-editor-B9yuOY2a.js} +2 -2
  6. package/dist/{architectureDiagram-IEHRJDOE-DhrFWr1a.js → architectureDiagram-IEHRJDOE-yPyQlJjy.js} +1800 -1800
  7. package/dist/asn1-jKiBa2Ya.js +10 -10
  8. package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
  9. package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
  10. package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
  11. package/dist/blockDiagram-JOT3LUYC-548hLzGM.js +2249 -0
  12. package/dist/{c4Diagram-VJAJSXHY-DKSU0_Zg.js → c4Diagram-VJAJSXHY-CkEjf0GP.js} +401 -400
  13. package/dist/{channel-DMiLp-mI.js → channel-B4Bg4vOE.js} +1 -1
  14. package/dist/chunk-4BMEZGHF-De9P61oF.js +9 -0
  15. package/dist/chunk-A2AXSNBT-geH9ZZvt.js +1373 -0
  16. package/dist/chunk-AEK57VVT-B2sQ0hQa.js +1416 -0
  17. package/dist/{chunk-D6G4REZN-BZV3ukOi.js → chunk-D6G4REZN-C2nlv3Zm.js} +2 -2
  18. package/dist/{chunk-RZ5BOZE2-B4rOVQD8.js → chunk-RZ5BOZE2-CmOabQbu.js} +8 -8
  19. package/dist/chunk-XZIHB7SX-C-O1Dk7e.js +16 -0
  20. package/dist/{classDiagram-GIVACNV2-DLRT4_A4.js → classDiagram-GIVACNV2-Du2vgWFA.js} +2 -2
  21. package/dist/{classDiagram-v2-COTLJTTW-DLRT4_A4.js → classDiagram-v2-COTLJTTW-Du2vgWFA.js} +2 -2
  22. package/dist/clojure-CCKyeQKf.js +2 -2
  23. package/dist/{clone-CPwu6xRn.js → clone-DnSM2M6p.js} +1 -1
  24. package/dist/css-bIlmDBTK.js +19 -19
  25. package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
  26. package/dist/dagre-OKDRZEBW-CnGJy_Hk.js +447 -0
  27. package/dist/{data-editor-CYvUeKhw.js → data-editor--qYs3N6K.js} +5785 -5795
  28. package/dist/{diagram-SSKATNLV-D8WhiY2q.js → diagram-SSKATNLV-Ba25ch_t.js} +13 -13
  29. package/dist/{diagram-VNBRO52H-Bil9sOsr.js → diagram-VNBRO52H-ky1Bklgc.js} +3 -3
  30. package/dist/{erDiagram-Q7BY3M3F-J-Jm-DD7.js → erDiagram-Q7BY3M3F-DKx4pdnF.js} +263 -262
  31. package/dist/flowDiagram-4HSFHLVR-D2g6V5ro.js +1623 -0
  32. package/dist/{ganttDiagram-APWFNJXF-C2G0-fOq.js → ganttDiagram-APWFNJXF-CM2375VL.js} +45 -45
  33. package/dist/gitGraphDiagram-7IBYFJ6S-CYBXIIJu.js +712 -0
  34. package/dist/{graph-BFerxzEi.js → graph-BXO6Y4fK.js} +9 -9
  35. package/dist/{index-DfpR00QG.js → index-BXQhgr_p.js} +99 -98
  36. package/dist/{index-BhtvwOag.js → index-CLVuMf-N.js} +28 -28
  37. package/dist/{index-j8M50mVa.js → index-DsjbPR0S.js} +4 -4
  38. package/dist/{index-DkuVwdVm.js → index-kCGDeFbz.js} +9 -9
  39. package/dist/{infoDiagram-PH2N3AL5-AYtb1_Lz.js → infoDiagram-PH2N3AL5-Bysuy2jX.js} +3 -3
  40. package/dist/javascript-WMWNx-Vj.js +47 -47
  41. package/dist/{journeyDiagram-U35MCT3I-Bdz9gIBI.js → journeyDiagram-U35MCT3I-TBaQruI8.js} +18 -18
  42. package/dist/kanban-definition-NDS4AKOZ-D4jw_Hry.js +719 -0
  43. package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
  44. package/dist/{layout-Qs-BVu8V.js → layout-BUA-DPJm.js} +27 -27
  45. package/dist/{linear-SIbCb7yI.js → linear-BnTRnU3J.js} +2 -2
  46. package/dist/main-D-37AaR4.js +169855 -0
  47. package/dist/main.js +1 -1
  48. package/dist/mermaid-BzFQ2d9i.js +14517 -0
  49. package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
  50. package/dist/{min-BTA1UVkn.js → min-D_xIH6wU.js} +2 -2
  51. package/dist/{mindmap-definition-ALO5MXBD-CdrD5BzZ.js → mindmap-definition-ALO5MXBD-J6RsqNRW.js} +359 -359
  52. package/dist/mllike-BSnXJBGA.js +7 -7
  53. package/dist/{pieDiagram-IB7DONF6-BbbxWeqU.js → pieDiagram-IB7DONF6-CyMim2nt.js} +34 -34
  54. package/dist/pug-BqUR2bBq.js +35 -35
  55. package/dist/python-B5QdSKoL.js +18 -18
  56. package/dist/quadrantDiagram-7GDLP6J5-wbyf83kA.js +1025 -0
  57. package/dist/{radar-MK3ICKWK-Z5R0bt0z.js → radar-MK3ICKWK-BDGRcSnx.js} +2555 -2554
  58. package/dist/{react-plotly-DqDxe4Uh.js → react-plotly-DrgClWur.js} +6595 -6597
  59. package/dist/{requirementDiagram-KVF5MWMF-DMnvzAxX.js → requirementDiagram-KVF5MWMF-Cm8xuD8x.js} +251 -250
  60. package/dist/rpm-IznJm2Xc.js +9 -9
  61. package/dist/{sankeyDiagram-QLVOVGJD-DbUWg3a4.js → sankeyDiagram-QLVOVGJD-iRFZmvn2.js} +339 -338
  62. package/dist/{sequenceDiagram-X6HHIX6F-JltcBwLF.js → sequenceDiagram-X6HHIX6F-Dr8oo1TZ.js} +822 -821
  63. package/dist/{slides-component-DVr5mf9p.js → slides-component-D8N71t3Y.js} +280 -280
  64. package/dist/sql-mMre1Bo3.js +9 -9
  65. package/dist/{stateDiagram-DGXRK772-qbXtyoS6.js → stateDiagram-DGXRK772-BNQYJSkB.js} +17 -17
  66. package/dist/{stateDiagram-v2-YXO3MK2T-Ba7q5pMK.js → stateDiagram-v2-YXO3MK2T-Dl249u1C.js} +2 -2
  67. package/dist/style.css +1 -1
  68. package/dist/{time-DHD8Fix8.js → time-hpTGXdsY.js} +2 -2
  69. package/dist/{timeline-definition-BDJGKUSR-q4gOCBRq.js → timeline-definition-BDJGKUSR-kYwIJd20.js} +261 -261
  70. package/dist/timer-BYwnU4DF.js +378 -378
  71. package/dist/ttcn-cfg-Bac_acMi.js +9 -9
  72. package/dist/{vega-component-D2NZFVvw.js → vega-component-CIAcZw-F.js} +82 -82
  73. package/dist/{xychartDiagram-VJFVF3MP-BZs9xPvU.js → xychartDiagram-VJFVF3MP-Cj3j6vWQ.js} +472 -471
  74. package/package.json +7 -6
  75. package/dist/blockDiagram-JOT3LUYC-COVagShg.js +0 -2248
  76. package/dist/chunk-4BMEZGHF-CeMSohVe.js +0 -9
  77. package/dist/chunk-A2AXSNBT-mQ3fXQfx.js +0 -1372
  78. package/dist/chunk-AEK57VVT-B7kw2yt6.js +0 -1415
  79. package/dist/chunk-XZIHB7SX-C3-5SkZh.js +0 -15
  80. package/dist/dagre-OKDRZEBW-yEQf6TwX.js +0 -447
  81. package/dist/flowDiagram-4HSFHLVR-Dhymtq1g.js +0 -1622
  82. package/dist/gitGraphDiagram-7IBYFJ6S-DCZAwPro.js +0 -712
  83. package/dist/kanban-definition-NDS4AKOZ-ByLpDX9Y.js +0 -719
  84. package/dist/main-Cx3zrED9.js +0 -156521
  85. package/dist/mermaid-DAi_EtLa.js +0 -11991
  86. package/dist/quadrantDiagram-7GDLP6J5-1UQgbW9Z.js +0 -1024
@@ -1,91 +1,92 @@
1
- import { g as Dt, s as wt } from "./chunk-RZ5BOZE2-B4rOVQD8.js";
2
- import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, q as Ft, t as Yt, c as tt, l as D, z as Pt, y as zt, B as Gt, D as Kt, p as Zt, r as Ut, d as jt, u as Wt } from "./mermaid-DAi_EtLa.js";
3
- import { c as Qt } from "./channel-DMiLp-mI.js";
4
- var dt = function() {
5
- var s = /* @__PURE__ */ u(function(R, n, a, c) {
6
- for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
1
+ var _a;
2
+ import { g as vt, s as Dt } from "./chunk-RZ5BOZE2-CmOabQbu.js";
3
+ import { _ as o, b as wt, a as Vt, s as Lt, g as Mt, q as Bt, t as Ft, c as $, l as D, z as Yt, y as Pt, B as zt, D as Gt, p as Kt, r as Zt, d as Ut, u as jt } from "./mermaid-BzFQ2d9i.js";
4
+ import { c as Wt } from "./channel-B4Bg4vOE.js";
5
+ var ut = function() {
6
+ var e = /* @__PURE__ */ o(function(N, n, a, c) {
7
+ for (a = a || {}, c = N.length; c--; a[N[c]] = n) ;
7
8
  return a;
8
- }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], h = [1, 10], d = [1, 11], o = [1, 12], l = [1, 13], f = [1, 20], _ = [1, 21], E = [1, 22], V = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], L = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], M = [1, 52], B = [40, 50, 68, 69], F = [1, 63], Y = [1, 61], N = [1, 58], P = [1, 62], z = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], yt = [63, 64, 65, 66, 67], ft = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], v = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], G = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
9
- trace: /* @__PURE__ */ u(function() {
9
+ }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], d = [1, 10], l = [1, 11], h = [1, 12], p = [1, 13], R = [1, 20], g = [1, 21], m = [1, 22], w = [1, 23], K = [1, 24], k = [1, 19], tt = [1, 25], Z = [1, 26], S = [1, 18], V = [1, 33], et = [1, 34], st = [1, 35], it = [1, 36], rt = [1, 37], dt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], T = [1, 42], O = [1, 43], L = [1, 52], M = [40, 50, 68, 69], B = [1, 63], F = [1, 61], A = [1, 58], Y = [1, 62], P = [1, 64], U = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], pt = [63, 64, 65, 66, 67], ft = [1, 81], yt = [1, 80], _t = [1, 78], gt = [1, 79], bt = [6, 10, 42, 47], C = [6, 10, 13, 41, 42, 47, 48, 49], j = [1, 89], W = [1, 88], Q = [1, 87], z = [19, 56], mt = [1, 98], Et = [1, 97], nt = [19, 56, 58, 60], at = {
10
+ trace: /* @__PURE__ */ o(function() {
10
11
  }, "trace"),
11
12
  yy: {},
12
13
  symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, attribute: 51, attributeType: 52, attributeName: 53, attributeKeyTypeList: 54, attributeComment: 55, ATTRIBUTE_WORD: 56, attributeKeyType: 57, ",": 58, ATTRIBUTE_KEY: 59, COMMENT: 60, cardinality: 61, relType: 62, ZERO_OR_ONE: 63, ZERO_OR_MORE: 64, ONE_OR_MORE: 65, ONLY_ONE: 66, MD_PARENT: 67, NON_IDENTIFYING: 68, IDENTIFYING: 69, WORD: 70, $accept: 0, $end: 1 },
13
14
  terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 56: "ATTRIBUTE_WORD", 58: ",", 59: "ATTRIBUTE_KEY", 60: "COMMENT", 63: "ZERO_OR_ONE", 64: "ZERO_OR_MORE", 65: "ONE_OR_MORE", 66: "ONLY_ONE", 67: "MD_PARENT", 68: "NON_IDENTIFYING", 69: "IDENTIFYING", 70: "WORD" },
14
15
  productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [18, 1], [18, 2], [51, 2], [51, 3], [51, 3], [51, 4], [52, 1], [53, 1], [54, 1], [54, 3], [57, 1], [55, 1], [12, 3], [61, 1], [61, 1], [61, 1], [61, 1], [61, 1], [62, 1], [62, 1], [14, 1], [14, 1], [14, 1]],
15
- performAction: /* @__PURE__ */ u(function(n, a, c, r, p, t, K) {
16
- var e = t.length - 1;
17
- switch (p) {
16
+ performAction: /* @__PURE__ */ o(function(n, a, c, r, u, t, G) {
17
+ var s = t.length - 1;
18
+ switch (u) {
18
19
  case 1:
19
20
  break;
20
21
  case 2:
21
22
  this.$ = [];
22
23
  break;
23
24
  case 3:
24
- t[e - 1].push(t[e]), this.$ = t[e - 1];
25
+ t[s - 1].push(t[s]), this.$ = t[s - 1];
25
26
  break;
26
27
  case 4:
27
28
  case 5:
28
- this.$ = t[e];
29
+ this.$ = t[s];
29
30
  break;
30
31
  case 6:
31
32
  case 7:
32
33
  this.$ = [];
33
34
  break;
34
35
  case 8:
35
- r.addEntity(t[e - 4]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 4], t[e], t[e - 2], t[e - 3]);
36
+ r.addEntity(t[s - 4]), r.addEntity(t[s - 2]), r.addRelationship(t[s - 4], t[s], t[s - 2], t[s - 3]);
36
37
  break;
37
38
  case 9:
38
- r.addEntity(t[e - 8]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 8], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 8]], t[e - 6]), r.setClass([t[e - 4]], t[e - 2]);
39
+ r.addEntity(t[s - 8]), r.addEntity(t[s - 4]), r.addRelationship(t[s - 8], t[s], t[s - 4], t[s - 5]), r.setClass([t[s - 8]], t[s - 6]), r.setClass([t[s - 4]], t[s - 2]);
39
40
  break;
40
41
  case 10:
41
- r.addEntity(t[e - 6]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 6], t[e], t[e - 2], t[e - 3]), r.setClass([t[e - 6]], t[e - 4]);
42
+ r.addEntity(t[s - 6]), r.addEntity(t[s - 2]), r.addRelationship(t[s - 6], t[s], t[s - 2], t[s - 3]), r.setClass([t[s - 6]], t[s - 4]);
42
43
  break;
43
44
  case 11:
44
- r.addEntity(t[e - 6]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 6], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 4]], t[e - 2]);
45
+ r.addEntity(t[s - 6]), r.addEntity(t[s - 4]), r.addRelationship(t[s - 6], t[s], t[s - 4], t[s - 5]), r.setClass([t[s - 4]], t[s - 2]);
45
46
  break;
46
47
  case 12:
47
- r.addEntity(t[e - 3]), r.addAttributes(t[e - 3], t[e - 1]);
48
+ r.addEntity(t[s - 3]), r.addAttributes(t[s - 3], t[s - 1]);
48
49
  break;
49
50
  case 13:
50
- r.addEntity(t[e - 5]), r.addAttributes(t[e - 5], t[e - 1]), r.setClass([t[e - 5]], t[e - 3]);
51
+ r.addEntity(t[s - 5]), r.addAttributes(t[s - 5], t[s - 1]), r.setClass([t[s - 5]], t[s - 3]);
51
52
  break;
52
53
  case 14:
53
- r.addEntity(t[e - 2]);
54
+ r.addEntity(t[s - 2]);
54
55
  break;
55
56
  case 15:
56
- r.addEntity(t[e - 4]), r.setClass([t[e - 4]], t[e - 2]);
57
+ r.addEntity(t[s - 4]), r.setClass([t[s - 4]], t[s - 2]);
57
58
  break;
58
59
  case 16:
59
- r.addEntity(t[e]);
60
+ r.addEntity(t[s]);
60
61
  break;
61
62
  case 17:
62
- r.addEntity(t[e - 2]), r.setClass([t[e - 2]], t[e]);
63
+ r.addEntity(t[s - 2]), r.setClass([t[s - 2]], t[s]);
63
64
  break;
64
65
  case 18:
65
- r.addEntity(t[e - 6], t[e - 4]), r.addAttributes(t[e - 6], t[e - 1]);
66
+ r.addEntity(t[s - 6], t[s - 4]), r.addAttributes(t[s - 6], t[s - 1]);
66
67
  break;
67
68
  case 19:
68
- r.addEntity(t[e - 8], t[e - 6]), r.addAttributes(t[e - 8], t[e - 1]), r.setClass([t[e - 8]], t[e - 3]);
69
+ r.addEntity(t[s - 8], t[s - 6]), r.addAttributes(t[s - 8], t[s - 1]), r.setClass([t[s - 8]], t[s - 3]);
69
70
  break;
70
71
  case 20:
71
- r.addEntity(t[e - 5], t[e - 3]);
72
+ r.addEntity(t[s - 5], t[s - 3]);
72
73
  break;
73
74
  case 21:
74
- r.addEntity(t[e - 7], t[e - 5]), r.setClass([t[e - 7]], t[e - 2]);
75
+ r.addEntity(t[s - 7], t[s - 5]), r.setClass([t[s - 7]], t[s - 2]);
75
76
  break;
76
77
  case 22:
77
- r.addEntity(t[e - 3], t[e - 1]);
78
+ r.addEntity(t[s - 3], t[s - 1]);
78
79
  break;
79
80
  case 23:
80
- r.addEntity(t[e - 5], t[e - 3]), r.setClass([t[e - 5]], t[e]);
81
+ r.addEntity(t[s - 5], t[s - 3]), r.setClass([t[s - 5]], t[s]);
81
82
  break;
82
83
  case 24:
83
84
  case 25:
84
- this.$ = t[e].trim(), r.setAccTitle(this.$);
85
+ this.$ = t[s].trim(), r.setAccTitle(this.$);
85
86
  break;
86
87
  case 26:
87
88
  case 27:
88
- this.$ = t[e].trim(), r.setAccDescription(this.$);
89
+ this.$ = t[s].trim(), r.setAccDescription(this.$);
89
90
  break;
90
91
  case 32:
91
92
  r.setDirection("TB");
@@ -100,70 +101,70 @@ var dt = function() {
100
101
  r.setDirection("LR");
101
102
  break;
102
103
  case 36:
103
- this.$ = t[e - 3], r.addClass(t[e - 2], t[e - 1]);
104
+ this.$ = t[s - 3], r.addClass(t[s - 2], t[s - 1]);
104
105
  break;
105
106
  case 37:
106
107
  case 38:
107
108
  case 56:
108
109
  case 64:
109
- this.$ = [t[e]];
110
+ this.$ = [t[s]];
110
111
  break;
111
112
  case 39:
112
113
  case 40:
113
- this.$ = t[e - 2].concat([t[e]]);
114
+ this.$ = t[s - 2].concat([t[s]]);
114
115
  break;
115
116
  case 41:
116
- this.$ = t[e - 2], r.setClass(t[e - 1], t[e]);
117
+ this.$ = t[s - 2], r.setClass(t[s - 1], t[s]);
117
118
  break;
118
119
  case 42:
119
- this.$ = t[e - 3], r.addCssStyles(t[e - 2], t[e - 1]);
120
+ this.$ = t[s - 3], r.addCssStyles(t[s - 2], t[s - 1]);
120
121
  break;
121
122
  case 43:
122
- this.$ = [t[e]];
123
+ this.$ = [t[s]];
123
124
  break;
124
125
  case 44:
125
- t[e - 2].push(t[e]), this.$ = t[e - 2];
126
+ t[s - 2].push(t[s]), this.$ = t[s - 2];
126
127
  break;
127
128
  case 46:
128
- this.$ = t[e - 1] + t[e];
129
+ this.$ = t[s - 1] + t[s];
129
130
  break;
130
131
  case 54:
131
132
  case 76:
132
133
  case 77:
133
- this.$ = t[e].replace(/"/g, "");
134
+ this.$ = t[s].replace(/"/g, "");
134
135
  break;
135
136
  case 55:
136
137
  case 78:
137
- this.$ = t[e];
138
+ this.$ = t[s];
138
139
  break;
139
140
  case 57:
140
- t[e].push(t[e - 1]), this.$ = t[e];
141
+ t[s].push(t[s - 1]), this.$ = t[s];
141
142
  break;
142
143
  case 58:
143
- this.$ = { type: t[e - 1], name: t[e] };
144
+ this.$ = { type: t[s - 1], name: t[s] };
144
145
  break;
145
146
  case 59:
146
- this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
147
+ this.$ = { type: t[s - 2], name: t[s - 1], keys: t[s] };
147
148
  break;
148
149
  case 60:
149
- this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
150
+ this.$ = { type: t[s - 2], name: t[s - 1], comment: t[s] };
150
151
  break;
151
152
  case 61:
152
- this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
153
+ this.$ = { type: t[s - 3], name: t[s - 2], keys: t[s - 1], comment: t[s] };
153
154
  break;
154
155
  case 62:
155
156
  case 63:
156
157
  case 66:
157
- this.$ = t[e];
158
+ this.$ = t[s];
158
159
  break;
159
160
  case 65:
160
- t[e - 2].push(t[e]), this.$ = t[e - 2];
161
+ t[s - 2].push(t[s]), this.$ = t[s - 2];
161
162
  break;
162
163
  case 67:
163
- this.$ = t[e].replace(/"/g, "");
164
+ this.$ = t[s].replace(/"/g, "");
164
165
  break;
165
166
  case 68:
166
- this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
167
+ this.$ = { cardA: t[s], relType: t[s - 1], cardB: t[s - 2] };
167
168
  break;
168
169
  case 69:
169
170
  this.$ = r.Cardinality.ZERO_OR_ONE;
@@ -188,9 +189,9 @@ var dt = function() {
188
189
  break;
189
190
  }
190
191
  }, "anonymous"),
191
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: M }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(B, [2, 69]), s(B, [2, 70]), s(B, [2, 71]), s(B, [2, 72]), s(B, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: F, 38: 57, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: F, 38: 66, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: M }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: L, 64: st, 65: it, 66: rt, 67: nt }, s(yt, [2, 74]), s(yt, [2, 75]), { 6: ft, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), s(v, [2, 45]), s(v, [2, 50]), s(v, [2, 51]), s(v, [2, 52]), s(v, [2, 53]), s(i, [2, 41], { 42: N }), { 6: ft, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: M }, s(i, [2, 12]), { 19: [2, 57] }, s(G, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: F, 41: Y, 45: 101, 46: 60, 48: P, 49: z }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(v, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(G, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(G, [2, 60]), s(at, [2, 64]), s(G, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: M }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(G, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: M }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
192
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, e(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: d, 24: l, 26: h, 28: p, 29: 14, 30: 15, 31: 16, 32: 17, 33: R, 34: g, 35: m, 36: w, 37: K, 40: k, 43: tt, 44: Z, 50: S }, e(i, [2, 7], { 1: [2, 1] }), e(i, [2, 3]), { 9: 27, 11: 9, 22: d, 24: l, 26: h, 28: p, 29: 14, 30: 15, 31: 16, 32: 17, 33: R, 34: g, 35: m, 36: w, 37: K, 40: k, 43: tt, 44: Z, 50: S }, e(i, [2, 5]), e(i, [2, 6]), e(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: V, 64: et, 65: st, 66: it, 67: rt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, e(i, [2, 27]), e(i, [2, 28]), e(i, [2, 29]), e(i, [2, 30]), e(i, [2, 31]), e(dt, [2, 54]), e(dt, [2, 55]), e(i, [2, 32]), e(i, [2, 33]), e(i, [2, 34]), e(i, [2, 35]), { 16: 41, 40: T, 41: O }, { 16: 44, 40: T, 41: O }, { 16: 45, 40: T, 41: O }, e(i, [2, 4]), { 11: 46, 40: k, 50: S }, { 16: 47, 40: T, 41: O }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: L }, { 11: 53, 40: k, 50: S }, { 62: 54, 68: [1, 55], 69: [1, 56] }, e(M, [2, 69]), e(M, [2, 70]), e(M, [2, 71]), e(M, [2, 72]), e(M, [2, 73]), e(i, [2, 24]), e(i, [2, 25]), e(i, [2, 26]), { 13: B, 38: 57, 41: F, 42: A, 45: 59, 46: 60, 48: Y, 49: P }, e(U, [2, 37]), e(U, [2, 38]), { 16: 65, 40: T, 41: O, 42: A }, { 13: B, 38: 66, 41: F, 42: A, 45: 59, 46: 60, 48: Y, 49: P }, { 13: [1, 67], 15: [1, 68] }, e(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: A, 63: V, 64: et, 65: st, 66: it, 67: rt }), { 19: [1, 71] }, e(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: L }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: V, 64: et, 65: st, 66: it, 67: rt }, e(pt, [2, 74]), e(pt, [2, 75]), { 6: ft, 10: yt, 39: 77, 42: _t, 47: gt }, { 40: [1, 82], 41: [1, 83] }, e(bt, [2, 43], { 46: 84, 13: B, 41: F, 48: Y, 49: P }), e(C, [2, 45]), e(C, [2, 50]), e(C, [2, 51]), e(C, [2, 52]), e(C, [2, 53]), e(i, [2, 41], { 42: A }), { 6: ft, 10: yt, 39: 85, 42: _t, 47: gt }, { 14: 86, 40: j, 50: W, 70: Q }, { 16: 90, 40: T, 41: O }, { 11: 91, 40: k, 50: S }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: L }, e(i, [2, 12]), { 19: [2, 57] }, e(z, [2, 58], { 54: 94, 55: 95, 57: 96, 59: mt, 60: Et }), e([19, 56, 59, 60], [2, 63]), e(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), e([40, 50], [2, 68]), e(i, [2, 36]), { 13: B, 41: F, 45: 101, 46: 60, 48: Y, 49: P }, e(i, [2, 47]), e(i, [2, 48]), e(i, [2, 49]), e(U, [2, 39]), e(U, [2, 40]), e(C, [2, 46]), e(i, [2, 42]), e(i, [2, 8]), e(i, [2, 76]), e(i, [2, 77]), e(i, [2, 78]), { 13: [1, 102], 42: A }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, e(i, [2, 15]), e(z, [2, 59], { 55: 106, 58: [1, 107], 60: Et }), e(z, [2, 60]), e(nt, [2, 64]), e(z, [2, 67]), e(nt, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: L }, { 16: 110, 40: T, 41: O }, e(bt, [2, 44], { 46: 84, 13: B, 41: F, 48: Y, 49: P }), { 14: 111, 40: j, 50: W, 70: Q }, { 16: 112, 40: T, 41: O }, { 14: 113, 40: j, 50: W, 70: Q }, e(i, [2, 13]), e(z, [2, 61]), { 57: 114, 59: mt }, { 19: [1, 115] }, e(i, [2, 20]), e(i, [2, 23], { 17: [1, 116], 42: A }), e(i, [2, 11]), { 13: [1, 117], 42: A }, e(i, [2, 10]), e(nt, [2, 65]), e(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: L }, { 14: 120, 40: j, 50: W, 70: Q }, { 19: [1, 121] }, e(i, [2, 21]), e(i, [2, 9]), e(i, [2, 19])],
192
193
  defaultActions: { 52: [2, 62], 72: [2, 57] },
193
- parseError: /* @__PURE__ */ u(function(n, a) {
194
+ parseError: /* @__PURE__ */ o(function(n, a) {
194
195
  if (a.recoverable)
195
196
  this.trace(n);
196
197
  else {
@@ -198,85 +199,85 @@ var dt = function() {
198
199
  throw c.hash = a, c;
199
200
  }
200
201
  }, "parseError"),
201
- parse: /* @__PURE__ */ u(function(n) {
202
- var a = this, c = [0], r = [], p = [null], t = [], K = this.table, e = "", H = 0, St = 0, It = 2, Tt = 1, xt = t.slice.call(arguments, 1), y = Object.create(this.lexer), I = { yy: {} };
203
- for (var lt in this.yy)
204
- Object.prototype.hasOwnProperty.call(this.yy, lt) && (I.yy[lt] = this.yy[lt]);
205
- y.setInput(n, I.yy), I.yy.lexer = y, I.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
206
- var ot = y.yylloc;
207
- t.push(ot);
208
- var vt = y.options && y.options.ranges;
202
+ parse: /* @__PURE__ */ o(function(n) {
203
+ var a = this, c = [0], r = [], u = [null], t = [], G = this.table, s = "", q = 0, kt = 0, Rt = 2, St = 1, It = t.slice.call(arguments, 1), f = Object.create(this.lexer), I = { yy: {} };
204
+ for (var ct in this.yy)
205
+ Object.prototype.hasOwnProperty.call(this.yy, ct) && (I.yy[ct] = this.yy[ct]);
206
+ f.setInput(n, I.yy), I.yy.lexer = f, I.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
207
+ var lt = f.yylloc;
208
+ t.push(lt);
209
+ var xt = f.options && f.options.ranges;
209
210
  typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
210
- function Ct(b) {
211
- c.length = c.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
211
+ function Ct(_) {
212
+ c.length = c.length - 2 * _, u.length = u.length - _, t.length = t.length - _;
212
213
  }
213
- u(Ct, "popStack");
214
- function Ot() {
215
- var b;
216
- return b = r.pop() || y.lex() || Tt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
214
+ o(Ct, "popStack");
215
+ function Tt() {
216
+ var _;
217
+ return _ = r.pop() || f.lex() || St, typeof _ != "number" && (_ instanceof Array && (r = _, _ = r.pop()), _ = a.symbols_[_] || _), _;
217
218
  }
218
- u(Ot, "lex");
219
- for (var g, x, m, ht, C = {}, J, k, At, $; ; ) {
220
- if (x = c[c.length - 1], this.defaultActions[x] ? m = this.defaultActions[x] : ((g === null || typeof g > "u") && (g = Ot()), m = K[x] && K[x][g]), typeof m > "u" || !m.length || !m[0]) {
221
- var ut = "";
222
- $ = [];
223
- for (J in K[x])
224
- this.terminals_[J] && J > It && $.push("'" + this.terminals_[J] + "'");
225
- y.showPosition ? ut = "Parse error on line " + (H + 1) + `:
226
- ` + y.showPosition() + `
227
- Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut = "Parse error on line " + (H + 1) + ": Unexpected " + (g == Tt ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(ut, {
228
- text: y.match,
229
- token: this.terminals_[g] || g,
230
- line: y.yylineno,
231
- loc: ot,
232
- expected: $
219
+ o(Tt, "lex");
220
+ for (var y, x, b, ot, v = {}, H, E, Ot, J; ; ) {
221
+ if (x = c[c.length - 1], this.defaultActions[x] ? b = this.defaultActions[x] : ((y === null || typeof y > "u") && (y = Tt()), b = G[x] && G[x][y]), typeof b > "u" || !b.length || !b[0]) {
222
+ var ht = "";
223
+ J = [];
224
+ for (H in G[x])
225
+ this.terminals_[H] && H > Rt && J.push("'" + this.terminals_[H] + "'");
226
+ f.showPosition ? ht = "Parse error on line " + (q + 1) + `:
227
+ ` + f.showPosition() + `
228
+ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[y] || y) + "'" : ht = "Parse error on line " + (q + 1) + ": Unexpected " + (y == St ? "end of input" : "'" + (this.terminals_[y] || y) + "'"), this.parseError(ht, {
229
+ text: f.match,
230
+ token: this.terminals_[y] || y,
231
+ line: f.yylineno,
232
+ loc: lt,
233
+ expected: J
233
234
  });
234
235
  }
235
- if (m[0] instanceof Array && m.length > 1)
236
- throw new Error("Parse Error: multiple actions possible at state: " + x + ", token: " + g);
237
- switch (m[0]) {
236
+ if (b[0] instanceof Array && b.length > 1)
237
+ throw new Error("Parse Error: multiple actions possible at state: " + x + ", token: " + y);
238
+ switch (b[0]) {
238
239
  case 1:
239
- c.push(g), p.push(y.yytext), t.push(y.yylloc), c.push(m[1]), g = null, St = y.yyleng, e = y.yytext, H = y.yylineno, ot = y.yylloc;
240
+ c.push(y), u.push(f.yytext), t.push(f.yylloc), c.push(b[1]), y = null, kt = f.yyleng, s = f.yytext, q = f.yylineno, lt = f.yylloc;
240
241
  break;
241
242
  case 2:
242
- if (k = this.productions_[m[1]][1], C.$ = p[p.length - k], C._$ = {
243
- first_line: t[t.length - (k || 1)].first_line,
243
+ if (E = this.productions_[b[1]][1], v.$ = u[u.length - E], v._$ = {
244
+ first_line: t[t.length - (E || 1)].first_line,
244
245
  last_line: t[t.length - 1].last_line,
245
- first_column: t[t.length - (k || 1)].first_column,
246
+ first_column: t[t.length - (E || 1)].first_column,
246
247
  last_column: t[t.length - 1].last_column
247
- }, vt && (C._$.range = [
248
- t[t.length - (k || 1)].range[0],
248
+ }, xt && (v._$.range = [
249
+ t[t.length - (E || 1)].range[0],
249
250
  t[t.length - 1].range[1]
250
- ]), ht = this.performAction.apply(C, [
251
- e,
252
- St,
253
- H,
251
+ ]), ot = this.performAction.apply(v, [
252
+ s,
253
+ kt,
254
+ q,
254
255
  I.yy,
255
- m[1],
256
- p,
256
+ b[1],
257
+ u,
257
258
  t
258
- ].concat(xt)), typeof ht < "u")
259
- return ht;
260
- k && (c = c.slice(0, -1 * k * 2), p = p.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p.push(C.$), t.push(C._$), At = K[c[c.length - 2]][c[c.length - 1]], c.push(At);
259
+ ].concat(It)), typeof ot < "u")
260
+ return ot;
261
+ E && (c = c.slice(0, -1 * E * 2), u = u.slice(0, -1 * E), t = t.slice(0, -1 * E)), c.push(this.productions_[b[1]][0]), u.push(v.$), t.push(v._$), Ot = G[c[c.length - 2]][c[c.length - 1]], c.push(Ot);
261
262
  break;
262
263
  case 3:
263
- return !0;
264
+ return true;
264
265
  }
265
266
  }
266
- return !0;
267
+ return true;
267
268
  }, "parse")
268
- }, Rt = /* @__PURE__ */ function() {
269
- var R = {
269
+ }, Nt = /* @__PURE__ */ function() {
270
+ var N = {
270
271
  EOF: 1,
271
- parseError: /* @__PURE__ */ u(function(a, c) {
272
+ parseError: /* @__PURE__ */ o(function(a, c) {
272
273
  if (this.yy.parser)
273
274
  this.yy.parser.parseError(a, c);
274
275
  else
275
276
  throw new Error(a);
276
277
  }, "parseError"),
277
278
  // resets the lexer, sets new input
278
- setInput: /* @__PURE__ */ u(function(n, a) {
279
- return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
279
+ setInput: /* @__PURE__ */ o(function(n, a) {
280
+ return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
280
281
  first_line: 1,
281
282
  first_column: 0,
282
283
  last_line: 1,
@@ -284,34 +285,34 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
284
285
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
285
286
  }, "setInput"),
286
287
  // consumes and returns one char from the input
287
- input: /* @__PURE__ */ u(function() {
288
+ input: /* @__PURE__ */ o(function() {
288
289
  var n = this._input[0];
289
290
  this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
290
291
  var a = n.match(/(?:\r\n?|\n).*/g);
291
292
  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), n;
292
293
  }, "input"),
293
294
  // unshifts one char (or a string) into the input
294
- unput: /* @__PURE__ */ u(function(n) {
295
+ unput: /* @__PURE__ */ o(function(n) {
295
296
  var a = n.length, c = n.split(/(?:\r\n?|\n)/g);
296
297
  this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
297
298
  var r = this.match.split(/(?:\r\n?|\n)/g);
298
299
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
299
- var p = this.yylloc.range;
300
+ var u = this.yylloc.range;
300
301
  return this.yylloc = {
301
302
  first_line: this.yylloc.first_line,
302
303
  last_line: this.yylineno + 1,
303
304
  first_column: this.yylloc.first_column,
304
305
  last_column: c ? (c.length === r.length ? this.yylloc.first_column : 0) + r[r.length - c.length].length - c[0].length : this.yylloc.first_column - a
305
- }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
306
+ }, this.options.ranges && (this.yylloc.range = [u[0], u[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
306
307
  }, "unput"),
307
308
  // When called from action, caches matched text and appends it on next action
308
- more: /* @__PURE__ */ u(function() {
309
- return this._more = !0, this;
309
+ more: /* @__PURE__ */ o(function() {
310
+ return this._more = true, this;
310
311
  }, "more"),
311
312
  // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
312
- reject: /* @__PURE__ */ u(function() {
313
+ reject: /* @__PURE__ */ o(function() {
313
314
  if (this.options.backtrack_lexer)
314
- this._backtrack = !0;
315
+ this._backtrack = true;
315
316
  else
316
317
  return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
317
318
  ` + this.showPosition(), {
@@ -322,29 +323,29 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
322
323
  return this;
323
324
  }, "reject"),
324
325
  // retain first n characters of the match
325
- less: /* @__PURE__ */ u(function(n) {
326
+ less: /* @__PURE__ */ o(function(n) {
326
327
  this.unput(this.match.slice(n));
327
328
  }, "less"),
328
329
  // displays already matched input, i.e. for error messages
329
- pastInput: /* @__PURE__ */ u(function() {
330
+ pastInput: /* @__PURE__ */ o(function() {
330
331
  var n = this.matched.substr(0, this.matched.length - this.match.length);
331
332
  return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
332
333
  }, "pastInput"),
333
334
  // displays upcoming input, i.e. for error messages
334
- upcomingInput: /* @__PURE__ */ u(function() {
335
+ upcomingInput: /* @__PURE__ */ o(function() {
335
336
  var n = this.match;
336
337
  return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
337
338
  }, "upcomingInput"),
338
339
  // displays the character position where the lexing error occurred, i.e. for error messages
339
- showPosition: /* @__PURE__ */ u(function() {
340
+ showPosition: /* @__PURE__ */ o(function() {
340
341
  var n = this.pastInput(), a = new Array(n.length + 1).join("-");
341
342
  return n + this.upcomingInput() + `
342
343
  ` + a + "^";
343
344
  }, "showPosition"),
344
345
  // test the lexed token: return FALSE when not a match, otherwise return token
345
- test_match: /* @__PURE__ */ u(function(n, a) {
346
- var c, r, p;
347
- if (this.options.backtrack_lexer && (p = {
346
+ test_match: /* @__PURE__ */ o(function(n, a) {
347
+ var c, r, u;
348
+ if (this.options.backtrack_lexer && (u = {
348
349
  yylineno: this.yylineno,
349
350
  yylloc: {
350
351
  first_line: this.yylloc.first_line,
@@ -363,41 +364,41 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
363
364
  yy: this.yy,
364
365
  conditionStack: this.conditionStack.slice(0),
365
366
  done: this.done
366
- }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
367
+ }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
367
368
  first_line: this.yylloc.last_line,
368
369
  last_line: this.yylineno + 1,
369
370
  first_column: this.yylloc.last_column,
370
371
  last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
371
- }, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
372
+ }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), c)
372
373
  return c;
373
374
  if (this._backtrack) {
374
- for (var t in p)
375
- this[t] = p[t];
376
- return !1;
375
+ for (var t in u)
376
+ this[t] = u[t];
377
+ return false;
377
378
  }
378
- return !1;
379
+ return false;
379
380
  }, "test_match"),
380
381
  // return next match in input
381
- next: /* @__PURE__ */ u(function() {
382
+ next: /* @__PURE__ */ o(function() {
382
383
  if (this.done)
383
384
  return this.EOF;
384
- this._input || (this.done = !0);
385
+ this._input || (this.done = true);
385
386
  var n, a, c, r;
386
387
  this._more || (this.yytext = "", this.match = "");
387
- for (var p = this._currentRules(), t = 0; t < p.length; t++)
388
- if (c = this._input.match(this.rules[p[t]]), c && (!a || c[0].length > a[0].length)) {
388
+ for (var u = this._currentRules(), t = 0; t < u.length; t++)
389
+ if (c = this._input.match(this.rules[u[t]]), c && (!a || c[0].length > a[0].length)) {
389
390
  if (a = c, r = t, this.options.backtrack_lexer) {
390
- if (n = this.test_match(c, p[t]), n !== !1)
391
+ if (n = this.test_match(c, u[t]), n !== false)
391
392
  return n;
392
393
  if (this._backtrack) {
393
- a = !1;
394
+ a = false;
394
395
  continue;
395
396
  } else
396
- return !1;
397
+ return false;
397
398
  } else if (!this.options.flex)
398
399
  break;
399
400
  }
400
- return a ? (n = this.test_match(a, p[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
401
+ return a ? (n = this.test_match(a, u[r]), n !== false ? n : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
401
402
  ` + this.showPosition(), {
402
403
  text: "",
403
404
  token: null,
@@ -405,37 +406,37 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
405
406
  });
406
407
  }, "next"),
407
408
  // return next match that has a token
408
- lex: /* @__PURE__ */ u(function() {
409
+ lex: /* @__PURE__ */ o(function() {
409
410
  var a = this.next();
410
411
  return a || this.lex();
411
412
  }, "lex"),
412
413
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
413
- begin: /* @__PURE__ */ u(function(a) {
414
+ begin: /* @__PURE__ */ o(function(a) {
414
415
  this.conditionStack.push(a);
415
416
  }, "begin"),
416
417
  // pop the previously active lexer condition state off the condition stack
417
- popState: /* @__PURE__ */ u(function() {
418
+ popState: /* @__PURE__ */ o(function() {
418
419
  var a = this.conditionStack.length - 1;
419
420
  return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
420
421
  }, "popState"),
421
422
  // produce the lexer rule set which is active for the currently active lexer condition state
422
- _currentRules: /* @__PURE__ */ u(function() {
423
+ _currentRules: /* @__PURE__ */ o(function() {
423
424
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
424
425
  }, "_currentRules"),
425
426
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
426
- topState: /* @__PURE__ */ u(function(a) {
427
+ topState: /* @__PURE__ */ o(function(a) {
427
428
  return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
428
429
  }, "topState"),
429
430
  // alias for begin(condition)
430
- pushState: /* @__PURE__ */ u(function(a) {
431
+ pushState: /* @__PURE__ */ o(function(a) {
431
432
  this.begin(a);
432
433
  }, "pushState"),
433
434
  // return the number of states currently on the stack
434
- stateStackSize: /* @__PURE__ */ u(function() {
435
+ stateStackSize: /* @__PURE__ */ o(function() {
435
436
  return this.conditionStack.length;
436
437
  }, "stateStackSize"),
437
- options: { "case-insensitive": !0 },
438
- performAction: /* @__PURE__ */ u(function(a, c, r, p) {
438
+ options: { "case-insensitive": true },
439
+ performAction: /* @__PURE__ */ o(function(a, c, r, u) {
439
440
  switch (r) {
440
441
  case 0:
441
442
  return this.begin("acc_title"), 24;
@@ -592,18 +593,18 @@ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut =
592
593
  }
593
594
  }, "anonymous"),
594
595
  rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:1\b)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:\s*u\b)/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:[0-9])/i, /^(?:.)/i, /^(?:$)/i],
595
- conditions: { style: { rules: [34, 35, 36, 37, 38, 69, 70], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 71, 72, 73, 74], inclusive: !0 } }
596
+ conditions: { style: { rules: [34, 35, 36, 37, 38, 69, 70], inclusive: false }, acc_descr_multiline: { rules: [5, 6], inclusive: false }, acc_descr: { rules: [3], inclusive: false }, acc_title: { rules: [1], inclusive: false }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: false }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 71, 72, 73, 74], inclusive: true } }
596
597
  };
597
- return R;
598
+ return N;
598
599
  }();
599
- ct.lexer = Rt;
600
- function q() {
600
+ at.lexer = Nt;
601
+ function X() {
601
602
  this.yy = {};
602
603
  }
603
- return u(q, "Parser"), q.prototype = ct, ct.Parser = q, new q();
604
+ return o(X, "Parser"), X.prototype = at, at.Parser = X, new X();
604
605
  }();
605
- dt.parser = dt;
606
- var Xt = dt, w, qt = (w = class {
606
+ ut.parser = ut;
607
+ var Qt = ut, Xt = (_a = class {
607
608
  constructor() {
608
609
  this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
609
610
  ZERO_OR_ONE: "ZERO_OR_ONE",
@@ -614,28 +615,28 @@ var Xt = dt, w, qt = (w = class {
614
615
  }, this.Identification = {
615
616
  NON_IDENTIFYING: "NON_IDENTIFYING",
616
617
  IDENTIFYING: "IDENTIFYING"
617
- }, this.setAccTitle = Vt, this.getAccTitle = Lt, this.setAccDescription = Mt, this.getAccDescription = Bt, this.setDiagramTitle = Ft, this.getDiagramTitle = Yt, this.getConfig = /* @__PURE__ */ u(() => tt().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
618
+ }, this.setAccTitle = wt, this.getAccTitle = Vt, this.setAccDescription = Lt, this.getAccDescription = Mt, this.setDiagramTitle = Bt, this.getDiagramTitle = Ft, this.getConfig = /* @__PURE__ */ o(() => $().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
618
619
  }
619
620
  /**
620
621
  * Add entity
621
622
  * @param name - The name of the entity
622
623
  * @param alias - The alias of the entity
623
624
  */
624
- addEntity(i, h = "") {
625
- var d;
626
- return this.entities.has(i) ? !((d = this.entities.get(i)) != null && d.alias) && h && (this.entities.get(i).alias = h, D.info(`Add alias '${h}' to entity '${i}'`)) : (this.entities.set(i, {
627
- id: `entity-${i}-${this.entities.size}`,
628
- label: i,
625
+ addEntity(e, i = "") {
626
+ var _a2;
627
+ return this.entities.has(e) ? !((_a2 = this.entities.get(e)) == null ? void 0 : _a2.alias) && i && (this.entities.get(e).alias = i, D.info(`Add alias '${i}' to entity '${e}'`)) : (this.entities.set(e, {
628
+ id: `entity-${e}-${this.entities.size}`,
629
+ label: e,
629
630
  attributes: [],
630
- alias: h,
631
+ alias: i,
631
632
  shape: "erBox",
632
- look: tt().look ?? "default",
633
+ look: $().look ?? "default",
633
634
  cssClasses: "default",
634
635
  cssStyles: []
635
- }), D.info("Added new entity :", i)), this.entities.get(i);
636
+ }), D.info("Added new entity :", e)), this.entities.get(e);
636
637
  }
637
- getEntity(i) {
638
- return this.entities.get(i);
638
+ getEntity(e) {
639
+ return this.entities.get(e);
639
640
  }
640
641
  getEntities() {
641
642
  return this.entities;
@@ -643,11 +644,11 @@ var Xt = dt, w, qt = (w = class {
643
644
  getClasses() {
644
645
  return this.classes;
645
646
  }
646
- addAttributes(i, h) {
647
- const d = this.addEntity(i);
648
- let o;
649
- for (o = h.length - 1; o >= 0; o--)
650
- h[o].keys || (h[o].keys = []), h[o].comment || (h[o].comment = ""), d.attributes.push(h[o]), D.debug("Added attribute ", h[o].name);
647
+ addAttributes(e, i) {
648
+ const d = this.addEntity(e);
649
+ let l;
650
+ for (l = i.length - 1; l >= 0; l--)
651
+ i[l].keys || (i[l].keys = []), i[l].comment || (i[l].comment = ""), d.attributes.push(i[l]), D.debug("Added attribute ", i[l].name);
651
652
  }
652
653
  /**
653
654
  * Add a relationship
@@ -657,17 +658,17 @@ var Xt = dt, w, qt = (w = class {
657
658
  * @param entB - The second entity in the relationship
658
659
  * @param rSpec - The details of the relationship between the two entities
659
660
  */
660
- addRelationship(i, h, d, o) {
661
- const l = this.entities.get(i), f = this.entities.get(d);
662
- if (!l || !f)
661
+ addRelationship(e, i, d, l) {
662
+ const h = this.entities.get(e), p = this.entities.get(d);
663
+ if (!h || !p)
663
664
  return;
664
- const _ = {
665
- entityA: l.id,
666
- roleA: h,
667
- entityB: f.id,
668
- relSpec: o
665
+ const R = {
666
+ entityA: h.id,
667
+ roleA: i,
668
+ entityB: p.id,
669
+ relSpec: l
669
670
  };
670
- this.relationships.push(_), D.debug("Added new relationship :", _);
671
+ this.relationships.push(R), D.debug("Added new relationship :", R);
671
672
  }
672
673
  getRelationships() {
673
674
  return this.relationships;
@@ -675,132 +676,132 @@ var Xt = dt, w, qt = (w = class {
675
676
  getDirection() {
676
677
  return this.direction;
677
678
  }
678
- setDirection(i) {
679
- this.direction = i;
679
+ setDirection(e) {
680
+ this.direction = e;
680
681
  }
681
- getCompiledStyles(i) {
682
- let h = [];
683
- for (const d of i) {
684
- const o = this.classes.get(d);
685
- o != null && o.styles && (h = [...h, ...o.styles ?? []].map((l) => l.trim())), o != null && o.textStyles && (h = [...h, ...o.textStyles ?? []].map((l) => l.trim()));
682
+ getCompiledStyles(e) {
683
+ let i = [];
684
+ for (const d of e) {
685
+ const l = this.classes.get(d);
686
+ (l == null ? void 0 : l.styles) && (i = [...i, ...l.styles ?? []].map((h) => h.trim())), (l == null ? void 0 : l.textStyles) && (i = [...i, ...l.textStyles ?? []].map((h) => h.trim()));
686
687
  }
687
- return h;
688
+ return i;
688
689
  }
689
- addCssStyles(i, h) {
690
- for (const d of i) {
691
- const o = this.entities.get(d);
692
- if (!h || !o)
690
+ addCssStyles(e, i) {
691
+ for (const d of e) {
692
+ const l = this.entities.get(d);
693
+ if (!i || !l)
693
694
  return;
694
- for (const l of h)
695
- o.cssStyles.push(l);
695
+ for (const h of i)
696
+ l.cssStyles.push(h);
696
697
  }
697
698
  }
698
- addClass(i, h) {
699
- i.forEach((d) => {
700
- let o = this.classes.get(d);
701
- o === void 0 && (o = { id: d, styles: [], textStyles: [] }, this.classes.set(d, o)), h && h.forEach(function(l) {
702
- if (/color/.exec(l)) {
703
- const f = l.replace("fill", "bgFill");
704
- o.textStyles.push(f);
699
+ addClass(e, i) {
700
+ e.forEach((d) => {
701
+ let l = this.classes.get(d);
702
+ l === void 0 && (l = { id: d, styles: [], textStyles: [] }, this.classes.set(d, l)), i && i.forEach(function(h) {
703
+ if (/color/.exec(h)) {
704
+ const p = h.replace("fill", "bgFill");
705
+ l.textStyles.push(p);
705
706
  }
706
- o.styles.push(l);
707
+ l.styles.push(h);
707
708
  });
708
709
  });
709
710
  }
710
- setClass(i, h) {
711
- for (const d of i) {
712
- const o = this.entities.get(d);
713
- if (o)
714
- for (const l of h)
715
- o.cssClasses += " " + l;
711
+ setClass(e, i) {
712
+ for (const d of e) {
713
+ const l = this.entities.get(d);
714
+ if (l)
715
+ for (const h of i)
716
+ l.cssClasses += " " + h;
716
717
  }
717
718
  }
718
719
  clear() {
719
- this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Pt();
720
+ this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Yt();
720
721
  }
721
722
  getData() {
722
- const i = [], h = [], d = tt();
723
- for (const l of this.entities.keys()) {
724
- const f = this.entities.get(l);
725
- f && (f.cssCompiledStyles = this.getCompiledStyles(f.cssClasses.split(" ")), i.push(f));
723
+ const e = [], i = [], d = $();
724
+ for (const h of this.entities.keys()) {
725
+ const p = this.entities.get(h);
726
+ p && (p.cssCompiledStyles = this.getCompiledStyles(p.cssClasses.split(" ")), e.push(p));
726
727
  }
727
- let o = 0;
728
- for (const l of this.relationships) {
729
- const f = {
730
- id: zt(l.entityA, l.entityB, {
728
+ let l = 0;
729
+ for (const h of this.relationships) {
730
+ const p = {
731
+ id: Pt(h.entityA, h.entityB, {
731
732
  prefix: "id",
732
- counter: o++
733
+ counter: l++
733
734
  }),
734
735
  type: "normal",
735
736
  curve: "basis",
736
- start: l.entityA,
737
- end: l.entityB,
738
- label: l.roleA,
737
+ start: h.entityA,
738
+ end: h.entityB,
739
+ label: h.roleA,
739
740
  labelpos: "c",
740
741
  thickness: "normal",
741
742
  classes: "relationshipLine",
742
- arrowTypeStart: l.relSpec.cardB.toLowerCase(),
743
- arrowTypeEnd: l.relSpec.cardA.toLowerCase(),
744
- pattern: l.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
743
+ arrowTypeStart: h.relSpec.cardB.toLowerCase(),
744
+ arrowTypeEnd: h.relSpec.cardA.toLowerCase(),
745
+ pattern: h.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
745
746
  look: d.look
746
747
  };
747
- h.push(f);
748
+ i.push(p);
748
749
  }
749
- return { nodes: i, edges: h, other: {}, config: d, direction: "TB" };
750
+ return { nodes: e, edges: i, other: {}, config: d, direction: "TB" };
750
751
  }
751
- }, u(w, "ErDB"), w), Nt = {};
752
- Kt(Nt, {
753
- draw: () => Ht
752
+ }, o(_a, "ErDB"), _a), At = {};
753
+ Gt(At, {
754
+ draw: () => qt
754
755
  });
755
- var Ht = /* @__PURE__ */ u(async function(s, i, h, d) {
756
+ var qt = /* @__PURE__ */ o(async function(e, i, d, l) {
756
757
  D.info("REF0:"), D.info("Drawing er diagram (unified)", i);
757
- const { securityLevel: o, er: l, layout: f } = tt(), _ = d.db.getData(), E = Dt(i, o);
758
- _.type = d.type, _.layoutAlgorithm = Zt(f), _.config.flowchart.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 140, _.config.flowchart.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 80, _.direction = d.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await Ut(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
759
- const V = E.selectAll('[id*="-background"]');
760
- Array.from(V).length > 0 && V.each(function() {
761
- const S = jt(this), U = S.attr("id").replace("-background", ""), T = E.select(`#${CSS.escape(U)}`);
762
- if (!T.empty()) {
763
- const L = T.attr("transform");
764
- S.attr("transform", L);
758
+ const { securityLevel: h, er: p, layout: R } = $(), g = l.db.getData(), m = vt(i, h);
759
+ g.type = l.type, g.layoutAlgorithm = Kt(R), g.config.flowchart.nodeSpacing = (p == null ? void 0 : p.nodeSpacing) || 140, g.config.flowchart.rankSpacing = (p == null ? void 0 : p.rankSpacing) || 80, g.direction = l.db.getDirection(), g.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], g.diagramId = i, await Zt(g, m), g.layoutAlgorithm === "elk" && m.select(".edges").lower();
760
+ const w = m.selectAll('[id*="-background"]');
761
+ Array.from(w).length > 0 && w.each(function() {
762
+ const k = Ut(this), Z = k.attr("id").replace("-background", ""), S = m.select(`#${CSS.escape(Z)}`);
763
+ if (!S.empty()) {
764
+ const V = S.attr("transform");
765
+ k.attr("transform", V);
765
766
  }
766
767
  });
767
- const Z = 8;
768
- Wt.insertTitle(
769
- E,
768
+ const K = 8;
769
+ jt.insertTitle(
770
+ m,
770
771
  "erDiagramTitleText",
771
- (l == null ? void 0 : l.titleTopMargin) ?? 25,
772
- d.db.getDiagramTitle()
773
- ), wt(E, Z, "erDiagram", (l == null ? void 0 : l.useMaxWidth) ?? !0);
774
- }, "draw"), Jt = /* @__PURE__ */ u((s, i) => {
775
- const h = Qt, d = h(s, "r"), o = h(s, "g"), l = h(s, "b");
776
- return Gt(d, o, l, i);
777
- }, "fade"), $t = /* @__PURE__ */ u((s) => `
772
+ (p == null ? void 0 : p.titleTopMargin) ?? 25,
773
+ l.db.getDiagramTitle()
774
+ ), Dt(m, K, "erDiagram", (p == null ? void 0 : p.useMaxWidth) ?? true);
775
+ }, "draw"), Ht = /* @__PURE__ */ o((e, i) => {
776
+ const d = Wt, l = d(e, "r"), h = d(e, "g"), p = d(e, "b");
777
+ return zt(l, h, p, i);
778
+ }, "fade"), Jt = /* @__PURE__ */ o((e) => `
778
779
  .entityBox {
779
- fill: ${s.mainBkg};
780
- stroke: ${s.nodeBorder};
780
+ fill: ${e.mainBkg};
781
+ stroke: ${e.nodeBorder};
781
782
  }
782
783
 
783
784
  .relationshipLabelBox {
784
- fill: ${s.tertiaryColor};
785
+ fill: ${e.tertiaryColor};
785
786
  opacity: 0.7;
786
- background-color: ${s.tertiaryColor};
787
+ background-color: ${e.tertiaryColor};
787
788
  rect {
788
789
  opacity: 0.5;
789
790
  }
790
791
  }
791
792
 
792
793
  .labelBkg {
793
- background-color: ${Jt(s.tertiaryColor, 0.5)};
794
+ background-color: ${Ht(e.tertiaryColor, 0.5)};
794
795
  }
795
796
 
796
797
  .edgeLabel .label {
797
- fill: ${s.nodeBorder};
798
+ fill: ${e.nodeBorder};
798
799
  font-size: 14px;
799
800
  }
800
801
 
801
802
  .label {
802
- font-family: ${s.fontFamily};
803
- color: ${s.nodeTextColor || s.textColor};
803
+ font-family: ${e.fontFamily};
804
+ color: ${e.nodeTextColor || e.textColor};
804
805
  }
805
806
 
806
807
  .edge-pattern-dashed {
@@ -812,30 +813,30 @@ var Ht = /* @__PURE__ */ u(async function(s, i, h, d) {
812
813
  .node ellipse,
813
814
  .node polygon
814
815
  {
815
- fill: ${s.mainBkg};
816
- stroke: ${s.nodeBorder};
816
+ fill: ${e.mainBkg};
817
+ stroke: ${e.nodeBorder};
817
818
  stroke-width: 1px;
818
819
  }
819
820
 
820
821
  .relationshipLine {
821
- stroke: ${s.lineColor};
822
+ stroke: ${e.lineColor};
822
823
  stroke-width: 1;
823
824
  fill: none;
824
825
  }
825
826
 
826
827
  .marker {
827
828
  fill: none !important;
828
- stroke: ${s.lineColor} !important;
829
+ stroke: ${e.lineColor} !important;
829
830
  stroke-width: 1;
830
831
  }
831
- `, "getStyles"), te = $t, re = {
832
- parser: Xt,
832
+ `, "getStyles"), $t = Jt, ie = {
833
+ parser: Qt,
833
834
  get db() {
834
- return new qt();
835
+ return new Xt();
835
836
  },
836
- renderer: Nt,
837
- styles: te
837
+ renderer: At,
838
+ styles: $t
838
839
  };
839
840
  export {
840
- re as diagram
841
+ ie as diagram
841
842
  };