@antdv-next/x 1.0.2-beta.2 → 1.0.2-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/actions/Actions.js +1 -1
  2. package/dist/attachments/index.js +1 -1
  3. package/dist/conversations/index.js +1 -1
  4. package/dist/file-card/FileCard.js +1 -1
  5. package/dist/file-card/List.js +1 -1
  6. package/dist/index.umd.js +25 -25
  7. package/dist/locale/useLocale.js +1 -1
  8. package/dist/mermaid/Mermaid.js +1 -1
  9. package/dist/package.js +1 -1
  10. package/dist/prompts/Prompts.js +1 -1
  11. package/dist/sender/Sender.js +1 -1
  12. package/dist/sender/SenderHeader.js +1 -1
  13. package/dist/sender/SenderSwitch.js +1 -1
  14. package/dist/sources/Sources.js +1 -1
  15. package/dist/suggestion/Suggestion.js +1 -1
  16. package/dist/theme/genStyleUtils.js +1 -1
  17. package/dist/think/Think.js +1 -1
  18. package/dist/thought-chain/Item.js +1 -1
  19. package/dist/thought-chain/Node.js +1 -1
  20. package/dist/thought-chain/ThoughtChain.js +1 -1
  21. package/dist/welcome/index.js +1 -1
  22. package/dist/x-provider/hooks/use-x-provider-context.js +1 -1
  23. package/es/{Serializer-y_SfSPKv.js → Serializer-D1JYN1kI.js} +4 -4
  24. package/es/{_basePickBy-DPqob0cQ.js → _basePickBy-DFHEGO2M.js} +23 -23
  25. package/es/{_baseUniq-AMhRdOMz.js → _baseUniq-BlS7rXTs.js} +83 -83
  26. package/es/antdv-next-x.esm.js +44833 -7290
  27. package/es/{arc-caEkbRYF.js → arc-BuXEd18J.js} +3 -3
  28. package/es/architecture-PBZL5I3N-D7tS55xM.js +3 -0
  29. package/es/{architectureDiagram-2XIMDMQ5-ZOgJV9Kg.js → architectureDiagram-2XIMDMQ5-CmfsCwJk.js} +85 -85
  30. package/es/{blockDiagram-WCTKOSBZ-8iZwAKBK.js → blockDiagram-WCTKOSBZ-lJAan65A.js} +530 -530
  31. package/es/{c4Diagram-IC4MRINW-DrH9eRMR.js → c4Diagram-IC4MRINW-B1c2x_1Q.js} +170 -170
  32. package/es/channel-DFgF_2F7.js +5 -0
  33. package/es/{chunk-4BX2VUAB-DUVpjbJi.js → chunk-4BX2VUAB-J2N81Fpp.js} +2 -2
  34. package/es/{chunk-55IACEB6-RlJ-J3tE.js → chunk-55IACEB6-DGtfGRgi.js} +2 -2
  35. package/es/{chunk-7E7YKBS2-ChLFamzc.js → chunk-7E7YKBS2-CL2d4WAf.js} +2 -2
  36. package/es/{chunk-7R4GIKGN-B9vamSzt.js → chunk-7R4GIKGN-QT6IorJ_.js} +3 -3
  37. package/es/{chunk-C72U2L5F-BV-rXau1.js → chunk-C72U2L5F-OHTVpS-m.js} +2 -2
  38. package/es/{chunk-EGIJ26TM-GvsuORRL.js → chunk-EGIJ26TM-DyMPGYrB.js} +2 -2
  39. package/es/{chunk-FMBD7UC4-D6ZlqqMC.js → chunk-FMBD7UC4-DCcRjunY.js} +2 -2
  40. package/es/{chunk-GEFDOKGD-DM6dsEsk.js → chunk-GEFDOKGD-BWpC-zoH.js} +278 -278
  41. package/es/chunk-GLR3WWYH-DiXcKb5Y.js +41 -0
  42. package/es/{chunk-HHEYEP7N-FVfYw94p.js → chunk-HHEYEP7N-Cxc7E4dX.js} +3 -3
  43. package/es/{chunk-JSJVCQXG-Wr9uPcCh.js → chunk-JSJVCQXG-D8_heHOp.js} +4 -4
  44. package/es/{chunk-KX2RTZJC-BGffjoxB.js → chunk-KX2RTZJC-D5cc4rj6.js} +3 -3
  45. package/es/{chunk-KYZI473N-Bit5smNE.js → chunk-KYZI473N-BHJ3T5Zv.js} +573 -573
  46. package/es/{chunk-L3YUKLVL-DBuHDpQ2.js → chunk-L3YUKLVL-7oGaUOdc.js} +2 -2
  47. package/es/{chunk-MX3YWQON-Cbj2WwUZ.js → chunk-MX3YWQON-BxE-Aq9c.js} +2 -2
  48. package/es/{chunk-NQ4KR5QH-FPQ-IHJN.js → chunk-NQ4KR5QH-EYQBXkqP.js} +120 -120
  49. package/es/{chunk-O4XLMI2P-BCDk0ZIW.js → chunk-O4XLMI2P-qjOoGpnx.js} +238 -238
  50. package/es/{chunk-OZEHJAEY-BZ24IOgQ.js → chunk-OZEHJAEY-D82nx27s.js} +2 -2
  51. package/es/{chunk-PQ6SQG4A-DpwBx6Hx.js → chunk-PQ6SQG4A-D3jtNCWN.js} +3 -3
  52. package/es/{chunk-PU5JKC2W-BNpJuXxn.js → chunk-PU5JKC2W-DdP8BS-S.js} +76 -76
  53. package/es/{chunk-QZHKN3VN-NEMwPryC.js → chunk-QZHKN3VN-CW3cFN-h.js} +2 -2
  54. package/es/{chunk-R5LLSJPH-g44vgerl.js → chunk-R5LLSJPH-CreI2kO9.js} +2 -2
  55. package/es/{chunk-WL4C6EOR-B6l-Yy2t.js → chunk-WL4C6EOR-BDbxJyGk.js} +120 -120
  56. package/es/{chunk-XIRO2GV7-CaFInIOW.js → chunk-XIRO2GV7-S5KkbVnN.js} +2 -2
  57. package/es/{chunk-XPW4576I-Cp1j6iTN.js → chunk-XPW4576I-B0KVSHwE.js} +2 -2
  58. package/es/{chunk-XZSTWKYB-CGk7ipHd.js → chunk-XZSTWKYB-CucN1XvM.js} +93 -93
  59. package/es/{chunk-YBOYWFTD-dOTBpTYs.js → chunk-YBOYWFTD-CvaddD9G.js} +8 -8
  60. package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +29 -0
  61. package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +29 -0
  62. package/es/clone-r3YukIBB.js +8 -0
  63. package/es/{cose-bilkent-S5V4N54A-DlmXyn6m.js → cose-bilkent-S5V4N54A-B5OQuIhl.js} +3 -3
  64. package/es/{cytoscape.esm-BY3wHcbp.js → cytoscape.esm-i2CZcWd-.js} +1 -1
  65. package/es/{dagre-B1qTL793.js → dagre-5aGJFKmT.js} +57 -57
  66. package/es/dagre-KLK3FWXG-BI5QQMXo.js +294 -0
  67. package/es/{defaultLocale-BaPFSbai.js → defaultLocale-bckJcYh1.js} +12 -12
  68. package/es/{diagram-E7M64L7V-Dnd8N74o.js → diagram-E7M64L7V-Dz62Vz_a.js} +83 -83
  69. package/es/{diagram-IFDJBPK2-Dan7RsGr.js → diagram-IFDJBPK2-9fjvFkSc.js} +31 -31
  70. package/es/{diagram-P4PSJMXO-DwKJpttH.js → diagram-P4PSJMXO-BlX6jFjZ.js} +32 -32
  71. package/es/{dist-DltyvPj3.js → dist-BX_roQzC.js} +1 -1
  72. package/es/{erDiagram-INFDFZHY-CGO6k23w.js → erDiagram-INFDFZHY-BcRXu8Cp.js} +128 -128
  73. package/es/{flowDiagram-PKNHOUZH-DFN1GsRx.js → flowDiagram-PKNHOUZH-UeyfgU8z.js} +156 -156
  74. package/es/{ganttDiagram-A5KZAMGK-Cf5NxH1w.js → ganttDiagram-A5KZAMGK-txCzqgQ5.js} +625 -622
  75. package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +3 -0
  76. package/es/{gitGraphDiagram-K3NZZRJ6-BgE6aSZO.js → gitGraphDiagram-K3NZZRJ6-DghWYaFU.js} +176 -176
  77. package/es/{graphlib-DFxSohCv.js → graphlib-dRkI1OCL.js} +4 -4
  78. package/es/{html-C2-_98S6.js → html-B6UxjOv0.js} +1 -1
  79. package/es/html-Hb1oe8XT.js +2 -0
  80. package/es/info-3K5VOQVL-COqdvM99.js +3 -0
  81. package/es/{infoDiagram-LFFYTUFH-WcApcdl5.js → infoDiagram-LFFYTUFH-CA-vlAvP.js} +5 -5
  82. package/es/{init-PAs0hR-b.js → init-B75p2clj.js} +1 -1
  83. package/es/{isArrayLikeObject-BEG9p74d.js → isArrayLikeObject-jl2bjkAJ.js} +80 -80
  84. package/es/{isEmpty-B1YrVV8B.js → isEmpty-CmA-HYrg.js} +3 -3
  85. package/es/{ishikawaDiagram-PHBUUO56-DwK7J31a.js → ishikawaDiagram-PHBUUO56-DjdpS9Lb.js} +67 -67
  86. package/es/{journeyDiagram-4ABVD52K-CWuA57by.js → journeyDiagram-4ABVD52K-CIJfC1fp.js} +6 -6
  87. package/es/{kanban-definition-K7BYSVSG-DBt3gYRQ.js → kanban-definition-K7BYSVSG-CC2vwGck.js} +11 -11
  88. package/es/{katex-OR8z_f6I.js → katex-DCMiIo1z.js} +1 -1
  89. package/es/{line-zOBKZCP5.js → line-Cu9NTacD.js} +4 -4
  90. package/es/{linear-DttXWw4q.js → linear-C0rAYYmp.js} +23 -23
  91. package/es/{math-DPzKeDKn.js → math-CoDOuve-.js} +1 -1
  92. package/es/{mermaid-parser.core-CWNEdmZ_.js → mermaid-parser.core-7Wn2L29P.js} +16 -16
  93. package/es/{mermaid.core-DPBXXViR.js → mermaid.core-Bvy_Q6Hu.js} +208 -208
  94. package/es/{mindmap-definition-YRQLILUH-Bq2xqboX.js → mindmap-definition-YRQLILUH-BzTYDYmK.js} +16 -16
  95. package/es/{ordinal-D8PKtxfM.js → ordinal-F3U6aXtP.js} +3 -3
  96. package/es/packet-RMMSAZCW-2PTjWKLd.js +3 -0
  97. package/es/{path-DZ-6AyWK.js → path-Dm3C8WEs.js} +3 -3
  98. package/es/pie-UPGHQEXC-Du8-k-EA.js +3 -0
  99. package/es/{pieDiagram-SKSYHLDU-D4iMzwzH.js → pieDiagram-SKSYHLDU-COvqE_C6.js} +32 -32
  100. package/es/{quadrantDiagram-337W2JSQ-DSbXC0z6.js → quadrantDiagram-337W2JSQ-Dgv8ccjt.js} +4 -4
  101. package/es/radar-KQ55EAFF-jJOhyjxC.js +3 -0
  102. package/es/{requirementDiagram-Z7DCOOCP-D7eLn3fs.js → requirementDiagram-Z7DCOOCP-B2NyhxO-.js} +59 -59
  103. package/es/{rough.esm-C_hJ3ICT.js → rough.esm-BhGP2Udb.js} +1 -1
  104. package/es/{sankeyDiagram-WA2Y5GQK-DN5ZPgWU.js → sankeyDiagram-WA2Y5GQK-BfnH_gpl.js} +18 -18
  105. package/es/{sequenceDiagram-2WXFIKYE-CRFEBP8-.js → sequenceDiagram-2WXFIKYE-DXssVQOF.js} +390 -390
  106. package/es/{src-BH16DVv0.js → src-CUQ6oOYk.js} +86 -86
  107. package/es/{stateDiagram-RAJIS63D-CfO23QJX.js → stateDiagram-RAJIS63D-DvDLfupV.js} +68 -68
  108. package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +27 -0
  109. package/es/{timeline-definition-YZTLITO2-DmpPrD-3.js → timeline-definition-YZTLITO2-ErcRjbZf.js} +4 -4
  110. package/es/treemap-KZPCXAKY-CvZAIYVa.js +3 -0
  111. package/es/{vennDiagram-LZ73GAT5-B80Xr4jV.js → vennDiagram-LZ73GAT5-CDTZUtc8.js} +107 -107
  112. package/es/{vue-DTiWrQBM.js → vue-2aJw7p5p.js} +2 -2
  113. package/es/{vue-html-BG3Xflut.js → vue-html-DEjI8X9t.js} +1 -1
  114. package/es/{xychartDiagram-JWTSCODW-DvQyPDr4.js → xychartDiagram-JWTSCODW-Y21jBOTg.js} +103 -103
  115. package/package.json +1 -1
  116. package/es/architecture-PBZL5I3N-CBmkTWjb.js +0 -3
  117. package/es/channel-DIQFjdG3.js +0 -5
  118. package/es/chunk-GLR3WWYH-CqFdLic9.js +0 -41
  119. package/es/classDiagram-VBA2DB6C-B3yBiQy3.js +0 -29
  120. package/es/classDiagram-v2-RAHNMMFH-jbFYm_Xj.js +0 -29
  121. package/es/clone-DXVS0uSx.js +0 -8
  122. package/es/dagre-KLK3FWXG-CEhXRLVR.js +0 -294
  123. package/es/gitGraph-HDMCJU4V-CrEEHSZS.js +0 -3
  124. package/es/html-JbFqcNgP.js +0 -2
  125. package/es/info-3K5VOQVL-Dg3DCp4F.js +0 -3
  126. package/es/packet-RMMSAZCW-Dk7mKMJ4.js +0 -3
  127. package/es/pie-UPGHQEXC-CnM5YLNO.js +0 -3
  128. package/es/radar-KQ55EAFF-BwfADDx8.js +0 -3
  129. package/es/stateDiagram-v2-FVOUBMTO-BGWbXepL.js +0 -27
  130. package/es/treemap-KZPCXAKY-BWfn7JxQ.js +0 -3
