@belonguniverseai/react-sdk 0.6.2 → 0.6.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 (81) hide show
  1. package/dist/api/agent-grants.d.ts +23 -8
  2. package/dist/api/client.d.ts +53 -4
  3. package/dist/api/queries.d.ts +2 -0
  4. package/dist/app/call-summary.d.ts +30 -0
  5. package/dist/component/abnfDiagram-N423BO3Z-DR3fMT7g.js +90 -0
  6. package/dist/component/arc-DJkYOSuJ.js +86 -0
  7. package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-BIp4IBPk.js} +1872 -1785
  8. package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-BqryGqC6.js} +895 -894
  9. package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-GktlF-Di.js} +3 -3
  10. package/dist/component/{channel-CYFijF_t.js → channel-3CusDaXb.js} +2 -2
  11. package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-DMTs6j_c.js} +5 -5
  12. package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-CIU34hPH.js} +2 -2
  13. package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-Ds3vF1Mv.js} +399 -378
  14. package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-DGxDkIm6.js} +2 -2
  15. package/dist/component/chunk-6Q2QTUOP-BI8oZt98.js +673 -0
  16. package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-D-36xUd5.js} +244 -239
  17. package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-8N_wQ762.js} +2 -2
  18. package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-ChxxpkWc.js} +2 -2
  19. package/dist/component/chunk-RYQCIY6F-CSY-95OP.js +316 -0
  20. package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-BQd9yyE1.js} +2 -2
  21. package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-BOq63iUL.js} +3 -3
  22. package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-BOq63iUL.js} +3 -3
  23. package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-B9x8cp5w.js} +2 -2
  24. package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
  25. package/dist/component/cynefinDiagram-MW4NZA55-OF6l99SS.js +302 -0
  26. package/dist/component/dagre-VZM6K2ZE-CELO1hFb.js +343 -0
  27. package/dist/component/diagram-7IWD3JNH-COzvm6E2.js +353 -0
  28. package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DR9KMRGw.js} +24 -24
  29. package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-D47Zqm-k.js} +23 -23
  30. package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-Key1bw_Y.js} +197 -197
  31. package/dist/component/diagram-UB23O5K3-Cxf-sZnK.js +222 -0
  32. package/dist/component/ebnfDiagram-BXEA7PRR-C8uURt_x.js +112 -0
  33. package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-CpCxe8Ib.js} +142 -131
  34. package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-urFG2I71.js} +268 -258
  35. package/dist/component/ganttDiagram-PKOTCBZU-8nA9faYf.js +2714 -0
  36. package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-u4cbNW8o.js} +33 -33
  37. package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
  38. package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-Bo-15uvJ.js} +2 -2
  39. package/dist/component/index.js +2 -2
  40. package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-ZAv4gZpA.js} +4 -4
  41. package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-CvB6evSz.js} +27 -27
  42. package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-M5BRYuPr.js} +5 -5
  43. package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-LL6GkmVe.js} +35 -35
  44. package/dist/component/layout-Br2UjHRU.js +1522 -0
  45. package/dist/component/{linear-BT4blD8s.js → linear-DVg61V66.js} +13 -13
  46. package/dist/component/map-CdwokNh2.js +227 -0
  47. package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-C2L7fCIM.js} +29577 -29128
  48. package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-BBZzsLh7.js} +26 -26
  49. package/dist/component/pegDiagram-VL7TDLO6-BEG86cY8.js +98 -0
  50. package/dist/component/pieDiagram-7S7Q4E2Y-BTkrNjAi.js +210 -0
  51. package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-BsjBAd4w.js} +14 -15
  52. package/dist/component/railroadDiagram-AXF67PYL-DuE0ZFxj.js +80 -0
  53. package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-CcshEEMy.js} +15 -15
  54. package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-CFn011ig.js} +2 -2
  55. package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-DmMZNJDw.js} +960 -963
  56. package/dist/component/sizeCapture-X5ZJPWSS-Ce4PhIAO.js +49 -0
  57. package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DDVzQKaO.js} +5 -5
  58. package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DeeW8PDA.js} +3 -3
  59. package/dist/component/swimlanes-SLNWSIFB-CZh2_vzg.js +5335 -0
  60. package/dist/component/swimlanesDiagram-ULZ7WXOC-Wb0Ri7qR.js +16 -0
  61. package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-rfiLwdTR.js} +15 -15
  62. package/dist/component/vennDiagram-T6HMQDX7-D8l7hqNb.js +1581 -0
  63. package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-7YqmpmtC.js} +15 -15
  64. package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-Dx2ECqt8.js} +464 -418
  65. package/dist/embed/voice/line-slots.d.ts +37 -2
  66. package/dist/embed/voice-call.d.ts +12 -0
  67. package/dist/i18n/messages/en.d.ts +1 -2
  68. package/dist/lib/web-storage.d.ts +8 -0
  69. package/dist/stream/belong-chat-transport.d.ts +1 -0
  70. package/dist/stream/belong-data-parts.d.ts +2 -0
  71. package/dist/stream/stream-state-store.d.ts +13 -0
  72. package/dist/types/public.d.ts +3 -0
  73. package/package.json +1 -1
  74. package/dist/component/arc-TLcl3N8_.js +0 -86
  75. package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
  76. package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
  77. package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
  78. package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
  79. package/dist/component/layout-Bu6nRdWm.js +0 -1731
  80. package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
  81. package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
@@ -1,37 +1,37 @@
1
- import { _ as g, o as tr, c as $, d as Mt, l as at, j as Ce, e as er, f as rr, k as P, b as ke, s as ar, q as sr, a as ir, g as nr, t as or, v as cr, J as lr, B as hr, i as Bt, u as Z, a5 as Q, a6 as wt, a7 as Me, a8 as dr, G as Yt, a9 as Tr, aa as Be } from "./mermaid-GHXKKRXX-DXPXjnb7.js";
2
- import { a as pr, b as ee, g as dt, d as Er, e as re, f as ae } from "./chunk-ND2GUHAM-OX1-DIU1.js";
3
- import { I as ur } from "./chunk-QZHKN3VN-DLQ8oUCc.js";
1
+ import { I as tr } from "./chunk-2Q5K7J3B-CIU34hPH.js";
2
+ import { _ as x, $ as er, c as $, d as Vt, l as at, j as Ce, e as rr, f as ar, k as N, b as ke, s as sr, o as ir, a as nr, g as or, p as cr, a0 as lr, a1 as hr, q as dr, i as Yt, y as Z, a2 as Q, a3 as Pt, a4 as Me, a5 as Tr, z as Kt, a6 as pr, a7 as Be } from "./mermaid-GHXKKRXX-C2L7fCIM.js";
3
+ import { a as Er, b as ae, g as dt, d as ur, c as se, e as ie } from "./chunk-2GRJ4B5K-DMTs6j_c.js";
4
4
  globalThis.process = globalThis.process || { env: {} };
5
5
  globalThis.global = globalThis.global || globalThis;
6
- var $t = (function() {
7
- var e = /* @__PURE__ */ g(function(ut, w, v, k) {
8
- for (v = v || {}, k = ut.length; k--; v[ut[k]] = w) ;
6
+ var te = (function() {
7
+ var e = /* @__PURE__ */ x(function(ut, S, v, P) {
8
+ for (v = v || {}, P = ut.length; P--; v[ut[P]] = S) ;
9
9
  return v;
10
- }, "o"), t = [1, 2], a = [1, 3], r = [1, 4], i = [2, 4], o = [1, 9], s = [1, 11], n = [1, 12], E = [1, 14], T = [1, 15], l = [1, 17], x = [1, 18], u = [1, 19], O = [1, 25], p = [1, 26], f = [1, 27], _ = [1, 28], I = [1, 29], L = [1, 30], b = [1, 31], S = [1, 32], A = [1, 33], N = [1, 34], B = [1, 35], V = [1, 36], q = [1, 37], U = [1, 38], G = [1, 39], X = [1, 40], j = [1, 42], H = [1, 43], st = [1, 44], tt = [1, 45], it = [1, 46], Y = [1, 47], C = [1, 4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 48, 49, 50, 51, 53, 54, 56, 61, 62, 63, 64, 73], Nt = [1, 74], m = [1, 80], D = [1, 81], lt = [1, 82], et = [1, 83], W = [1, 84], se = [1, 85], ie = [1, 86], ne = [1, 87], oe = [1, 88], ce = [1, 89], le = [1, 90], he = [1, 91], de = [1, 92], Te = [1, 93], pe = [1, 94], Ee = [1, 95], ue = [1, 96], fe = [1, 97], _e = [1, 98], ge = [1, 99], xe = [1, 100], Ie = [1, 101], ye = [1, 102], Re = [1, 103], Oe = [1, 104], Le = [1, 105], be = [2, 78], mt = [4, 5, 17, 51, 53, 54], Pt = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 51, 53, 54, 56, 61, 62, 63, 64, 73], me = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 50, 51, 53, 54, 56, 61, 62, 63, 64, 73], Ht = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 49, 51, 53, 54, 56, 61, 62, 63, 64, 73], Ae = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 48, 51, 53, 54, 56, 61, 62, 63, 64, 73], zt = [5, 52], K = [70, 71, 72, 73], ot = [1, 151], Ut = {
11
- trace: /* @__PURE__ */ g(function() {
10
+ }, "o"), t = [1, 2], a = [1, 3], r = [1, 4], i = [2, 4], n = [1, 9], s = [1, 11], o = [1, 12], u = [1, 14], d = [1, 15], p = [1, 17], _ = [1, 18], E = [1, 19], O = [1, 25], T = [1, 26], g = [1, 27], f = [1, 28], I = [1, 29], L = [1, 30], b = [1, 31], w = [1, 32], A = [1, 33], D = [1, 34], M = [1, 35], V = [1, 36], W = [1, 37], U = [1, 38], G = [1, 39], X = [1, 40], nt = [1, 42], j = [1, 43], H = [1, 44], st = [1, 45], tt = [1, 46], Y = [1, 47], C = [1, 4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 48, 49, 50, 51, 53, 54, 56, 61, 62, 63, 64, 73], At = [1, 74], kt = [1, 80], m = [1, 81], k = [1, 82], lt = [1, 83], et = [1, 84], K = [1, 85], Ot = [1, 86], ne = [1, 87], oe = [1, 88], ce = [1, 89], le = [1, 90], he = [1, 91], de = [1, 92], Te = [1, 93], pe = [1, 94], Ee = [1, 95], ue = [1, 96], fe = [1, 97], _e = [1, 98], ge = [1, 99], xe = [1, 100], Ie = [1, 101], ye = [1, 102], Re = [1, 103], Oe = [1, 104], Le = [1, 105], be = [2, 78], St = [4, 5, 17, 51, 53, 54], Dt = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 51, 53, 54, 56, 61, 62, 63, 64, 73], me = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 50, 51, 53, 54, 56, 61, 62, 63, 64, 73], Ut = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 49, 51, 53, 54, 56, 61, 62, 63, 64, 73], Ae = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 48, 51, 53, 54, 56, 61, 62, 63, 64, 73], Gt = [5, 52], F = [70, 71, 72, 73], ot = [1, 151], Xt = {
11
+ trace: /* @__PURE__ */ x(function() {
12
12
  }, "trace"),
13
13
  yy: {},
14
14
  symbols_: { error: 2, start: 3, SPACE: 4, NEWLINE: 5, SD: 6, document: 7, line: 8, statement: 9, INVALID: 10, box_section: 11, box_line: 12, participant_statement: 13, create: 14, box: 15, restOfLine: 16, end: 17, signal: 18, autonumber: 19, NUM: 20, off: 21, activate: 22, actor: 23, deactivate: 24, note_statement: 25, links_statement: 26, link_statement: 27, properties_statement: 28, details_statement: 29, title: 30, legacy_title: 31, acc_title: 32, acc_title_value: 33, acc_descr: 34, acc_descr_value: 35, acc_descr_multiline_value: 36, loop: 37, rect: 38, opt: 39, alt: 40, else_sections: 41, par: 42, par_sections: 43, par_over: 44, critical: 45, option_sections: 46, break: 47, option: 48, and: 49, else: 50, participant: 51, AS: 52, participant_actor: 53, destroy: 54, actor_with_config: 55, note: 56, placement: 57, text2: 58, over: 59, actor_pair: 60, links: 61, link: 62, properties: 63, details: 64, spaceList: 65, ",": 66, left_of: 67, right_of: 68, signaltype: 69, "+": 70, "-": 71, "()": 72, ACTOR: 73, config_object: 74, CONFIG_START: 75, CONFIG_CONTENT: 76, CONFIG_END: 77, SOLID_OPEN_ARROW: 78, DOTTED_OPEN_ARROW: 79, SOLID_ARROW: 80, SOLID_ARROW_TOP: 81, SOLID_ARROW_BOTTOM: 82, STICK_ARROW_TOP: 83, STICK_ARROW_BOTTOM: 84, SOLID_ARROW_TOP_DOTTED: 85, SOLID_ARROW_BOTTOM_DOTTED: 86, STICK_ARROW_TOP_DOTTED: 87, STICK_ARROW_BOTTOM_DOTTED: 88, SOLID_ARROW_TOP_REVERSE: 89, SOLID_ARROW_BOTTOM_REVERSE: 90, STICK_ARROW_TOP_REVERSE: 91, STICK_ARROW_BOTTOM_REVERSE: 92, SOLID_ARROW_TOP_REVERSE_DOTTED: 93, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 94, STICK_ARROW_TOP_REVERSE_DOTTED: 95, STICK_ARROW_BOTTOM_REVERSE_DOTTED: 96, BIDIRECTIONAL_SOLID_ARROW: 97, DOTTED_ARROW: 98, BIDIRECTIONAL_DOTTED_ARROW: 99, SOLID_CROSS: 100, DOTTED_CROSS: 101, SOLID_POINT: 102, DOTTED_POINT: 103, TXT: 104, $accept: 0, $end: 1 },
15
15
  terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 10: "INVALID", 14: "create", 15: "box", 16: "restOfLine", 17: "end", 19: "autonumber", 20: "NUM", 21: "off", 22: "activate", 24: "deactivate", 30: "title", 31: "legacy_title", 32: "acc_title", 33: "acc_title_value", 34: "acc_descr", 35: "acc_descr_value", 36: "acc_descr_multiline_value", 37: "loop", 38: "rect", 39: "opt", 40: "alt", 42: "par", 44: "par_over", 45: "critical", 47: "break", 48: "option", 49: "and", 50: "else", 51: "participant", 52: "AS", 53: "participant_actor", 54: "destroy", 56: "note", 59: "over", 61: "links", 62: "link", 63: "properties", 64: "details", 66: ",", 67: "left_of", 68: "right_of", 70: "+", 71: "-", 72: "()", 73: "ACTOR", 75: "CONFIG_START", 76: "CONFIG_CONTENT", 77: "CONFIG_END", 78: "SOLID_OPEN_ARROW", 79: "DOTTED_OPEN_ARROW", 80: "SOLID_ARROW", 81: "SOLID_ARROW_TOP", 82: "SOLID_ARROW_BOTTOM", 83: "STICK_ARROW_TOP", 84: "STICK_ARROW_BOTTOM", 85: "SOLID_ARROW_TOP_DOTTED", 86: "SOLID_ARROW_BOTTOM_DOTTED", 87: "STICK_ARROW_TOP_DOTTED", 88: "STICK_ARROW_BOTTOM_DOTTED", 89: "SOLID_ARROW_TOP_REVERSE", 90: "SOLID_ARROW_BOTTOM_REVERSE", 91: "STICK_ARROW_TOP_REVERSE", 92: "STICK_ARROW_BOTTOM_REVERSE", 93: "SOLID_ARROW_TOP_REVERSE_DOTTED", 94: "SOLID_ARROW_BOTTOM_REVERSE_DOTTED", 95: "STICK_ARROW_TOP_REVERSE_DOTTED", 96: "STICK_ARROW_BOTTOM_REVERSE_DOTTED", 97: "BIDIRECTIONAL_SOLID_ARROW", 98: "DOTTED_ARROW", 99: "BIDIRECTIONAL_DOTTED_ARROW", 100: "SOLID_CROSS", 101: "DOTTED_CROSS", 102: "SOLID_POINT", 103: "DOTTED_POINT", 104: "TXT" },
