@omg-dev/app 0.5.1 → 0.6.1

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 (113) hide show
  1. package/dist-lib/{ChangelogPage-BzsTWlhq.js → ChangelogPage-Cjj_DiYL.js} +33 -1
  2. package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
  3. package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
  4. package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
  5. package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
  6. package/dist-lib/{SessionFilesPanel-K4lGGdJ4.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
  7. package/dist-lib/{TermView-CWr-zJmM.js → TermView-B4V-DyD-.js} +521 -530
  8. package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
  9. package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
  10. package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
  11. package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
  12. package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
  13. package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
  14. package/dist-lib/{chat-engine-P0yDhFOX.js → chat-engine-CUiDTHFP.js} +1173 -1218
  15. package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
  16. package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
  17. package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
  18. package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
  19. package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
  20. package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
  21. package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
  22. package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
  23. package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
  24. package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
  25. package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
  26. package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
  27. package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
  28. package/dist-lib/{coding-agents-page-DCafIpWL.js → coding-agents-page-DtxZ0nbQ.js} +152 -131
  29. package/dist-lib/computer-page-DIJeFOZz.js +8860 -0
  30. package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
  31. package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
  32. package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
  33. package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
  34. package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
  35. package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
  36. package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
  37. package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
  38. package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
  39. package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
  40. package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
  41. package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
  42. package/dist-lib/{embedded-CLYU5z7h.js → embedded-PUsgcSTE.js} +10592 -10725
  43. package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
  44. package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
  45. package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
  46. package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
  47. package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
  48. package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
  49. package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
  50. package/dist-lib/index-B0neMIbR.js +16520 -0
  51. package/dist-lib/index-BBC0E3Qg.js +4994 -0
  52. package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
  53. package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
  54. package/dist-lib/index.js +1 -1
  55. package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
  56. package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
  57. package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
  58. package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
  59. package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
  60. package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
  61. package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
  62. package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
  63. package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
  64. package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
  65. package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
  66. package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
  67. package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
  68. package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
  69. package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
  70. package/dist-lib/{resume-session-sheet-CHwpwguS.js → resume-session-sheet-DTe_2QtJ.js} +2 -3
  71. package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
  72. package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
  73. package/dist-lib/{session-token-usage-BUz6b-IB.js → session-token-usage-DY4vFlfs.js} +82 -83
  74. package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
  75. package/dist-lib/{shipped-page-CXy85bsL.js → shipped-page-B-ruG8li.js} +233 -236
  76. package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
  77. package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
  78. package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
  79. package/dist-lib/{streamdown-response-CUB9sK6V.js → streamdown-response-BQy3geXs.js} +290 -297
  80. package/dist-lib/styles.css +1 -1
  81. package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
  82. package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
  83. package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
  84. package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
  85. package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
  86. package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
  87. package/package.json +4 -3
  88. package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
  89. package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
  90. package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
  91. package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
  92. package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
  93. package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
  94. package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
  95. package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
  96. package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
  97. package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
  98. package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
  99. package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
  100. package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
  101. package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
  102. package/dist-lib/index-DcwavxA1.js +0 -5062
  103. package/dist-lib/index-JkCQXUYs.js +0 -16566
  104. package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
  105. package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
  106. package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
  107. package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
  108. package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
  109. package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
  110. package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
  111. package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
  112. package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
  113. package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
@@ -1,92 +1,92 @@
1
- import { g as Bt } from "./chunk-XXDRQBXY-Ccv4aRcn.js";
2
- import { s as Ft } from "./chunk-VR4S4FIN-hOZG7eF3.js";
3
- import { _ as p, b as Yt, a as Pt, s as zt, g as Gt, o as Kt, p as Ut, c as rt, l as V, q as Zt, r as jt, t as Wt, u as qt, v as Qt, x as Xt, d as Ht, y as Jt } from "./index-JkCQXUYs.js";
4
- import { c as $t } from "./channel-B5lJFbed.js";
5
- var gt = (function() {
6
- var s = /* @__PURE__ */ p(function(I, n, a, l) {
7
- for (a = a || {}, l = I.length; l--; a[I[l]] = n) ;
8
- return a;
9
- }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], o = [1, 10], h = [1, 11], c = [1, 12], u = [1, 13], f = [1, 23], d = [1, 24], m = [1, 25], W = [1, 26], q = [1, 27], S = [1, 19], Q = [1, 28], B = [1, 29], D = [1, 20], R = [1, 18], T = [1, 21], x = [1, 22], at = [1, 36], ct = [1, 37], ot = [1, 38], lt = [1, 39], ht = [1, 40], F = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 66, 67, 68, 69, 70], O = [1, 45], N = [1, 46], Y = [1, 55], P = [40, 48, 50, 51, 52, 71, 72], z = [1, 66], G = [1, 64], A = [1, 61], K = [1, 65], U = [1, 67], X = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 66, 67, 68, 69, 70], bt = [66, 67, 68, 69, 70], kt = [1, 85], mt = [1, 84], Et = [1, 82], St = [1, 83], Tt = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], H = [1, 93], J = [1, 92], $ = [1, 91], Z = [19, 58], Ot = [1, 102], Nt = [1, 101], ut = [19, 58, 61, 63], dt = {
10
- trace: /* @__PURE__ */ p(function() {
1
+ import { g as Mt } from "./chunk-XXDRQBXY-DRKeYnrF.js";
2
+ import { s as Bt } from "./chunk-VR4S4FIN-BDq3jZ0m.js";
3
+ import { _ as l, b as Ft, a as Yt, s as Pt, g as zt, o as Gt, p as Kt, c as it, l as V, q as Ut, r as Zt, t as jt, u as Wt, v as qt, x as Qt, d as Xt, y as Ht } from "./index-B0neMIbR.js";
4
+ import { c as Jt } from "./channel-D6YHMmF7.js";
5
+ var _t = (function() {
6
+ var e = /* @__PURE__ */ l(function(I, n, c, o) {
7
+ for (c = c || {}, o = I.length; o--; c[I[o]] = n) ;
8
+ return c;
9
+ }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], h = [1, 10], a = [1, 11], u = [1, 12], d = [1, 13], y = [1, 23], f = [1, 24], m = [1, 25], j = [1, 26], W = [1, 27], S = [1, 19], q = [1, 28], M = [1, 29], D = [1, 20], R = [1, 18], T = [1, 21], C = [1, 22], nt = [1, 36], at = [1, 37], ct = [1, 38], ot = [1, 39], lt = [1, 40], B = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 66, 67, 68, 69, 70], O = [1, 45], N = [1, 46], F = [1, 55], Y = [40, 48, 50, 51, 52, 71, 72], P = [1, 66], z = [1, 64], A = [1, 61], G = [1, 65], K = [1, 67], Q = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 66, 67, 68, 69, 70], gt = [66, 67, 68, 69, 70], bt = [1, 85], kt = [1, 84], mt = [1, 82], Et = [1, 83], St = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], X = [1, 93], H = [1, 92], J = [1, 91], U = [19, 58], Tt = [1, 102], Ot = [1, 101], ht = [19, 58, 61, 63], ut = {
10
+ trace: /* @__PURE__ */ l(function() {
11
11
  }, "trace"),
12
12
  yy: {},
13
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, DECIMAL_NUM: 51, ENTITY_ONE: 52, attribute: 53, attributeType: 54, attributeName: 55, attributeKeyTypeList: 56, attributeComment: 57, ATTRIBUTE_WORD: 58, "?": 59, attributeKeyType: 60, ",": 61, ATTRIBUTE_KEY: 62, COMMENT: 63, cardinality: 64, relType: 65, ZERO_OR_ONE: 66, ZERO_OR_MORE: 67, ONE_OR_MORE: 68, ONLY_ONE: 69, MD_PARENT: 70, NON_IDENTIFYING: 71, IDENTIFYING: 72, WORD: 73, $accept: 0, $end: 1 },
14
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", 51: "DECIMAL_NUM", 52: "ENTITY_ONE", 58: "ATTRIBUTE_WORD", 59: "?", 61: ",", 62: "ATTRIBUTE_KEY", 63: "COMMENT", 66: "ZERO_OR_ONE", 67: "ZERO_OR_MORE", 68: "ONE_OR_MORE", 69: "ONLY_ONE", 70: "MD_PARENT", 71: "NON_IDENTIFYING", 72: "IDENTIFYING", 73: "WORD" },
15
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], [11, 1], [11, 1], [11, 1], [18, 1], [18, 2], [53, 2], [53, 3], [53, 3], [53, 4], [54, 1], [54, 2], [55, 1], [56, 1], [56, 3], [60, 1], [57, 1], [12, 3], [64, 1], [64, 1], [64, 1], [64, 1], [64, 1], [65, 1], [65, 1], [14, 1], [14, 1], [14, 1]],
16
- performAction: /* @__PURE__ */ p(function(n, a, l, r, y, t, j) {
17
- var e = t.length - 1;
18
- switch (y) {
16
+ performAction: /* @__PURE__ */ l(function(n, c, o, r, p, t, Z) {
17
+ var s = t.length - 1;
18
+ switch (p) {
19
19
  case 1:
20
20
  break;
21
21
  case 2:
22
22
  this.$ = [];
23
23
  break;
24
24
  case 3:
25
- t[e - 1].push(t[e]), this.$ = t[e - 1];
25
+ t[s - 1].push(t[s]), this.$ = t[s - 1];
26
26
  break;
27
27
  case 4:
28
28
  case 5:
29
- this.$ = t[e];
29
+ this.$ = t[s];
30
30
  break;
31
31
  case 6:
32
32
  case 7:
33
33
  this.$ = [];
34
34
  break;
35
35
  case 8:
36
- 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]);
37
37
  break;
38
38
  case 9:
39
- 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]);
40
40
  break;
41
41
  case 10:
42
- 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]);
43
43
  break;
