@omg-dev/app 0.5.0 → 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-8lbvM9Pz.js → ChangelogPage-Cjj_DiYL.js} +57 -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-BKcTU57t.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
  7. package/dist-lib/{TermView-gazV6UMU.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-83mwx0z2.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-8Nf-IuE2.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-BmrQsEvQ.js → embedded-PUsgcSTE.js} +13043 -13082
  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-Dr_81Gfm.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-CGhHZ3lT.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-p3oulUiM.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-Dbn0PKUH.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,18 +1,18 @@
1
- import { g as Se, d as De } from "./chunk-32BRIVSS-IYmNSvH8.js";
2
- import { s as Pe, g as Be, a as Ie, b as Me, _ as y, c as Bt, d as jt, l as de, e as Le, f as Ne, h as Tt, i as ge, j as Ye, w as je, k as $t, m as fe } from "./index-JkCQXUYs.js";
3
- var Ft = (function() {
4
- var a = /* @__PURE__ */ y(function(_t, x, v, E) {
1
+ import { g as Oe, d as Re } from "./chunk-32BRIVSS-DvywQiCk.js";
2
+ import { s as Se, g as De, a as Pe, b as Be, _ as y, c as Dt, d as Nt, l as he, e as Ie, f as Me, h as Tt, i as pe, j as Le, w as Ne, k as Jt, m as ue } from "./index-B0neMIbR.js";
3
+ var jt = (function() {
4
+ var e = /* @__PURE__ */ y(function(_t, x, v, E) {
5
5
  for (v = v || {}, E = _t.length; E--; v[_t[E]] = x) ;
6
6
  return v;
7
- }, "o"), t = [1, 24], s = [1, 25], o = [1, 26], r = [1, 27], l = [1, 28], e = [1, 63], n = [1, 64], i = [1, 65], u = [1, 66], d = [1, 67], f = [1, 68], g = [1, 69], m = [1, 29], O = [1, 30], S = [1, 31], P = [1, 32], M = [1, 33], U = [1, 34], H = [1, 35], q = [1, 36], G = [1, 37], K = [1, 38], J = [1, 39], Z = [1, 40], $ = [1, 41], tt = [1, 42], et = [1, 43], at = [1, 44], it = [1, 45], nt = [1, 46], st = [1, 47], rt = [1, 48], lt = [1, 50], ot = [1, 51], ct = [1, 52], ht = [1, 53], ut = [1, 54], dt = [1, 55], ft = [1, 56], pt = [1, 57], yt = [1, 58], gt = [1, 59], bt = [1, 60], Ct = [14, 42], Qt = [14, 34, 36, 37, 38, 39, 40, 41, 42, 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, 69, 70, 71, 72, 73, 74], St = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 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, 69, 70, 71, 72, 73, 74], A = [1, 82], k = [1, 83], C = [1, 84], w = [1, 85], T = [12, 14, 42], le = [12, 14, 33, 42], Mt = [12, 14, 33, 42, 76, 77, 79, 80], vt = [12, 33], Ht = [34, 36, 37, 38, 39, 40, 41, 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, 69, 70, 71, 72, 73, 74], qt = {
7
+ }, "o"), t = [1, 24], s = [1, 25], o = [1, 26], l = [1, 27], r = [1, 28], a = [1, 63], n = [1, 64], i = [1, 65], u = [1, 66], d = [1, 67], p = [1, 68], g = [1, 69], m = [1, 29], O = [1, 30], S = [1, 31], P = [1, 32], M = [1, 33], U = [1, 34], H = [1, 35], q = [1, 36], G = [1, 37], K = [1, 38], J = [1, 39], Z = [1, 40], $ = [1, 41], tt = [1, 42], et = [1, 43], at = [1, 44], it = [1, 45], nt = [1, 46], st = [1, 47], rt = [1, 48], lt = [1, 50], ot = [1, 51], ct = [1, 52], ht = [1, 53], ut = [1, 54], dt = [1, 55], ft = [1, 56], pt = [1, 57], yt = [1, 58], gt = [1, 59], bt = [1, 60], Ct = [14, 42], Xt = [14, 34, 36, 37, 38, 39, 40, 41, 42, 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, 69, 70, 71, 72, 73, 74], Ot = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 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, 69, 70, 71, 72, 73, 74], A = [1, 82], k = [1, 83], C = [1, 84], w = [1, 85], T = [12, 14, 42], se = [12, 14, 33, 42], Bt = [12, 14, 33, 42, 76, 77, 79, 80], vt = [12, 33], Wt = [34, 36, 37, 38, 39, 40, 41, 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, 69, 70, 71, 72, 73, 74], Qt = {
8
8
  trace: /* @__PURE__ */ y(function() {
9
9
  }, "trace"),
10
10
  yy: {},
11
11
  symbols_: { error: 2, start: 3, mermaidDoc: 4, direction: 5, direction_tb: 6, direction_bt: 7, direction_rl: 8, direction_lr: 9, graphConfig: 10, C4_CONTEXT: 11, NEWLINE: 12, statements: 13, EOF: 14, C4_CONTAINER: 15, C4_COMPONENT: 16, C4_DYNAMIC: 17, C4_DEPLOYMENT: 18, otherStatements: 19, diagramStatements: 20, otherStatement: 21, title: 22, accDescription: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, boundaryStatement: 29, boundaryStartStatement: 30, boundaryStopStatement: 31, boundaryStart: 32, LBRACE: 33, ENTERPRISE_BOUNDARY: 34, attributes: 35, SYSTEM_BOUNDARY: 36, BOUNDARY: 37, CONTAINER_BOUNDARY: 38, NODE: 39, NODE_L: 40, NODE_R: 41, RBRACE: 42, diagramStatement: 43, PERSON: 44, PERSON_EXT: 45, SYSTEM: 46, SYSTEM_DB: 47, SYSTEM_QUEUE: 48, SYSTEM_EXT: 49, SYSTEM_EXT_DB: 50, SYSTEM_EXT_QUEUE: 51, CONTAINER: 52, CONTAINER_DB: 53, CONTAINER_QUEUE: 54, CONTAINER_EXT: 55, CONTAINER_EXT_DB: 56, CONTAINER_EXT_QUEUE: 57, COMPONENT: 58, COMPONENT_DB: 59, COMPONENT_QUEUE: 60, COMPONENT_EXT: 61, COMPONENT_EXT_DB: 62, COMPONENT_EXT_QUEUE: 63, REL: 64, BIREL: 65, REL_U: 66, REL_D: 67, REL_L: 68, REL_R: 69, REL_B: 70, REL_INDEX: 71, UPDATE_EL_STYLE: 72, UPDATE_REL_STYLE: 73, UPDATE_LAYOUT_CONFIG: 74, attribute: 75, STR: 76, STR_KEY: 77, STR_VALUE: 78, ATTRIBUTE: 79, ATTRIBUTE_EMPTY: 80, $accept: 0, $end: 1 },
12
12
  terminals_: { 2: "error", 6: "direction_tb", 7: "direction_bt", 8: "direction_rl", 9: "direction_lr", 11: "C4_CONTEXT", 12: "NEWLINE", 14: "EOF", 15: "C4_CONTAINER", 16: "C4_COMPONENT", 17: "C4_DYNAMIC", 18: "C4_DEPLOYMENT", 22: "title", 23: "accDescription", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "LBRACE", 34: "ENTERPRISE_BOUNDARY", 36: "SYSTEM_BOUNDARY", 37: "BOUNDARY", 38: "CONTAINER_BOUNDARY", 39: "NODE", 40: "NODE_L", 41: "NODE_R", 42: "RBRACE", 44: "PERSON", 45: "PERSON_EXT", 46: "SYSTEM", 47: "SYSTEM_DB", 48: "SYSTEM_QUEUE", 49: "SYSTEM_EXT", 50: "SYSTEM_EXT_DB", 51: "SYSTEM_EXT_QUEUE", 52: "CONTAINER", 53: "CONTAINER_DB", 54: "CONTAINER_QUEUE", 55: "CONTAINER_EXT", 56: "CONTAINER_EXT_DB", 57: "CONTAINER_EXT_QUEUE", 58: "COMPONENT", 59: "COMPONENT_DB", 60: "COMPONENT_QUEUE", 61: "COMPONENT_EXT", 62: "COMPONENT_EXT_DB", 63: "COMPONENT_EXT_QUEUE", 64: "REL", 65: "BIREL", 66: "REL_U", 67: "REL_D", 68: "REL_L", 69: "REL_R", 70: "REL_B", 71: "REL_INDEX", 72: "UPDATE_EL_STYLE", 73: "UPDATE_REL_STYLE", 74: "UPDATE_LAYOUT_CONFIG", 76: "STR", 77: "STR_KEY", 78: "STR_VALUE", 79: "ATTRIBUTE", 80: "ATTRIBUTE_EMPTY" },
13
13
  productions_: [0, [3, 1], [3, 1], [5, 1], [5, 1], [5, 1], [5, 1], [4, 1], [10, 4], [10, 4], [10, 4], [10, 4], [10, 4], [13, 1], [13, 1], [13, 2], [19, 1], [19, 2], [19, 3], [21, 1], [21, 1], [21, 2], [21, 2], [21, 1], [29, 3], [30, 3], [30, 3], [30, 4], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [31, 1], [20, 1], [20, 2], [20, 3], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 1], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [35, 1], [35, 2], [75, 1], [75, 2], [75, 1], [75, 1]],
14
- performAction: /* @__PURE__ */ y(function(x, v, E, b, R, h, Dt) {
15
- var p = h.length - 1;
14
+ performAction: /* @__PURE__ */ y(function(x, v, E, b, R, h, Rt) {
15
+ var f = h.length - 1;
16
16
  switch (R) {
17
17
  case 3:
18
18
  b.setDirection("TB");
@@ -31,158 +31,158 @@ var Ft = (function() {
31
31
  case 10:
32
32
  case 11:
33
33
  case 12:
34
- b.setC4Type(h[p - 3]);
34
+ b.setC4Type(h[f - 3]);
35
35
  break;
36
36
  case 19:
37
- b.setTitle(h[p].substring(6)), this.$ = h[p].substring(6);
37
+ b.setTitle(h[f].substring(6)), this.$ = h[f].substring(6);
38
38
  break;
39
39
  case 20:
40
- b.setAccDescription(h[p].substring(15)), this.$ = h[p].substring(15);
40
+ b.setAccDescription(h[f].substring(15)), this.$ = h[f].substring(15);
41
41
  break;
42
42
  case 21:
43
- this.$ = h[p].trim(), b.setTitle(this.$);
43
+ this.$ = h[f].trim(), b.setTitle(this.$);
44
44
  break;
45
45
  case 22:
46
46
  case 23:
47
- this.$ = h[p].trim(), b.setAccDescription(this.$);
47
+ this.$ = h[f].trim(), b.setAccDescription(this.$);
48
48
  break;
49
49
  case 28:
50
- h[p].splice(2, 0, "ENTERPRISE"), b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
50
+ h[f].splice(2, 0, "ENTERPRISE"), b.addPersonOrSystemBoundary(...h[f]), this.$ = h[f];
51
51
  break;
52
52
  case 29:
53
- h[p].splice(2, 0, "SYSTEM"), b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
53
+ h[f].splice(2, 0, "SYSTEM"), b.addPersonOrSystemBoundary(...h[f]), this.$ = h[f];
54
54
  break;
55
55
  case 30:
56
- b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
56
+ b.addPersonOrSystemBoundary(...h[f]), this.$ = h[f];
57
57
  break;
58
58
  case 31:
59
- h[p].splice(2, 0, "CONTAINER"), b.addContainerBoundary(...h[p]), this.$ = h[p];
59
+ h[f].splice(2, 0, "CONTAINER"), b.addContainerBoundary(...h[f]), this.$ = h[f];
60
60
  break;
61
61
  case 32:
62
- b.addDeploymentNode("node", ...h[p]), this.$ = h[p];
62
+ b.addDeploymentNode("node", ...h[f]), this.$ = h[f];
63
63
  break;
64
64
  case 33:
65
- b.addDeploymentNode("nodeL", ...h[p]), this.$ = h[p];
65
+ b.addDeploymentNode("nodeL", ...h[f]), this.$ = h[f];
66
66
  break;
67
67
  case 34:
68
- b.addDeploymentNode("nodeR", ...h[p]), this.$ = h[p];
68
+ b.addDeploymentNode("nodeR", ...h[f]), this.$ = h[f];
69
69
  break;
70
70
  case 35:
71
71
  b.popBoundaryParseStack();
72
72
  break;
73
73
  case 39:
74
- b.addPersonOrSystem("person", ...h[p]), this.$ = h[p];
74
+ b.addPersonOrSystem("person", ...h[f]), this.$ = h[f];
75
75
  break;
76
76
  case 40:
77
- b.addPersonOrSystem("external_person", ...h[p]), this.$ = h[p];
77
+ b.addPersonOrSystem("external_person", ...h[f]), this.$ = h[f];
78
78
  break;
79
79
  case 41:
80
- b.addPersonOrSystem("system", ...h[p]), this.$ = h[p];
80
+ b.addPersonOrSystem("system", ...h[f]), this.$ = h[f];
81
81
  break;
82
82
  case 42:
83
- b.addPersonOrSystem("system_db", ...h[p]), this.$ = h[p];
83
+ b.addPersonOrSystem("system_db", ...h[f]), this.$ = h[f];
84
84
  break;
85
85
  case 43:
86
- b.addPersonOrSystem("system_queue", ...h[p]), this.$ = h[p];
86
+ b.addPersonOrSystem("system_queue", ...h[f]), this.$ = h[f];
87
87
  break;
88
88
  case 44:
89
- b.addPersonOrSystem("external_system", ...h[p]), this.$ = h[p];
89
+ b.addPersonOrSystem("external_system", ...h[f]), this.$ = h[f];
90
90
  break;
91
91
  case 45:
92
- b.addPersonOrSystem("external_system_db", ...h[p]), this.$ = h[p];
92
+ b.addPersonOrSystem("external_system_db", ...h[f]), this.$ = h[f];
93
93
  break;
94
94
  case 46:
95
- b.addPersonOrSystem("external_system_queue", ...h[p]), this.$ = h[p];
95
+ b.addPersonOrSystem("external_system_queue", ...h[f]), this.$ = h[f];
96
96
  break;
97
97
  case 47:
98
- b.addContainer("container", ...h[p]), this.$ = h[p];
98
+ b.addContainer("container", ...h[f]), this.$ = h[f];
99
99
  break;
100
100
  case 48:
101
- b.addContainer("container_db", ...h[p]), this.$ = h[p];
101
+ b.addContainer("container_db", ...h[f]), this.$ = h[f];
102
102
  break;
103
103
  case 49:
104
- b.addContainer("container_queue", ...h[p]), this.$ = h[p];
104
+ b.addContainer("container_queue", ...h[f]), this.$ = h[f];
105
105
  break;
106
106
  case 50:
107
- b.addContainer("external_container", ...h[p]), this.$ = h[p];
107
+ b.addContainer("external_container", ...h[f]), this.$ = h[f];
108
108
  break;
109
109
  case 51:
110
- b.addContainer("external_container_db", ...h[p]), this.$ = h[p];
110
+ b.addContainer("external_container_db", ...h[f]), this.$ = h[f];
111
111
  break;
112
112
  case 52:
113
- b.addContainer("external_container_queue", ...h[p]), this.$ = h[p];
113
+ b.addContainer("external_container_queue", ...h[f]), this.$ = h[f];
114
114
  break;
115
115
  case 53:
116
- b.addComponent("component", ...h[p]), this.$ = h[p];
116
+ b.addComponent("component", ...h[f]), this.$ = h[f];
117
117
  break;
118
118
  case 54:
119
- b.addComponent("component_db", ...h[p]), this.$ = h[p];
119
+ b.addComponent("component_db", ...h[f]), this.$ = h[f];
120
120
  break;
121
121
  case 55:
122
- b.addComponent("component_queue", ...h[p]), this.$ = h[p];
122
+ b.addComponent("component_queue", ...h[f]), this.$ = h[f];
123
123
  break;
124
124
  case 56:
125
- b.addComponent("external_component", ...h[p]), this.$ = h[p];
125
+ b.addComponent("external_component", ...h[f]), this.$ = h[f];
126
126
  break;
127
127
  case 57:
128
- b.addComponent("external_component_db", ...h[p]), this.$ = h[p];
128
+ b.addComponent("external_component_db", ...h[f]), this.$ = h[f];
129
129
  break;
130
130
  case 58:
131
- b.addComponent("external_component_queue", ...h[p]), this.$ = h[p];
131
+ b.addComponent("external_component_queue", ...h[f]), this.$ = h[f];
132
132
  break;
133
133
  case 60:
134
- b.addRel("rel", ...h[p]), this.$ = h[p];
134
+ b.addRel("rel", ...h[f]), this.$ = h[f];
135
135
  break;
136
136
  case 61:
137
- b.addRel("birel", ...h[p]), this.$ = h[p];
137
+ b.addRel("birel", ...h[f]), this.$ = h[f];
138
138
  break;
139
139
  case 62:
140
- b.addRel("rel_u", ...h[p]), this.$ = h[p];
140
+ b.addRel("rel_u", ...h[f]), this.$ = h[f];
141
141
  break;
142
142
  case 63:
143
- b.addRel("rel_d", ...h[p]), this.$ = h[p];
143
+ b.addRel("rel_d", ...h[f]), this.$ = h[f];
144
144
  break;
145
145
  case 64:
146
- b.addRel("rel_l", ...h[p]), this.$ = h[p];
146
+ b.addRel("rel_l", ...h[f]), this.$ = h[f];
147
147
  break;
148
148
  case 65:
149
- b.addRel("rel_r", ...h[p]), this.$ = h[p];
149
+ b.addRel("rel_r", ...h[f]), this.$ = h[f];
150
150
  break;
151
151
  case 66:
152
- b.addRel("rel_b", ...h[p]), this.$ = h[p];
152
+ b.addRel("rel_b", ...h[f]), this.$ = h[f];
153
153
  break;
154
154
  case 67:
155
- h[p].splice(0, 1), b.addRel("rel", ...h[p]), this.$ = h[p];
155
+ h[f].splice(0, 1), b.addRel("rel", ...h[f]), this.$ = h[f];
156
156
  break;
157
157
  case 68:
158
- b.updateElStyle("update_el_style", ...h[p]), this.$ = h[p];
158
+ b.updateElStyle("update_el_style", ...h[f]), this.$ = h[f];
159
159
  break;
160
160
  case 69:
161
- b.updateRelStyle("update_rel_style", ...h[p]), this.$ = h[p];
161
+ b.updateRelStyle("update_rel_style", ...h[f]), this.$ = h[f];
162
162
  break;
163
163
  case 70:
164
- b.updateLayoutConfig("update_layout_config", ...h[p]), this.$ = h[p];
164
+ b.updateLayoutConfig("update_layout_config", ...h[f]), this.$ = h[f];
165
165
  break;
166
166
  case 71:
167
- this.$ = [h[p]];
167
+ this.$ = [h[f]];
168
168
  break;
169
169
  case 72:
170
- h[p].unshift(h[p - 1]), this.$ = h[p];
170
+ h[f].unshift(h[f - 1]), this.$ = h[f];
171
171
  break;
172
172
  case 73:
173
173
  case 75:
174
- this.$ = h[p].trim();
174
+ this.$ = h[f].trim();
175
175
  break;
176
176
  case 74:
177
177
  let Et = {};
178
- Et[h[p - 1].trim()] = h[p].trim(), this.$ = Et;
178
+ Et[h[f - 1].trim()] = h[f].trim(), this.$ = Et;
179
179
  break;
180
180
  case 76:
181
181
  this.$ = "";
182
182
  break;
183
183
  }
184
184
  }, "anonymous"),
185
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: f, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: f, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: f, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: f, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: f, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 14: [1, 74] }, a(Ct, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: e, 36: n, 37: i, 38: u, 39: d, 40: f, 41: g, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), a(Ct, [2, 14]), a(Qt, [2, 16], { 12: [1, 76] }), a(Ct, [2, 36], { 12: [1, 77] }), a(St, [2, 19]), a(St, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, a(St, [2, 23]), { 35: 80, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 86, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 87, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 88, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 89, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 90, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 91, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 92, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 93, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 94, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 95, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 96, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 97, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 98, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 99, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 100, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 101, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 102, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 103, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 104, 75: 81, 76: A, 77: k, 79: C, 80: w }, a(T, [2, 59]), { 35: 105, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 106, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 107, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 108, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 109, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 110, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 111, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 112, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 113, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 114, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 115, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: f, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 120, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 121, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 122, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 123, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 124, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 125, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, a(Ct, [2, 15]), a(Qt, [2, 17], { 21: 22, 19: 130, 22: t, 23: s, 24: o, 26: r, 28: l }), a(Ct, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: t, 23: s, 24: o, 26: r, 28: l, 34: e, 36: n, 37: i, 38: u, 39: d, 40: f, 41: g, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), a(St, [2, 21]), a(St, [2, 22]), a(T, [2, 39]), a(le, [2, 71], { 75: 81, 35: 132, 76: A, 77: k, 79: C, 80: w }), a(Mt, [2, 73]), { 78: [1, 133] }, a(Mt, [2, 75]), a(Mt, [2, 76]), a(T, [2, 40]), a(T, [2, 41]), a(T, [2, 42]), a(T, [2, 43]), a(T, [2, 44]), a(T, [2, 45]), a(T, [2, 46]), a(T, [2, 47]), a(T, [2, 48]), a(T, [2, 49]), a(T, [2, 50]), a(T, [2, 51]), a(T, [2, 52]), a(T, [2, 53]), a(T, [2, 54]), a(T, [2, 55]), a(T, [2, 56]), a(T, [2, 57]), a(T, [2, 58]), a(T, [2, 60]), a(T, [2, 61]), a(T, [2, 62]), a(T, [2, 63]), a(T, [2, 64]), a(T, [2, 65]), a(T, [2, 66]), a(T, [2, 67]), a(T, [2, 68]), a(T, [2, 69]), a(T, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, a(vt, [2, 28]), a(vt, [2, 29]), a(vt, [2, 30]), a(vt, [2, 31]), a(vt, [2, 32]), a(vt, [2, 33]), a(vt, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, a(Qt, [2, 18]), a(Ct, [2, 38]), a(le, [2, 72]), a(Mt, [2, 74]), a(T, [2, 24]), a(T, [2, 35]), a(Ht, [2, 25]), a(Ht, [2, 26], { 12: [1, 138] }), a(Ht, [2, 27])],
185
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: r, 29: 49, 30: 61, 32: 62, 34: a, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: r, 29: 49, 30: 61, 32: 62, 34: a, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: r, 29: 49, 30: 61, 32: 62, 34: a, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: r, 29: 49, 30: 61, 32: 62, 34: a, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: r, 29: 49, 30: 61, 32: 62, 34: a, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 14: [1, 74] }, e(Ct, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: a, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), e(Ct, [2, 14]), e(Xt, [2, 16], { 12: [1, 76] }), e(Ct, [2, 36], { 12: [1, 77] }), e(Ot, [2, 19]), e(Ot, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, e(Ot, [2, 23]), { 35: 80, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 86, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 87, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 88, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 89, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 90, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 91, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 92, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 93, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 94, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 95, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 96, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 97, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 98, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 99, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 100, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 101, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 102, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 103, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 104, 75: 81, 76: A, 77: k, 79: C, 80: w }, e(T, [2, 59]), { 35: 105, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 106, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 107, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 108, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 109, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 110, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 111, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 112, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 113, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 114, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 115, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: a, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 120, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 121, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 122, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 123, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 124, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 125, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, e(Ct, [2, 15]), e(Xt, [2, 17], { 21: 22, 19: 130, 22: t, 23: s, 24: o, 26: l, 28: r }), e(Ct, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: t, 23: s, 24: o, 26: l, 28: r, 34: a, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 44: m, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), e(Ot, [2, 21]), e(Ot, [2, 22]), e(T, [2, 39]), e(se, [2, 71], { 75: 81, 35: 132, 76: A, 77: k, 79: C, 80: w }), e(Bt, [2, 73]), { 78: [1, 133] }, e(Bt, [2, 75]), e(Bt, [2, 76]), e(T, [2, 40]), e(T, [2, 41]), e(T, [2, 42]), e(T, [2, 43]), e(T, [2, 44]), e(T, [2, 45]), e(T, [2, 46]), e(T, [2, 47]), e(T, [2, 48]), e(T, [2, 49]), e(T, [2, 50]), e(T, [2, 51]), e(T, [2, 52]), e(T, [2, 53]), e(T, [2, 54]), e(T, [2, 55]), e(T, [2, 56]), e(T, [2, 57]), e(T, [2, 58]), e(T, [2, 60]), e(T, [2, 61]), e(T, [2, 62]), e(T, [2, 63]), e(T, [2, 64]), e(T, [2, 65]), e(T, [2, 66]), e(T, [2, 67]), e(T, [2, 68]), e(T, [2, 69]), e(T, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, e(vt, [2, 28]), e(vt, [2, 29]), e(vt, [2, 30]), e(vt, [2, 31]), e(vt, [2, 32]), e(vt, [2, 33]), e(vt, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, e(Xt, [2, 18]), e(Ct, [2, 38]), e(se, [2, 72]), e(Bt, [2, 74]), e(T, [2, 24]), e(T, [2, 35]), e(Wt, [2, 25]), e(Wt, [2, 26], { 12: [1, 138] }), e(Wt, [2, 27])],
186
186
  defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 7], 5: [2, 3], 6: [2, 4], 7: [2, 5], 8: [2, 6], 74: [2, 8], 126: [2, 9], 127: [2, 10], 128: [2, 11], 129: [2, 12] },
187
187
  parseError: /* @__PURE__ */ y(function(x, v) {
188
188
  if (v.recoverable)
@@ -193,44 +193,44 @@ var Ft = (function() {
193
193
  }
194
194
  }, "parseError"),
195
195
  parse: /* @__PURE__ */ y(function(x) {
196
- var v = this, E = [0], b = [], R = [null], h = [], Dt = this.table, p = "", Et = 0, oe = 0, we = 2, ce = 1, Te = h.slice.call(arguments, 1), D = Object.create(this.lexer), At = { yy: {} };
197
- for (var Gt in this.yy)
198
- Object.prototype.hasOwnProperty.call(this.yy, Gt) && (At.yy[Gt] = this.yy[Gt]);
196
+ var v = this, E = [0], b = [], R = [null], h = [], Rt = this.table, f = "", Et = 0, re = 0, ke = 2, le = 1, Ce = h.slice.call(arguments, 1), D = Object.create(this.lexer), At = { yy: {} };
197
+ for (var Ht in this.yy)
198
+ Object.prototype.hasOwnProperty.call(this.yy, Ht) && (At.yy[Ht] = this.yy[Ht]);
199
199
  D.setInput(x, At.yy), At.yy.lexer = D, At.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
200
- var Kt = D.yylloc;
201
- h.push(Kt);
202
- var Oe = D.options && D.options.ranges;
200
+ var qt = D.yylloc;
201
+ h.push(qt);
202
+ var we = D.options && D.options.ranges;
203
203
  typeof At.yy.parseError == "function" ? this.parseError = At.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
204
- function Re(L) {
204
+ function Te(L) {
205
205
  E.length = E.length - 2 * L, R.length = R.length - L, h.length = h.length - L;
206
206
  }
207
- y(Re, "popStack");
208
- function he() {
207
+ y(Te, "popStack");
208
+ function oe() {
209
209
  var L;
210
- return L = b.pop() || D.lex() || ce, typeof L != "number" && (L instanceof Array && (b = L, L = b.pop()), L = v.symbols_[L] || L), L;
210
+ return L = b.pop() || D.lex() || le, typeof L != "number" && (L instanceof Array && (b = L, L = b.pop()), L = v.symbols_[L] || L), L;
211
211
  }
212
- y(he, "lex");
213
- for (var I, kt, N, Jt, wt = {}, Nt, W, ue, Yt; ; ) {
214
- if (kt = E[E.length - 1], this.defaultActions[kt] ? N = this.defaultActions[kt] : ((I === null || typeof I > "u") && (I = he()), N = Dt[kt] && Dt[kt][I]), typeof N > "u" || !N.length || !N[0]) {
215
- var Zt = "";
216
- Yt = [];
217
- for (Nt in Dt[kt])
218
- this.terminals_[Nt] && Nt > we && Yt.push("'" + this.terminals_[Nt] + "'");
219
- D.showPosition ? Zt = "Parse error on line " + (Et + 1) + `:
212
+ y(oe, "lex");
213
+ for (var I, kt, N, Gt, wt = {}, Mt, W, ce, Lt; ; ) {
214
+ if (kt = E[E.length - 1], this.defaultActions[kt] ? N = this.defaultActions[kt] : ((I === null || typeof I > "u") && (I = oe()), N = Rt[kt] && Rt[kt][I]), typeof N > "u" || !N.length || !N[0]) {
215
+ var Kt = "";
216
+ Lt = [];
217
+ for (Mt in Rt[kt])
218
+ this.terminals_[Mt] && Mt > ke && Lt.push("'" + this.terminals_[Mt] + "'");
219
+ D.showPosition ? Kt = "Parse error on line " + (Et + 1) + `:
220
220
  ` + D.showPosition() + `
221
- Expecting ` + Yt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Zt = "Parse error on line " + (Et + 1) + ": Unexpected " + (I == ce ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(Zt, {
221
+ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Kt = "Parse error on line " + (Et + 1) + ": Unexpected " + (I == le ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(Kt, {
222
222
  text: D.match,
223
223
  token: this.terminals_[I] || I,
224
224
  line: D.yylineno,
225
- loc: Kt,
226
- expected: Yt
225
+ loc: qt,
226
+ expected: Lt
227
227
  });
228
228
  }
229
229
  if (N[0] instanceof Array && N.length > 1)
230
230
  throw new Error("Parse Error: multiple actions possible at state: " + kt + ", token: " + I);
231
231
  switch (N[0]) {
232
232
  case 1:
233
- E.push(I), R.push(D.yytext), h.push(D.yylloc), E.push(N[1]), I = null, oe = D.yyleng, p = D.yytext, Et = D.yylineno, Kt = D.yylloc;
233
+ E.push(I), R.push(D.yytext), h.push(D.yylloc), E.push(N[1]), I = null, re = D.yyleng, f = D.yytext, Et = D.yylineno, qt = D.yylloc;
234
234
  break;
235
235
  case 2:
236
236
  if (W = this.productions_[N[1]][1], wt.$ = R[R.length - W], wt._$ = {
@@ -238,20 +238,20 @@ Expecting ` + Yt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Zt =
238
238
  last_line: h[h.length - 1].last_line,
239
239
  first_column: h[h.length - (W || 1)].first_column,
240
240
  last_column: h[h.length - 1].last_column
241
- }, Oe && (wt._$.range = [
241
+ }, we && (wt._$.range = [
242
242
  h[h.length - (W || 1)].range[0],
243
243
  h[h.length - 1].range[1]
244
- ]), Jt = this.performAction.apply(wt, [
245
- p,
246
- oe,
244
+ ]), Gt = this.performAction.apply(wt, [
245
+ f,
246
+ re,
247
247
  Et,
248
248
  At.yy,
249
249
  N[1],
250
250
  R,
251
251
  h
252
- ].concat(Te)), typeof Jt < "u")
253
- return Jt;
254
- W && (E = E.slice(0, -1 * W * 2), R = R.slice(0, -1 * W), h = h.slice(0, -1 * W)), E.push(this.productions_[N[1]][0]), R.push(wt.$), h.push(wt._$), ue = Dt[E[E.length - 2]][E[E.length - 1]], E.push(ue);
252
+ ].concat(Ce)), typeof Gt < "u")
253
+ return Gt;
254
+ W && (E = E.slice(0, -1 * W * 2), R = R.slice(0, -1 * W), h = h.slice(0, -1 * W)), E.push(this.productions_[N[1]][0]), R.push(wt.$), h.push(wt._$), ce = Rt[E[E.length - 2]][E[E.length - 1]], E.push(ce);
255
255
  break;
256
256
  case 3:
257
257
  return !0;
@@ -259,7 +259,7 @@ Expecting ` + Yt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Zt =
259
259
  }
260
260
  return !0;
261
261
  }, "parse")
262
- }, Ce = /* @__PURE__ */ (function() {
262
+ }, Ae = /* @__PURE__ */ (function() {
263
263
  var _t = {
264
264
  EOF: 1,
265
265
  parseError: /* @__PURE__ */ y(function(v, E) {
@@ -620,14 +620,14 @@ Expecting ` + Yt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Zt =
620
620
  };
621
621
  return _t;
622
622
  })();
623
- qt.lexer = Ce;
624
- function Lt() {
623
+ Qt.lexer = Ae;
624
+ function It() {
625
625
  this.yy = {};
626
626
  }
627
- return y(Lt, "Parser"), Lt.prototype = qt, qt.Parser = Lt, new Lt();
627
+ return y(It, "Parser"), It.prototype = Qt, Qt.Parser = It, new It();
628
628
  })();
629
- Ft.parser = Ft;
630
- var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
629
+ jt.parser = jt;
630
+ var Ye = jt, V = [], xt = [""], B = "global", F = "", X = [
631
631
  {
632
632
  alias: "global",
633
633
  label: { text: "global" },
@@ -636,46 +636,46 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
636
636
  link: null,
637
637
  parentBoundary: ""
638
638
  }
639
- ], It = [], ie = "", ne = !1, Vt = 4, zt = 2, be, Fe = /* @__PURE__ */ y(function() {
640
- return be;
641
- }, "getC4Type"), Ve = /* @__PURE__ */ y(function(a) {
642
- be = ge(a, Bt());
643
- }, "setC4Type"), ze = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n, i) {
644
- if (a == null || t === void 0 || t === null || s === void 0 || s === null || o === void 0 || o === null)
639
+ ], Pt = [], ee = "", ae = !1, Ut = 4, Ft = 2, ye, je = /* @__PURE__ */ y(function() {
640
+ return ye;
641
+ }, "getC4Type"), Ue = /* @__PURE__ */ y(function(e) {
642
+ ye = pe(e, Dt());
643
+ }, "setC4Type"), Fe = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n, i) {
644
+ if (e == null || t === void 0 || t === null || s === void 0 || s === null || o === void 0 || o === null)
645
645
  return;
646
646
  let u = {};
647
- const d = It.find((f) => f.from === t && f.to === s);
648
- if (d ? u = d : It.push(u), u.type = a, u.from = t, u.to = s, u.label = { text: o }, r == null)
647
+ const d = Pt.find((p) => p.from === t && p.to === s);
648
+ if (d ? u = d : Pt.push(u), u.type = e, u.from = t, u.to = s, u.label = { text: o }, l == null)
649
649
  u.techn = { text: "" };
650
- else if (typeof r == "object") {
651
- let [f, g] = Object.entries(r)[0];
652
- u[f] = { text: g };
650
+ else if (typeof l == "object") {
651
+ let [p, g] = Object.entries(l)[0];
652
+ u[p] = { text: g };
653
653
  } else
654
- u.techn = { text: r };
655
- if (l == null)
654
+ u.techn = { text: l };
655
+ if (r == null)
656
656
  u.descr = { text: "" };
657
- else if (typeof l == "object") {
658
- let [f, g] = Object.entries(l)[0];
659
- u[f] = { text: g };
657
+ else if (typeof r == "object") {
658
+ let [p, g] = Object.entries(r)[0];
659
+ u[p] = { text: g };
660
660
  } else
661
- u.descr = { text: l };
662
- if (typeof e == "object") {
663
- let [f, g] = Object.entries(e)[0];
664
- u[f] = g;
661
+ u.descr = { text: r };
662
+ if (typeof a == "object") {
663
+ let [p, g] = Object.entries(a)[0];
664
+ u[p] = g;
665
665
  } else
666
- u.sprite = e;
666
+ u.sprite = a;
667
667
  if (typeof n == "object") {
668
- let [f, g] = Object.entries(n)[0];
669
- u[f] = g;
668
+ let [p, g] = Object.entries(n)[0];
669
+ u[p] = g;
670
670
  } else
671
671
  u.tags = n;
672
672
  if (typeof i == "object") {
673
- let [f, g] = Object.entries(i)[0];
674
- u[f] = g;
673
+ let [p, g] = Object.entries(i)[0];
674
+ u[p] = g;
675
675
  } else
676
676
  u.link = i;
677
677
  u.wrap = mt();
678
- }, "addRel"), Xe = /* @__PURE__ */ y(function(a, t, s, o, r, l, e) {
678
+ }, "addRel"), Ve = /* @__PURE__ */ y(function(e, t, s, o, l, r, a) {
679
679
  if (t === null || s === null)
680
680
  return;
681
681
  let n = {};
@@ -687,23 +687,23 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
687
687
  n[u] = { text: d };
688
688
  } else
689
689
  n.descr = { text: o };
690
- if (typeof r == "object") {
691
- let [u, d] = Object.entries(r)[0];
692
- n[u] = d;
693
- } else
694
- n.sprite = r;
695
690
  if (typeof l == "object") {
696
691
  let [u, d] = Object.entries(l)[0];
697
692
  n[u] = d;
698
693
  } else
699
- n.tags = l;
700
- if (typeof e == "object") {
701
- let [u, d] = Object.entries(e)[0];
694
+ n.sprite = l;
695
+ if (typeof r == "object") {
696
+ let [u, d] = Object.entries(r)[0];
697
+ n[u] = d;
698
+ } else
699
+ n.tags = r;
700
+ if (typeof a == "object") {
701
+ let [u, d] = Object.entries(a)[0];
702
702
  n[u] = d;
703
703
  } else
704
- n.link = e;
705
- n.typeC4Shape = { text: a }, n.parentBoundary = B, n.wrap = mt();
706
- }, "addPersonOrSystem"), We = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n) {
704
+ n.link = a;
705
+ n.typeC4Shape = { text: e }, n.parentBoundary = B, n.wrap = mt();
706
+ }, "addPersonOrSystem"), ze = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n) {
707
707
  if (t === null || s === null)
708
708
  return;
709
709
  let i = {};
@@ -711,34 +711,34 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
711
711
  if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
712
712
  i.techn = { text: "" };
713
713
  else if (typeof o == "object") {
714
- let [d, f] = Object.entries(o)[0];
715
- i[d] = { text: f };
714
+ let [d, p] = Object.entries(o)[0];
715
+ i[d] = { text: p };
716
716
  } else
717
717
  i.techn = { text: o };
718
- if (r == null)
718
+ if (l == null)
719
719
  i.descr = { text: "" };
720
- else if (typeof r == "object") {
721
- let [d, f] = Object.entries(r)[0];
722
- i[d] = { text: f };
720
+ else if (typeof l == "object") {
721
+ let [d, p] = Object.entries(l)[0];
722
+ i[d] = { text: p };
723
723
  } else
724
- i.descr = { text: r };
725
- if (typeof l == "object") {
726
- let [d, f] = Object.entries(l)[0];
727
- i[d] = f;
724
+ i.descr = { text: l };
725
+ if (typeof r == "object") {
726
+ let [d, p] = Object.entries(r)[0];
727
+ i[d] = p;
728
728
  } else
729
- i.sprite = l;
730
- if (typeof e == "object") {
731
- let [d, f] = Object.entries(e)[0];
732
- i[d] = f;
729
+ i.sprite = r;
730
+ if (typeof a == "object") {
731
+ let [d, p] = Object.entries(a)[0];
732
+ i[d] = p;
733
733
  } else
734
- i.tags = e;
734
+ i.tags = a;
735
735
  if (typeof n == "object") {
736
- let [d, f] = Object.entries(n)[0];
737
- i[d] = f;
736
+ let [d, p] = Object.entries(n)[0];
737
+ i[d] = p;
738
738
  } else
739
739
  i.link = n;
740
- i.wrap = mt(), i.typeC4Shape = { text: a }, i.parentBoundary = B;
741
- }, "addContainer"), Qe = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n) {
740
+ i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = B;
741
+ }, "addContainer"), Xe = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n) {
742
742
  if (t === null || s === null)
743
743
  return;
744
744
  let i = {};
@@ -746,80 +746,80 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
746
746
  if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
747
747
  i.techn = { text: "" };
748
748
  else if (typeof o == "object") {
749
- let [d, f] = Object.entries(o)[0];
750
- i[d] = { text: f };
749
+ let [d, p] = Object.entries(o)[0];
750
+ i[d] = { text: p };
751
751
  } else
752
752
  i.techn = { text: o };
753
- if (r == null)
753
+ if (l == null)
754
754
  i.descr = { text: "" };
755
- else if (typeof r == "object") {
756
- let [d, f] = Object.entries(r)[0];
757
- i[d] = { text: f };
755
+ else if (typeof l == "object") {
756
+ let [d, p] = Object.entries(l)[0];
757
+ i[d] = { text: p };
758
758
  } else
759
- i.descr = { text: r };
760
- if (typeof l == "object") {
761
- let [d, f] = Object.entries(l)[0];
762
- i[d] = f;
759
+ i.descr = { text: l };
760
+ if (typeof r == "object") {
761
+ let [d, p] = Object.entries(r)[0];
762
+ i[d] = p;
763
763
  } else
764
- i.sprite = l;
765
- if (typeof e == "object") {
766
- let [d, f] = Object.entries(e)[0];
767
- i[d] = f;
764
+ i.sprite = r;
765
+ if (typeof a == "object") {
766
+ let [d, p] = Object.entries(a)[0];
767
+ i[d] = p;
768
768
  } else
769
- i.tags = e;
769
+ i.tags = a;
770
770
  if (typeof n == "object") {
771
- let [d, f] = Object.entries(n)[0];
772
- i[d] = f;
771
+ let [d, p] = Object.entries(n)[0];
772
+ i[d] = p;
773
773
  } else
774
774
  i.link = n;
775
- i.wrap = mt(), i.typeC4Shape = { text: a }, i.parentBoundary = B;
776
- }, "addComponent"), He = /* @__PURE__ */ y(function(a, t, s, o, r) {
777
- if (a === null || t === null)
775
+ i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = B;
776
+ }, "addComponent"), We = /* @__PURE__ */ y(function(e, t, s, o, l) {
777
+ if (e === null || t === null)
778
778
  return;
779
- let l = {};
780
- const e = X.find((n) => n.alias === a);
781
- if (e && a === e.alias ? l = e : (l.alias = a, X.push(l)), t == null ? l.label = { text: "" } : l.label = { text: t }, s == null)
782
- l.type = { text: "system" };
779
+ let r = {};
780
+ const a = X.find((n) => n.alias === e);
781
+ if (a && e === a.alias ? r = a : (r.alias = e, X.push(r)), t == null ? r.label = { text: "" } : r.label = { text: t }, s == null)
782
+ r.type = { text: "system" };
783
783
  else if (typeof s == "object") {
784
784
  let [n, i] = Object.entries(s)[0];
785
- l[n] = { text: i };
785
+ r[n] = { text: i };
786
786
  } else
787
- l.type = { text: s };
787
+ r.type = { text: s };
788
788
  if (typeof o == "object") {
789
789
  let [n, i] = Object.entries(o)[0];
790
- l[n] = i;
790
+ r[n] = i;
791
791
  } else
792
- l.tags = o;
793
- if (typeof r == "object") {
794
- let [n, i] = Object.entries(r)[0];
795
- l[n] = i;
792
+ r.tags = o;
793
+ if (typeof l == "object") {
794
+ let [n, i] = Object.entries(l)[0];
795
+ r[n] = i;
796
796
  } else
797
- l.link = r;
798
- l.parentBoundary = B, l.wrap = mt(), F = B, B = a, xt.push(F);
799
- }, "addPersonOrSystemBoundary"), qe = /* @__PURE__ */ y(function(a, t, s, o, r) {
800
- if (a === null || t === null)
797
+ r.link = l;
798
+ r.parentBoundary = B, r.wrap = mt(), F = B, B = e, xt.push(F);
799
+ }, "addPersonOrSystemBoundary"), Qe = /* @__PURE__ */ y(function(e, t, s, o, l) {
800
+ if (e === null || t === null)
801
801
  return;
802
- let l = {};
803
- const e = X.find((n) => n.alias === a);
804
- if (e && a === e.alias ? l = e : (l.alias = a, X.push(l)), t == null ? l.label = { text: "" } : l.label = { text: t }, s == null)
805
- l.type = { text: "container" };
802
+ let r = {};
803
+ const a = X.find((n) => n.alias === e);
804
+ if (a && e === a.alias ? r = a : (r.alias = e, X.push(r)), t == null ? r.label = { text: "" } : r.label = { text: t }, s == null)
805
+ r.type = { text: "container" };
806
806
  else if (typeof s == "object") {
807
807
  let [n, i] = Object.entries(s)[0];
808
- l[n] = { text: i };
808
+ r[n] = { text: i };
809
809
  } else
810
- l.type = { text: s };
810
+ r.type = { text: s };
811
811
  if (typeof o == "object") {
812
812
  let [n, i] = Object.entries(o)[0];
813
- l[n] = i;
813
+ r[n] = i;
814
814
  } else
815
- l.tags = o;
816
- if (typeof r == "object") {
817
- let [n, i] = Object.entries(r)[0];
818
- l[n] = i;
815
+ r.tags = o;
816
+ if (typeof l == "object") {
817
+ let [n, i] = Object.entries(l)[0];
818
+ r[n] = i;
819
819
  } else
820
- l.link = r;
821
- l.parentBoundary = B, l.wrap = mt(), F = B, B = a, xt.push(F);
822
- }, "addContainerBoundary"), Ge = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n) {
820
+ r.link = l;
821
+ r.parentBoundary = B, r.wrap = mt(), F = B, B = e, xt.push(F);
822
+ }, "addContainerBoundary"), He = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n) {
823
823
  if (t === null || s === null)
824
824
  return;
825
825
  let i = {};
@@ -827,90 +827,90 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
827
827
  if (u && t === u.alias ? i = u : (i.alias = t, X.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
828
828
  i.type = { text: "node" };
829
829
  else if (typeof o == "object") {
830
- let [d, f] = Object.entries(o)[0];
831
- i[d] = { text: f };
830
+ let [d, p] = Object.entries(o)[0];
831
+ i[d] = { text: p };
832
832
  } else
833
833
  i.type = { text: o };
834
- if (r == null)
834
+ if (l == null)
835
835
  i.descr = { text: "" };
836
- else if (typeof r == "object") {
837
- let [d, f] = Object.entries(r)[0];
838
- i[d] = { text: f };
836
+ else if (typeof l == "object") {
837
+ let [d, p] = Object.entries(l)[0];
838
+ i[d] = { text: p };
839
839
  } else
840
- i.descr = { text: r };
841
- if (typeof e == "object") {
842
- let [d, f] = Object.entries(e)[0];
843
- i[d] = f;
840
+ i.descr = { text: l };
841
+ if (typeof a == "object") {
842
+ let [d, p] = Object.entries(a)[0];
843
+ i[d] = p;
844
844
  } else
845
- i.tags = e;
845
+ i.tags = a;
846
846
  if (typeof n == "object") {
847
- let [d, f] = Object.entries(n)[0];
848
- i[d] = f;
847
+ let [d, p] = Object.entries(n)[0];
848
+ i[d] = p;
849
849
  } else
850
850
  i.link = n;
851
- i.nodeType = a, i.parentBoundary = B, i.wrap = mt(), F = B, B = t, xt.push(F);
852
- }, "addDeploymentNode"), Ke = /* @__PURE__ */ y(function() {
851
+ i.nodeType = e, i.parentBoundary = B, i.wrap = mt(), F = B, B = t, xt.push(F);
852
+ }, "addDeploymentNode"), qe = /* @__PURE__ */ y(function() {
853
853
  B = F, xt.pop(), F = xt.pop(), xt.push(F);
854
- }, "popBoundaryParseStack"), Je = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n, i, u, d) {
855
- let f = V.find((g) => g.alias === t);
856
- if (!(f === void 0 && (f = X.find((g) => g.alias === t), f === void 0))) {
854
+ }, "popBoundaryParseStack"), Ge = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n, i, u, d) {
855
+ let p = V.find((g) => g.alias === t);
856
+ if (!(p === void 0 && (p = X.find((g) => g.alias === t), p === void 0))) {
857
857
  if (s != null)
858
858
  if (typeof s == "object") {
859
859
  let [g, m] = Object.entries(s)[0];
860
- f[g] = m;
860
+ p[g] = m;
861
861
  } else
862
- f.bgColor = s;
862
+ p.bgColor = s;
863
863
  if (o != null)
864
864
  if (typeof o == "object") {
865
865
  let [g, m] = Object.entries(o)[0];
866
- f[g] = m;
866
+ p[g] = m;
867
867
  } else
868
- f.fontColor = o;
869
- if (r != null)
870
- if (typeof r == "object") {
871
- let [g, m] = Object.entries(r)[0];
872
- f[g] = m;
873
- } else
874
- f.borderColor = r;
868
+ p.fontColor = o;
875
869
  if (l != null)
876
870
  if (typeof l == "object") {
877
871
  let [g, m] = Object.entries(l)[0];
878
- f[g] = m;
872
+ p[g] = m;
879
873
  } else
880
- f.shadowing = l;
881
- if (e != null)
882
- if (typeof e == "object") {
883
- let [g, m] = Object.entries(e)[0];
884
- f[g] = m;
874
+ p.borderColor = l;
875
+ if (r != null)
876
+ if (typeof r == "object") {
877
+ let [g, m] = Object.entries(r)[0];
878
+ p[g] = m;
885
879
  } else
886
- f.shape = e;
880
+ p.shadowing = r;
881
+ if (a != null)
882
+ if (typeof a == "object") {
883
+ let [g, m] = Object.entries(a)[0];
884
+ p[g] = m;
885
+ } else
886
+ p.shape = a;
887
887
  if (n != null)
888
888
  if (typeof n == "object") {
889
889
  let [g, m] = Object.entries(n)[0];
890
- f[g] = m;
890
+ p[g] = m;
891
891
  } else
892
- f.sprite = n;
892
+ p.sprite = n;
893
893
  if (i != null)
894
894
  if (typeof i == "object") {
895
895
  let [g, m] = Object.entries(i)[0];
896
- f[g] = m;
896
+ p[g] = m;
897
897
  } else
898
- f.techn = i;
898
+ p.techn = i;
899
899
  if (u != null)
900
900
  if (typeof u == "object") {
901
901
  let [g, m] = Object.entries(u)[0];
902
- f[g] = m;
902
+ p[g] = m;
903
903
  } else
904
- f.legendText = u;
904
+ p.legendText = u;
905
905
  if (d != null)
906
906
  if (typeof d == "object") {
907
907
  let [g, m] = Object.entries(d)[0];
908
- f[g] = m;
908
+ p[g] = m;
909
909
  } else
910
- f.legendSprite = d;
910
+ p.legendSprite = d;
911
911
  }
912
- }, "updateElStyle"), Ze = /* @__PURE__ */ y(function(a, t, s, o, r, l, e) {
913
- const n = It.find((i) => i.from === t && i.to === s);
912
+ }, "updateElStyle"), Ke = /* @__PURE__ */ y(function(e, t, s, o, l, r, a) {
913
+ const n = Pt.find((i) => i.from === t && i.to === s);
914
914
  if (n !== void 0) {
915
915
  if (o != null)
916
916
  if (typeof o == "object") {
@@ -918,63 +918,63 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
918
918
  n[i] = u;
919
919
  } else
920
920
  n.textColor = o;
921
- if (r != null)
922
- if (typeof r == "object") {
923
- let [i, u] = Object.entries(r)[0];
924
- n[i] = u;
925
- } else
926
- n.lineColor = r;
927
921
  if (l != null)
928
922
  if (typeof l == "object") {
929
923
  let [i, u] = Object.entries(l)[0];
924
+ n[i] = u;
925
+ } else
926
+ n.lineColor = l;
927
+ if (r != null)
928
+ if (typeof r == "object") {
929
+ let [i, u] = Object.entries(r)[0];
930
930
  n[i] = parseInt(u);
931
931
  } else
932
- n.offsetX = parseInt(l);
933
- if (e != null)
934
- if (typeof e == "object") {
935
- let [i, u] = Object.entries(e)[0];
932
+ n.offsetX = parseInt(r);
933
+ if (a != null)
934
+ if (typeof a == "object") {
935
+ let [i, u] = Object.entries(a)[0];
936
936
  n[i] = parseInt(u);
937
937
  } else
938
- n.offsetY = parseInt(e);
938
+ n.offsetY = parseInt(a);
939
939
  }
940
- }, "updateRelStyle"), $e = /* @__PURE__ */ y(function(a, t, s) {
941
- let o = Vt, r = zt;
940
+ }, "updateRelStyle"), Je = /* @__PURE__ */ y(function(e, t, s) {
941
+ let o = Ut, l = Ft;
942
942
  if (typeof t == "object") {
943
- const l = Object.values(t)[0];
944
- o = parseInt(l);
943
+ const r = Object.values(t)[0];
944
+ o = parseInt(r);
945
945
  } else
946
946
  o = parseInt(t);
947
947
  if (typeof s == "object") {
948
- const l = Object.values(s)[0];
949
- r = parseInt(l);
948
+ const r = Object.values(s)[0];
949
+ l = parseInt(r);
950
950
  } else
951
- r = parseInt(s);
952
- o >= 1 && (Vt = o), r >= 1 && (zt = r);
953
- }, "updateLayoutConfig"), t0 = /* @__PURE__ */ y(function() {
954
- return Vt;
955
- }, "getC4ShapeInRow"), e0 = /* @__PURE__ */ y(function() {
956
- return zt;
957
- }, "getC4BoundaryInRow"), a0 = /* @__PURE__ */ y(function() {
951
+ l = parseInt(s);
952
+ o >= 1 && (Ut = o), l >= 1 && (Ft = l);
953
+ }, "updateLayoutConfig"), Ze = /* @__PURE__ */ y(function() {
954
+ return Ut;
955
+ }, "getC4ShapeInRow"), $e = /* @__PURE__ */ y(function() {
956
+ return Ft;
957
+ }, "getC4BoundaryInRow"), t0 = /* @__PURE__ */ y(function() {
958
958
  return B;
959
- }, "getCurrentBoundaryParse"), i0 = /* @__PURE__ */ y(function() {
959
+ }, "getCurrentBoundaryParse"), e0 = /* @__PURE__ */ y(function() {
960
960
  return F;
961
- }, "getParentBoundaryParse"), _e = /* @__PURE__ */ y(function(a) {
962
- return a == null ? V : V.filter((t) => t.parentBoundary === a);
963
- }, "getC4ShapeArray"), n0 = /* @__PURE__ */ y(function(a) {
964
- return V.find((t) => t.alias === a);
965
- }, "getC4Shape"), s0 = /* @__PURE__ */ y(function(a) {
966
- return Object.keys(_e(a));
967
- }, "getC4ShapeKeys"), xe = /* @__PURE__ */ y(function(a) {
968
- return a == null ? X : X.filter((t) => t.parentBoundary === a);
969
- }, "getBoundaries"), r0 = xe, l0 = /* @__PURE__ */ y(function() {
970
- return It;
971
- }, "getRels"), o0 = /* @__PURE__ */ y(function() {
972
- return ie;
973
- }, "getTitle"), c0 = /* @__PURE__ */ y(function(a) {
974
- ne = a;
961
+ }, "getParentBoundaryParse"), ge = /* @__PURE__ */ y(function(e) {
962
+ return e == null ? V : V.filter((t) => t.parentBoundary === e);
963
+ }, "getC4ShapeArray"), a0 = /* @__PURE__ */ y(function(e) {
964
+ return V.find((t) => t.alias === e);
965
+ }, "getC4Shape"), i0 = /* @__PURE__ */ y(function(e) {
966
+ return Object.keys(ge(e));
967
+ }, "getC4ShapeKeys"), be = /* @__PURE__ */ y(function(e) {
968
+ return e == null ? X : X.filter((t) => t.parentBoundary === e);
969
+ }, "getBoundaries"), n0 = be, s0 = /* @__PURE__ */ y(function() {
970
+ return Pt;
971
+ }, "getRels"), r0 = /* @__PURE__ */ y(function() {
972
+ return ee;
973
+ }, "getTitle"), l0 = /* @__PURE__ */ y(function(e) {
974
+ ae = e;
975
975
  }, "setWrap"), mt = /* @__PURE__ */ y(function() {
976
- return ne;
977
- }, "autoWrap"), h0 = /* @__PURE__ */ y(function() {
976
+ return ae;
977
+ }, "autoWrap"), o0 = /* @__PURE__ */ y(function() {
978
978
  V = [], X = [
979
979
  {
980
980
  alias: "global",
@@ -984,8 +984,8 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
984
984
  link: null,
985
985
  parentBoundary: ""
986
986
  }
987
- ], F = "", B = "global", xt = [""], It = [], xt = [""], ie = "", ne = !1, Vt = 4, zt = 2;
988
- }, "clear"), u0 = {
987
+ ], F = "", B = "global", xt = [""], Pt = [], xt = [""], ee = "", ae = !1, Ut = 4, Ft = 2;
988
+ }, "clear"), c0 = {
989
989
  SOLID: 0,
990
990
  DOTTED: 1,
991
991
  NOTE: 2,
@@ -1009,117 +1009,117 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
1009
1009
  RECT_END: 23,
1010
1010
  SOLID_POINT: 24,
1011
1011
  DOTTED_POINT: 25
1012
- }, d0 = {
1012
+ }, h0 = {
1013
1013
  FILLED: 0,
1014
1014
  OPEN: 1
1015
- }, f0 = {
1015
+ }, u0 = {
1016
1016
  LEFTOF: 0,
1017
1017
  RIGHTOF: 1,
1018
1018
  OVER: 2
1019
- }, p0 = /* @__PURE__ */ y(function(a) {
1020
- ie = ge(a, Bt());
1021
- }, "setTitle"), te = {
1022
- addPersonOrSystem: Xe,
1023
- addPersonOrSystemBoundary: He,
1024
- addContainer: We,
1025
- addContainerBoundary: qe,
1026
- addComponent: Qe,
1027
- addDeploymentNode: Ge,
1028
- popBoundaryParseStack: Ke,
1029
- addRel: ze,
1030
- updateElStyle: Je,
1031
- updateRelStyle: Ze,
1032
- updateLayoutConfig: $e,
1019
+ }, d0 = /* @__PURE__ */ y(function(e) {
1020
+ ee = pe(e, Dt());
1021
+ }, "setTitle"), Zt = {
1022
+ addPersonOrSystem: Ve,
1023
+ addPersonOrSystemBoundary: We,
1024
+ addContainer: ze,
1025
+ addContainerBoundary: Qe,
1026
+ addComponent: Xe,
1027
+ addDeploymentNode: He,
1028
+ popBoundaryParseStack: qe,
1029
+ addRel: Fe,
1030
+ updateElStyle: Ge,
1031
+ updateRelStyle: Ke,
1032
+ updateLayoutConfig: Je,
1033
1033
  autoWrap: mt,
1034
- setWrap: c0,
1035
- getC4ShapeArray: _e,
1036
- getC4Shape: n0,
1037
- getC4ShapeKeys: s0,
1038
- getBoundaries: xe,
1039
- getBoundarys: r0,
1040
- getCurrentBoundaryParse: a0,
1041
- getParentBoundaryParse: i0,
1042
- getRels: l0,
1043
- getTitle: o0,
1044
- getC4Type: Fe,
1045
- getC4ShapeInRow: t0,
1046
- getC4BoundaryInRow: e0,
1047
- setAccTitle: Me,
1048
- getAccTitle: Ie,
1049
- getAccDescription: Be,
1050
- setAccDescription: Pe,
1051
- getConfig: /* @__PURE__ */ y(() => Bt().c4, "getConfig"),
1052
- clear: h0,
1053
- LINETYPE: u0,
1054
- ARROWTYPE: d0,
1055
- PLACEMENT: f0,
1056
- setTitle: p0,
1057
- setC4Type: Ve
1034
+ setWrap: l0,
1035
+ getC4ShapeArray: ge,
1036
+ getC4Shape: a0,
1037
+ getC4ShapeKeys: i0,
1038
+ getBoundaries: be,
1039
+ getBoundarys: n0,
1040
+ getCurrentBoundaryParse: t0,
1041
+ getParentBoundaryParse: e0,
1042
+ getRels: s0,
1043
+ getTitle: r0,
1044
+ getC4Type: je,
1045
+ getC4ShapeInRow: Ze,
1046
+ getC4BoundaryInRow: $e,
1047
+ setAccTitle: Be,
1048
+ getAccTitle: Pe,
1049
+ getAccDescription: De,
1050
+ setAccDescription: Se,
1051
+ getConfig: /* @__PURE__ */ y(() => Dt().c4, "getConfig"),
1052
+ clear: o0,
1053
+ LINETYPE: c0,
1054
+ ARROWTYPE: h0,
1055
+ PLACEMENT: u0,
1056
+ setTitle: d0,
1057
+ setC4Type: Ue
1058
1058
  // apply,
1059
- }, se = /* @__PURE__ */ y(function(a, t) {
1060
- return De(a, t);
1061
- }, "drawRect"), me = /* @__PURE__ */ y(function(a, t, s, o, r, l) {
1062
- const e = a.append("image");
1063
- e.attr("width", t), e.attr("height", s), e.attr("x", o), e.attr("y", r);
1064
- let n = l.startsWith("data:image/png;base64") ? l : Ye.sanitizeUrl(l);
1065
- e.attr("xlink:href", n);
1066
- }, "drawImage"), y0 = /* @__PURE__ */ y((a, t, s, o) => {
1067
- const r = a.append("g");
1068
- let l = 0;
1069
- for (let e of t) {
1070
- let n = e.textColor ? e.textColor : "#444444", i = e.lineColor ? e.lineColor : "#444444", u = e.offsetX ? parseInt(e.offsetX) : 0, d = e.offsetY ? parseInt(e.offsetY) : 0, f = "";
1071
- if (l === 0) {
1072
- let m = r.append("line");
1073
- m.attr("x1", e.startPoint.x), m.attr("y1", e.startPoint.y), m.attr("x2", e.endPoint.x), m.attr("y2", e.endPoint.y), m.attr("stroke-width", "1"), m.attr("stroke", i), m.style("fill", "none"), e.type !== "rel_b" && m.attr("marker-end", "url(" + f + "#" + o + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && m.attr("marker-start", "url(" + f + "#" + o + "-arrowend)"), l = -1;
1059
+ }, ie = /* @__PURE__ */ y(function(e, t) {
1060
+ return Re(e, t);
1061
+ }, "drawRect"), _e = /* @__PURE__ */ y(function(e, t, s, o, l, r) {
1062
+ const a = e.append("image");
1063
+ a.attr("width", t), a.attr("height", s), a.attr("x", o), a.attr("y", l);
1064
+ let n = r.startsWith("data:image/png;base64") ? r : Le.sanitizeUrl(r);
1065
+ a.attr("xlink:href", n);
1066
+ }, "drawImage"), f0 = /* @__PURE__ */ y((e, t, s, o) => {
1067
+ const l = e.append("g");
1068
+ let r = 0;
1069
+ for (let a of t) {
1070
+ let n = a.textColor ? a.textColor : "#444444", i = a.lineColor ? a.lineColor : "#444444", u = a.offsetX ? parseInt(a.offsetX) : 0, d = a.offsetY ? parseInt(a.offsetY) : 0, p = "";
1071
+ if (r === 0) {
1072
+ let m = l.append("line");
1073
+ m.attr("x1", a.startPoint.x), m.attr("y1", a.startPoint.y), m.attr("x2", a.endPoint.x), m.attr("y2", a.endPoint.y), m.attr("stroke-width", "1"), m.attr("stroke", i), m.style("fill", "none"), a.type !== "rel_b" && m.attr("marker-end", "url(" + p + "#" + o + "-arrowhead)"), (a.type === "birel" || a.type === "rel_b") && m.attr("marker-start", "url(" + p + "#" + o + "-arrowend)"), r = -1;
1074
1074
  } else {
1075
- let m = r.append("path");
1075
+ let m = l.append("path");
1076
1076
  m.attr("fill", "none").attr("stroke-width", "1").attr("stroke", i).attr(
1077
1077
  "d",
1078
- "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll(
1078
+ "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", a.startPoint.x).replaceAll("starty", a.startPoint.y).replaceAll(
1079
1079
  "controlx",
1080
- e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4
1081
- ).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)
1082
- ), e.type !== "rel_b" && m.attr("marker-end", "url(" + f + "#" + o + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && m.attr("marker-start", "url(" + f + "#" + o + "-arrowend)");
1080
+ a.startPoint.x + (a.endPoint.x - a.startPoint.x) / 2 - (a.endPoint.x - a.startPoint.x) / 4
1081
+ ).replaceAll("controly", a.startPoint.y + (a.endPoint.y - a.startPoint.y) / 2).replaceAll("stopx", a.endPoint.x).replaceAll("stopy", a.endPoint.y)
1082
+ ), a.type !== "rel_b" && m.attr("marker-end", "url(" + p + "#" + o + "-arrowhead)"), (a.type === "birel" || a.type === "rel_b") && m.attr("marker-start", "url(" + p + "#" + o + "-arrowend)");
1083
1083
  }
1084
1084
  let g = s.messageFont();
1085
1085
  Q(s)(
1086
- e.label.text,
1087
- r,
1088
- Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + u,
1089
- Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + d,
1090
- e.label.width,
1091
- e.label.height,
1086
+ a.label.text,
1087
+ l,
1088
+ Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + u,
1089
+ Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + d,
1090
+ a.label.width,
1091
+ a.label.height,
1092
1092
  { fill: n },
1093
1093
  g
1094
- ), e.techn && e.techn.text !== "" && (g = s.messageFont(), Q(s)(
1095
- "[" + e.techn.text + "]",
1096
- r,
1097
- Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + u,
1098
- Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + s.messageFontSize + 5 + d,
1099
- Math.max(e.label.width, e.techn.width),
1100
- e.techn.height,
1094
+ ), a.techn && a.techn.text !== "" && (g = s.messageFont(), Q(s)(
1095
+ "[" + a.techn.text + "]",
1096
+ l,
1097
+ Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + u,
1098
+ Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + s.messageFontSize + 5 + d,
1099
+ Math.max(a.label.width, a.techn.width),
1100
+ a.techn.height,
1101
1101
  { fill: n, "font-style": "italic" },
1102
1102
  g
1103
1103
  ));
1104
1104
  }
1105
- }, "drawRels"), g0 = /* @__PURE__ */ y(function(a, t, s) {
1106
- const o = a.append("g");
1107
- let r = t.bgColor ? t.bgColor : "none", l = t.borderColor ? t.borderColor : "#444444", e = t.fontColor ? t.fontColor : "black", n = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
1105
+ }, "drawRels"), p0 = /* @__PURE__ */ y(function(e, t, s) {
1106
+ const o = e.append("g");
1107
+ let l = t.bgColor ? t.bgColor : "none", r = t.borderColor ? t.borderColor : "#444444", a = t.fontColor ? t.fontColor : "black", n = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
1108
1108
  t.nodeType && (n = { "stroke-width": 1 });
1109
1109
  let i = {
1110
1110
  x: t.x,
1111
1111
  y: t.y,
1112
- fill: r,
1113
- stroke: l,
1112
+ fill: l,
1113
+ stroke: r,
1114
1114
  width: t.width,
1115
1115
  height: t.height,
1116
1116
  rx: 2.5,
1117
1117
  ry: 2.5,
1118
1118
  attrs: n
1119
1119
  };
1120
- se(o, i);
1120
+ ie(o, i);
1121
1121
  let u = s.boundaryFont();
1122
- u.fontWeight = "bold", u.fontSize = u.fontSize + 2, u.fontColor = e, Q(s)(
1122
+ u.fontWeight = "bold", u.fontSize = u.fontSize + 2, u.fontColor = a, Q(s)(
1123
1123
  t.label.text,
1124
1124
  o,
1125
1125
  t.x,
@@ -1128,7 +1128,7 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
1128
1128
  t.height,
1129
1129
  { fill: "#444444" },
1130
1130
  u
1131
- ), t.type && t.type.text !== "" && (u = s.boundaryFont(), u.fontColor = e, Q(s)(
1131
+ ), t.type && t.type.text !== "" && (u = s.boundaryFont(), u.fontColor = a, Q(s)(
1132
1132
  t.type.text,
1133
1133
  o,
1134
1134
  t.x,
@@ -1137,7 +1137,7 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
1137
1137
  t.height,
1138
1138
  { fill: "#444444" },
1139
1139
  u
1140
- )), t.descr && t.descr.text !== "" && (u = s.boundaryFont(), u.fontSize = u.fontSize - 2, u.fontColor = e, Q(s)(
1140
+ )), t.descr && t.descr.text !== "" && (u = s.boundaryFont(), u.fontSize = u.fontSize - 2, u.fontColor = a, Q(s)(
1141
1141
  t.descr.text,
1142
1142
  o,
1143
1143
  t.x,
@@ -1147,20 +1147,19 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
1147
1147
  { fill: "#444444" },
1148
1148
  u
1149
1149
  ));
1150
- }, "drawBoundary"), b0 = /* @__PURE__ */ y(function(a, t, s) {
1151
- var f;
1152
- let o = t.bgColor ? t.bgColor : s[t.typeC4Shape.text + "_bg_color"], r = t.borderColor ? t.borderColor : s[t.typeC4Shape.text + "_border_color"], l = t.fontColor ? t.fontColor : "#FFFFFF", e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1150
+ }, "drawBoundary"), y0 = /* @__PURE__ */ y(function(e, t, s) {
1151
+ let o = t.bgColor ? t.bgColor : s[t.typeC4Shape.text + "_bg_color"], l = t.borderColor ? t.borderColor : s[t.typeC4Shape.text + "_border_color"], r = t.fontColor ? t.fontColor : "#FFFFFF", a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1153
1152
  switch (t.typeC4Shape.text) {
1154
1153
  case "person":
1155
- e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1154
+ a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1156
1155
  break;
1157
1156
  case "external_person":
1158
- e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
1157
+ a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
1159
1158
  break;
1160
1159
  }
1161
- const n = a.append("g");
1160
+ const n = e.append("g");
1162
1161
  n.attr("class", "person-man");
1163
- const i = Se();
1162
+ const i = Oe();
1164
1163
  switch (t.typeC4Shape.text) {
1165
1164
  case "person":
1166
1165
  case "external_person":
@@ -1170,7 +1169,7 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
1170
1169
  case "external_container":
1171
1170
  case "component":
1172
1171
  case "external_component":
1173
- i.x = t.x, i.y = t.y, i.fill = o, i.width = t.width, i.height = t.height, i.stroke = r, i.rx = 2.5, i.ry = 2.5, i.attrs = { "stroke-width": 0.5 }, se(n, i);
1172
+ i.x = t.x, i.y = t.y, i.fill = o, i.width = t.width, i.height = t.height, i.stroke = l, i.rx = 2.5, i.ry = 2.5, i.attrs = { "stroke-width": 0.5 }, ie(n, i);
1174
1173
  break;
1175
1174
  case "system_db":
1176
1175
  case "external_system_db":
@@ -1178,10 +1177,10 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
1178
1177
  case "external_container_db":
1179
1178
  case "component_db":
1180
1179
  case "external_component_db":
1181
- n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", r).attr(
1180
+ n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr(
1182
1181
  "d",
1183
1182
  "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)
1184
- ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", r).attr(
1183
+ ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr(
1185
1184
  "d",
1186
1185
  "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2)
1187
1186
  );
@@ -1192,47 +1191,47 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
1192
1191
  case "external_container_queue":
1193
1192
  case "component_queue":
1194
1193
  case "external_component_queue":
1195
- n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", r).attr(
1194
+ n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr(
1196
1195
  "d",
1197
1196
  "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)
1198
- ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", r).attr(
1197
+ ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr(
1199
1198
  "d",
1200
1199
  "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2)
1201
1200
  );
1202
1201
  break;
1203
1202
  }
1204
- let u = C0(s, t.typeC4Shape.text);
1205
- switch (n.append("text").attr("fill", l).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
1203
+ let u = A0(s, t.typeC4Shape.text);
1204
+ switch (n.append("text").attr("fill", r).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
1206
1205
  case "person":
1207
1206
  case "external_person":
1208
- me(
1207
+ _e(
1209
1208
  n,
1210
1209
  48,
1211
1210
  48,
1212
1211
  t.x + t.width / 2 - 24,
1213
1212
  t.y + t.image.Y,
1214
- e
1213
+ a
1215
1214
  );
1216
1215
  break;
1217
1216
  }
1218
1217
  let d = s[t.typeC4Shape.text + "Font"]();
1219
- return d.fontWeight = "bold", d.fontSize = d.fontSize + 2, d.fontColor = l, Q(s)(
1218
+ return d.fontWeight = "bold", d.fontSize = d.fontSize + 2, d.fontColor = r, Q(s)(
1220
1219
  t.label.text,
1221
1220
  n,
1222
1221
  t.x,
1223
1222
  t.y + t.label.Y,
1224
1223
  t.width,
1225
1224
  t.height,
1226
- { fill: l },
1225
+ { fill: r },
1227
1226
  d
1228
- ), d = s[t.typeC4Shape.text + "Font"](), d.fontColor = l, t.techn && ((f = t.techn) == null ? void 0 : f.text) !== "" ? Q(s)(
1227
+ ), d = s[t.typeC4Shape.text + "Font"](), d.fontColor = r, t.techn && t.techn?.text !== "" ? Q(s)(
1229
1228
  t.techn.text,
1230
1229
  n,
1231
1230
  t.x,
1232
1231
  t.y + t.techn.Y,
1233
1232
  t.width,
1234
1233
  t.height,
1235
- { fill: l, "font-style": "italic" },
1234
+ { fill: r, "font-style": "italic" },
1236
1235
  d
1237
1236
  ) : t.type && t.type.text !== "" && Q(s)(
1238
1237
  t.type.text,
@@ -1241,103 +1240,106 @@ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
1241
1240
  t.y + t.type.Y,
1242
1241
  t.width,
1243
1242
  t.height,
1244
- { fill: l, "font-style": "italic" },
1243
+ { fill: r, "font-style": "italic" },
1245
1244
  d
1246
- ), t.descr && t.descr.text !== "" && (d = s.personFont(), d.fontColor = l, Q(s)(
1245
+ ), t.descr && t.descr.text !== "" && (d = s.personFont(), d.fontColor = r, Q(s)(
1247
1246
  t.descr.text,
1248
1247
  n,
1249
1248
  t.x,
1250
1249
  t.y + t.descr.Y,
1251
1250
  t.width,
1252
1251
  t.height,
1253
- { fill: l },
1252
+ { fill: r },
1254
1253
  d
1255
1254
  )), t.height;
1256
- }, "drawC4Shape"), _0 = /* @__PURE__ */ y(function(a, t) {
1257
- a.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1255
+ }, "drawC4Shape"), g0 = /* @__PURE__ */ y(function(e, t) {
1256
+ e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1258
1257
  "d",
1259
1258
  "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"
1260
1259
  );
1261
- }, "insertDatabaseIcon"), x0 = /* @__PURE__ */ y(function(a, t) {
1262
- a.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1260
+ }, "insertDatabaseIcon"), b0 = /* @__PURE__ */ y(function(e, t) {
1261
+ e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1263
1262
  "d",
1264
1263
  "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"
1265
1264
  );
1266
- }, "insertComputerIcon"), m0 = /* @__PURE__ */ y(function(a, t) {
1267
- a.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1265
+ }, "insertComputerIcon"), _0 = /* @__PURE__ */ y(function(e, t) {
1266
+ e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1268
1267
  "d",
1269
1268
  "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"
1270
1269
  );
1271
- }, "insertClockIcon"), v0 = /* @__PURE__ */ y(function(a, t) {
1272
- a.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
1273
- }, "insertArrowHead"), E0 = /* @__PURE__ */ y(function(a, t) {
1274
- a.append("defs").append("marker").attr("id", t + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
1275
- }, "insertArrowEnd"), A0 = /* @__PURE__ */ y(function(a, t) {
1276
- a.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1277
- }, "insertArrowFilledHead"), k0 = /* @__PURE__ */ y(function(a, t) {
1278
- const o = a.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
1270
+ }, "insertClockIcon"), x0 = /* @__PURE__ */ y(function(e, t) {
1271
+ e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
1272
+ }, "insertArrowHead"), m0 = /* @__PURE__ */ y(function(e, t) {
1273
+ e.append("defs").append("marker").attr("id", t + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
1274
+ }, "insertArrowEnd"), v0 = /* @__PURE__ */ y(function(e, t) {
1275
+ e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1276
+ }, "insertArrowFilledHead"), E0 = /* @__PURE__ */ y(function(e, t) {
1277
+ const o = e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
1279
1278
  o.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), o.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
1280
- }, "insertArrowCrossHead"), C0 = /* @__PURE__ */ y((a, t) => ({
1281
- fontFamily: a[t + "FontFamily"],
1282
- fontSize: a[t + "FontSize"],
1283
- fontWeight: a[t + "FontWeight"]
1279
+ }, "insertArrowCrossHead"), A0 = /* @__PURE__ */ y((e, t) => ({
1280
+ fontFamily: e[t + "FontFamily"],
1281
+ fontSize: e[t + "FontSize"],
1282
+ fontWeight: e[t + "FontWeight"]
1284
1283
  }), "getC4ShapeFont"), Q = /* @__PURE__ */ (function() {
1285
- function a(r, l, e, n, i, u, d) {
1286
- const f = l.append("text").attr("x", e + i / 2).attr("y", n + u / 2 + 5).style("text-anchor", "middle").text(r);
1287
- o(f, d);
1284
+ function e(l, r, a, n, i, u, d) {
1285
+ const p = r.append("text").attr("x", a + i / 2).attr("y", n + u / 2 + 5).style("text-anchor", "middle").text(l);
1286
+ o(p, d);
1288
1287
  }
1289
- y(a, "byText");
1290
- function t(r, l, e, n, i, u, d, f) {
1291
- const { fontSize: g, fontFamily: m, fontWeight: O } = f, S = r.split($t.lineBreakRegex);
1288
+ y(e, "byText");
1289
+ function t(l, r, a, n, i, u, d, p) {
1290
+ const { fontSize: g, fontFamily: m, fontWeight: O } = p, S = l.split(Jt.lineBreakRegex);
1292
1291
  for (let P = 0; P < S.length; P++) {
1293
- const M = P * g - g * (S.length - 1) / 2, U = l.append("text").attr("x", e + i / 2).attr("y", n).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", g).style("font-weight", O).style("font-family", m);
1292
+ const M = P * g - g * (S.length - 1) / 2, U = r.append("text").attr("x", a + i / 2).attr("y", n).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", g).style("font-weight", O).style("font-family", m);
1294
1293
  U.append("tspan").attr("dy", M).text(S[P]).attr("alignment-baseline", "mathematical"), o(U, d);
1295
1294
  }
1296
1295
  }
1297
1296
  y(t, "byTspan");
1298
- function s(r, l, e, n, i, u, d, f) {
1299
- const g = l.append("switch"), O = g.append("foreignObject").attr("x", e).attr("y", n).attr("width", i).attr("height", u).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1300
- O.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, g, e, n, i, u, d, f), o(O, d);
1297
+ function s(l, r, a, n, i, u, d, p) {
1298
+ const g = r.append("switch"), O = g.append("foreignObject").attr("x", a).attr("y", n).attr("width", i).attr("height", u).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1299
+ O.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(l), t(l, g, a, n, i, u, d, p), o(O, d);
1301
1300
  }
1302
1301
  y(s, "byFo");
1303
- function o(r, l) {
1304
- for (const e in l)
1305
- l.hasOwnProperty(e) && r.attr(e, l[e]);
1302
+ function o(l, r) {
1303
+ for (const a in r)
1304
+ r.hasOwnProperty(a) && l.attr(a, r[a]);
1306
1305
  }
1307
- return y(o, "_setTextAttrs"), function(r) {
1308
- return r.textPlacement === "fo" ? s : r.textPlacement === "old" ? a : t;
1306
+ return y(o, "_setTextAttrs"), function(l) {
1307
+ return l.textPlacement === "fo" ? s : l.textPlacement === "old" ? e : t;
1309
1308
  };
1310
1309
  })(), z = {
1311
- drawRect: se,
1312
- drawBoundary: g0,
1313
- drawC4Shape: b0,
1314
- drawRels: y0,
1315
- drawImage: me,
1316
- insertArrowHead: v0,
1317
- insertArrowEnd: E0,
1318
- insertArrowFilledHead: A0,
1319
- insertArrowCrossHead: k0,
1320
- insertDatabaseIcon: _0,
1321
- insertComputerIcon: x0,
1322
- insertClockIcon: m0
1323
- }, Xt = 0, Wt = 0, ve = 4, ee = 2;
1324
- Ft.yy = te;
1325
- var _ = {}, Ot, Ee = (Ot = class {
1326
- constructor(t) {
1327
- this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, ae(t.db.getConfig());
1310
+ drawRect: ie,
1311
+ drawBoundary: p0,
1312
+ drawC4Shape: y0,
1313
+ drawRels: f0,
1314
+ drawImage: _e,
1315
+ insertArrowHead: x0,
1316
+ insertArrowEnd: m0,
1317
+ insertArrowFilledHead: v0,
1318
+ insertArrowCrossHead: E0,
1319
+ insertDatabaseIcon: g0,
1320
+ insertComputerIcon: b0,
1321
+ insertClockIcon: _0
1322
+ }, Vt = 0, zt = 0, xe = 4, $t = 2;
1323
+ jt.yy = Zt;
1324
+ var _ = {}, me = class {
1325
+ static {
1326
+ y(this, "Bounds");
1328
1327
  }
1329
- setData(t, s, o, r) {
1330
- this.nextData.startx = this.data.startx = t, this.nextData.stopx = this.data.stopx = s, this.nextData.starty = this.data.starty = o, this.nextData.stopy = this.data.stopy = r;
1328
+ constructor(e) {
1329
+ this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, te(e.db.getConfig());
1331
1330
  }
1332
- updateVal(t, s, o, r) {
1333
- t[s] === void 0 ? t[s] = o : t[s] = r(o, t[s]);
1331
+ setData(e, t, s, o) {
1332
+ this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = s, this.nextData.stopy = this.data.stopy = o;
1334
1333
  }
1335
- insert(t) {
1334
+ updateVal(e, t, s, o) {
1335
+ e[t] === void 0 ? e[t] = s : e[t] = o(s, e[t]);
1336
+ }
1337
+ insert(e) {
1336
1338
  this.nextData.cnt = this.nextData.cnt + 1;
1337
- let s = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + t.margin : this.nextData.stopx + t.margin * 2, o = s + t.width, r = this.nextData.starty + t.margin * 2, l = r + t.height;
1338
- (s >= this.data.widthLimit || o >= this.data.widthLimit || this.nextData.cnt > ve) && (s = this.nextData.startx + t.margin + _.nextLinePaddingX, r = this.nextData.stopy + t.margin * 2, this.nextData.stopx = o = s + t.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = l = r + t.height, this.nextData.cnt = 1), t.x = s, t.y = r, this.updateVal(this.data, "startx", s, Math.min), this.updateVal(this.data, "starty", r, Math.min), this.updateVal(this.data, "stopx", o, Math.max), this.updateVal(this.data, "stopy", l, Math.max), this.updateVal(this.nextData, "startx", s, Math.min), this.updateVal(this.nextData, "starty", r, Math.min), this.updateVal(this.nextData, "stopx", o, Math.max), this.updateVal(this.nextData, "stopy", l, Math.max);
1339
+ let t = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + e.margin : this.nextData.stopx + e.margin * 2, s = t + e.width, o = this.nextData.starty + e.margin * 2, l = o + e.height;
1340
+ (t >= this.data.widthLimit || s >= this.data.widthLimit || this.nextData.cnt > xe) && (t = this.nextData.startx + e.margin + _.nextLinePaddingX, o = this.nextData.stopy + e.margin * 2, this.nextData.stopx = s = t + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = l = o + e.height, this.nextData.cnt = 1), e.x = t, e.y = o, this.updateVal(this.data, "startx", t, Math.min), this.updateVal(this.data, "starty", o, Math.min), this.updateVal(this.data, "stopx", s, Math.max), this.updateVal(this.data, "stopy", l, Math.max), this.updateVal(this.nextData, "startx", t, Math.min), this.updateVal(this.nextData, "starty", o, Math.min), this.updateVal(this.nextData, "stopx", s, Math.max), this.updateVal(this.nextData, "stopy", l, Math.max);
1339
1341
  }
1340
- init(t) {
1342
+ init(e) {
1341
1343
  this.name = "", this.data = {
1342
1344
  startx: void 0,
1343
1345
  stopx: void 0,
@@ -1350,229 +1352,232 @@ var _ = {}, Ot, Ee = (Ot = class {
1350
1352
  starty: void 0,
1351
1353
  stopy: void 0,
1352
1354
  cnt: 0
1353
- }, ae(t.db.getConfig());
1355
+ }, te(e.db.getConfig());
1354
1356
  }
1355
- bumpLastMargin(t) {
1356
- this.data.stopx += t, this.data.stopy += t;
1357
+ bumpLastMargin(e) {
1358
+ this.data.stopx += e, this.data.stopy += e;
1357
1359
  }
1358
- }, y(Ot, "Bounds"), Ot), ae = /* @__PURE__ */ y(function(a) {
1359
- Ne(_, a), a.fontFamily && (_.personFontFamily = _.systemFontFamily = _.messageFontFamily = a.fontFamily), a.fontSize && (_.personFontSize = _.systemFontSize = _.messageFontSize = a.fontSize), a.fontWeight && (_.personFontWeight = _.systemFontWeight = _.messageFontWeight = a.fontWeight);
1360
- }, "setConf"), Pt = /* @__PURE__ */ y((a, t) => ({
1361
- fontFamily: a[t + "FontFamily"],
1362
- fontSize: a[t + "FontSize"],
1363
- fontWeight: a[t + "FontWeight"]
1364
- }), "c4ShapeFont"), Ut = /* @__PURE__ */ y((a) => ({
1365
- fontFamily: a.boundaryFontFamily,
1366
- fontSize: a.boundaryFontSize,
1367
- fontWeight: a.boundaryFontWeight
1368
- }), "boundaryFont"), w0 = /* @__PURE__ */ y((a) => ({
1369
- fontFamily: a.messageFontFamily,
1370
- fontSize: a.messageFontSize,
1371
- fontWeight: a.messageFontWeight
1360
+ }, te = /* @__PURE__ */ y(function(e) {
1361
+ Me(_, e), e.fontFamily && (_.personFontFamily = _.systemFontFamily = _.messageFontFamily = e.fontFamily), e.fontSize && (_.personFontSize = _.systemFontSize = _.messageFontSize = e.fontSize), e.fontWeight && (_.personFontWeight = _.systemFontWeight = _.messageFontWeight = e.fontWeight);
1362
+ }, "setConf"), St = /* @__PURE__ */ y((e, t) => ({
1363
+ fontFamily: e[t + "FontFamily"],
1364
+ fontSize: e[t + "FontSize"],
1365
+ fontWeight: e[t + "FontWeight"]
1366
+ }), "c4ShapeFont"), Yt = /* @__PURE__ */ y((e) => ({
1367
+ fontFamily: e.boundaryFontFamily,
1368
+ fontSize: e.boundaryFontSize,
1369
+ fontWeight: e.boundaryFontWeight
1370
+ }), "boundaryFont"), k0 = /* @__PURE__ */ y((e) => ({
1371
+ fontFamily: e.messageFontFamily,
1372
+ fontSize: e.messageFontSize,
1373
+ fontWeight: e.messageFontWeight
1372
1374
  }), "messageFont");
1373
- function j(a, t, s, o, r) {
1374
- if (!t[a].width)
1375
+ function j(e, t, s, o, l) {
1376
+ if (!t[e].width)
1375
1377
  if (s)
1376
- t[a].text = je(t[a].text, r, o), t[a].textLines = t[a].text.split($t.lineBreakRegex).length, t[a].width = r, t[a].height = fe(t[a].text, o);
1378
+ t[e].text = Ne(t[e].text, l, o), t[e].textLines = t[e].text.split(Jt.lineBreakRegex).length, t[e].width = l, t[e].height = ue(t[e].text, o);
1377
1379
  else {
1378
- let l = t[a].text.split($t.lineBreakRegex);
1379
- t[a].textLines = l.length;
1380
- let e = 0;
1381
- t[a].height = 0, t[a].width = 0;
1382
- for (const n of l)
1383
- t[a].width = Math.max(
1380
+ let r = t[e].text.split(Jt.lineBreakRegex);
1381
+ t[e].textLines = r.length;
1382
+ let a = 0;
1383
+ t[e].height = 0, t[e].width = 0;
1384
+ for (const n of r)
1385
+ t[e].width = Math.max(
1384
1386
  Tt(n, o),
1385
- t[a].width
1386
- ), e = fe(n, o), t[a].height = t[a].height + e;
1387
+ t[e].width
1388
+ ), a = ue(n, o), t[e].height = t[e].height + a;
1387
1389
  }
1388
1390
  }
1389
1391
  y(j, "calcC4ShapeTextWH");
1390
- var Ae = /* @__PURE__ */ y(function(a, t, s) {
1392
+ var ve = /* @__PURE__ */ y(function(e, t, s) {
1391
1393
  t.x = s.data.startx, t.y = s.data.starty, t.width = s.data.stopx - s.data.startx, t.height = s.data.stopy - s.data.starty, t.label.y = _.c4ShapeMargin - 35;
1392
- let o = t.wrap && _.wrap, r = Ut(_);
1393
- r.fontSize = r.fontSize + 2, r.fontWeight = "bold";
1394
- let l = Tt(t.label.text, r);
1395
- j("label", t, o, r, l), z.drawBoundary(a, t, _);
1396
- }, "drawBoundary"), ke = /* @__PURE__ */ y(function(a, t, s, o) {
1397
- let r = 0;
1398
- for (const l of o) {
1399
- r = 0;
1400
- const e = s[l];
1401
- let n = Pt(_, e.typeC4Shape.text);
1402
- switch (n.fontSize = n.fontSize - 2, e.typeC4Shape.width = Tt(
1403
- "«" + e.typeC4Shape.text + "»",
1394
+ let o = t.wrap && _.wrap, l = Yt(_);
1395
+ l.fontSize = l.fontSize + 2, l.fontWeight = "bold";
1396
+ let r = Tt(t.label.text, l);
1397
+ j("label", t, o, l, r), z.drawBoundary(e, t, _);
1398
+ }, "drawBoundary"), Ee = /* @__PURE__ */ y(function(e, t, s, o) {
1399
+ let l = 0;
1400
+ for (const r of o) {
1401
+ l = 0;
1402
+ const a = s[r];
1403
+ let n = St(_, a.typeC4Shape.text);
1404
+ switch (n.fontSize = n.fontSize - 2, a.typeC4Shape.width = Tt(
1405
+ "«" + a.typeC4Shape.text + "»",
1404
1406
  n
1405
- ), e.typeC4Shape.height = n.fontSize + 2, e.typeC4Shape.Y = _.c4ShapePadding, r = e.typeC4Shape.Y + e.typeC4Shape.height - 4, e.image = { width: 0, height: 0, Y: 0 }, e.typeC4Shape.text) {
1407
+ ), a.typeC4Shape.height = n.fontSize + 2, a.typeC4Shape.Y = _.c4ShapePadding, l = a.typeC4Shape.Y + a.typeC4Shape.height - 4, a.image = { width: 0, height: 0, Y: 0 }, a.typeC4Shape.text) {
1406
1408
  case "person":
1407
1409
  case "external_person":
1408
- e.image.width = 48, e.image.height = 48, e.image.Y = r, r = e.image.Y + e.image.height;
1410
+ a.image.width = 48, a.image.height = 48, a.image.Y = l, l = a.image.Y + a.image.height;
1409
1411
  break;
1410
1412
  }
1411
- e.sprite && (e.image.width = 48, e.image.height = 48, e.image.Y = r, r = e.image.Y + e.image.height);
1412
- let i = e.wrap && _.wrap, u = _.width - _.c4ShapePadding * 2, d = Pt(_, e.typeC4Shape.text);
1413
- if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j("label", e, i, d, u), e.label.Y = r + 8, r = e.label.Y + e.label.height, e.type && e.type.text !== "") {
1414
- e.type.text = "[" + e.type.text + "]";
1415
- let m = Pt(_, e.typeC4Shape.text);
1416
- j("type", e, i, m, u), e.type.Y = r + 5, r = e.type.Y + e.type.height;
1417
- } else if (e.techn && e.techn.text !== "") {
1418
- e.techn.text = "[" + e.techn.text + "]";
1419
- let m = Pt(_, e.techn.text);
1420
- j("techn", e, i, m, u), e.techn.Y = r + 5, r = e.techn.Y + e.techn.height;
1413
+ a.sprite && (a.image.width = 48, a.image.height = 48, a.image.Y = l, l = a.image.Y + a.image.height);
1414
+ let i = a.wrap && _.wrap, u = _.width - _.c4ShapePadding * 2, d = St(_, a.typeC4Shape.text);
1415
+ if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j("label", a, i, d, u), a.label.Y = l + 8, l = a.label.Y + a.label.height, a.type && a.type.text !== "") {
1416
+ a.type.text = "[" + a.type.text + "]";
1417
+ let m = St(_, a.typeC4Shape.text);
1418
+ j("type", a, i, m, u), a.type.Y = l + 5, l = a.type.Y + a.type.height;
1419
+ } else if (a.techn && a.techn.text !== "") {
1420
+ a.techn.text = "[" + a.techn.text + "]";
1421
+ let m = St(_, a.techn.text);
1422
+ j("techn", a, i, m, u), a.techn.Y = l + 5, l = a.techn.Y + a.techn.height;
1421
1423
  }
1422
- let f = r, g = e.label.width;
1423
- if (e.descr && e.descr.text !== "") {
1424
- let m = Pt(_, e.typeC4Shape.text);
1425
- j("descr", e, i, m, u), e.descr.Y = r + 20, r = e.descr.Y + e.descr.height, g = Math.max(e.label.width, e.descr.width), f = r - e.descr.textLines * 5;
1424
+ let p = l, g = a.label.width;
1425
+ if (a.descr && a.descr.text !== "") {
1426
+ let m = St(_, a.typeC4Shape.text);
1427
+ j("descr", a, i, m, u), a.descr.Y = l + 20, l = a.descr.Y + a.descr.height, g = Math.max(a.label.width, a.descr.width), p = l - a.descr.textLines * 5;
1426
1428
  }
1427
- g = g + _.c4ShapePadding, e.width = Math.max(e.width || _.width, g, _.width), e.height = Math.max(e.height || _.height, f, _.height), e.margin = e.margin || _.c4ShapeMargin, a.insert(e), z.drawC4Shape(t, e, _);
1429
+ g = g + _.c4ShapePadding, a.width = Math.max(a.width || _.width, g, _.width), a.height = Math.max(a.height || _.height, p, _.height), a.margin = a.margin || _.c4ShapeMargin, e.insert(a), z.drawC4Shape(t, a, _);
1430
+ }
1431
+ e.bumpLastMargin(_.c4ShapeMargin);
1432
+ }, "drawC4ShapeArray"), Y = class {
1433
+ static {
1434
+ y(this, "Point");
1428
1435
  }
1429
- a.bumpLastMargin(_.c4ShapeMargin);
1430
- }, "drawC4ShapeArray"), Rt, Y = (Rt = class {
1431
- constructor(t, s) {
1432
- this.x = t, this.y = s;
1436
+ constructor(e, t) {
1437
+ this.x = e, this.y = t;
1433
1438
  }
1434
- }, y(Rt, "Point"), Rt), pe = /* @__PURE__ */ y(function(a, t) {
1435
- let s = a.x, o = a.y, r = t.x, l = t.y, e = s + a.width / 2, n = o + a.height / 2, i = Math.abs(s - r), u = Math.abs(o - l), d = u / i, f = a.height / a.width, g = null;
1436
- return o == l && s < r ? g = new Y(s + a.width, n) : o == l && s > r ? g = new Y(s, n) : s == r && o < l ? g = new Y(e, o + a.height) : s == r && o > l && (g = new Y(e, o)), s > r && o < l ? f >= d ? g = new Y(s, n + d * a.width / 2) : g = new Y(
1437
- e - i / u * a.height / 2,
1438
- o + a.height
1439
- ) : s < r && o < l ? f >= d ? g = new Y(s + a.width, n + d * a.width / 2) : g = new Y(
1440
- e + i / u * a.height / 2,
1441
- o + a.height
1442
- ) : s < r && o > l ? f >= d ? g = new Y(s + a.width, n - d * a.width / 2) : g = new Y(e + a.height / 2 * i / u, o) : s > r && o > l && (f >= d ? g = new Y(s, n - a.width / 2 * d) : g = new Y(e - a.height / 2 * i / u, o)), g;
1443
- }, "getIntersectPoint"), T0 = /* @__PURE__ */ y(function(a, t) {
1439
+ }, de = /* @__PURE__ */ y(function(e, t) {
1440
+ let s = e.x, o = e.y, l = t.x, r = t.y, a = s + e.width / 2, n = o + e.height / 2, i = Math.abs(s - l), u = Math.abs(o - r), d = u / i, p = e.height / e.width, g = null;
1441
+ return o == r && s < l ? g = new Y(s + e.width, n) : o == r && s > l ? g = new Y(s, n) : s == l && o < r ? g = new Y(a, o + e.height) : s == l && o > r && (g = new Y(a, o)), s > l && o < r ? p >= d ? g = new Y(s, n + d * e.width / 2) : g = new Y(
1442
+ a - i / u * e.height / 2,
1443
+ o + e.height
1444
+ ) : s < l && o < r ? p >= d ? g = new Y(s + e.width, n + d * e.width / 2) : g = new Y(
1445
+ a + i / u * e.height / 2,
1446
+ o + e.height
1447
+ ) : s < l && o > r ? p >= d ? g = new Y(s + e.width, n - d * e.width / 2) : g = new Y(a + e.height / 2 * i / u, o) : s > l && o > r && (p >= d ? g = new Y(s, n - e.width / 2 * d) : g = new Y(a - e.height / 2 * i / u, o)), g;
1448
+ }, "getIntersectPoint"), C0 = /* @__PURE__ */ y(function(e, t) {
1444
1449
  let s = { x: 0, y: 0 };
1445
1450
  s.x = t.x + t.width / 2, s.y = t.y + t.height / 2;
1446
- let o = pe(a, s);
1447
- s.x = a.x + a.width / 2, s.y = a.y + a.height / 2;
1448
- let r = pe(t, s);
1449
- return { startPoint: o, endPoint: r };
1450
- }, "getIntersectPoints"), O0 = /* @__PURE__ */ y(function(a, t, s, o, r) {
1451
- let l = 0;
1452
- for (let e of t) {
1453
- l = l + 1;
1454
- let n = e.wrap && _.wrap, i = w0(_);
1455
- o.db.getC4Type() === "C4Dynamic" && (e.label.text = l + ": " + e.label.text);
1456
- let d = Tt(e.label.text, i);
1457
- j("label", e, n, i, d), e.techn && e.techn.text !== "" && (d = Tt(e.techn.text, i), j("techn", e, n, i, d)), e.descr && e.descr.text !== "" && (d = Tt(e.descr.text, i), j("descr", e, n, i, d));
1458
- let f = s(e.from), g = s(e.to), m = T0(f, g);
1459
- e.startPoint = m.startPoint, e.endPoint = m.endPoint;
1451
+ let o = de(e, s);
1452
+ s.x = e.x + e.width / 2, s.y = e.y + e.height / 2;
1453
+ let l = de(t, s);
1454
+ return { startPoint: o, endPoint: l };
1455
+ }, "getIntersectPoints"), w0 = /* @__PURE__ */ y(function(e, t, s, o, l) {
1456
+ let r = 0;
1457
+ for (let a of t) {
1458
+ r = r + 1;
1459
+ let n = a.wrap && _.wrap, i = k0(_);
1460
+ o.db.getC4Type() === "C4Dynamic" && (a.label.text = r + ": " + a.label.text);
1461
+ let d = Tt(a.label.text, i);
1462
+ j("label", a, n, i, d), a.techn && a.techn.text !== "" && (d = Tt(a.techn.text, i), j("techn", a, n, i, d)), a.descr && a.descr.text !== "" && (d = Tt(a.descr.text, i), j("descr", a, n, i, d));
1463
+ let p = s(a.from), g = s(a.to), m = C0(p, g);
1464
+ a.startPoint = m.startPoint, a.endPoint = m.endPoint;
1460
1465
  }
1461
- z.drawRels(a, t, _, r);
1466
+ z.drawRels(e, t, _, l);
1462
1467
  }, "drawRels");
1463
- function re(a, t, s, o, r) {
1464
- let l = new Ee(r);
1465
- l.data.widthLimit = s.data.widthLimit / Math.min(ee, o.length);
1466
- for (let [e, n] of o.entries()) {
1468
+ function ne(e, t, s, o, l) {
1469
+ let r = new me(l);
1470
+ r.data.widthLimit = s.data.widthLimit / Math.min($t, o.length);
1471
+ for (let [a, n] of o.entries()) {
1467
1472
  let i = 0;
1468
1473
  n.image = { width: 0, height: 0, Y: 0 }, n.sprite && (n.image.width = 48, n.image.height = 48, n.image.Y = i, i = n.image.Y + n.image.height);
1469
- let u = n.wrap && _.wrap, d = Ut(_);
1474
+ let u = n.wrap && _.wrap, d = Yt(_);
1470
1475
  if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j(
1471
1476
  "label",
1472
1477
  n,
1473
1478
  u,
1474
1479
  d,
1475
- l.data.widthLimit
1480
+ r.data.widthLimit
1476
1481
  ), n.label.Y = i + 8, i = n.label.Y + n.label.height, n.type && n.type.text !== "") {
1477
1482
  n.type.text = "[" + n.type.text + "]";
1478
- let O = Ut(_);
1483
+ let O = Yt(_);
1479
1484
  j(
1480
1485
  "type",
1481
1486
  n,
1482
1487
  u,
1483
1488
  O,
1484
- l.data.widthLimit
1489
+ r.data.widthLimit
1485
1490
  ), n.type.Y = i + 5, i = n.type.Y + n.type.height;
1486
1491
  }
1487
1492
  if (n.descr && n.descr.text !== "") {
1488
- let O = Ut(_);
1493
+ let O = Yt(_);
1489
1494
  O.fontSize = O.fontSize - 2, j(
1490
1495
  "descr",
1491
1496
  n,
1492
1497
  u,
1493
1498
  O,
1494
- l.data.widthLimit
1499
+ r.data.widthLimit
1495
1500
  ), n.descr.Y = i + 20, i = n.descr.Y + n.descr.height;
1496
1501
  }
1497
- if (e == 0 || e % ee === 0) {
1502
+ if (a == 0 || a % $t === 0) {
1498
1503
  let O = s.data.startx + _.diagramMarginX, S = s.data.stopy + _.diagramMarginY + i;
1499
- l.setData(O, O, S, S);
1504
+ r.setData(O, O, S, S);
1500
1505
  } else {
1501
- let O = l.data.stopx !== l.data.startx ? l.data.stopx + _.diagramMarginX : l.data.startx, S = l.data.starty;
1502
- l.setData(O, O, S, S);
1506
+ let O = r.data.stopx !== r.data.startx ? r.data.stopx + _.diagramMarginX : r.data.startx, S = r.data.starty;
1507
+ r.setData(O, O, S, S);
1503
1508
  }
1504
- l.name = n.alias;
1505
- let f = r.db.getC4ShapeArray(n.alias), g = r.db.getC4ShapeKeys(n.alias);
1506
- g.length > 0 && ke(
1507
- l,
1508
- a,
1509
- f,
1509
+ r.name = n.alias;
1510
+ let p = l.db.getC4ShapeArray(n.alias), g = l.db.getC4ShapeKeys(n.alias);
1511
+ g.length > 0 && Ee(
1512
+ r,
1513
+ e,
1514
+ p,
1510
1515
  g
1511
1516
  ), t = n.alias;
1512
- let m = r.db.getBoundaries(t);
1513
- m.length > 0 && re(
1514
- a,
1517
+ let m = l.db.getBoundaries(t);
1518
+ m.length > 0 && ne(
1519
+ e,
1515
1520
  t,
1516
- l,
1521
+ r,
1517
1522
  m,
1518
- r
1519
- ), n.alias !== "global" && Ae(a, n, l), s.data.stopy = Math.max(
1520
- l.data.stopy + _.c4ShapeMargin,
1523
+ l
1524
+ ), n.alias !== "global" && ve(e, n, r), s.data.stopy = Math.max(
1525
+ r.data.stopy + _.c4ShapeMargin,
1521
1526
  s.data.stopy
1522
1527
  ), s.data.stopx = Math.max(
1523
- l.data.stopx + _.c4ShapeMargin,
1528
+ r.data.stopx + _.c4ShapeMargin,
1524
1529
  s.data.stopx
1525
- ), Xt = Math.max(Xt, s.data.stopx), Wt = Math.max(Wt, s.data.stopy);
1530
+ ), Vt = Math.max(Vt, s.data.stopx), zt = Math.max(zt, s.data.stopy);
1526
1531
  }
1527
1532
  }
1528
- y(re, "drawInsideBoundary");
1529
- var R0 = /* @__PURE__ */ y(function(a, t, s, o) {
1530
- _ = Bt().c4;
1531
- const r = Bt().securityLevel;
1532
- let l;
1533
- r === "sandbox" && (l = jt("#i" + t));
1534
- const e = r === "sandbox" ? jt(l.nodes()[0].contentDocument.body) : jt("body");
1533
+ y(ne, "drawInsideBoundary");
1534
+ var T0 = /* @__PURE__ */ y(function(e, t, s, o) {
1535
+ _ = Dt().c4;
1536
+ const l = Dt().securityLevel;
1537
+ let r;
1538
+ l === "sandbox" && (r = Nt("#i" + t));
1539
+ const a = l === "sandbox" ? Nt(r.nodes()[0].contentDocument.body) : Nt("body");
1535
1540
  let n = o.db;
1536
- o.db.setWrap(_.wrap), ve = n.getC4ShapeInRow(), ee = n.getC4BoundaryInRow(), de.debug(`C:${JSON.stringify(_, null, 2)}`);
1537
- const i = r === "sandbox" ? e.select(`[id="${t}"]`) : jt(`[id="${t}"]`);
1541
+ o.db.setWrap(_.wrap), xe = n.getC4ShapeInRow(), $t = n.getC4BoundaryInRow(), he.debug(`C:${JSON.stringify(_, null, 2)}`);
1542
+ const i = l === "sandbox" ? a.select(`[id="${t}"]`) : Nt(`[id="${t}"]`);
1538
1543
  z.insertComputerIcon(i, t), z.insertDatabaseIcon(i, t), z.insertClockIcon(i, t);
1539
- let u = new Ee(o);
1544
+ let u = new me(o);
1540
1545
  u.setData(
1541
1546
  _.diagramMarginX,
1542
1547
  _.diagramMarginX,
1543
1548
  _.diagramMarginY,
1544
1549
  _.diagramMarginY
1545
- ), u.data.widthLimit = screen.availWidth, Xt = _.diagramMarginX, Wt = _.diagramMarginY;
1550
+ ), u.data.widthLimit = screen.availWidth, Vt = _.diagramMarginX, zt = _.diagramMarginY;
1546
1551
  const d = o.db.getTitle();
1547
- let f = o.db.getBoundaries("");
1548
- re(i, "", u, f, o), z.insertArrowHead(i, t), z.insertArrowEnd(i, t), z.insertArrowCrossHead(i, t), z.insertArrowFilledHead(i, t), O0(i, o.db.getRels(), o.db.getC4Shape, o, t), u.data.stopx = Xt, u.data.stopy = Wt;
1552
+ let p = o.db.getBoundaries("");
1553
+ ne(i, "", u, p, o), z.insertArrowHead(i, t), z.insertArrowEnd(i, t), z.insertArrowCrossHead(i, t), z.insertArrowFilledHead(i, t), w0(i, o.db.getRels(), o.db.getC4Shape, o, t), u.data.stopx = Vt, u.data.stopy = zt;
1549
1554
  const g = u.data;
1550
1555
  let O = g.stopy - g.starty + 2 * _.diagramMarginY;
1551
1556
  const P = g.stopx - g.startx + 2 * _.diagramMarginX;
1552
- d && i.append("text").text(d).attr("x", (g.stopx - g.startx) / 2 - 4 * _.diagramMarginX).attr("y", g.starty + _.diagramMarginY), Le(i, O, P, _.useMaxWidth);
1557
+ d && i.append("text").text(d).attr("x", (g.stopx - g.startx) / 2 - 4 * _.diagramMarginX).attr("y", g.starty + _.diagramMarginY), Ie(i, O, P, _.useMaxWidth);
1553
1558
  const M = d ? 60 : 0;
1554
1559
  i.attr(
1555
1560
  "viewBox",
1556
1561
  g.startx - _.diagramMarginX + " -" + (_.diagramMarginY + M) + " " + P + " " + (O + M)
1557
- ), de.debug("models:", g);
1558
- }, "draw"), ye = {
1559
- drawPersonOrSystemArray: ke,
1560
- drawBoundary: Ae,
1561
- setConf: ae,
1562
- draw: R0
1563
- }, S0 = /* @__PURE__ */ y((a) => `.person {
1564
- stroke: ${a.personBorder};
1565
- fill: ${a.personBkg};
1562
+ ), he.debug("models:", g);
1563
+ }, "draw"), fe = {
1564
+ drawPersonOrSystemArray: Ee,
1565
+ drawBoundary: ve,
1566
+ setConf: te,
1567
+ draw: T0
1568
+ }, O0 = /* @__PURE__ */ y((e) => `.person {
1569
+ stroke: ${e.personBorder};
1570
+ fill: ${e.personBkg};
1566
1571
  }
1567
- `, "getStyles"), D0 = S0, I0 = {
1568
- parser: Ue,
1569
- db: te,
1570
- renderer: ye,
1571
- styles: D0,
1572
- init: /* @__PURE__ */ y(({ c4: a, wrap: t }) => {
1573
- ye.setConf(a), te.setWrap(t);
1572
+ `, "getStyles"), R0 = O0, P0 = {
1573
+ parser: Ye,
1574
+ db: Zt,
1575
+ renderer: fe,
1576
+ styles: R0,
1577
+ init: /* @__PURE__ */ y(({ c4: e, wrap: t }) => {
1578
+ fe.setConf(e), Zt.setWrap(t);
1574
1579
  }, "init")
1575
1580
  };
1576
1581
  export {
1577
- I0 as diagram
1582
+ P0 as diagram
1578
1583
  };