16
16
  productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [8, 1], [11, 0], [11, 2], [12, 2], [12, 1], [12, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [46, 1], [46, 4], [43, 1], [43, 4], [41, 1], [41, 4], [13, 5], [13, 3], [13, 5], [13, 3], [13, 3], [13, 5], [13, 3], [13, 5], [13, 3], [25, 4], [25, 4], [26, 3], [27, 3], [28, 3], [29, 3], [65, 2], [65, 1], [60, 3], [60, 1], [57, 1], [57, 1], [18, 5], [18, 5], [18, 5], [18, 5], [18, 6], [18, 4], [55, 2], [74, 3], [23, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [58, 1]],
17
- performAction: /* @__PURE__ */ g(function(w, v, k, y, z, c, At) {
18
- var d = c.length - 1;
17
+ performAction: /* @__PURE__ */ x(function(S, v, P, y, z, c, wt) {
18
+ var h = c.length - 1;
19
19
  switch (z) {
20
20
  case 3:
21
- return y.apply(c[d]), c[d];
21
+ return y.apply(c[h]), c[h];
22
22
  case 4:
23
23
  case 10:
24
24
  this.$ = [];
25
25
  break;
26
26
  case 5:
27
27
  case 11:
28
- c[d - 1].push(c[d]), this.$ = c[d - 1];
28
+ c[h - 1].push(c[h]), this.$ = c[h - 1];
29
29
  break;
30
30
  case 6:
31
31
  case 7:
32
32
  case 12:
33
33
  case 13:
34
- this.$ = c[d];
34
+ this.$ = c[h];
35
35
  break;
36
36
  case 8:
37
37
  case 9:
@@ -39,16 +39,16 @@ var $t = (function() {
39
39
  this.$ = [];
40
40
  break;
41
41
  case 16:
42
- c[d].type = "createParticipant", this.$ = c[d];
42
+ c[h].type = "createParticipant", this.$ = c[h];
43
43
  break;
44
44
  case 17:
45
- c[d - 1].unshift({ type: "boxStart", boxData: y.parseBoxData(c[d - 2]) }), c[d - 1].push({ type: "boxEnd", boxText: c[d - 2] }), this.$ = c[d - 1];
45
+ c[h - 1].unshift({ type: "boxStart", boxData: y.parseBoxData(c[h - 2]) }), c[h - 1].push({ type: "boxEnd", boxText: c[h - 2] }), this.$ = c[h - 1];
46
46
  break;
47
47
  case 19:
48
- this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[d - 2]), sequenceIndexStep: Number(c[d - 1]), sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
48
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[h - 2]), sequenceIndexStep: Number(c[h - 1]), sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
49
49
  break;
50
50
  case 20:
51
- this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[d - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
51
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[h - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
52
52
  break;
53
53
  case 21:
54
54
  this.$ = { type: "sequenceIndex", sequenceVisible: !1, signalType: y.LINETYPE.AUTONUMBER };
@@ -57,105 +57,105 @@ var $t = (function() {
57
57
  this.$ = { type: "sequenceIndex", sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
58
58
  break;
59
59
  case 23:
60
- this.$ = { type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[d - 1].actor };
60
+ this.$ = { type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[h - 1].actor };
61
61
  break;
62
62
  case 24:
63
- this.$ = { type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[d - 1].actor };
63
+ this.$ = { type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[h - 1].actor };
64
64
  break;
65
65
  case 30:
66
- y.setDiagramTitle(c[d].substring(6)), this.$ = c[d].substring(6);
66
+ y.setDiagramTitle(c[h].substring(6)), this.$ = c[h].substring(6);
67
67
  break;
68
68
  case 31:
69
- y.setDiagramTitle(c[d].substring(7)), this.$ = c[d].substring(7);
69
+ y.setDiagramTitle(c[h].substring(7)), this.$ = c[h].substring(7);
70
70
  break;
71
71
  case 32:
72
- this.$ = c[d].trim(), y.setAccTitle(this.$);
72
+ this.$ = c[h].trim(), y.setAccTitle(this.$);
73
73
  break;
74
74
  case 33:
75
75
  case 34:
76
- this.$ = c[d].trim(), y.setAccDescription(this.$);
76
+ this.$ = c[h].trim(), y.setAccDescription(this.$);
77
77
  break;
78
78
  case 35:
79
- c[d - 1].unshift({ type: "loopStart", loopText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.LOOP_START }), c[d - 1].push({ type: "loopEnd", loopText: c[d - 2], signalType: y.LINETYPE.LOOP_END }), this.$ = c[d - 1];
79
+ c[h - 1].unshift({ type: "loopStart", loopText: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.LOOP_START }), c[h - 1].push({ type: "loopEnd", loopText: c[h - 2], signalType: y.LINETYPE.LOOP_END }), this.$ = c[h - 1];
80
80
  break;
81
81
  case 36:
82
- c[d - 1].unshift({ type: "rectStart", color: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.RECT_START }), c[d - 1].push({ type: "rectEnd", color: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.RECT_END }), this.$ = c[d - 1];
82
+ c[h - 1].unshift({ type: "rectStart", color: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.RECT_START }), c[h - 1].push({ type: "rectEnd", color: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.RECT_END }), this.$ = c[h - 1];
83
83
  break;
84
84
  case 37:
85
- c[d - 1].unshift({ type: "optStart", optText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.OPT_START }), c[d - 1].push({ type: "optEnd", optText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.OPT_END }), this.$ = c[d - 1];
85
+ c[h - 1].unshift({ type: "optStart", optText: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.OPT_START }), c[h - 1].push({ type: "optEnd", optText: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.OPT_END }), this.$ = c[h - 1];
86
86
  break;
87
87
  case 38:
88
- c[d - 1].unshift({ type: "altStart", altText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.ALT_START }), c[d - 1].push({ type: "altEnd", signalType: y.LINETYPE.ALT_END }), this.$ = c[d - 1];
88
+ c[h - 1].unshift({ type: "altStart", altText: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.ALT_START }), c[h - 1].push({ type: "altEnd", signalType: y.LINETYPE.ALT_END }), this.$ = c[h - 1];
89
89
  break;
90
90
  case 39:
91
- c[d - 1].unshift({ type: "parStart", parText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.PAR_START }), c[d - 1].push({ type: "parEnd", signalType: y.LINETYPE.PAR_END }), this.$ = c[d - 1];
91
+ c[h - 1].unshift({ type: "parStart", parText: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.PAR_START }), c[h - 1].push({ type: "parEnd", signalType: y.LINETYPE.PAR_END }), this.$ = c[h - 1];
92
92
  break;
93
93
  case 40:
94
- c[d - 1].unshift({ type: "parStart", parText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.PAR_OVER_START }), c[d - 1].push({ type: "parEnd", signalType: y.LINETYPE.PAR_END }), this.$ = c[d - 1];
94
+ c[h - 1].unshift({ type: "parStart", parText: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.PAR_OVER_START }), c[h - 1].push({ type: "parEnd", signalType: y.LINETYPE.PAR_END }), this.$ = c[h - 1];
95
95
  break;
96
96
  case 41:
97
- c[d - 1].unshift({ type: "criticalStart", criticalText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.CRITICAL_START }), c[d - 1].push({ type: "criticalEnd", signalType: y.LINETYPE.CRITICAL_END }), this.$ = c[d - 1];
97
+ c[h - 1].unshift({ type: "criticalStart", criticalText: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.CRITICAL_START }), c[h - 1].push({ type: "criticalEnd", signalType: y.LINETYPE.CRITICAL_END }), this.$ = c[h - 1];
98
98
  break;
99
99
  case 42:
100
- c[d - 1].unshift({ type: "breakStart", breakText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.BREAK_START }), c[d - 1].push({ type: "breakEnd", optText: y.parseMessage(c[d - 2]), signalType: y.LINETYPE.BREAK_END }), this.$ = c[d - 1];
100
+ c[h - 1].unshift({ type: "breakStart", breakText: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.BREAK_START }), c[h - 1].push({ type: "breakEnd", optText: y.parseMessage(c[h - 2]), signalType: y.LINETYPE.BREAK_END }), this.$ = c[h - 1];
101
101
  break;
102
102
  case 44:
103
- this.$ = c[d - 3].concat([{ type: "option", optionText: y.parseMessage(c[d - 1]), signalType: y.LINETYPE.CRITICAL_OPTION }, c[d]]);
103
+ this.$ = c[h - 3].concat([{ type: "option", optionText: y.parseMessage(c[h - 1]), signalType: y.LINETYPE.CRITICAL_OPTION }, c[h]]);
104
104
  break;
105
105
  case 46:
106
- this.$ = c[d - 3].concat([{ type: "and", parText: y.parseMessage(c[d - 1]), signalType: y.LINETYPE.PAR_AND }, c[d]]);
106
+ this.$ = c[h - 3].concat([{ type: "and", parText: y.parseMessage(c[h - 1]), signalType: y.LINETYPE.PAR_AND }, c[h]]);
107
107
  break;
108
108
  case 48:
109
- this.$ = c[d - 3].concat([{ type: "else", altText: y.parseMessage(c[d - 1]), signalType: y.LINETYPE.ALT_ELSE }, c[d]]);
109
+ this.$ = c[h - 3].concat([{ type: "else", altText: y.parseMessage(c[h - 1]), signalType: y.LINETYPE.ALT_ELSE }, c[h]]);
110
110
  break;
111
111
  case 49:
112
- c[d - 3].draw = "participant", c[d - 3].type = "addParticipant", c[d - 3].description = y.parseMessage(c[d - 1]), this.$ = c[d - 3];
112
+ c[h - 3].draw = "participant", c[h - 3].type = "addParticipant", c[h - 3].description = y.parseMessage(c[h - 1]), this.$ = c[h - 3];
113
113
  break;
114
114
  case 50:
115
- c[d - 1].draw = "participant", c[d - 1].type = "addParticipant", this.$ = c[d - 1];
115
+ c[h - 1].draw = "participant", c[h - 1].type = "addParticipant", this.$ = c[h - 1];
116
116
  break;
117
117
  case 51:
118
- c[d - 3].draw = "actor", c[d - 3].type = "addParticipant", c[d - 3].description = y.parseMessage(c[d - 1]), this.$ = c[d - 3];
118
+ c[h - 3].draw = "actor", c[h - 3].type = "addParticipant", c[h - 3].description = y.parseMessage(c[h - 1]), this.$ = c[h - 3];
119
119
  break;
120
120
  case 52:
121
121
  case 57:
122
- c[d - 1].draw = "actor", c[d - 1].type = "addParticipant", this.$ = c[d - 1];
122
+ c[h - 1].draw = "actor", c[h - 1].type = "addParticipant", this.$ = c[h - 1];
123
123
  break;
124
124
  case 53:
125
- c[d - 1].type = "destroyParticipant", this.$ = c[d - 1];
125
+ c[h - 1].type = "destroyParticipant", this.$ = c[h - 1];
126
126
  break;
127
127
  case 54:
128
- c[d - 3].draw = "participant", c[d - 3].type = "addParticipant", c[d - 3].description = y.parseMessage(c[d - 1]), this.$ = c[d - 3];
128
+ c[h - 3].draw = "participant", c[h - 3].type = "addParticipant", c[h - 3].description = y.parseMessage(c[h - 1]), this.$ = c[h - 3];
129
129
  break;
130
130
  case 55:
131
- c[d - 1].draw = "participant", c[d - 1].type = "addParticipant", this.$ = c[d - 1];
131
+ c[h - 1].draw = "participant", c[h - 1].type = "addParticipant", this.$ = c[h - 1];
132
132
  break;
133
133
  case 56:
134
- c[d - 3].draw = "actor", c[d - 3].type = "addParticipant", c[d - 3].description = y.parseMessage(c[d - 1]), this.$ = c[d - 3];
134
+ c[h - 3].draw = "actor", c[h - 3].type = "addParticipant", c[h - 3].description = y.parseMessage(c[h - 1]), this.$ = c[h - 3];
135
135
  break;
136
136
  case 58:
137
- this.$ = [c[d - 1], { type: "addNote", placement: c[d - 2], actor: c[d - 1].actor, text: c[d] }];
137
+ this.$ = [c[h - 1], { type: "addNote", placement: c[h - 2], actor: c[h - 1].actor, text: c[h] }];
138
138
  break;
139
139
  case 59:
140
- c[d - 2] = [].concat(c[d - 1], c[d - 1]).slice(0, 2), c[d - 2][0] = c[d - 2][0].actor, c[d - 2][1] = c[d - 2][1].actor, this.$ = [c[d - 1], { type: "addNote", placement: y.PLACEMENT.OVER, actor: c[d - 2].slice(0, 2), text: c[d] }];
140
+ c[h - 2] = [].concat(c[h - 1], c[h - 1]).slice(0, 2), c[h - 2][0] = c[h - 2][0].actor, c[h - 2][1] = c[h - 2][1].actor, this.$ = [c[h - 1], { type: "addNote", placement: y.PLACEMENT.OVER, actor: c[h - 2].slice(0, 2), text: c[h] }];
141
141
  break;
142
142
  case 60:
143
- this.$ = [c[d - 1], { type: "addLinks", actor: c[d - 1].actor, text: c[d] }];
143
+ this.$ = [c[h - 1], { type: "addLinks", actor: c[h - 1].actor, text: c[h] }];
144
144
  break;
145
145
  case 61:
146
- this.$ = [c[d - 1], { type: "addALink", actor: c[d - 1].actor, text: c[d] }];
146
+ this.$ = [c[h - 1], { type: "addALink", actor: c[h - 1].actor, text: c[h] }];
147
147
  break;
148
148
  case 62:
149
- this.$ = [c[d - 1], { type: "addProperties", actor: c[d - 1].actor, text: c[d] }];
149
+ this.$ = [c[h - 1], { type: "addProperties", actor: c[h - 1].actor, text: c[h] }];
150
150
  break;
151
151
  case 63:
152
- this.$ = [c[d - 1], { type: "addDetails", actor: c[d - 1].actor, text: c[d] }];
152
+ this.$ = [c[h - 1], { type: "addDetails", actor: c[h - 1].actor, text: c[h] }];
153
153
  break;
154
154
  case 66:
155
- this.$ = [c[d - 2], c[d]];
155
+ this.$ = [c[h - 2], c[h]];
156
156
  break;
157
157
  case 67:
158
- this.$ = c[d];
158
+ this.$ = c[h];
159
159
  break;
160
160
  case 68:
161
161
  this.$ = y.PLACEMENT.LEFTOF;
@@ -165,60 +165,60 @@ var $t = (function() {
165
165
  break;
166
166
  case 70:
167
167
  this.$ = [
168
- c[d - 4],
169
- c[d - 1],
170
- { type: "addMessage", from: c[d - 4].actor, to: c[d - 1].actor, signalType: c[d - 3], msg: c[d], activate: !0 },
171
- { type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[d - 1].actor }
168
+ c[h - 4],
169
+ c[h - 1],
170
+ { type: "addMessage", from: c[h - 4].actor, to: c[h - 1].actor, signalType: c[h - 3], msg: c[h], activate: !0 },
171
+ { type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[h - 1].actor }
172
172
  ];
173
173
  break;
174
174
  case 71:
175
175
  this.$ = [
176
- c[d - 4],
177
- c[d - 1],
178
- { type: "addMessage", from: c[d - 4].actor, to: c[d - 1].actor, signalType: c[d - 3], msg: c[d] },
179
- { type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[d - 4].actor }
176
+ c[h - 4],
177
+ c[h - 1],
178
+ { type: "addMessage", from: c[h - 4].actor, to: c[h - 1].actor, signalType: c[h - 3], msg: c[h] },
179
+ { type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[h - 4].actor }
180
180
  ];
181
181
  break;
182
182
  case 72:
183
183
  this.$ = [
184
- c[d - 4],
185
- c[d - 1],
186
- { type: "addMessage", from: c[d - 4].actor, to: c[d - 1].actor, signalType: c[d - 3], msg: c[d], activate: !0, centralConnection: y.LINETYPE.CENTRAL_CONNECTION },
187
- { type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[d - 1].actor }
184
+ c[h - 4],
185
+ c[h - 1],
186
+ { type: "addMessage", from: c[h - 4].actor, to: c[h - 1].actor, signalType: c[h - 3], msg: c[h], activate: !0, centralConnection: y.LINETYPE.CENTRAL_CONNECTION },
187
+ { type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[h - 1].actor }
188
188
  ];
189
189
  break;
190
190
  case 73:
191
191
  this.$ = [
192
- c[d - 4],
193
- c[d - 1],
194
- { type: "addMessage", from: c[d - 4].actor, to: c[d - 1].actor, signalType: c[d - 2], msg: c[d], activate: !1, centralConnection: y.LINETYPE.CENTRAL_CONNECTION_REVERSE },
195
- { type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[d - 4].actor }
192
+ c[h - 4],
193
+ c[h - 1],
194
+ { type: "addMessage", from: c[h - 4].actor, to: c[h - 1].actor, signalType: c[h - 2], msg: c[h], activate: !1, centralConnection: y.LINETYPE.CENTRAL_CONNECTION_REVERSE },
195
+ { type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[h - 4].actor }
196
196
  ];
197
197
  break;
198
198
  case 74:
199
199
  this.$ = [
200
- c[d - 5],
201
- c[d - 1],
202
- { type: "addMessage", from: c[d - 5].actor, to: c[d - 1].actor, signalType: c[d - 3], msg: c[d], activate: !0, centralConnection: y.LINETYPE.CENTRAL_CONNECTION_DUAL },
203
- { type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[d - 1].actor },
204
- { type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[d - 5].actor }
200
+ c[h - 5],
201
+ c[h - 1],
202
+ { type: "addMessage", from: c[h - 5].actor, to: c[h - 1].actor, signalType: c[h - 3], msg: c[h], activate: !0, centralConnection: y.LINETYPE.CENTRAL_CONNECTION_DUAL },
203
+ { type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[h - 1].actor },
204
+ { type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[h - 5].actor }
205
205
  ];
206
206
  break;
207
207
  case 75:
208
- this.$ = [c[d - 3], c[d - 1], { type: "addMessage", from: c[d - 3].actor, to: c[d - 1].actor, signalType: c[d - 2], msg: c[d] }];
208
+ this.$ = [c[h - 3], c[h - 1], { type: "addMessage", from: c[h - 3].actor, to: c[h - 1].actor, signalType: c[h - 2], msg: c[h] }];
209
209
  break;
210
210
  case 76:
211
211
  this.$ = {
212
212
  type: "addParticipant",
213
- actor: c[d - 1],
214
- config: c[d]
213
+ actor: c[h - 1],
214
+ config: c[h]
215
215
  };
216
216
  break;
217
217
  case 77:
218
- this.$ = c[d - 1].trim();
218
+ this.$ = c[h - 1].trim();
219
219
  break;
220
220
  case 78:
221
- this.$ = { type: "addParticipant", actor: c[d] };
221
+ this.$ = { type: "addParticipant", actor: c[h] };
222
222
  break;
223
223
  case 79:
224
224
  this.$ = y.LINETYPE.SOLID_OPEN;
@@ -299,80 +299,80 @@ var $t = (function() {
299
299
  this.$ = y.LINETYPE.DOTTED_POINT;
300
300
  break;
301
301
  case 105:
302
- this.$ = y.parseMessage(c[d].trim().substring(1));
302
+ this.$ = y.parseMessage(c[h].trim().substring(1));
303
303
  break;
304
304
  }
305
305
  }, "anonymous"),
306
- table: [{ 3: 1, 4: t, 5: a, 6: r }, { 1: [3] }, { 3: 5, 4: t, 5: a, 6: r }, { 3: 6, 4: t, 5: a, 6: r }, e([1, 4, 5, 10, 14, 15, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 51, 53, 54, 56, 61, 62, 63, 64, 73], i, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, e(C, [2, 5]), { 9: 48, 13: 13, 14: E, 15: T, 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, e(C, [2, 7]), e(C, [2, 8]), e(C, [2, 9]), e(C, [2, 15]), { 13: 49, 51: U, 53: G, 54: X }, { 16: [1, 50] }, { 5: [1, 51] }, { 5: [1, 54], 20: [1, 52], 21: [1, 53] }, { 23: 55, 73: Y }, { 23: 56, 73: Y }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, { 5: [1, 61] }, e(C, [2, 30]), e(C, [2, 31]), { 33: [1, 62] }, { 35: [1, 63] }, e(C, [2, 34]), { 16: [1, 64] }, { 16: [1, 65] }, { 16: [1, 66] }, { 16: [1, 67] }, { 16: [1, 68] }, { 16: [1, 69] }, { 16: [1, 70] }, { 16: [1, 71] }, { 23: 72, 55: 73, 73: Nt }, { 23: 75, 55: 76, 73: Nt }, { 23: 77, 73: Y }, { 69: 78, 72: [1, 79], 78: m, 79: D, 80: lt, 81: et, 82: W, 83: se, 84: ie, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, { 57: 106, 59: [1, 107], 67: [1, 108], 68: [1, 109] }, { 23: 110, 73: Y }, { 23: 111, 73: Y }, { 23: 112, 73: Y }, { 23: 113, 73: Y }, e([5, 66, 72, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104], be), e(C, [2, 6]), e(C, [2, 16]), e(mt, [2, 10], { 11: 114 }), e(C, [2, 18]), { 5: [1, 116], 20: [1, 115] }, { 5: [1, 117] }, e(C, [2, 22]), { 5: [1, 118] }, { 5: [1, 119] }, e(C, [2, 25]), e(C, [2, 26]), e(C, [2, 27]), e(C, [2, 28]), e(C, [2, 29]), e(C, [2, 32]), e(C, [2, 33]), e(Pt, i, { 7: 120 }), e(Pt, i, { 7: 121 }), e(Pt, i, { 7: 122 }), e(me, i, { 41: 123, 7: 124 }), e(Ht, i, { 43: 125, 7: 126 }), e(Ht, i, { 7: 126, 43: 127 }), e(Ae, i, { 46: 128, 7: 129 }), e(Pt, i, { 7: 130 }), { 5: [1, 132], 52: [1, 131] }, { 5: [1, 134], 52: [1, 133] }, e(zt, be, { 74: 135, 75: [1, 136] }), { 5: [1, 138], 52: [1, 137] }, { 5: [1, 140], 52: [1, 139] }, { 5: [1, 141] }, { 23: 145, 70: [1, 142], 71: [1, 143], 72: [1, 144], 73: Y }, { 69: 146, 78: m, 79: D, 80: lt, 81: et, 82: W, 83: se, 84: ie, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, e(K, [2, 79]), e(K, [2, 80]), e(K, [2, 81]), e(K, [2, 82]), e(K, [2, 83]), e(K, [2, 84]), e(K, [2, 85]), e(K, [2, 86]), e(K, [2, 87]), e(K, [2, 88]), e(K, [2, 89]), e(K, [2, 90]), e(K, [2, 91]), e(K, [2, 92]), e(K, [2, 93]), e(K, [2, 94]), e(K, [2, 95]), e(K, [2, 96]), e(K, [2, 97]), e(K, [2, 98]), e(K, [2, 99]), e(K, [2, 100]), e(K, [2, 101]), e(K, [2, 102]), e(K, [2, 103]), e(K, [2, 104]), { 23: 147, 73: Y }, { 23: 149, 60: 148, 73: Y }, { 73: [2, 68] }, { 73: [2, 69] }, { 58: 150, 104: ot }, { 58: 152, 104: ot }, { 58: 153, 104: ot }, { 58: 154, 104: ot }, { 4: [1, 157], 5: [1, 159], 12: 156, 13: 158, 17: [1, 155], 51: U, 53: G, 54: X }, { 5: [1, 160] }, e(C, [2, 20]), e(C, [2, 21]), e(C, [2, 23]), e(C, [2, 24]), { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 161], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 162], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 163], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 164] }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [2, 47], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 50: [1, 165], 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 166] }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [2, 45], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 49: [1, 167], 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 17: [1, 168] }, { 17: [1, 169] }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [2, 43], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 48: [1, 170], 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 4: o, 5: s, 8: 8, 9: 10, 10: n, 13: 13, 14: E, 15: T, 17: [1, 171], 18: 16, 19: l, 22: x, 23: 41, 24: u, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: p, 32: f, 34: _, 36: I, 37: L, 38: b, 39: S, 40: A, 42: N, 44: B, 45: V, 47: q, 51: U, 53: G, 54: X, 56: j, 61: H, 62: st, 63: tt, 64: it, 73: Y }, { 16: [1, 172] }, e(C, [2, 50]), { 16: [1, 173] }, e(C, [2, 55]), e(zt, [2, 76]), { 76: [1, 174] }, { 16: [1, 175] }, e(C, [2, 52]), { 16: [1, 176] }, e(C, [2, 57]), e(C, [2, 53]), { 23: 177, 73: Y }, { 23: 178, 73: Y }, { 23: 179, 73: Y }, { 58: 180, 104: ot }, { 23: 181, 72: [1, 182], 73: Y }, { 58: 183, 104: ot }, { 58: 184, 104: ot }, { 66: [1, 185], 104: [2, 67] }, { 5: [2, 60] }, { 5: [2, 105] }, { 5: [2, 61] }, { 5: [2, 62] }, { 5: [2, 63] }, e(C, [2, 17]), e(mt, [2, 11]), { 13: 186, 51: U, 53: G, 54: X }, e(mt, [2, 13]), e(mt, [2, 14]), e(C, [2, 19]), e(C, [2, 35]), e(C, [2, 36]), e(C, [2, 37]), e(C, [2, 38]), { 16: [1, 187] }, e(C, [2, 39]), { 16: [1, 188] }, e(C, [2, 40]), e(C, [2, 41]), { 16: [1, 189] }, e(C, [2, 42]), { 5: [1, 190] }, { 5: [1, 191] }, { 77: [1, 192] }, { 5: [1, 193] }, { 5: [1, 194] }, { 58: 195, 104: ot }, { 58: 196, 104: ot }, { 58: 197, 104: ot }, { 5: [2, 75] }, { 58: 198, 104: ot }, { 23: 199, 73: Y }, { 5: [2, 58] }, { 5: [2, 59] }, { 23: 200, 73: Y }, e(mt, [2, 12]), e(me, i, { 7: 124, 41: 201 }), e(Ht, i, { 7: 126, 43: 202 }), e(Ae, i, { 7: 129, 46: 203 }), e(C, [2, 49]), e(C, [2, 54]), e(zt, [2, 77]), e(C, [2, 51]), e(C, [2, 56]), { 5: [2, 70] }, { 5: [2, 71] }, { 5: [2, 72] }, { 5: [2, 73] }, { 58: 204, 104: ot }, { 104: [2, 66] }, { 17: [2, 48] }, { 17: [2, 46] }, { 17: [2, 44] }, { 5: [2, 74] }],
306
+ table: [{ 3: 1, 4: t, 5: a, 6: r }, { 1: [3] }, { 3: 5, 4: t, 5: a, 6: r }, { 3: 6, 4: t, 5: a, 6: r }, e([1, 4, 5, 10, 14, 15, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 51, 53, 54, 56, 61, 62, 63, 64, 73], i, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: u, 15: d, 18: 16, 19: p, 22: _, 23: 41, 24: E, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: T, 32: g, 34: f, 36: I, 37: L, 38: b, 39: w, 40: A, 42: D, 44: M, 45: V, 47: W, 51: U, 53: G, 54: X, 56: nt, 61: j, 62: H, 63: st, 64: tt, 73: Y }, e(C, [2, 5]), { 9: 48, 13: 13, 14: u, 15: d, 18: 16, 19: p, 22: _, 23: 41, 24: E, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: T, 32: g, 34: f, 36: I, 37: L, 38: b, 39: w, 40: A, 42: D, 44: M, 45: V, 47: W, 51: U, 53: G, 54: X, 56: nt, 61: j, 62: H, 63: st, 64: tt, 73: Y }, e(C, [2, 7]), e(C, [2, 8]), e(C, [2, 9]), e(C, [2, 15]), { 13: 49, 51: U, 53: G, 54: X }, { 16: [1, 50] }, { 5: [1, 51] }, { 5: [1, 54], 20: [1, 52], 21: [1, 53] }, { 23: 55, 73: Y }, { 23: 56, 73: Y }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, { 5: [1, 61] }, e(C, [2, 30]), e(C, [2, 31]), { 33: [1, 62] }, { 35: [1, 63] }, e(C, [2, 34]), { 16: [1, 64] }, { 16: [1, 65] }, { 16: [1, 66] }, { 16: [1, 67] }, { 16: [1, 68] }, { 16: [1, 69] }, { 16: [1, 70] }, { 16: [1, 71] }, { 23: 72, 55: 73, 73: At }, { 23: 75, 55: 76, 73: At }, { 23: 77, 73: Y }, { 69: 78, 72: [1, 79], 78: kt, 79: m, 80: k, 81: lt, 82: et, 83: K, 84: Ot, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, { 57: 106, 59: [1, 107], 67: [1, 108], 68: [1, 109] }, { 23: 110, 73: Y }, { 23: 111, 73: Y }, { 23: 112, 73: Y }, { 23: 113, 73: Y }, e([5, 66, 72, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104], be), e(C, [2, 6]), e(C, [2, 16]), e(St, [2, 10], { 11: 114 }), e(C, [2, 18]), { 5: [1, 116], 20: [1, 115] }, { 5: [1, 117] }, e(C, [2, 22]), { 5: [1, 118] }, { 5: [1, 119] }, e(C, [2, 25]), e(C, [2, 26]), e(C, [2, 27]), e(C, [2, 28]), e(C, [2, 29]), e(C, [2, 32]), e(C, [2, 33]), e(Dt, i, { 7: 120 }), e(Dt, i, { 7: 121 }), e(Dt, i, { 7: 122 }), e(me, i, { 41: 123, 7: 124 }), e(Ut, i, { 43: 125, 7: 126 }), e(Ut, i, { 7: 126, 43: 127 }), e(Ae, i, { 46: 128, 7: 129 }), e(Dt, i, { 7: 130 }), { 5: [1, 132], 52: [1, 131] }, { 5: [1, 134], 52: [1, 133] }, e(Gt, be, { 74: 135, 75: [1, 136] }), { 5: [1, 138], 52: [1, 137] }, { 5: [1, 140], 52: [1, 139] }, { 5: [1, 141] }, { 23: 145, 70: [1, 142], 71: [1, 143], 72: [1, 144], 73: Y }, { 69: 146, 78: kt, 79: m, 80: k, 81: lt, 82: et, 83: K, 84: Ot, 85: ne, 86: oe, 87: ce, 88: le, 89: he, 90: de, 91: Te, 92: pe, 93: Ee, 94: ue, 95: fe, 96: _e, 97: ge, 98: xe, 99: Ie, 100: ye, 101: Re, 102: Oe, 103: Le }, e(F, [2, 79]), e(F, [2, 80]), e(F, [2, 81]), e(F, [2, 82]), e(F, [2, 83]), e(F, [2, 84]), e(F, [2, 85]), e(F, [2, 86]), e(F, [2, 87]), e(F, [2, 88]), e(F, [2, 89]), e(F, [2, 90]), e(F, [2, 91]), e(F, [2, 92]), e(F, [2, 93]), e(F, [2, 94]), e(F, [2, 95]), e(F, [2, 96]), e(F, [2, 97]), e(F, [2, 98]), e(F, [2, 99]), e(F, [2, 100]), e(F, [2, 101]), e(F, [2, 102]), e(F, [2, 103]), e(F, [2, 104]), { 23: 147, 73: Y }, { 23: 149, 60: 148, 73: Y }, { 73: [2, 68] }, { 73: [2, 69] }, { 58: 150, 104: ot }, { 58: 152, 104: ot }, { 58: 153, 104: ot }, { 58: 154, 104: ot }, { 4: [1, 157], 5: [1, 159], 12: 156, 13: 158, 17: [1, 155], 51: U, 53: G, 54: X }, { 5: [1, 160] }, e(C, [2, 20]), e(C, [2, 21]), e(C, [2, 23]), e(C, [2, 24]), { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: u, 15: d, 17: [1, 161], 18: 16, 19: p, 22: _, 23: 41, 24: E, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: T, 32: g, 34: f, 36: I, 37: L, 38: b, 39: w, 40: A, 42: D, 44: M, 45: V, 47: W, 51: U, 53: G, 54: X, 56: nt, 61: j, 62: H, 63: st, 64: tt, 73: Y }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: u, 15: d, 17: [1, 162], 18: 16, 19: p, 22: _, 23: 41, 24: E, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: T, 32: g, 34: f, 36: I, 37: L, 38: b, 39: w, 40: A, 42: D, 44: M, 45: V, 47: W, 51: U, 53: G, 54: X, 56: nt, 61: j, 62: H, 63: st, 64: tt, 73: Y }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: u, 15: d, 17: [1, 163], 18: 16, 19: p, 22: _, 23: 41, 24: E, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: T, 32: g, 34: f, 36: I, 37: L, 38: b, 39: w, 40: A, 42: D, 44: M, 45: V, 47: W, 51: U, 53: G, 54: X, 56: nt, 61: j, 62: H, 63: st, 64: tt, 73: Y }, { 17: [1, 164] }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: u, 15: d, 17: [2, 47], 18: 16, 19: p, 22: _, 23: 41, 24: E, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: T, 32: g, 34: f, 36: I, 37: L, 38: b, 39: w, 40: A, 42: D, 44: M, 45: V, 47: W, 50: [1, 165], 51: U, 53: G, 54: X, 56: nt, 61: j, 62: H, 63: st, 64: tt, 73: Y }, { 17: [1, 166] }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: u, 15: d, 17: [2, 45], 18: 16, 19: p, 22: _, 23: 41, 24: E, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: T, 32: g, 34: f, 36: I, 37: L, 38: b, 39: w, 40: A, 42: D, 44: M, 45: V, 47: W, 49: [1, 167], 51: U, 53: G, 54: X, 56: nt, 61: j, 62: H, 63: st, 64: tt, 73: Y }, { 17: [1, 168] }, { 17: [1, 169] }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: u, 15: d, 17: [2, 43], 18: 16, 19: p, 22: _, 23: 41, 24: E, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: T, 32: g, 34: f, 36: I, 37: L, 38: b, 39: w, 40: A, 42: D, 44: M, 45: V, 47: W, 48: [1, 170], 51: U, 53: G, 54: X, 56: nt, 61: j, 62: H, 63: st, 64: tt, 73: Y }, { 4: n, 5: s, 8: 8, 9: 10, 10: o, 13: 13, 14: u, 15: d, 17: [1, 171], 18: 16, 19: p, 22: _, 23: 41, 24: E, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: O, 31: T, 32: g, 34: f, 36: I, 37: L, 38: b, 39: w, 40: A, 42: D, 44: M, 45: V, 47: W, 51: U, 53: G, 54: X, 56: nt, 61: j, 62: H, 63: st, 64: tt, 73: Y }, { 16: [1, 172] }, e(C, [2, 50]), { 16: [1, 173] }, e(C, [2, 55]), e(Gt, [2, 76]), { 76: [1, 174] }, { 16: [1, 175] }, e(C, [2, 52]), { 16: [1, 176] }, e(C, [2, 57]), e(C, [2, 53]), { 23: 177, 73: Y }, { 23: 178, 73: Y }, { 23: 179, 73: Y }, { 58: 180, 104: ot }, { 23: 181, 72: [1, 182], 73: Y }, { 58: 183, 104: ot }, { 58: 184, 104: ot }, { 66: [1, 185], 104: [2, 67] }, { 5: [2, 60] }, { 5: [2, 105] }, { 5: [2, 61] }, { 5: [2, 62] }, { 5: [2, 63] }, e(C, [2, 17]), e(St, [2, 11]), { 13: 186, 51: U, 53: G, 54: X }, e(St, [2, 13]), e(St, [2, 14]), e(C, [2, 19]), e(C, [2, 35]), e(C, [2, 36]), e(C, [2, 37]), e(C, [2, 38]), { 16: [1, 187] }, e(C, [2, 39]), { 16: [1, 188] }, e(C, [2, 40]), e(C, [2, 41]), { 16: [1, 189] }, e(C, [2, 42]), { 5: [1, 190] }, { 5: [1, 191] }, { 77: [1, 192] }, { 5: [1, 193] }, { 5: [1, 194] }, { 58: 195, 104: ot }, { 58: 196, 104: ot }, { 58: 197, 104: ot }, { 5: [2, 75] }, { 58: 198, 104: ot }, { 23: 199, 73: Y }, { 5: [2, 58] }, { 5: [2, 59] }, { 23: 200, 73: Y }, e(St, [2, 12]), e(me, i, { 7: 124, 41: 201 }), e(Ut, i, { 7: 126, 43: 202 }), e(Ae, i, { 7: 129, 46: 203 }), e(C, [2, 49]), e(C, [2, 54]), e(Gt, [2, 77]), e(C, [2, 51]), e(C, [2, 56]), { 5: [2, 70] }, { 5: [2, 71] }, { 5: [2, 72] }, { 5: [2, 73] }, { 58: 204, 104: ot }, { 104: [2, 66] }, { 17: [2, 48] }, { 17: [2, 46] }, { 17: [2, 44] }, { 5: [2, 74] }],
307
307
  defaultActions: { 5: [2, 1], 6: [2, 2], 108: [2, 68], 109: [2, 69], 150: [2, 60], 151: [2, 105], 152: [2, 61], 153: [2, 62], 154: [2, 63], 180: [2, 75], 183: [2, 58], 184: [2, 59], 195: [2, 70], 196: [2, 71], 197: [2, 72], 198: [2, 73], 200: [2, 66], 201: [2, 48], 202: [2, 46], 203: [2, 44], 204: [2, 74] },
308
- parseError: /* @__PURE__ */ g(function(w, v) {
308
+ parseError: /* @__PURE__ */ x(function(S, v) {
309
309
  if (v.recoverable)
310
- this.trace(w);
310
+ this.trace(S);
311
311
  else {
312
- var k = new Error(w);
313
- throw k.hash = v, k;
312
+ var P = new Error(S);
313
+ throw P.hash = v, P;
314
314
  }
315
315
  }, "parseError"),
316
- parse: /* @__PURE__ */ g(function(w) {
317
- var v = this, k = [0], y = [], z = [null], c = [], At = this.table, d = "", Dt = 0, Se = 0, Ze = 2, we = 1, Qe = c.slice.call(arguments, 1), J = Object.create(this.lexer), gt = { yy: {} };
318
- for (var Gt in this.yy)
319
- Object.prototype.hasOwnProperty.call(this.yy, Gt) && (gt.yy[Gt] = this.yy[Gt]);
320
- J.setInput(w, gt.yy), gt.yy.lexer = J, gt.yy.parser = this, typeof J.yylloc > "u" && (J.yylloc = {});
321
- var Xt = J.yylloc;
322
- c.push(Xt);
316
+ parse: /* @__PURE__ */ x(function(S) {
317
+ var v = this, P = [0], y = [], z = [null], c = [], wt = this.table, h = "", Ct = 0, Se = 0, Ze = 2, we = 1, Qe = c.slice.call(arguments, 1), J = Object.create(this.lexer), gt = { yy: {} };
318
+ for (var Jt in this.yy)
319
+ Object.prototype.hasOwnProperty.call(this.yy, Jt) && (gt.yy[Jt] = this.yy[Jt]);
320
+ J.setInput(S, gt.yy), gt.yy.lexer = J, gt.yy.parser = this, typeof J.yylloc > "u" && (J.yylloc = {});
321
+ var Zt = J.yylloc;
322
+ c.push(Zt);
323
323
  var $e = J.options && J.options.ranges;
324
324
  typeof gt.yy.parseError == "function" ? this.parseError = gt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
325
- function je(nt) {
326
- k.length = k.length - 2 * nt, z.length = z.length - nt, c.length = c.length - nt;
325
+ function je(it) {
326
+ P.length = P.length - 2 * it, z.length = z.length - it, c.length = c.length - it;
327
327
  }
328
- g(je, "popStack");
328
+ x(je, "popStack");
329
329
  function Ne() {
330
- var nt;
331
- return nt = y.pop() || J.lex() || we, typeof nt != "number" && (nt instanceof Array && (y = nt, nt = y.pop()), nt = v.symbols_[nt] || nt), nt;
330
+ var it;
331
+ return it = y.pop() || J.lex() || we, typeof it != "number" && (it instanceof Array && (y = it, it = y.pop()), it = v.symbols_[it] || it), it;
332
332
  }
333
- g(Ne, "lex");
334
- for (var rt, xt, ct, Jt, Ot = {}, vt, Tt, Pe, Ct; ; ) {
335
- if (xt = k[k.length - 1], this.defaultActions[xt] ? ct = this.defaultActions[xt] : ((rt === null || typeof rt > "u") && (rt = Ne()), ct = At[xt] && At[xt][rt]), typeof ct > "u" || !ct.length || !ct[0]) {
336
- var Zt = "";
337
- Ct = [];
338
- for (vt in At[xt])
339
- this.terminals_[vt] && vt > Ze && Ct.push("'" + this.terminals_[vt] + "'");
340
- J.showPosition ? Zt = "Parse error on line " + (Dt + 1) + `:
333
+ x(Ne, "lex");
334
+ for (var rt, xt, ct, Qt, Lt = {}, Mt, Tt, Pe, Bt; ; ) {
335
+ if (xt = P[P.length - 1], this.defaultActions[xt] ? ct = this.defaultActions[xt] : ((rt === null || typeof rt > "u") && (rt = Ne()), ct = wt[xt] && wt[xt][rt]), typeof ct > "u" || !ct.length || !ct[0]) {
336
+ var $t = "";
337
+ Bt = [];
338
+ for (Mt in wt[xt])
339
+ this.terminals_[Mt] && Mt > Ze && Bt.push("'" + this.terminals_[Mt] + "'");
340
+ J.showPosition ? $t = "Parse error on line " + (Ct + 1) + `:
341
341
  ` + J.showPosition() + `
342
- Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt = "Parse error on line " + (Dt + 1) + ": Unexpected " + (rt == we ? "end of input" : "'" + (this.terminals_[rt] || rt) + "'"), this.parseError(Zt, {
342
+ Expecting ` + Bt.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : $t = "Parse error on line " + (Ct + 1) + ": Unexpected " + (rt == we ? "end of input" : "'" + (this.terminals_[rt] || rt) + "'"), this.parseError($t, {
343
343
  text: J.match,
344
344
  token: this.terminals_[rt] || rt,
345
345
  line: J.yylineno,
346
- loc: Xt,
347
- expected: Ct
346
+ loc: Zt,
347
+ expected: Bt
348
348
  });
349
349
  }
350
350
  if (ct[0] instanceof Array && ct.length > 1)
351
351
  throw new Error("Parse Error: multiple actions possible at state: " + xt + ", token: " + rt);
352
352
  switch (ct[0]) {
353
353
  case 1:
354
- k.push(rt), z.push(J.yytext), c.push(J.yylloc), k.push(ct[1]), rt = null, Se = J.yyleng, d = J.yytext, Dt = J.yylineno, Xt = J.yylloc;
354
+ P.push(rt), z.push(J.yytext), c.push(J.yylloc), P.push(ct[1]), rt = null, Se = J.yyleng, h = J.yytext, Ct = J.yylineno, Zt = J.yylloc;
355
355
  break;
356
356
  case 2:
357
- if (Tt = this.productions_[ct[1]][1], Ot.$ = z[z.length - Tt], Ot._$ = {
357
+ if (Tt = this.productions_[ct[1]][1], Lt.$ = z[z.length - Tt], Lt._$ = {
358
358
  first_line: c[c.length - (Tt || 1)].first_line,
359
359
  last_line: c[c.length - 1].last_line,
360
360
  first_column: c[c.length - (Tt || 1)].first_column,
361
361
  last_column: c[c.length - 1].last_column
362
- }, $e && (Ot._$.range = [
362
+ }, $e && (Lt._$.range = [
363
363
  c[c.length - (Tt || 1)].range[0],
364
364
  c[c.length - 1].range[1]
365
- ]), Jt = this.performAction.apply(Ot, [
366
- d,
365
+ ]), Qt = this.performAction.apply(Lt, [
366
+ h,
367
367
  Se,
368
- Dt,
368
+ Ct,
369
369
  gt.yy,
370
370
  ct[1],
371
371
  z,
372
372
  c
373
- ].concat(Qe)), typeof Jt < "u")
374
- return Jt;
375
- Tt && (k = k.slice(0, -1 * Tt * 2), z = z.slice(0, -1 * Tt), c = c.slice(0, -1 * Tt)), k.push(this.productions_[ct[1]][0]), z.push(Ot.$), c.push(Ot._$), Pe = At[k[k.length - 2]][k[k.length - 1]], k.push(Pe);
373
+ ].concat(Qe)), typeof Qt < "u")
374
+ return Qt;
375
+ Tt && (P = P.slice(0, -1 * Tt * 2), z = z.slice(0, -1 * Tt), c = c.slice(0, -1 * Tt)), P.push(this.productions_[ct[1]][0]), z.push(Lt.$), c.push(Lt._$), Pe = wt[P[P.length - 2]][P[P.length - 1]], P.push(Pe);
376
376
  break;
377
377
  case 3:
378
378
  return !0;
@@ -383,15 +383,15 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
383
383
  }, Je = /* @__PURE__ */ (function() {
384
384
  var ut = {
385
385
  EOF: 1,
386
- parseError: /* @__PURE__ */ g(function(v, k) {
386
+ parseError: /* @__PURE__ */ x(function(v, P) {
387
387
  if (this.yy.parser)
388
- this.yy.parser.parseError(v, k);
388
+ this.yy.parser.parseError(v, P);
389
389
  else
390
390
  throw new Error(v);
391
391
  }, "parseError"),
392
392
  // resets the lexer, sets new input
393
- setInput: /* @__PURE__ */ g(function(w, v) {
394
- return this.yy = v || this.yy || {}, this._input = w, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
393
+ setInput: /* @__PURE__ */ x(function(S, v) {
394
+ return this.yy = v || this.yy || {}, this._input = S, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
395
395
  first_line: 1,
396
396
  first_column: 0,
397
397
  last_line: 1,
@@ -399,32 +399,32 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
399
399
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
400
400
  }, "setInput"),
401
401
  // consumes and returns one char from the input
402
- input: /* @__PURE__ */ g(function() {
403
- var w = this._input[0];
404
- this.yytext += w, this.yyleng++, this.offset++, this.match += w, this.matched += w;
405
- var v = w.match(/(?:\r\n?|\n).*/g);
406
- return v ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), w;
402
+ input: /* @__PURE__ */ x(function() {
403
+ var S = this._input[0];
404
+ this.yytext += S, this.yyleng++, this.offset++, this.match += S, this.matched += S;
405
+ var v = S.match(/(?:\r\n?|\n).*/g);
406
+ return v ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), S;
407
407
  }, "input"),
408
408
  // unshifts one char (or a string) into the input
409
- unput: /* @__PURE__ */ g(function(w) {
410
- var v = w.length, k = w.split(/(?:\r\n?|\n)/g);
411
- this._input = w + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - v), this.offset -= v;
409
+ unput: /* @__PURE__ */ x(function(S) {
410
+ var v = S.length, P = S.split(/(?:\r\n?|\n)/g);
411
+ this._input = S + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - v), this.offset -= v;
412
412
  var y = this.match.split(/(?:\r\n?|\n)/g);
413
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), k.length - 1 && (this.yylineno -= k.length - 1);
413
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), P.length - 1 && (this.yylineno -= P.length - 1);
414
414
  var z = this.yylloc.range;
415
415
  return this.yylloc = {
416
416
  first_line: this.yylloc.first_line,
417
417
  last_line: this.yylineno + 1,
418
418
  first_column: this.yylloc.first_column,
419
- last_column: k ? (k.length === y.length ? this.yylloc.first_column : 0) + y[y.length - k.length].length - k[0].length : this.yylloc.first_column - v
419
+ last_column: P ? (P.length === y.length ? this.yylloc.first_column : 0) + y[y.length - P.length].length - P[0].length : this.yylloc.first_column - v
420
420
  }, this.options.ranges && (this.yylloc.range = [z[0], z[0] + this.yyleng - v]), this.yyleng = this.yytext.length, this;
421
421
  }, "unput"),
422
422
  // When called from action, caches matched text and appends it on next action
423
- more: /* @__PURE__ */ g(function() {
423
+ more: /* @__PURE__ */ x(function() {
424
424
  return this._more = !0, this;
425
425
  }, "more"),
426
426
  // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
427
- reject: /* @__PURE__ */ g(function() {
427
+ reject: /* @__PURE__ */ x(function() {
428
428
  if (this.options.backtrack_lexer)
429
429
  this._backtrack = !0;
430
430
  else
@@ -437,28 +437,28 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
437
437
  return this;
438
438
  }, "reject"),
439
439
  // retain first n characters of the match
440
- less: /* @__PURE__ */ g(function(w) {
441
- this.unput(this.match.slice(w));
440
+ less: /* @__PURE__ */ x(function(S) {
441
+ this.unput(this.match.slice(S));
442
442
  }, "less"),
443
443
  // displays already matched input, i.e. for error messages
444
- pastInput: /* @__PURE__ */ g(function() {
445
- var w = this.matched.substr(0, this.matched.length - this.match.length);
446
- return (w.length > 20 ? "..." : "") + w.substr(-20).replace(/\n/g, "");
444
+ pastInput: /* @__PURE__ */ x(function() {
445
+ var S = this.matched.substr(0, this.matched.length - this.match.length);
446
+ return (S.length > 20 ? "..." : "") + S.substr(-20).replace(/\n/g, "");
447
447
  }, "pastInput"),
448
448
  // displays upcoming input, i.e. for error messages
449
- upcomingInput: /* @__PURE__ */ g(function() {
450
- var w = this.match;
451
- return w.length < 20 && (w += this._input.substr(0, 20 - w.length)), (w.substr(0, 20) + (w.length > 20 ? "..." : "")).replace(/\n/g, "");
449
+ upcomingInput: /* @__PURE__ */ x(function() {
450
+ var S = this.match;
451
+ return S.length < 20 && (S += this._input.substr(0, 20 - S.length)), (S.substr(0, 20) + (S.length > 20 ? "..." : "")).replace(/\n/g, "");
452
452
  }, "upcomingInput"),
453
453
  // displays the character position where the lexing error occurred, i.e. for error messages
454
- showPosition: /* @__PURE__ */ g(function() {
455
- var w = this.pastInput(), v = new Array(w.length + 1).join("-");
456
- return w + this.upcomingInput() + `
454
+ showPosition: /* @__PURE__ */ x(function() {
455
+ var S = this.pastInput(), v = new Array(S.length + 1).join("-");
456
+ return S + this.upcomingInput() + `
457
457
  ` + v + "^";
458
458
  }, "showPosition"),
459
459
  // test the lexed token: return FALSE when not a match, otherwise return token
460
- test_match: /* @__PURE__ */ g(function(w, v) {
461
- var k, y, z;
460
+ test_match: /* @__PURE__ */ x(function(S, v) {
461
+ var P, y, z;
462
462
  if (this.options.backtrack_lexer && (z = {
463
463
  yylineno: this.yylineno,
464
464
  yylloc: {
@@ -478,13 +478,13 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
478
478
  yy: this.yy,
479
479
  conditionStack: this.conditionStack.slice(0),
480
480
  done: this.done
481
- }, this.options.ranges && (z.yylloc.range = this.yylloc.range.slice(0))), y = w[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
481
+ }, this.options.ranges && (z.yylloc.range = this.yylloc.range.slice(0))), y = S[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
482
482
  first_line: this.yylloc.last_line,
483
483
  last_line: this.yylineno + 1,
484
484
  first_column: this.yylloc.last_column,
485
- last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + w[0].length
486
- }, this.yytext += w[0], this.match += w[0], this.matches = w, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(w[0].length), this.matched += w[0], k = this.performAction.call(this, this.yy, this, v, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), k)
487
- return k;
485
+ last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + S[0].length
486
+ }, this.yytext += S[0], this.match += S[0], this.matches = S, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(S[0].length), this.matched += S[0], P = this.performAction.call(this, this.yy, this, v, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), P)
487
+ return P;
488
488
  if (this._backtrack) {
489
489
  for (var c in z)
490
490
  this[c] = z[c];
@@ -493,17 +493,17 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
493
493
  return !1;
494
494
  }, "test_match"),
495
495
  // return next match in input
496
- next: /* @__PURE__ */ g(function() {
496
+ next: /* @__PURE__ */ x(function() {
497
497
  if (this.done)
498
498
  return this.EOF;
499
499
  this._input || (this.done = !0);
500
- var w, v, k, y;
500
+ var S, v, P, y;
501
501
  this._more || (this.yytext = "", this.match = "");
502
502
  for (var z = this._currentRules(), c = 0; c < z.length; c++)
503
- if (k = this._input.match(this.rules[z[c]]), k && (!v || k[0].length > v[0].length)) {
504
- if (v = k, y = c, this.options.backtrack_lexer) {
505
- if (w = this.test_match(k, z[c]), w !== !1)
506
- return w;
503
+ if (P = this._input.match(this.rules[z[c]]), P && (!v || P[0].length > v[0].length)) {
504
+ if (v = P, y = c, this.options.backtrack_lexer) {
505
+ if (S = this.test_match(P, z[c]), S !== !1)
506
+ return S;
507
507
  if (this._backtrack) {
508
508
  v = !1;
509
509
  continue;
@@ -512,7 +512,7 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
512
512
  } else if (!this.options.flex)
513
513
  break;
514
514
  }
515
- return v ? (w = this.test_match(v, z[y]), w !== !1 ? w : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
515
+ return v ? (S = this.test_match(v, z[y]), S !== !1 ? S : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
516
516
  ` + this.showPosition(), {
517
517
  text: "",
518
518
  token: null,
@@ -520,37 +520,37 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
520
520
  });
521
521
  }, "next"),
522
522
  // return next match that has a token
523
- lex: /* @__PURE__ */ g(function() {
523
+ lex: /* @__PURE__ */ x(function() {
524
524
  var v = this.next();
525
525
  return v || this.lex();
526
526
  }, "lex"),
527
527
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
528
- begin: /* @__PURE__ */ g(function(v) {
528
+ begin: /* @__PURE__ */ x(function(v) {
529
529
  this.conditionStack.push(v);
530
530
  }, "begin"),
531
531
  // pop the previously active lexer condition state off the condition stack
532
- popState: /* @__PURE__ */ g(function() {
532
+ popState: /* @__PURE__ */ x(function() {
533
533
  var v = this.conditionStack.length - 1;
534
534
  return v > 0 ? this.conditionStack.pop() : this.conditionStack[0];
535
535
  }, "popState"),
536
536
  // produce the lexer rule set which is active for the currently active lexer condition state
537
- _currentRules: /* @__PURE__ */ g(function() {
537
+ _currentRules: /* @__PURE__ */ x(function() {
538
538
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
539
539
  }, "_currentRules"),
540
540
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
541
- topState: /* @__PURE__ */ g(function(v) {
541
+ topState: /* @__PURE__ */ x(function(v) {
542
542
  return v = this.conditionStack.length - 1 - Math.abs(v || 0), v >= 0 ? this.conditionStack[v] : "INITIAL";
543
543
  }, "topState"),
544
544
  // alias for begin(condition)
545
- pushState: /* @__PURE__ */ g(function(v) {
545
+ pushState: /* @__PURE__ */ x(function(v) {
546
546
  this.begin(v);
547
547
  }, "pushState"),
548
548
  // return the number of states currently on the stack
549
- stateStackSize: /* @__PURE__ */ g(function() {
549
+ stateStackSize: /* @__PURE__ */ x(function() {
550
550
  return this.conditionStack.length;
551
551
  }, "stateStackSize"),
552
552
  options: { "case-insensitive": !0 },
553
- performAction: /* @__PURE__ */ g(function(v, k, y, z) {
553
+ performAction: /* @__PURE__ */ x(function(v, P, y, z) {
554
554
  switch (y) {
555
555
  case 0:
556
556
  return 5;
@@ -575,15 +575,15 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
575
575
  case 10:
576
576
  return this.popState(), this.popState(), 77;
577
577
  case 11:
578
- return k.yytext = k.yytext.trim(), 73;
578
+ return P.yytext = P.yytext.trim(), 73;
579
579
  case 12:
580
- return k.yytext = k.yytext.trim(), this.begin("ALIAS"), 73;
580
+ return P.yytext = P.yytext.trim(), this.begin("ALIAS"), 73;
581
581
  case 13:
582
- return k.yytext = k.yytext.trim(), this.popState(), 73;
582
+ return P.yytext = P.yytext.trim(), this.popState(), 73;
583
583
  case 14:
584
584
  return this.popState(), 10;
585
585
  case 15:
586
- return k.yytext = k.yytext.trim(), this.popState(), 10;
586
+ return P.yytext = P.yytext.trim(), this.popState(), 10;
587
587
  case 16:
588
588
  return this.begin("LINE"), 15;
589
589
  case 17:
@@ -675,7 +675,7 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
675
675
  case 59:
676
676
  return 5;
677
677
  case 60:
678
- return k.yytext = k.yytext.trim(), 73;
678
+ return P.yytext = P.yytext.trim(), 73;
679
679
  case 61:
680
680
  return 80;
681
681
  case 62:
@@ -749,14 +749,14 @@ Expecting ` + Ct.join(", ") + ", got '" + (this.terminals_[rt] || rt) + "'" : Zt
749
749
  };
750
750
  return ut;
751
751
  })();
752
- Ut.lexer = Je;
753
- function kt() {
752
+ Xt.lexer = Je;
753
+ function vt() {
754
754
  this.yy = {};
755
755
  }
756
- return g(kt, "Parser"), kt.prototype = Ut, Ut.Parser = kt, new kt();
756
+ return x(vt, "Parser"), vt.prototype = Xt, Xt.Parser = vt, new vt();
757
757
  })();
758
- $t.parser = $t;
759
- var fr = $t, _r = {
758
+ te.parser = te;
759
+ var fr = te, _r = {
760
760
  SOLID: 0,
761
761
  DOTTED: 1,
762
762
  NOTE: 2,
@@ -815,14 +815,14 @@ var fr = $t, _r = {
815
815
  LEFTOF: 0,
816
816
  RIGHTOF: 1,
817
817
  OVER: 2
818
- }, Vt = {
818
+ }, Wt = {
819
819
  ACTOR: "actor",
820
820
  CONTROL: "control",
821
821
  DATABASE: "database",
822
822
  ENTITY: "entity"
823
823
  }, Ir = class {
824
824
  constructor() {
825
- this.state = new ur(() => ({
825
+ this.state = new tr(() => ({
826
826
  prevActor: void 0,
827
827
  actors: /* @__PURE__ */ new Map(),
828
828
  createdActors: /* @__PURE__ */ new Map(),
@@ -835,10 +835,10 @@ var fr = $t, _r = {
835
835
  currentBox: void 0,
836
836
  lastCreated: void 0,
837
837
  lastDestroyed: void 0
838
- })), this.setAccTitle = ke, this.setAccDescription = ar, this.setDiagramTitle = sr, this.getAccTitle = ir, this.getAccDescription = nr, this.getDiagramTitle = or, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap($().wrap), this.LINETYPE = _r, this.ARROWTYPE = gr, this.PLACEMENT = xr;
838
+ })), this.setAccTitle = ke, this.setAccDescription = sr, this.setDiagramTitle = ir, this.getAccTitle = nr, this.getAccDescription = or, this.getDiagramTitle = cr, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap($().wrap), this.LINETYPE = _r, this.ARROWTYPE = gr, this.PLACEMENT = xr;
839
839
  }
840
840
  static {
841
- g(this, "SequenceDB");
841
+ x(this, "SequenceDB");
842
842
  }
843
843
  addBox(e) {
844
844
  this.state.records.boxes.push({
@@ -849,27 +849,27 @@ var fr = $t, _r = {
849
849
  }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
850
850
  }
851
851
  addActor(e, t, a, r, i) {
852
- let o = this.state.records.currentBox, s;
852
+ let n = this.state.records.currentBox, s;
853
853
  if (i !== void 0) {
854
- let E;
854
+ let u;
855
855
  i.includes(`
856
- `) ? E = i + `
857
- ` : E = `{
856
+ `) ? u = i + `
857
+ ` : u = `{
858
858
  ` + i + `
859
- }`, s = cr(E, { schema: lr });
859
+ }`, s = lr(u, { schema: hr });
860
860
  }
861
861
  r = s?.type ?? r, s?.alias && (!a || a.text === t) && (a = { text: s.alias, wrap: a?.wrap, type: r });
862
- const n = this.state.records.actors.get(e);
863
- if (n) {
864
- if (this.state.records.currentBox && n.box && this.state.records.currentBox !== n.box)
862
+ const o = this.state.records.actors.get(e);
863
+ if (o) {
864
+ if (this.state.records.currentBox && o.box && this.state.records.currentBox !== o.box)
865
865
  throw new Error(
866
- `A same participant should only be defined in one Box: ${n.name} can't be in '${n.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`
866
+ `A same participant should only be defined in one Box: ${o.name} can't be in '${o.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`
867
867
  );
868
- if (o = n.box ? n.box : this.state.records.currentBox, n.box = o, n && t === n.name && a == null)
868
+ if (n = o.box ? o.box : this.state.records.currentBox, o.box = n, o && t === o.name && a == null)
869
869
  return;
870
870
  }
871
871
  if (a?.text == null && (a = { text: t, type: r }), (r == null || a.text == null) && (a = { text: t, type: r }), this.state.records.actors.set(e, {
872
- box: o,
872
+ box: n,
873
873
  name: t,
874
874
  description: a.text,
875
875
  wrap: a.wrap ?? this.autoWrap(),
@@ -880,8 +880,8 @@ var fr = $t, _r = {
880
880
  rectData: null,
881
881
  type: r ?? "participant"
882
882
  }), this.state.records.prevActor) {
883
- const E = this.state.records.actors.get(this.state.records.prevActor);
884
- E && (E.nextActor = e);
883
+ const u = this.state.records.actors.get(this.state.records.prevActor);
884
+ u && (u.nextActor = e);
885
885
  }
886
886
  this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(e), this.state.records.prevActor = e;
887
887
  }
@@ -903,16 +903,16 @@ var fr = $t, _r = {
903
903
  answer: r
904
904
  });
905
905
  }
906
- addSignal(e, t, a, r, i = !1, o) {
906
+ addSignal(e, t, a, r, i = !1, n) {
907
907
  if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
908
- const n = new Error("Trying to inactivate an inactive participant (" + e + ")");
909
- throw n.hash = {
908
+ const o = new Error("Trying to inactivate an inactive participant (" + e + ")");
909
+ throw o.hash = {
910
910
  text: "->>-",
911
911
  token: "->>-",
912
912
  line: "1",
913
913
  loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
914
914
  expected: ["'ACTIVE_PARTICIPANT'"]
915
- }, n;
915
+ }, o;
916
916
  }
917
917
  return this.state.records.messages.push({
918
918
  id: this.state.records.messages.length.toString(),
@@ -922,7 +922,7 @@ var fr = $t, _r = {
922
922
  wrap: a?.wrap ?? this.autoWrap(),
923
923
  type: r,
924
924
  activate: i,
925
- centralConnection: o ?? 0
925
+ centralConnection: n ?? 0
926
926
  }), !0;
927
927
  }
928
928
  hasAtLeastOneBox() {
@@ -975,7 +975,7 @@ var fr = $t, _r = {
975
975
  return this.state.records.wrapEnabled !== void 0 ? this.state.records.wrapEnabled : $().sequence?.wrap ?? !1;
976
976
  }
977
977
  clear() {
978
- this.state.reset(), hr();
978
+ this.state.reset(), dr();
979
979
  }
980
980
  parseMessage(e) {
981
981
  const t = e.trim(), { wrap: a, cleanedText: r } = this.extractWrap(t), i = {
@@ -996,9 +996,9 @@ var fr = $t, _r = {
996
996
  const s = new Option().style;
997
997
  s.color = a, s.color !== a && (a = "transparent", r = e.trim());
998
998
  }
999
- const { wrap: i, cleanedText: o } = this.extractWrap(r);
999
+ const { wrap: i, cleanedText: n } = this.extractWrap(r);
1000
1000
  return {
1001
- text: o ? Bt(o, $()) : void 0,
1001
+ text: n ? Yt(n, $()) : void 0,
1002
1002
  color: a,
1003
1003
  wrap: i
1004
1004
  };
@@ -1023,7 +1023,7 @@ var fr = $t, _r = {
1023
1023
  addLinks(e, t) {
1024
1024
  const a = this.getActor(e);
1025
1025
  try {
1026
- let r = Bt(t.text, $());
1026
+ let r = Yt(t.text, $());
1027
1027
  r = r.replace(/&equals;/g, "="), r = r.replace(/&amp;/g, "&");
1028
1028
  const i = JSON.parse(r);
1029
1029
  this.insertLinks(a, i);
@@ -1035,11 +1035,11 @@ var fr = $t, _r = {
1035
1035
  const a = this.getActor(e);
1036
1036
  try {
1037
1037
  const r = {};
1038
- let i = Bt(t.text, $());
1039
- const o = i.indexOf("@");
1038
+ let i = Yt(t.text, $());
1039
+ const n = i.indexOf("@");
1040
1040
  i = i.replace(/&equals;/g, "="), i = i.replace(/&amp;/g, "&");
1041
- const s = i.slice(0, o - 1).trim(), n = i.slice(o + 1).trim();
1042
- r[s] = n, this.insertLinks(a, r);
1041
+ const s = i.slice(0, n - 1).trim(), o = i.slice(n + 1).trim();
1042
+ r[s] = o, this.insertLinks(a, r);
1043
1043
  } catch (r) {
1044
1044
  at.error("error while parsing actor link text", r);
1045
1045
  }
@@ -1054,7 +1054,7 @@ var fr = $t, _r = {
1054
1054
  addProperties(e, t) {
1055
1055
  const a = this.getActor(e);
1056
1056
  try {
1057
- const r = Bt(t.text, $()), i = JSON.parse(r);
1057
+ const r = Yt(t.text, $()), i = JSON.parse(r);
1058
1058
  this.insertProperties(a, i);
1059
1059
  } catch (r) {
1060
1060
  at.error("error while parsing actor properties text", r);
@@ -1073,8 +1073,8 @@ var fr = $t, _r = {
1073
1073
  addDetails(e, t) {
1074
1074
  const a = this.getActor(e), r = document.getElementById(t.text);
1075
1075
  try {
1076
- const i = r.innerHTML, o = JSON.parse(i);
1077
- o.properties && this.insertProperties(a, o.properties), o.links && this.insertLinks(a, o.links);
1076
+ const i = r.innerHTML, n = JSON.parse(i);
1077
+ n.properties && this.insertProperties(a, n.properties), n.links && this.insertLinks(a, n.links);
1078
1078
  } catch (i) {
1079
1079
  at.error("error while parsing actor details text", i);
1080
1080
  }
@@ -1233,7 +1233,7 @@ var fr = $t, _r = {
1233
1233
  getConfig() {
1234
1234
  return $().sequence;
1235
1235
  }
1236
- }, yr = /* @__PURE__ */ g((e) => {
1236
+ }, yr = /* @__PURE__ */ x((e) => {
1237
1237
  const t = e.dropShadow ?? "none", { look: a } = $();
1238
1238
  return `.actor {
1239
1239
  stroke: ${e.actorBorder};
@@ -1375,74 +1375,74 @@ var fr = $t, _r = {
1375
1375
  stroke: ${e.nodeBorder};
1376
1376
  }
1377
1377
  `;
1378
- }, "getStyles"), Rr = yr, It = 36, ft = "actor-top", _t = "actor-bottom", Kt = "actor-box", yt = "actor-man", pt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), St = /* @__PURE__ */ g(function(e, t) {
1379
- const a = Er(e, t);
1380
- return Yt().look === "neo" && a.attr("data-look", "neo"), a;
1381
- }, "drawRect"), Or = /* @__PURE__ */ g(function(e, t, a, r, i) {
1378
+ }, "getStyles"), Rr = yr, It = 36, ft = "actor-top", _t = "actor-bottom", qt = "actor-box", yt = "actor-man", pt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Nt = /* @__PURE__ */ x(function(e, t) {
1379
+ const a = ur(e, t);
1380
+ return Kt().look === "neo" && a.attr("data-look", "neo"), a;
1381
+ }, "drawRect"), Or = /* @__PURE__ */ x(function(e, t, a, r, i) {
1382
1382
  if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0)
1383
1383
  return { height: 0, width: 0 };
1384
- const o = t.links, s = t.actorCnt, n = t.rectData;
1385
- var E = "none";
1386
- i && (E = "block !important");
1387
- const T = e.append("g");
1388
- T.attr("id", "actor" + s + "_popup"), T.attr("class", "actorPopupMenu"), T.attr("display", E);
1389
- var l = "";
1390
- n.class !== void 0 && (l = " " + n.class);
1391
- let x = n.width > a ? n.width : a;
1392
- const u = T.append("rect");
1393
- if (u.attr("class", "actorPopupMenuPanel" + l), u.attr("x", n.x), u.attr("y", n.height), u.attr("fill", n.fill), u.attr("stroke", n.stroke), u.attr("width", x), u.attr("height", n.height), u.attr("rx", n.rx), u.attr("ry", n.ry), o != null) {
1384
+ const n = t.links, s = t.actorCnt, o = t.rectData;
1385
+ var u = "none";
1386
+ i && (u = "block !important");
1387
+ const d = e.append("g");
1388
+ d.attr("id", "actor" + s + "_popup"), d.attr("class", "actorPopupMenu"), d.attr("display", u);
1389
+ var p = "";
1390
+ o.class !== void 0 && (p = " " + o.class);
1391
+ let _ = o.width > a ? o.width : a;
1392
+ const E = d.append("rect");
1393
+ if (E.attr("class", "actorPopupMenuPanel" + p), E.attr("x", o.x), E.attr("y", o.height), E.attr("fill", o.fill), E.attr("stroke", o.stroke), E.attr("width", _), E.attr("height", o.height), E.attr("rx", o.rx), E.attr("ry", o.ry), n != null) {
1394
1394
  var O = 20;
1395
- for (let _ in o) {
1396
- var p = T.append("a"), f = Ce.sanitizeUrl(o[_]);
1397
- p.attr("xlink:href", f), p.attr("target", "_blank"), Ur(r)(
1395
+ for (let f in n) {
1396
+ var T = d.append("a"), g = Ce.sanitizeUrl(n[f]);
1397
+ T.attr("xlink:href", g), T.attr("target", "_blank"), Ur(r)(
1398
+ f,
1399
+ T,
1400
+ o.x + 10,
1401
+ o.height + O,
1398
1402
  _,
1399
- p,
1400
- n.x + 10,
1401
- n.height + O,
1402
- x,
1403
1403
  20,
1404
1404
  { class: "actor" },
1405
1405
  r
1406
1406
  ), O += 30;
1407
1407
  }
1408
1408
  }
1409
- return u.attr("height", O), { height: n.height + O, width: x };
1410
- }, "drawPopup"), Ft = /* @__PURE__ */ g(function(e) {
1409
+ return E.attr("height", O), { height: o.height + O, width: _ };
1410
+ }, "drawPopup"), Ht = /* @__PURE__ */ x(function(e) {
1411
1411
  return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1412
- }, "popupMenuToggle"), Wt = /* @__PURE__ */ g(async function(e, t, a = null) {
1412
+ }, "popupMenuToggle"), Ft = /* @__PURE__ */ x(async function(e, t, a = null) {
1413
1413
  let r = e.append("foreignObject");
1414
- const i = await Be(t.text, Yt()), s = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
1414
+ const i = await Be(t.text, Kt()), s = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
1415
1415
  if (r.attr("height", Math.round(s.height)).attr("width", Math.round(s.width)), t.class === "noteText") {
1416
- const n = e.node().firstChild;
1417
- n.setAttribute("height", s.height + 2 * t.textMargin);
1418
- const E = n.getBBox();
1419
- r.attr("x", Math.round(E.x + E.width / 2 - s.width / 2)).attr("y", Math.round(E.y + E.height / 2 - s.height / 2));
1416
+ const o = e.node().firstChild;
1417
+ o.setAttribute("height", s.height + 2 * t.textMargin);
1418
+ const u = o.getBBox();
1419
+ r.attr("x", Math.round(u.x + u.width / 2 - s.width / 2)).attr("y", Math.round(u.y + u.height / 2 - s.height / 2));
1420
1420
  } else if (a) {
1421
- let { startx: n, stopx: E, starty: T } = a;
1422
- if (n > E) {
1423
- const l = n;
1424
- n = E, E = l;
1421
+ let { startx: o, stopx: u, starty: d } = a;
1422
+ if (o > u) {
1423
+ const p = o;
1424
+ o = u, u = p;
1425
1425
  }
1426
- r.attr("x", Math.round(n + Math.abs(n - E) / 2 - s.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(T)) : r.attr("y", Math.round(T - s.height));
1426
+ r.attr("x", Math.round(o + Math.abs(o - u) / 2 - s.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(d)) : r.attr("y", Math.round(d - s.height));
1427
1427
  }
1428
1428
  return [r];
1429
- }, "drawKatex"), bt = /* @__PURE__ */ g(function(e, t) {
1429
+ }, "drawKatex"), mt = /* @__PURE__ */ x(function(e, t) {
1430
1430
  let a = 0, r = 0;
1431
- const i = t.text.split(P.lineBreakRegex), [o, s] = Me(t.fontSize);
1432
- let n = [], E = 0, T = /* @__PURE__ */ g(() => t.y, "yfunc");
1431
+ const i = t.text.split(N.lineBreakRegex), [n, s] = Me(t.fontSize);
1432
+ let o = [], u = 0, d = /* @__PURE__ */ x(() => t.y, "yfunc");
1433
1433
  if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0)
1434
1434
  switch (t.valign) {
1435
1435
  case "top":
1436
1436
  case "start":
1437
- T = /* @__PURE__ */ g(() => Math.round(t.y + t.textMargin), "yfunc");
1437
+ d = /* @__PURE__ */ x(() => Math.round(t.y + t.textMargin), "yfunc");
1438
1438
  break;
1439
1439
  case "middle":
1440
1440
  case "center":
1441
- T = /* @__PURE__ */ g(() => Math.round(t.y + (a + r + t.textMargin) / 2), "yfunc");
1441
+ d = /* @__PURE__ */ x(() => Math.round(t.y + (a + r + t.textMargin) / 2), "yfunc");
1442
1442
  break;
1443
1443
  case "bottom":
1444
1444
  case "end":
1445
- T = /* @__PURE__ */ g(() => Math.round(
1445
+ d = /* @__PURE__ */ x(() => Math.round(
1446
1446
  t.y + (a + r + 2 * t.textMargin) - t.textMargin
1447
1447
  ), "yfunc");
1448
1448
  break;
@@ -1462,270 +1462,270 @@ var fr = $t, _r = {
1462
1462
  t.x = Math.round(t.x + t.width - t.textMargin), t.anchor = "end", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
1463
1463
  break;
1464
1464
  }
1465
- for (let [l, x] of i.entries()) {
1466
- t.textMargin !== void 0 && t.textMargin === 0 && o !== void 0 && (E = l * o);
1467
- const u = e.append("text");
1468
- u.attr("x", t.x), u.attr("y", T()), t.anchor !== void 0 && u.attr("text-anchor", t.anchor).attr("dominant-baseline", t.dominantBaseline).attr("alignment-baseline", t.alignmentBaseline), t.fontFamily !== void 0 && u.style("font-family", t.fontFamily), s !== void 0 && u.style("font-size", s), t.fontWeight !== void 0 && u.style("font-weight", t.fontWeight), t.fill !== void 0 && u.attr("fill", t.fill), t.class !== void 0 && u.attr("class", t.class), t.dy !== void 0 ? u.attr("dy", t.dy) : E !== 0 && u.attr("dy", E);
1469
- const O = x || dr;
1465
+ for (let [p, _] of i.entries()) {
1466
+ t.textMargin !== void 0 && t.textMargin === 0 && n !== void 0 && (u = p * n);
1467
+ const E = e.append("text");
1468
+ E.attr("x", t.x), E.attr("y", d()), t.anchor !== void 0 && E.attr("text-anchor", t.anchor).attr("dominant-baseline", t.dominantBaseline).attr("alignment-baseline", t.alignmentBaseline), t.fontFamily !== void 0 && E.style("font-family", t.fontFamily), s !== void 0 && E.style("font-size", s), t.fontWeight !== void 0 && E.style("font-weight", t.fontWeight), t.fill !== void 0 && E.attr("fill", t.fill), t.class !== void 0 && E.attr("class", t.class), t.dy !== void 0 ? E.attr("dy", t.dy) : u !== 0 && E.attr("dy", u);
1469
+ const O = _ || Tr;
1470
1470
  if (t.tspan) {
1471
- const p = u.append("tspan");
1472
- p.attr("x", t.x), t.fill !== void 0 && p.attr("fill", t.fill), p.text(O);
1471
+ const T = E.append("tspan");
1472
+ T.attr("x", t.x), t.fill !== void 0 && T.attr("fill", t.fill), T.text(O);
1473
1473
  } else
1474
- u.text(O);
1475
- t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (u._groups || u)[0][0].getBBox().height, a = r), n.push(u);
1474
+ E.text(O);
1475
+ t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (E._groups || E)[0][0].getBBox().height, a = r), o.push(E);
1476
1476
  }
1477
- return n;
1478
- }, "drawText"), Ve = /* @__PURE__ */ g(function(e, t) {
1479
- function a(i, o, s, n, E) {
1480
- return i + "," + o + " " + (i + s) + "," + o + " " + (i + s) + "," + (o + n - E) + " " + (i + s - E * 1.2) + "," + (o + n) + " " + i + "," + (o + n);
1477
+ return o;
1478
+ }, "drawText"), Ve = /* @__PURE__ */ x(function(e, t) {
1479
+ function a(i, n, s, o, u) {
1480
+ return i + "," + n + " " + (i + s) + "," + n + " " + (i + s) + "," + (n + o - u) + " " + (i + s - u * 1.2) + "," + (n + o) + " " + i + "," + (n + o);
1481
1481
  }
1482
- g(a, "genPoints");
1482
+ x(a, "genPoints");
1483
1483
  const r = e.append("polygon");
1484
- return r.attr("points", a(t.x, t.y, t.width, t.height, 7)), r.attr("class", "labelBox"), t.y = t.y + t.height / 2, bt(e, t), r;
1485
- }, "drawLabel"), M = -1, Ye = /* @__PURE__ */ g((e, t, a, r) => {
1484
+ return r.attr("points", a(t.x, t.y, t.width, t.height, 7)), r.attr("class", "labelBox"), t.y = t.y + t.height / 2, mt(e, t), r;
1485
+ }, "drawLabel"), B = -1, Ye = /* @__PURE__ */ x((e, t, a, r) => {
1486
1486
  e.select && a.forEach((i) => {
1487
- const o = t.get(i), s = e.select("#actor" + o.actorCnt);
1488
- !r.mirrorActors && o.stopy ? s.attr("y2", o.stopy + o.height / 2) : r.mirrorActors && s.attr("y2", o.stopy);
1487
+ const n = t.get(i), s = e.select("#actor" + n.actorCnt);
1488
+ !r.mirrorActors && n.stopy ? s.attr("y2", n.stopy + n.height / 2) : r.mirrorActors && s.attr("y2", n.stopy);
1489
1489
  });
1490
- }, "fixLifeLineHeights"), Lr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1491
- const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower();
1492
- var p = O;
1493
- r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo"));
1494
- const f = dt();
1495
- var _ = "actor";
1496
- t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, f.x = t.x, f.y = o, f.width = t.width, f.height = t.height, f.class = _, f.rx = 3, f.ry = 3, f.name = t.name, E === "neo" && (f.rx = 6, f.ry = 6);
1497
- const I = St(p, f), L = i.get(t.name) ?? 0;
1498
- if (pt.has(T) && (I.style("stroke", u[L % u.length]), I.style("fill", x[L % u.length])), E === "neo" && I.attr("filter", "url(#drop-shadow)"), t.rectData = f, t.properties?.icon) {
1499
- const S = t.properties.icon.trim();
1500
- S.charAt(0) === "@" ? re(p, f.x + f.width - 20, f.y + 10, S.substr(1)) : ae(p, f.x + f.width - 20, f.y + 10, S);
1501
- }
1502
- r || (p.attr("data-et", "participant"), p.attr("data-type", "participant"), p.attr("data-id", t.name)), Et(a, Q(t.description))(
1490
+ }, "fixLifeLineHeights"), Lr = /* @__PURE__ */ x(function(e, t, a, r, i) {
1491
+ const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height, { look: u, theme: d, themeVariables: p } = a, { bkgColorArray: _, borderColorArray: E } = p, O = e.append("g").lower();
1492
+ var T = O;
1493
+ r || (B++, Object.keys(t.links || {}).length && !a.forceMenus && T.attr("onclick", Ht(`actor${B}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + B).attr("x1", s).attr("y1", o).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = O.append("g"), t.actorCnt = B, t.links != null && T.attr("id", "root-" + B), u === "neo" && T.attr("data-look", "neo"));
1494
+ const g = dt();
1495
+ var f = "actor";
1496
+ t.properties?.class ? f = t.properties.class : g.fill = "#eaeaea", r ? f += ` ${_t}` : f += ` ${ft}`, g.x = t.x, g.y = n, g.width = t.width, g.height = t.height, g.class = f, g.rx = 3, g.ry = 3, g.name = t.name, u === "neo" && (g.rx = 6, g.ry = 6);
1497
+ const I = Nt(T, g), L = i.get(t.name) ?? 0;
1498
+ if (pt.has(d) && (I.style("stroke", E[L % E.length]), I.style("fill", _[L % E.length])), u === "neo" && I.attr("filter", "url(#drop-shadow)"), t.rectData = g, t.properties?.icon) {
1499
+ const w = t.properties.icon.trim();
1500
+ w.charAt(0) === "@" ? se(T, g.x + g.width - 20, g.y + 10, w.substr(1)) : ie(T, g.x + g.width - 20, g.y + 10, w);
1501
+ }
1502
+ r || (T.attr("data-et", "participant"), T.attr("data-type", "participant"), T.attr("data-id", t.name)), Et(a, Q(t.description))(
1503
1503
  t.description,
1504
- p,
1505
- f.x,
1506
- f.y,
1507
- f.width,
1508
- f.height,
1509
- { class: `actor ${Kt}` },
1504
+ T,
1505
+ g.x,
1506
+ g.y,
1507
+ g.width,
1508
+ g.height,
1509
+ { class: `actor ${qt}` },
1510
1510
  a
1511
1511
  );
1512
1512
  let b = t.height;
1513
1513
  if (I.node) {
1514
- const S = I.node().getBBox();
1515
- t.height = S.height, b = S.height;
1514
+ const w = I.node().getBBox();
1515
+ t.height = w.height, b = w.height;
1516
1516
  }
1517
1517
  return b;
1518
- }, "drawActorTypeParticipant"), br = /* @__PURE__ */ g(function(e, t, a, r, i) {
1519
- const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower();
1520
- var p = O;
1521
- r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo"));
1522
- const f = dt();
1523
- var _ = "actor";
1524
- t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, f.x = t.x, f.y = o, f.width = t.width, f.height = t.height, f.class = _, f.name = t.name;
1518
+ }, "drawActorTypeParticipant"), br = /* @__PURE__ */ x(function(e, t, a, r, i) {
1519
+ const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height, { look: u, theme: d, themeVariables: p } = a, { bkgColorArray: _, borderColorArray: E } = p, O = e.append("g").lower();
1520
+ var T = O;
1521
+ r || (B++, Object.keys(t.links || {}).length && !a.forceMenus && T.attr("onclick", Ht(`actor${B}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + B).attr("x1", s).attr("y1", o).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = O.append("g"), t.actorCnt = B, t.links != null && T.attr("id", "root-" + B), u === "neo" && T.attr("data-look", "neo"));
1522
+ const g = dt();
1523
+ var f = "actor";
1524
+ t.properties?.class ? f = t.properties.class : g.fill = "#eaeaea", r ? f += ` ${_t}` : f += ` ${ft}`, g.x = t.x, g.y = n, g.width = t.width, g.height = t.height, g.class = f, g.name = t.name;
1525
1525
  const I = 6, L = {
1526
- ...f,
1527
- x: f.x + -I,
1528
- y: f.y + +I,
1526
+ ...g,
1527
+ x: g.x + -I,
1528
+ y: g.y + +I,
1529
1529
  class: "actor"
1530
- }, b = St(p, f), S = St(p, L);
1531
- t.rectData = f, E === "neo" && p.attr("filter", "url(#drop-shadow)");
1530
+ }, b = Nt(T, g), w = Nt(T, L);
1531
+ t.rectData = g, u === "neo" && T.attr("filter", "url(#drop-shadow)");
1532
1532
  const A = i.get(t.name) ?? 0;
1533
- if (pt.has(T) && (b.style("stroke", u[A % u.length]), b.style("fill", x[A % u.length]), S.style("stroke", u[A % u.length]), S.style("fill", x[A % u.length])), t.properties?.icon) {
1534
- const B = t.properties.icon.trim();
1535
- B.charAt(0) === "@" ? re(p, f.x + f.width - 20, f.y + 10, B.substr(1)) : ae(p, f.x + f.width - 20, f.y + 10, B);
1533
+ if (pt.has(d) && (b.style("stroke", E[A % E.length]), b.style("fill", _[A % E.length]), w.style("stroke", E[A % E.length]), w.style("fill", _[A % E.length])), t.properties?.icon) {
1534
+ const M = t.properties.icon.trim();
1535
+ M.charAt(0) === "@" ? se(T, g.x + g.width - 20, g.y + 10, M.substr(1)) : ie(T, g.x + g.width - 20, g.y + 10, M);
1536
1536
  }
1537
1537
  Et(a, Q(t.description))(
1538
1538
  t.description,
1539
- p,
1540
- f.x - I,
1541
- f.y + I,
1542
- f.width,
1543
- f.height,
1544
- { class: `actor ${Kt}` },
1539
+ T,
1540
+ g.x - I,
1541
+ g.y + I,
1542
+ g.width,
1543
+ g.height,
1544
+ { class: `actor ${qt}` },
1545
1545
  a
1546
1546
  );
1547
- let N = t.height;
1547
+ let D = t.height;
1548
1548
  if (b.node) {
1549
- const B = b.node().getBBox();
1550
- t.height = B.height, N = B.height;
1551
- }
1552
- return r || (p.attr("data-et", "participant"), p.attr("data-type", "collections"), p.attr("data-id", t.name)), N;
1553
- }, "drawActorTypeCollections"), mr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1554
- const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower();
1555
- let p = O;
1556
- r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && p.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), p = O.append("g"), t.actorCnt = M, t.links != null && p.attr("id", "root-" + M), E === "neo" && p.attr("data-look", "neo"));
1557
- const f = dt();
1558
- let _ = "actor";
1559
- t.properties?.class ? _ = t.properties.class : f.fill = "#eaeaea", r ? _ += ` ${_t}` : _ += ` ${ft}`, p.attr("class", _), f.x = t.x, f.y = o, f.width = t.width, f.height = t.height, f.name = t.name;
1560
- const I = f.height / 2, L = I / (2.5 + f.height / 50), b = p.append("g"), S = p.append("g"), A = `M ${f.x},${f.y + I}
1561
- a ${L},${I} 0 0 0 0,${f.height}
1562
- h ${f.width - 2 * L}
1563
- a ${L},${I} 0 0 0 0,-${f.height}
1549
+ const M = b.node().getBBox();
1550
+ t.height = M.height, D = M.height;
1551
+ }
1552
+ return r || (T.attr("data-et", "participant"), T.attr("data-type", "collections"), T.attr("data-id", t.name)), D;
1553
+ }, "drawActorTypeCollections"), mr = /* @__PURE__ */ x(function(e, t, a, r, i) {
1554
+ const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height, { look: u, theme: d, themeVariables: p } = a, { bkgColorArray: _, borderColorArray: E } = p, O = e.append("g").lower();
1555
+ let T = O;
1556
+ r || (B++, Object.keys(t.links || {}).length && !a.forceMenus && T.attr("onclick", Ht(`actor${B}_popup`)).attr("cursor", "pointer"), T.append("line").attr("id", "actor" + B).attr("x1", s).attr("y1", o).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), T = O.append("g"), t.actorCnt = B, t.links != null && T.attr("id", "root-" + B), u === "neo" && T.attr("data-look", "neo"));
1557
+ const g = dt();
1558
+ let f = "actor";
1559
+ t.properties?.class ? f = t.properties.class : g.fill = "#eaeaea", r ? f += ` ${_t}` : f += ` ${ft}`, T.attr("class", f), g.x = t.x, g.y = n, g.width = t.width, g.height = t.height, g.name = t.name;
1560
+ const I = g.height / 2, L = I / (2.5 + g.height / 50), b = T.append("g"), w = T.append("g"), A = `M ${g.x},${g.y + I}
1561
+ a ${L},${I} 0 0 0 0,${g.height}
1562
+ h ${g.width - 2 * L}
1563
+ a ${L},${I} 0 0 0 0,-${g.height}
1564
1564
  Z
1565
1565
  `;
1566
- b.append("path").attr("d", A), S.append("path").attr(
1566
+ b.append("path").attr("d", A), w.append("path").attr(
1567
1567
  "d",
1568
- `M ${f.x},${f.y + I}
1569
- a ${L},${I} 0 0 0 0,${f.height}`
1570
- ), b.attr("transform", `translate(${L}, ${-(f.height / 2)})`), S.attr("transform", `translate(${f.width - L}, ${-f.height / 2})`), t.rectData = f, E === "neo" && b.attr("filter", "url(#drop-shadow)");
1571
- const N = i.get(t.name) ?? 0;
1572
- if (pt.has(T) && (b.style("stroke", u[N % u.length]), b.style("fill", x[N % u.length]), S.style("stroke", u[N % u.length]), S.style("fill", x[N % u.length])), t.properties?.icon) {
1573
- const q = t.properties.icon.trim(), U = f.x + f.width - 20, G = f.y + 10;
1574
- q.charAt(0) === "@" ? re(p, U, G, q.substr(1)) : ae(p, U, G, q);
1568
+ `M ${g.x},${g.y + I}
1569
+ a ${L},${I} 0 0 0 0,${g.height}`
1570
+ ), b.attr("transform", `translate(${L}, ${-(g.height / 2)})`), w.attr("transform", `translate(${g.width - L}, ${-g.height / 2})`), t.rectData = g, u === "neo" && b.attr("filter", "url(#drop-shadow)");
1571
+ const D = i.get(t.name) ?? 0;
1572
+ if (pt.has(d) && (b.style("stroke", E[D % E.length]), b.style("fill", _[D % E.length]), w.style("stroke", E[D % E.length]), w.style("fill", _[D % E.length])), t.properties?.icon) {
1573
+ const W = t.properties.icon.trim(), U = g.x + g.width - 20, G = g.y + 10;
1574
+ W.charAt(0) === "@" ? se(T, U, G, W.substr(1)) : ie(T, U, G, W);
1575
1575
  }
1576
1576
  Et(a, Q(t.description))(
1577
1577
  t.description,
1578
- p,
1579
- f.x,
1580
- f.y,
1581
- f.width,
1582
- f.height,
1583
- { class: `actor ${Kt}` },
1578
+ T,
1579
+ g.x,
1580
+ g.y,
1581
+ g.width,
1582
+ g.height,
1583
+ { class: `actor ${qt}` },
1584
1584
  a
1585
1585
  );
1586
- let B = t.height;
1586
+ let M = t.height;
1587
1587
  const V = b.select("path:last-child");
1588
1588
  if (V.node()) {
1589
- const q = V.node().getBBox();
1590
- t.height = q.height, B = q.height;
1589
+ const W = V.node().getBBox();
1590
+ t.height = W.height, M = W.height;
1591
1591
  }
1592
- return r || (p.attr("data-et", "participant"), p.attr("data-type", "queue"), p.attr("data-id", t.name)), B;
1593
- }, "drawActorTypeQueue"), Ar = /* @__PURE__ */ g(function(e, t, a, r, i, o) {
1594
- const s = r ? t.stopy : t.starty, n = t.x + t.width / 2, E = s + 75, { look: T, theme: l, themeVariables: x } = a, { bkgColorArray: u, borderColorArray: O, actorBorder: p, actorBkg: f } = x, _ = e.append("g").lower();
1595
- r || (M++, _.append("line").attr("id", "actor" + M).attr("x1", n).attr("y1", E).attr("x2", n).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = M);
1592
+ return r || (T.attr("data-et", "participant"), T.attr("data-type", "queue"), T.attr("data-id", t.name)), M;
1593
+ }, "drawActorTypeQueue"), Ar = /* @__PURE__ */ x(function(e, t, a, r, i, n) {
1594
+ const s = r ? t.stopy : t.starty, o = t.x + t.width / 2, u = s + 75, { look: d, theme: p, themeVariables: _ } = a, { bkgColorArray: E, borderColorArray: O, actorBorder: T, actorBkg: g } = _, f = e.append("g").lower();
1595
+ r || (B++, f.append("line").attr("id", "actor" + B).attr("x1", o).attr("y1", u).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = B);
1596
1596
  const I = e.append("g");
1597
1597
  let L = yt;
1598
1598
  r ? L += ` ${_t}` : L += ` ${ft}`, I.attr("class", L), I.attr("name", t.name);
1599
1599
  const b = dt();
1600
1600
  b.x = t.x, b.y = s, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
1601
- const S = t.x + t.width / 2, A = s + 32, N = 22;
1602
- I.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).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"), I.append("circle").attr("cx", S).attr("cy", A).attr("r", N).attr("filter", `${T === "neo" ? "url(#drop-shadow)" : ""}`), I.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${S}, ${A - N})`);
1603
- const B = o.get(t.name) ?? 0;
1604
- pt.has(l) ? (I.style("stroke", O[B % O.length]), I.style("fill", u[B % O.length])) : (I.style("stroke", p), I.style("fill", f));
1601
+ const w = t.x + t.width / 2, A = s + 32, D = 22;
1602
+ I.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).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"), I.append("circle").attr("cx", w).attr("cy", A).attr("r", D).attr("filter", `${d === "neo" ? "url(#drop-shadow)" : ""}`), I.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${w}, ${A - D})`);
1603
+ const M = n.get(t.name) ?? 0;
1604
+ pt.has(p) ? (I.style("stroke", O[M % O.length]), I.style("fill", E[M % O.length])) : (I.style("stroke", T), I.style("fill", g));
1605
1605
  const V = I.node().getBBox();
1606
1606
  return t.height = V.height + 2 * (a?.sequence?.labelBoxHeight ?? 0), Et(a, Q(t.description))(
1607
1607
  t.description,
1608
1608
  I,
1609
1609
  b.x,
1610
- b.y + N + (r ? 5 : 12),
1610
+ b.y + D + (r ? 5 : 12),
1611
1611
  b.width,
1612
1612
  b.height,
1613
1613
  { class: `actor ${yt}` },
1614
1614
  a
1615
1615
  ), r || (I.attr("data-et", "participant"), I.attr("data-type", "control"), I.attr("data-id", t.name)), t.height;
1616
- }, "drawActorTypeControl"), Sr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1617
- const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + 75, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u } = l, O = e.append("g").lower(), p = e.append("g");
1618
- let f = "actor";
1619
- r ? f += ` ${_t}` : f += ` ${ft}`, p.attr("class", f), p.attr("name", t.name);
1620
- const _ = dt();
1621
- _.x = t.x, _.y = o, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
1622
- const I = t.x + t.width / 2, L = o + (r ? 10 : 25), b = 22;
1623
- p.append("circle").attr("cx", I).attr("cy", L).attr("r", b).attr("width", t.width).attr("height", t.height), p.append("line").attr("x1", I - b).attr("x2", I + b).attr("y1", L + b).attr("y2", L + b).attr("stroke-width", 2), E === "neo" && p.attr("filter", "url(#drop-shadow)");
1624
- const S = i.get(t.name) ?? 0;
1625
- pt.has(T) && (p.style("stroke", u[S % u.length]), p.style("fill", x[S % u.length]));
1626
- const A = p.node().getBBox();
1627
- return t.height = A.height + (a?.sequence?.labelBoxHeight ?? 0), r || (M++, O.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = M), Et(a, Q(t.description))(
1616
+ }, "drawActorTypeControl"), Sr = /* @__PURE__ */ x(function(e, t, a, r, i) {
1617
+ const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + 75, { look: u, theme: d, themeVariables: p } = a, { bkgColorArray: _, borderColorArray: E } = p, O = e.append("g").lower(), T = e.append("g");
1618
+ let g = "actor";
1619
+ r ? g += ` ${_t}` : g += ` ${ft}`, T.attr("class", g), T.attr("name", t.name);
1620
+ const f = dt();
1621
+ f.x = t.x, f.y = n, f.fill = "#eaeaea", f.width = t.width, f.height = t.height, f.class = "actor";
1622
+ const I = t.x + t.width / 2, L = n + (r ? 10 : 25), b = 22;
1623
+ T.append("circle").attr("cx", I).attr("cy", L).attr("r", b).attr("width", t.width).attr("height", t.height), T.append("line").attr("x1", I - b).attr("x2", I + b).attr("y1", L + b).attr("y2", L + b).attr("stroke-width", 2), u === "neo" && T.attr("filter", "url(#drop-shadow)");
1624
+ const w = i.get(t.name) ?? 0;
1625
+ pt.has(d) && (T.style("stroke", E[w % E.length]), T.style("fill", _[w % E.length]));
1626
+ const A = T.node().getBBox();
1627
+ return t.height = A.height + (a?.sequence?.labelBoxHeight ?? 0), r || (B++, O.append("line").attr("id", "actor" + B).attr("x1", s).attr("y1", o).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = B), Et(a, Q(t.description))(
1628
1628
  t.description,
1629
- p,
1630
- _.x,
1631
- _.y + (r ? 15 : 30),
1632
- _.width,
1633
- _.height,
1629
+ T,
1630
+ f.x,
1631
+ f.y + (r ? 15 : 30),
1632
+ f.width,
1633
+ f.height,
1634
1634
  { class: `actor ${yt}` },
1635
1635
  a
1636
- ), r ? p.attr("transform", `translate(0, ${b})`) : (p.attr("transform", `translate(0, ${b / 2 - 5})`), p.attr("data-et", "participant"), p.attr("data-type", "entity"), p.attr("data-id", t.name)), t.height;
1637
- }, "drawActorTypeEntity"), wr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1638
- const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + t.height + 2 * a.boxTextMargin, { theme: E, themeVariables: T, look: l } = a, { bkgColorArray: x, borderColorArray: u, actorBorder: O } = T, p = e.append("g").lower();
1639
- let f = p;
1640
- r || (M++, Object.keys(t.links || {}).length && !a.forceMenus && f.attr("onclick", Ft(`actor${M}_popup`)).attr("cursor", "pointer"), f.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), f = p.append("g"), t.actorCnt = M, t.links != null && f.attr("id", "root-" + M), l === "neo" && f.attr("data-look", "neo"));
1641
- const _ = dt();
1636
+ ), r ? T.attr("transform", `translate(0, ${b})`) : (T.attr("transform", `translate(0, ${b / 2 - 5})`), T.attr("data-et", "participant"), T.attr("data-type", "entity"), T.attr("data-id", t.name)), t.height;
1637
+ }, "drawActorTypeEntity"), wr = /* @__PURE__ */ x(function(e, t, a, r, i) {
1638
+ const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height + 2 * a.boxTextMargin, { theme: u, themeVariables: d, look: p } = a, { bkgColorArray: _, borderColorArray: E, actorBorder: O } = d, T = e.append("g").lower();
1639
+ let g = T;
1640
+ r || (B++, Object.keys(t.links || {}).length && !a.forceMenus && g.attr("onclick", Ht(`actor${B}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + B).attr("x1", s).attr("y1", o).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = T.append("g"), t.actorCnt = B, t.links != null && g.attr("id", "root-" + B), p === "neo" && g.attr("data-look", "neo"));
1641
+ const f = dt();
1642
1642
  let I = "actor";
1643
- t.properties?.class ? I = t.properties.class : _.fill = "#eaeaea", r ? I += ` ${_t}` : I += ` ${ft}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = I, _.name = t.name, _.x = t.x, _.y = o;
1644
- const L = _.width / 3, b = _.width / 3, S = L / 2, A = S / (2.5 + L / 50), N = f.append("g");
1645
- N.attr("class", I);
1646
- const B = `
1647
- M ${_.x},${_.y + A}
1648
- a ${S},${A} 0 0 0 ${L},0
1649
- a ${S},${A} 0 0 0 -${L},0
1643
+ t.properties?.class ? I = t.properties.class : f.fill = "#eaeaea", r ? I += ` ${_t}` : I += ` ${ft}`, f.x = t.x, f.y = n, f.width = t.width, f.height = t.height, f.class = I, f.name = t.name, f.x = t.x, f.y = n;
1644
+ const L = f.width / 3, b = f.width / 3, w = L / 2, A = w / (2.5 + L / 50), D = g.append("g");
1645
+ D.attr("class", I);
1646
+ const M = `
1647
+ M ${f.x},${f.y + A}
1648
+ a ${w},${A} 0 0 0 ${L},0
1649
+ a ${w},${A} 0 0 0 -${L},0
1650
1650
  l 0,${b - 2 * A}
1651
- a ${S},${A} 0 0 0 ${L},0
1651
+ a ${w},${A} 0 0 0 ${L},0
1652
1652
  l 0,-${b - 2 * A}
1653
1653
  `;
1654
- N.append("path").attr("d", B), l === "neo" && N.attr("filter", "url(#drop-shadow)");
1654
+ D.append("path").attr("d", M), p === "neo" && D.attr("filter", "url(#drop-shadow)");
1655
1655
  const V = i.get(t.name) ?? 0;
1656
- pt.has(E) ? (N.style("stroke", u[V % u.length]), N.style("fill", x[V % u.length])) : N.style("stroke", O), N.attr("transform", `translate(${L}, ${A})`), t.rectData = _, Et(a, Q(t.description))(
1656
+ pt.has(u) ? (D.style("stroke", E[V % E.length]), D.style("fill", _[V % E.length])) : D.style("stroke", O), D.attr("transform", `translate(${L}, ${A})`), t.rectData = f, Et(a, Q(t.description))(
1657
1657
  t.description,
1658
- f,
1659
- _.x,
1660
- _.y + 35,
1661
- _.width,
1662
- _.height,
1663
- { class: `actor ${Kt}` },
1658
+ g,
1659
+ f.x,
1660
+ f.y + 35,
1661
+ f.width,
1662
+ f.height,
1663
+ { class: `actor ${qt}` },
1664
1664
  a
1665
1665
  );
1666
- const q = N.select("path:last-child");
1667
- if (q.node()) {
1668
- const U = q.node().getBBox();
1666
+ const W = D.select("path:last-child");
1667
+ if (W.node()) {
1668
+ const U = W.node().getBBox();
1669
1669
  t.height = U.height + (a.sequence.labelBoxHeight ?? 0);
1670
1670
  }
1671
- return r || (f.attr("data-et", "participant"), f.attr("data-type", "database"), f.attr("data-id", t.name)), t.height;
1672
- }, "drawActorTypeDatabase"), Nr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1673
- const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + 80, E = 22, T = e.append("g").lower(), { look: l, theme: x, themeVariables: u } = a, { bkgColorArray: O, borderColorArray: p, actorBorder: f } = u;
1674
- r || (M++, T.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = M);
1675
- const _ = e.append("g");
1671
+ return r || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
1672
+ }, "drawActorTypeDatabase"), Nr = /* @__PURE__ */ x(function(e, t, a, r, i) {
1673
+ const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + 80, u = 22, d = e.append("g").lower(), { look: p, theme: _, themeVariables: E } = a, { bkgColorArray: O, borderColorArray: T, actorBorder: g } = E;
1674
+ r || (B++, d.append("line").attr("id", "actor" + B).attr("x1", s).attr("y1", o).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = B);
1675
+ const f = e.append("g");
1676
1676
  let I = yt;
1677
- r ? I += ` ${_t}` : I += ` ${ft}`, _.attr("class", I), _.attr("name", t.name);
1677
+ r ? I += ` ${_t}` : I += ` ${ft}`, f.attr("class", I), f.attr("name", t.name);
1678
1678
  const L = dt();
1679
- L.x = t.x, L.y = o, L.fill = "#eaeaea", L.width = t.width, L.height = t.height, L.class = "actor", _.append("line").attr("id", "actor-man-torso" + M).attr("x1", t.x + t.width / 2 - E * 2.5).attr("y1", o + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", o + 12), _.append("line").attr("id", "actor-man-arms" + M).attr("x1", t.x + t.width / 2 - E * 2.5).attr("y1", o + 2).attr("x2", t.x + t.width / 2 - E * 2.5).attr("y2", o + 22), _.append("circle").attr("cx", t.x + t.width / 2).attr("cy", o + 12).attr("r", E), l === "neo" && _.attr("filter", "url(#drop-shadow)");
1679
+ L.x = t.x, L.y = n, L.fill = "#eaeaea", L.width = t.width, L.height = t.height, L.class = "actor", f.append("line").attr("id", "actor-man-torso" + B).attr("x1", t.x + t.width / 2 - u * 2.5).attr("y1", n + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", n + 12), f.append("line").attr("id", "actor-man-arms" + B).attr("x1", t.x + t.width / 2 - u * 2.5).attr("y1", n + 2).attr("x2", t.x + t.width / 2 - u * 2.5).attr("y2", n + 22), f.append("circle").attr("cx", t.x + t.width / 2).attr("cy", n + 12).attr("r", u), p === "neo" && f.attr("filter", "url(#drop-shadow)");
1680
1680
  const b = i.get(t.name) ?? 0;
1681
- pt.has(x) ? (_.style("stroke", p[b % p.length]), _.style("fill", O[b % p.length])) : _.style("stroke", f);
1682
- const S = _.node().getBBox();
1683
- return t.height = S.height + (a.sequence.labelBoxHeight ?? 0), Et(a, Q(t.description))(
1681
+ pt.has(_) ? (f.style("stroke", T[b % T.length]), f.style("fill", O[b % T.length])) : f.style("stroke", g);
1682
+ const w = f.node().getBBox();
1683
+ return t.height = w.height + (a.sequence.labelBoxHeight ?? 0), Et(a, Q(t.description))(
1684
1684
  t.description,
1685
- _,
1685
+ f,
1686
1686
  L.x,
1687
1687
  L.y + 15,
1688
1688
  L.width,
1689
1689
  L.height,
1690
1690
  { class: `actor ${yt}` },
1691
1691
  a
1692
- ), _.attr("transform", `translate(0,${E / 2 + 10})`), r || (_.attr("data-et", "participant"), _.attr("data-type", "boundary"), _.attr("data-id", t.name)), t.height;
1693
- }, "drawActorTypeBoundary"), Pr = /* @__PURE__ */ g(function(e, t, a, r, i) {
1694
- const o = r ? t.stopy : t.starty, s = t.x + t.width / 2, n = o + 80, { look: E, theme: T, themeVariables: l } = a, { bkgColorArray: x, borderColorArray: u, actorBorder: O } = l, p = e.append("g").lower();
1695
- r || (M++, p.append("line").attr("id", "actor" + M).attr("x1", s).attr("y1", n).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = M);
1696
- const f = e.append("g");
1697
- let _ = yt;
1698
- r ? _ += ` ${_t}` : _ += ` ${ft}`, f.attr("class", _), f.attr("name", t.name), r || f.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
1699
- const I = E === "neo" ? 0.5 : 1, L = E === "neo" ? o + (1 - I) * 30 : o;
1700
- f.append("line").attr("id", "actor-man-torso" + M).attr("x1", s).attr("y1", L + 25 * I).attr("x2", s).attr("y2", L + 45 * I), f.append("line").attr("id", "actor-man-arms" + M).attr("x1", s - It / 2 * I).attr("y1", L + 33 * I).attr("x2", s + It / 2 * I).attr("y2", L + 33 * I), f.append("line").attr("x1", s - It / 2 * I).attr("y1", L + 60 * I).attr("x2", s).attr("y2", L + 45 * I), f.append("line").attr("x1", s).attr("y1", L + 45 * I).attr("x2", s + (It / 2 - 2) * I).attr("y2", L + 60 * I);
1701
- const b = f.append("circle");
1692
+ ), f.attr("transform", `translate(0,${u / 2 + 10})`), r || (f.attr("data-et", "participant"), f.attr("data-type", "boundary"), f.attr("data-id", t.name)), t.height;
1693
+ }, "drawActorTypeBoundary"), Pr = /* @__PURE__ */ x(function(e, t, a, r, i) {
1694
+ const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + 80, { look: u, theme: d, themeVariables: p } = a, { bkgColorArray: _, borderColorArray: E, actorBorder: O } = p, T = e.append("g").lower();
1695
+ r || (B++, T.append("line").attr("id", "actor" + B).attr("x1", s).attr("y1", o).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = B);
1696
+ const g = e.append("g");
1697
+ let f = yt;
1698
+ r ? f += ` ${_t}` : f += ` ${ft}`, g.attr("class", f), g.attr("name", t.name), r || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
1699
+ const I = u === "neo" ? 0.5 : 1, L = u === "neo" ? n + (1 - I) * 30 : n;
1700
+ g.append("line").attr("id", "actor-man-torso" + B).attr("x1", s).attr("y1", L + 25 * I).attr("x2", s).attr("y2", L + 45 * I), g.append("line").attr("id", "actor-man-arms" + B).attr("x1", s - It / 2 * I).attr("y1", L + 33 * I).attr("x2", s + It / 2 * I).attr("y2", L + 33 * I), g.append("line").attr("x1", s - It / 2 * I).attr("y1", L + 60 * I).attr("x2", s).attr("y2", L + 45 * I), g.append("line").attr("x1", s).attr("y1", L + 45 * I).attr("x2", s + (It / 2 - 2) * I).attr("y2", L + 60 * I);
1701
+ const b = g.append("circle");
1702
1702
  b.attr("cx", t.x + t.width / 2), b.attr("cy", L + 10 * I), b.attr("r", 15 * I), b.attr("width", t.width * I), b.attr("height", t.height * I);
1703
- const S = f.node().getBBox();
1704
- t.height = S.height;
1703
+ const w = g.node().getBBox();
1704
+ t.height = w.height;
1705
1705
  const A = dt();
1706
1706
  A.x = t.x, A.y = L, A.fill = "#eaeaea", A.width = t.width, A.height = t.height / I, A.class = "actor", A.rx = 3, A.ry = 3;
1707
- const N = i.get(t.name) ?? 0;
1708
- return pt.has(T) ? (f.style("stroke", u[N % u.length]), f.style("fill", x[N % u.length])) : f.style("stroke", O), Et(a, Q(t.description))(
1707
+ const D = i.get(t.name) ?? 0;
1708
+ return pt.has(d) ? (g.style("stroke", E[D % E.length]), g.style("fill", _[D % E.length])) : g.style("stroke", O), Et(a, Q(t.description))(
1709
1709
  t.description,
1710
- f,
1710
+ g,
1711
1711
  A.x,
1712
- L + 35 * I - (E === "neo" ? 10 : 0),
1712
+ L + 35 * I - (u === "neo" ? 10 : 0),
1713
1713
  A.width,
1714
1714
  A.height,
1715
1715
  { class: `actor ${yt}` },
1716
1716
  a
1717
1717
  ), t.height;
1718
- }, "drawActorTypeActor"), kr = /* @__PURE__ */ g(async function(e, t, a, r, i, o, s) {
1719
- const n = s ?? new Map(
1720
- [...o.db.getActors().values()].map((E, T) => [E.name, T])
1718
+ }, "drawActorTypeActor"), kr = /* @__PURE__ */ x(async function(e, t, a, r, i, n, s) {
1719
+ const o = s ?? new Map(
1720
+ [...n.db.getActors().values()].map((u, d) => [u.name, d])
1721
1721
  );
1722
1722
  switch (t.type) {
1723
1723
  case "actor":
1724
- return await Pr(e, t, a, r, n);
1724
+ return await Pr(e, t, a, r, o);
1725
1725
  case "participant":
1726
- return await Lr(e, t, a, r, n);
1726
+ return await Lr(e, t, a, r, o);
1727
1727
  case "boundary":
1728
- return await Nr(e, t, a, r, n);
1728
+ return await Nr(e, t, a, r, o);
1729
1729
  case "control":
1730
1730
  return await Ar(
1731
1731
  e,
@@ -1733,18 +1733,18 @@ var fr = $t, _r = {
1733
1733
  a,
1734
1734
  r,
1735
1735
  i,
1736
- n
1736
+ o
1737
1737
  );
1738
1738
  case "entity":
1739
- return await Sr(e, t, a, r, n);
1739
+ return await Sr(e, t, a, r, o);
1740
1740
  case "database":
1741
- return await wr(e, t, a, r, n);
1741
+ return await wr(e, t, a, r, o);
1742
1742
  case "collections":
1743
- return await br(e, t, a, r, n);
1743
+ return await br(e, t, a, r, o);
1744
1744
  case "queue":
1745
- return await mr(e, t, a, r, n);
1745
+ return await mr(e, t, a, r, o);
1746
1746
  }
1747
- }, "drawActor"), Dr = /* @__PURE__ */ g(function(e, t, a) {
1747
+ }, "drawActor"), Dr = /* @__PURE__ */ x(function(e, t, a) {
1748
1748
  const i = e.append("g");
1749
1749
  We(i, t), t.name && Et(a)(
1750
1750
  t.name,
@@ -1756,76 +1756,76 @@ var fr = $t, _r = {
1756
1756
  { class: "text" },
1757
1757
  a
1758
1758
  ), i.lower();
1759
- }, "drawBox"), vr = /* @__PURE__ */ g(function(e) {
1759
+ }, "drawBox"), vr = /* @__PURE__ */ x(function(e) {
1760
1760
  return e.append("g");
1761
- }, "anchorElement"), Cr = /* @__PURE__ */ g(function(e, t, a, r, i, o, s) {
1762
- const { theme: n, themeVariables: E } = r, { bkgColorArray: T, borderColorArray: l, mainBkg: x } = E, u = dt(), O = t.anchored, p = t.actor;
1763
- u.x = t.startx, u.y = t.starty, u.class = "activation" + i % 3, u.width = t.stopx - t.startx, u.height = a - t.starty;
1764
- const f = St(O, u), I = (s ?? new Map(
1765
- [...o.db.getActors().values()].map((L, b) => [L.name, b])
1766
- )).get(p) ?? 0;
1767
- pt.has(n) && (f.style("stroke", l[I % l.length]), f.style("fill", T[I % l.length] ?? x));
1768
- }, "drawActivation"), Mr = /* @__PURE__ */ g(async function(e, t, a, r, i) {
1761
+ }, "anchorElement"), Cr = /* @__PURE__ */ x(function(e, t, a, r, i, n, s) {
1762
+ const { theme: o, themeVariables: u } = r, { bkgColorArray: d, borderColorArray: p, mainBkg: _ } = u, E = dt(), O = t.anchored, T = t.actor;
1763
+ E.x = t.startx, E.y = t.starty, E.class = "activation" + i % 3, E.width = t.stopx - t.startx, E.height = a - t.starty;
1764
+ const g = Nt(O, E), I = (s ?? new Map(
1765
+ [...n.db.getActors().values()].map((L, b) => [L.name, b])
1766
+ )).get(T) ?? 0;
1767
+ pt.has(o) && (g.style("stroke", p[I % p.length]), g.style("fill", d[I % p.length] ?? _));
1768
+ }, "drawActivation"), Mr = /* @__PURE__ */ x(async function(e, t, a, r, i) {
1769
1769
  const {
1770
- boxMargin: o,
1770
+ boxMargin: n,
1771
1771
  boxTextMargin: s,
1772
- labelBoxHeight: n,
1773
- labelBoxWidth: E,
1774
- messageFontFamily: T,
1775
- messageFontSize: l,
1776
- messageFontWeight: x
1777
- } = r, u = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + i.id), O = /* @__PURE__ */ g(function(_, I, L, b) {
1778
- return u.append("line").attr("x1", _).attr("y1", I).attr("x2", L).attr("y2", b).attr("class", "loopLine");
1772
+ labelBoxHeight: o,
1773
+ labelBoxWidth: u,
1774
+ messageFontFamily: d,
1775
+ messageFontSize: p,
1776
+ messageFontWeight: _
1777
+ } = r, E = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + i.id), O = /* @__PURE__ */ x(function(f, I, L, b) {
1778
+ return E.append("line").attr("x1", f).attr("y1", I).attr("x2", L).attr("y2", b).attr("class", "loopLine");
1779
1779
  }, "drawLoopLine");
1780
- O(t.startx, t.starty, t.stopx, t.starty), O(t.stopx, t.starty, t.stopx, t.stopy), O(t.startx, t.stopy, t.stopx, t.stopy), O(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(_) {
1781
- O(t.startx, _.y, t.stopx, _.y).style(
1780
+ O(t.startx, t.starty, t.stopx, t.starty), O(t.stopx, t.starty, t.stopx, t.stopy), O(t.startx, t.stopy, t.stopx, t.stopy), O(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(f) {
1781
+ O(t.startx, f.y, t.stopx, f.y).style(
1782
1782
  "stroke-dasharray",
1783
1783
  "3, 3"
1784
1784
  );
1785
1785
  });
1786
- let p = ee();
1787
- p.text = a, p.x = t.startx, p.y = t.starty, p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = Math.max(E ?? 0, 50), p.height = n + (r.look === "neo" ? 15 : 0) || 20, p.textMargin = s, p.class = "labelText", Ve(u, p), p = Ke(), p.text = t.title, p.x = t.startx + E / 2 + (t.stopx - t.startx) / 2, p.y = t.starty + o + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.wrap = !0;
1788
- let f = Q(p.text) ? await Wt(u, p, t) : bt(u, p);
1786
+ let T = ae();
1787
+ T.text = a, T.x = t.startx, T.y = t.starty, T.fontFamily = d, T.fontSize = p, T.fontWeight = _, T.anchor = "middle", T.valign = "middle", T.tspan = !1, T.width = Math.max(u ?? 0, 50), T.height = o + (r.look === "neo" ? 15 : 0) || 20, T.textMargin = s, T.class = "labelText", Ve(E, T), T = Ke(), T.text = t.title, T.x = t.startx + u / 2 + (t.stopx - t.startx) / 2, T.y = t.starty + n + s, T.anchor = "middle", T.valign = "middle", T.textMargin = s, T.class = "loopText", T.fontFamily = d, T.fontSize = p, T.fontWeight = _, T.wrap = !0;
1788
+ let g = Q(T.text) ? await Ft(E, T, t) : mt(E, T);
1789
1789
  if (t.sectionTitles !== void 0) {
1790
- for (const [_, I] of Object.entries(t.sectionTitles))
1790
+ for (const [f, I] of Object.entries(t.sectionTitles))
1791
1791
  if (I.message) {
1792
- p.text = I.message, p.x = t.startx + (t.stopx - t.startx) / 2, p.y = t.sections[_].y + o + s, p.class = "sectionTitle", p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.fontFamily = T, p.fontSize = l, p.fontWeight = x, p.wrap = t.wrap, Q(p.text) ? (t.starty = t.sections[_].y, await Wt(u, p, t)) : bt(u, p);
1792
+ T.text = I.message, T.x = t.startx + (t.stopx - t.startx) / 2, T.y = t.sections[f].y + n + s, T.class = "sectionTitle", T.anchor = "middle", T.valign = "middle", T.tspan = !1, T.fontFamily = d, T.fontSize = p, T.fontWeight = _, T.wrap = t.wrap, Q(T.text) ? (t.starty = t.sections[f].y, await Ft(E, T, t)) : mt(E, T);
1793
1793
  let L = Math.round(
1794
- f.map((b) => (b._groups || b)[0][0].getBBox().height).reduce((b, S) => b + S)
1794
+ g.map((b) => (b._groups || b)[0][0].getBBox().height).reduce((b, w) => b + w)
1795
1795
  );
1796
- t.sections[_].height += L - (o + s);
1796
+ t.sections[f].height += L - (n + s);
1797
1797
  }
1798
1798
  }
1799
- return t.height = Math.round(t.stopy - t.starty), u;
1800
- }, "drawLoop"), We = /* @__PURE__ */ g(function(e, t) {
1801
- pr(e, t);
1802
- }, "drawBackgroundRect"), Br = /* @__PURE__ */ g(function(e, t) {
1799
+ return t.height = Math.round(t.stopy - t.starty), E;
1800
+ }, "drawLoop"), We = /* @__PURE__ */ x(function(e, t) {
1801
+ Er(e, t);
1802
+ }, "drawBackgroundRect"), Br = /* @__PURE__ */ x(function(e, t) {
1803
1803
  e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1804
1804
  "d",
1805
1805
  "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"
1806
1806
  );
1807
- }, "insertDatabaseIcon"), Vr = /* @__PURE__ */ g(function(e, t) {
1807
+ }, "insertDatabaseIcon"), Vr = /* @__PURE__ */ x(function(e, t) {
1808
1808
  e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1809
1809
  "d",
1810
1810
  "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"
1811
1811
  );
1812
- }, "insertComputerIcon"), Yr = /* @__PURE__ */ g(function(e, t) {
1812
+ }, "insertComputerIcon"), Yr = /* @__PURE__ */ x(function(e, t) {
1813
1813
  e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1814
1814
  "d",
1815
1815
  "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"
1816
1816
  );
1817
- }, "insertClockIcon"), Wr = /* @__PURE__ */ g(function(e, t) {
1817
+ }, "insertClockIcon"), Wr = /* @__PURE__ */ x(function(e, t) {
1818
1818
  e.append("defs").append("marker").attr("id", t + "-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");
1819
- }, "insertArrowHead"), Kr = /* @__PURE__ */ g(function(e, t) {
1819
+ }, "insertArrowHead"), Kr = /* @__PURE__ */ x(function(e, t) {
1820
1820
  e.append("defs").append("marker").attr("id", t + "-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");
1821
- }, "insertArrowFilledHead"), Fr = /* @__PURE__ */ g(function(e, t) {
1821
+ }, "insertArrowFilledHead"), Fr = /* @__PURE__ */ x(function(e, t) {
1822
1822
  e.append("defs").append("marker").attr("id", t + "-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);
1823
- }, "insertSequenceNumber"), qr = /* @__PURE__ */ g(function(e, t) {
1823
+ }, "insertSequenceNumber"), qr = /* @__PURE__ */ x(function(e, t) {
1824
1824
  e.append("defs").append("marker").attr("id", t + "-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");
1825
- }, "insertArrowCrossHead"), Hr = /* @__PURE__ */ g(function(e, t) {
1825
+ }, "insertArrowCrossHead"), Hr = /* @__PURE__ */ x(function(e, t) {
1826
1826
  const { theme: a } = t;
1827
1827
  e.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${a === "redux" || a === "redux-color" ? "#000000" : "#FFFFFF"}`);
1828
- }, "insertDropShadow"), Ke = /* @__PURE__ */ g(function() {
1828
+ }, "insertDropShadow"), Ke = /* @__PURE__ */ x(function() {
1829
1829
  return {
1830
1830
  x: 0,
1831
1831
  y: 0,
@@ -1840,7 +1840,7 @@ var fr = $t, _r = {
1840
1840
  tspan: !0,
1841
1841
  valign: void 0
1842
1842
  };
1843
- }, "getTextObj"), zr = /* @__PURE__ */ g(function() {
1843
+ }, "getTextObj"), zr = /* @__PURE__ */ x(function() {
1844
1844
  return {
1845
1845
  x: 0,
1846
1846
  y: 0,
@@ -1853,73 +1853,73 @@ var fr = $t, _r = {
1853
1853
  ry: 0
1854
1854
  };
1855
1855
  }, "getNoteRect"), Et = /* @__PURE__ */ (function() {
1856
- function e(o, s, n, E, T, l, x) {
1857
- const u = s.append("text").attr("x", n + T / 2).attr("y", E + l / 2 + 5).style("text-anchor", "middle").text(o);
1858
- i(u, x);
1856
+ function e(n, s, o, u, d, p, _) {
1857
+ const E = s.append("text").attr("x", o + d / 2).attr("y", u + p / 2 + 5).style("text-anchor", "middle").text(n);
1858
+ i(E, _);
1859
1859
  }
1860
- g(e, "byText");
1861
- function t(o, s, n, E, T, l, x, u) {
1862
- const { actorFontSize: O, actorFontFamily: p, actorFontWeight: f } = u, [_, I] = Me(O), L = o.split(P.lineBreakRegex);
1860
+ x(e, "byText");
1861
+ function t(n, s, o, u, d, p, _, E) {
1862
+ const { actorFontSize: O, actorFontFamily: T, actorFontWeight: g } = E, [f, I] = Me(O), L = n.split(N.lineBreakRegex);
1863
1863
  for (let b = 0; b < L.length; b++) {
1864
- const S = b * _ - _ * (L.length - 1) / 2, A = s.append("text").attr("x", n + T / 2).attr("y", E).style("text-anchor", "middle").style("font-size", I).style("font-weight", f).style("font-family", p);
1865
- A.append("tspan").attr("x", n + T / 2).attr("dy", S).text(L[b]), A.attr("y", E + l / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(A, x);
1864
+ const w = b * f - f * (L.length - 1) / 2, A = s.append("text").attr("x", o + d / 2).attr("y", u).style("text-anchor", "middle").style("font-size", I).style("font-weight", g).style("font-family", T);
1865
+ A.append("tspan").attr("x", o + d / 2).attr("dy", w).text(L[b]), A.attr("y", u + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(A, _);
1866
1866
  }
1867
1867
  }
1868
- g(t, "byTspan");
1869
- function a(o, s, n, E, T, l, x, u) {
1870
- const O = s.append("switch"), f = O.append("foreignObject").attr("x", n).attr("y", E).attr("width", T).attr("height", l).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1871
- f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(o), t(o, O, n, E, T, l, x, u), i(f, x);
1868
+ x(t, "byTspan");
1869
+ function a(n, s, o, u, d, p, _, E) {
1870
+ const O = s.append("switch"), g = O.append("foreignObject").attr("x", o).attr("y", u).attr("width", d).attr("height", p).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1871
+ g.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(n), t(n, O, o, u, d, p, _, E), i(g, _);
1872
1872
  }
1873
- g(a, "byFo");
1874
- async function r(o, s, n, E, T, l, x, u) {
1875
- const O = await wt(o, Yt()), p = s.append("switch"), _ = p.append("foreignObject").attr("x", n + T / 2 - O.width / 2).attr("y", E + l / 2 - O.height / 2).attr("width", O.width).attr("height", O.height).append("xhtml:div").style("height", "100%").style("width", "100%");
1876
- _.append("div").style("text-align", "center").style("vertical-align", "middle").html(await Be(o, Yt())), t(o, p, n, E, T, l, x, u), i(_, x);
1873
+ x(a, "byFo");
1874
+ async function r(n, s, o, u, d, p, _, E) {
1875
+ const O = await Pt(n, Kt()), T = s.append("switch"), f = T.append("foreignObject").attr("x", o + d / 2 - O.width / 2).attr("y", u + p / 2 - O.height / 2).attr("width", O.width).attr("height", O.height).append("xhtml:div").style("height", "100%").style("width", "100%");
1876
+ f.append("div").style("text-align", "center").style("vertical-align", "middle").html(await Be(n, Kt())), t(n, T, o, u, d, p, _, E), i(f, _);
1877
1877
  }
1878
- g(r, "byKatex");
1879
- function i(o, s) {
1880
- for (const n in s)
1881
- s.hasOwnProperty(n) && o.attr(n, s[n]);
1878
+ x(r, "byKatex");
1879
+ function i(n, s) {
1880
+ for (const o in s)
1881
+ s.hasOwnProperty(o) && n.attr(o, s[o]);
1882
1882
  }
1883
- return g(i, "_setTextAttrs"), function(o, s = !1) {
1884
- return s ? r : o.textPlacement === "fo" ? a : o.textPlacement === "old" ? e : t;
1883
+ return x(i, "_setTextAttrs"), function(n, s = !1) {
1884
+ return s ? r : n.textPlacement === "fo" ? a : n.textPlacement === "old" ? e : t;
1885
1885
  };
1886
1886
  })(), Ur = /* @__PURE__ */ (function() {
1887
- function e(i, o, s, n, E, T, l) {
1888
- const x = o.append("text").attr("x", s).attr("y", n).style("text-anchor", "start").text(i);
1889
- r(x, l);
1890
- }
1891
- g(e, "byText");
1892
- function t(i, o, s, n, E, T, l, x) {
1893
- const { actorFontSize: u, actorFontFamily: O, actorFontWeight: p } = x, f = i.split(P.lineBreakRegex);
1894
- for (let _ = 0; _ < f.length; _++) {
1895
- const I = _ * u - u * (f.length - 1) / 2, L = o.append("text").attr("x", s).attr("y", n).style("text-anchor", "start").style("font-size", u).style("font-weight", p).style("font-family", O);
1896
- L.append("tspan").attr("x", s).attr("dy", I).text(f[_]), L.attr("y", n + T / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(L, l);
1887
+ function e(i, n, s, o, u, d, p) {
1888
+ const _ = n.append("text").attr("x", s).attr("y", o).style("text-anchor", "start").text(i);
1889
+ r(_, p);
1890
+ }
1891
+ x(e, "byText");
1892
+ function t(i, n, s, o, u, d, p, _) {
1893
+ const { actorFontSize: E, actorFontFamily: O, actorFontWeight: T } = _, g = i.split(N.lineBreakRegex);
1894
+ for (let f = 0; f < g.length; f++) {
1895
+ const I = f * E - E * (g.length - 1) / 2, L = n.append("text").attr("x", s).attr("y", o).style("text-anchor", "start").style("font-size", E).style("font-weight", T).style("font-family", O);
1896
+ L.append("tspan").attr("x", s).attr("dy", I).text(g[f]), L.attr("y", o + d / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(L, p);
1897
1897
  }
1898
1898
  }
1899
- g(t, "byTspan");
1900
- function a(i, o, s, n, E, T, l, x) {
1901
- const u = o.append("switch"), p = u.append("foreignObject").attr("x", s).attr("y", n).attr("width", E).attr("height", T).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1902
- p.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, u, s, n, E, T, l, x), r(p, l);
1899
+ x(t, "byTspan");
1900
+ function a(i, n, s, o, u, d, p, _) {
1901
+ const E = n.append("switch"), T = E.append("foreignObject").attr("x", s).attr("y", o).attr("width", u).attr("height", d).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1902
+ T.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, E, s, o, u, d, p, _), r(T, p);
1903
1903
  }
1904
- g(a, "byFo");
1905
- function r(i, o) {
1906
- for (const s in o)
1907
- o.hasOwnProperty(s) && i.attr(s, o[s]);
1904
+ x(a, "byFo");
1905
+ function r(i, n) {
1906
+ for (const s in n)
1907
+ n.hasOwnProperty(s) && i.attr(s, n[s]);
1908
1908
  }
1909
- return g(r, "_setTextAttrs"), function(i) {
1909
+ return x(r, "_setTextAttrs"), function(i) {
1910
1910
  return i.textPlacement === "fo" ? a : i.textPlacement === "old" ? e : t;
1911
1911
  };
1912
- })(), Gr = /* @__PURE__ */ g(function(e, t) {
1912
+ })(), Gr = /* @__PURE__ */ x(function(e, t) {
1913
1913
  e.append("defs").append("marker").attr("id", t + "-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");
1914
- }, "insertSolidTopArrowHead"), Xr = /* @__PURE__ */ g(function(e, t) {
1914
+ }, "insertSolidTopArrowHead"), Xr = /* @__PURE__ */ x(function(e, t) {
1915
1915
  e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", 0.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");
1916
- }, "insertSolidBottomArrowHead"), Jr = /* @__PURE__ */ g(function(e, t) {
1916
+ }, "insertSolidBottomArrowHead"), Jr = /* @__PURE__ */ x(function(e, t) {
1917
1917
  e.append("defs").append("marker").attr("id", t + "-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");
1918
- }, "insertStickTopArrowHead"), Zr = /* @__PURE__ */ g(function(e, t) {
1918
+ }, "insertStickTopArrowHead"), Zr = /* @__PURE__ */ x(function(e, t) {
1919
1919
  e.append("defs").append("marker").attr("id", t + "-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");
1920
- }, "insertStickBottomArrowHead"), F = {
1921
- drawRect: St,
1922
- drawText: bt,
1920
+ }, "insertStickBottomArrowHead"), q = {
1921
+ drawRect: Nt,
1922
+ drawText: mt,
1923
1923
  drawLabel: Ve,
1924
1924
  drawActor: kr,
1925
1925
  drawBox: Dr,
@@ -1944,7 +1944,7 @@ var fr = $t, _r = {
1944
1944
  insertSolidBottomArrowHead: Xr,
1945
1945
  insertStickTopArrowHead: Jr,
1946
1946
  insertStickBottomArrowHead: Zr
1947
- }, h = {}, R = {
1947
+ }, l = {}, R = {
1948
1948
  data: {
1949
1949
  startx: void 0,
1950
1950
  stopx: void 0,
@@ -1955,40 +1955,40 @@ var fr = $t, _r = {
1955
1955
  sequenceItems: [],
1956
1956
  activations: [],
1957
1957
  models: {
1958
- getHeight: /* @__PURE__ */ g(function() {
1958
+ getHeight: /* @__PURE__ */ x(function() {
1959
1959
  return Math.max.apply(
1960
1960
  null,
1961
1961
  this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)
1962
1962
  ) + (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));
1963
1963
  }, "getHeight"),
1964
- clear: /* @__PURE__ */ g(function() {
1964
+ clear: /* @__PURE__ */ x(function() {
1965
1965
  this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
1966
1966
  }, "clear"),
1967
- addBox: /* @__PURE__ */ g(function(e) {
1967
+ addBox: /* @__PURE__ */ x(function(e) {
1968
1968
  this.boxes.push(e);
1969
1969
  }, "addBox"),
1970
- addActor: /* @__PURE__ */ g(function(e) {
1970
+ addActor: /* @__PURE__ */ x(function(e) {
1971
1971
  this.actors.push(e);
1972
1972
  }, "addActor"),
1973
- addLoop: /* @__PURE__ */ g(function(e) {
1973
+ addLoop: /* @__PURE__ */ x(function(e) {
1974
1974
  this.loops.push(e);
1975
1975
  }, "addLoop"),
1976
- addMessage: /* @__PURE__ */ g(function(e) {
1976
+ addMessage: /* @__PURE__ */ x(function(e) {
1977
1977
  this.messages.push(e);
1978
1978
  }, "addMessage"),
1979
- addNote: /* @__PURE__ */ g(function(e) {
1979
+ addNote: /* @__PURE__ */ x(function(e) {
1980
1980
  this.notes.push(e);
1981
1981
  }, "addNote"),
1982
- lastActor: /* @__PURE__ */ g(function() {
1982
+ lastActor: /* @__PURE__ */ x(function() {
1983
1983
  return this.actors[this.actors.length - 1];
1984
1984
  }, "lastActor"),
1985
- lastLoop: /* @__PURE__ */ g(function() {
1985
+ lastLoop: /* @__PURE__ */ x(function() {
1986
1986
  return this.loops[this.loops.length - 1];
1987
1987
  }, "lastLoop"),
1988
- lastMessage: /* @__PURE__ */ g(function() {
1988
+ lastMessage: /* @__PURE__ */ x(function() {
1989
1989
  return this.messages[this.messages.length - 1];
1990
1990
  }, "lastMessage"),
1991
- lastNote: /* @__PURE__ */ g(function() {
1991
+ lastNote: /* @__PURE__ */ x(function() {
1992
1992
  return this.notes[this.notes.length - 1];
1993
1993
  }, "lastNote"),
1994
1994
  actors: [],
@@ -1997,7 +1997,7 @@ var fr = $t, _r = {
1997
1997
  messages: [],
1998
1998
  notes: []
1999
1999
  },
2000
- init: /* @__PURE__ */ g(function() {
2000
+ init: /* @__PURE__ */ x(function() {
2001
2001
  this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
2002
2002
  startx: void 0,
2003
2003
  stopx: void 0,
@@ -2005,43 +2005,43 @@ var fr = $t, _r = {
2005
2005
  stopy: void 0
2006
2006
  }, this.verticalPos = 0, He($());
2007
2007
  }, "init"),
2008
- updateVal: /* @__PURE__ */ g(function(e, t, a, r) {
2008
+ updateVal: /* @__PURE__ */ x(function(e, t, a, r) {
2009
2009
  e[t] === void 0 ? e[t] = a : e[t] = r(a, e[t]);
2010
2010
  }, "updateVal"),
2011
- updateBounds: /* @__PURE__ */ g(function(e, t, a, r) {
2011
+ updateBounds: /* @__PURE__ */ x(function(e, t, a, r) {
2012
2012
  const i = this;
2013
- let o = 0;
2014
- function s(n) {
2015
- return /* @__PURE__ */ g(function(T) {
2016
- o++;
2017
- const l = i.sequenceItems.length - o + 1;
2018
- i.updateVal(T, "starty", t - l * h.boxMargin, Math.min), i.updateVal(T, "stopy", r + l * h.boxMargin, Math.max), i.updateVal(R.data, "startx", e - l * h.boxMargin, Math.min), i.updateVal(R.data, "stopx", a + l * h.boxMargin, Math.max), n !== "activation" && (i.updateVal(T, "startx", e - l * h.boxMargin, Math.min), i.updateVal(T, "stopx", a + l * h.boxMargin, Math.max), i.updateVal(R.data, "starty", t - l * h.boxMargin, Math.min), i.updateVal(R.data, "stopy", r + l * h.boxMargin, Math.max));
2013
+ let n = 0;
2014
+ function s(o) {
2015
+ return /* @__PURE__ */ x(function(d) {
2016
+ n++;
2017
+ const p = i.sequenceItems.length - n + 1;
2018
+ i.updateVal(d, "starty", t - p * l.boxMargin, Math.min), i.updateVal(d, "stopy", r + p * l.boxMargin, Math.max), i.updateVal(R.data, "startx", e - p * l.boxMargin, Math.min), i.updateVal(R.data, "stopx", a + p * l.boxMargin, Math.max), o !== "activation" && (i.updateVal(d, "startx", e - p * l.boxMargin, Math.min), i.updateVal(d, "stopx", a + p * l.boxMargin, Math.max), i.updateVal(R.data, "starty", t - p * l.boxMargin, Math.min), i.updateVal(R.data, "stopy", r + p * l.boxMargin, Math.max));
2019
2019
  }, "updateItemBounds");
2020
2020
  }
2021
- g(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
2021
+ x(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
2022
2022
  }, "updateBounds"),
2023
- insert: /* @__PURE__ */ g(function(e, t, a, r) {
2024
- const i = P.getMin(e, a), o = P.getMax(e, a), s = P.getMin(t, r), n = P.getMax(t, r);
2025
- this.updateVal(R.data, "startx", i, Math.min), this.updateVal(R.data, "starty", s, Math.min), this.updateVal(R.data, "stopx", o, Math.max), this.updateVal(R.data, "stopy", n, Math.max), this.updateBounds(i, s, o, n);
2023
+ insert: /* @__PURE__ */ x(function(e, t, a, r) {
2024
+ const i = N.getMin(e, a), n = N.getMax(e, a), s = N.getMin(t, r), o = N.getMax(t, r);
2025
+ this.updateVal(R.data, "startx", i, Math.min), this.updateVal(R.data, "starty", s, Math.min), this.updateVal(R.data, "stopx", n, Math.max), this.updateVal(R.data, "stopy", o, Math.max), this.updateBounds(i, s, n, o);
2026
2026
  }, "insert"),
2027
- newActivation: /* @__PURE__ */ g(function(e, t, a) {
2028
- const r = a.get(e.from), i = qt(e.from).length || 0, o = r.x + r.width / 2 + (i - 1) * h.activationWidth / 2;
2027
+ newActivation: /* @__PURE__ */ x(function(e, t, a) {
2028
+ const r = a.get(e.from), i = zt(e.from).length || 0, n = r.x + r.width / 2 + (i - 1) * l.activationWidth / 2;
2029
2029
  this.activations.push({
2030
- startx: o,
2030
+ startx: n,
2031
2031
  starty: this.verticalPos + 2,
2032
- stopx: o + h.activationWidth,
2032
+ stopx: n + l.activationWidth,
2033
2033
  stopy: void 0,
2034
2034
  actor: e.from,
2035
- anchored: F.anchorElement(t)
2035
+ anchored: q.anchorElement(t)
2036
2036
  });
2037
2037
  }, "newActivation"),
2038
- endActivation: /* @__PURE__ */ g(function(e) {
2038
+ endActivation: /* @__PURE__ */ x(function(e) {
2039
2039
  const t = this.activations.map(function(a) {
2040
2040
  return a.actor;
2041
2041
  }).lastIndexOf(e.from);
2042
2042
  return this.activations.splice(t, 1)[0];
2043
2043
  }, "endActivation"),
2044
- createLoop: /* @__PURE__ */ g(function(e = { message: void 0, wrap: !1, width: void 0 }, t) {
2044
+ createLoop: /* @__PURE__ */ x(function(e = { message: void 0, wrap: !1, width: void 0 }, t) {
2045
2045
  return {
2046
2046
  startx: void 0,
2047
2047
  starty: this.verticalPos,
@@ -2054,461 +2054,458 @@ var fr = $t, _r = {
2054
2054
  fill: t
2055
2055
  };
2056
2056
  }, "createLoop"),
2057
- newLoop: /* @__PURE__ */ g(function(e = { message: void 0, wrap: !1, width: void 0 }, t) {
2057
+ newLoop: /* @__PURE__ */ x(function(e = { message: void 0, wrap: !1, width: void 0 }, t) {
2058
2058
  this.sequenceItems.push(this.createLoop(e, t));
2059
2059
  }, "newLoop"),
2060
- endLoop: /* @__PURE__ */ g(function() {
2060
+ endLoop: /* @__PURE__ */ x(function() {
2061
2061
  return this.sequenceItems.pop();
2062
2062
  }, "endLoop"),
2063
- isLoopOverlap: /* @__PURE__ */ g(function() {
2063
+ isLoopOverlap: /* @__PURE__ */ x(function() {
2064
2064
  return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
2065
2065
  }, "isLoopOverlap"),
2066
- addSectionToLoop: /* @__PURE__ */ g(function(e) {
2066
+ addSectionToLoop: /* @__PURE__ */ x(function(e) {
2067
2067
  const t = this.sequenceItems.pop();
2068
2068
  t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({ y: R.getVerticalPos(), height: 0 }), t.sectionTitles.push(e), this.sequenceItems.push(t);
2069
2069
  }, "addSectionToLoop"),
2070
- saveVerticalPos: /* @__PURE__ */ g(function() {
2070
+ saveVerticalPos: /* @__PURE__ */ x(function() {
2071
2071
  this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
2072
2072
  }, "saveVerticalPos"),
2073
- resetVerticalPos: /* @__PURE__ */ g(function() {
2073
+ resetVerticalPos: /* @__PURE__ */ x(function() {
2074
2074
  this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
2075
2075
  }, "resetVerticalPos"),
2076
- bumpVerticalPos: /* @__PURE__ */ g(function(e) {
2077
- this.verticalPos = this.verticalPos + e, this.data.stopy = P.getMax(this.data.stopy, this.verticalPos);
2076
+ bumpVerticalPos: /* @__PURE__ */ x(function(e) {
2077
+ this.verticalPos = this.verticalPos + e, this.data.stopy = N.getMax(this.data.stopy, this.verticalPos);
2078
2078
  }, "bumpVerticalPos"),
2079
- getVerticalPos: /* @__PURE__ */ g(function() {
2079
+ getVerticalPos: /* @__PURE__ */ x(function() {
2080
2080
  return this.verticalPos;
2081
2081
  }, "getVerticalPos"),
2082
- getBounds: /* @__PURE__ */ g(function() {
2082
+ getBounds: /* @__PURE__ */ x(function() {
2083
2083
  return { bounds: this.data, models: this.models };
2084
2084
  }, "getBounds")
2085
- }, Qr = /* @__PURE__ */ g(async function(e, t, a) {
2086
- R.bumpVerticalPos(h.boxMargin), t.height = h.boxMargin, t.starty = R.getVerticalPos();
2085
+ }, Qr = /* @__PURE__ */ x(async function(e, t, a) {
2086
+ R.bumpVerticalPos(l.boxMargin), t.height = l.boxMargin, t.starty = R.getVerticalPos();
2087
2087
  const r = dt();
2088
- r.x = t.startx, r.y = t.starty, r.width = t.width || h.width, r.class = "note";
2088
+ r.x = t.startx, r.y = t.starty, r.width = t.width || l.width, r.class = "note";
2089
2089
  const i = e.append("g");
2090
2090
  i.attr("data-et", "note"), i.attr("data-id", "i" + a);
2091
- const o = F.drawRect(i, r), s = ee();
2092
- s.x = t.startx, s.y = t.starty, s.width = r.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = h.noteFontFamily, s.fontSize = h.noteFontSize, s.fontWeight = h.noteFontWeight, s.anchor = h.noteAlign, s.textMargin = h.noteMargin, s.valign = "center";
2093
- const n = Q(s.text) ? await Wt(i, s) : bt(i, s), E = Math.round(
2094
- n.map((T) => (T._groups || T)[0][0].getBBox().height).reduce((T, l) => T + l)
2091
+ const n = q.drawRect(i, r), s = ae();
2092
+ s.x = t.startx, s.y = t.starty, s.width = r.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = l.noteFontFamily, s.fontSize = l.noteFontSize, s.fontWeight = l.noteFontWeight, s.anchor = l.noteAlign, s.textMargin = l.noteMargin, s.valign = "center";
2093
+ const o = Q(s.text) ? await Ft(i, s) : mt(i, s), u = Math.round(
2094
+ o.map((d) => (d._groups || d)[0][0].getBBox().height).reduce((d, p) => d + p)
2095
2095
  );
2096
- o.attr("height", E + 2 * h.noteMargin), t.height += E + 2 * h.noteMargin, R.bumpVerticalPos(E + 2 * h.noteMargin), t.stopy = t.starty + E + 2 * h.noteMargin, t.stopx = t.startx + r.width, R.insert(t.startx, t.starty, t.stopx, t.stopy), R.models.addNote(t);
2097
- }, "drawNote"), De = /* @__PURE__ */ g(function(e, t, a, r, i, o, s) {
2098
- const n = r.db.getActors(), E = n.get(t.from), T = n.get(t.to), l = a.sequenceVisible;
2099
- let x = E.x + E.width / 2, u = T.x + T.width / 2;
2100
- const O = x <= u, p = Xe(t, r), f = e.append("g"), _ = 16.5, I = /* @__PURE__ */ g((N, B) => {
2101
- const V = N ? _ : -_;
2102
- return B ? -V : V;
2103
- }, "getCircleOffset"), L = /* @__PURE__ */ g((N) => {
2104
- f.append("circle").attr("cx", N).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
2105
- }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: S, CENTRAL_CONNECTION_DUAL: A } = r.db.LINETYPE;
2106
- if (l)
2096
+ n.attr("height", u + 2 * l.noteMargin), t.height += u + 2 * l.noteMargin, R.bumpVerticalPos(u + 2 * l.noteMargin), t.stopy = t.starty + u + 2 * l.noteMargin, t.stopx = t.startx + r.width, R.insert(t.startx, t.starty, t.stopx, t.stopy), R.models.addNote(t);
2097
+ }, "drawNote"), De = /* @__PURE__ */ x(function(e, t, a, r, i, n, s) {
2098
+ const o = r.db.getActors(), u = o.get(t.from), d = o.get(t.to), p = a.sequenceVisible;
2099
+ let _ = u.x + u.width / 2, E = d.x + d.width / 2;
2100
+ const O = _ <= E, T = Xe(t, r), g = e.append("g"), f = 16.5, I = /* @__PURE__ */ x((D, M) => {
2101
+ const V = D ? f : -f;
2102
+ return M ? -V : V;
2103
+ }, "getCircleOffset"), L = /* @__PURE__ */ x((D) => {
2104
+ g.append("circle").attr("cx", D).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
2105
+ }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: w, CENTRAL_CONNECTION_DUAL: A } = r.db.LINETYPE;
2106
+ if (p)
2107
2107
  switch (t.centralConnection) {
2108
2108
  case b:
2109
- p && (u += I(O, !0));
2109
+ T && (E += I(O, !0));
2110
2110
  break;
2111
- case S:
2112
- p || (x += I(O, !1));
2111
+ case w:
2112
+ T || (_ += I(O, !1));
2113
2113
  break;
2114
2114
  case A:
2115
- p ? u += I(O, !0) : x += I(O, !1);
2115
+ T ? E += I(O, !0) : _ += I(O, !1);
2116
2116
  break;
2117
2117
  }
2118
2118
  switch (t.centralConnection) {
2119
2119
  case b:
2120
- L(u);
2120
+ L(E);
2121
2121
  break;
2122
- case S:
2123
- L(x);
2122
+ case w:
2123
+ L(_);
2124
2124
  break;
2125
2125
  case A:
2126
- L(x), L(u);
2126
+ L(_), L(E);
2127
2127
  break;
2128
2128
  }
2129
- }, "drawCentralConnection"), Rt = /* @__PURE__ */ g((e) => ({
2129
+ }, "drawCentralConnection"), Rt = /* @__PURE__ */ x((e) => ({
2130
2130
  fontFamily: e.messageFontFamily,
2131
2131
  fontSize: e.messageFontSize,
2132
2132
  fontWeight: e.messageFontWeight
2133
- }), "messageFont"), Lt = /* @__PURE__ */ g((e) => ({
2133
+ }), "messageFont"), bt = /* @__PURE__ */ x((e) => ({
2134
2134
  fontFamily: e.noteFontFamily,
2135
2135
  fontSize: e.noteFontSize,
2136
2136
  fontWeight: e.noteFontWeight
2137
- }), "noteFont"), jt = /* @__PURE__ */ g((e) => ({
2137
+ }), "noteFont"), ee = /* @__PURE__ */ x((e) => ({
2138
2138
  fontFamily: e.actorFontFamily,
2139
2139
  fontSize: e.actorFontSize,
2140
2140
  fontWeight: e.actorFontWeight
2141
2141
  }), "actorFont");
2142
2142
  async function Fe(e, t) {
2143
2143
  R.bumpVerticalPos(10);
2144
- const { startx: a, stopx: r, message: i } = t, o = P.splitBreaks(i).length, s = Q(i), n = s ? await wt(i, $()) : Z.calculateTextDimensions(i, Rt(h));
2144
+ const { startx: a, stopx: r, message: i } = t, n = N.splitBreaks(i).length, s = Q(i), o = s ? await Pt(i, $()) : Z.calculateTextDimensions(i, Rt(l));
2145
2145
  if (!s) {
2146
- const x = n.height / o;
2147
- t.height += x, R.bumpVerticalPos(x);
2146
+ const _ = o.height / n;
2147
+ t.height += _, R.bumpVerticalPos(_);
2148
2148
  }
2149
- let E, T = n.height - 10;
2150
- const l = n.width;
2149
+ let u, d = o.height - 10;
2150
+ const p = o.width;
2151
2151
  if (a === r) {
2152
- E = R.getVerticalPos() + T, h.rightAngles || (T += h.boxMargin, E = R.getVerticalPos() + T), T += 30;
2153
- const x = P.getMax(l / 2, h.width / 2);
2152
+ u = R.getVerticalPos() + d, l.rightAngles || (d += l.boxMargin, u = R.getVerticalPos() + d), d += 30;
2153
+ const _ = N.getMax(p / 2, l.width / 2);
2154
2154
  R.insert(
2155
- a - x,
2156
- R.getVerticalPos() - 10 + T,
2157
- r + x,
2158
- R.getVerticalPos() + 30 + T
2155
+ a - _,
2156
+ R.getVerticalPos() - 10 + d,
2157
+ r + _,
2158
+ R.getVerticalPos() + 30 + d
2159
2159
  );
2160
2160
  } else
2161
- T += h.boxMargin, E = R.getVerticalPos() + T, R.insert(a, E - 10, r, E);
2162
- return R.bumpVerticalPos(T), t.height += T, t.stopy = t.starty + t.height, R.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), E;
2161
+ d += l.boxMargin, u = R.getVerticalPos() + d, R.insert(a, u - 10, r, u);
2162
+ return R.bumpVerticalPos(d), t.height += d, t.stopy = t.starty + t.height, R.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), u;
2163
2163
  }
2164
- g(Fe, "boundMessage");
2165
- var $r = /* @__PURE__ */ g(async function(e, t, a, r, i, o) {
2166
- const { startx: s, stopx: n, starty: E, message: T, type: l, sequenceIndex: x, sequenceVisible: u } = t, O = Z.calculateTextDimensions(T, Rt(h)), p = ee();
2167
- p.x = Math.min(s, n), p.y = E + 10, p.width = Math.abs(n - s), p.class = "messageText", p.dy = "1em", p.text = T, p.fontFamily = h.messageFontFamily, p.fontSize = h.messageFontSize, p.fontWeight = h.messageFontWeight, p.anchor = h.messageAlign, p.valign = "center", p.textMargin = h.wrapPadding, p.tspan = !1, Q(p.text) ? await Wt(e, p, { startx: s, stopx: n, starty: a }) : bt(e, p);
2168
- const f = O.width;
2169
- let _;
2170
- if (s === n) {
2171
- const L = u || h.showSequenceNumbers, b = Xe(i, r), S = ia(i, r), A = s + (L && (b || S) ? 10 : 0);
2172
- h.rightAngles ? _ = e.append("path").attr(
2164
+ x(Fe, "boundMessage");
2165
+ var $r = /* @__PURE__ */ x(async function(e, t, a, r, i, n) {
2166
+ const { startx: s, stopx: o, starty: u, message: d, type: p, sequenceIndex: _, sequenceVisible: E } = t, O = Z.calculateTextDimensions(d, Rt(l)), T = ae();
2167
+ T.x = Math.min(s, o), T.y = u + 10, T.width = Math.abs(o - s), T.class = "messageText", T.dy = "1em", T.text = d, T.fontFamily = l.messageFontFamily, T.fontSize = l.messageFontSize, T.fontWeight = l.messageFontWeight, T.anchor = l.messageAlign, T.valign = "center", T.textMargin = l.wrapPadding, T.tspan = !1, Q(T.text) ? await Ft(e, T, { startx: s, stopx: o, starty: a }) : mt(e, T);
2168
+ const g = O.width;
2169
+ let f;
2170
+ if (s === o) {
2171
+ const L = E || l.showSequenceNumbers, b = Xe(i, r), w = ia(i, r), A = s + (L && (b || w) ? 10 : 0);
2172
+ l.rightAngles ? f = e.append("path").attr(
2173
2173
  "d",
2174
- `M ${A},${a} H ${s + P.getMax(h.width / 2, f / 2)} V ${a + 25} H ${s}`
2175
- ) : _ = e.append("path").attr(
2174
+ `M ${A},${a} H ${s + N.getMax(l.width / 2, g / 2)} V ${a + 25} H ${s}`
2175
+ ) : f = e.append("path").attr(
2176
2176
  "d",
2177
2177
  "M " + A + "," + a + " C " + (A + 60) + "," + (a - 10) + " " + (s + 60) + "," + (a + 30) + " " + s + "," + (a + 20)
2178
- ), Qt(i, r) && De(e, i, t, r, s, n, a);
2178
+ ), jt(i, r) && De(e, i, t, r, s, o, a);
2179
2179
  } else
2180
- _ = e.append("line"), _.attr("x1", s), _.attr("y1", a), _.attr("x2", n), _.attr("y2", a), Qt(i, r) && De(e, i, t, r, s, n, a);
2181
- l === r.db.LINETYPE.DOTTED || l === r.db.LINETYPE.DOTTED_CROSS || l === r.db.LINETYPE.DOTTED_POINT || l === r.db.LINETYPE.DOTTED_OPEN || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || l === r.db.LINETYPE.SOLID_TOP_DOTTED || l === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || l === r.db.LINETYPE.STICK_TOP_DOTTED || l === r.db.LINETYPE.STICK_BOTTOM_DOTTED || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (_.style("stroke-dasharray", "3, 3"), _.attr("class", "messageLine1")) : _.attr("class", "messageLine0"), _.attr("data-et", "message"), _.attr("data-id", "i" + t.id), _.attr("data-from", t.from), _.attr("data-to", t.to);
2180
+ f = e.append("line"), f.attr("x1", s), f.attr("y1", a), f.attr("x2", o), f.attr("y2", a), jt(i, r) && De(e, i, t, r, s, o, a);
2181
+ p === r.db.LINETYPE.DOTTED || p === r.db.LINETYPE.DOTTED_CROSS || p === r.db.LINETYPE.DOTTED_POINT || p === r.db.LINETYPE.DOTTED_OPEN || p === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || p === r.db.LINETYPE.SOLID_TOP_DOTTED || p === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || p === r.db.LINETYPE.STICK_TOP_DOTTED || p === r.db.LINETYPE.STICK_BOTTOM_DOTTED || p === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || p === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || p === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || p === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (f.style("stroke-dasharray", "3, 3"), f.attr("class", "messageLine1")) : f.attr("class", "messageLine0"), f.attr("data-et", "message"), f.attr("data-id", "i" + t.id), f.attr("data-from", t.from), f.attr("data-to", t.to);
2182
2182
  let I = "";
2183
- if (h.arrowMarkerAbsolute && (I = Tr(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (l === r.db.LINETYPE.SOLID_TOP || l === r.db.LINETYPE.SOLID_TOP_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-solidTopArrowHead)"), (l === r.db.LINETYPE.SOLID_BOTTOM || l === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-solidBottomArrowHead)"), (l === r.db.LINETYPE.STICK_TOP || l === r.db.LINETYPE.STICK_TOP_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-stickTopArrowHead)"), (l === r.db.LINETYPE.STICK_BOTTOM || l === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-stickBottomArrowHead)"), (l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-solidBottomArrowHead)"), (l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-solidTopArrowHead)"), (l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-stickBottomArrowHead)"), (l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + I + "#" + o + "-stickTopArrowHead)"), (l === r.db.LINETYPE.SOLID || l === r.db.LINETYPE.DOTTED) && _.attr("marker-end", "url(" + I + "#" + o + "-arrowhead)"), (l === r.db.LINETYPE.BIDIRECTIONAL_SOLID || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (_.attr("marker-start", "url(" + I + "#" + o + "-arrowhead)"), _.attr("marker-end", "url(" + I + "#" + o + "-arrowhead)")), (l === r.db.LINETYPE.SOLID_POINT || l === r.db.LINETYPE.DOTTED_POINT) && _.attr("marker-end", "url(" + I + "#" + o + "-filled-head)"), (l === r.db.LINETYPE.SOLID_CROSS || l === r.db.LINETYPE.DOTTED_CROSS) && _.attr("marker-end", "url(" + I + "#" + o + "-crosshead)"), u || h.showSequenceNumbers) {
2184
- const L = l === r.db.LINETYPE.BIDIRECTIONAL_SOLID || l === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, b = l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || l === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || l === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, S = 6, A = Qt(i, r);
2185
- let N = s, B = n;
2186
- L ? (s < n ? N = s + S * 2 : (N = s - S + (A ? -5 : 0), N += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), _.attr("x1", N)) : b ? (n > s ? B = n - 2 * S : (B = n - S, N += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), B += A ? 15 : 0, _.attr("x2", B), _.attr("x1", N)) : _.attr("x1", s + S);
2183
+ if (l.arrowMarkerAbsolute && (I = pr(!0)), f.attr("stroke-width", 2), f.attr("stroke", "none"), f.style("fill", "none"), (p === r.db.LINETYPE.SOLID_TOP || p === r.db.LINETYPE.SOLID_TOP_DOTTED) && f.attr("marker-end", "url(" + I + "#" + n + "-solidTopArrowHead)"), (p === r.db.LINETYPE.SOLID_BOTTOM || p === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && f.attr("marker-end", "url(" + I + "#" + n + "-solidBottomArrowHead)"), (p === r.db.LINETYPE.STICK_TOP || p === r.db.LINETYPE.STICK_TOP_DOTTED) && f.attr("marker-end", "url(" + I + "#" + n + "-stickTopArrowHead)"), (p === r.db.LINETYPE.STICK_BOTTOM || p === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && f.attr("marker-end", "url(" + I + "#" + n + "-stickBottomArrowHead)"), (p === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || p === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && f.attr("marker-start", "url(" + I + "#" + n + "-solidBottomArrowHead)"), (p === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || p === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && f.attr("marker-start", "url(" + I + "#" + n + "-solidTopArrowHead)"), (p === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || p === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && f.attr("marker-start", "url(" + I + "#" + n + "-stickBottomArrowHead)"), (p === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || p === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && f.attr("marker-start", "url(" + I + "#" + n + "-stickTopArrowHead)"), (p === r.db.LINETYPE.SOLID || p === r.db.LINETYPE.DOTTED) && f.attr("marker-end", "url(" + I + "#" + n + "-arrowhead)"), (p === r.db.LINETYPE.BIDIRECTIONAL_SOLID || p === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (f.attr("marker-start", "url(" + I + "#" + n + "-arrowhead)"), f.attr("marker-end", "url(" + I + "#" + n + "-arrowhead)")), (p === r.db.LINETYPE.SOLID_POINT || p === r.db.LINETYPE.DOTTED_POINT) && f.attr("marker-end", "url(" + I + "#" + n + "-filled-head)"), (p === r.db.LINETYPE.SOLID_CROSS || p === r.db.LINETYPE.DOTTED_CROSS) && f.attr("marker-end", "url(" + I + "#" + n + "-crosshead)"), E || l.showSequenceNumbers) {
2184
+ const L = p === r.db.LINETYPE.BIDIRECTIONAL_SOLID || p === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, b = p === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || p === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || p === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || p === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || p === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || p === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || p === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || p === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, w = 6, A = jt(i, r);
2185
+ let D = s, M = o;
2186
+ L ? (s < o ? D = s + w * 2 : (D = s - w + (A ? -5 : 0), D += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), f.attr("x1", D)) : b ? (o > s ? M = o - 2 * w : (M = o - w, D += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), M += A ? 15 : 0, f.attr("x2", M), f.attr("x1", D)) : f.attr("x1", s + w);
2187
2187
  let V = 0;
2188
- const q = s === n, U = s <= n;
2189
- q ? V = t.fromBounds + 1 : b ? V = U ? t.toBounds - 1 : t.fromBounds + 1 : V = U ? t.fromBounds + 1 : t.toBounds - 1;
2188
+ const W = s === o, U = s <= o;
2189
+ W ? V = t.fromBounds + 1 : b ? V = U ? t.toBounds - 1 : t.fromBounds + 1 : V = U ? t.fromBounds + 1 : t.toBounds - 1;
2190
2190
  let G = "12px";
2191
- const X = x.toString().length;
2192
- X > 5 ? G = "7px" : X > 3 && (G = "9px"), e.append("line").attr("x1", V).attr("y1", a).attr("x2", V).attr("y2", a).attr("stroke-width", 0).attr("marker-start", "url(" + I + "#" + o + "-sequencenumber)"), e.append("text").attr("x", V).attr("y", a + 4).attr("font-family", "sans-serif").attr("font-size", G).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(x);
2191
+ const X = _.toString().length;
2192
+ X > 5 ? G = "7px" : X > 3 && (G = "9px"), e.append("line").attr("x1", V).attr("y1", a).attr("x2", V).attr("y2", a).attr("stroke-width", 0).attr("marker-start", "url(" + I + "#" + n + "-sequencenumber)"), e.append("text").attr("x", V).attr("y", a + 4).attr("font-family", "sans-serif").attr("font-size", G).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(_);
2193
2193
  }
2194
- }, "drawMessage"), jr = /* @__PURE__ */ g(function(e, t, a, r, i, o, s) {
2195
- let n = 0, E = 0, T, l = 0;
2196
- for (const x of r) {
2197
- const u = t.get(x), O = u.box;
2198
- T && T != O && (s || R.models.addBox(T), E += h.boxMargin + T.margin), O && O != T && (s || (O.x = n + E, O.y = i), E += O.margin), u.width = P.getMax(u.width || h.width, h.width), u.height = P.getMax(u.height || h.height, h.height), u.margin = u.margin || h.actorMargin, l = P.getMax(l, u.height), a.get(u.name) && (E += u.width / 2), u.x = n + E, u.starty = R.getVerticalPos(), R.insert(u.x, i, u.x + u.width, u.height), n += u.width + E, u.box && (u.box.width = n + O.margin - u.box.x), E = u.margin, T = u.box, R.models.addActor(u);
2194
+ }, "drawMessage"), jr = /* @__PURE__ */ x(function(e, t, a, r, i, n, s) {
2195
+ let o = 0, u = 0, d, p = 0;
2196
+ for (const _ of r) {
2197
+ const E = t.get(_), O = E.box;
2198
+ d && d != O && (s || R.models.addBox(d), u += l.boxMargin + d.margin), O && O != d && (s || (O.x = o + u, O.y = i), u += O.margin), E.width = N.getMax(E.width || l.width, l.width), E.height = N.getMax(E.height || l.height, l.height), E.margin = E.margin || l.actorMargin, p = N.getMax(p, E.height), a.get(E.name) && (u += E.width / 2), E.x = o + u, E.starty = R.getVerticalPos(), R.insert(E.x, i, E.x + E.width, E.height), o += E.width + u, E.box && (E.box.width = o + O.margin - E.box.x), u = E.margin, d = E.box, R.models.addActor(E);
2199
2199
  }
2200
- T && !s && R.models.addBox(T), R.bumpVerticalPos(l);
2201
- }, "addActorRenderingData"), te = /* @__PURE__ */ g(async function(e, t, a, r, i, o, s) {
2200
+ d && !s && R.models.addBox(d), R.bumpVerticalPos(p);
2201
+ }, "addActorRenderingData"), re = /* @__PURE__ */ x(async function(e, t, a, r, i, n, s) {
2202
2202
  if (r) {
2203
- let n = 0;
2204
- R.bumpVerticalPos(h.boxMargin * 2);
2205
- for (const E of a) {
2206
- const T = t.get(E);
2207
- T.stopy || (T.stopy = R.getVerticalPos());
2208
- const l = await F.drawActor(
2203
+ let o = 0;
2204
+ R.bumpVerticalPos(l.boxMargin * 2);
2205
+ for (const u of a) {
2206
+ const d = t.get(u);
2207
+ d.stopy || (d.stopy = R.getVerticalPos());
2208
+ const p = await q.drawActor(
2209
2209
  e,
2210
- T,
2211
- h,
2210
+ d,
2211
+ l,
2212
2212
  !0,
2213
2213
  i,
2214
- o,
2214
+ n,
2215
2215
  s
2216
2216
  );
2217
- n = P.getMax(n, l);
2217
+ o = N.getMax(o, p);
2218
2218
  }
2219
- R.bumpVerticalPos(n + h.boxMargin);
2219
+ R.bumpVerticalPos(o + l.boxMargin);
2220
2220
  } else
2221
- for (const n of a) {
2222
- const E = t.get(n);
2223
- await F.drawActor(e, E, h, !1, i, o, s);
2221
+ for (const o of a) {
2222
+ const u = t.get(o);
2223
+ await q.drawActor(e, u, l, !1, i, n, s);
2224
2224
  }
2225
- }, "drawActors"), qe = /* @__PURE__ */ g(function(e, t, a, r) {
2226
- let i = 0, o = 0;
2225
+ }, "drawActors"), qe = /* @__PURE__ */ x(function(e, t, a, r) {
2226
+ let i = 0, n = 0;
2227
2227
  for (const s of a) {
2228
- const n = t.get(s), E = ea(n), T = F.drawPopup(
2228
+ const o = t.get(s), u = ea(o), d = q.drawPopup(
2229
2229
  e,
2230
- n,
2231
- E,
2232
- h,
2233
- h.forceMenus,
2230
+ o,
2231
+ u,
2232
+ l,
2233
+ l.forceMenus,
2234
2234
  r
2235
2235
  );
2236
- T.height > i && (i = T.height), T.width + n.x > o && (o = T.width + n.x);
2236
+ d.height > i && (i = d.height), d.width + o.x > n && (n = d.width + o.x);
2237
2237
  }
2238
- return { maxHeight: i, maxWidth: o };
2239
- }, "drawActorsPopup"), He = /* @__PURE__ */ g(function(e) {
2240
- rr(h, e), e.fontFamily && (h.actorFontFamily = h.noteFontFamily = h.messageFontFamily = e.fontFamily), e.fontSize && (h.actorFontSize = h.noteFontSize = h.messageFontSize = e.fontSize), e.fontWeight && (h.actorFontWeight = h.noteFontWeight = h.messageFontWeight = e.fontWeight);
2241
- }, "setConf"), qt = /* @__PURE__ */ g(function(e) {
2238
+ return { maxHeight: i, maxWidth: n };
2239
+ }, "drawActorsPopup"), He = /* @__PURE__ */ x(function(e) {
2240
+ ar(l, e), e.fontFamily && (l.actorFontFamily = l.noteFontFamily = l.messageFontFamily = e.fontFamily), e.fontSize && (l.actorFontSize = l.noteFontSize = l.messageFontSize = e.fontSize), e.fontWeight && (l.actorFontWeight = l.noteFontWeight = l.messageFontWeight = e.fontWeight);
2241
+ }, "setConf"), zt = /* @__PURE__ */ x(function(e) {
2242
2242
  return R.activations.filter(function(t) {
2243
2243
  return t.actor === e;
2244
2244
  });
2245
- }, "actorActivations"), ve = /* @__PURE__ */ g(function(e, t) {
2246
- const a = t.get(e), r = qt(e), i = r.reduce(
2247
- function(s, n) {
2248
- return P.getMin(s, n.startx);
2245
+ }, "actorActivations"), ve = /* @__PURE__ */ x(function(e, t) {
2246
+ const a = t.get(e), r = zt(e), i = r.reduce(
2247
+ function(s, o) {
2248
+ return N.getMin(s, o.startx);
2249
2249
  },
2250
2250
  a.x + a.width / 2 - 1
2251
- ), o = r.reduce(
2252
- function(s, n) {
2253
- return P.getMax(s, n.stopx);
2251
+ ), n = r.reduce(
2252
+ function(s, o) {
2253
+ return N.getMax(s, o.stopx);
2254
2254
  },
2255
2255
  a.x + a.width / 2 + 1
2256
2256
  );
2257
- return [i, o];
2257
+ return [i, n];
2258
2258
  }, "activationBounds");
2259
2259
  function ht(e, t, a, r, i) {
2260
2260
  R.bumpVerticalPos(a);
2261
- let o = r;
2261
+ let n = r;
2262
2262
  if (t.id && t.message && e[t.id]) {
2263
- const s = e[t.id].width, n = Rt(h);
2264
- t.message = Z.wrapLabel(`[${t.message}]`, s - 2 * h.wrapPadding, n), t.width = s, t.wrap = !0;
2265
- const E = Z.calculateTextDimensions(t.message, n), T = P.getMax(E.height, h.labelBoxHeight);
2266
- o = r + T, at.debug(`${T} - ${t.message}`);
2263
+ const s = e[t.id].width, o = Rt(l);
2264
+ t.message = Z.wrapLabel(`[${t.message}]`, s - 2 * l.wrapPadding, o), t.width = s, t.wrap = !0;
2265
+ const u = Z.calculateTextDimensions(t.message, o), d = N.getMax(u.height, l.labelBoxHeight);
2266
+ n = r + d, at.debug(`${d} - ${t.message}`);
2267
2267
  }
2268
- i(t), R.bumpVerticalPos(o);
2268
+ i(t), R.bumpVerticalPos(n);
2269
2269
  }
2270
- g(ht, "adjustLoopHeightForWrap");
2271
- function ze(e, t, a, r, i, o, s) {
2272
- function n(l, x) {
2273
- l.x < i.get(e.from).x ? (R.insert(
2274
- t.stopx - x,
2270
+ x(ht, "adjustLoopHeightForWrap");
2271
+ function ze(e, t, a, r, i, n, s) {
2272
+ function o(p, _) {
2273
+ p.x < i.get(e.from).x ? (R.insert(
2274
+ t.stopx - _,
2275
2275
  t.starty,
2276
2276
  t.startx,
2277
- t.stopy + l.height / 2 + h.noteMargin
2278
- ), t.stopx = t.stopx + x) : (R.insert(
2277
+ t.stopy + p.height / 2 + l.noteMargin
2278
+ ), t.stopx = t.stopx + _) : (R.insert(
2279
2279
  t.startx,
2280
2280
  t.starty,
2281
- t.stopx + x,
2282
- t.stopy + l.height / 2 + h.noteMargin
2283
- ), t.stopx = t.stopx - x);
2284
- }
2285
- g(n, "receiverAdjustment");
2286
- function E(l, x) {
2287
- l.x < i.get(e.to).x ? (R.insert(
2288
- t.startx - x,
2281
+ t.stopx + _,
2282
+ t.stopy + p.height / 2 + l.noteMargin
2283
+ ), t.stopx = t.stopx - _);
2284
+ }
2285
+ x(o, "receiverAdjustment");
2286
+ function u(p, _) {
2287
+ p.x < i.get(e.to).x ? (R.insert(
2288
+ t.startx - _,
2289
2289
  t.starty,
2290
2290
  t.stopx,
2291
- t.stopy + l.height / 2 + h.noteMargin
2292
- ), t.startx = t.startx + x) : (R.insert(
2291
+ t.stopy + p.height / 2 + l.noteMargin
2292
+ ), t.startx = t.startx + _) : (R.insert(
2293
2293
  t.stopx,
2294
2294
  t.starty,
2295
- t.startx + x,
2296
- t.stopy + l.height / 2 + h.noteMargin
2297
- ), t.startx = t.startx - x);
2298
- }
2299
- g(E, "senderAdjustment");
2300
- const T = [
2301
- Vt.ACTOR,
2302
- Vt.CONTROL,
2303
- Vt.ENTITY,
2304
- Vt.DATABASE
2295
+ t.startx + _,
2296
+ t.stopy + p.height / 2 + l.noteMargin
2297
+ ), t.startx = t.startx - _);
2298
+ }
2299
+ x(u, "senderAdjustment");
2300
+ const d = [
2301
+ Wt.ACTOR,
2302
+ Wt.CONTROL,
2303
+ Wt.ENTITY,
2304
+ Wt.DATABASE
2305
2305
  ];
2306
- if (o.get(e.to) == r) {
2307
- const l = i.get(e.to), x = T.includes(l.type) ? It / 2 + 3 : l.width / 2 + 3;
2308
- n(l, x), l.starty = a - l.height / 2, R.bumpVerticalPos(l.height / 2);
2306
+ if (n.get(e.to) == r) {
2307
+ const p = i.get(e.to), _ = d.includes(p.type) ? It / 2 + 3 : p.width / 2 + 3;
2308
+ o(p, _), p.starty = a - p.height / 2, R.bumpVerticalPos(p.height / 2);
2309
2309
  } else if (s.get(e.from) == r) {
2310
- const l = i.get(e.from);
2311
- if (h.mirrorActors) {
2312
- const x = T.includes(l.type) ? It / 2 : l.width / 2;
2313
- E(l, x);
2310
+ const p = i.get(e.from);
2311
+ if (l.mirrorActors) {
2312
+ const _ = d.includes(p.type) ? It / 2 : p.width / 2;
2313
+ u(p, _);
2314
2314
  }
2315
- l.stopy = a - l.height / 2, R.bumpVerticalPos(l.height / 2);
2315
+ p.stopy = a - p.height / 2, R.bumpVerticalPos(p.height / 2);
2316
2316
  } else if (s.get(e.to) == r) {
2317
- const l = i.get(e.to);
2318
- if (h.mirrorActors) {
2319
- const x = T.includes(l.type) ? It / 2 + 3 : l.width / 2 + 3;
2320
- n(l, x);
2317
+ const p = i.get(e.to);
2318
+ if (l.mirrorActors) {
2319
+ const _ = d.includes(p.type) ? It / 2 + 3 : p.width / 2 + 3;
2320
+ o(p, _);
2321
2321
  }
2322
- l.stopy = a - l.height / 2, R.bumpVerticalPos(l.height / 2);
2322
+ p.stopy = a - p.height / 2, R.bumpVerticalPos(p.height / 2);
2323
2323
  }
2324
2324
  }
2325
- g(ze, "adjustCreatedDestroyedData");
2326
- var ta = /* @__PURE__ */ g(async function(e, t, a, r) {
2327
- const { securityLevel: i, sequence: o, look: s } = $();
2328
- h = o;
2329
- let n;
2330
- i === "sandbox" && (n = Mt("#i" + t));
2331
- const E = i === "sandbox" ? Mt(n.nodes()[0].contentDocument.body) : Mt("body"), T = i === "sandbox" ? n.nodes()[0].contentDocument : document;
2325
+ x(ze, "adjustCreatedDestroyedData");
2326
+ var ta = /* @__PURE__ */ x(async function(e, t, a, r) {
2327
+ const { securityLevel: i, sequence: n, look: s, themeVariables: o } = $();
2328
+ l = n;
2329
+ let u;
2330
+ i === "sandbox" && (u = Vt("#i" + t));
2331
+ const d = i === "sandbox" ? Vt(u.nodes()[0].contentDocument.body) : Vt("body"), p = i === "sandbox" ? u.nodes()[0].contentDocument : document;
2332
2332
  R.init(), at.debug(r.db);
2333
- const l = i === "sandbox" ? E.select(`[id="${t}"]`) : Mt(`[id="${t}"]`), x = r.db.getActors(), u = r.db.getCreatedActors(), O = r.db.getDestroyedActors(), p = r.db.getBoxes();
2333
+ const _ = i === "sandbox" ? d.select(`[id="${t}"]`) : Vt(`[id="${t}"]`), E = r.db.getActors(), O = r.db.getCreatedActors(), T = r.db.getDestroyedActors(), g = r.db.getBoxes();
2334
2334
  let f = r.db.getActorKeys();
2335
- const _ = r.db.getMessages(), I = r.db.getDiagramTitle(), L = r.db.hasAtLeastOneBox(), b = r.db.hasAtLeastOneBoxWithTitle(), S = await Ue(x, _, r);
2336
- if (h.height = await Ge(x, S, p), F.insertComputerIcon(l, t), F.insertDatabaseIcon(l, t), F.insertClockIcon(l, t), L && (R.bumpVerticalPos(h.boxMargin), b && R.bumpVerticalPos(p[0].textMaxHeight)), h.hideUnusedParticipants === !0) {
2335
+ const I = r.db.getMessages(), L = r.db.getDiagramTitle(), b = r.db.hasAtLeastOneBox(), w = r.db.hasAtLeastOneBoxWithTitle(), A = await Ue(E, I, r);
2336
+ if (l.height = await Ge(E, A, g), q.insertComputerIcon(_, t), q.insertDatabaseIcon(_, t), q.insertClockIcon(_, t), b && (R.bumpVerticalPos(l.boxMargin), w && R.bumpVerticalPos(g[0].textMaxHeight)), l.hideUnusedParticipants === !0) {
2337
2337
  const m = /* @__PURE__ */ new Set();
2338
- _.forEach((D) => {
2339
- m.add(D.from), m.add(D.to);
2340
- }), f = f.filter((D) => m.has(D));
2338
+ I.forEach((k) => {
2339
+ m.add(k.from), m.add(k.to);
2340
+ }), f = f.filter((k) => m.has(k));
2341
2341
  }
2342
- const A = new Map(
2343
- f.map((m, D) => [x.get(m)?.name ?? m, D])
2342
+ const D = new Map(
2343
+ f.map((m, k) => [E.get(m)?.name ?? m, k])
2344
2344
  );
2345
- jr(l, x, u, f, 0, _, !1);
2346
- const N = await oa(_, x, S, r);
2347
- F.insertArrowHead(l, t), F.insertArrowCrossHead(l, t), F.insertArrowFilledHead(l, t), F.insertSequenceNumber(l, t), F.insertSolidTopArrowHead(l, t), F.insertSolidBottomArrowHead(l, t), F.insertStickTopArrowHead(l, t), F.insertStickBottomArrowHead(l, t), s === "neo" && F.insertDropShadow(l, h);
2348
- function B(m, D) {
2345
+ jr(_, E, O, f, 0, I, !1);
2346
+ const M = await oa(I, E, A, r);
2347
+ q.insertArrowHead(_, t), q.insertArrowCrossHead(_, t), q.insertArrowFilledHead(_, t), q.insertSequenceNumber(_, t), q.insertSolidTopArrowHead(_, t), q.insertSolidBottomArrowHead(_, t), q.insertStickTopArrowHead(_, t), q.insertStickBottomArrowHead(_, t), s === "neo" && q.insertDropShadow(_, l);
2348
+ function V(m, k) {
2349
2349
  const lt = R.endActivation(m);
2350
- lt.starty + 18 > D && (lt.starty = D - 6, D += 12), F.drawActivation(
2351
- l,
2350
+ lt.starty + 18 > k && (lt.starty = k - 6, k += 12), q.drawActivation(
2351
+ _,
2352
2352
  lt,
2353
- D,
2354
- h,
2355
- qt(m.from).length,
2353
+ k,
2354
+ l,
2355
+ zt(m.from).length,
2356
2356
  r,
2357
- A
2358
- ), R.insert(lt.startx, D - 10, lt.stopx, D);
2359
- }
2360
- g(B, "activeEnd");
2361
- let V = 1, q = 1;
2362
- const U = [], G = [];
2363
- let X = 0;
2364
- for (const m of _) {
2365
- let D, lt, et;
2357
+ D
2358
+ ), R.insert(lt.startx, k - 10, lt.stopx, k);
2359
+ }
2360
+ x(V, "activeEnd");
2361
+ let W = 1, U = 1;
2362
+ const G = [], X = [];
2363
+ let nt = 0;
2364
+ for (const m of I) {
2365
+ let k, lt, et;
2366
2366
  switch (m.type) {
2367
2367
  case r.db.LINETYPE.NOTE:
2368
- R.resetVerticalPos(), lt = m.noteModel, await Qr(l, lt, m.id);
2368
+ R.resetVerticalPos(), lt = m.noteModel, await Qr(_, lt, m.id);
2369
2369
  break;
2370
2370
  case r.db.LINETYPE.ACTIVE_START:
2371
- R.newActivation(m, l, x);
2371
+ R.newActivation(m, _, E);
2372
2372
  break;
2373
2373
  case r.db.LINETYPE.CENTRAL_CONNECTION:
2374
- R.newActivation(m, l, x);
2374
+ R.newActivation(m, _, E);
2375
2375
  break;
2376
2376
  case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
2377
- R.newActivation(m, l, x);
2377
+ R.newActivation(m, _, E);
2378
2378
  break;
2379
2379
  case r.db.LINETYPE.ACTIVE_END:
2380
- B(m, R.getVerticalPos());
2380
+ V(m, R.getVerticalPos());
2381
2381
  break;
2382
2382
  case r.db.LINETYPE.LOOP_START:
2383
2383
  ht(
2384
- N,
2384
+ M,
2385
2385
  m,
2386
- h.boxMargin,
2387
- h.boxMargin + h.boxTextMargin,
2388
- (W) => R.newLoop(W)
2386
+ l.boxMargin,
2387
+ l.boxMargin + l.boxTextMargin,
2388
+ (K) => R.newLoop(K)
2389
2389
  );
2390
2390
  break;
2391
2391
  case r.db.LINETYPE.LOOP_END:
2392
- D = R.endLoop(), await F.drawLoop(l, D, "loop", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2392
+ k = R.endLoop(), await q.drawLoop(_, k, "loop", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
2393
2393
  break;
2394
2394
  case r.db.LINETYPE.RECT_START:
2395
- ht(
2396
- N,
2397
- m,
2398
- h.boxMargin,
2399
- h.boxMargin,
2400
- (W) => R.newLoop(void 0, W.message)
2401
- );
2395
+ ht(M, m, l.boxMargin, l.boxMargin, (K) => {
2396
+ let Ot = K.message;
2397
+ Ot || (Ot = o?.rectBkgColor || o?.actorBkg || "rgba(128, 128, 128, 0.5)"), R.newLoop(void 0, Ot);
2398
+ });
2402
2399
  break;
2403
2400
  case r.db.LINETYPE.RECT_END:
2404
- D = R.endLoop(), G.push(D), R.models.addLoop(D), R.bumpVerticalPos(D.stopy - R.getVerticalPos());
2401
+ k = R.endLoop(), X.push(k), R.models.addLoop(k), R.bumpVerticalPos(k.stopy - R.getVerticalPos());
2405
2402
  break;
2406
2403
  case r.db.LINETYPE.OPT_START:
2407
2404
  ht(
2408
- N,
2405
+ M,
2409
2406
  m,
2410
- h.boxMargin,
2411
- h.boxMargin + h.boxTextMargin,
2412
- (W) => R.newLoop(W)
2407
+ l.boxMargin,
2408
+ l.boxMargin + l.boxTextMargin,
2409
+ (K) => R.newLoop(K)
2413
2410
  );
2414
2411
  break;
2415
2412
  case r.db.LINETYPE.OPT_END:
2416
- D = R.endLoop(), await F.drawLoop(l, D, "opt", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2413
+ k = R.endLoop(), await q.drawLoop(_, k, "opt", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
2417
2414
  break;
2418
2415
  case r.db.LINETYPE.ALT_START:
2419
2416
  ht(
2420
- N,
2417
+ M,
2421
2418
  m,
2422
- h.boxMargin,
2423
- h.boxMargin + h.boxTextMargin,
2424
- (W) => R.newLoop(W)
2419
+ l.boxMargin,
2420
+ l.boxMargin + l.boxTextMargin,
2421
+ (K) => R.newLoop(K)
2425
2422
  );
2426
2423
  break;
2427
2424
  case r.db.LINETYPE.ALT_ELSE:
2428
2425
  ht(
2429
- N,
2426
+ M,
2430
2427
  m,
2431
- h.boxMargin + h.boxTextMargin,
2432
- h.boxMargin,
2433
- (W) => R.addSectionToLoop(W)
2428
+ l.boxMargin + l.boxTextMargin,
2429
+ l.boxMargin,
2430
+ (K) => R.addSectionToLoop(K)
2434
2431
  );
2435
2432
  break;
2436
2433
  case r.db.LINETYPE.ALT_END:
2437
- D = R.endLoop(), await F.drawLoop(l, D, "alt", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2434
+ k = R.endLoop(), await q.drawLoop(_, k, "alt", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
2438
2435
  break;
2439
2436
  case r.db.LINETYPE.PAR_START:
2440
2437
  case r.db.LINETYPE.PAR_OVER_START:
2441
2438
  ht(
2442
- N,
2439
+ M,
2443
2440
  m,
2444
- h.boxMargin,
2445
- h.boxMargin + h.boxTextMargin,
2446
- (W) => R.newLoop(W)
2441
+ l.boxMargin,
2442
+ l.boxMargin + l.boxTextMargin,
2443
+ (K) => R.newLoop(K)
2447
2444
  ), R.saveVerticalPos();
2448
2445
  break;
2449
2446
  case r.db.LINETYPE.PAR_AND:
2450
2447
  ht(
2451
- N,
2448
+ M,
2452
2449
  m,
2453
- h.boxMargin + h.boxTextMargin,
2454
- h.boxMargin,
2455
- (W) => R.addSectionToLoop(W)
2450
+ l.boxMargin + l.boxTextMargin,
2451
+ l.boxMargin,
2452
+ (K) => R.addSectionToLoop(K)
2456
2453
  );
2457
2454
  break;
2458
2455
  case r.db.LINETYPE.PAR_END:
2459
- D = R.endLoop(), await F.drawLoop(l, D, "par", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2456
+ k = R.endLoop(), await q.drawLoop(_, k, "par", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
2460
2457
  break;
2461
2458
  case r.db.LINETYPE.AUTONUMBER:
2462
- V = m.message.start || V, q = m.message.step || q, m.message.visible ? r.db.enableSequenceNumbers() : r.db.disableSequenceNumbers();
2459
+ W = m.message.start || W, U = m.message.step || U, m.message.visible ? r.db.enableSequenceNumbers() : r.db.disableSequenceNumbers();
2463
2460
  break;
2464
2461
  case r.db.LINETYPE.CRITICAL_START:
2465
2462
  ht(
2466
- N,
2463
+ M,
2467
2464
  m,
2468
- h.boxMargin,
2469
- h.boxMargin + h.boxTextMargin,
2470
- (W) => R.newLoop(W)
2465
+ l.boxMargin,
2466
+ l.boxMargin + l.boxTextMargin,
2467
+ (K) => R.newLoop(K)
2471
2468
  );
2472
2469
  break;
2473
2470
  case r.db.LINETYPE.CRITICAL_OPTION:
2474
2471
  ht(
2475
- N,
2472
+ M,
2476
2473
  m,
2477
- h.boxMargin + h.boxTextMargin,
2478
- h.boxMargin,
2479
- (W) => R.addSectionToLoop(W)
2474
+ l.boxMargin + l.boxTextMargin,
2475
+ l.boxMargin,
2476
+ (K) => R.addSectionToLoop(K)
2480
2477
  );
2481
2478
  break;
2482
2479
  case r.db.LINETYPE.CRITICAL_END:
2483
- D = R.endLoop(), await F.drawLoop(l, D, "critical", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2480
+ k = R.endLoop(), await q.drawLoop(_, k, "critical", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
2484
2481
  break;
2485
2482
  case r.db.LINETYPE.BREAK_START:
2486
2483
  ht(
2487
- N,
2484
+ M,
2488
2485
  m,
2489
- h.boxMargin,
2490
- h.boxMargin + h.boxTextMargin,
2491
- (W) => R.newLoop(W)
2486
+ l.boxMargin,
2487
+ l.boxMargin + l.boxTextMargin,
2488
+ (K) => R.newLoop(K)
2492
2489
  );
2493
2490
  break;
2494
2491
  case r.db.LINETYPE.BREAK_END:
2495
- D = R.endLoop(), await F.drawLoop(l, D, "break", h, m), R.bumpVerticalPos(D.stopy - R.getVerticalPos()), R.models.addLoop(D);
2492
+ k = R.endLoop(), await q.drawLoop(_, k, "break", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
2496
2493
  break;
2497
2494
  default:
2498
2495
  try {
2499
- et = m.msgModel, et.starty = R.getVerticalPos(), et.sequenceIndex = V, et.sequenceVisible = r.db.showSequenceNumbers(), et.id = m.id, et.from = m.from, et.to = m.to;
2500
- const W = await Fe(l, et);
2496
+ et = m.msgModel, et.starty = R.getVerticalPos(), et.sequenceIndex = W, et.sequenceVisible = r.db.showSequenceNumbers(), et.id = m.id, et.from = m.from, et.to = m.to;
2497
+ const K = await Fe(_, et);
2501
2498
  ze(
2502
2499
  m,
2503
2500
  et,
2504
- W,
2505
- X,
2506
- x,
2507
- u,
2508
- O
2509
- ), U.push({ messageModel: et, lineStartY: W, msg: m }), R.models.addMessage(et);
2510
- } catch (W) {
2511
- at.error("error while drawing message", W);
2501
+ K,
2502
+ nt,
2503
+ E,
2504
+ O,
2505
+ T
2506
+ ), G.push({ messageModel: et, lineStartY: K, msg: m }), R.models.addMessage(et);
2507
+ } catch (K) {
2508
+ at.error("error while drawing message", K);
2512
2509
  }
2513
2510
  }
2514
2511
  [
@@ -2538,129 +2535,129 @@ var ta = /* @__PURE__ */ g(async function(e, t, a, r) {
2538
2535
  r.db.LINETYPE.DOTTED_POINT,
2539
2536
  r.db.LINETYPE.BIDIRECTIONAL_SOLID,
2540
2537
  r.db.LINETYPE.BIDIRECTIONAL_DOTTED
2541
- ].includes(m.type) && (V = Math.round((V + q) * 100) / 100), X++;
2538
+ ].includes(m.type) && (W = Math.round((W + U) * 100) / 100), nt++;
2542
2539
  }
2543
- at.debug("createdActors", u), at.debug("destroyedActors", O), await te(l, x, f, !1, t, r, A);
2544
- for (const m of U)
2545
- await $r(l, m.messageModel, m.lineStartY, r, m.msg, t);
2546
- h.mirrorActors && await te(l, x, f, !0, t, r, A), G.forEach((m) => F.drawBackgroundRect(l, m)), Ye(l, x, f, h);
2540
+ at.debug("createdActors", O), at.debug("destroyedActors", T), await re(_, E, f, !1, t, r, D);
2541
+ for (const m of G)
2542
+ await $r(_, m.messageModel, m.lineStartY, r, m.msg, t);
2543
+ l.mirrorActors && await re(_, E, f, !0, t, r, D), X.forEach((m) => q.drawBackgroundRect(_, m)), Ye(_, E, f, l);
2547
2544
  for (const m of R.models.boxes) {
2548
2545
  m.height = R.getVerticalPos() - m.y, R.insert(m.x, m.y, m.x + m.width, m.height);
2549
- const D = h.boxMargin * 2;
2550
- m.startx = m.x - D, m.starty = m.y - D * 0.25, m.stopx = m.startx + m.width + 2 * D, m.stopy = m.starty + m.height + D * 0.75, m.stroke = "rgb(0,0,0, 0.5)", F.drawBox(l, m, h);
2546
+ const k = l.boxMargin * 2;
2547
+ m.startx = m.x - k, m.starty = m.y - k * 0.25, m.stopx = m.startx + m.width + 2 * k, m.stopy = m.starty + m.height + k * 0.75, m.stroke = "rgb(0,0,0, 0.5)", q.drawBox(_, m, l);
2551
2548
  }
2552
- L && R.bumpVerticalPos(h.boxMargin);
2553
- const j = qe(l, x, f, T), { bounds: H } = R.getBounds();
2549
+ b && R.bumpVerticalPos(l.boxMargin);
2550
+ const j = qe(_, E, f, p), { bounds: H } = R.getBounds();
2554
2551
  H.startx === void 0 && (H.startx = 0), H.starty === void 0 && (H.starty = 0), H.stopx === void 0 && (H.stopx = 0), H.stopy === void 0 && (H.stopy = 0);
2555
2552
  let st = H.stopy - H.starty;
2556
2553
  st < j.maxHeight && (st = j.maxHeight);
2557
- let tt = st + 2 * h.diagramMarginY;
2558
- h.mirrorActors && (tt = tt - h.boxMargin + h.bottomMarginAdj);
2559
- let it = H.stopx - H.startx;
2560
- it < j.maxWidth && (it = j.maxWidth);
2561
- const Y = it + 2 * h.diagramMarginX;
2562
- I && l.append("text").text(I).attr("x", (H.stopx - H.startx) / 2 - 2 * h.diagramMarginX).attr("y", -25), er(l, tt, Y, h.useMaxWidth);
2563
- const C = I ? 40 : 0, Nt = x.size && s === "neo" ? 30 : 0;
2564
- l.attr(
2554
+ let tt = st + 2 * l.diagramMarginY;
2555
+ l.mirrorActors && (tt = tt - l.boxMargin + l.bottomMarginAdj);
2556
+ let Y = H.stopx - H.startx;
2557
+ Y < j.maxWidth && (Y = j.maxWidth);
2558
+ const C = Y + 2 * l.diagramMarginX;
2559
+ L && _.append("text").text(L).attr("x", (H.stopx - H.startx) / 2 - 2 * l.diagramMarginX).attr("y", -25), rr(_, tt, C, l.useMaxWidth);
2560
+ const At = L ? 40 : 0, kt = E.size && s === "neo" ? 30 : 0;
2561
+ _.attr(
2565
2562
  "viewBox",
2566
- H.startx - h.diagramMarginX + " -" + (h.diagramMarginY + C) + " " + Y + " " + (tt + C + Nt)
2563
+ H.startx - l.diagramMarginX + " -" + (l.diagramMarginY + At) + " " + C + " " + (tt + At + kt)
2567
2564
  ), at.debug("models:", R.models);
2568
2565
  }, "draw");
2569
2566
  async function Ue(e, t, a) {
2570
2567
  const r = {};
2571
2568
  for (const i of t)
2572
2569
  if (e.get(i.to) && e.get(i.from)) {
2573
- const o = e.get(i.to);
2574
- if (i.placement === a.db.PLACEMENT.LEFTOF && !o.prevActor || i.placement === a.db.PLACEMENT.RIGHTOF && !o.nextActor)
2570
+ const n = e.get(i.to);
2571
+ if (i.placement === a.db.PLACEMENT.LEFTOF && !n.prevActor || i.placement === a.db.PLACEMENT.RIGHTOF && !n.nextActor)
2575
2572
  continue;
2576
- const s = i.placement !== void 0, n = !s, E = s ? Lt(h) : Rt(h), T = i.wrap ? Z.wrapLabel(i.message, h.width - 2 * h.wrapPadding, E) : i.message, x = (Q(T) ? await wt(i.message, $()) : Z.calculateTextDimensions(T, E)).width + 2 * h.wrapPadding;
2577
- n && i.from === o.nextActor ? r[i.to] = P.getMax(
2573
+ const s = i.placement !== void 0, o = !s, u = s ? bt(l) : Rt(l), d = i.wrap ? Z.wrapLabel(i.message, l.width - 2 * l.wrapPadding, u) : i.message, _ = (Q(d) ? await Pt(i.message, $()) : Z.calculateTextDimensions(d, u)).width + 2 * l.wrapPadding;
2574
+ o && i.from === n.nextActor ? r[i.to] = N.getMax(
2578
2575
  r[i.to] || 0,
2579
- x
2580
- ) : n && i.from === o.prevActor ? r[i.from] = P.getMax(
2576
+ _
2577
+ ) : o && i.from === n.prevActor ? r[i.from] = N.getMax(
2581
2578
  r[i.from] || 0,
2582
- x
2583
- ) : n && i.from === i.to ? (r[i.from] = P.getMax(
2579
+ _
2580
+ ) : o && i.from === i.to ? (r[i.from] = N.getMax(
2584
2581
  r[i.from] || 0,
2585
- x / 2
2586
- ), r[i.to] = P.getMax(
2582
+ _ / 2
2583
+ ), r[i.to] = N.getMax(
2587
2584
  r[i.to] || 0,
2588
- x / 2
2589
- )) : i.placement === a.db.PLACEMENT.RIGHTOF ? r[i.from] = P.getMax(
2585
+ _ / 2
2586
+ )) : i.placement === a.db.PLACEMENT.RIGHTOF ? r[i.from] = N.getMax(
2590
2587
  r[i.from] || 0,
2591
- x
2592
- ) : i.placement === a.db.PLACEMENT.LEFTOF ? r[o.prevActor] = P.getMax(
2593
- r[o.prevActor] || 0,
2594
- x
2595
- ) : i.placement === a.db.PLACEMENT.OVER && (o.prevActor && (r[o.prevActor] = P.getMax(
2596
- r[o.prevActor] || 0,
2597
- x / 2
2598
- )), o.nextActor && (r[i.from] = P.getMax(
2588
+ _
2589
+ ) : i.placement === a.db.PLACEMENT.LEFTOF ? r[n.prevActor] = N.getMax(
2590
+ r[n.prevActor] || 0,
2591
+ _
2592
+ ) : i.placement === a.db.PLACEMENT.OVER && (n.prevActor && (r[n.prevActor] = N.getMax(
2593
+ r[n.prevActor] || 0,
2594
+ _ / 2
2595
+ )), n.nextActor && (r[i.from] = N.getMax(
2599
2596
  r[i.from] || 0,
2600
- x / 2
2597
+ _ / 2
2601
2598
  )));
2602
2599
  }
2603
2600
  return at.debug("maxMessageWidthPerActor:", r), r;
2604
2601
  }
2605
- g(Ue, "getMaxMessageWidthPerActor");
2606
- var ea = /* @__PURE__ */ g(function(e) {
2602
+ x(Ue, "getMaxMessageWidthPerActor");
2603
+ var ea = /* @__PURE__ */ x(function(e) {
2607
2604
  let t = 0;
2608
- const a = jt(h);
2605
+ const a = ee(l);
2609
2606
  for (const r in e.links) {
2610
- const o = Z.calculateTextDimensions(r, a).width + 2 * h.wrapPadding + 2 * h.boxMargin;
2611
- t < o && (t = o);
2607
+ const n = Z.calculateTextDimensions(r, a).width + 2 * l.wrapPadding + 2 * l.boxMargin;
2608
+ t < n && (t = n);
2612
2609
  }
2613
2610
  return t;
2614
2611
  }, "getRequiredPopupWidth");
2615
2612
  async function Ge(e, t, a) {
2616
2613
  let r = 0;
2617
- for (const o of e.keys()) {
2618
- const s = e.get(o);
2614
+ for (const n of e.keys()) {
2615
+ const s = e.get(n);
2619
2616
  s.wrap && (s.description = Z.wrapLabel(
2620
2617
  s.description,
2621
- h.width - 2 * h.wrapPadding,
2622
- jt(h)
2618
+ l.width - 2 * l.wrapPadding,
2619
+ ee(l)
2623
2620
  ));
2624
- const n = Q(s.description) ? await wt(s.description, $()) : Z.calculateTextDimensions(s.description, jt(h));
2625
- s.width = s.wrap ? h.width : P.getMax(h.width, n.width + 2 * h.wrapPadding), s.height = s.wrap ? P.getMax(n.height, h.height) : h.height, r = P.getMax(r, s.height);
2621
+ const o = Q(s.description) ? await Pt(s.description, $()) : Z.calculateTextDimensions(s.description, ee(l));
2622
+ s.width = s.wrap ? l.width : N.getMax(l.width, o.width + 2 * l.wrapPadding), s.height = s.wrap ? N.getMax(o.height, l.height) : l.height, r = N.getMax(r, s.height);
2626
2623
  }
2627
- for (const o in t) {
2628
- const s = e.get(o);
2624
+ for (const n in t) {
2625
+ const s = e.get(n);
2629
2626
  if (!s)
2630
2627
  continue;
2631
- const n = e.get(s.nextActor);
2632
- if (!n) {
2633
- const x = t[o] + h.actorMargin - s.width / 2;
2634
- s.margin = P.getMax(x, h.actorMargin);
2628
+ const o = e.get(s.nextActor);
2629
+ if (!o) {
2630
+ const _ = t[n] + l.actorMargin - s.width / 2;
2631
+ s.margin = N.getMax(_, l.actorMargin);
2635
2632
  continue;
2636
2633
  }
2637
- const T = t[o] + h.actorMargin - s.width / 2 - n.width / 2;
2638
- s.margin = P.getMax(T, h.actorMargin);
2634
+ const d = t[n] + l.actorMargin - s.width / 2 - o.width / 2;
2635
+ s.margin = N.getMax(d, l.actorMargin);
2639
2636
  }
2640
2637
  let i = 0;
2641
- return a.forEach((o) => {
2642
- const s = Rt(h);
2643
- let n = o.actorKeys.reduce((x, u) => x += e.get(u).width + (e.get(u).margin || 0), 0);
2644
- const E = h.boxMargin * 8;
2645
- n += E, n -= 2 * h.boxTextMargin, o.wrap && (o.name = Z.wrapLabel(o.name, n - 2 * h.wrapPadding, s));
2646
- const T = Z.calculateTextDimensions(o.name, s);
2647
- i = P.getMax(T.height, i);
2648
- const l = P.getMax(n, T.width + 2 * h.wrapPadding);
2649
- if (o.margin = h.boxTextMargin, n < l) {
2650
- const x = (l - n) / 2;
2651
- o.margin += x;
2638
+ return a.forEach((n) => {
2639
+ const s = Rt(l);
2640
+ let o = n.actorKeys.reduce((_, E) => _ += e.get(E).width + (e.get(E).margin || 0), 0);
2641
+ const u = l.boxMargin * 8;
2642
+ o += u, o -= 2 * l.boxTextMargin, n.wrap && (n.name = Z.wrapLabel(n.name, o - 2 * l.wrapPadding, s));
2643
+ const d = Z.calculateTextDimensions(n.name, s);
2644
+ i = N.getMax(d.height, i);
2645
+ const p = N.getMax(o, d.width + 2 * l.wrapPadding);
2646
+ if (n.margin = l.boxTextMargin, o < p) {
2647
+ const _ = (p - o) / 2;
2648
+ n.margin += _;
2652
2649
  }
2653
- }), a.forEach((o) => o.textMaxHeight = i), P.getMax(r, h.height);
2650
+ }), a.forEach((n) => n.textMaxHeight = i), N.getMax(r, l.height);
2654
2651
  }
2655
- g(Ge, "calculateActorMargins");
2656
- var ra = /* @__PURE__ */ g(async function(e, t, a) {
2657
- const r = t.get(e.from), i = t.get(e.to), o = r.x, s = i.x, n = e.wrap && e.message;
2658
- let E = Q(e.message) ? await wt(e.message, $()) : Z.calculateTextDimensions(
2659
- n ? Z.wrapLabel(e.message, h.width, Lt(h)) : e.message,
2660
- Lt(h)
2652
+ x(Ge, "calculateActorMargins");
2653
+ var ra = /* @__PURE__ */ x(async function(e, t, a) {
2654
+ const r = t.get(e.from), i = t.get(e.to), n = r.x, s = i.x, o = e.wrap && e.message;
2655
+ let u = Q(e.message) ? await Pt(e.message, $()) : Z.calculateTextDimensions(
2656
+ o ? Z.wrapLabel(e.message, l.width, bt(l)) : e.message,
2657
+ bt(l)
2661
2658
  );
2662
- const T = {
2663
- width: n ? h.width : P.getMax(h.width, E.width + 2 * h.noteMargin),
2659
+ const d = {
2660
+ width: o ? l.width : N.getMax(l.width, u.width + 2 * l.noteMargin),
2664
2661
  height: 0,
2665
2662
  startx: r.x,
2666
2663
  stopx: 0,
@@ -2668,61 +2665,61 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2668
2665
  stopy: 0,
2669
2666
  message: e.message
2670
2667
  };
2671
- return e.placement === a.db.PLACEMENT.RIGHTOF ? (T.width = n ? P.getMax(h.width, E.width) : P.getMax(
2668
+ return e.placement === a.db.PLACEMENT.RIGHTOF ? (d.width = o ? N.getMax(l.width, u.width) : N.getMax(
2672
2669
  r.width / 2 + i.width / 2,
2673
- E.width + 2 * h.noteMargin
2674
- ), T.startx = o + (r.width + h.actorMargin) / 2) : e.placement === a.db.PLACEMENT.LEFTOF ? (T.width = n ? P.getMax(h.width, E.width + 2 * h.noteMargin) : P.getMax(
2670
+ u.width + 2 * l.noteMargin
2671
+ ), d.startx = n + (r.width + l.actorMargin) / 2) : e.placement === a.db.PLACEMENT.LEFTOF ? (d.width = o ? N.getMax(l.width, u.width + 2 * l.noteMargin) : N.getMax(
2675
2672
  r.width / 2 + i.width / 2,
2676
- E.width + 2 * h.noteMargin
2677
- ), T.startx = o - T.width + (r.width - h.actorMargin) / 2) : e.to === e.from ? (E = Z.calculateTextDimensions(
2678
- n ? Z.wrapLabel(e.message, P.getMax(h.width, r.width), Lt(h)) : e.message,
2679
- Lt(h)
2680
- ), T.width = n ? P.getMax(h.width, r.width) : P.getMax(r.width, h.width, E.width + 2 * h.noteMargin), T.startx = o + (r.width - T.width) / 2) : (T.width = Math.abs(o + r.width / 2 - (s + i.width / 2)) + h.actorMargin, T.startx = o < s ? o + r.width / 2 - h.actorMargin / 2 : s + i.width / 2 - h.actorMargin / 2), n && (T.message = Z.wrapLabel(
2673
+ u.width + 2 * l.noteMargin
2674
+ ), d.startx = n - d.width + (r.width - l.actorMargin) / 2) : e.to === e.from ? (u = Z.calculateTextDimensions(
2675
+ o ? Z.wrapLabel(e.message, N.getMax(l.width, r.width), bt(l)) : e.message,
2676
+ bt(l)
2677
+ ), d.width = o ? N.getMax(l.width, r.width) : N.getMax(r.width, l.width, u.width + 2 * l.noteMargin), d.startx = n + (r.width - d.width) / 2) : (d.width = Math.abs(n + r.width / 2 - (s + i.width / 2)) + l.actorMargin, d.startx = n < s ? n + r.width / 2 - l.actorMargin / 2 : s + i.width / 2 - l.actorMargin / 2), o && (d.message = Z.wrapLabel(
2681
2678
  e.message,
2682
- T.width - 2 * h.wrapPadding,
2683
- Lt(h)
2679
+ d.width - 2 * l.wrapPadding,
2680
+ bt(l)
2684
2681
  )), at.debug(
2685
- `NM:[${T.startx},${T.stopx},${T.starty},${T.stopy}:${T.width},${T.height}=${e.message}]`
2686
- ), T;
2687
- }, "buildNoteModel"), aa = 4, Qt = /* @__PURE__ */ g(function(e, t) {
2682
+ `NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`
2683
+ ), d;
2684
+ }, "buildNoteModel"), aa = 4, jt = /* @__PURE__ */ x(function(e, t) {
2688
2685
  const { CENTRAL_CONNECTION: a, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
2689
2686
  return [a, r, i].includes(
2690
2687
  e.centralConnection
2691
2688
  );
2692
- }, "hasCentralConnection"), sa = /* @__PURE__ */ g(function(e, t, a) {
2689
+ }, "hasCentralConnection"), sa = /* @__PURE__ */ x(function(e, t, a) {
2693
2690
  const {
2694
2691
  CENTRAL_CONNECTION_REVERSE: r,
2695
2692
  CENTRAL_CONNECTION_DUAL: i,
2696
- BIDIRECTIONAL_SOLID: o,
2693
+ BIDIRECTIONAL_SOLID: n,
2697
2694
  BIDIRECTIONAL_DOTTED: s
2698
2695
  } = t.db.LINETYPE;
2699
- let n = 0;
2700
- return (e.centralConnection === r || e.centralConnection === i) && (n += aa), (e.centralConnection === r || e.centralConnection === i) && (e.type === o || e.type === s) && (n += a ? 0 : -6), n;
2701
- }, "calculateCentralConnectionOffset"), Xe = /* @__PURE__ */ g(function(e, t) {
2696
+ let o = 0;
2697
+ return (e.centralConnection === r || e.centralConnection === i) && (o += aa), (e.centralConnection === r || e.centralConnection === i) && (e.type === n || e.type === s) && (o += a ? 0 : -6), o;
2698
+ }, "calculateCentralConnectionOffset"), Xe = /* @__PURE__ */ x(function(e, t) {
2702
2699
  const {
2703
2700
  SOLID_ARROW_TOP_REVERSE: a,
2704
2701
  SOLID_ARROW_TOP_REVERSE_DOTTED: r,
2705
2702
  SOLID_ARROW_BOTTOM_REVERSE: i,
2706
- SOLID_ARROW_BOTTOM_REVERSE_DOTTED: o,
2703
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: n,
2707
2704
  STICK_ARROW_TOP_REVERSE: s,
2708
- STICK_ARROW_TOP_REVERSE_DOTTED: n,
2709
- STICK_ARROW_BOTTOM_REVERSE: E,
2710
- STICK_ARROW_BOTTOM_REVERSE_DOTTED: T
2705
+ STICK_ARROW_TOP_REVERSE_DOTTED: o,
2706
+ STICK_ARROW_BOTTOM_REVERSE: u,
2707
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: d
2711
2708
  } = t.db.LINETYPE;
2712
2709
  return [
2713
2710
  a,
2714
2711
  r,
2715
2712
  i,
2716
- o,
2717
- s,
2718
2713
  n,
2719
- E,
2720
- T
2714
+ s,
2715
+ o,
2716
+ u,
2717
+ d
2721
2718
  ].includes(e.type);
2722
- }, "isReverseArrowType"), ia = /* @__PURE__ */ g(function(e, t) {
2719
+ }, "isReverseArrowType"), ia = /* @__PURE__ */ x(function(e, t) {
2723
2720
  const { BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
2724
2721
  return [a, r].includes(e.type);
2725
- }, "isBidirectionalArrowType"), na = /* @__PURE__ */ g(function(e, t, a) {
2722
+ }, "isBidirectionalArrowType"), na = /* @__PURE__ */ x(function(e, t, a) {
2726
2723
  const { look: r } = $();
2727
2724
  if (![
2728
2725
  a.db.LINETYPE.SOLID_OPEN,
@@ -2753,11 +2750,11 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2753
2750
  a.db.LINETYPE.BIDIRECTIONAL_DOTTED
2754
2751
  ].includes(e.type))
2755
2752
  return {};
2756
- const [i, o] = ve(e.from, t), [s, n] = ve(e.to, t), E = i <= s;
2757
- let T = E ? o : i, l = E ? s : n;
2758
- r === "neo" && (e.type !== a.db.LINETYPE.SOLID_OPEN && (l += E ? -3 : 3), (e.type === a.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === a.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (T += E ? 3 : -3)), T += sa(e, a, E);
2759
- const x = Math.abs(s - n) > 2, u = /* @__PURE__ */ g((_) => E ? -_ : _, "adjustValue");
2760
- e.from === e.to ? l = T : (e.activate && !x && (l += u(h.activationWidth / 2 - 1)), [
2753
+ const [i, n] = ve(e.from, t), [s, o] = ve(e.to, t), u = i <= s;
2754
+ let d = u ? n : i, p = u ? s : o;
2755
+ r === "neo" && (e.type !== a.db.LINETYPE.SOLID_OPEN && (p += u ? -3 : 3), (e.type === a.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === a.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (d += u ? 3 : -3)), d += sa(e, a, u);
2756
+ const _ = Math.abs(s - o) > 2, E = /* @__PURE__ */ x((f) => u ? -f : f, "adjustValue");
2757
+ e.from === e.to ? p = d : (e.activate && !_ && (p += E(l.activationWidth / 2 - 1)), [
2761
2758
  a.db.LINETYPE.SOLID_OPEN,
2762
2759
  a.db.LINETYPE.DOTTED_OPEN,
2763
2760
  a.db.LINETYPE.STICK_TOP,
@@ -2772,30 +2769,30 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2772
2769
  a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
2773
2770
  a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
2774
2771
  a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
2775
- ].includes(e.type) || (l += u(3)), [
2772
+ ].includes(e.type) || (p += E(3)), [
2776
2773
  a.db.LINETYPE.BIDIRECTIONAL_SOLID,
2777
2774
  a.db.LINETYPE.BIDIRECTIONAL_DOTTED,
2778
2775
  a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
2779
2776
  a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
2780
2777
  a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
2781
2778
  a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
2782
- ].includes(e.type) && (T -= u(3)));
2783
- const O = [i, o, s, n], p = Math.abs(T - l);
2779
+ ].includes(e.type) && (d -= E(3)));
2780
+ const O = [i, n, s, o], T = Math.abs(d - p);
2784
2781
  e.wrap && e.message && (e.message = Z.wrapLabel(
2785
2782
  e.message,
2786
- P.getMax(p + 2 * h.wrapPadding, h.width),
2787
- Rt(h)
2783
+ N.getMax(T + 2 * l.wrapPadding, l.width),
2784
+ Rt(l)
2788
2785
  ));
2789
- const f = Z.calculateTextDimensions(e.message, Rt(h));
2786
+ const g = Z.calculateTextDimensions(e.message, Rt(l));
2790
2787
  return {
2791
- width: P.getMax(
2792
- e.wrap ? 0 : f.width + 2 * h.wrapPadding,
2793
- p + 2 * h.wrapPadding,
2794
- h.width
2788
+ width: N.getMax(
2789
+ e.wrap ? 0 : g.width + 2 * l.wrapPadding,
2790
+ T + 2 * l.wrapPadding,
2791
+ l.width
2795
2792
  ),
2796
2793
  height: 0,
2797
- startx: T,
2798
- stopx: l,
2794
+ startx: d,
2795
+ stopx: p,
2799
2796
  starty: 0,
2800
2797
  stopy: 0,
2801
2798
  message: e.message,
@@ -2804,11 +2801,11 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2804
2801
  fromBounds: Math.min.apply(null, O),
2805
2802
  toBounds: Math.max.apply(null, O)
2806
2803
  };
2807
- }, "buildMessageModel"), oa = /* @__PURE__ */ g(async function(e, t, a, r) {
2808
- const i = {}, o = [];
2809
- let s, n, E;
2810
- for (const T of e) {
2811
- switch (T.type) {
2804
+ }, "buildMessageModel"), oa = /* @__PURE__ */ x(async function(e, t, a, r) {
2805
+ const i = {}, n = [];
2806
+ let s, o, u;
2807
+ for (const d of e) {
2808
+ switch (d.type) {
2812
2809
  case r.db.LINETYPE.LOOP_START:
2813
2810
  case r.db.LINETYPE.ALT_START:
2814
2811
  case r.db.LINETYPE.OPT_START:
@@ -2816,9 +2813,9 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2816
2813
  case r.db.LINETYPE.PAR_OVER_START:
2817
2814
  case r.db.LINETYPE.CRITICAL_START:
2818
2815
  case r.db.LINETYPE.BREAK_START:
2819
- o.push({
2820
- id: T.id,
2821
- msg: T.message,
2816
+ n.push({
2817
+ id: d.id,
2818
+ msg: d.message,
2822
2819
  from: Number.MAX_SAFE_INTEGER,
2823
2820
  to: Number.MIN_SAFE_INTEGER,
2824
2821
  width: 0
@@ -2827,7 +2824,7 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2827
2824
  case r.db.LINETYPE.ALT_ELSE:
2828
2825
  case r.db.LINETYPE.PAR_AND:
2829
2826
  case r.db.LINETYPE.CRITICAL_OPTION:
2830
- T.message && (s = o.pop(), i[s.id] = s, i[T.id] = s, o.push(s));
2827
+ d.message && (s = n.pop(), i[s.id] = s, i[d.id] = s, n.push(s));
2831
2828
  break;
2832
2829
  case r.db.LINETYPE.LOOP_END:
2833
2830
  case r.db.LINETYPE.ALT_END:
@@ -2835,48 +2832,48 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2835
2832
  case r.db.LINETYPE.PAR_END:
2836
2833
  case r.db.LINETYPE.CRITICAL_END:
2837
2834
  case r.db.LINETYPE.BREAK_END:
2838
- s = o.pop(), i[s.id] = s;
2835
+ s = n.pop(), i[s.id] = s;
2839
2836
  break;
2840
2837
  case r.db.LINETYPE.ACTIVE_START:
2841
2838
  {
2842
- const x = t.get(T.from ? T.from : T.to.actor), u = qt(T.from ? T.from : T.to.actor).length, O = x.x + x.width / 2 + (u - 1) * h.activationWidth / 2, p = {
2839
+ const _ = t.get(d.from ? d.from : d.to.actor), E = zt(d.from ? d.from : d.to.actor).length, O = _.x + _.width / 2 + (E - 1) * l.activationWidth / 2, T = {
2843
2840
  startx: O,
2844
- stopx: O + h.activationWidth,
2845
- actor: T.from,
2841
+ stopx: O + l.activationWidth,
2842
+ actor: d.from,
2846
2843
  enabled: !0
2847
2844
  };
2848
- R.activations.push(p);
2845
+ R.activations.push(T);
2849
2846
  }
2850
2847
  break;
2851
2848
  case r.db.LINETYPE.ACTIVE_END:
2852
2849
  {
2853
- const x = R.activations.map((u) => u.actor).lastIndexOf(T.from);
2854
- R.activations.splice(x, 1).splice(0, 1);
2850
+ const _ = R.activations.map((E) => E.actor).lastIndexOf(d.from);
2851
+ R.activations.splice(_, 1).splice(0, 1);
2855
2852
  }
2856
2853
  break;
2857
2854
  }
2858
- T.placement !== void 0 ? (n = await ra(T, t, r), T.noteModel = n, o.forEach((x) => {
2859
- s = x, s.from = P.getMin(s.from, n.startx), s.to = P.getMax(s.to, n.startx + n.width), s.width = P.getMax(s.width, Math.abs(s.from - s.to)) - h.labelBoxWidth;
2860
- })) : (E = na(T, t, r), T.msgModel = E, E.startx && E.stopx && o.length > 0 && o.forEach((x) => {
2861
- if (s = x, E.startx === E.stopx) {
2862
- const u = t.get(T.from), O = t.get(T.to);
2863
- s.from = P.getMin(
2864
- u.x - E.width / 2,
2865
- u.x - u.width / 2,
2855
+ d.placement !== void 0 ? (o = await ra(d, t, r), d.noteModel = o, n.forEach((_) => {
2856
+ s = _, s.from = N.getMin(s.from, o.startx), s.to = N.getMax(s.to, o.startx + o.width), s.width = N.getMax(s.width, Math.abs(s.from - s.to)) - l.labelBoxWidth;
2857
+ })) : (u = na(d, t, r), d.msgModel = u, u.startx && u.stopx && n.length > 0 && n.forEach((_) => {
2858
+ if (s = _, u.startx === u.stopx) {
2859
+ const E = t.get(d.from), O = t.get(d.to);
2860
+ s.from = N.getMin(
2861
+ E.x - u.width / 2,
2862
+ E.x - E.width / 2,
2866
2863
  s.from
2867
- ), s.to = P.getMax(
2868
- O.x + E.width / 2,
2864
+ ), s.to = N.getMax(
2869
2865
  O.x + u.width / 2,
2866
+ O.x + E.width / 2,
2870
2867
  s.to
2871
- ), s.width = P.getMax(s.width, Math.abs(s.to - s.from)) - h.labelBoxWidth;
2868
+ ), s.width = N.getMax(s.width, Math.abs(s.to - s.from)) - l.labelBoxWidth;
2872
2869
  } else
2873
- s.from = P.getMin(E.startx, s.from), s.to = P.getMax(E.stopx, s.to), s.width = P.getMax(s.width, E.width) - h.labelBoxWidth;
2870
+ s.from = N.getMin(u.startx, s.from), s.to = N.getMax(u.stopx, s.to), s.width = N.getMax(s.width, u.width) - l.labelBoxWidth;
2874
2871
  }));
2875
2872
  }
2876
2873
  return R.activations = [], at.debug("Loop type widths:", i), i;
2877
2874
  }, "calculateLoopBounds"), ca = {
2878
2875
  bounds: R,
2879
- drawActors: te,
2876
+ drawActors: re,
2880
2877
  drawActorsPopup: qe,
2881
2878
  setConf: He,
2882
2879
  draw: ta
@@ -2887,11 +2884,11 @@ var ra = /* @__PURE__ */ g(async function(e, t, a) {
2887
2884
  },
2888
2885
  renderer: ca,
2889
2886
  styles: Rr,
2890
- init: /* @__PURE__ */ g((e) => {
2891
- e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap, tr({ sequence: { wrap: e.wrap } }));
2887
+ init: /* @__PURE__ */ x((e) => {
2888
+ e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap, er({ sequence: { wrap: e.wrap } }));
2892
2889
  }, "init")
2893
2890
  };
2894
2891
  export {
2895
2892
  Ta as diagram
2896
2893
  };
2897
- //# sourceMappingURL=sequenceDiagram-3UESZ5HK-C0x0WvhR.js.map
2894
+ //# sourceMappingURL=sequenceDiagram-SI44F4Z6-DmMZNJDw.js.map