44
44
  case 11:
45
- 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]);
46
46
  break;
47
47
  case 12:
48
- 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]);
49
49
  break;
50
50
  case 13:
51
- 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]);
52
52
  break;
53
53
  case 14:
54
- r.addEntity(t[e - 2]);
54
+ r.addEntity(t[s - 2]);
55
55
  break;
56
56
  case 15:
57
- 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]);
58
58
  break;
59
59
  case 16:
60
- r.addEntity(t[e]);
60
+ r.addEntity(t[s]);
61
61
  break;
62
62
  case 17:
63
- 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]);
64
64
  break;
65
65
  case 18:
66
- 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]);
67
67
  break;
68
68
  case 19:
69
- 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]);
70
70
  break;
71
71
  case 20:
72
- r.addEntity(t[e - 5], t[e - 3]);
72
+ r.addEntity(t[s - 5], t[s - 3]);
73
73
  break;
74
74
  case 21:
75
- 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]);
76
76
  break;
77
77
  case 22:
78
- r.addEntity(t[e - 3], t[e - 1]);
78
+ r.addEntity(t[s - 3], t[s - 1]);
79
79
  break;
80
80
  case 23:
81
- 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]);
82
82
  break;
83
83
  case 24:
84
84
  case 25:
85
- this.$ = t[e].trim(), r.setAccTitle(this.$);
85
+ this.$ = t[s].trim(), r.setAccTitle(this.$);
86
86
  break;
87
87
  case 26:
88
88
  case 27:
89
- this.$ = t[e].trim(), r.setAccDescription(this.$);
89
+ this.$ = t[s].trim(), r.setAccDescription(this.$);
90
90
  break;
91
91
  case 32:
92
92
  r.setDirection("TB");
@@ -101,76 +101,76 @@ var gt = (function() {
101
101
  r.setDirection("LR");
102
102
  break;
103
103
  case 36:
104
- 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]);
105
105
  break;
106
106
  case 37:
107
107
  case 38:
108
108
  case 59:
109
109
  case 68:
110
- this.$ = [t[e]];
110
+ this.$ = [t[s]];
111
111
  break;
112
112
  case 39:
113
113
  case 40:
114
- this.$ = t[e - 2].concat([t[e]]);
114
+ this.$ = t[s - 2].concat([t[s]]);
115
115
  break;
116
116
  case 41:
117
- this.$ = t[e - 2], r.setClass(t[e - 1], t[e]);
117
+ this.$ = t[s - 2], r.setClass(t[s - 1], t[s]);
118
118
  break;
119
119
  case 42:
120
- 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]);
121
121
  break;
122
122
  case 43:
123
- this.$ = [t[e]];
123
+ this.$ = [t[s]];
124
124
  break;
125
125
  case 44:
126
- t[e - 2].push(t[e]), this.$ = t[e - 2];
126
+ t[s - 2].push(t[s]), this.$ = t[s - 2];
127
127
  break;
128
128
  case 46:
129
- this.$ = t[e - 1] + t[e];
129
+ this.$ = t[s - 1] + t[s];
130
130
  break;
131
131
  case 54:
132
132
  case 80:
133
133
  case 81:
134
- this.$ = t[e].replace(/"/g, "");
134
+ this.$ = t[s].replace(/"/g, "");
135
135
  break;
136
136
  case 55:
137
137
  case 56:
138
138
  case 57:
139
139
  case 58:
140
140
  case 82:
141
- this.$ = t[e];
141
+ this.$ = t[s];
142
142
  break;
143
143
  case 60:
144
- t[e].push(t[e - 1]), this.$ = t[e];
144
+ t[s].push(t[s - 1]), this.$ = t[s];
145
145
  break;
146
146
  case 61:
147
- this.$ = { type: t[e - 1], name: t[e] };
147
+ this.$ = { type: t[s - 1], name: t[s] };
148
148
  break;
149
149
  case 62:
150
- this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
150
+ this.$ = { type: t[s - 2], name: t[s - 1], keys: t[s] };
151
151
  break;
152
152
  case 63:
153
- this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
153
+ this.$ = { type: t[s - 2], name: t[s - 1], comment: t[s] };
154
154
  break;
155
155
  case 64:
156
- this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
156
+ this.$ = { type: t[s - 3], name: t[s - 2], keys: t[s - 1], comment: t[s] };
157
157
  break;
158
158
  case 65:
159
159
  case 67:
160
160
  case 70:
161
- this.$ = t[e];
161
+ this.$ = t[s];
162
162
  break;
163
163
  case 66:
164
- this.$ = t[e - 1] + t[e];
164
+ this.$ = t[s - 1] + t[s];
165
165
  break;
166
166
  case 69:
167
- t[e - 2].push(t[e]), this.$ = t[e - 2];
167
+ t[s - 2].push(t[s]), this.$ = t[s - 2];
168
168
  break;
169
169
  case 71:
170
- this.$ = t[e].replace(/"/g, "");
170
+ this.$ = t[s].replace(/"/g, "");
171
171
  break;
172
172
  case 72:
173
- this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
173
+ this.$ = { cardA: t[s], relType: t[s - 1], cardB: t[s - 2] };
174
174
  break;
175
175
  case 73:
176
176
  this.$ = r.Cardinality.ZERO_OR_ONE;
@@ -195,76 +195,76 @@ var gt = (function() {
195
195
  break;
196
196
  }
197
197
  }, "anonymous"),
198
- 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: o, 24: h, 26: c, 28: u, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: d, 35: m, 36: W, 37: q, 40: S, 43: Q, 44: B, 48: D, 50: R, 51: T, 52: x }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 30, 11: 9, 22: o, 24: h, 26: c, 28: u, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: d, 35: m, 36: W, 37: q, 40: S, 43: Q, 44: B, 48: D, 50: R, 51: T, 52: x }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 31, 64: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(F, [2, 54]), s(F, [2, 55]), s(F, [2, 56]), s(F, [2, 57]), s(F, [2, 58]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, s(i, [2, 4]), { 11: 49, 40: S, 48: D, 50: R, 51: T, 52: x }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: Y }, { 11: 56, 40: S, 48: D, 50: R, 51: T, 52: x }, { 65: 57, 71: [1, 58], 72: [1, 59] }, s(P, [2, 73]), s(P, [2, 74]), s(P, [2, 75]), s(P, [2, 76]), s(P, [2, 77]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: z, 38: 60, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, s(X, [2, 37]), s(X, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: z, 38: 69, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, { 13: [1, 70], 15: [1, 71] }, s(i, [2, 17], { 64: 35, 12: 72, 17: [1, 73], 42: A, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 19: [1, 74] }, s(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: Y }, { 55: 76, 58: [1, 77] }, { 58: [2, 65], 59: [1, 78] }, { 21: [1, 79] }, { 64: 80, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }, s(bt, [2, 78]), s(bt, [2, 79]), { 6: kt, 10: mt, 39: 81, 42: Et, 47: St }, { 40: [1, 86], 41: [1, 87] }, s(Tt, [2, 43], { 46: 88, 13: z, 41: G, 48: K, 49: U }), s(L, [2, 45]), s(L, [2, 50]), s(L, [2, 51]), s(L, [2, 52]), s(L, [2, 53]), s(i, [2, 41], { 42: A }), { 6: kt, 10: mt, 39: 89, 42: Et, 47: St }, { 14: 90, 40: H, 50: J, 73: $ }, { 16: 94, 40: O, 41: N }, { 11: 95, 40: S, 48: D, 50: R, 51: T, 52: x }, { 18: 96, 19: [1, 97], 53: 53, 54: 54, 58: Y }, s(i, [2, 12]), { 19: [2, 60] }, s(Z, [2, 61], { 56: 98, 57: 99, 60: 100, 62: Ot, 63: Nt }), s([19, 58, 62, 63], [2, 67]), { 58: [2, 66] }, s(i, [2, 22], { 15: [1, 104], 17: [1, 103] }), s([40, 48, 50, 51, 52], [2, 72]), s(i, [2, 36]), { 13: z, 41: G, 45: 105, 46: 63, 48: K, 49: U }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(X, [2, 39]), s(X, [2, 40]), s(L, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 80]), s(i, [2, 81]), s(i, [2, 82]), { 13: [1, 106], 42: A }, { 13: [1, 108], 15: [1, 107] }, { 19: [1, 109] }, s(i, [2, 15]), s(Z, [2, 62], { 57: 110, 61: [1, 111], 63: Nt }), s(Z, [2, 63]), s(ut, [2, 68]), s(Z, [2, 71]), s(ut, [2, 70]), { 18: 112, 19: [1, 113], 53: 53, 54: 54, 58: Y }, { 16: 114, 40: O, 41: N }, s(Tt, [2, 44], { 46: 88, 13: z, 41: G, 48: K, 49: U }), { 14: 115, 40: H, 50: J, 73: $ }, { 16: 116, 40: O, 41: N }, { 14: 117, 40: H, 50: J, 73: $ }, s(i, [2, 13]), s(Z, [2, 64]), { 60: 118, 62: Ot }, { 19: [1, 119] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 120], 42: A }), s(i, [2, 11]), { 13: [1, 121], 42: A }, s(i, [2, 10]), s(ut, [2, 69]), s(i, [2, 18]), { 18: 122, 19: [1, 123], 53: 53, 54: 54, 58: Y }, { 14: 124, 40: H, 50: J, 73: $ }, { 19: [1, 125] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
198
+ 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: h, 24: a, 26: u, 28: d, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: f, 35: m, 36: j, 37: W, 40: S, 43: q, 44: M, 48: D, 50: R, 51: T, 52: C }, e(i, [2, 7], { 1: [2, 1] }), e(i, [2, 3]), { 9: 30, 11: 9, 22: h, 24: a, 26: u, 28: d, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: f, 35: m, 36: j, 37: W, 40: S, 43: q, 44: M, 48: D, 50: R, 51: T, 52: C }, e(i, [2, 5]), e(i, [2, 6]), e(i, [2, 16], { 12: 31, 64: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 66: nt, 67: at, 68: ct, 69: ot, 70: lt }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, e(i, [2, 27]), e(i, [2, 28]), e(i, [2, 29]), e(i, [2, 30]), e(i, [2, 31]), e(B, [2, 54]), e(B, [2, 55]), e(B, [2, 56]), e(B, [2, 57]), e(B, [2, 58]), e(i, [2, 32]), e(i, [2, 33]), e(i, [2, 34]), e(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, e(i, [2, 4]), { 11: 49, 40: S, 48: D, 50: R, 51: T, 52: C }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: F }, { 11: 56, 40: S, 48: D, 50: R, 51: T, 52: C }, { 65: 57, 71: [1, 58], 72: [1, 59] }, e(Y, [2, 73]), e(Y, [2, 74]), e(Y, [2, 75]), e(Y, [2, 76]), e(Y, [2, 77]), e(i, [2, 24]), e(i, [2, 25]), e(i, [2, 26]), { 13: P, 38: 60, 41: z, 42: A, 45: 62, 46: 63, 48: G, 49: K }, e(Q, [2, 37]), e(Q, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: P, 38: 69, 41: z, 42: A, 45: 62, 46: 63, 48: G, 49: K }, { 13: [1, 70], 15: [1, 71] }, e(i, [2, 17], { 64: 35, 12: 72, 17: [1, 73], 42: A, 66: nt, 67: at, 68: ct, 69: ot, 70: lt }), { 19: [1, 74] }, e(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: F }, { 55: 76, 58: [1, 77] }, { 58: [2, 65], 59: [1, 78] }, { 21: [1, 79] }, { 64: 80, 66: nt, 67: at, 68: ct, 69: ot, 70: lt }, e(gt, [2, 78]), e(gt, [2, 79]), { 6: bt, 10: kt, 39: 81, 42: mt, 47: Et }, { 40: [1, 86], 41: [1, 87] }, e(St, [2, 43], { 46: 88, 13: P, 41: z, 48: G, 49: K }), e(L, [2, 45]), e(L, [2, 50]), e(L, [2, 51]), e(L, [2, 52]), e(L, [2, 53]), e(i, [2, 41], { 42: A }), { 6: bt, 10: kt, 39: 89, 42: mt, 47: Et }, { 14: 90, 40: X, 50: H, 73: J }, { 16: 94, 40: O, 41: N }, { 11: 95, 40: S, 48: D, 50: R, 51: T, 52: C }, { 18: 96, 19: [1, 97], 53: 53, 54: 54, 58: F }, e(i, [2, 12]), { 19: [2, 60] }, e(U, [2, 61], { 56: 98, 57: 99, 60: 100, 62: Tt, 63: Ot }), e([19, 58, 62, 63], [2, 67]), { 58: [2, 66] }, e(i, [2, 22], { 15: [1, 104], 17: [1, 103] }), e([40, 48, 50, 51, 52], [2, 72]), e(i, [2, 36]), { 13: P, 41: z, 45: 105, 46: 63, 48: G, 49: K }, e(i, [2, 47]), e(i, [2, 48]), e(i, [2, 49]), e(Q, [2, 39]), e(Q, [2, 40]), e(L, [2, 46]), e(i, [2, 42]), e(i, [2, 8]), e(i, [2, 80]), e(i, [2, 81]), e(i, [2, 82]), { 13: [1, 106], 42: A }, { 13: [1, 108], 15: [1, 107] }, { 19: [1, 109] }, e(i, [2, 15]), e(U, [2, 62], { 57: 110, 61: [1, 111], 63: Ot }), e(U, [2, 63]), e(ht, [2, 68]), e(U, [2, 71]), e(ht, [2, 70]), { 18: 112, 19: [1, 113], 53: 53, 54: 54, 58: F }, { 16: 114, 40: O, 41: N }, e(St, [2, 44], { 46: 88, 13: P, 41: z, 48: G, 49: K }), { 14: 115, 40: X, 50: H, 73: J }, { 16: 116, 40: O, 41: N }, { 14: 117, 40: X, 50: H, 73: J }, e(i, [2, 13]), e(U, [2, 64]), { 60: 118, 62: Tt }, { 19: [1, 119] }, e(i, [2, 20]), e(i, [2, 23], { 17: [1, 120], 42: A }), e(i, [2, 11]), { 13: [1, 121], 42: A }, e(i, [2, 10]), e(ht, [2, 69]), e(i, [2, 18]), { 18: 122, 19: [1, 123], 53: 53, 54: 54, 58: F }, { 14: 124, 40: X, 50: H, 73: J }, { 19: [1, 125] }, e(i, [2, 21]), e(i, [2, 9]), e(i, [2, 19])],
199
199
  defaultActions: { 75: [2, 60], 78: [2, 66] },
200
- parseError: /* @__PURE__ */ p(function(n, a) {
201
- if (a.recoverable)
200
+ parseError: /* @__PURE__ */ l(function(n, c) {
201
+ if (c.recoverable)
202
202
  this.trace(n);
203
203
  else {
204
- var l = new Error(n);
205
- throw l.hash = a, l;
204
+ var o = new Error(n);
205
+ throw o.hash = c, o;
206
206
  }
207
207
  }, "parseError"),
208
- parse: /* @__PURE__ */ p(function(n) {
209
- var a = this, l = [0], r = [], y = [null], t = [], j = this.table, e = "", et = 0, At = 0, Lt = 2, It = 1, wt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), C = { yy: {} };
210
- for (var pt in this.yy)
211
- Object.prototype.hasOwnProperty.call(this.yy, pt) && (C.yy[pt] = this.yy[pt]);
212
- _.setInput(n, C.yy), C.yy.lexer = _, C.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
213
- var yt = _.yylloc;
214
- t.push(yt);
215
- var Vt = _.options && _.options.ranges;
216
- typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
217
- function Mt(b) {
218
- l.length = l.length - 2 * b, y.length = y.length - b, t.length = t.length - b;
208
+ parse: /* @__PURE__ */ l(function(n) {
209
+ var c = this, o = [0], r = [], p = [null], t = [], Z = this.table, s = "", tt = 0, Nt = 0, Dt = 2, At = 1, Lt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), x = { yy: {} };
210
+ for (var dt in this.yy)
211
+ Object.prototype.hasOwnProperty.call(this.yy, dt) && (x.yy[dt] = this.yy[dt]);
212
+ _.setInput(n, x.yy), x.yy.lexer = _, x.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
213
+ var pt = _.yylloc;
214
+ t.push(pt);
215
+ var wt = _.options && _.options.ranges;
216
+ typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
217
+ function Vt(b) {
218
+ o.length = o.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
219
219
  }
220
- p(Mt, "popStack");
221
- function Rt() {
220
+ l(Vt, "popStack");
221
+ function It() {
222
222
  var b;
223
- return b = r.pop() || _.lex() || It, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
223
+ return b = r.pop() || _.lex() || At, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = c.symbols_[b] || b), b;
224
224
  }
225
- p(Rt, "lex");
226
- for (var g, v, k, ft, w = {}, st, E, xt, it; ; ) {
227
- if (v = l[l.length - 1], this.defaultActions[v] ? k = this.defaultActions[v] : ((g === null || typeof g > "u") && (g = Rt()), k = j[v] && j[v][g]), typeof k > "u" || !k.length || !k[0]) {
228
- var _t = "";
229
- it = [];
230
- for (st in j[v])
231
- this.terminals_[st] && st > Lt && it.push("'" + this.terminals_[st] + "'");
232
- _.showPosition ? _t = "Parse error on line " + (et + 1) + `:
225
+ l(It, "lex");
226
+ for (var g, v, k, ft, w = {}, et, E, Rt, st; ; ) {
227
+ if (v = o[o.length - 1], this.defaultActions[v] ? k = this.defaultActions[v] : ((g === null || typeof g > "u") && (g = It()), k = Z[v] && Z[v][g]), typeof k > "u" || !k.length || !k[0]) {
228
+ var yt = "";
229
+ st = [];
230
+ for (et in Z[v])
231
+ this.terminals_[et] && et > Dt && st.push("'" + this.terminals_[et] + "'");
232
+ _.showPosition ? yt = "Parse error on line " + (tt + 1) + `:
233
233
  ` + _.showPosition() + `
234
- Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t = "Parse error on line " + (et + 1) + ": Unexpected " + (g == It ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(_t, {
234
+ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : yt = "Parse error on line " + (tt + 1) + ": Unexpected " + (g == At ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(yt, {
235
235
  text: _.match,
236
236
  token: this.terminals_[g] || g,
237
237
  line: _.yylineno,
238
- loc: yt,
239
- expected: it
238
+ loc: pt,
239
+ expected: st
240
240
  });
241
241
  }
242
242
  if (k[0] instanceof Array && k.length > 1)
243
243
  throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + g);
244
244
  switch (k[0]) {
245
245
  case 1:
246
- l.push(g), y.push(_.yytext), t.push(_.yylloc), l.push(k[1]), g = null, At = _.yyleng, e = _.yytext, et = _.yylineno, yt = _.yylloc;
246
+ o.push(g), p.push(_.yytext), t.push(_.yylloc), o.push(k[1]), g = null, Nt = _.yyleng, s = _.yytext, tt = _.yylineno, pt = _.yylloc;
247
247
  break;
248
248
  case 2:
249
- if (E = this.productions_[k[1]][1], w.$ = y[y.length - E], w._$ = {
249
+ if (E = this.productions_[k[1]][1], w.$ = p[p.length - E], w._$ = {
250
250
  first_line: t[t.length - (E || 1)].first_line,
251
251
  last_line: t[t.length - 1].last_line,
252
252
  first_column: t[t.length - (E || 1)].first_column,
253
253
  last_column: t[t.length - 1].last_column
254
- }, Vt && (w._$.range = [
254
+ }, wt && (w._$.range = [
255
255
  t[t.length - (E || 1)].range[0],
256
256
  t[t.length - 1].range[1]
257
257
  ]), ft = this.performAction.apply(w, [
258
- e,
259
- At,
260
- et,
261
- C.yy,
258
+ s,
259
+ Nt,
260
+ tt,
261
+ x.yy,
262
262
  k[1],
263
- y,
263
+ p,
264
264
  t
265
- ].concat(wt)), typeof ft < "u")
265
+ ].concat(Lt)), typeof ft < "u")
266
266
  return ft;
267
- E && (l = l.slice(0, -1 * E * 2), y = y.slice(0, -1 * E), t = t.slice(0, -1 * E)), l.push(this.productions_[k[1]][0]), y.push(w.$), t.push(w._$), xt = j[l[l.length - 2]][l[l.length - 1]], l.push(xt);
267
+ E && (o = o.slice(0, -1 * E * 2), p = p.slice(0, -1 * E), t = t.slice(0, -1 * E)), o.push(this.productions_[k[1]][0]), p.push(w.$), t.push(w._$), Rt = Z[o[o.length - 2]][o[o.length - 1]], o.push(Rt);
268
268
  break;
269
269
  case 3:
270
270
  return !0;
@@ -272,18 +272,18 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
272
272
  }
273
273
  return !0;
274
274
  }, "parse")
275
- }, Dt = /* @__PURE__ */ (function() {
275
+ }, vt = /* @__PURE__ */ (function() {
276
276
  var I = {
277
277
  EOF: 1,
278
- parseError: /* @__PURE__ */ p(function(a, l) {
278
+ parseError: /* @__PURE__ */ l(function(c, o) {
279
279
  if (this.yy.parser)
280
- this.yy.parser.parseError(a, l);
280
+ this.yy.parser.parseError(c, o);
281
281
  else
282
- throw new Error(a);
282
+ throw new Error(c);
283
283
  }, "parseError"),
284
284
  // resets the lexer, sets new input
285
- setInput: /* @__PURE__ */ p(function(n, a) {
286
- 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 = {
285
+ setInput: /* @__PURE__ */ l(function(n, c) {
286
+ return this.yy = c || 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 = {
287
287
  first_line: 1,
288
288
  first_column: 0,
289
289
  last_line: 1,
@@ -291,32 +291,32 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
291
291
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
292
292
  }, "setInput"),
293
293
  // consumes and returns one char from the input
294
- input: /* @__PURE__ */ p(function() {
294
+ input: /* @__PURE__ */ l(function() {
295
295
  var n = this._input[0];
296
296
  this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
297
- var a = n.match(/(?:\r\n?|\n).*/g);
298
- 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;
297
+ var c = n.match(/(?:\r\n?|\n).*/g);
298
+ return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
299
299
  }, "input"),
300
300
  // unshifts one char (or a string) into the input
301
- unput: /* @__PURE__ */ p(function(n) {
302
- var a = n.length, l = n.split(/(?:\r\n?|\n)/g);
303
- this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
301
+ unput: /* @__PURE__ */ l(function(n) {
302
+ var c = n.length, o = n.split(/(?:\r\n?|\n)/g);
303
+ this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
304
304
  var r = this.match.split(/(?:\r\n?|\n)/g);
305
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
306
- var y = this.yylloc.range;
305
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
306
+ var p = this.yylloc.range;
307
307
  return this.yylloc = {
308
308
  first_line: this.yylloc.first_line,
309
309
  last_line: this.yylineno + 1,
310
310
  first_column: this.yylloc.first_column,
311
- last_column: l ? (l.length === r.length ? this.yylloc.first_column : 0) + r[r.length - l.length].length - l[0].length : this.yylloc.first_column - a
312
- }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
311
+ last_column: o ? (o.length === r.length ? this.yylloc.first_column : 0) + r[r.length - o.length].length - o[0].length : this.yylloc.first_column - c
312
+ }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
313
313
  }, "unput"),
314
314
  // When called from action, caches matched text and appends it on next action
315
- more: /* @__PURE__ */ p(function() {
315
+ more: /* @__PURE__ */ l(function() {
316
316
  return this._more = !0, this;
317
317
  }, "more"),
318
318
  // 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.
319
- reject: /* @__PURE__ */ p(function() {
319
+ reject: /* @__PURE__ */ l(function() {
320
320
  if (this.options.backtrack_lexer)
321
321
  this._backtrack = !0;
322
322
  else
@@ -329,29 +329,29 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
329
329
  return this;
330
330
  }, "reject"),
331
331
  // retain first n characters of the match
332
- less: /* @__PURE__ */ p(function(n) {
332
+ less: /* @__PURE__ */ l(function(n) {
333
333
  this.unput(this.match.slice(n));
334
334
  }, "less"),
335
335
  // displays already matched input, i.e. for error messages
336
- pastInput: /* @__PURE__ */ p(function() {
336
+ pastInput: /* @__PURE__ */ l(function() {
337
337
  var n = this.matched.substr(0, this.matched.length - this.match.length);
338
338
  return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
339
339
  }, "pastInput"),
340
340
  // displays upcoming input, i.e. for error messages
341
- upcomingInput: /* @__PURE__ */ p(function() {
341
+ upcomingInput: /* @__PURE__ */ l(function() {
342
342
  var n = this.match;
343
343
  return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
344
344
  }, "upcomingInput"),
345
345
  // displays the character position where the lexing error occurred, i.e. for error messages
346
- showPosition: /* @__PURE__ */ p(function() {
347
- var n = this.pastInput(), a = new Array(n.length + 1).join("-");
346
+ showPosition: /* @__PURE__ */ l(function() {
347
+ var n = this.pastInput(), c = new Array(n.length + 1).join("-");
348
348
  return n + this.upcomingInput() + `
349
- ` + a + "^";
349
+ ` + c + "^";
350
350
  }, "showPosition"),
351
351
  // test the lexed token: return FALSE when not a match, otherwise return token
352
- test_match: /* @__PURE__ */ p(function(n, a) {
353
- var l, r, y;
354
- if (this.options.backtrack_lexer && (y = {
352
+ test_match: /* @__PURE__ */ l(function(n, c) {
353
+ var o, r, p;
354
+ if (this.options.backtrack_lexer && (p = {
355
355
  yylineno: this.yylineno,
356
356
  yylloc: {
357
357
  first_line: this.yylloc.first_line,
@@ -370,41 +370,41 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
370
370
  yy: this.yy,
371
371
  conditionStack: this.conditionStack.slice(0),
372
372
  done: this.done
373
- }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
373
+ }, 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 = {
374
374
  first_line: this.yylloc.last_line,
375
375
  last_line: this.yylineno + 1,
376
376
  first_column: this.yylloc.last_column,
377
377
  last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
378
- }, 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], l = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
379
- return l;
378
+ }, 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], o = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
379
+ return o;
380
380
  if (this._backtrack) {
381
- for (var t in y)
382
- this[t] = y[t];
381
+ for (var t in p)
382
+ this[t] = p[t];
383
383
  return !1;
384
384
  }
385
385
  return !1;
386
386
  }, "test_match"),
387
387
  // return next match in input
388
- next: /* @__PURE__ */ p(function() {
388
+ next: /* @__PURE__ */ l(function() {
389
389
  if (this.done)
390
390
  return this.EOF;
391
391
  this._input || (this.done = !0);
392
- var n, a, l, r;
392
+ var n, c, o, r;
393
393
  this._more || (this.yytext = "", this.match = "");
394
- for (var y = this._currentRules(), t = 0; t < y.length; t++)
395
- if (l = this._input.match(this.rules[y[t]]), l && (!a || l[0].length > a[0].length)) {
396
- if (a = l, r = t, this.options.backtrack_lexer) {
397
- if (n = this.test_match(l, y[t]), n !== !1)
394
+ for (var p = this._currentRules(), t = 0; t < p.length; t++)
395
+ if (o = this._input.match(this.rules[p[t]]), o && (!c || o[0].length > c[0].length)) {
396
+ if (c = o, r = t, this.options.backtrack_lexer) {
397
+ if (n = this.test_match(o, p[t]), n !== !1)
398
398
  return n;
399
399
  if (this._backtrack) {
400
- a = !1;
400
+ c = !1;
401
401
  continue;
402
402
  } else
403
403
  return !1;
404
404
  } else if (!this.options.flex)
405
405
  break;
406
406
  }
407
- return a ? (n = this.test_match(a, y[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
407
+ return c ? (n = this.test_match(c, p[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
408
408
  ` + this.showPosition(), {
409
409
  text: "",
410
410
  token: null,
@@ -412,37 +412,37 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
412
412
  });
413
413
  }, "next"),
414
414
  // return next match that has a token
415
- lex: /* @__PURE__ */ p(function() {
416
- var a = this.next();
417
- return a || this.lex();
415
+ lex: /* @__PURE__ */ l(function() {
416
+ var c = this.next();
417
+ return c || this.lex();
418
418
  }, "lex"),
419
419
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
420
- begin: /* @__PURE__ */ p(function(a) {
421
- this.conditionStack.push(a);
420
+ begin: /* @__PURE__ */ l(function(c) {
421
+ this.conditionStack.push(c);
422
422
  }, "begin"),
423
423
  // pop the previously active lexer condition state off the condition stack
424
- popState: /* @__PURE__ */ p(function() {
425
- var a = this.conditionStack.length - 1;
426
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
424
+ popState: /* @__PURE__ */ l(function() {
425
+ var c = this.conditionStack.length - 1;
426
+ return c > 0 ? this.conditionStack.pop() : this.conditionStack[0];
427
427
  }, "popState"),
428
428
  // produce the lexer rule set which is active for the currently active lexer condition state
429
- _currentRules: /* @__PURE__ */ p(function() {
429
+ _currentRules: /* @__PURE__ */ l(function() {
430
430
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
431
431
  }, "_currentRules"),
432
432
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
433
- topState: /* @__PURE__ */ p(function(a) {
434
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
433
+ topState: /* @__PURE__ */ l(function(c) {
434
+ return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
435
435
  }, "topState"),
436
436
  // alias for begin(condition)
437
- pushState: /* @__PURE__ */ p(function(a) {
438
- this.begin(a);
437
+ pushState: /* @__PURE__ */ l(function(c) {
438
+ this.begin(c);
439
439
  }, "pushState"),
440
440
  // return the number of states currently on the stack
441
- stateStackSize: /* @__PURE__ */ p(function() {
441
+ stateStackSize: /* @__PURE__ */ l(function() {
442
442
  return this.conditionStack.length;
443
443
  }, "stateStackSize"),
444
444
  options: { "case-insensitive": !0 },
445
- performAction: /* @__PURE__ */ p(function(a, l, r, y) {
445
+ performAction: /* @__PURE__ */ l(function(c, o, r, p) {
446
446
  switch (r) {
447
447
  case 0:
448
448
  return this.begin("acc_title"), 24;
@@ -515,7 +515,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
515
515
  case 32:
516
516
  return this.popState(), 19;
517
517
  case 33:
518
- return l.yytext[0];
518
+ return o.yytext[0];
519
519
  case 34:
520
520
  return 20;
521
521
  case 35:
@@ -609,7 +609,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
609
609
  case 79:
610
610
  return 40;
611
611
  case 80:
612
- return l.yytext[0];
612
+ return o.yytext[0];
613
613
  case 81:
614
614
  return 6;
615
615
  }
@@ -619,14 +619,14 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
619
619
  };
620
620
  return I;
621
621
  })();
622
- dt.lexer = Dt;
623
- function tt() {
622
+ ut.lexer = vt;
623
+ function $() {
624
624
  this.yy = {};
625
625
  }
626
- return p(tt, "Parser"), tt.prototype = dt, dt.Parser = tt, new tt();
626
+ return l($, "Parser"), $.prototype = ut, ut.Parser = $, new $();
627
627
  })();
628
- gt.parser = gt;
629
- var te = gt, M, ee = (M = class {
628
+ _t.parser = _t;
629
+ var $t = _t, te = class {
630
630
  constructor() {
631
631
  this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
632
632
  ZERO_OR_ONE: "ZERO_OR_ONE",
@@ -637,29 +637,31 @@ var te = gt, M, ee = (M = class {
637
637
  }, this.Identification = {
638
638
  NON_IDENTIFYING: "NON_IDENTIFYING",
639
639
  IDENTIFYING: "IDENTIFYING"
640
- }, this.setAccTitle = Yt, this.getAccTitle = Pt, this.setAccDescription = zt, this.getAccDescription = Gt, this.setDiagramTitle = Kt, this.getDiagramTitle = Ut, this.getConfig = /* @__PURE__ */ p(() => rt().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);
640
+ }, this.setAccTitle = Ft, this.getAccTitle = Yt, this.setAccDescription = Pt, this.getAccDescription = zt, this.setDiagramTitle = Gt, this.getDiagramTitle = Kt, this.getConfig = /* @__PURE__ */ l(() => it().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);
641
+ }
642
+ static {
643
+ l(this, "ErDB");
641
644
  }
642
645
  /**
643
646
  * Add entity
644
647
  * @param name - The name of the entity
645
648
  * @param alias - The alias of the entity
646
649
  */
647
- addEntity(i, o = "") {
648
- var h;
649
- return this.entities.has(i) ? !((h = this.entities.get(i)) != null && h.alias) && o && (this.entities.get(i).alias = o, V.info(`Add alias '${o}' to entity '${i}'`)) : (this.entities.set(i, {
650
- id: `entity-${i}-${this.entities.size}`,
651
- label: i,
650
+ addEntity(e, i = "") {
651
+ return this.entities.has(e) ? !this.entities.get(e)?.alias && i && (this.entities.get(e).alias = i, V.info(`Add alias '${i}' to entity '${e}'`)) : (this.entities.set(e, {
652
+ id: `entity-${e}-${this.entities.size}`,
653
+ label: e,
652
654
  attributes: [],
653
- alias: o,
655
+ alias: i,
654
656
  shape: "erBox",
655
- look: rt().look ?? "default",
657
+ look: it().look ?? "default",
656
658
  cssClasses: "default",
657
659
  cssStyles: [],
658
660
  labelType: "markdown"
659
- }), V.info("Added new entity :", i)), this.entities.get(i);
661
+ }), V.info("Added new entity :", e)), this.entities.get(e);
660
662
  }
661
- getEntity(i) {
662
- return this.entities.get(i);
663
+ getEntity(e) {
664
+ return this.entities.get(e);
663
665
  }
664
666
  getEntities() {
665
667
  return this.entities;
@@ -667,11 +669,11 @@ var te = gt, M, ee = (M = class {
667
669
  getClasses() {
668
670
  return this.classes;
669
671
  }
670
- addAttributes(i, o) {
671
- const h = this.addEntity(i);
672
- let c;
673
- for (c = o.length - 1; c >= 0; c--)
674
- o[c].keys || (o[c].keys = []), o[c].comment || (o[c].comment = ""), h.attributes.push(o[c]), V.debug("Added attribute ", o[c].name);
672
+ addAttributes(e, i) {
673
+ const h = this.addEntity(e);
674
+ let a;
675
+ for (a = i.length - 1; a >= 0; a--)
676
+ i[a].keys || (i[a].keys = []), i[a].comment || (i[a].comment = ""), h.attributes.push(i[a]), V.debug("Added attribute ", i[a].name);
675
677
  }
676
678
  /**
677
679
  * Add a relationship
@@ -681,17 +683,17 @@ var te = gt, M, ee = (M = class {
681
683
  * @param entB - The second entity in the relationship
682
684
  * @param rSpec - The details of the relationship between the two entities
683
685
  */
684
- addRelationship(i, o, h, c) {
685
- const u = this.entities.get(i), f = this.entities.get(h);
686
- if (!u || !f)
686
+ addRelationship(e, i, h, a) {
687
+ const u = this.entities.get(e), d = this.entities.get(h);
688
+ if (!u || !d)
687
689
  return;
688
- const d = {
690
+ const y = {
689
691
  entityA: u.id,
690
- roleA: o,
691
- entityB: f.id,
692
- relSpec: c
692
+ roleA: i,
693
+ entityB: d.id,
694
+ relSpec: a
693
695
  };
694
- this.relationships.push(d), V.debug("Added new relationship :", d);
696
+ this.relationships.push(y), V.debug("Added new relationship :", y);
695
697
  }
696
698
  getRelationships() {
697
699
  return this.relationships;
@@ -699,174 +701,174 @@ var te = gt, M, ee = (M = class {
699
701
  getDirection() {
700
702
  return this.direction;
701
703
  }
702
- setDirection(i) {
703
- this.direction = i;
704
+ setDirection(e) {
705
+ this.direction = e;
704
706
  }
705
- getCompiledStyles(i) {
706
- let o = [];
707
- for (const h of i) {
708
- const c = this.classes.get(h);
709
- c != null && c.styles && (o = [...o, ...c.styles ?? []].map((u) => u.trim())), c != null && c.textStyles && (o = [...o, ...c.textStyles ?? []].map((u) => u.trim()));
707
+ getCompiledStyles(e) {
708
+ let i = [];
709
+ for (const h of e) {
710
+ const a = this.classes.get(h);
711
+ a?.styles && (i = [...i, ...a.styles ?? []].map((u) => u.trim())), a?.textStyles && (i = [...i, ...a.textStyles ?? []].map((u) => u.trim()));
710
712
  }
711
- return o;
713
+ return i;
712
714
  }
713
- addCssStyles(i, o) {
714
- for (const h of i) {
715
- const c = this.entities.get(h);
716
- if (!o || !c)
715
+ addCssStyles(e, i) {
716
+ for (const h of e) {
717
+ const a = this.entities.get(h);
718
+ if (!i || !a)
717
719
  return;
718
- for (const u of o)
719
- c.cssStyles.push(u);
720
+ for (const u of i)
721
+ a.cssStyles.push(u);
720
722
  }
721
723
  }
722
- addClass(i, o) {
723
- i.forEach((h) => {
724
- let c = this.classes.get(h);
725
- c === void 0 && (c = { id: h, styles: [], textStyles: [] }, this.classes.set(h, c)), o && o.forEach(function(u) {
724
+ addClass(e, i) {
725
+ e.forEach((h) => {
726
+ let a = this.classes.get(h);
727
+ a === void 0 && (a = { id: h, styles: [], textStyles: [] }, this.classes.set(h, a)), i && i.forEach(function(u) {
726
728
  if (/color/.exec(u)) {
727
- const f = u.replace("fill", "bgFill");
728
- c.textStyles.push(f);
729
+ const d = u.replace("fill", "bgFill");
730
+ a.textStyles.push(d);
729
731
  }
730
- c.styles.push(u);
732
+ a.styles.push(u);
731
733
  });
732
734
  });
733
735
  }
734
- setClass(i, o) {
735
- for (const h of i) {
736
- const c = this.entities.get(h);
737
- if (c)
738
- for (const u of o)
739
- c.cssClasses += " " + u;
736
+ setClass(e, i) {
737
+ for (const h of e) {
738
+ const a = this.entities.get(h);
739
+ if (a)
740
+ for (const u of i)
741
+ a.cssClasses += " " + u;
740
742
  }
741
743
  }
742
744
  clear() {
743
- this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Zt();
745
+ this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Ut();
744
746
  }
745
747
  getData() {
746
- const i = [], o = [], h = rt();
747
- let c = 0;
748
- for (const f of this.entities.keys()) {
749
- const d = this.entities.get(f);
750
- d && (d.cssCompiledStyles = this.getCompiledStyles(d.cssClasses.split(" ")), d.colorIndex = c++, i.push(d));
748
+ const e = [], i = [], h = it();
749
+ let a = 0;
750
+ for (const d of this.entities.keys()) {
751
+ const y = this.entities.get(d);
752
+ y && (y.cssCompiledStyles = this.getCompiledStyles(y.cssClasses.split(" ")), y.colorIndex = a++, e.push(y));
751
753
  }
752
754
  let u = 0;
753
- for (const f of this.relationships) {
754
- const d = {
755
- id: jt(f.entityA, f.entityB, {
755
+ for (const d of this.relationships) {
756
+ const y = {
757
+ id: Zt(d.entityA, d.entityB, {
756
758
  prefix: "id",
757
759
  counter: u++
758
760
  }),
759
761
  type: "normal",
760
762
  curve: "basis",
761
- start: f.entityA,
762
- end: f.entityB,
763
- label: f.roleA,
763
+ start: d.entityA,
764
+ end: d.entityB,
765
+ label: d.roleA,
764
766
  labelpos: "c",
765
767
  thickness: "normal",
766
768
  classes: "relationshipLine",
767
- arrowTypeStart: f.relSpec.cardB.toLowerCase(),
768
- arrowTypeEnd: f.relSpec.cardA.toLowerCase(),
769
- pattern: f.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
769
+ arrowTypeStart: d.relSpec.cardB.toLowerCase(),
770
+ arrowTypeEnd: d.relSpec.cardA.toLowerCase(),
771
+ pattern: d.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
770
772
  look: h.look,
771
773
  labelType: "markdown"
772
774
  };
773
- o.push(d);
775
+ i.push(y);
774
776
  }
775
- return { nodes: i, edges: o, other: {}, config: h, direction: "TB" };
777
+ return { nodes: e, edges: i, other: {}, config: h, direction: "TB" };
776
778
  }
777
- }, p(M, "ErDB"), M), vt = {};
778
- qt(vt, {
779
- draw: () => se
779
+ }, xt = {};
780
+ Wt(xt, {
781
+ draw: () => ee
780
782
  });
781
- var se = /* @__PURE__ */ p(async function(s, i, o, h) {
783
+ var ee = /* @__PURE__ */ l(async function(e, i, h, a) {
782
784
  V.info("REF0:"), V.info("Drawing er diagram (unified)", i);
783
- const { securityLevel: c, er: u, layout: f } = rt(), d = h.db.getData(), m = Bt(i, c);
784
- d.type = h.type, d.layoutAlgorithm = Qt(f), d.config.flowchart.nodeSpacing = (u == null ? void 0 : u.nodeSpacing) || 140, d.config.flowchart.rankSpacing = (u == null ? void 0 : u.rankSpacing) || 80, d.direction = h.db.getDirection();
785
- const { config: W } = d, { look: q } = W;
786
- q === "neo" ? d.markers = [
785
+ const { securityLevel: u, er: d, layout: y } = it(), f = a.db.getData(), m = Mt(i, u);
786
+ f.type = a.type, f.layoutAlgorithm = qt(y), f.config.flowchart.nodeSpacing = d?.nodeSpacing || 140, f.config.flowchart.rankSpacing = d?.rankSpacing || 80, f.direction = a.db.getDirection();
787
+ const { config: j } = f, { look: W } = j;
788
+ W === "neo" ? f.markers = [
787
789
  "only_one_neo",
788
790
  "zero_or_one_neo",
789
791
  "one_or_more_neo",
790
792
  "zero_or_more_neo"
791
- ] : d.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], d.diagramId = i, await Xt(d, m), d.layoutAlgorithm === "elk" && m.select(".edges").lower();
793
+ ] : f.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], f.diagramId = i, await Qt(f, m), f.layoutAlgorithm === "elk" && m.select(".edges").lower();
792
794
  const S = m.selectAll('[id*="-background"]');
793
795
  Array.from(S).length > 0 && S.each(function() {
794
- const B = Ht(this), R = B.attr("id").replace("-background", ""), T = m.select(`#${CSS.escape(R)}`);
796
+ const M = Xt(this), R = M.attr("id").replace("-background", ""), T = m.select(`#${CSS.escape(R)}`);
795
797
  if (!T.empty()) {
796
- const x = T.attr("transform");
797
- B.attr("transform", x);
798
+ const C = T.attr("transform");
799
+ M.attr("transform", C);
798
800
  }
799
801
  });
800
- const Q = 8;
801
- Jt.insertTitle(
802
+ const q = 8;
803
+ Ht.insertTitle(
802
804
  m,
803
805
  "erDiagramTitleText",
804
- (u == null ? void 0 : u.titleTopMargin) ?? 25,
805
- h.db.getDiagramTitle()
806
- ), Ft(m, Q, "erDiagram", (u == null ? void 0 : u.useMaxWidth) ?? !0);
807
- }, "draw"), Ct = /* @__PURE__ */ p((s, i) => {
808
- const o = $t, h = o(s, "r"), c = o(s, "g"), u = o(s, "b");
809
- return Wt(h, c, u, i);
810
- }, "fade"), nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), ie = /* @__PURE__ */ p((s) => {
811
- const { theme: i, look: o, bkgColorArray: h, borderColorArray: c } = s;
812
- if (!nt.has(i))
806
+ d?.titleTopMargin ?? 25,
807
+ a.db.getDiagramTitle()
808
+ ), Bt(m, q, "erDiagram", d?.useMaxWidth ?? !0);
809
+ }, "draw"), Ct = /* @__PURE__ */ l((e, i) => {
810
+ const h = Jt, a = h(e, "r"), u = h(e, "g"), d = h(e, "b");
811
+ return jt(a, u, d, i);
812
+ }, "fade"), rt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), se = /* @__PURE__ */ l((e) => {
813
+ const { theme: i, look: h, bkgColorArray: a, borderColorArray: u } = e;
814
+ if (!rt.has(i))
813
815
  return "";
814
- const u = (h == null ? void 0 : h.length) > 0;
815
- let f = "";
816
- for (let d = 0; d < s.THEME_COLOR_LIMIT; d++)
817
- f += `
816
+ const d = a?.length > 0;
817
+ let y = "";
818
+ for (let f = 0; f < e.THEME_COLOR_LIMIT; f++)
819
+ y += `
818
820
 
819
- [data-look="${o}"][data-color-id="color-${d}"].node path {
820
- stroke: ${c[d]};
821
- ${u ? `fill: ${h[d]};` : ""}
821
+ [data-look="${h}"][data-color-id="color-${f}"].node path {
822
+ stroke: ${u[f]};
823
+ ${d ? `fill: ${a[f]};` : ""}
822
824
  }
823
825
 
824
- [data-look="${o}"][data-color-id="color-${d}"].node rect {
825
- stroke: ${c[d]};
826
- ${u ? `fill: ${h[d]};` : ""}
826
+ [data-look="${h}"][data-color-id="color-${f}"].node rect {
827
+ stroke: ${u[f]};
828
+ ${d ? `fill: ${a[f]};` : ""}
827
829
  }
828
830
  `;
829
- return f;
830
- }, "genColor"), re = /* @__PURE__ */ p((s) => {
831
- const { look: i, theme: o, erEdgeLabelBackground: h, strokeWidth: c } = s;
831
+ return y;
832
+ }, "genColor"), ie = /* @__PURE__ */ l((e) => {
833
+ const { look: i, theme: h, erEdgeLabelBackground: a, strokeWidth: u } = e;
832
834
  return `
833
- ${ie(s)}
835
+ ${se(e)}
834
836
  .entityBox {
835
- fill: ${s.mainBkg};
836
- stroke: ${s.nodeBorder};
837
+ fill: ${e.mainBkg};
838
+ stroke: ${e.nodeBorder};
837
839
  }
838
840
 
839
841
  .relationshipLabelBox {
840
- fill: ${s.tertiaryColor};
842
+ fill: ${e.tertiaryColor};
841
843
  opacity: 0.7;
842
- background-color: ${s.tertiaryColor};
844
+ background-color: ${e.tertiaryColor};
843
845
  rect {
844
846
  opacity: 0.5;
845
847
  }
846
848
  }
847
849
 
848
850
  .labelBkg {
849
- background-color: ${nt.has(o) && h ? h : Ct(s.tertiaryColor, 0.5)};
851
+ background-color: ${rt.has(h) && a ? a : Ct(e.tertiaryColor, 0.5)};
850
852
  }
851
853
 
852
854
  .edgeLabel {
853
- background-color: ${nt.has(o) && h ? h : s.edgeLabelBackground};
855
+ background-color: ${rt.has(h) && a ? a : e.edgeLabelBackground};
854
856
  }
855
857
  .edgeLabel .label rect {
856
- fill: ${nt.has(o) && h ? h : s.edgeLabelBackground};
858
+ fill: ${rt.has(h) && a ? a : e.edgeLabelBackground};
857
859
  }
858
860
  .edgeLabel .label text {
859
- fill: ${s.textColor};
861
+ fill: ${e.textColor};
860
862
  }
861
863
 
862
864
  .edgeLabel .label {
863
- fill: ${s.nodeBorder};
865
+ fill: ${e.nodeBorder};
864
866
  font-size: 14px;
865
867
  }
866
868
 
867
869
  .label {
868
- font-family: ${s.fontFamily};
869
- color: ${s.nodeTextColor || s.textColor};
870
+ font-family: ${e.fontFamily};
871
+ color: ${e.nodeTextColor || e.textColor};
870
872
  }
871
873
 
872
874
  .edge-pattern-dashed {
@@ -878,34 +880,34 @@ var se = /* @__PURE__ */ p(async function(s, i, o, h) {
878
880
  .node ellipse,
879
881
  .node polygon
880
882
  {
881
- fill: ${s.mainBkg};
882
- stroke: ${s.nodeBorder};
883
- stroke-width: ${i === "neo" ? c : "1px"};
883
+ fill: ${e.mainBkg};
884
+ stroke: ${e.nodeBorder};
885
+ stroke-width: ${i === "neo" ? u : "1px"};
884
886
  }
885
887
 
886
888
  .relationshipLine {
887
- stroke: ${s.lineColor};
888
- stroke-width: ${i === "neo" ? c : "1px"};
889
+ stroke: ${e.lineColor};
890
+ stroke-width: ${i === "neo" ? u : "1px"};
889
891
  fill: none;
890
892
  }
891
893
 
892
894
  .marker {
893
895
  fill: none !important;
894
- stroke: ${s.lineColor} !important;
896
+ stroke: ${e.lineColor} !important;
895
897
  stroke-width: 1;
896
898
  }
897
899
  [data-look=neo].labelBkg {
898
- background-color: ${Ct(s.tertiaryColor, 0.5)};
900
+ background-color: ${Ct(e.tertiaryColor, 0.5)};
899
901
  }
900
902
  `;
901
- }, "getStyles"), ne = re, he = {
902
- parser: te,
903
+ }, "getStyles"), re = ie, le = {
904
+ parser: $t,
903
905
  get db() {
904
- return new ee();
906
+ return new te();
905
907
  },
906
- renderer: vt,
907
- styles: ne
908
+ renderer: xt,
909
+ styles: re
908
910
  };
909
911
  export {
910
- he as diagram
912
+ le as diagram
911
913
  };