@@ -1,16 +1,16 @@
1
- import { f as e, h as t } from "./chunk-GEFDOKGD-DM6dsEsk.js";
2
- import { g as n, h as r, p as i } from "./src-BH16DVv0.js";
3
- import { B as a, C as o, D as s, L as c, P as l, U as u, V as d, W as f, _ as p, a as m, b as h, c as g, i as _, k as v, r as y, s as b, v as x, y as S } from "./chunk-7R4GIKGN-B9vamSzt.js";
4
- import { t as C } from "./dist-DltyvPj3.js";
5
- import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-JSJVCQXG-Wr9uPcCh.js";
6
- import { n as A, t as j } from "./chunk-XPW4576I-Cp1j6iTN.js";
7
- import { t as M } from "./chunk-QZHKN3VN-NEMwPryC.js";
8
- //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-2WXFIKYE.mjs
1
+ import { g as e, h as t, p as n } from "./src-CUQ6oOYk.js";
2
+ import { f as r, h as i } from "./chunk-GEFDOKGD-BWpC-zoH.js";
3
+ import { B as a, C as o, D as s, L as c, P as l, U as u, V as d, W as f, _ as p, a as m, b as h, c as g, i as _, k as v, r as y, s as b, v as x, y as S } from "./chunk-7R4GIKGN-QT6IorJ_.js";
4
+ import { t as C } from "./dist-BX_roQzC.js";
5
+ import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-JSJVCQXG-D8_heHOp.js";
6
+ import { n as A, t as j } from "./chunk-XPW4576I-B0KVSHwE.js";
7
+ import { t as M } from "./chunk-QZHKN3VN-CW3cFN-h.js";
8
+ //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-2WXFIKYE.mjs
9
9
  var N = C(), P = (function() {
10
- var e = /* @__PURE__ */ r(function(e, t, n, r) {
10
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
11
11
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
12
12
  return n;
13
- }, "o"), t = [1, 2], n = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
13
+ }, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
14
14
  1,
15
15
  4,
16
16
  5,
@@ -190,7 +190,7 @@ var N = C(), P = (function() {
190
190
  72,
191
191
  73
192
192
  ], q = [1, 151], Te = {
193
- trace: /* @__PURE__ */ r(function() {}, "trace"),
193
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
194
194
  yy: {},
195
195
  symbols_: {
196
196
  error: 2,
@@ -488,7 +488,7 @@ var N = C(), P = (function() {
488
488
  [69, 1],
489
489
  [58, 1]
490
490
  ],
491
- performAction: /* @__PURE__ */ r(function(e, t, n, r, i, a, o) {
491
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
492
492
  var s = a.length - 1;
493
493
  switch (i) {
494
494
  case 3: return r.apply(a[s]), a[s];
@@ -985,21 +985,21 @@ var N = C(), P = (function() {
985
985
  table: [
986
986
  {
987
987
  3: 1,
988
- 4: t,
989
- 5: n,
988
+ 4: n,
989
+ 5: r,
990
990
  6: i
991
991
  },
992
992
  { 1: [3] },
993
993
  {
994
994
  3: 5,
995
- 4: t,
996
- 5: n,
995
+ 4: n,
996
+ 5: r,
997
997
  6: i
998
998
  },
999
999
  {
1000
1000
  3: 6,
1001
- 4: t,
1002
- 5: n,
1001
+ 4: n,
1002
+ 5: r,
1003
1003
  6: i
1004
1004
  },
1005
1005
  e([
@@ -1890,15 +1890,15 @@ var N = C(), P = (function() {
1890
1890
  203: [2, 44],
1891
1891
  204: [2, 74]
1892
1892
  },
1893
- parseError: /* @__PURE__ */ r(function(e, t) {
1893
+ parseError: /* @__PURE__ */ t(function(e, t) {
1894
1894
  if (t.recoverable) this.trace(e);
1895
1895
  else {
1896
1896
  var n = Error(e);
1897
1897
  throw n.hash = t, n;
1898
1898
  }
1899
1899
  }, "parseError"),
1900
- parse: /* @__PURE__ */ r(function(e) {
1901
- var t = this, n = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1900
+ parse: /* @__PURE__ */ t(function(e) {
1901
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1902
1902
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1903
1903
  h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1904
1904
  var v = h.yylloc;
@@ -1906,16 +1906,16 @@ var N = C(), P = (function() {
1906
1906
  var y = h.options && h.options.ranges;
1907
1907
  typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1908
1908
  function b(e) {
1909
- n.length -= 2 * e, a.length -= e, o.length -= e;
1909
+ r.length -= 2 * e, a.length -= e, o.length -= e;
1910
1910
  }
1911
- r(b, "popStack");
1911
+ t(b, "popStack");
1912
1912
  function x() {
1913
1913
  var e = i.pop() || h.lex() || p;
1914
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
1914
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1915
1915
  }
1916
- r(x, "lex");
1916
+ t(x, "lex");
1917
1917
  for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1918
- if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1918
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1919
1919
  var M = "";
1920
1920
  for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1921
1921
  M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
@@ -1929,7 +1929,7 @@ var N = C(), P = (function() {
1929
1929
  if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1930
1930
  switch (T[0]) {
1931
1931
  case 1:
1932
- n.push(S), a.push(h.yytext), o.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1932
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1933
1933
  break;
1934
1934
  case 2:
1935
1935
  if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
@@ -1946,7 +1946,7 @@ var N = C(), P = (function() {
1946
1946
  a,
1947
1947
  o
1948
1948
  ].concat(m)), E !== void 0) return E;
1949
- k && (n = n.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[n[n.length - 2]][n[n.length - 1]], n.push(A);
1949
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
1950
1950
  break;
1951
1951
  case 3: return !0;
1952
1952
  }
@@ -1957,11 +1957,11 @@ var N = C(), P = (function() {
1957
1957
  Te.lexer = /* @__PURE__ */ (function() {
1958
1958
  return {
1959
1959
  EOF: 1,
1960
- parseError: /* @__PURE__ */ r(function(e, t) {
1960
+ parseError: /* @__PURE__ */ t(function(e, t) {
1961
1961
  if (this.yy.parser) this.yy.parser.parseError(e, t);
1962
1962
  else throw Error(e);
1963
1963
  }, "parseError"),
1964
- setInput: /* @__PURE__ */ r(function(e, t) {
1964
+ setInput: /* @__PURE__ */ t(function(e, t) {
1965
1965
  return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1966
1966
  first_line: 1,
1967
1967
  first_column: 0,
@@ -1969,11 +1969,11 @@ var N = C(), P = (function() {
1969
1969
  last_column: 0
1970
1970
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1971
1971
  }, "setInput"),
1972
- input: /* @__PURE__ */ r(function() {
1972
+ input: /* @__PURE__ */ t(function() {
1973
1973
  var e = this._input[0];
1974
1974
  return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1975
1975
  }, "input"),
1976
- unput: /* @__PURE__ */ r(function(e) {
1976
+ unput: /* @__PURE__ */ t(function(e) {
1977
1977
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1978
1978
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1979
1979
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -1986,10 +1986,10 @@ var N = C(), P = (function() {
1986
1986
  last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1987
1987
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1988
1988
  }, "unput"),
1989
- more: /* @__PURE__ */ r(function() {
1989
+ more: /* @__PURE__ */ t(function() {
1990
1990
  return this._more = !0, this;
1991
1991
  }, "more"),
1992
- reject: /* @__PURE__ */ r(function() {
1992
+ reject: /* @__PURE__ */ t(function() {
1993
1993
  if (this.options.backtrack_lexer) this._backtrack = !0;
1994
1994
  else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1995
1995
  text: "",
@@ -1998,22 +1998,22 @@ var N = C(), P = (function() {
1998
1998
  });
1999
1999
  return this;
2000
2000
  }, "reject"),
2001
- less: /* @__PURE__ */ r(function(e) {
2001
+ less: /* @__PURE__ */ t(function(e) {
2002
2002
  this.unput(this.match.slice(e));
2003
2003
  }, "less"),
2004
- pastInput: /* @__PURE__ */ r(function() {
2004
+ pastInput: /* @__PURE__ */ t(function() {
2005
2005
  var e = this.matched.substr(0, this.matched.length - this.match.length);
2006
2006
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
2007
2007
  }, "pastInput"),
2008
- upcomingInput: /* @__PURE__ */ r(function() {
2008
+ upcomingInput: /* @__PURE__ */ t(function() {
2009
2009
  var e = this.match;
2010
2010
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
2011
2011
  }, "upcomingInput"),
2012
- showPosition: /* @__PURE__ */ r(function() {
2012
+ showPosition: /* @__PURE__ */ t(function() {
2013
2013
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
2014
2014
  return e + this.upcomingInput() + "\n" + t + "^";
2015
2015
  }, "showPosition"),
2016
- test_match: /* @__PURE__ */ r(function(e, t) {
2016
+ test_match: /* @__PURE__ */ t(function(e, t) {
2017
2017
  var n, r, i;
2018
2018
  if (this.options.backtrack_lexer && (i = {
2019
2019
  yylineno: this.yylineno,
@@ -2046,7 +2046,7 @@ var N = C(), P = (function() {
2046
2046
  }
2047
2047
  return !1;
2048
2048
  }, "test_match"),
2049
- next: /* @__PURE__ */ r(function() {
2049
+ next: /* @__PURE__ */ t(function() {
2050
2050
  if (this.done) return this.EOF;
2051
2051
  this._input || (this.done = !0);
2052
2052
  var e, t, n, r;
@@ -2066,29 +2066,29 @@ var N = C(), P = (function() {
2066
2066
  line: this.yylineno
2067
2067
  });
2068
2068
  }, "next"),
2069
- lex: /* @__PURE__ */ r(function() {
2069
+ lex: /* @__PURE__ */ t(function() {
2070
2070
  return this.next() || this.lex();
2071
2071
  }, "lex"),
2072
- begin: /* @__PURE__ */ r(function(e) {
2072
+ begin: /* @__PURE__ */ t(function(e) {
2073
2073
  this.conditionStack.push(e);
2074
2074
  }, "begin"),
2075
- popState: /* @__PURE__ */ r(function() {
2075
+ popState: /* @__PURE__ */ t(function() {
2076
2076
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2077
2077
  }, "popState"),
2078
- _currentRules: /* @__PURE__ */ r(function() {
2078
+ _currentRules: /* @__PURE__ */ t(function() {
2079
2079
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2080
2080
  }, "_currentRules"),
2081
- topState: /* @__PURE__ */ r(function(e) {
2081
+ topState: /* @__PURE__ */ t(function(e) {
2082
2082
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
2083
2083
  }, "topState"),
2084
- pushState: /* @__PURE__ */ r(function(e) {
2084
+ pushState: /* @__PURE__ */ t(function(e) {
2085
2085
  this.begin(e);
2086
2086
  }, "pushState"),
2087
- stateStackSize: /* @__PURE__ */ r(function() {
2087
+ stateStackSize: /* @__PURE__ */ t(function() {
2088
2088
  return this.conditionStack.length;
2089
2089
  }, "stateStackSize"),
2090
2090
  options: { "case-insensitive": !0 },
2091
- performAction: /* @__PURE__ */ r(function(e, t, n, r) {
2091
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
2092
2092
  switch (n) {
2093
2093
  case 0: return 5;
2094
2094
  case 1: break;
@@ -2426,7 +2426,7 @@ var N = C(), P = (function() {
2426
2426
  function Ee() {
2427
2427
  this.yy = {};
2428
2428
  }
2429
- return r(Ee, "Parser"), Ee.prototype = Te, Te.Parser = Ee, new Ee();
2429
+ return t(Ee, "Parser"), Ee.prototype = Te, Te.Parser = Ee, new Ee();
2430
2430
  })();
2431
2431
  P.parser = P;
2432
2432
  var F = P, I = {
@@ -2515,7 +2515,7 @@ var F = P, I = {
2515
2515
  })), this.setAccTitle = d, this.setAccDescription = a, this.setDiagramTitle = f, this.getAccTitle = x, this.getAccDescription = p, this.getDiagramTitle = o, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(h().wrap), this.LINETYPE = I, this.ARROWTYPE = ee, this.PLACEMENT = te;
2516
2516
  }
2517
2517
  static {
2518
- r(this, "SequenceDB");
2518
+ t(this, "SequenceDB");
2519
2519
  }
2520
2520
  addBox(e) {
2521
2521
  this.state.records.boxes.push({
@@ -2661,12 +2661,12 @@ var F = P, I = {
2661
2661
  clear() {
2662
2662
  this.state.reset(), m();
2663
2663
  }
2664
- parseMessage(e) {
2665
- let t = e.trim(), { wrap: r, cleanedText: i } = this.extractWrap(t), a = {
2664
+ parseMessage(t) {
2665
+ let n = t.trim(), { wrap: r, cleanedText: i } = this.extractWrap(n), a = {
2666
2666
  text: i,
2667
2667
  wrap: r
2668
2668
  };
2669
- return n.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2669
+ return e.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2670
2670
  }
2671
2671
  parseBoxData(e) {
2672
2672
  let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
@@ -2699,39 +2699,39 @@ var F = P, I = {
2699
2699
  placement: t
2700
2700
  });
2701
2701
  }
2702
- addLinks(e, t) {
2703
- let r = this.getActor(e);
2702
+ addLinks(t, n) {
2703
+ let r = this.getActor(t);
2704
2704
  try {
2705
- let e = c(t.text, h());
2705
+ let e = c(n.text, h());
2706
2706
  e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2707
- let n = JSON.parse(e);
2708
- this.insertLinks(r, n);
2709
- } catch (e) {
2710
- n.error("error while parsing actor link text", e);
2707
+ let t = JSON.parse(e);
2708
+ this.insertLinks(r, t);
2709
+ } catch (t) {
2710
+ e.error("error while parsing actor link text", t);
2711
2711
  }
2712
2712
  }
2713
- addALink(e, t) {
2714
- let r = this.getActor(e);
2713
+ addALink(t, n) {
2714
+ let r = this.getActor(t);
2715
2715
  try {
2716
- let e = {}, n = c(t.text, h()), i = n.indexOf("@");
2717
- n = n.replace(/&equals;/g, "="), n = n.replace(/&amp;/g, "&");
2718
- let a = n.slice(0, i - 1).trim();
2719
- e[a] = n.slice(i + 1).trim(), this.insertLinks(r, e);
2720
- } catch (e) {
2721
- n.error("error while parsing actor link text", e);
2716
+ let e = {}, t = c(n.text, h()), i = t.indexOf("@");
2717
+ t = t.replace(/&equals;/g, "="), t = t.replace(/&amp;/g, "&");
2718
+ let a = t.slice(0, i - 1).trim();
2719
+ e[a] = t.slice(i + 1).trim(), this.insertLinks(r, e);
2720
+ } catch (t) {
2721
+ e.error("error while parsing actor link text", t);
2722
2722
  }
2723
2723
  }
2724
2724
  insertLinks(e, t) {
2725
2725
  if (e.links == null) e.links = t;
2726
2726
  else for (let n in t) e.links[n] = t[n];
2727
2727
  }
2728
- addProperties(e, t) {
2729
- let r = this.getActor(e);
2728
+ addProperties(t, n) {
2729
+ let r = this.getActor(t);
2730
2730
  try {
2731
- let e = c(t.text, h()), n = JSON.parse(e);
2732
- this.insertProperties(r, n);
2733
- } catch (e) {
2734
- n.error("error while parsing actor properties text", e);
2731
+ let e = c(n.text, h()), t = JSON.parse(e);
2732
+ this.insertProperties(r, t);
2733
+ } catch (t) {
2734
+ e.error("error while parsing actor properties text", t);
2735
2735
  }
2736
2736
  }
2737
2737
  insertProperties(e, t) {
@@ -2741,13 +2741,13 @@ var F = P, I = {
2741
2741
  boxEnd() {
2742
2742
  this.state.records.currentBox = void 0;
2743
2743
  }
2744
- addDetails(e, t) {
2745
- let r = this.getActor(e), i = document.getElementById(t.text);
2744
+ addDetails(t, n) {
2745
+ let r = this.getActor(t), i = document.getElementById(n.text);
2746
2746
  try {
2747
2747
  let e = i.innerHTML, t = JSON.parse(e);
2748
2748
  t.properties && this.insertProperties(r, t.properties), t.links && this.insertLinks(r, t.links);
2749
- } catch (e) {
2750
- n.error("error while parsing actor details text", e);
2749
+ } catch (t) {
2750
+ e.error("error while parsing actor details text", t);
2751
2751
  }
2752
2752
  }
2753
2753
  getActorProperty(e, t) {
@@ -2884,7 +2884,7 @@ var F = P, I = {
2884
2884
  getConfig() {
2885
2885
  return h().sequence;
2886
2886
  }
2887
- }, ie = /* @__PURE__ */ r((e) => `.actor {
2887
+ }, ie = /* @__PURE__ */ t((e) => `.actor {
2888
2888
  stroke: ${e.actorBorder};
2889
2889
  fill: ${e.actorBkg};
2890
2890
  }
@@ -3006,9 +3006,9 @@ var F = P, I = {
3006
3006
  stroke-width: 2px;
3007
3007
  }
3008
3008
 
3009
- `, "getStyles"), L = 36, R = "actor-top", z = "actor-bottom", ae = "actor-box", B = "actor-man", V = /* @__PURE__ */ r(function(e, t) {
3009
+ `, "getStyles"), L = 36, R = "actor-top", z = "actor-bottom", ae = "actor-box", B = "actor-man", V = /* @__PURE__ */ t(function(e, t) {
3010
3010
  return w(e, t);
3011
- }, "drawRect"), oe = /* @__PURE__ */ r(function(e, t, n, r, i) {
3011
+ }, "drawRect"), oe = /* @__PURE__ */ t(function(e, t, n, r, i) {
3012
3012
  if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3013
3013
  height: 0,
3014
3014
  width: 0
@@ -3032,9 +3032,9 @@ var F = P, I = {
3032
3032
  height: s.height + p,
3033
3033
  width: d
3034
3034
  };
3035
- }, "drawPopup"), H = /* @__PURE__ */ r(function(e) {
3035
+ }, "drawPopup"), H = /* @__PURE__ */ t(function(e) {
3036
3036
  return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3037
- }, "popupMenuToggle"), U = /* @__PURE__ */ r(async function(e, t, n = null) {
3037
+ }, "popupMenuToggle"), U = /* @__PURE__ */ t(async function(e, t, n = null) {
3038
3038
  let r = e.append("foreignObject"), i = await l(t.text, S()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3039
3039
  if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
3040
3040
  let n = e.node().firstChild;
@@ -3050,20 +3050,20 @@ var F = P, I = {
3050
3050
  r.attr("x", Math.round(e + Math.abs(e - i) / 2 - a.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(o)) : r.attr("y", Math.round(o - a.height));
3051
3051
  }
3052
3052
  return [r];
3053
- }, "drawKatex"), W = /* @__PURE__ */ r(function(t, n) {
3054
- let i = 0, a = 0, o = n.text.split(b.lineBreakRegex), [s, c] = e(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ r(() => n.y, "yfunc");
3053
+ }, "drawKatex"), W = /* @__PURE__ */ t(function(e, n) {
3054
+ let i = 0, a = 0, o = n.text.split(b.lineBreakRegex), [s, c] = r(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ t(() => n.y, "yfunc");
3055
3055
  if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3056
3056
  case "top":
3057
3057
  case "start":
3058
- d = /* @__PURE__ */ r(() => Math.round(n.y + n.textMargin), "yfunc");
3058
+ d = /* @__PURE__ */ t(() => Math.round(n.y + n.textMargin), "yfunc");
3059
3059
  break;
3060
3060
  case "middle":
3061
3061
  case "center":
3062
- d = /* @__PURE__ */ r(() => Math.round(n.y + (i + a + n.textMargin) / 2), "yfunc");
3062
+ d = /* @__PURE__ */ t(() => Math.round(n.y + (i + a + n.textMargin) / 2), "yfunc");
3063
3063
  break;
3064
3064
  case "bottom":
3065
3065
  case "end":
3066
- d = /* @__PURE__ */ r(() => Math.round(n.y + (i + a + 2 * n.textMargin) - n.textMargin), "yfunc");
3066
+ d = /* @__PURE__ */ t(() => Math.round(n.y + (i + a + 2 * n.textMargin) - n.textMargin), "yfunc");
3067
3067
  break;
3068
3068
  }
3069
3069
  if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
@@ -3080,9 +3080,9 @@ var F = P, I = {
3080
3080
  n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3081
3081
  break;
3082
3082
  }
3083
- for (let [e, r] of o.entries()) {
3084
- n.textMargin !== void 0 && n.textMargin === 0 && s !== void 0 && (u = e * s);
3085
- let o = t.append("text");
3083
+ for (let [t, r] of o.entries()) {
3084
+ n.textMargin !== void 0 && n.textMargin === 0 && s !== void 0 && (u = t * s);
3085
+ let o = e.append("text");
3086
3086
  o.attr("x", n.x), o.attr("y", d()), n.anchor !== void 0 && o.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && o.style("font-family", n.fontFamily), c !== void 0 && o.style("font-size", c), n.fontWeight !== void 0 && o.style("font-weight", n.fontWeight), n.fill !== void 0 && o.attr("fill", n.fill), n.class !== void 0 && o.attr("class", n.class), n.dy === void 0 ? u !== 0 && o.attr("dy", u) : o.attr("dy", n.dy);
3087
3087
  let f = r || "​";
3088
3088
  if (n.tspan) {
@@ -3092,19 +3092,19 @@ var F = P, I = {
3092
3092
  n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (a += (o._groups || o)[0][0].getBBox().height, i = a), l.push(o);
3093
3093
  }
3094
3094
  return l;
3095
- }, "drawText"), se = /* @__PURE__ */ r(function(e, t) {
3096
- function n(e, t, n, r, i) {
3095
+ }, "drawText"), se = /* @__PURE__ */ t(function(e, n) {
3096
+ function r(e, t, n, r, i) {
3097
3097
  return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
3098
3098
  }
3099
- r(n, "genPoints");
3099
+ t(r, "genPoints");
3100
3100
  let i = e.append("polygon");
3101
- return i.attr("points", n(t.x, t.y, t.width, t.height, 7)), i.attr("class", "labelBox"), t.y += t.height / 2, W(e, t), i;
3102
- }, "drawLabel"), G = -1, ce = /* @__PURE__ */ r((e, t, n, r) => {
3101
+ return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, W(e, n), i;
3102
+ }, "drawLabel"), G = -1, ce = /* @__PURE__ */ t((e, t, n, r) => {
3103
3103
  e.select && n.forEach((n) => {
3104
3104
  let i = t.get(n), a = e.select("#actor" + i.actorCnt);
3105
3105
  !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3106
3106
  });
3107
- }, "fixLifeLineHeights"), le = /* @__PURE__ */ r(function(e, t, n, r) {
3107
+ }, "fixLifeLineHeights"), le = /* @__PURE__ */ t(function(e, t, n, r) {
3108
3108
  let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
3109
3109
  var c = s;
3110
3110
  r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
@@ -3123,7 +3123,7 @@ var F = P, I = {
3123
3123
  t.height = e.height, f = e.height;
3124
3124
  }
3125
3125
  return f;
3126
- }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ r(function(e, t, n, r) {
3126
+ }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ t(function(e, t, n, r) {
3127
3127
  let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
3128
3128
  var c = s;
3129
3129
  r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
@@ -3147,7 +3147,7 @@ var F = P, I = {
3147
3147
  t.height = e.height, p = e.height;
3148
3148
  }
3149
3149
  return p;
3150
- }, "drawActorTypeCollections"), de = /* @__PURE__ */ r(function(e, t, n, r) {
3150
+ }, "drawActorTypeCollections"), de = /* @__PURE__ */ t(function(e, t, n, r) {
3151
3151
  let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower(), c = s;
3152
3152
  r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3153
3153
  let l = k(), u = "actor";
@@ -3170,7 +3170,7 @@ var F = P, I = {
3170
3170
  t.height = e.height, h = e.height;
3171
3171
  }
3172
3172
  return h;
3173
- }, "drawActorTypeQueue"), fe = /* @__PURE__ */ r(function(e, t, n, r) {
3173
+ }, "drawActorTypeQueue"), fe = /* @__PURE__ */ t(function(e, t, n, r) {
3174
3174
  let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 75, s = e.append("g").lower();
3175
3175
  r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
3176
3176
  let c = e.append("g"), l = B;
@@ -3179,14 +3179,14 @@ var F = P, I = {
3179
3179
  u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
3180
3180
  let d = t.x + t.width / 2, f = i + 32;
3181
3181
  return c.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2), c.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${d}, ${f - 22})`), t.height = c.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), J(n, v(t.description))(t.description, c, u.x, u.y + 22 + (r ? 5 : 12), u.width, u.height, { class: `actor ${B}` }, n), t.height;
3182
- }, "drawActorTypeControl"), pe = /* @__PURE__ */ r(function(e, t, n, r) {
3182
+ }, "drawActorTypeControl"), pe = /* @__PURE__ */ t(function(e, t, n, r) {
3183
3183
  let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 75, s = e.append("g").lower(), c = e.append("g"), l = "actor";
3184
3184
  r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3185
3185
  let u = k();
3186
3186
  u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
3187
3187
  let d = t.x + t.width / 2, f = i + (r ? 10 : 25);
3188
3188
  return c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("width", t.width).attr("height", t.height), c.append("line").attr("x1", d - 22).attr("x2", d + 22).attr("y1", f + 22).attr("y2", f + 22).attr("stroke-width", 2), t.height = c.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G), J(n, v(t.description))(t.description, c, u.x, u.y + (r ? 15 : 30), u.width, u.height, { class: `actor ${B}` }, n), r ? c.attr("transform", "translate(0, 22)") : c.attr("transform", `translate(0, ${22 / 2 - 5})`), t.height;
3189
- }, "drawActorTypeEntity"), me = /* @__PURE__ */ r(function(e, t, n, r) {
3189
+ }, "drawActorTypeEntity"), me = /* @__PURE__ */ t(function(e, t, n, r) {
3190
3190
  let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height + 2 * n.boxTextMargin, s = e.append("g").lower(), c = s;
3191
3191
  r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3192
3192
  let l = k(), u = "actor";
@@ -3202,14 +3202,14 @@ var F = P, I = {
3202
3202
  h.append("path").attr("d", g).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", u), h.attr("transform", `translate(${d}, ${m})`), t.rectData = l, J(n, v(t.description))(t.description, c, l.x, l.y + 35, l.width, l.height, { class: `actor ${ae}` }, n);
3203
3203
  let _ = h.select("path:last-child");
3204
3204
  return _.node() && (t.height = _.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), t.height;
3205
- }, "drawActorTypeDatabase"), he = /* @__PURE__ */ r(function(e, t, n, r) {
3205
+ }, "drawActorTypeDatabase"), he = /* @__PURE__ */ t(function(e, t, n, r) {
3206
3206
  let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
3207
3207
  r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
3208
3208
  let c = e.append("g"), l = B;
3209
3209
  r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3210
3210
  let u = k();
3211
3211
  return u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", c.append("line").attr("id", "actor-man-torso" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", i + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", i + 12), c.append("line").attr("id", "actor-man-arms" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", i + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", i + 22), c.append("circle").attr("cx", t.x + t.width / 2).attr("cy", i + 12).attr("r", 22), t.height = c.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), J(n, v(t.description))(t.description, c, u.x, u.y + 15, u.width, u.height, { class: `actor ${B}` }, n), c.attr("transform", "translate(0,21)"), t.height;
3212
- }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ r(function(e, t, n, r) {
3212
+ }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ t(function(e, t, n, r) {
3213
3213
  let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
3214
3214
  r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
3215
3215
  let c = e.append("g"), l = B;
@@ -3218,7 +3218,7 @@ var F = P, I = {
3218
3218
  u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", u.rx = 3, u.ry = 3, c.append("line").attr("id", "actor-man-torso" + G).attr("x1", a).attr("y1", i + 25).attr("x2", a).attr("y2", i + 45), c.append("line").attr("id", "actor-man-arms" + G).attr("x1", a - L / 2).attr("y1", i + 33).attr("x2", a + L / 2).attr("y2", i + 33), c.append("line").attr("x1", a - L / 2).attr("y1", i + 60).attr("x2", a).attr("y2", i + 45), c.append("line").attr("x1", a).attr("y1", i + 45).attr("x2", a + L / 2 - 2).attr("y2", i + 60);
3219
3219
  let d = c.append("circle");
3220
3220
  return d.attr("cx", t.x + t.width / 2), d.attr("cy", i + 10), d.attr("r", 15), d.attr("width", t.width), d.attr("height", t.height), t.height = c.node().getBBox().height, J(n, v(t.description))(t.description, c, u.x, u.y + 35, u.width, u.height, { class: `actor ${B}` }, n), t.height;
3221
- }, "drawActorTypeActor"), _e = /* @__PURE__ */ r(async function(e, t, n, r) {
3221
+ }, "drawActorTypeActor"), _e = /* @__PURE__ */ t(async function(e, t, n, r) {
3222
3222
  switch (t.type) {
3223
3223
  case "actor": return await ge(e, t, n, r);
3224
3224
  case "participant": return await le(e, t, n, r);
@@ -3229,49 +3229,49 @@ var F = P, I = {
3229
3229
  case "collections": return await ue(e, t, n, r);
3230
3230
  case "queue": return await de(e, t, n, r);
3231
3231
  }
3232
- }, "drawActor"), ve = /* @__PURE__ */ r(function(e, t, n) {
3232
+ }, "drawActor"), ve = /* @__PURE__ */ t(function(e, t, n) {
3233
3233
  let r = e.append("g");
3234
3234
  Se(r, t), t.name && J(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3235
- }, "drawBox"), ye = /* @__PURE__ */ r(function(e) {
3235
+ }, "drawBox"), ye = /* @__PURE__ */ t(function(e) {
3236
3236
  return e.append("g");
3237
- }, "anchorElement"), be = /* @__PURE__ */ r(function(e, t, n, r, i) {
3237
+ }, "anchorElement"), be = /* @__PURE__ */ t(function(e, t, n, r, i) {
3238
3238
  let a = k(), o = t.anchored;
3239
3239
  a.x = t.startx, a.y = t.starty, a.class = "activation" + i % 3, a.width = t.stopx - t.startx, a.height = n - t.starty, V(o, a);
3240
- }, "drawActivation"), xe = /* @__PURE__ */ r(async function(e, t, n, i) {
3241
- let { boxMargin: a, boxTextMargin: o, labelBoxHeight: s, labelBoxWidth: c, messageFontFamily: l, messageFontSize: u, messageFontWeight: d } = i, f = e.append("g"), p = /* @__PURE__ */ r(function(e, t, n, r) {
3240
+ }, "drawActivation"), xe = /* @__PURE__ */ t(async function(e, n, r, i) {
3241
+ let { boxMargin: a, boxTextMargin: o, labelBoxHeight: s, labelBoxWidth: c, messageFontFamily: l, messageFontSize: u, messageFontWeight: d } = i, f = e.append("g"), p = /* @__PURE__ */ t(function(e, t, n, r) {
3242
3242
  return f.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3243
3243
  }, "drawLoopLine");
3244
- p(t.startx, t.starty, t.stopx, t.starty), p(t.stopx, t.starty, t.stopx, t.stopy), p(t.startx, t.stopy, t.stopx, t.stopy), p(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(e) {
3245
- p(t.startx, e.y, t.stopx, e.y).style("stroke-dasharray", "3, 3");
3244
+ p(n.startx, n.starty, n.stopx, n.starty), p(n.stopx, n.starty, n.stopx, n.stopy), p(n.startx, n.stopy, n.stopx, n.stopy), p(n.startx, n.starty, n.startx, n.stopy), n.sections !== void 0 && n.sections.forEach(function(e) {
3245
+ p(n.startx, e.y, n.stopx, e.y).style("stroke-dasharray", "3, 3");
3246
3246
  });
3247
3247
  let m = T();
3248
- m.text = n, m.x = t.startx, m.y = t.starty, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.width = c || 50, m.height = s || 20, m.textMargin = o, m.class = "labelText", se(f, m), m = Oe(), m.text = t.title, m.x = t.startx + c / 2 + (t.stopx - t.startx) / 2, m.y = t.starty + a + o, m.anchor = "middle", m.valign = "middle", m.textMargin = o, m.class = "loopText", m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = !0;
3249
- let h = v(m.text) ? await U(f, m, t) : W(f, m);
3250
- if (t.sectionTitles !== void 0) {
3251
- for (let [e, n] of Object.entries(t.sectionTitles)) if (n.message) {
3252
- m.text = n.message, m.x = t.startx + (t.stopx - t.startx) / 2, m.y = t.sections[e].y + a + o, m.class = "loopText", m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = t.wrap, v(m.text) ? (t.starty = t.sections[e].y, await U(f, m, t)) : W(f, m);
3248
+ m.text = r, m.x = n.startx, m.y = n.starty, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.width = c || 50, m.height = s || 20, m.textMargin = o, m.class = "labelText", se(f, m), m = Oe(), m.text = n.title, m.x = n.startx + c / 2 + (n.stopx - n.startx) / 2, m.y = n.starty + a + o, m.anchor = "middle", m.valign = "middle", m.textMargin = o, m.class = "loopText", m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = !0;
3249
+ let h = v(m.text) ? await U(f, m, n) : W(f, m);
3250
+ if (n.sectionTitles !== void 0) {
3251
+ for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
3252
+ m.text = t.message, m.x = n.startx + (n.stopx - n.startx) / 2, m.y = n.sections[e].y + a + o, m.class = "loopText", m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = n.wrap, v(m.text) ? (n.starty = n.sections[e].y, await U(f, m, n)) : W(f, m);
3253
3253
  let r = Math.round(h.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3254
- t.sections[e].height += r - (a + o);
3254
+ n.sections[e].height += r - (a + o);
3255
3255
  }
3256
3256
  }
3257
- return t.height = Math.round(t.stopy - t.starty), f;
3258
- }, "drawLoop"), Se = /* @__PURE__ */ r(function(e, t) {
3257
+ return n.height = Math.round(n.stopy - n.starty), f;
3258
+ }, "drawLoop"), Se = /* @__PURE__ */ t(function(e, t) {
3259
3259
  D(e, t);
3260
- }, "drawBackgroundRect"), Ce = /* @__PURE__ */ r(function(e) {
3260
+ }, "drawBackgroundRect"), Ce = /* @__PURE__ */ t(function(e) {
3261
3261
  e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "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");
3262
- }, "insertDatabaseIcon"), we = /* @__PURE__ */ r(function(e) {
3262
+ }, "insertDatabaseIcon"), we = /* @__PURE__ */ t(function(e) {
3263
3263
  e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "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");
3264
- }, "insertComputerIcon"), K = /* @__PURE__ */ r(function(e) {
3264
+ }, "insertComputerIcon"), K = /* @__PURE__ */ t(function(e) {
3265
3265
  e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "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");
3266
- }, "insertClockIcon"), q = /* @__PURE__ */ r(function(e) {
3266
+ }, "insertClockIcon"), q = /* @__PURE__ */ t(function(e) {
3267
3267
  e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
3268
- }, "insertArrowHead"), Te = /* @__PURE__ */ r(function(e) {
3268
+ }, "insertArrowHead"), Te = /* @__PURE__ */ t(function(e) {
3269
3269
  e.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).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");
3270
- }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ r(function(e) {
3270
+ }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ t(function(e) {
3271
3271
  e.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
3272
- }, "insertSequenceNumber"), De = /* @__PURE__ */ r(function(e) {
3272
+ }, "insertSequenceNumber"), De = /* @__PURE__ */ t(function(e) {
3273
3273
  e.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
3274
- }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ r(function() {
3274
+ }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ t(function() {
3275
3275
  return {
3276
3276
  x: 0,
3277
3277
  y: 0,
@@ -3286,7 +3286,7 @@ var F = P, I = {
3286
3286
  tspan: !0,
3287
3287
  valign: void 0
3288
3288
  };
3289
- }, "getTextObj"), ke = /* @__PURE__ */ r(function() {
3289
+ }, "getTextObj"), ke = /* @__PURE__ */ t(function() {
3290
3290
  return {
3291
3291
  x: 0,
3292
3292
  y: 0,
@@ -3299,57 +3299,57 @@ var F = P, I = {
3299
3299
  ry: 0
3300
3300
  };
3301
3301
  }, "getNoteRect"), J = /* @__PURE__ */ (function() {
3302
- function t(e, t, n, r, i, a, s) {
3302
+ function e(e, t, n, r, i, a, s) {
3303
3303
  o(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), s);
3304
3304
  }
3305
- r(t, "byText");
3306
- function n(t, n, r, i, a, s, c, l) {
3307
- let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = e(u), h = t.split(b.lineBreakRegex);
3305
+ t(e, "byText");
3306
+ function n(e, t, n, i, a, s, c, l) {
3307
+ let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = r(u), h = e.split(b.lineBreakRegex);
3308
3308
  for (let e = 0; e < h.length; e++) {
3309
- let t = e * p - p * (h.length - 1) / 2, l = n.append("text").attr("x", r + a / 2).attr("y", i).style("text-anchor", "middle").style("font-size", m).style("font-weight", f).style("font-family", d);
3310
- l.append("tspan").attr("x", r + a / 2).attr("dy", t).text(h[e]), l.attr("y", i + s / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), o(l, c);
3309
+ let r = e * p - p * (h.length - 1) / 2, l = t.append("text").attr("x", n + a / 2).attr("y", i).style("text-anchor", "middle").style("font-size", m).style("font-weight", f).style("font-family", d);
3310
+ l.append("tspan").attr("x", n + a / 2).attr("dy", r).text(h[e]), l.attr("y", i + s / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), o(l, c);
3311
3311
  }
3312
3312
  }
3313
- r(n, "byTspan");
3313
+ t(n, "byTspan");
3314
3314
  function i(e, t, r, i, a, s, c, l) {
3315
3315
  let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3316
3316
  d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, s, c, l), o(d, c);
3317
3317
  }
3318
- r(i, "byFo");
3318
+ t(i, "byFo");
3319
3319
  async function a(e, t, r, i, a, s, c, u) {
3320
3320
  let d = await _(e, S()), f = t.append("switch"), p = f.append("foreignObject").attr("x", r + a / 2 - d.width / 2).attr("y", i + s / 2 - d.height / 2).attr("width", d.width).attr("height", d.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3321
3321
  p.append("div").style("text-align", "center").style("vertical-align", "middle").html(await l(e, S())), n(e, f, r, i, a, s, c, u), o(p, c);
3322
3322
  }
3323
- r(a, "byKatex");
3323
+ t(a, "byKatex");
3324
3324
  function o(e, t) {
3325
3325
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3326
3326
  }
3327
- return r(o, "_setTextAttrs"), function(e, r = !1) {
3328
- return r ? a : e.textPlacement === "fo" ? i : e.textPlacement === "old" ? t : n;
3327
+ return t(o, "_setTextAttrs"), function(t, r = !1) {
3328
+ return r ? a : t.textPlacement === "fo" ? i : t.textPlacement === "old" ? e : n;
3329
3329
  };
3330
3330
  })(), Ae = /* @__PURE__ */ (function() {
3331
3331
  function e(e, t, n, r, a, o, s) {
3332
3332
  i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
3333
3333
  }
3334
- r(e, "byText");
3335
- function t(e, t, n, r, a, o, s, c) {
3334
+ t(e, "byText");
3335
+ function n(e, t, n, r, a, o, s, c) {
3336
3336
  let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(b.lineBreakRegex);
3337
3337
  for (let e = 0; e < f.length; e++) {
3338
3338
  let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
3339
3339
  c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(c, s);
3340
3340
  }
3341
3341
  }
3342
- r(t, "byTspan");
3343
- function n(e, n, r, a, o, s, c, l) {
3344
- let u = n.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3345
- d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, r, a, o, s, c, l), i(d, c);
3342
+ t(n, "byTspan");
3343
+ function r(e, t, r, a, o, s, c, l) {
3344
+ let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3345
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
3346
3346
  }
3347
- r(n, "byFo");
3347
+ t(r, "byFo");
3348
3348
  function i(e, t) {
3349
3349
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3350
3350
  }
3351
- return r(i, "_setTextAttrs"), function(r) {
3352
- return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
3351
+ return t(i, "_setTextAttrs"), function(t) {
3352
+ return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
3353
3353
  };
3354
3354
  })(), Y = {
3355
3355
  drawRect: V,
@@ -3373,16 +3373,16 @@ var F = P, I = {
3373
3373
  getNoteRect: ke,
3374
3374
  fixLifeLineHeights: ce,
3375
3375
  sanitizeUrl: N.sanitizeUrl,
3376
- insertSolidTopArrowHead: /* @__PURE__ */ r(function(e) {
3376
+ insertSolidTopArrowHead: /* @__PURE__ */ t(function(e) {
3377
3377
  e.append("defs").append("marker").attr("id", "solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
3378
3378
  }, "insertSolidTopArrowHead"),
3379
- insertSolidBottomArrowHead: /* @__PURE__ */ r(function(e) {
3379
+ insertSolidBottomArrowHead: /* @__PURE__ */ t(function(e) {
3380
3380
  e.append("defs").append("marker").attr("id", "solidBottomArrowHead").attr("refX", 7.9).attr("refY", .75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
3381
3381
  }, "insertSolidBottomArrowHead"),
3382
- insertStickTopArrowHead: /* @__PURE__ */ r(function(e) {
3382
+ insertStickTopArrowHead: /* @__PURE__ */ t(function(e) {
3383
3383
  e.append("defs").append("marker").attr("id", "stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3384
3384
  }, "insertStickTopArrowHead"),
3385
- insertStickBottomArrowHead: /* @__PURE__ */ r(function(e) {
3385
+ insertStickBottomArrowHead: /* @__PURE__ */ t(function(e) {
3386
3386
  e.append("defs").append("marker").attr("id", "stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3387
3387
  }, "insertStickBottomArrowHead")
3388
3388
  }, X = {}, Z = {
@@ -3396,37 +3396,37 @@ var F = P, I = {
3396
3396
  sequenceItems: [],
3397
3397
  activations: [],
3398
3398
  models: {
3399
- getHeight: /* @__PURE__ */ r(function() {
3399
+ getHeight: /* @__PURE__ */ t(function() {
3400
3400
  return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
3401
3401
  }, "getHeight"),
3402
- clear: /* @__PURE__ */ r(function() {
3402
+ clear: /* @__PURE__ */ t(function() {
3403
3403
  this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3404
3404
  }, "clear"),
3405
- addBox: /* @__PURE__ */ r(function(e) {
3405
+ addBox: /* @__PURE__ */ t(function(e) {
3406
3406
  this.boxes.push(e);
3407
3407
  }, "addBox"),
3408
- addActor: /* @__PURE__ */ r(function(e) {
3408
+ addActor: /* @__PURE__ */ t(function(e) {
3409
3409
  this.actors.push(e);
3410
3410
  }, "addActor"),
3411
- addLoop: /* @__PURE__ */ r(function(e) {
3411
+ addLoop: /* @__PURE__ */ t(function(e) {
3412
3412
  this.loops.push(e);
3413
3413
  }, "addLoop"),
3414
- addMessage: /* @__PURE__ */ r(function(e) {
3414
+ addMessage: /* @__PURE__ */ t(function(e) {
3415
3415
  this.messages.push(e);
3416
3416
  }, "addMessage"),
3417
- addNote: /* @__PURE__ */ r(function(e) {
3417
+ addNote: /* @__PURE__ */ t(function(e) {
3418
3418
  this.notes.push(e);
3419
3419
  }, "addNote"),
3420
- lastActor: /* @__PURE__ */ r(function() {
3420
+ lastActor: /* @__PURE__ */ t(function() {
3421
3421
  return this.actors[this.actors.length - 1];
3422
3422
  }, "lastActor"),
3423
- lastLoop: /* @__PURE__ */ r(function() {
3423
+ lastLoop: /* @__PURE__ */ t(function() {
3424
3424
  return this.loops[this.loops.length - 1];
3425
3425
  }, "lastLoop"),
3426
- lastMessage: /* @__PURE__ */ r(function() {
3426
+ lastMessage: /* @__PURE__ */ t(function() {
3427
3427
  return this.messages[this.messages.length - 1];
3428
3428
  }, "lastMessage"),
3429
- lastNote: /* @__PURE__ */ r(function() {
3429
+ lastNote: /* @__PURE__ */ t(function() {
3430
3430
  return this.notes[this.notes.length - 1];
3431
3431
  }, "lastNote"),
3432
3432
  actors: [],
@@ -3435,7 +3435,7 @@ var F = P, I = {
3435
3435
  messages: [],
3436
3436
  notes: []
3437
3437
  },
3438
- init: /* @__PURE__ */ r(function() {
3438
+ init: /* @__PURE__ */ t(function() {
3439
3439
  this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3440
3440
  startx: void 0,
3441
3441
  stopx: void 0,
@@ -3443,25 +3443,25 @@ var F = P, I = {
3443
3443
  stopy: void 0
3444
3444
  }, this.verticalPos = 0, Be(h());
3445
3445
  }, "init"),
3446
- updateVal: /* @__PURE__ */ r(function(e, t, n, r) {
3446
+ updateVal: /* @__PURE__ */ t(function(e, t, n, r) {
3447
3447
  e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
3448
3448
  }, "updateVal"),
3449
- updateBounds: /* @__PURE__ */ r(function(e, t, n, i) {
3449
+ updateBounds: /* @__PURE__ */ t(function(e, n, r, i) {
3450
3450
  let a = this, o = 0;
3451
3451
  function s(s) {
3452
- return /* @__PURE__ */ r(function(r) {
3452
+ return /* @__PURE__ */ t(function(t) {
3453
3453
  o++;
3454
3454
  let c = a.sequenceItems.length - o + 1;
3455
- a.updateVal(r, "starty", t - c * X.boxMargin, Math.min), a.updateVal(r, "stopy", i + c * X.boxMargin, Math.max), a.updateVal(Z.data, "startx", e - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopx", n + c * X.boxMargin, Math.max), s !== "activation" && (a.updateVal(r, "startx", e - c * X.boxMargin, Math.min), a.updateVal(r, "stopx", n + c * X.boxMargin, Math.max), a.updateVal(Z.data, "starty", t - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopy", i + c * X.boxMargin, Math.max));
3455
+ a.updateVal(t, "starty", n - c * X.boxMargin, Math.min), a.updateVal(t, "stopy", i + c * X.boxMargin, Math.max), a.updateVal(Z.data, "startx", e - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopx", r + c * X.boxMargin, Math.max), s !== "activation" && (a.updateVal(t, "startx", e - c * X.boxMargin, Math.min), a.updateVal(t, "stopx", r + c * X.boxMargin, Math.max), a.updateVal(Z.data, "starty", n - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopy", i + c * X.boxMargin, Math.max));
3456
3456
  }, "updateItemBounds");
3457
3457
  }
3458
- r(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3458
+ t(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3459
3459
  }, "updateBounds"),
3460
- insert: /* @__PURE__ */ r(function(e, t, n, r) {
3460
+ insert: /* @__PURE__ */ t(function(e, t, n, r) {
3461
3461
  let i = b.getMin(e, n), a = b.getMax(e, n), o = b.getMin(t, r), s = b.getMax(t, r);
3462
3462
  this.updateVal(Z.data, "startx", i, Math.min), this.updateVal(Z.data, "starty", o, Math.min), this.updateVal(Z.data, "stopx", a, Math.max), this.updateVal(Z.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
3463
3463
  }, "insert"),
3464
- newActivation: /* @__PURE__ */ r(function(e, t, n) {
3464
+ newActivation: /* @__PURE__ */ t(function(e, t, n) {
3465
3465
  let r = n.get(e.from), i = Ve(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * X.activationWidth / 2;
3466
3466
  this.activations.push({
3467
3467
  startx: a,
@@ -3472,13 +3472,13 @@ var F = P, I = {
3472
3472
  anchored: Y.anchorElement(t)
3473
3473
  });
3474
3474
  }, "newActivation"),
3475
- endActivation: /* @__PURE__ */ r(function(e) {
3475
+ endActivation: /* @__PURE__ */ t(function(e) {
3476
3476
  let t = this.activations.map(function(e) {
3477
3477
  return e.actor;
3478
3478
  }).lastIndexOf(e.from);
3479
3479
  return this.activations.splice(t, 1)[0];
3480
3480
  }, "endActivation"),
3481
- createLoop: /* @__PURE__ */ r(function(e = {
3481
+ createLoop: /* @__PURE__ */ t(function(e = {
3482
3482
  message: void 0,
3483
3483
  wrap: !1,
3484
3484
  width: void 0
@@ -3495,45 +3495,45 @@ var F = P, I = {
3495
3495
  fill: t
3496
3496
  };
3497
3497
  }, "createLoop"),
3498
- newLoop: /* @__PURE__ */ r(function(e = {
3498
+ newLoop: /* @__PURE__ */ t(function(e = {
3499
3499
  message: void 0,
3500
3500
  wrap: !1,
3501
3501
  width: void 0
3502
3502
  }, t) {
3503
3503
  this.sequenceItems.push(this.createLoop(e, t));
3504
3504
  }, "newLoop"),
3505
- endLoop: /* @__PURE__ */ r(function() {
3505
+ endLoop: /* @__PURE__ */ t(function() {
3506
3506
  return this.sequenceItems.pop();
3507
3507
  }, "endLoop"),
3508
- isLoopOverlap: /* @__PURE__ */ r(function() {
3508
+ isLoopOverlap: /* @__PURE__ */ t(function() {
3509
3509
  return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3510
3510
  }, "isLoopOverlap"),
3511
- addSectionToLoop: /* @__PURE__ */ r(function(e) {
3511
+ addSectionToLoop: /* @__PURE__ */ t(function(e) {
3512
3512
  let t = this.sequenceItems.pop();
3513
3513
  t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3514
3514
  y: Z.getVerticalPos(),
3515
3515
  height: 0
3516
3516
  }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3517
3517
  }, "addSectionToLoop"),
3518
- saveVerticalPos: /* @__PURE__ */ r(function() {
3518
+ saveVerticalPos: /* @__PURE__ */ t(function() {
3519
3519
  this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3520
3520
  }, "saveVerticalPos"),
3521
- resetVerticalPos: /* @__PURE__ */ r(function() {
3521
+ resetVerticalPos: /* @__PURE__ */ t(function() {
3522
3522
  this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3523
3523
  }, "resetVerticalPos"),
3524
- bumpVerticalPos: /* @__PURE__ */ r(function(e) {
3524
+ bumpVerticalPos: /* @__PURE__ */ t(function(e) {
3525
3525
  this.verticalPos += e, this.data.stopy = b.getMax(this.data.stopy, this.verticalPos);
3526
3526
  }, "bumpVerticalPos"),
3527
- getVerticalPos: /* @__PURE__ */ r(function() {
3527
+ getVerticalPos: /* @__PURE__ */ t(function() {
3528
3528
  return this.verticalPos;
3529
3529
  }, "getVerticalPos"),
3530
- getBounds: /* @__PURE__ */ r(function() {
3530
+ getBounds: /* @__PURE__ */ t(function() {
3531
3531
  return {
3532
3532
  bounds: this.data,
3533
3533
  models: this.models
3534
3534
  };
3535
3535
  }, "getBounds")
3536
- }, je = /* @__PURE__ */ r(async function(e, t) {
3536
+ }, je = /* @__PURE__ */ t(async function(e, t) {
3537
3537
  Z.bumpVerticalPos(X.boxMargin), t.height = X.boxMargin, t.starty = Z.getVerticalPos();
3538
3538
  let n = k();
3539
3539
  n.x = t.startx, n.y = t.starty, n.width = t.width || X.width, n.class = "note";
@@ -3541,14 +3541,14 @@ var F = P, I = {
3541
3541
  a.x = t.startx, a.y = t.starty, a.width = n.width, a.dy = "1em", a.text = t.message, a.class = "noteText", a.fontFamily = X.noteFontFamily, a.fontSize = X.noteFontSize, a.fontWeight = X.noteFontWeight, a.anchor = X.noteAlign, a.textMargin = X.noteMargin, a.valign = "center";
3542
3542
  let o = v(a.text) ? await U(r, a) : W(r, a), s = Math.round(o.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3543
3543
  i.attr("height", s + 2 * X.noteMargin), t.height += s + 2 * X.noteMargin, Z.bumpVerticalPos(s + 2 * X.noteMargin), t.stopy = t.starty + s + 2 * X.noteMargin, t.stopx = t.startx + n.width, Z.insert(t.startx, t.starty, t.stopx, t.stopy), Z.models.addNote(t);
3544
- }, "drawNote"), Me = /* @__PURE__ */ r(function(e, t, n, i, a, o, s) {
3545
- let c = i.db.getActors(), l = c.get(t.from), u = c.get(t.to), d = n.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = $e(t, i), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ r((e, t) => {
3544
+ }, "drawNote"), Me = /* @__PURE__ */ t(function(e, n, r, i, a, o, s) {
3545
+ let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = $e(n, i), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ t((e, t) => {
3546
3546
  let n = e ? _ : -_;
3547
3547
  return t ? -n : n;
3548
- }, "getCircleOffset"), y = /* @__PURE__ */ r((e) => {
3548
+ }, "getCircleOffset"), y = /* @__PURE__ */ t((e) => {
3549
3549
  g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3550
3550
  }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
3551
- if (d) switch (t.centralConnection) {
3551
+ if (d) switch (n.centralConnection) {
3552
3552
  case b:
3553
3553
  h && (p += v(m, !0));
3554
3554
  break;
@@ -3559,7 +3559,7 @@ var F = P, I = {
3559
3559
  h ? p += v(m, !0) : f += v(m, !1);
3560
3560
  break;
3561
3561
  }
3562
- switch (t.centralConnection) {
3562
+ switch (n.centralConnection) {
3563
3563
  case b:
3564
3564
  y(p);
3565
3565
  break;
@@ -3570,63 +3570,63 @@ var F = P, I = {
3570
3570
  y(f), y(p);
3571
3571
  break;
3572
3572
  }
3573
- }, "drawCentralConnection"), Q = /* @__PURE__ */ r((e) => ({
3573
+ }, "drawCentralConnection"), Q = /* @__PURE__ */ t((e) => ({
3574
3574
  fontFamily: e.messageFontFamily,
3575
3575
  fontSize: e.messageFontSize,
3576
3576
  fontWeight: e.messageFontWeight
3577
- }), "messageFont"), Ne = /* @__PURE__ */ r((e) => ({
3577
+ }), "messageFont"), Ne = /* @__PURE__ */ t((e) => ({
3578
3578
  fontFamily: e.noteFontFamily,
3579
3579
  fontSize: e.noteFontSize,
3580
3580
  fontWeight: e.noteFontWeight
3581
- }), "noteFont"), Pe = /* @__PURE__ */ r((e) => ({
3581
+ }), "noteFont"), Pe = /* @__PURE__ */ t((e) => ({
3582
3582
  fontFamily: e.actorFontFamily,
3583
3583
  fontSize: e.actorFontSize,
3584
3584
  fontWeight: e.actorFontWeight
3585
3585
  }), "actorFont");
3586
- async function Fe(e, n) {
3586
+ async function Fe(e, t) {
3587
3587
  Z.bumpVerticalPos(10);
3588
- let { startx: r, stopx: i, message: a } = n, o = b.splitBreaks(a).length, s = v(a), c = s ? await _(a, h()) : t.calculateTextDimensions(a, Q(X));
3588
+ let { startx: n, stopx: r, message: a } = t, o = b.splitBreaks(a).length, s = v(a), c = s ? await _(a, h()) : i.calculateTextDimensions(a, Q(X));
3589
3589
  if (!s) {
3590
3590
  let e = c.height / o;
3591
- n.height += e, Z.bumpVerticalPos(e);
3591
+ t.height += e, Z.bumpVerticalPos(e);
3592
3592
  }
3593
3593
  let l, u = c.height - 10, d = c.width;
3594
- if (r === i) {
3594
+ if (n === r) {
3595
3595
  l = Z.getVerticalPos() + u, X.rightAngles || (u += X.boxMargin, l = Z.getVerticalPos() + u), u += 30;
3596
3596
  let e = b.getMax(d / 2, X.width / 2);
3597
- Z.insert(r - e, Z.getVerticalPos() - 10 + u, i + e, Z.getVerticalPos() + 30 + u);
3598
- } else u += X.boxMargin, l = Z.getVerticalPos() + u, Z.insert(r, l - 10, i, l);
3599
- return Z.bumpVerticalPos(u), n.height += u, n.stopy = n.starty + n.height, Z.insert(n.fromBounds, n.starty, n.toBounds, n.stopy), l;
3597
+ Z.insert(n - e, Z.getVerticalPos() - 10 + u, r + e, Z.getVerticalPos() + 30 + u);
3598
+ } else u += X.boxMargin, l = Z.getVerticalPos() + u, Z.insert(n, l - 10, r, l);
3599
+ return Z.bumpVerticalPos(u), t.height += u, t.stopy = t.starty + t.height, Z.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), l;
3600
3600
  }
3601
- r(Fe, "boundMessage");
3602
- var Ie = /* @__PURE__ */ r(async function(e, n, r, i, a) {
3603
- let { startx: o, stopx: c, starty: l, message: u, type: d, sequenceIndex: f, sequenceVisible: p } = n, m = t.calculateTextDimensions(u, Q(X)), h = T();
3601
+ t(Fe, "boundMessage");
3602
+ var Ie = /* @__PURE__ */ t(async function(e, t, n, r, a) {
3603
+ let { startx: o, stopx: c, starty: l, message: u, type: d, sequenceIndex: f, sequenceVisible: p } = t, m = i.calculateTextDimensions(u, Q(X)), h = T();
3604
3604
  h.x = o, h.y = l + 10, h.width = c - o, h.class = "messageText", h.dy = "1em", h.text = u, h.fontFamily = X.messageFontFamily, h.fontSize = X.messageFontSize, h.fontWeight = X.messageFontWeight, h.anchor = X.messageAlign, h.valign = "center", h.textMargin = X.wrapPadding, h.tspan = !1, v(h.text) ? await U(e, h, {
3605
3605
  startx: o,
3606
3606
  stopx: c,
3607
- starty: r
3607
+ starty: n
3608
3608
  }) : W(e, h);
3609
3609
  let g = m.width, _;
3610
3610
  if (o === c) {
3611
- let t = p || X.showSequenceNumbers, n = $e(a, i), s = et(a, i), c = o + (t && (n || s) ? 10 : 0);
3612
- _ = X.rightAngles ? e.append("path").attr("d", `M ${c},${r} H ${o + b.getMax(X.width / 2, g / 2)} V ${r + 25} H ${o}`) : e.append("path").attr("d", "M " + c + "," + r + " C " + (c + 60) + "," + (r - 10) + " " + (o + 60) + "," + (r + 30) + " " + o + "," + (r + 20));
3613
- } else _ = e.append("line"), _.attr("x1", o), _.attr("y1", r), _.attr("x2", c), _.attr("y2", r), Ze(a, i) && Me(e, a, n, i, o, c, r);
3614
- d === i.db.LINETYPE.DOTTED || d === i.db.LINETYPE.DOTTED_CROSS || d === i.db.LINETYPE.DOTTED_POINT || d === i.db.LINETYPE.DOTTED_OPEN || d === i.db.LINETYPE.BIDIRECTIONAL_DOTTED || d === i.db.LINETYPE.SOLID_TOP_DOTTED || d === i.db.LINETYPE.SOLID_BOTTOM_DOTTED || d === i.db.LINETYPE.STICK_TOP_DOTTED || d === i.db.LINETYPE.STICK_BOTTOM_DOTTED || d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (_.style("stroke-dasharray", "3, 3"), _.attr("class", "messageLine1")) : _.attr("class", "messageLine0");
3611
+ let t = p || X.showSequenceNumbers, i = $e(a, r), s = et(a, r), c = o + (t && (i || s) ? 10 : 0);
3612
+ _ = X.rightAngles ? e.append("path").attr("d", `M ${c},${n} H ${o + b.getMax(X.width / 2, g / 2)} V ${n + 25} H ${o}`) : e.append("path").attr("d", "M " + c + "," + n + " C " + (c + 60) + "," + (n - 10) + " " + (o + 60) + "," + (n + 30) + " " + o + "," + (n + 20));
3613
+ } else _ = e.append("line"), _.attr("x1", o), _.attr("y1", n), _.attr("x2", c), _.attr("y2", n), Ze(a, r) && Me(e, a, t, r, o, c, n);
3614
+ d === r.db.LINETYPE.DOTTED || d === r.db.LINETYPE.DOTTED_CROSS || d === r.db.LINETYPE.DOTTED_POINT || d === r.db.LINETYPE.DOTTED_OPEN || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || d === r.db.LINETYPE.SOLID_TOP_DOTTED || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || d === r.db.LINETYPE.STICK_TOP_DOTTED || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (_.style("stroke-dasharray", "3, 3"), _.attr("class", "messageLine1")) : _.attr("class", "messageLine0");
3615
3615
  let y = "";
3616
- if (X.arrowMarkerAbsolute && (y = s(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (d === i.db.LINETYPE.SOLID_TOP || d === i.db.LINETYPE.SOLID_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#solidTopArrowHead)"), (d === i.db.LINETYPE.SOLID_BOTTOM || d === i.db.LINETYPE.SOLID_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#solidBottomArrowHead)"), (d === i.db.LINETYPE.STICK_TOP || d === i.db.LINETYPE.STICK_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#stickTopArrowHead)"), (d === i.db.LINETYPE.STICK_BOTTOM || d === i.db.LINETYPE.STICK_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#stickBottomArrowHead)"), (d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidBottomArrowHead)"), (d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidTopArrowHead)"), (d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickBottomArrowHead)"), (d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickTopArrowHead)"), (d === i.db.LINETYPE.SOLID || d === i.db.LINETYPE.DOTTED) && _.attr("marker-end", "url(" + y + "#arrowhead)"), (d === i.db.LINETYPE.BIDIRECTIONAL_SOLID || d === i.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (_.attr("marker-start", "url(" + y + "#arrowhead)"), _.attr("marker-end", "url(" + y + "#arrowhead)")), (d === i.db.LINETYPE.SOLID_POINT || d === i.db.LINETYPE.DOTTED_POINT) && _.attr("marker-end", "url(" + y + "#filled-head)"), (d === i.db.LINETYPE.SOLID_CROSS || d === i.db.LINETYPE.DOTTED_CROSS) && _.attr("marker-end", "url(" + y + "#crosshead)"), p || X.showSequenceNumbers) {
3617
- let t = d === i.db.LINETYPE.BIDIRECTIONAL_SOLID || d === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, s = d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, l = Ze(a, i), u = o, p = c;
3618
- t ? (o < c ? u = o + 12 : (u = o - 6 + (l ? -5 : 0), u += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), _.attr("x1", u)) : s ? (c > o ? p = c - 12 : (p = c - 6, u += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += l ? 15 : 0, _.attr("x2", p), _.attr("x1", u)) : _.attr("x1", o + 6);
3616
+ if (X.arrowMarkerAbsolute && (y = s(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (d === r.db.LINETYPE.SOLID_TOP || d === r.db.LINETYPE.SOLID_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#solidTopArrowHead)"), (d === r.db.LINETYPE.SOLID_BOTTOM || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#solidBottomArrowHead)"), (d === r.db.LINETYPE.STICK_TOP || d === r.db.LINETYPE.STICK_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#stickTopArrowHead)"), (d === r.db.LINETYPE.STICK_BOTTOM || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#stickBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidTopArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickBottomArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickTopArrowHead)"), (d === r.db.LINETYPE.SOLID || d === r.db.LINETYPE.DOTTED) && _.attr("marker-end", "url(" + y + "#arrowhead)"), (d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (_.attr("marker-start", "url(" + y + "#arrowhead)"), _.attr("marker-end", "url(" + y + "#arrowhead)")), (d === r.db.LINETYPE.SOLID_POINT || d === r.db.LINETYPE.DOTTED_POINT) && _.attr("marker-end", "url(" + y + "#filled-head)"), (d === r.db.LINETYPE.SOLID_CROSS || d === r.db.LINETYPE.DOTTED_CROSS) && _.attr("marker-end", "url(" + y + "#crosshead)"), p || X.showSequenceNumbers) {
3617
+ let i = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, s = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, l = Ze(a, r), u = o, p = c;
3618
+ i ? (o < c ? u = o + 12 : (u = o - 6 + (l ? -5 : 0), u += a?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), _.attr("x1", u)) : s ? (c > o ? p = c - 12 : (p = c - 6, u += a?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += l ? 15 : 0, _.attr("x2", p), _.attr("x1", u)) : _.attr("x1", o + 6);
3619
3619
  let m = 0, h = o === c, g = o <= c;
3620
- m = h ? n.fromBounds + 1 : s ? g ? n.toBounds - 1 : n.fromBounds + 1 : g ? n.fromBounds + 1 : n.toBounds - 1, e.append("line").attr("x1", m).attr("y1", r).attr("x2", m).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + y + "#sequencenumber)"), e.append("text").attr("x", m).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(f);
3620
+ m = h ? t.fromBounds + 1 : s ? g ? t.toBounds - 1 : t.fromBounds + 1 : g ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", m).attr("y1", n).attr("x2", m).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + y + "#sequencenumber)"), e.append("text").attr("x", m).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(f);
3621
3621
  }
3622
- }, "drawMessage"), Le = /* @__PURE__ */ r(function(e, t, n, r, i, a, o) {
3622
+ }, "drawMessage"), Le = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
3623
3623
  let s = 0, c = 0, l, u = 0;
3624
3624
  for (let e of r) {
3625
3625
  let r = t.get(e), a = r.box;
3626
3626
  l && l != a && (o || Z.models.addBox(l), c += X.boxMargin + l.margin), a && a != l && (o || (a.x = s + c, a.y = i), c += a.margin), r.width = r.width || X.width, r.height = b.getMax(r.height || X.height, X.height), r.margin = r.margin || X.actorMargin, u = b.getMax(u, r.height), n.get(r.name) && (c += r.width / 2), r.x = s + c, r.starty = Z.getVerticalPos(), Z.insert(r.x, i, r.x + r.width, r.height), s += r.width + c, r.box && (r.box.width = s + a.margin - r.box.x), c = r.margin, l = r.box, Z.models.addActor(r);
3627
3627
  }
3628
3628
  l && !o && Z.models.addBox(l), Z.bumpVerticalPos(u);
3629
- }, "addActorRenderingData"), Re = /* @__PURE__ */ r(async function(e, t, n, r) {
3629
+ }, "addActorRenderingData"), Re = /* @__PURE__ */ t(async function(e, t, n, r) {
3630
3630
  if (r) {
3631
3631
  let r = 0;
3632
3632
  Z.bumpVerticalPos(X.boxMargin * 2);
@@ -3641,7 +3641,7 @@ var Ie = /* @__PURE__ */ r(async function(e, n, r, i, a) {
3641
3641
  let n = t.get(r);
3642
3642
  await Y.drawActor(e, n, X, !1);
3643
3643
  }
3644
- }, "drawActors"), ze = /* @__PURE__ */ r(function(e, t, n, r) {
3644
+ }, "drawActors"), ze = /* @__PURE__ */ t(function(e, t, n, r) {
3645
3645
  let i = 0, a = 0;
3646
3646
  for (let o of n) {
3647
3647
  let n = t.get(o), s = Ke(n), c = Y.drawPopup(e, n, s, X, X.forceMenus, r);
@@ -3651,13 +3651,13 @@ var Ie = /* @__PURE__ */ r(async function(e, n, r, i, a) {
3651
3651
  maxHeight: i,
3652
3652
  maxWidth: a
3653
3653
  };
3654
- }, "drawActorsPopup"), Be = /* @__PURE__ */ r(function(e) {
3654
+ }, "drawActorsPopup"), Be = /* @__PURE__ */ t(function(e) {
3655
3655
  y(X, e), e.fontFamily && (X.actorFontFamily = X.noteFontFamily = X.messageFontFamily = e.fontFamily), e.fontSize && (X.actorFontSize = X.noteFontSize = X.messageFontSize = e.fontSize), e.fontWeight && (X.actorFontWeight = X.noteFontWeight = X.messageFontWeight = e.fontWeight);
3656
- }, "setConf"), Ve = /* @__PURE__ */ r(function(e) {
3656
+ }, "setConf"), Ve = /* @__PURE__ */ t(function(e) {
3657
3657
  return Z.activations.filter(function(t) {
3658
3658
  return t.actor === e;
3659
3659
  });
3660
- }, "actorActivations"), He = /* @__PURE__ */ r(function(e, t) {
3660
+ }, "actorActivations"), He = /* @__PURE__ */ t(function(e, t) {
3661
3661
  let n = t.get(e), r = Ve(e);
3662
3662
  return [r.reduce(function(e, t) {
3663
3663
  return b.getMin(e, t.startx);
@@ -3665,27 +3665,27 @@ var Ie = /* @__PURE__ */ r(async function(e, n, r, i, a) {
3665
3665
  return b.getMax(e, t.stopx);
3666
3666
  }, n.x + n.width / 2 + 1)];
3667
3667
  }, "activationBounds");
3668
- function $(e, r, i, a, o) {
3669
- Z.bumpVerticalPos(i);
3668
+ function $(t, n, r, a, o) {
3669
+ Z.bumpVerticalPos(r);
3670
3670
  let s = a;
3671
- if (r.id && r.message && e[r.id]) {
3672
- let i = e[r.id].width, o = Q(X);
3673
- r.message = t.wrapLabel(`[${r.message}]`, i - 2 * X.wrapPadding, o), r.width = i, r.wrap = !0;
3674
- let c = t.calculateTextDimensions(r.message, o), l = b.getMax(c.height, X.labelBoxHeight);
3675
- s = a + l, n.debug(`${l} - ${r.message}`);
3671
+ if (n.id && n.message && t[n.id]) {
3672
+ let r = t[n.id].width, o = Q(X);
3673
+ n.message = i.wrapLabel(`[${n.message}]`, r - 2 * X.wrapPadding, o), n.width = r, n.wrap = !0;
3674
+ let c = i.calculateTextDimensions(n.message, o), l = b.getMax(c.height, X.labelBoxHeight);
3675
+ s = a + l, e.debug(`${l} - ${n.message}`);
3676
3676
  }
3677
- o(r), Z.bumpVerticalPos(s);
3677
+ o(n), Z.bumpVerticalPos(s);
3678
3678
  }
3679
- r($, "adjustLoopHeightForWrap");
3680
- function Ue(e, t, n, i, a, o, s) {
3681
- function c(n, r) {
3682
- n.x < a.get(e.from).x ? (Z.insert(t.stopx - r, t.starty, t.startx, t.stopy + n.height / 2 + X.noteMargin), t.stopx += r) : (Z.insert(t.startx, t.starty, t.stopx + r, t.stopy + n.height / 2 + X.noteMargin), t.stopx -= r);
3679
+ t($, "adjustLoopHeightForWrap");
3680
+ function Ue(e, n, r, i, a, o, s) {
3681
+ function c(t, r) {
3682
+ t.x < a.get(e.from).x ? (Z.insert(n.stopx - r, n.starty, n.startx, n.stopy + t.height / 2 + X.noteMargin), n.stopx += r) : (Z.insert(n.startx, n.starty, n.stopx + r, n.stopy + t.height / 2 + X.noteMargin), n.stopx -= r);
3683
3683
  }
3684
- r(c, "receiverAdjustment");
3685
- function l(n, r) {
3686
- n.x < a.get(e.to).x ? (Z.insert(t.startx - r, t.starty, t.stopx, t.stopy + n.height / 2 + X.noteMargin), t.startx += r) : (Z.insert(t.stopx, t.starty, t.startx + r, t.stopy + n.height / 2 + X.noteMargin), t.startx -= r);
3684
+ t(c, "receiverAdjustment");
3685
+ function l(t, r) {
3686
+ t.x < a.get(e.to).x ? (Z.insert(n.startx - r, n.starty, n.stopx, n.stopy + t.height / 2 + X.noteMargin), n.startx += r) : (Z.insert(n.stopx, n.starty, n.startx + r, n.stopy + t.height / 2 + X.noteMargin), n.startx -= r);
3687
3687
  }
3688
- r(l, "senderAdjustment");
3688
+ t(l, "senderAdjustment");
3689
3689
  let u = [
3690
3690
  ne.ACTOR,
3691
3691
  ne.CONTROL,
@@ -3694,24 +3694,24 @@ function Ue(e, t, n, i, a, o, s) {
3694
3694
  ];
3695
3695
  if (o.get(e.to) == i) {
3696
3696
  let t = a.get(e.to);
3697
- c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.starty = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3697
+ c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.starty = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3698
3698
  } else if (s.get(e.from) == i) {
3699
3699
  let t = a.get(e.from);
3700
- X.mirrorActors && l(t, u.includes(t.type) ? L / 2 : t.width / 2), t.stopy = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3700
+ X.mirrorActors && l(t, u.includes(t.type) ? L / 2 : t.width / 2), t.stopy = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3701
3701
  } else if (s.get(e.to) == i) {
3702
3702
  let t = a.get(e.to);
3703
- X.mirrorActors && c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.stopy = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3703
+ X.mirrorActors && c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.stopy = r - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3704
3704
  }
3705
3705
  }
3706
- r(Ue, "adjustCreatedDestroyedData");
3707
- var We = /* @__PURE__ */ r(async function(e, t, a, o) {
3706
+ t(Ue, "adjustCreatedDestroyedData");
3707
+ var We = /* @__PURE__ */ t(async function(r, i, a, o) {
3708
3708
  let { securityLevel: s, sequence: c } = h();
3709
3709
  X = c;
3710
3710
  let l;
3711
- s === "sandbox" && (l = i("#i" + t));
3712
- let u = i(s === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), d = s === "sandbox" ? l.nodes()[0].contentDocument : document;
3713
- Z.init(), n.debug(o.db);
3714
- let f = s === "sandbox" ? u.select(`[id="${t}"]`) : i(`[id="${t}"]`), p = o.db.getActors(), m = o.db.getCreatedActors(), _ = o.db.getDestroyedActors(), v = o.db.getBoxes(), y = o.db.getActorKeys(), b = o.db.getMessages(), x = o.db.getDiagramTitle(), S = o.db.hasAtLeastOneBox(), C = o.db.hasAtLeastOneBoxWithTitle(), w = await Ge(p, b, o);
3711
+ s === "sandbox" && (l = n("#i" + i));
3712
+ let u = n(s === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), d = s === "sandbox" ? l.nodes()[0].contentDocument : document;
3713
+ Z.init(), e.debug(o.db);
3714
+ let f = s === "sandbox" ? u.select(`[id="${i}"]`) : n(`[id="${i}"]`), p = o.db.getActors(), m = o.db.getCreatedActors(), _ = o.db.getDestroyedActors(), v = o.db.getBoxes(), y = o.db.getActorKeys(), b = o.db.getMessages(), x = o.db.getDiagramTitle(), S = o.db.hasAtLeastOneBox(), C = o.db.hasAtLeastOneBoxWithTitle(), w = await Ge(p, b, o);
3715
3715
  if (X.height = await qe(p, w, v), Y.insertComputerIcon(f), Y.insertDatabaseIcon(f), Y.insertClockIcon(f), S && (Z.bumpVerticalPos(X.boxMargin), C && Z.bumpVerticalPos(v[0].textMaxHeight)), X.hideUnusedParticipants === !0) {
3716
3716
  let e = /* @__PURE__ */ new Set();
3717
3717
  b.forEach((t) => {
@@ -3725,91 +3725,91 @@ var We = /* @__PURE__ */ r(async function(e, t, a, o) {
3725
3725
  let n = Z.endActivation(e);
3726
3726
  n.starty + 18 > t && (n.starty = t - 6, t += 12), Y.drawActivation(f, n, t, X, Ve(e.from).length), Z.insert(n.startx, t - 10, n.stopx, t);
3727
3727
  }
3728
- r(E, "activeEnd");
3728
+ t(E, "activeEnd");
3729
3729
  let D = 1, O = 1, k = [], A = [], j = 0;
3730
- for (let e of b) {
3731
- let t, r, i;
3732
- switch (e.type) {
3730
+ for (let t of b) {
3731
+ let n, r, i;
3732
+ switch (t.type) {
3733
3733
  case o.db.LINETYPE.NOTE:
3734
- Z.resetVerticalPos(), r = e.noteModel, await je(f, r);
3734
+ Z.resetVerticalPos(), r = t.noteModel, await je(f, r);
3735
3735
  break;
3736
3736
  case o.db.LINETYPE.ACTIVE_START:
3737
- Z.newActivation(e, f, p);
3737
+ Z.newActivation(t, f, p);
3738
3738
  break;
3739
3739
  case o.db.LINETYPE.CENTRAL_CONNECTION:
3740
- Z.newActivation(e, f, p);
3740
+ Z.newActivation(t, f, p);
3741
3741
  break;
3742
3742
  case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3743
- Z.newActivation(e, f, p);
3743
+ Z.newActivation(t, f, p);
3744
3744
  break;
3745
3745
  case o.db.LINETYPE.ACTIVE_END:
3746
- E(e, Z.getVerticalPos());
3746
+ E(t, Z.getVerticalPos());
3747
3747
  break;
3748
3748
  case o.db.LINETYPE.LOOP_START:
3749
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3749
+ $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3750
3750
  break;
3751
3751
  case o.db.LINETYPE.LOOP_END:
3752
- t = Z.endLoop(), await Y.drawLoop(f, t, "loop", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3752
+ n = Z.endLoop(), await Y.drawLoop(f, n, "loop", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3753
3753
  break;
3754
3754
  case o.db.LINETYPE.RECT_START:
3755
- $(T, e, X.boxMargin, X.boxMargin, (e) => Z.newLoop(void 0, e.message));
3755
+ $(T, t, X.boxMargin, X.boxMargin, (e) => Z.newLoop(void 0, e.message));
3756
3756
  break;
3757
3757
  case o.db.LINETYPE.RECT_END:
3758
- t = Z.endLoop(), A.push(t), Z.models.addLoop(t), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos());
3758
+ n = Z.endLoop(), A.push(n), Z.models.addLoop(n), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos());
3759
3759
  break;
3760
3760
  case o.db.LINETYPE.OPT_START:
3761
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3761
+ $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3762
3762
  break;
3763
3763
  case o.db.LINETYPE.OPT_END:
3764
- t = Z.endLoop(), await Y.drawLoop(f, t, "opt", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3764
+ n = Z.endLoop(), await Y.drawLoop(f, n, "opt", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3765
3765
  break;
3766
3766
  case o.db.LINETYPE.ALT_START:
3767
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3767
+ $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3768
3768
  break;
3769
3769
  case o.db.LINETYPE.ALT_ELSE:
3770
- $(T, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3770
+ $(T, t, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3771
3771
  break;
3772
3772
  case o.db.LINETYPE.ALT_END:
3773
- t = Z.endLoop(), await Y.drawLoop(f, t, "alt", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3773
+ n = Z.endLoop(), await Y.drawLoop(f, n, "alt", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3774
3774
  break;
3775
3775
  case o.db.LINETYPE.PAR_START:
3776
3776
  case o.db.LINETYPE.PAR_OVER_START:
3777
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e)), Z.saveVerticalPos();
3777
+ $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e)), Z.saveVerticalPos();
3778
3778
  break;
3779
3779
  case o.db.LINETYPE.PAR_AND:
3780
- $(T, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3780
+ $(T, t, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3781
3781
  break;
3782
3782
  case o.db.LINETYPE.PAR_END:
3783
- t = Z.endLoop(), await Y.drawLoop(f, t, "par", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3783
+ n = Z.endLoop(), await Y.drawLoop(f, n, "par", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3784
3784
  break;
3785
3785
  case o.db.LINETYPE.AUTONUMBER:
3786
- D = e.message.start || D, O = e.message.step || O, e.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
3786
+ D = t.message.start || D, O = t.message.step || O, t.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
3787
3787
  break;
3788
3788
  case o.db.LINETYPE.CRITICAL_START:
3789
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3789
+ $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3790
3790
  break;
3791
3791
  case o.db.LINETYPE.CRITICAL_OPTION:
3792
- $(T, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3792
+ $(T, t, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3793
3793
  break;
3794
3794
  case o.db.LINETYPE.CRITICAL_END:
3795
- t = Z.endLoop(), await Y.drawLoop(f, t, "critical", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3795
+ n = Z.endLoop(), await Y.drawLoop(f, n, "critical", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3796
3796
  break;
3797
3797
  case o.db.LINETYPE.BREAK_START:
3798
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3798
+ $(T, t, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3799
3799
  break;
3800
3800
  case o.db.LINETYPE.BREAK_END:
3801
- t = Z.endLoop(), await Y.drawLoop(f, t, "break", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3801
+ n = Z.endLoop(), await Y.drawLoop(f, n, "break", X), Z.bumpVerticalPos(n.stopy - Z.getVerticalPos()), Z.models.addLoop(n);
3802
3802
  break;
3803
3803
  default: try {
3804
- i = e.msgModel, i.starty = Z.getVerticalPos(), i.sequenceIndex = D, i.sequenceVisible = o.db.showSequenceNumbers();
3805
- let t = await Fe(f, i);
3806
- Ue(e, i, t, j, p, m, _), k.push({
3804
+ i = t.msgModel, i.starty = Z.getVerticalPos(), i.sequenceIndex = D, i.sequenceVisible = o.db.showSequenceNumbers();
3805
+ let e = await Fe(f, i);
3806
+ Ue(t, i, e, j, p, m, _), k.push({
3807
3807
  messageModel: i,
3808
- lineStartY: t,
3809
- msg: e
3808
+ lineStartY: e,
3809
+ msg: t
3810
3810
  }), Z.models.addMessage(i);
3811
- } catch (e) {
3812
- n.error("error while drawing message", e);
3811
+ } catch (t) {
3812
+ e.error("error while drawing message", t);
3813
3813
  }
3814
3814
  }
3815
3815
  [
@@ -3839,9 +3839,9 @@ var We = /* @__PURE__ */ r(async function(e, t, a, o) {
3839
3839
  o.db.LINETYPE.DOTTED_POINT,
3840
3840
  o.db.LINETYPE.BIDIRECTIONAL_SOLID,
3841
3841
  o.db.LINETYPE.BIDIRECTIONAL_DOTTED
3842
- ].includes(e.type) && (D += O), j++;
3842
+ ].includes(t.type) && (D += O), j++;
3843
3843
  }
3844
- n.debug("createdActors", m), n.debug("destroyedActors", _), await Re(f, p, y, !1);
3844
+ e.debug("createdActors", m), e.debug("destroyedActors", _), await Re(f, p, y, !1);
3845
3845
  for (let e of k) await Ie(f, e.messageModel, e.lineStartY, o, e.msg);
3846
3846
  X.mirrorActors && await Re(f, p, y, !0), A.forEach((e) => Y.drawBackgroundRect(f, e)), ce(f, p, y, X);
3847
3847
  for (let e of Z.models.boxes) {
@@ -3861,83 +3861,83 @@ var We = /* @__PURE__ */ r(async function(e, t, a, o) {
3861
3861
  let ee = I + 2 * X.diagramMarginX;
3862
3862
  x && f.append("text").text(x).attr("x", (N.stopx - N.startx) / 2 - 2 * X.diagramMarginX).attr("y", -25), g(f, F, ee, X.useMaxWidth);
3863
3863
  let te = x ? 40 : 0;
3864
- f.attr("viewBox", N.startx - X.diagramMarginX + " -" + (X.diagramMarginY + te) + " " + ee + " " + (F + te)), n.debug("models:", Z.models);
3864
+ f.attr("viewBox", N.startx - X.diagramMarginX + " -" + (X.diagramMarginY + te) + " " + ee + " " + (F + te)), e.debug("models:", Z.models);
3865
3865
  }, "draw");
3866
- async function Ge(e, r, i) {
3866
+ async function Ge(t, n, r) {
3867
3867
  let a = {};
3868
- for (let n of r) if (e.get(n.to) && e.get(n.from)) {
3869
- let r = e.get(n.to);
3870
- if (n.placement === i.db.PLACEMENT.LEFTOF && !r.prevActor || n.placement === i.db.PLACEMENT.RIGHTOF && !r.nextActor) continue;
3871
- let o = n.placement !== void 0, s = !o, c = o ? Ne(X) : Q(X), l = n.wrap ? t.wrapLabel(n.message, X.width - 2 * X.wrapPadding, c) : n.message, u = (v(l) ? await _(n.message, h()) : t.calculateTextDimensions(l, c)).width + 2 * X.wrapPadding;
3872
- s && n.from === r.nextActor ? a[n.to] = b.getMax(a[n.to] || 0, u) : s && n.from === r.prevActor ? a[n.from] = b.getMax(a[n.from] || 0, u) : s && n.from === n.to ? (a[n.from] = b.getMax(a[n.from] || 0, u / 2), a[n.to] = b.getMax(a[n.to] || 0, u / 2)) : n.placement === i.db.PLACEMENT.RIGHTOF ? a[n.from] = b.getMax(a[n.from] || 0, u) : n.placement === i.db.PLACEMENT.LEFTOF ? a[r.prevActor] = b.getMax(a[r.prevActor] || 0, u) : n.placement === i.db.PLACEMENT.OVER && (r.prevActor && (a[r.prevActor] = b.getMax(a[r.prevActor] || 0, u / 2)), r.nextActor && (a[n.from] = b.getMax(a[n.from] || 0, u / 2)));
3868
+ for (let e of n) if (t.get(e.to) && t.get(e.from)) {
3869
+ let n = t.get(e.to);
3870
+ if (e.placement === r.db.PLACEMENT.LEFTOF && !n.prevActor || e.placement === r.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
3871
+ let o = e.placement !== void 0, s = !o, c = o ? Ne(X) : Q(X), l = e.wrap ? i.wrapLabel(e.message, X.width - 2 * X.wrapPadding, c) : e.message, u = (v(l) ? await _(e.message, h()) : i.calculateTextDimensions(l, c)).width + 2 * X.wrapPadding;
3872
+ s && e.from === n.nextActor ? a[e.to] = b.getMax(a[e.to] || 0, u) : s && e.from === n.prevActor ? a[e.from] = b.getMax(a[e.from] || 0, u) : s && e.from === e.to ? (a[e.from] = b.getMax(a[e.from] || 0, u / 2), a[e.to] = b.getMax(a[e.to] || 0, u / 2)) : e.placement === r.db.PLACEMENT.RIGHTOF ? a[e.from] = b.getMax(a[e.from] || 0, u) : e.placement === r.db.PLACEMENT.LEFTOF ? a[n.prevActor] = b.getMax(a[n.prevActor] || 0, u) : e.placement === r.db.PLACEMENT.OVER && (n.prevActor && (a[n.prevActor] = b.getMax(a[n.prevActor] || 0, u / 2)), n.nextActor && (a[e.from] = b.getMax(a[e.from] || 0, u / 2)));
3873
3873
  }
3874
- return n.debug("maxMessageWidthPerActor:", a), a;
3874
+ return e.debug("maxMessageWidthPerActor:", a), a;
3875
3875
  }
3876
- r(Ge, "getMaxMessageWidthPerActor");
3877
- var Ke = /* @__PURE__ */ r(function(e) {
3878
- let n = 0, r = Pe(X);
3879
- for (let i in e.links) {
3880
- let e = t.calculateTextDimensions(i, r).width + 2 * X.wrapPadding + 2 * X.boxMargin;
3881
- n < e && (n = e);
3876
+ t(Ge, "getMaxMessageWidthPerActor");
3877
+ var Ke = /* @__PURE__ */ t(function(e) {
3878
+ let t = 0, n = Pe(X);
3879
+ for (let r in e.links) {
3880
+ let e = i.calculateTextDimensions(r, n).width + 2 * X.wrapPadding + 2 * X.boxMargin;
3881
+ t < e && (t = e);
3882
3882
  }
3883
- return n;
3883
+ return t;
3884
3884
  }, "getRequiredPopupWidth");
3885
- async function qe(e, n, r) {
3886
- let i = 0;
3887
- for (let n of e.keys()) {
3888
- let r = e.get(n);
3889
- r.wrap && (r.description = t.wrapLabel(r.description, X.width - 2 * X.wrapPadding, Pe(X)));
3890
- let a = v(r.description) ? await _(r.description, h()) : t.calculateTextDimensions(r.description, Pe(X));
3891
- r.width = r.wrap ? X.width : b.getMax(X.width, a.width + 2 * X.wrapPadding), r.height = r.wrap ? b.getMax(a.height, X.height) : X.height, i = b.getMax(i, r.height);
3885
+ async function qe(e, t, n) {
3886
+ let r = 0;
3887
+ for (let t of e.keys()) {
3888
+ let n = e.get(t);
3889
+ n.wrap && (n.description = i.wrapLabel(n.description, X.width - 2 * X.wrapPadding, Pe(X)));
3890
+ let a = v(n.description) ? await _(n.description, h()) : i.calculateTextDimensions(n.description, Pe(X));
3891
+ n.width = n.wrap ? X.width : b.getMax(X.width, a.width + 2 * X.wrapPadding), n.height = n.wrap ? b.getMax(a.height, X.height) : X.height, r = b.getMax(r, n.height);
3892
3892
  }
3893
- for (let t in n) {
3894
- let r = e.get(t);
3893
+ for (let n in t) {
3894
+ let r = e.get(n);
3895
3895
  if (!r) continue;
3896
3896
  let i = e.get(r.nextActor);
3897
3897
  if (!i) {
3898
- let e = n[t] + X.actorMargin - r.width / 2;
3898
+ let e = t[n] + X.actorMargin - r.width / 2;
3899
3899
  r.margin = b.getMax(e, X.actorMargin);
3900
3900
  continue;
3901
3901
  }
3902
- let a = n[t] + X.actorMargin - r.width / 2 - i.width / 2;
3902
+ let a = t[n] + X.actorMargin - r.width / 2 - i.width / 2;
3903
3903
  r.margin = b.getMax(a, X.actorMargin);
3904
3904
  }
3905
3905
  let a = 0;
3906
- return r.forEach((n) => {
3907
- let r = Q(X), i = n.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), o = X.boxMargin * 8;
3908
- i += o, i -= 2 * X.boxTextMargin, n.wrap && (n.name = t.wrapLabel(n.name, i - 2 * X.wrapPadding, r));
3909
- let s = t.calculateTextDimensions(n.name, r);
3906
+ return n.forEach((t) => {
3907
+ let n = Q(X), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), o = X.boxMargin * 8;
3908
+ r += o, r -= 2 * X.boxTextMargin, t.wrap && (t.name = i.wrapLabel(t.name, r - 2 * X.wrapPadding, n));
3909
+ let s = i.calculateTextDimensions(t.name, n);
3910
3910
  a = b.getMax(s.height, a);
3911
- let c = b.getMax(i, s.width + 2 * X.wrapPadding);
3912
- if (n.margin = X.boxTextMargin, i < c) {
3913
- let e = (c - i) / 2;
3914
- n.margin += e;
3911
+ let c = b.getMax(r, s.width + 2 * X.wrapPadding);
3912
+ if (t.margin = X.boxTextMargin, r < c) {
3913
+ let e = (c - r) / 2;
3914
+ t.margin += e;
3915
3915
  }
3916
- }), r.forEach((e) => e.textMaxHeight = a), b.getMax(i, X.height);
3916
+ }), n.forEach((e) => e.textMaxHeight = a), b.getMax(r, X.height);
3917
3917
  }
3918
- r(qe, "calculateActorMargins");
3919
- var Je = /* @__PURE__ */ r(async function(e, r, i) {
3920
- let a = r.get(e.from), o = r.get(e.to), s = a.x, c = o.x, l = e.wrap && e.message, u = v(e.message) ? await _(e.message, h()) : t.calculateTextDimensions(l ? t.wrapLabel(e.message, X.width, Ne(X)) : e.message, Ne(X)), d = {
3918
+ t(qe, "calculateActorMargins");
3919
+ var Je = /* @__PURE__ */ t(async function(t, n, r) {
3920
+ let a = n.get(t.from), o = n.get(t.to), s = a.x, c = o.x, l = t.wrap && t.message, u = v(t.message) ? await _(t.message, h()) : i.calculateTextDimensions(l ? i.wrapLabel(t.message, X.width, Ne(X)) : t.message, Ne(X)), d = {
3921
3921
  width: l ? X.width : b.getMax(X.width, u.width + 2 * X.noteMargin),
3922
3922
  height: 0,
3923
3923
  startx: a.x,
3924
3924
  stopx: 0,
3925
3925
  starty: 0,
3926
3926
  stopy: 0,
3927
- message: e.message
3927
+ message: t.message
3928
3928
  };
3929
- return e.placement === i.db.PLACEMENT.RIGHTOF ? (d.width = l ? b.getMax(X.width, u.width) : b.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s + (a.width + X.actorMargin) / 2) : e.placement === i.db.PLACEMENT.LEFTOF ? (d.width = l ? b.getMax(X.width, u.width + 2 * X.noteMargin) : b.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s - d.width + (a.width - X.actorMargin) / 2) : e.to === e.from ? (u = t.calculateTextDimensions(l ? t.wrapLabel(e.message, b.getMax(X.width, a.width), Ne(X)) : e.message, Ne(X)), d.width = l ? b.getMax(X.width, a.width) : b.getMax(a.width, X.width, u.width + 2 * X.noteMargin), d.startx = s + (a.width - d.width) / 2) : (d.width = Math.abs(s + a.width / 2 - (c + o.width / 2)) + X.actorMargin, d.startx = s < c ? s + a.width / 2 - X.actorMargin / 2 : c + o.width / 2 - X.actorMargin / 2), l && (d.message = t.wrapLabel(e.message, d.width - 2 * X.wrapPadding, Ne(X))), n.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`), d;
3930
- }, "buildNoteModel"), Ye = 4, Xe = 6, Ze = /* @__PURE__ */ r(function(e, t) {
3929
+ return t.placement === r.db.PLACEMENT.RIGHTOF ? (d.width = l ? b.getMax(X.width, u.width) : b.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s + (a.width + X.actorMargin) / 2) : t.placement === r.db.PLACEMENT.LEFTOF ? (d.width = l ? b.getMax(X.width, u.width + 2 * X.noteMargin) : b.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s - d.width + (a.width - X.actorMargin) / 2) : t.to === t.from ? (u = i.calculateTextDimensions(l ? i.wrapLabel(t.message, b.getMax(X.width, a.width), Ne(X)) : t.message, Ne(X)), d.width = l ? b.getMax(X.width, a.width) : b.getMax(a.width, X.width, u.width + 2 * X.noteMargin), d.startx = s + (a.width - d.width) / 2) : (d.width = Math.abs(s + a.width / 2 - (c + o.width / 2)) + X.actorMargin, d.startx = s < c ? s + a.width / 2 - X.actorMargin / 2 : c + o.width / 2 - X.actorMargin / 2), l && (d.message = i.wrapLabel(t.message, d.width - 2 * X.wrapPadding, Ne(X))), e.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${t.message}]`), d;
3930
+ }, "buildNoteModel"), Ye = 4, Xe = 6, Ze = /* @__PURE__ */ t(function(e, t) {
3931
3931
  let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
3932
3932
  return [
3933
3933
  n,
3934
3934
  r,
3935
3935
  i
3936
3936
  ].includes(e.centralConnection);
3937
- }, "hasCentralConnection"), Qe = /* @__PURE__ */ r(function(e, t, n) {
3937
+ }, "hasCentralConnection"), Qe = /* @__PURE__ */ t(function(e, t, n) {
3938
3938
  let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
3939
3939
  return (e.centralConnection === r || e.centralConnection === i) && (s += Ye), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -Xe), s;
3940
- }, "calculateCentralConnectionOffset"), $e = /* @__PURE__ */ r(function(e, t) {
3940
+ }, "calculateCentralConnectionOffset"), $e = /* @__PURE__ */ t(function(e, t) {
3941
3941
  let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
3942
3942
  return [
3943
3943
  n,
@@ -3949,63 +3949,63 @@ var Je = /* @__PURE__ */ r(async function(e, r, i) {
3949
3949
  c,
3950
3950
  l
3951
3951
  ].includes(e.type);
3952
- }, "isReverseArrowType"), et = /* @__PURE__ */ r(function(e, t) {
3952
+ }, "isReverseArrowType"), et = /* @__PURE__ */ t(function(e, t) {
3953
3953
  let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
3954
3954
  return [n, r].includes(e.type);
3955
- }, "isBidirectionalArrowType"), tt = /* @__PURE__ */ r(function(e, n, i) {
3955
+ }, "isBidirectionalArrowType"), tt = /* @__PURE__ */ t(function(e, n, r) {
3956
3956
  if (![
3957
- i.db.LINETYPE.SOLID_OPEN,
3958
- i.db.LINETYPE.DOTTED_OPEN,
3959
- i.db.LINETYPE.SOLID,
3960
- i.db.LINETYPE.SOLID_TOP,
3961
- i.db.LINETYPE.SOLID_BOTTOM,
3962
- i.db.LINETYPE.STICK_TOP,
3963
- i.db.LINETYPE.STICK_BOTTOM,
3964
- i.db.LINETYPE.SOLID_TOP_DOTTED,
3965
- i.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3966
- i.db.LINETYPE.STICK_TOP_DOTTED,
3967
- i.db.LINETYPE.STICK_BOTTOM_DOTTED,
3968
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3969
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3970
- i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3971
- i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3972
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3973
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3974
- i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3975
- i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3976
- i.db.LINETYPE.DOTTED,
3977
- i.db.LINETYPE.SOLID_CROSS,
3978
- i.db.LINETYPE.DOTTED_CROSS,
3979
- i.db.LINETYPE.SOLID_POINT,
3980
- i.db.LINETYPE.DOTTED_POINT,
3981
- i.db.LINETYPE.BIDIRECTIONAL_SOLID,
3982
- i.db.LINETYPE.BIDIRECTIONAL_DOTTED
3957
+ r.db.LINETYPE.SOLID_OPEN,
3958
+ r.db.LINETYPE.DOTTED_OPEN,
3959
+ r.db.LINETYPE.SOLID,
3960
+ r.db.LINETYPE.SOLID_TOP,
3961
+ r.db.LINETYPE.SOLID_BOTTOM,
3962
+ r.db.LINETYPE.STICK_TOP,
3963
+ r.db.LINETYPE.STICK_BOTTOM,
3964
+ r.db.LINETYPE.SOLID_TOP_DOTTED,
3965
+ r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3966
+ r.db.LINETYPE.STICK_TOP_DOTTED,
3967
+ r.db.LINETYPE.STICK_BOTTOM_DOTTED,
3968
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3969
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3970
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3971
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3972
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3973
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3974
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3975
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3976
+ r.db.LINETYPE.DOTTED,
3977
+ r.db.LINETYPE.SOLID_CROSS,
3978
+ r.db.LINETYPE.DOTTED_CROSS,
3979
+ r.db.LINETYPE.SOLID_POINT,
3980
+ r.db.LINETYPE.DOTTED_POINT,
3981
+ r.db.LINETYPE.BIDIRECTIONAL_SOLID,
3982
+ r.db.LINETYPE.BIDIRECTIONAL_DOTTED
3983
3983
  ].includes(e.type)) return {};
3984
3984
  let [a, o] = He(e.from, n), [s, c] = He(e.to, n), l = a <= s, u = l ? o : a, d = l ? s : c;
3985
- u += Qe(e, i, l);
3986
- let f = Math.abs(s - c) > 2, p = /* @__PURE__ */ r((e) => l ? -e : e, "adjustValue");
3985
+ u += Qe(e, r, l);
3986
+ let f = Math.abs(s - c) > 2, p = /* @__PURE__ */ t((e) => l ? -e : e, "adjustValue");
3987
3987
  e.from === e.to ? d = u : (e.activate && !f && (d += p(X.activationWidth / 2 - 1)), [
3988
- i.db.LINETYPE.SOLID_OPEN,
3989
- i.db.LINETYPE.DOTTED_OPEN,
3990
- i.db.LINETYPE.STICK_TOP,
3991
- i.db.LINETYPE.STICK_BOTTOM,
3992
- i.db.LINETYPE.STICK_TOP_DOTTED,
3993
- i.db.LINETYPE.STICK_BOTTOM_DOTTED,
3994
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3995
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3996
- i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3997
- i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3998
- i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3999
- i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4000
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4001
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
3988
+ r.db.LINETYPE.SOLID_OPEN,
3989
+ r.db.LINETYPE.DOTTED_OPEN,
3990
+ r.db.LINETYPE.STICK_TOP,
3991
+ r.db.LINETYPE.STICK_BOTTOM,
3992
+ r.db.LINETYPE.STICK_TOP_DOTTED,
3993
+ r.db.LINETYPE.STICK_BOTTOM_DOTTED,
3994
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3995
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3996
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3997
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3998
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3999
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4000
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4001
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4002
4002
  ].includes(e.type) || (d += p(3)), [
4003
- i.db.LINETYPE.BIDIRECTIONAL_SOLID,
4004
- i.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4005
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4006
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4007
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4008
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4003
+ r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4004
+ r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4005
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4006
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4007
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4008
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4009
4009
  ].includes(e.type) && (u -= p(3)));
4010
4010
  let m = [
4011
4011
  a,
@@ -4013,8 +4013,8 @@ var Je = /* @__PURE__ */ r(async function(e, r, i) {
4013
4013
  s,
4014
4014
  c
4015
4015
  ], h = Math.abs(u - d);
4016
- e.wrap && e.message && (e.message = t.wrapLabel(e.message, b.getMax(h + 2 * X.wrapPadding, X.width), Q(X)));
4017
- let g = t.calculateTextDimensions(e.message, Q(X));
4016
+ e.wrap && e.message && (e.message = i.wrapLabel(e.message, b.getMax(h + 2 * X.wrapPadding, X.width), Q(X)));
4017
+ let g = i.calculateTextDimensions(e.message, Q(X));
4018
4018
  return {
4019
4019
  width: b.getMax(e.wrap ? 0 : g.width + 2 * X.wrapPadding, h + 2 * X.wrapPadding, X.width),
4020
4020
  height: 0,
@@ -4028,10 +4028,10 @@ var Je = /* @__PURE__ */ r(async function(e, r, i) {
4028
4028
  fromBounds: Math.min.apply(null, m),
4029
4029
  toBounds: Math.max.apply(null, m)
4030
4030
  };
4031
- }, "buildMessageModel"), nt = /* @__PURE__ */ r(async function(e, t, r, i) {
4031
+ }, "buildMessageModel"), nt = /* @__PURE__ */ t(async function(t, n, r, i) {
4032
4032
  let a = {}, o = [], s, c, l;
4033
- for (let n of e) {
4034
- switch (n.type) {
4033
+ for (let e of t) {
4034
+ switch (e.type) {
4035
4035
  case i.db.LINETYPE.LOOP_START:
4036
4036
  case i.db.LINETYPE.ALT_START:
4037
4037
  case i.db.LINETYPE.OPT_START:
@@ -4040,8 +4040,8 @@ var Je = /* @__PURE__ */ r(async function(e, r, i) {
4040
4040
  case i.db.LINETYPE.CRITICAL_START:
4041
4041
  case i.db.LINETYPE.BREAK_START:
4042
4042
  o.push({
4043
- id: n.id,
4044
- msg: n.message,
4043
+ id: e.id,
4044
+ msg: e.message,
4045
4045
  from: 2 ** 53 - 1,
4046
4046
  to: -(2 ** 53 - 1),
4047
4047
  width: 0
@@ -4050,7 +4050,7 @@ var Je = /* @__PURE__ */ r(async function(e, r, i) {
4050
4050
  case i.db.LINETYPE.ALT_ELSE:
4051
4051
  case i.db.LINETYPE.PAR_AND:
4052
4052
  case i.db.LINETYPE.CRITICAL_OPTION:
4053
- n.message && (s = o.pop(), a[s.id] = s, a[n.id] = s, o.push(s));
4053
+ e.message && (s = o.pop(), a[s.id] = s, a[e.id] = s, o.push(s));
4054
4054
  break;
4055
4055
  case i.db.LINETYPE.LOOP_END:
4056
4056
  case i.db.LINETYPE.ALT_END:
@@ -4062,10 +4062,10 @@ var Je = /* @__PURE__ */ r(async function(e, r, i) {
4062
4062
  break;
4063
4063
  case i.db.LINETYPE.ACTIVE_START:
4064
4064
  {
4065
- let e = t.get(n.from ? n.from : n.to.actor), r = Ve(n.from ? n.from : n.to.actor).length, i = e.x + e.width / 2 + (r - 1) * X.activationWidth / 2, a = {
4065
+ let t = n.get(e.from ? e.from : e.to.actor), r = Ve(e.from ? e.from : e.to.actor).length, i = t.x + t.width / 2 + (r - 1) * X.activationWidth / 2, a = {
4066
4066
  startx: i,
4067
4067
  stopx: i + X.activationWidth,
4068
- actor: n.from,
4068
+ actor: e.from,
4069
4069
  enabled: !0
4070
4070
  };
4071
4071
  Z.activations.push(a);
@@ -4073,21 +4073,21 @@ var Je = /* @__PURE__ */ r(async function(e, r, i) {
4073
4073
  break;
4074
4074
  case i.db.LINETYPE.ACTIVE_END:
4075
4075
  {
4076
- let e = Z.activations.map((e) => e.actor).lastIndexOf(n.from);
4077
- Z.activations.splice(e, 1).splice(0, 1);
4076
+ let t = Z.activations.map((e) => e.actor).lastIndexOf(e.from);
4077
+ Z.activations.splice(t, 1).splice(0, 1);
4078
4078
  }
4079
4079
  break;
4080
4080
  }
4081
- n.placement === void 0 ? (l = tt(n, t, i), n.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((e) => {
4082
- if (s = e, l.startx === l.stopx) {
4083
- let e = t.get(n.from), r = t.get(n.to);
4084
- s.from = b.getMin(e.x - l.width / 2, e.x - e.width / 2, s.from), s.to = b.getMax(r.x + l.width / 2, r.x + e.width / 2, s.to), s.width = b.getMax(s.width, Math.abs(s.to - s.from)) - X.labelBoxWidth;
4081
+ e.placement === void 0 ? (l = tt(e, n, i), e.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((t) => {
4082
+ if (s = t, l.startx === l.stopx) {
4083
+ let t = n.get(e.from), r = n.get(e.to);
4084
+ s.from = b.getMin(t.x - l.width / 2, t.x - t.width / 2, s.from), s.to = b.getMax(r.x + l.width / 2, r.x + t.width / 2, s.to), s.width = b.getMax(s.width, Math.abs(s.to - s.from)) - X.labelBoxWidth;
4085
4085
  } else s.from = b.getMin(l.startx, s.from), s.to = b.getMax(l.stopx, s.to), s.width = b.getMax(s.width, l.width) - X.labelBoxWidth;
4086
- })) : (c = await Je(n, t, i), n.noteModel = c, o.forEach((e) => {
4086
+ })) : (c = await Je(e, n, i), e.noteModel = c, o.forEach((e) => {
4087
4087
  s = e, s.from = b.getMin(s.from, c.startx), s.to = b.getMax(s.to, c.startx + c.width), s.width = b.getMax(s.width, Math.abs(s.from - s.to)) - X.labelBoxWidth;
4088
4088
  }));
4089
4089
  }
4090
- return Z.activations = [], n.debug("Loop type widths:", a), a;
4090
+ return Z.activations = [], e.debug("Loop type widths:", a), a;
4091
4091
  }, "calculateLoopBounds"), rt = {
4092
4092
  parser: F,
4093
4093
  get db() {
@@ -4101,7 +4101,7 @@ var Je = /* @__PURE__ */ r(async function(e, r, i) {
4101
4101
  draw: We
4102
4102
  },
4103
4103
  styles: ie,
4104
- init: /* @__PURE__ */ r((e) => {
4104
+ init: /* @__PURE__ */ t((e) => {
4105
4105
  e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, u({ sequence: { wrap: e.wrap } }));
4106
4106
  }, "init")
4107
4107
  };