@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.
- package/dist/api/agent-grants.d.ts +23 -8
- package/dist/api/client.d.ts +53 -4
- package/dist/api/queries.d.ts +2 -0
- package/dist/app/call-summary.d.ts +30 -0
- package/dist/component/abnfDiagram-N423BO3Z-DR3fMT7g.js +90 -0
- package/dist/component/arc-DJkYOSuJ.js +86 -0
- package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-BIp4IBPk.js} +1872 -1785
- package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-BqryGqC6.js} +895 -894
- package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-GktlF-Di.js} +3 -3
- package/dist/component/{channel-CYFijF_t.js → channel-3CusDaXb.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-DMTs6j_c.js} +5 -5
- package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-CIU34hPH.js} +2 -2
- package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-Ds3vF1Mv.js} +399 -378
- package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-DGxDkIm6.js} +2 -2
- package/dist/component/chunk-6Q2QTUOP-BI8oZt98.js +673 -0
- package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-D-36xUd5.js} +244 -239
- package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-8N_wQ762.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-ChxxpkWc.js} +2 -2
- package/dist/component/chunk-RYQCIY6F-CSY-95OP.js +316 -0
- package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-BQd9yyE1.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-BOq63iUL.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-BOq63iUL.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-B9x8cp5w.js} +2 -2
- package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
- package/dist/component/cynefinDiagram-MW4NZA55-OF6l99SS.js +302 -0
- package/dist/component/dagre-VZM6K2ZE-CELO1hFb.js +343 -0
- package/dist/component/diagram-7IWD3JNH-COzvm6E2.js +353 -0
- package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DR9KMRGw.js} +24 -24
- package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-D47Zqm-k.js} +23 -23
- package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-Key1bw_Y.js} +197 -197
- package/dist/component/diagram-UB23O5K3-Cxf-sZnK.js +222 -0
- package/dist/component/ebnfDiagram-BXEA7PRR-C8uURt_x.js +112 -0
- package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-CpCxe8Ib.js} +142 -131
- package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-urFG2I71.js} +268 -258
- package/dist/component/ganttDiagram-PKOTCBZU-8nA9faYf.js +2714 -0
- package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-u4cbNW8o.js} +33 -33
- package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
- package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-Bo-15uvJ.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-ZAv4gZpA.js} +4 -4
- package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-CvB6evSz.js} +27 -27
- package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-M5BRYuPr.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-LL6GkmVe.js} +35 -35
- package/dist/component/layout-Br2UjHRU.js +1522 -0
- package/dist/component/{linear-BT4blD8s.js → linear-DVg61V66.js} +13 -13
- package/dist/component/map-CdwokNh2.js +227 -0
- package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-C2L7fCIM.js} +29577 -29128
- package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-BBZzsLh7.js} +26 -26
- package/dist/component/pegDiagram-VL7TDLO6-BEG86cY8.js +98 -0
- package/dist/component/pieDiagram-7S7Q4E2Y-BTkrNjAi.js +210 -0
- package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-BsjBAd4w.js} +14 -15
- package/dist/component/railroadDiagram-AXF67PYL-DuE0ZFxj.js +80 -0
- package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-CcshEEMy.js} +15 -15
- package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-CFn011ig.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-DmMZNJDw.js} +960 -963
- package/dist/component/sizeCapture-X5ZJPWSS-Ce4PhIAO.js +49 -0
- package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DDVzQKaO.js} +5 -5
- package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DeeW8PDA.js} +3 -3
- package/dist/component/swimlanes-SLNWSIFB-CZh2_vzg.js +5335 -0
- package/dist/component/swimlanesDiagram-ULZ7WXOC-Wb0Ri7qR.js +16 -0
- package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-rfiLwdTR.js} +15 -15
- package/dist/component/vennDiagram-T6HMQDX7-D8l7hqNb.js +1581 -0
- package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-7YqmpmtC.js} +15 -15
- package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-Dx2ECqt8.js} +464 -418
- package/dist/embed/voice/line-slots.d.ts +37 -2
- package/dist/embed/voice-call.d.ts +12 -0
- package/dist/i18n/messages/en.d.ts +1 -2
- package/dist/lib/web-storage.d.ts +8 -0
- package/dist/stream/belong-chat-transport.d.ts +1 -0
- package/dist/stream/belong-data-parts.d.ts +2 -0
- package/dist/stream/stream-state-store.d.ts +13 -0
- package/dist/types/public.d.ts +3 -0
- package/package.json +1 -1
- package/dist/component/arc-TLcl3N8_.js +0 -86
- package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
- package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
- package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
- package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
- package/dist/component/layout-Bu6nRdWm.js +0 -1731
- package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
- package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-DmMZNJDw.js}
RENAMED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
7
|
-
var e = /* @__PURE__ */
|
|
8
|
-
for (v = v || {},
|
|
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],
|
|
11
|
-
trace: /* @__PURE__ */
|
|
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__ */
|
|
18
|
-
var
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
42
|
+
c[h].type = "createParticipant", this.$ = c[h];
|
|
43
43
|
break;
|
|
44
44
|
case 17:
|
|
45
|
-
c[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
66
|
+
y.setDiagramTitle(c[h].substring(6)), this.$ = c[h].substring(6);
|
|
67
67
|
break;
|
|
68
68
|
case 31:
|
|
69
|
-
y.setDiagramTitle(c[
|
|
69
|
+
y.setDiagramTitle(c[h].substring(7)), this.$ = c[h].substring(7);
|
|
70
70
|
break;
|
|
71
71
|
case 32:
|
|
72
|
-
this.$ = c[
|
|
72
|
+
this.$ = c[h].trim(), y.setAccTitle(this.$);
|
|
73
73
|
break;
|
|
74
74
|
case 33:
|
|
75
75
|
case 34:
|
|
76
|
-
this.$ = c[
|
|
76
|
+
this.$ = c[h].trim(), y.setAccDescription(this.$);
|
|
77
77
|
break;
|
|
78
78
|
case 35:
|
|
79
|
-
c[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
115
|
+
c[h - 1].draw = "participant", c[h - 1].type = "addParticipant", this.$ = c[h - 1];
|
|
116
116
|
break;
|
|
117
117
|
case 51:
|
|
118
|
-
c[
|
|
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[
|
|
122
|
+
c[h - 1].draw = "actor", c[h - 1].type = "addParticipant", this.$ = c[h - 1];
|
|
123
123
|
break;
|
|
124
124
|
case 53:
|
|
125
|
-
c[
|
|
125
|
+
c[h - 1].type = "destroyParticipant", this.$ = c[h - 1];
|
|
126
126
|
break;
|
|
127
127
|
case 54:
|
|
128
|
-
c[
|
|
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[
|
|
131
|
+
c[h - 1].draw = "participant", c[h - 1].type = "addParticipant", this.$ = c[h - 1];
|
|
132
132
|
break;
|
|
133
133
|
case 56:
|
|
134
|
-
c[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
155
|
+
this.$ = [c[h - 2], c[h]];
|
|
156
156
|
break;
|
|
157
157
|
case 67:
|
|
158
|
-
this.$ = c[
|
|
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[
|
|
169
|
-
c[
|
|
170
|
-
{ type: "addMessage", from: c[
|
|
171
|
-
{ type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[
|
|
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[
|
|
177
|
-
c[
|
|
178
|
-
{ type: "addMessage", from: c[
|
|
179
|
-
{ type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[
|
|
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[
|
|
185
|
-
c[
|
|
186
|
-
{ type: "addMessage", from: c[
|
|
187
|
-
{ type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[
|
|
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[
|
|
193
|
-
c[
|
|
194
|
-
{ type: "addMessage", from: c[
|
|
195
|
-
{ type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[
|
|
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[
|
|
201
|
-
c[
|
|
202
|
-
{ type: "addMessage", from: c[
|
|
203
|
-
{ type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[
|
|
204
|
-
{ type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[
|
|
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[
|
|
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[
|
|
214
|
-
config: c[
|
|
213
|
+
actor: c[h - 1],
|
|
214
|
+
config: c[h]
|
|
215
215
|
};
|
|
216
216
|
break;
|
|
217
217
|
case 77:
|
|
218
|
-
this.$ = c[
|
|
218
|
+
this.$ = c[h - 1].trim();
|
|
219
219
|
break;
|
|
220
220
|
case 78:
|
|
221
|
-
this.$ = { type: "addParticipant", actor: c[
|
|
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[
|
|
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:
|
|
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__ */
|
|
308
|
+
parseError: /* @__PURE__ */ x(function(S, v) {
|
|
309
309
|
if (v.recoverable)
|
|
310
|
-
this.trace(
|
|
310
|
+
this.trace(S);
|
|
311
311
|
else {
|
|
312
|
-
var
|
|
313
|
-
throw
|
|
312
|
+
var P = new Error(S);
|
|
313
|
+
throw P.hash = v, P;
|
|
314
314
|
}
|
|
315
315
|
}, "parseError"),
|
|
316
|
-
parse: /* @__PURE__ */
|
|
317
|
-
var v = this,
|
|
318
|
-
for (var
|
|
319
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
320
|
-
J.setInput(
|
|
321
|
-
var
|
|
322
|
-
c.push(
|
|
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(
|
|
326
|
-
|
|
325
|
+
function je(it) {
|
|
326
|
+
P.length = P.length - 2 * it, z.length = z.length - it, c.length = c.length - it;
|
|
327
327
|
}
|
|
328
|
-
|
|
328
|
+
x(je, "popStack");
|
|
329
329
|
function Ne() {
|
|
330
|
-
var
|
|
331
|
-
return
|
|
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
|
-
|
|
334
|
-
for (var rt, xt, ct,
|
|
335
|
-
if (xt =
|
|
336
|
-
var
|
|
337
|
-
|
|
338
|
-
for (
|
|
339
|
-
this.terminals_[
|
|
340
|
-
J.showPosition ?
|
|
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 ` +
|
|
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:
|
|
347
|
-
expected:
|
|
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
|
-
|
|
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],
|
|
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 && (
|
|
362
|
+
}, $e && (Lt._$.range = [
|
|
363
363
|
c[c.length - (Tt || 1)].range[0],
|
|
364
364
|
c[c.length - 1].range[1]
|
|
365
|
-
]),
|
|
366
|
-
|
|
365
|
+
]), Qt = this.performAction.apply(Lt, [
|
|
366
|
+
h,
|
|
367
367
|
Se,
|
|
368
|
-
|
|
368
|
+
Ct,
|
|
369
369
|
gt.yy,
|
|
370
370
|
ct[1],
|
|
371
371
|
z,
|
|
372
372
|
c
|
|
373
|
-
].concat(Qe)), typeof
|
|
374
|
-
return
|
|
375
|
-
Tt && (
|
|
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__ */
|
|
386
|
+
parseError: /* @__PURE__ */ x(function(v, P) {
|
|
387
387
|
if (this.yy.parser)
|
|
388
|
-
this.yy.parser.parseError(v,
|
|
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__ */
|
|
394
|
-
return this.yy = v || this.yy || {}, this._input =
|
|
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__ */
|
|
403
|
-
var
|
|
404
|
-
this.yytext +=
|
|
405
|
-
var v =
|
|
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),
|
|
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__ */
|
|
410
|
-
var v =
|
|
411
|
-
this._input =
|
|
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),
|
|
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:
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
441
|
-
this.unput(this.match.slice(
|
|
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__ */
|
|
445
|
-
var
|
|
446
|
-
return (
|
|
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__ */
|
|
450
|
-
var
|
|
451
|
-
return
|
|
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__ */
|
|
455
|
-
var
|
|
456
|
-
return
|
|
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__ */
|
|
461
|
-
var
|
|
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 =
|
|
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 +
|
|
486
|
-
}, this.yytext +=
|
|
487
|
-
return
|
|
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__ */
|
|
496
|
+
next: /* @__PURE__ */ x(function() {
|
|
497
497
|
if (this.done)
|
|
498
498
|
return this.EOF;
|
|
499
499
|
this._input || (this.done = !0);
|
|
500
|
-
var
|
|
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 (
|
|
504
|
-
if (v =
|
|
505
|
-
if (
|
|
506
|
-
return
|
|
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 ? (
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
549
|
+
stateStackSize: /* @__PURE__ */ x(function() {
|
|
550
550
|
return this.conditionStack.length;
|
|
551
551
|
}, "stateStackSize"),
|
|
552
552
|
options: { "case-insensitive": !0 },
|
|
553
|
-
performAction: /* @__PURE__ */
|
|
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
|
|
578
|
+
return P.yytext = P.yytext.trim(), 73;
|
|
579
579
|
case 12:
|
|
580
|
-
return
|
|
580
|
+
return P.yytext = P.yytext.trim(), this.begin("ALIAS"), 73;
|
|
581
581
|
case 13:
|
|
582
|
-
return
|
|
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
|
|
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
|
|
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
|
-
|
|
753
|
-
function
|
|
752
|
+
Xt.lexer = Je;
|
|
753
|
+
function vt() {
|
|
754
754
|
this.yy = {};
|
|
755
755
|
}
|
|
756
|
-
return
|
|
756
|
+
return x(vt, "Parser"), vt.prototype = Xt, Xt.Parser = vt, new vt();
|
|
757
757
|
})();
|
|
758
|
-
|
|
759
|
-
var fr =
|
|
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
|
-
},
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
|
852
|
+
let n = this.state.records.currentBox, s;
|
|
853
853
|
if (i !== void 0) {
|
|
854
|
-
let
|
|
854
|
+
let u;
|
|
855
855
|
i.includes(`
|
|
856
|
-
`) ?
|
|
857
|
-
` :
|
|
856
|
+
`) ? u = i + `
|
|
857
|
+
` : u = `{
|
|
858
858
|
` + i + `
|
|
859
|
-
}`, s =
|
|
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
|
|
863
|
-
if (
|
|
864
|
-
if (this.state.records.currentBox &&
|
|
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: ${
|
|
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 (
|
|
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:
|
|
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
|
|
884
|
-
|
|
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,
|
|
906
|
+
addSignal(e, t, a, r, i = !1, n) {
|
|
907
907
|
if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
|
|
908
|
-
const
|
|
909
|
-
throw
|
|
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
|
-
},
|
|
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:
|
|
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(),
|
|
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:
|
|
999
|
+
const { wrap: i, cleanedText: n } = this.extractWrap(r);
|
|
1000
1000
|
return {
|
|
1001
|
-
text:
|
|
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 =
|
|
1026
|
+
let r = Yt(t.text, $());
|
|
1027
1027
|
r = r.replace(/=/g, "="), r = r.replace(/&/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 =
|
|
1039
|
-
const
|
|
1038
|
+
let i = Yt(t.text, $());
|
|
1039
|
+
const n = i.indexOf("@");
|
|
1040
1040
|
i = i.replace(/=/g, "="), i = i.replace(/&/g, "&");
|
|
1041
|
-
const s = i.slice(0,
|
|
1042
|
-
r[s] =
|
|
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 =
|
|
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,
|
|
1077
|
-
|
|
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__ */
|
|
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",
|
|
1379
|
-
const a =
|
|
1380
|
-
return
|
|
1381
|
-
}, "drawRect"), Or = /* @__PURE__ */
|
|
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
|
|
1385
|
-
var
|
|
1386
|
-
i && (
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
var
|
|
1390
|
-
|
|
1391
|
-
let
|
|
1392
|
-
const
|
|
1393
|
-
if (
|
|
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
|
|
1396
|
-
var
|
|
1397
|
-
|
|
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
|
|
1410
|
-
}, "drawPopup"),
|
|
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"),
|
|
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,
|
|
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
|
|
1417
|
-
|
|
1418
|
-
const
|
|
1419
|
-
r.attr("x", Math.round(
|
|
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:
|
|
1422
|
-
if (
|
|
1423
|
-
const
|
|
1424
|
-
|
|
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(
|
|
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"),
|
|
1429
|
+
}, "drawKatex"), mt = /* @__PURE__ */ x(function(e, t) {
|
|
1430
1430
|
let a = 0, r = 0;
|
|
1431
|
-
const i = t.text.split(
|
|
1432
|
-
let
|
|
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
|
-
|
|
1437
|
+
d = /* @__PURE__ */ x(() => Math.round(t.y + t.textMargin), "yfunc");
|
|
1438
1438
|
break;
|
|
1439
1439
|
case "middle":
|
|
1440
1440
|
case "center":
|
|
1441
|
-
|
|
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
|
-
|
|
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 [
|
|
1466
|
-
t.textMargin !== void 0 && t.textMargin === 0 &&
|
|
1467
|
-
const
|
|
1468
|
-
|
|
1469
|
-
const O =
|
|
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
|
|
1472
|
-
|
|
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
|
-
|
|
1475
|
-
t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (
|
|
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
|
|
1478
|
-
}, "drawText"), Ve = /* @__PURE__ */
|
|
1479
|
-
function a(i,
|
|
1480
|
-
return i + "," +
|
|
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
|
-
|
|
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,
|
|
1485
|
-
}, "drawLabel"),
|
|
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
|
|
1488
|
-
!r.mirrorActors &&
|
|
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__ */
|
|
1491
|
-
const
|
|
1492
|
-
var
|
|
1493
|
-
r || (
|
|
1494
|
-
const
|
|
1495
|
-
var
|
|
1496
|
-
t.properties?.class ?
|
|
1497
|
-
const I =
|
|
1498
|
-
if (pt.has(
|
|
1499
|
-
const
|
|
1500
|
-
|
|
1501
|
-
}
|
|
1502
|
-
r || (
|
|
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
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
{ class: `actor ${
|
|
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
|
|
1515
|
-
t.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__ */
|
|
1519
|
-
const
|
|
1520
|
-
var
|
|
1521
|
-
r || (
|
|
1522
|
-
const
|
|
1523
|
-
var
|
|
1524
|
-
t.properties?.class ?
|
|
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
|
-
...
|
|
1527
|
-
x:
|
|
1528
|
-
y:
|
|
1526
|
+
...g,
|
|
1527
|
+
x: g.x + -I,
|
|
1528
|
+
y: g.y + +I,
|
|
1529
1529
|
class: "actor"
|
|
1530
|
-
}, b =
|
|
1531
|
-
t.rectData =
|
|
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(
|
|
1534
|
-
const
|
|
1535
|
-
|
|
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
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
{ class: `actor ${
|
|
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
|
|
1547
|
+
let D = t.height;
|
|
1548
1548
|
if (b.node) {
|
|
1549
|
-
const
|
|
1550
|
-
t.height =
|
|
1551
|
-
}
|
|
1552
|
-
return r || (
|
|
1553
|
-
}, "drawActorTypeCollections"), mr = /* @__PURE__ */
|
|
1554
|
-
const
|
|
1555
|
-
let
|
|
1556
|
-
r || (
|
|
1557
|
-
const
|
|
1558
|
-
let
|
|
1559
|
-
t.properties?.class ?
|
|
1560
|
-
const I =
|
|
1561
|
-
a ${L},${I} 0 0 0 0,${
|
|
1562
|
-
h ${
|
|
1563
|
-
a ${L},${I} 0 0 0 0,-${
|
|
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),
|
|
1566
|
+
b.append("path").attr("d", A), w.append("path").attr(
|
|
1567
1567
|
"d",
|
|
1568
|
-
`M ${
|
|
1569
|
-
a ${L},${I} 0 0 0 0,${
|
|
1570
|
-
), b.attr("transform", `translate(${L}, ${-(
|
|
1571
|
-
const
|
|
1572
|
-
if (pt.has(
|
|
1573
|
-
const
|
|
1574
|
-
|
|
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
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
{ class: `actor ${
|
|
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
|
|
1586
|
+
let M = t.height;
|
|
1587
1587
|
const V = b.select("path:last-child");
|
|
1588
1588
|
if (V.node()) {
|
|
1589
|
-
const
|
|
1590
|
-
t.height =
|
|
1589
|
+
const W = V.node().getBBox();
|
|
1590
|
+
t.height = W.height, M = W.height;
|
|
1591
1591
|
}
|
|
1592
|
-
return r || (
|
|
1593
|
-
}, "drawActorTypeQueue"), Ar = /* @__PURE__ */
|
|
1594
|
-
const s = r ? t.stopy : t.starty,
|
|
1595
|
-
r || (
|
|
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
|
|
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",
|
|
1603
|
-
const
|
|
1604
|
-
pt.has(
|
|
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 +
|
|
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__ */
|
|
1617
|
-
const
|
|
1618
|
-
let
|
|
1619
|
-
r ?
|
|
1620
|
-
const
|
|
1621
|
-
|
|
1622
|
-
const I = t.x + t.width / 2, L =
|
|
1623
|
-
|
|
1624
|
-
const
|
|
1625
|
-
pt.has(
|
|
1626
|
-
const A =
|
|
1627
|
-
return t.height = A.height + (a?.sequence?.labelBoxHeight ?? 0), r || (
|
|
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
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
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 ?
|
|
1637
|
-
}, "drawActorTypeEntity"), wr = /* @__PURE__ */
|
|
1638
|
-
const
|
|
1639
|
-
let
|
|
1640
|
-
r || (
|
|
1641
|
-
const
|
|
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 :
|
|
1644
|
-
const L =
|
|
1645
|
-
|
|
1646
|
-
const
|
|
1647
|
-
M ${
|
|
1648
|
-
a ${
|
|
1649
|
-
a ${
|
|
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 ${
|
|
1651
|
+
a ${w},${A} 0 0 0 ${L},0
|
|
1652
1652
|
l 0,-${b - 2 * A}
|
|
1653
1653
|
`;
|
|
1654
|
-
|
|
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(
|
|
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
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
{ class: `actor ${
|
|
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
|
|
1667
|
-
if (
|
|
1668
|
-
const U =
|
|
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 || (
|
|
1672
|
-
}, "drawActorTypeDatabase"), Nr = /* @__PURE__ */
|
|
1673
|
-
const
|
|
1674
|
-
r || (
|
|
1675
|
-
const
|
|
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}`,
|
|
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 =
|
|
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(
|
|
1682
|
-
const
|
|
1683
|
-
return t.height =
|
|
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
|
-
),
|
|
1693
|
-
}, "drawActorTypeBoundary"), Pr = /* @__PURE__ */
|
|
1694
|
-
const
|
|
1695
|
-
r || (
|
|
1696
|
-
const
|
|
1697
|
-
let
|
|
1698
|
-
r ?
|
|
1699
|
-
const I =
|
|
1700
|
-
|
|
1701
|
-
const b =
|
|
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
|
|
1704
|
-
t.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
|
|
1708
|
-
return pt.has(
|
|
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
|
-
|
|
1710
|
+
g,
|
|
1711
1711
|
A.x,
|
|
1712
|
-
L + 35 * I - (
|
|
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__ */
|
|
1719
|
-
const
|
|
1720
|
-
[...
|
|
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,
|
|
1724
|
+
return await Pr(e, t, a, r, o);
|
|
1725
1725
|
case "participant":
|
|
1726
|
-
return await Lr(e, t, a, r,
|
|
1726
|
+
return await Lr(e, t, a, r, o);
|
|
1727
1727
|
case "boundary":
|
|
1728
|
-
return await Nr(e, t, a, r,
|
|
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
|
-
|
|
1736
|
+
o
|
|
1737
1737
|
);
|
|
1738
1738
|
case "entity":
|
|
1739
|
-
return await Sr(e, t, a, r,
|
|
1739
|
+
return await Sr(e, t, a, r, o);
|
|
1740
1740
|
case "database":
|
|
1741
|
-
return await wr(e, t, a, r,
|
|
1741
|
+
return await wr(e, t, a, r, o);
|
|
1742
1742
|
case "collections":
|
|
1743
|
-
return await br(e, t, a, r,
|
|
1743
|
+
return await br(e, t, a, r, o);
|
|
1744
1744
|
case "queue":
|
|
1745
|
-
return await mr(e, t, a, r,
|
|
1745
|
+
return await mr(e, t, a, r, o);
|
|
1746
1746
|
}
|
|
1747
|
-
}, "drawActor"), Dr = /* @__PURE__ */
|
|
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__ */
|
|
1759
|
+
}, "drawBox"), vr = /* @__PURE__ */ x(function(e) {
|
|
1760
1760
|
return e.append("g");
|
|
1761
|
-
}, "anchorElement"), Cr = /* @__PURE__ */
|
|
1762
|
-
const { theme:
|
|
1763
|
-
|
|
1764
|
-
const
|
|
1765
|
-
[...
|
|
1766
|
-
)).get(
|
|
1767
|
-
pt.has(
|
|
1768
|
-
}, "drawActivation"), Mr = /* @__PURE__ */
|
|
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:
|
|
1770
|
+
boxMargin: n,
|
|
1771
1771
|
boxTextMargin: s,
|
|
1772
|
-
labelBoxHeight:
|
|
1773
|
-
labelBoxWidth:
|
|
1774
|
-
messageFontFamily:
|
|
1775
|
-
messageFontSize:
|
|
1776
|
-
messageFontWeight:
|
|
1777
|
-
} = r,
|
|
1778
|
-
return
|
|
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,
|
|
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
|
|
1787
|
-
|
|
1788
|
-
let
|
|
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 [
|
|
1790
|
+
for (const [f, I] of Object.entries(t.sectionTitles))
|
|
1791
1791
|
if (I.message) {
|
|
1792
|
-
|
|
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
|
-
|
|
1794
|
+
g.map((b) => (b._groups || b)[0][0].getBBox().height).reduce((b, w) => b + w)
|
|
1795
1795
|
);
|
|
1796
|
-
t.sections[
|
|
1796
|
+
t.sections[f].height += L - (n + s);
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
|
-
return t.height = Math.round(t.stopy - t.starty),
|
|
1800
|
-
}, "drawLoop"), We = /* @__PURE__ */
|
|
1801
|
-
|
|
1802
|
-
}, "drawBackgroundRect"), Br = /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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(
|
|
1857
|
-
const
|
|
1858
|
-
i(
|
|
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
|
-
|
|
1861
|
-
function t(
|
|
1862
|
-
const { actorFontSize: O, actorFontFamily:
|
|
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
|
|
1865
|
-
A.append("tspan").attr("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
|
-
|
|
1869
|
-
function a(
|
|
1870
|
-
const O = s.append("switch"),
|
|
1871
|
-
|
|
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
|
-
|
|
1874
|
-
async function r(
|
|
1875
|
-
const O = await
|
|
1876
|
-
|
|
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
|
-
|
|
1879
|
-
function i(
|
|
1880
|
-
for (const
|
|
1881
|
-
s.hasOwnProperty(
|
|
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
|
|
1884
|
-
return s ? r :
|
|
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,
|
|
1888
|
-
const
|
|
1889
|
-
r(
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
|
-
function t(i,
|
|
1893
|
-
const { actorFontSize:
|
|
1894
|
-
for (let
|
|
1895
|
-
const I =
|
|
1896
|
-
L.append("tspan").attr("x", s).attr("dy", I).text(f
|
|
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
|
-
|
|
1900
|
-
function a(i,
|
|
1901
|
-
const
|
|
1902
|
-
|
|
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
|
-
|
|
1905
|
-
function r(i,
|
|
1906
|
-
for (const s in
|
|
1907
|
-
|
|
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
|
|
1909
|
+
return x(r, "_setTextAttrs"), function(i) {
|
|
1910
1910
|
return i.textPlacement === "fo" ? a : i.textPlacement === "old" ? e : t;
|
|
1911
1911
|
};
|
|
1912
|
-
})(), Gr = /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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"),
|
|
1921
|
-
drawRect:
|
|
1922
|
-
drawText:
|
|
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
|
-
},
|
|
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__ */
|
|
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__ */
|
|
1964
|
+
clear: /* @__PURE__ */ x(function() {
|
|
1965
1965
|
this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
|
|
1966
1966
|
}, "clear"),
|
|
1967
|
-
addBox: /* @__PURE__ */
|
|
1967
|
+
addBox: /* @__PURE__ */ x(function(e) {
|
|
1968
1968
|
this.boxes.push(e);
|
|
1969
1969
|
}, "addBox"),
|
|
1970
|
-
addActor: /* @__PURE__ */
|
|
1970
|
+
addActor: /* @__PURE__ */ x(function(e) {
|
|
1971
1971
|
this.actors.push(e);
|
|
1972
1972
|
}, "addActor"),
|
|
1973
|
-
addLoop: /* @__PURE__ */
|
|
1973
|
+
addLoop: /* @__PURE__ */ x(function(e) {
|
|
1974
1974
|
this.loops.push(e);
|
|
1975
1975
|
}, "addLoop"),
|
|
1976
|
-
addMessage: /* @__PURE__ */
|
|
1976
|
+
addMessage: /* @__PURE__ */ x(function(e) {
|
|
1977
1977
|
this.messages.push(e);
|
|
1978
1978
|
}, "addMessage"),
|
|
1979
|
-
addNote: /* @__PURE__ */
|
|
1979
|
+
addNote: /* @__PURE__ */ x(function(e) {
|
|
1980
1980
|
this.notes.push(e);
|
|
1981
1981
|
}, "addNote"),
|
|
1982
|
-
lastActor: /* @__PURE__ */
|
|
1982
|
+
lastActor: /* @__PURE__ */ x(function() {
|
|
1983
1983
|
return this.actors[this.actors.length - 1];
|
|
1984
1984
|
}, "lastActor"),
|
|
1985
|
-
lastLoop: /* @__PURE__ */
|
|
1985
|
+
lastLoop: /* @__PURE__ */ x(function() {
|
|
1986
1986
|
return this.loops[this.loops.length - 1];
|
|
1987
1987
|
}, "lastLoop"),
|
|
1988
|
-
lastMessage: /* @__PURE__ */
|
|
1988
|
+
lastMessage: /* @__PURE__ */ x(function() {
|
|
1989
1989
|
return this.messages[this.messages.length - 1];
|
|
1990
1990
|
}, "lastMessage"),
|
|
1991
|
-
lastNote: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
2011
|
+
updateBounds: /* @__PURE__ */ x(function(e, t, a, r) {
|
|
2012
2012
|
const i = this;
|
|
2013
|
-
let
|
|
2014
|
-
function s(
|
|
2015
|
-
return /* @__PURE__ */
|
|
2016
|
-
|
|
2017
|
-
const
|
|
2018
|
-
i.updateVal(
|
|
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
|
-
|
|
2021
|
+
x(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
|
|
2022
2022
|
}, "updateBounds"),
|
|
2023
|
-
insert: /* @__PURE__ */
|
|
2024
|
-
const i =
|
|
2025
|
-
this.updateVal(R.data, "startx", i, Math.min), this.updateVal(R.data, "starty", s, Math.min), this.updateVal(R.data, "stopx",
|
|
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__ */
|
|
2028
|
-
const r = a.get(e.from), i =
|
|
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:
|
|
2030
|
+
startx: n,
|
|
2031
2031
|
starty: this.verticalPos + 2,
|
|
2032
|
-
stopx:
|
|
2032
|
+
stopx: n + l.activationWidth,
|
|
2033
2033
|
stopy: void 0,
|
|
2034
2034
|
actor: e.from,
|
|
2035
|
-
anchored:
|
|
2035
|
+
anchored: q.anchorElement(t)
|
|
2036
2036
|
});
|
|
2037
2037
|
}, "newActivation"),
|
|
2038
|
-
endActivation: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
2060
|
+
endLoop: /* @__PURE__ */ x(function() {
|
|
2061
2061
|
return this.sequenceItems.pop();
|
|
2062
2062
|
}, "endLoop"),
|
|
2063
|
-
isLoopOverlap: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
2070
|
+
saveVerticalPos: /* @__PURE__ */ x(function() {
|
|
2071
2071
|
this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
|
|
2072
2072
|
}, "saveVerticalPos"),
|
|
2073
|
-
resetVerticalPos: /* @__PURE__ */
|
|
2073
|
+
resetVerticalPos: /* @__PURE__ */ x(function() {
|
|
2074
2074
|
this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
|
|
2075
2075
|
}, "resetVerticalPos"),
|
|
2076
|
-
bumpVerticalPos: /* @__PURE__ */
|
|
2077
|
-
this.verticalPos = this.verticalPos + e, this.data.stopy =
|
|
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__ */
|
|
2079
|
+
getVerticalPos: /* @__PURE__ */ x(function() {
|
|
2080
2080
|
return this.verticalPos;
|
|
2081
2081
|
}, "getVerticalPos"),
|
|
2082
|
-
getBounds: /* @__PURE__ */
|
|
2082
|
+
getBounds: /* @__PURE__ */ x(function() {
|
|
2083
2083
|
return { bounds: this.data, models: this.models };
|
|
2084
2084
|
}, "getBounds")
|
|
2085
|
-
}, Qr = /* @__PURE__ */
|
|
2086
|
-
R.bumpVerticalPos(
|
|
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 ||
|
|
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
|
|
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 =
|
|
2093
|
-
const
|
|
2094
|
-
|
|
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
|
-
|
|
2097
|
-
}, "drawNote"), De = /* @__PURE__ */
|
|
2098
|
-
const
|
|
2099
|
-
let
|
|
2100
|
-
const O =
|
|
2101
|
-
const V =
|
|
2102
|
-
return
|
|
2103
|
-
}, "getCircleOffset"), L = /* @__PURE__ */
|
|
2104
|
-
|
|
2105
|
-
}, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE:
|
|
2106
|
-
if (
|
|
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
|
-
|
|
2109
|
+
T && (E += I(O, !0));
|
|
2110
2110
|
break;
|
|
2111
|
-
case
|
|
2112
|
-
|
|
2111
|
+
case w:
|
|
2112
|
+
T || (_ += I(O, !1));
|
|
2113
2113
|
break;
|
|
2114
2114
|
case A:
|
|
2115
|
-
|
|
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(
|
|
2120
|
+
L(E);
|
|
2121
2121
|
break;
|
|
2122
|
-
case
|
|
2123
|
-
L(
|
|
2122
|
+
case w:
|
|
2123
|
+
L(_);
|
|
2124
2124
|
break;
|
|
2125
2125
|
case A:
|
|
2126
|
-
L(
|
|
2126
|
+
L(_), L(E);
|
|
2127
2127
|
break;
|
|
2128
2128
|
}
|
|
2129
|
-
}, "drawCentralConnection"), Rt = /* @__PURE__ */
|
|
2129
|
+
}, "drawCentralConnection"), Rt = /* @__PURE__ */ x((e) => ({
|
|
2130
2130
|
fontFamily: e.messageFontFamily,
|
|
2131
2131
|
fontSize: e.messageFontSize,
|
|
2132
2132
|
fontWeight: e.messageFontWeight
|
|
2133
|
-
}), "messageFont"),
|
|
2133
|
+
}), "messageFont"), bt = /* @__PURE__ */ x((e) => ({
|
|
2134
2134
|
fontFamily: e.noteFontFamily,
|
|
2135
2135
|
fontSize: e.noteFontSize,
|
|
2136
2136
|
fontWeight: e.noteFontWeight
|
|
2137
|
-
}), "noteFont"),
|
|
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,
|
|
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
|
|
2147
|
-
t.height +=
|
|
2146
|
+
const _ = o.height / n;
|
|
2147
|
+
t.height += _, R.bumpVerticalPos(_);
|
|
2148
2148
|
}
|
|
2149
|
-
let
|
|
2150
|
-
const
|
|
2149
|
+
let u, d = o.height - 10;
|
|
2150
|
+
const p = o.width;
|
|
2151
2151
|
if (a === r) {
|
|
2152
|
-
|
|
2153
|
-
const
|
|
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 -
|
|
2156
|
-
R.getVerticalPos() - 10 +
|
|
2157
|
-
r +
|
|
2158
|
-
R.getVerticalPos() + 30 +
|
|
2155
|
+
a - _,
|
|
2156
|
+
R.getVerticalPos() - 10 + d,
|
|
2157
|
+
r + _,
|
|
2158
|
+
R.getVerticalPos() + 30 + d
|
|
2159
2159
|
);
|
|
2160
2160
|
} else
|
|
2161
|
-
|
|
2162
|
-
return R.bumpVerticalPos(
|
|
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
|
-
|
|
2165
|
-
var $r = /* @__PURE__ */
|
|
2166
|
-
const { startx: s, stopx:
|
|
2167
|
-
|
|
2168
|
-
const
|
|
2169
|
-
let
|
|
2170
|
-
if (s ===
|
|
2171
|
-
const L =
|
|
2172
|
-
|
|
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 +
|
|
2175
|
-
) :
|
|
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
|
-
),
|
|
2178
|
+
), jt(i, r) && De(e, i, t, r, s, o, a);
|
|
2179
2179
|
} else
|
|
2180
|
-
|
|
2181
|
-
|
|
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 (
|
|
2184
|
-
const L =
|
|
2185
|
-
let
|
|
2186
|
-
L ? (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
|
|
2189
|
-
|
|
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 =
|
|
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 + "#" +
|
|
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__ */
|
|
2195
|
-
let
|
|
2196
|
-
for (const
|
|
2197
|
-
const
|
|
2198
|
-
|
|
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
|
-
|
|
2201
|
-
}, "addActorRenderingData"),
|
|
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
|
|
2204
|
-
R.bumpVerticalPos(
|
|
2205
|
-
for (const
|
|
2206
|
-
const
|
|
2207
|
-
|
|
2208
|
-
const
|
|
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
|
-
|
|
2211
|
-
|
|
2210
|
+
d,
|
|
2211
|
+
l,
|
|
2212
2212
|
!0,
|
|
2213
2213
|
i,
|
|
2214
|
-
|
|
2214
|
+
n,
|
|
2215
2215
|
s
|
|
2216
2216
|
);
|
|
2217
|
-
|
|
2217
|
+
o = N.getMax(o, p);
|
|
2218
2218
|
}
|
|
2219
|
-
R.bumpVerticalPos(
|
|
2219
|
+
R.bumpVerticalPos(o + l.boxMargin);
|
|
2220
2220
|
} else
|
|
2221
|
-
for (const
|
|
2222
|
-
const
|
|
2223
|
-
await
|
|
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__ */
|
|
2226
|
-
let i = 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
|
|
2228
|
+
const o = t.get(s), u = ea(o), d = q.drawPopup(
|
|
2229
2229
|
e,
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2230
|
+
o,
|
|
2231
|
+
u,
|
|
2232
|
+
l,
|
|
2233
|
+
l.forceMenus,
|
|
2234
2234
|
r
|
|
2235
2235
|
);
|
|
2236
|
-
|
|
2236
|
+
d.height > i && (i = d.height), d.width + o.x > n && (n = d.width + o.x);
|
|
2237
2237
|
}
|
|
2238
|
-
return { maxHeight: i, maxWidth:
|
|
2239
|
-
}, "drawActorsPopup"), He = /* @__PURE__ */
|
|
2240
|
-
|
|
2241
|
-
}, "setConf"),
|
|
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__ */
|
|
2246
|
-
const a = t.get(e), r =
|
|
2247
|
-
function(s,
|
|
2248
|
-
return
|
|
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
|
-
),
|
|
2252
|
-
function(s,
|
|
2253
|
-
return
|
|
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,
|
|
2257
|
+
return [i, n];
|
|
2258
2258
|
}, "activationBounds");
|
|
2259
2259
|
function ht(e, t, a, r, i) {
|
|
2260
2260
|
R.bumpVerticalPos(a);
|
|
2261
|
-
let
|
|
2261
|
+
let n = r;
|
|
2262
2262
|
if (t.id && t.message && e[t.id]) {
|
|
2263
|
-
const s = e[t.id].width,
|
|
2264
|
-
t.message = Z.wrapLabel(`[${t.message}]`, s - 2 *
|
|
2265
|
-
const
|
|
2266
|
-
|
|
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(
|
|
2268
|
+
i(t), R.bumpVerticalPos(n);
|
|
2269
2269
|
}
|
|
2270
|
-
|
|
2271
|
-
function ze(e, t, a, r, i,
|
|
2272
|
-
function
|
|
2273
|
-
|
|
2274
|
-
t.stopx -
|
|
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 +
|
|
2278
|
-
), t.stopx = t.stopx +
|
|
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 +
|
|
2282
|
-
t.stopy +
|
|
2283
|
-
), t.stopx = t.stopx -
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
function
|
|
2287
|
-
|
|
2288
|
-
t.startx -
|
|
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 +
|
|
2292
|
-
), t.startx = t.startx +
|
|
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 +
|
|
2296
|
-
t.stopy +
|
|
2297
|
-
), t.startx = t.startx -
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
const
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
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 (
|
|
2307
|
-
const
|
|
2308
|
-
|
|
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
|
|
2311
|
-
if (
|
|
2312
|
-
const
|
|
2313
|
-
|
|
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
|
-
|
|
2315
|
+
p.stopy = a - p.height / 2, R.bumpVerticalPos(p.height / 2);
|
|
2316
2316
|
} else if (s.get(e.to) == r) {
|
|
2317
|
-
const
|
|
2318
|
-
if (
|
|
2319
|
-
const
|
|
2320
|
-
|
|
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
|
-
|
|
2322
|
+
p.stopy = a - p.height / 2, R.bumpVerticalPos(p.height / 2);
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
|
-
|
|
2326
|
-
var ta = /* @__PURE__ */
|
|
2327
|
-
const { securityLevel: i, sequence:
|
|
2328
|
-
|
|
2329
|
-
let
|
|
2330
|
-
i === "sandbox" && (
|
|
2331
|
-
const
|
|
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
|
|
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
|
|
2336
|
-
if (
|
|
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
|
-
|
|
2339
|
-
m.add(
|
|
2340
|
-
}), f = f.filter((
|
|
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
|
|
2343
|
-
f.map((m,
|
|
2342
|
+
const D = new Map(
|
|
2343
|
+
f.map((m, k) => [E.get(m)?.name ?? m, k])
|
|
2344
2344
|
);
|
|
2345
|
-
jr(
|
|
2346
|
-
const
|
|
2347
|
-
|
|
2348
|
-
function
|
|
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 >
|
|
2351
|
-
|
|
2350
|
+
lt.starty + 18 > k && (lt.starty = k - 6, k += 12), q.drawActivation(
|
|
2351
|
+
_,
|
|
2352
2352
|
lt,
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2353
|
+
k,
|
|
2354
|
+
l,
|
|
2355
|
+
zt(m.from).length,
|
|
2356
2356
|
r,
|
|
2357
|
-
|
|
2358
|
-
), R.insert(lt.startx,
|
|
2359
|
-
}
|
|
2360
|
-
|
|
2361
|
-
let
|
|
2362
|
-
const
|
|
2363
|
-
let
|
|
2364
|
-
for (const m of
|
|
2365
|
-
let
|
|
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(
|
|
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,
|
|
2371
|
+
R.newActivation(m, _, E);
|
|
2372
2372
|
break;
|
|
2373
2373
|
case r.db.LINETYPE.CENTRAL_CONNECTION:
|
|
2374
|
-
R.newActivation(m,
|
|
2374
|
+
R.newActivation(m, _, E);
|
|
2375
2375
|
break;
|
|
2376
2376
|
case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
|
|
2377
|
-
R.newActivation(m,
|
|
2377
|
+
R.newActivation(m, _, E);
|
|
2378
2378
|
break;
|
|
2379
2379
|
case r.db.LINETYPE.ACTIVE_END:
|
|
2380
|
-
|
|
2380
|
+
V(m, R.getVerticalPos());
|
|
2381
2381
|
break;
|
|
2382
2382
|
case r.db.LINETYPE.LOOP_START:
|
|
2383
2383
|
ht(
|
|
2384
|
-
|
|
2384
|
+
M,
|
|
2385
2385
|
m,
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2405
|
+
M,
|
|
2409
2406
|
m,
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
2417
|
+
M,
|
|
2421
2418
|
m,
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
(
|
|
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
|
-
|
|
2426
|
+
M,
|
|
2430
2427
|
m,
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
2439
|
+
M,
|
|
2443
2440
|
m,
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
(
|
|
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
|
-
|
|
2448
|
+
M,
|
|
2452
2449
|
m,
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2463
|
+
M,
|
|
2467
2464
|
m,
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
(
|
|
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
|
-
|
|
2472
|
+
M,
|
|
2476
2473
|
m,
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
2484
|
+
M,
|
|
2488
2485
|
m,
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
(
|
|
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
|
-
|
|
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 =
|
|
2500
|
-
const
|
|
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
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
),
|
|
2510
|
-
} catch (
|
|
2511
|
-
at.error("error while drawing message",
|
|
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) && (
|
|
2538
|
+
].includes(m.type) && (W = Math.round((W + U) * 100) / 100), nt++;
|
|
2542
2539
|
}
|
|
2543
|
-
at.debug("createdActors",
|
|
2544
|
-
for (const m of
|
|
2545
|
-
await $r(
|
|
2546
|
-
|
|
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
|
|
2550
|
-
m.startx = m.x -
|
|
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
|
-
|
|
2553
|
-
const j = qe(
|
|
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 *
|
|
2558
|
-
|
|
2559
|
-
let
|
|
2560
|
-
|
|
2561
|
-
const
|
|
2562
|
-
|
|
2563
|
-
const
|
|
2564
|
-
|
|
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 -
|
|
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
|
|
2574
|
-
if (i.placement === a.db.PLACEMENT.LEFTOF && !
|
|
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,
|
|
2577
|
-
|
|
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
|
-
|
|
2580
|
-
) :
|
|
2576
|
+
_
|
|
2577
|
+
) : o && i.from === n.prevActor ? r[i.from] = N.getMax(
|
|
2581
2578
|
r[i.from] || 0,
|
|
2582
|
-
|
|
2583
|
-
) :
|
|
2579
|
+
_
|
|
2580
|
+
) : o && i.from === i.to ? (r[i.from] = N.getMax(
|
|
2584
2581
|
r[i.from] || 0,
|
|
2585
|
-
|
|
2586
|
-
), r[i.to] =
|
|
2582
|
+
_ / 2
|
|
2583
|
+
), r[i.to] = N.getMax(
|
|
2587
2584
|
r[i.to] || 0,
|
|
2588
|
-
|
|
2589
|
-
)) : i.placement === a.db.PLACEMENT.RIGHTOF ? r[i.from] =
|
|
2585
|
+
_ / 2
|
|
2586
|
+
)) : i.placement === a.db.PLACEMENT.RIGHTOF ? r[i.from] = N.getMax(
|
|
2590
2587
|
r[i.from] || 0,
|
|
2591
|
-
|
|
2592
|
-
) : i.placement === a.db.PLACEMENT.LEFTOF ? r[
|
|
2593
|
-
r[
|
|
2594
|
-
|
|
2595
|
-
) : i.placement === a.db.PLACEMENT.OVER && (
|
|
2596
|
-
r[
|
|
2597
|
-
|
|
2598
|
-
)),
|
|
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
|
-
|
|
2597
|
+
_ / 2
|
|
2601
2598
|
)));
|
|
2602
2599
|
}
|
|
2603
2600
|
return at.debug("maxMessageWidthPerActor:", r), r;
|
|
2604
2601
|
}
|
|
2605
|
-
|
|
2606
|
-
var ea = /* @__PURE__ */
|
|
2602
|
+
x(Ue, "getMaxMessageWidthPerActor");
|
|
2603
|
+
var ea = /* @__PURE__ */ x(function(e) {
|
|
2607
2604
|
let t = 0;
|
|
2608
|
-
const a =
|
|
2605
|
+
const a = ee(l);
|
|
2609
2606
|
for (const r in e.links) {
|
|
2610
|
-
const
|
|
2611
|
-
t <
|
|
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
|
|
2618
|
-
const s = e.get(
|
|
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
|
-
|
|
2622
|
-
|
|
2618
|
+
l.width - 2 * l.wrapPadding,
|
|
2619
|
+
ee(l)
|
|
2623
2620
|
));
|
|
2624
|
-
const
|
|
2625
|
-
s.width = s.wrap ?
|
|
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
|
|
2628
|
-
const s = e.get(
|
|
2624
|
+
for (const n in t) {
|
|
2625
|
+
const s = e.get(n);
|
|
2629
2626
|
if (!s)
|
|
2630
2627
|
continue;
|
|
2631
|
-
const
|
|
2632
|
-
if (!
|
|
2633
|
-
const
|
|
2634
|
-
s.margin =
|
|
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
|
|
2638
|
-
s.margin =
|
|
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((
|
|
2642
|
-
const s = Rt(
|
|
2643
|
-
let
|
|
2644
|
-
const
|
|
2645
|
-
|
|
2646
|
-
const
|
|
2647
|
-
i =
|
|
2648
|
-
const
|
|
2649
|
-
if (
|
|
2650
|
-
const
|
|
2651
|
-
|
|
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((
|
|
2650
|
+
}), a.forEach((n) => n.textMaxHeight = i), N.getMax(r, l.height);
|
|
2654
2651
|
}
|
|
2655
|
-
|
|
2656
|
-
var ra = /* @__PURE__ */
|
|
2657
|
-
const r = t.get(e.from), i = t.get(e.to),
|
|
2658
|
-
let
|
|
2659
|
-
|
|
2660
|
-
|
|
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
|
|
2663
|
-
width:
|
|
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 ? (
|
|
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
|
-
|
|
2674
|
-
),
|
|
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
|
-
|
|
2677
|
-
),
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
),
|
|
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
|
-
|
|
2683
|
-
|
|
2679
|
+
d.width - 2 * l.wrapPadding,
|
|
2680
|
+
bt(l)
|
|
2684
2681
|
)), at.debug(
|
|
2685
|
-
`NM:[${
|
|
2686
|
-
),
|
|
2687
|
-
}, "buildNoteModel"), aa = 4,
|
|
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__ */
|
|
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:
|
|
2693
|
+
BIDIRECTIONAL_SOLID: n,
|
|
2697
2694
|
BIDIRECTIONAL_DOTTED: s
|
|
2698
2695
|
} = t.db.LINETYPE;
|
|
2699
|
-
let
|
|
2700
|
-
return (e.centralConnection === r || e.centralConnection === i) && (
|
|
2701
|
-
}, "calculateCentralConnectionOffset"), Xe = /* @__PURE__ */
|
|
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:
|
|
2703
|
+
SOLID_ARROW_BOTTOM_REVERSE_DOTTED: n,
|
|
2707
2704
|
STICK_ARROW_TOP_REVERSE: s,
|
|
2708
|
-
STICK_ARROW_TOP_REVERSE_DOTTED:
|
|
2709
|
-
STICK_ARROW_BOTTOM_REVERSE:
|
|
2710
|
-
STICK_ARROW_BOTTOM_REVERSE_DOTTED:
|
|
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
|
-
|
|
2720
|
-
|
|
2714
|
+
s,
|
|
2715
|
+
o,
|
|
2716
|
+
u,
|
|
2717
|
+
d
|
|
2721
2718
|
].includes(e.type);
|
|
2722
|
-
}, "isReverseArrowType"), ia = /* @__PURE__ */
|
|
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__ */
|
|
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,
|
|
2757
|
-
let
|
|
2758
|
-
r === "neo" && (e.type !== a.db.LINETYPE.SOLID_OPEN && (
|
|
2759
|
-
const
|
|
2760
|
-
e.from === e.to ?
|
|
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) || (
|
|
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) && (
|
|
2783
|
-
const O = [i,
|
|
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
|
-
|
|
2787
|
-
Rt(
|
|
2783
|
+
N.getMax(T + 2 * l.wrapPadding, l.width),
|
|
2784
|
+
Rt(l)
|
|
2788
2785
|
));
|
|
2789
|
-
const
|
|
2786
|
+
const g = Z.calculateTextDimensions(e.message, Rt(l));
|
|
2790
2787
|
return {
|
|
2791
|
-
width:
|
|
2792
|
-
e.wrap ? 0 :
|
|
2793
|
-
|
|
2794
|
-
|
|
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:
|
|
2798
|
-
stopx:
|
|
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__ */
|
|
2808
|
-
const i = {},
|
|
2809
|
-
let s,
|
|
2810
|
-
for (const
|
|
2811
|
-
switch (
|
|
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
|
-
|
|
2820
|
-
id:
|
|
2821
|
-
msg:
|
|
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
|
-
|
|
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 =
|
|
2835
|
+
s = n.pop(), i[s.id] = s;
|
|
2839
2836
|
break;
|
|
2840
2837
|
case r.db.LINETYPE.ACTIVE_START:
|
|
2841
2838
|
{
|
|
2842
|
-
const
|
|
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 +
|
|
2845
|
-
actor:
|
|
2841
|
+
stopx: O + l.activationWidth,
|
|
2842
|
+
actor: d.from,
|
|
2846
2843
|
enabled: !0
|
|
2847
2844
|
};
|
|
2848
|
-
R.activations.push(
|
|
2845
|
+
R.activations.push(T);
|
|
2849
2846
|
}
|
|
2850
2847
|
break;
|
|
2851
2848
|
case r.db.LINETYPE.ACTIVE_END:
|
|
2852
2849
|
{
|
|
2853
|
-
const
|
|
2854
|
-
R.activations.splice(
|
|
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
|
-
|
|
2859
|
-
s =
|
|
2860
|
-
})) : (
|
|
2861
|
-
if (s =
|
|
2862
|
-
const
|
|
2863
|
-
s.from =
|
|
2864
|
-
|
|
2865
|
-
|
|
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 =
|
|
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 =
|
|
2868
|
+
), s.width = N.getMax(s.width, Math.abs(s.to - s.from)) - l.labelBoxWidth;
|
|
2872
2869
|
} else
|
|
2873
|
-
s.from =
|
|
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:
|
|
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__ */
|
|
2891
|
-
e.sequence || (e.sequence = {}), e.wrap && (e.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-
|
|
2894
|
+
//# sourceMappingURL=sequenceDiagram-SI44F4Z6-DmMZNJDw.js.map
|