@omg-dev/app 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{ChangelogPage-BzsTWlhq.js → ChangelogPage-Cjj_DiYL.js} +33 -1
- package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
- package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
- package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
- package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
- package/dist-lib/{SessionFilesPanel-K4lGGdJ4.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
- package/dist-lib/{TermView-CWr-zJmM.js → TermView-B4V-DyD-.js} +521 -530
- package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
- package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
- package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
- package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
- package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
- package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
- package/dist-lib/{chat-engine-P0yDhFOX.js → chat-engine-CUiDTHFP.js} +1173 -1218
- package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
- package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
- package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
- package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
- package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
- package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
- package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
- package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
- package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
- package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
- package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
- package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
- package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
- package/dist-lib/{coding-agents-page-DCafIpWL.js → coding-agents-page-DtxZ0nbQ.js} +152 -131
- package/dist-lib/computer-page-DIJeFOZz.js +8860 -0
- package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
- package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
- package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
- package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
- package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
- package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
- package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
- package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
- package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
- package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
- package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
- package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
- package/dist-lib/{embedded-CLYU5z7h.js → embedded-PUsgcSTE.js} +10592 -10725
- package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
- package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
- package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
- package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
- package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
- package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
- package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
- package/dist-lib/index-B0neMIbR.js +16520 -0
- package/dist-lib/index-BBC0E3Qg.js +4994 -0
- package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
- package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
- package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
- package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
- package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
- package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
- package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
- package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
- package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
- package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
- package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
- package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
- package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
- package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
- package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
- package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
- package/dist-lib/{resume-session-sheet-CHwpwguS.js → resume-session-sheet-DTe_2QtJ.js} +2 -3
- package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
- package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
- package/dist-lib/{session-token-usage-BUz6b-IB.js → session-token-usage-DY4vFlfs.js} +82 -83
- package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
- package/dist-lib/{shipped-page-CXy85bsL.js → shipped-page-B-ruG8li.js} +233 -236
- package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
- package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
- package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
- package/dist-lib/{streamdown-response-CUB9sK6V.js → streamdown-response-BQy3geXs.js} +290 -297
- package/dist-lib/styles.css +1 -1
- package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
- package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
- package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
- package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
- package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
- package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
- package/package.json +4 -3
- package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
- package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
- package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
- package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
- package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
- package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
- package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
- package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
- package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
- package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
- package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
- package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
- package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
- package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
- package/dist-lib/index-DcwavxA1.js +0 -5062
- package/dist-lib/index-JkCQXUYs.js +0 -16566
- package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
- package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
- package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
- package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
- package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
- package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
- package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
- package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
- package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
- package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js}
RENAMED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { I as
|
|
2
|
-
import { _ as x, X as
|
|
3
|
-
import { a as
|
|
4
|
-
var
|
|
5
|
-
var e = /* @__PURE__ */ x(function(ut,
|
|
6
|
-
for (v = v || {},
|
|
1
|
+
import { I as tr } from "./chunk-2Q5K7J3B-CFSi414U.js";
|
|
2
|
+
import { _ as x, 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, Y as lr, Z as hr, q as dr, i as Yt, y as Z, $ as Q, a0 as Pt, a1 as Me, a2 as Tr, z as Kt, a3 as pr, a4 as Be } from "./index-B0neMIbR.js";
|
|
3
|
+
import { a as Er, b as ae, g as dt, d as ur, c as se, e as ie } from "./chunk-32BRIVSS-DvywQiCk.js";
|
|
4
|
+
var te = (function() {
|
|
5
|
+
var e = /* @__PURE__ */ x(function(ut, S, v, P) {
|
|
6
|
+
for (v = v || {}, P = ut.length; P--; v[ut[P]] = S) ;
|
|
7
7
|
return v;
|
|
8
|
-
}, "o"), t = [1, 2], a = [1, 3], r = [1, 4], i = [2, 4], n = [1, 9], s = [1, 11], o = [1, 12],
|
|
8
|
+
}, "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 = {
|
|
9
9
|
trace: /* @__PURE__ */ x(function() {
|
|
10
10
|
}, "trace"),
|
|
11
11
|
yy: {},
|
|
12
12
|
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 },
|
|
13
13
|
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" },
|
|
14
14
|
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]],
|
|
15
|
-
performAction: /* @__PURE__ */ x(function(
|
|
16
|
-
var
|
|
17
|
-
switch (
|
|
15
|
+
performAction: /* @__PURE__ */ x(function(S, v, P, y, z, c, wt) {
|
|
16
|
+
var h = c.length - 1;
|
|
17
|
+
switch (z) {
|
|
18
18
|
case 3:
|
|
19
|
-
return y.apply(c[
|
|
19
|
+
return y.apply(c[h]), c[h];
|
|
20
20
|
case 4:
|
|
21
21
|
case 10:
|
|
22
22
|
this.$ = [];
|
|
23
23
|
break;
|
|
24
24
|
case 5:
|
|
25
25
|
case 11:
|
|
26
|
-
c[
|
|
26
|
+
c[h - 1].push(c[h]), this.$ = c[h - 1];
|
|
27
27
|
break;
|
|
28
28
|
case 6:
|
|
29
29
|
case 7:
|
|
30
30
|
case 12:
|
|
31
31
|
case 13:
|
|
32
|
-
this.$ = c[
|
|
32
|
+
this.$ = c[h];
|
|
33
33
|
break;
|
|
34
34
|
case 8:
|
|
35
35
|
case 9:
|
|
@@ -37,16 +37,16 @@ var ee = (function() {
|
|
|
37
37
|
this.$ = [];
|
|
38
38
|
break;
|
|
39
39
|
case 16:
|
|
40
|
-
c[
|
|
40
|
+
c[h].type = "createParticipant", this.$ = c[h];
|
|
41
41
|
break;
|
|
42
42
|
case 17:
|
|
43
|
-
c[
|
|
43
|
+
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];
|
|
44
44
|
break;
|
|
45
45
|
case 19:
|
|
46
|
-
this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[
|
|
46
|
+
this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[h - 2]), sequenceIndexStep: Number(c[h - 1]), sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
|
|
47
47
|
break;
|
|
48
48
|
case 20:
|
|
49
|
-
this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[
|
|
49
|
+
this.$ = { type: "sequenceIndex", sequenceIndex: Number(c[h - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
|
|
50
50
|
break;
|
|
51
51
|
case 21:
|
|
52
52
|
this.$ = { type: "sequenceIndex", sequenceVisible: !1, signalType: y.LINETYPE.AUTONUMBER };
|
|
@@ -55,105 +55,105 @@ var ee = (function() {
|
|
|
55
55
|
this.$ = { type: "sequenceIndex", sequenceVisible: !0, signalType: y.LINETYPE.AUTONUMBER };
|
|
56
56
|
break;
|
|
57
57
|
case 23:
|
|
58
|
-
this.$ = { type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[
|
|
58
|
+
this.$ = { type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[h - 1].actor };
|
|
59
59
|
break;
|
|
60
60
|
case 24:
|
|
61
|
-
this.$ = { type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[
|
|
61
|
+
this.$ = { type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[h - 1].actor };
|
|
62
62
|
break;
|
|
63
63
|
case 30:
|
|
64
|
-
y.setDiagramTitle(c[
|
|
64
|
+
y.setDiagramTitle(c[h].substring(6)), this.$ = c[h].substring(6);
|
|
65
65
|
break;
|
|
66
66
|
case 31:
|
|
67
|
-
y.setDiagramTitle(c[
|
|
67
|
+
y.setDiagramTitle(c[h].substring(7)), this.$ = c[h].substring(7);
|
|
68
68
|
break;
|
|
69
69
|
case 32:
|
|
70
|
-
this.$ = c[
|
|
70
|
+
this.$ = c[h].trim(), y.setAccTitle(this.$);
|
|
71
71
|
break;
|
|
72
72
|
case 33:
|
|
73
73
|
case 34:
|
|
74
|
-
this.$ = c[
|
|
74
|
+
this.$ = c[h].trim(), y.setAccDescription(this.$);
|
|
75
75
|
break;
|
|
76
76
|
case 35:
|
|
77
|
-
c[
|
|
77
|
+
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];
|
|
78
78
|
break;
|
|
79
79
|
case 36:
|
|
80
|
-
c[
|
|
80
|
+
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];
|
|
81
81
|
break;
|
|
82
82
|
case 37:
|
|
83
|
-
c[
|
|
83
|
+
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];
|
|
84
84
|
break;
|
|
85
85
|
case 38:
|
|
86
|
-
c[
|
|
86
|
+
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];
|
|
87
87
|
break;
|
|
88
88
|
case 39:
|
|
89
|
-
c[
|
|
89
|
+
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];
|
|
90
90
|
break;
|
|
91
91
|
case 40:
|
|
92
|
-
c[
|
|
92
|
+
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];
|
|
93
93
|
break;
|
|
94
94
|
case 41:
|
|
95
|
-
c[
|
|
95
|
+
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];
|
|
96
96
|
break;
|
|
97
97
|
case 42:
|
|
98
|
-
c[
|
|
98
|
+
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];
|
|
99
99
|
break;
|
|
100
100
|
case 44:
|
|
101
|
-
this.$ = c[
|
|
101
|
+
this.$ = c[h - 3].concat([{ type: "option", optionText: y.parseMessage(c[h - 1]), signalType: y.LINETYPE.CRITICAL_OPTION }, c[h]]);
|
|
102
102
|
break;
|
|
103
103
|
case 46:
|
|
104
|
-
this.$ = c[
|
|
104
|
+
this.$ = c[h - 3].concat([{ type: "and", parText: y.parseMessage(c[h - 1]), signalType: y.LINETYPE.PAR_AND }, c[h]]);
|
|
105
105
|
break;
|
|
106
106
|
case 48:
|
|
107
|
-
this.$ = c[
|
|
107
|
+
this.$ = c[h - 3].concat([{ type: "else", altText: y.parseMessage(c[h - 1]), signalType: y.LINETYPE.ALT_ELSE }, c[h]]);
|
|
108
108
|
break;
|
|
109
109
|
case 49:
|
|
110
|
-
c[
|
|
110
|
+
c[h - 3].draw = "participant", c[h - 3].type = "addParticipant", c[h - 3].description = y.parseMessage(c[h - 1]), this.$ = c[h - 3];
|
|
111
111
|
break;
|
|
112
112
|
case 50:
|
|
113
|
-
c[
|
|
113
|
+
c[h - 1].draw = "participant", c[h - 1].type = "addParticipant", this.$ = c[h - 1];
|
|
114
114
|
break;
|
|
115
115
|
case 51:
|
|
116
|
-
c[
|
|
116
|
+
c[h - 3].draw = "actor", c[h - 3].type = "addParticipant", c[h - 3].description = y.parseMessage(c[h - 1]), this.$ = c[h - 3];
|
|
117
117
|
break;
|
|
118
118
|
case 52:
|
|
119
119
|
case 57:
|
|
120
|
-
c[
|
|
120
|
+
c[h - 1].draw = "actor", c[h - 1].type = "addParticipant", this.$ = c[h - 1];
|
|
121
121
|
break;
|
|
122
122
|
case 53:
|
|
123
|
-
c[
|
|
123
|
+
c[h - 1].type = "destroyParticipant", this.$ = c[h - 1];
|
|
124
124
|
break;
|
|
125
125
|
case 54:
|
|
126
|
-
c[
|
|
126
|
+
c[h - 3].draw = "participant", c[h - 3].type = "addParticipant", c[h - 3].description = y.parseMessage(c[h - 1]), this.$ = c[h - 3];
|
|
127
127
|
break;
|
|
128
128
|
case 55:
|
|
129
|
-
c[
|
|
129
|
+
c[h - 1].draw = "participant", c[h - 1].type = "addParticipant", this.$ = c[h - 1];
|
|
130
130
|
break;
|
|
131
131
|
case 56:
|
|
132
|
-
c[
|
|
132
|
+
c[h - 3].draw = "actor", c[h - 3].type = "addParticipant", c[h - 3].description = y.parseMessage(c[h - 1]), this.$ = c[h - 3];
|
|
133
133
|
break;
|
|
134
134
|
case 58:
|
|
135
|
-
this.$ = [c[
|
|
135
|
+
this.$ = [c[h - 1], { type: "addNote", placement: c[h - 2], actor: c[h - 1].actor, text: c[h] }];
|
|
136
136
|
break;
|
|
137
137
|
case 59:
|
|
138
|
-
c[
|
|
138
|
+
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] }];
|
|
139
139
|
break;
|
|
140
140
|
case 60:
|
|
141
|
-
this.$ = [c[
|
|
141
|
+
this.$ = [c[h - 1], { type: "addLinks", actor: c[h - 1].actor, text: c[h] }];
|
|
142
142
|
break;
|
|
143
143
|
case 61:
|
|
144
|
-
this.$ = [c[
|
|
144
|
+
this.$ = [c[h - 1], { type: "addALink", actor: c[h - 1].actor, text: c[h] }];
|
|
145
145
|
break;
|
|
146
146
|
case 62:
|
|
147
|
-
this.$ = [c[
|
|
147
|
+
this.$ = [c[h - 1], { type: "addProperties", actor: c[h - 1].actor, text: c[h] }];
|
|
148
148
|
break;
|
|
149
149
|
case 63:
|
|
150
|
-
this.$ = [c[
|
|
150
|
+
this.$ = [c[h - 1], { type: "addDetails", actor: c[h - 1].actor, text: c[h] }];
|
|
151
151
|
break;
|
|
152
152
|
case 66:
|
|
153
|
-
this.$ = [c[
|
|
153
|
+
this.$ = [c[h - 2], c[h]];
|
|
154
154
|
break;
|
|
155
155
|
case 67:
|
|
156
|
-
this.$ = c[
|
|
156
|
+
this.$ = c[h];
|
|
157
157
|
break;
|
|
158
158
|
case 68:
|
|
159
159
|
this.$ = y.PLACEMENT.LEFTOF;
|
|
@@ -163,60 +163,60 @@ var ee = (function() {
|
|
|
163
163
|
break;
|
|
164
164
|
case 70:
|
|
165
165
|
this.$ = [
|
|
166
|
-
c[
|
|
167
|
-
c[
|
|
168
|
-
{ type: "addMessage", from: c[
|
|
169
|
-
{ type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[
|
|
166
|
+
c[h - 4],
|
|
167
|
+
c[h - 1],
|
|
168
|
+
{ type: "addMessage", from: c[h - 4].actor, to: c[h - 1].actor, signalType: c[h - 3], msg: c[h], activate: !0 },
|
|
169
|
+
{ type: "activeStart", signalType: y.LINETYPE.ACTIVE_START, actor: c[h - 1].actor }
|
|
170
170
|
];
|
|
171
171
|
break;
|
|
172
172
|
case 71:
|
|
173
173
|
this.$ = [
|
|
174
|
-
c[
|
|
175
|
-
c[
|
|
176
|
-
{ type: "addMessage", from: c[
|
|
177
|
-
{ type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[
|
|
174
|
+
c[h - 4],
|
|
175
|
+
c[h - 1],
|
|
176
|
+
{ type: "addMessage", from: c[h - 4].actor, to: c[h - 1].actor, signalType: c[h - 3], msg: c[h] },
|
|
177
|
+
{ type: "activeEnd", signalType: y.LINETYPE.ACTIVE_END, actor: c[h - 4].actor }
|
|
178
178
|
];
|
|
179
179
|
break;
|
|
180
180
|
case 72:
|
|
181
181
|
this.$ = [
|
|
182
|
-
c[
|
|
183
|
-
c[
|
|
184
|
-
{ type: "addMessage", from: c[
|
|
185
|
-
{ type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[
|
|
182
|
+
c[h - 4],
|
|
183
|
+
c[h - 1],
|
|
184
|
+
{ 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 },
|
|
185
|
+
{ type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[h - 1].actor }
|
|
186
186
|
];
|
|
187
187
|
break;
|
|
188
188
|
case 73:
|
|
189
189
|
this.$ = [
|
|
190
|
-
c[
|
|
191
|
-
c[
|
|
192
|
-
{ type: "addMessage", from: c[
|
|
193
|
-
{ type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[
|
|
190
|
+
c[h - 4],
|
|
191
|
+
c[h - 1],
|
|
192
|
+
{ 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 },
|
|
193
|
+
{ type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[h - 4].actor }
|
|
194
194
|
];
|
|
195
195
|
break;
|
|
196
196
|
case 74:
|
|
197
197
|
this.$ = [
|
|
198
|
-
c[
|
|
199
|
-
c[
|
|
200
|
-
{ type: "addMessage", from: c[
|
|
201
|
-
{ type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[
|
|
202
|
-
{ type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[
|
|
198
|
+
c[h - 5],
|
|
199
|
+
c[h - 1],
|
|
200
|
+
{ 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 },
|
|
201
|
+
{ type: "centralConnection", signalType: y.LINETYPE.CENTRAL_CONNECTION, actor: c[h - 1].actor },
|
|
202
|
+
{ type: "centralConnectionReverse", signalType: y.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: c[h - 5].actor }
|
|
203
203
|
];
|
|
204
204
|
break;
|
|
205
205
|
case 75:
|
|
206
|
-
this.$ = [c[
|
|
206
|
+
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] }];
|
|
207
207
|
break;
|
|
208
208
|
case 76:
|
|
209
209
|
this.$ = {
|
|
210
210
|
type: "addParticipant",
|
|
211
|
-
actor: c[
|
|
212
|
-
config: c[
|
|
211
|
+
actor: c[h - 1],
|
|
212
|
+
config: c[h]
|
|
213
213
|
};
|
|
214
214
|
break;
|
|
215
215
|
case 77:
|
|
216
|
-
this.$ = c[
|
|
216
|
+
this.$ = c[h - 1].trim();
|
|
217
217
|
break;
|
|
218
218
|
case 78:
|
|
219
|
-
this.$ = { type: "addParticipant", actor: c[
|
|
219
|
+
this.$ = { type: "addParticipant", actor: c[h] };
|
|
220
220
|
break;
|
|
221
221
|
case 79:
|
|
222
222
|
this.$ = y.LINETYPE.SOLID_OPEN;
|
|
@@ -297,80 +297,80 @@ var ee = (function() {
|
|
|
297
297
|
this.$ = y.LINETYPE.DOTTED_POINT;
|
|
298
298
|
break;
|
|
299
299
|
case 105:
|
|
300
|
-
this.$ = y.parseMessage(c[
|
|
300
|
+
this.$ = y.parseMessage(c[h].trim().substring(1));
|
|
301
301
|
break;
|
|
302
302
|
}
|
|
303
303
|
}, "anonymous"),
|
|
304
|
-
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:
|
|
304
|
+
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] }],
|
|
305
305
|
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] },
|
|
306
|
-
parseError: /* @__PURE__ */ x(function(
|
|
306
|
+
parseError: /* @__PURE__ */ x(function(S, v) {
|
|
307
307
|
if (v.recoverable)
|
|
308
|
-
this.trace(
|
|
308
|
+
this.trace(S);
|
|
309
309
|
else {
|
|
310
|
-
var
|
|
311
|
-
throw
|
|
310
|
+
var P = new Error(S);
|
|
311
|
+
throw P.hash = v, P;
|
|
312
312
|
}
|
|
313
313
|
}, "parseError"),
|
|
314
|
-
parse: /* @__PURE__ */ x(function(
|
|
315
|
-
var v = this,
|
|
316
|
-
for (var
|
|
317
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
318
|
-
J.setInput(
|
|
319
|
-
var
|
|
320
|
-
c.push(
|
|
321
|
-
var
|
|
314
|
+
parse: /* @__PURE__ */ x(function(S) {
|
|
315
|
+
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: {} };
|
|
316
|
+
for (var Jt in this.yy)
|
|
317
|
+
Object.prototype.hasOwnProperty.call(this.yy, Jt) && (gt.yy[Jt] = this.yy[Jt]);
|
|
318
|
+
J.setInput(S, gt.yy), gt.yy.lexer = J, gt.yy.parser = this, typeof J.yylloc > "u" && (J.yylloc = {});
|
|
319
|
+
var Zt = J.yylloc;
|
|
320
|
+
c.push(Zt);
|
|
321
|
+
var $e = J.options && J.options.ranges;
|
|
322
322
|
typeof gt.yy.parseError == "function" ? this.parseError = gt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
323
|
-
function
|
|
324
|
-
|
|
323
|
+
function je(it) {
|
|
324
|
+
P.length = P.length - 2 * it, z.length = z.length - it, c.length = c.length - it;
|
|
325
325
|
}
|
|
326
|
-
x(
|
|
327
|
-
function
|
|
328
|
-
var
|
|
329
|
-
return
|
|
326
|
+
x(je, "popStack");
|
|
327
|
+
function Ne() {
|
|
328
|
+
var it;
|
|
329
|
+
return it = y.pop() || J.lex() || we, typeof it != "number" && (it instanceof Array && (y = it, it = y.pop()), it = v.symbols_[it] || it), it;
|
|
330
330
|
}
|
|
331
|
-
x(
|
|
332
|
-
for (var
|
|
333
|
-
if (xt =
|
|
334
|
-
var
|
|
335
|
-
|
|
336
|
-
for (
|
|
337
|
-
this.terminals_[
|
|
338
|
-
J.showPosition ?
|
|
331
|
+
x(Ne, "lex");
|
|
332
|
+
for (var rt, xt, ct, Qt, Lt = {}, Mt, Tt, Pe, Bt; ; ) {
|
|
333
|
+
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]) {
|
|
334
|
+
var $t = "";
|
|
335
|
+
Bt = [];
|
|
336
|
+
for (Mt in wt[xt])
|
|
337
|
+
this.terminals_[Mt] && Mt > Ze && Bt.push("'" + this.terminals_[Mt] + "'");
|
|
338
|
+
J.showPosition ? $t = "Parse error on line " + (Ct + 1) + `:
|
|
339
339
|
` + J.showPosition() + `
|
|
340
|
-
Expecting ` +
|
|
340
|
+
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, {
|
|
341
341
|
text: J.match,
|
|
342
|
-
token: this.terminals_[
|
|
342
|
+
token: this.terminals_[rt] || rt,
|
|
343
343
|
line: J.yylineno,
|
|
344
|
-
loc:
|
|
345
|
-
expected:
|
|
344
|
+
loc: Zt,
|
|
345
|
+
expected: Bt
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
if (
|
|
349
|
-
throw new Error("Parse Error: multiple actions possible at state: " + xt + ", token: " +
|
|
350
|
-
switch (
|
|
348
|
+
if (ct[0] instanceof Array && ct.length > 1)
|
|
349
|
+
throw new Error("Parse Error: multiple actions possible at state: " + xt + ", token: " + rt);
|
|
350
|
+
switch (ct[0]) {
|
|
351
351
|
case 1:
|
|
352
|
-
|
|
352
|
+
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;
|
|
353
353
|
break;
|
|
354
354
|
case 2:
|
|
355
|
-
if (Tt = this.productions_[
|
|
355
|
+
if (Tt = this.productions_[ct[1]][1], Lt.$ = z[z.length - Tt], Lt._$ = {
|
|
356
356
|
first_line: c[c.length - (Tt || 1)].first_line,
|
|
357
357
|
last_line: c[c.length - 1].last_line,
|
|
358
358
|
first_column: c[c.length - (Tt || 1)].first_column,
|
|
359
359
|
last_column: c[c.length - 1].last_column
|
|
360
|
-
},
|
|
360
|
+
}, $e && (Lt._$.range = [
|
|
361
361
|
c[c.length - (Tt || 1)].range[0],
|
|
362
362
|
c[c.length - 1].range[1]
|
|
363
|
-
]),
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
363
|
+
]), Qt = this.performAction.apply(Lt, [
|
|
364
|
+
h,
|
|
365
|
+
Se,
|
|
366
|
+
Ct,
|
|
367
367
|
gt.yy,
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
ct[1],
|
|
369
|
+
z,
|
|
370
370
|
c
|
|
371
|
-
].concat(
|
|
372
|
-
return
|
|
373
|
-
Tt && (
|
|
371
|
+
].concat(Qe)), typeof Qt < "u")
|
|
372
|
+
return Qt;
|
|
373
|
+
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);
|
|
374
374
|
break;
|
|
375
375
|
case 3:
|
|
376
376
|
return !0;
|
|
@@ -378,18 +378,18 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
378
378
|
}
|
|
379
379
|
return !0;
|
|
380
380
|
}, "parse")
|
|
381
|
-
},
|
|
381
|
+
}, Je = /* @__PURE__ */ (function() {
|
|
382
382
|
var ut = {
|
|
383
383
|
EOF: 1,
|
|
384
|
-
parseError: /* @__PURE__ */ x(function(v,
|
|
384
|
+
parseError: /* @__PURE__ */ x(function(v, P) {
|
|
385
385
|
if (this.yy.parser)
|
|
386
|
-
this.yy.parser.parseError(v,
|
|
386
|
+
this.yy.parser.parseError(v, P);
|
|
387
387
|
else
|
|
388
388
|
throw new Error(v);
|
|
389
389
|
}, "parseError"),
|
|
390
390
|
// resets the lexer, sets new input
|
|
391
|
-
setInput: /* @__PURE__ */ x(function(
|
|
392
|
-
return this.yy = v || this.yy || {}, this._input =
|
|
391
|
+
setInput: /* @__PURE__ */ x(function(S, v) {
|
|
392
|
+
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 = {
|
|
393
393
|
first_line: 1,
|
|
394
394
|
first_column: 0,
|
|
395
395
|
last_line: 1,
|
|
@@ -398,24 +398,24 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
398
398
|
}, "setInput"),
|
|
399
399
|
// consumes and returns one char from the input
|
|
400
400
|
input: /* @__PURE__ */ x(function() {
|
|
401
|
-
var
|
|
402
|
-
this.yytext +=
|
|
403
|
-
var v =
|
|
404
|
-
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),
|
|
401
|
+
var S = this._input[0];
|
|
402
|
+
this.yytext += S, this.yyleng++, this.offset++, this.match += S, this.matched += S;
|
|
403
|
+
var v = S.match(/(?:\r\n?|\n).*/g);
|
|
404
|
+
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;
|
|
405
405
|
}, "input"),
|
|
406
406
|
// unshifts one char (or a string) into the input
|
|
407
|
-
unput: /* @__PURE__ */ x(function(
|
|
408
|
-
var v =
|
|
409
|
-
this._input =
|
|
407
|
+
unput: /* @__PURE__ */ x(function(S) {
|
|
408
|
+
var v = S.length, P = S.split(/(?:\r\n?|\n)/g);
|
|
409
|
+
this._input = S + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - v), this.offset -= v;
|
|
410
410
|
var y = this.match.split(/(?:\r\n?|\n)/g);
|
|
411
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
412
|
-
var
|
|
411
|
+
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);
|
|
412
|
+
var z = this.yylloc.range;
|
|
413
413
|
return this.yylloc = {
|
|
414
414
|
first_line: this.yylloc.first_line,
|
|
415
415
|
last_line: this.yylineno + 1,
|
|
416
416
|
first_column: this.yylloc.first_column,
|
|
417
|
-
last_column:
|
|
418
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
417
|
+
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
|
|
418
|
+
}, this.options.ranges && (this.yylloc.range = [z[0], z[0] + this.yyleng - v]), this.yyleng = this.yytext.length, this;
|
|
419
419
|
}, "unput"),
|
|
420
420
|
// When called from action, caches matched text and appends it on next action
|
|
421
421
|
more: /* @__PURE__ */ x(function() {
|
|
@@ -435,29 +435,29 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
435
435
|
return this;
|
|
436
436
|
}, "reject"),
|
|
437
437
|
// retain first n characters of the match
|
|
438
|
-
less: /* @__PURE__ */ x(function(
|
|
439
|
-
this.unput(this.match.slice(
|
|
438
|
+
less: /* @__PURE__ */ x(function(S) {
|
|
439
|
+
this.unput(this.match.slice(S));
|
|
440
440
|
}, "less"),
|
|
441
441
|
// displays already matched input, i.e. for error messages
|
|
442
442
|
pastInput: /* @__PURE__ */ x(function() {
|
|
443
|
-
var
|
|
444
|
-
return (
|
|
443
|
+
var S = this.matched.substr(0, this.matched.length - this.match.length);
|
|
444
|
+
return (S.length > 20 ? "..." : "") + S.substr(-20).replace(/\n/g, "");
|
|
445
445
|
}, "pastInput"),
|
|
446
446
|
// displays upcoming input, i.e. for error messages
|
|
447
447
|
upcomingInput: /* @__PURE__ */ x(function() {
|
|
448
|
-
var
|
|
449
|
-
return
|
|
448
|
+
var S = this.match;
|
|
449
|
+
return S.length < 20 && (S += this._input.substr(0, 20 - S.length)), (S.substr(0, 20) + (S.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
450
450
|
}, "upcomingInput"),
|
|
451
451
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
452
452
|
showPosition: /* @__PURE__ */ x(function() {
|
|
453
|
-
var
|
|
454
|
-
return
|
|
453
|
+
var S = this.pastInput(), v = new Array(S.length + 1).join("-");
|
|
454
|
+
return S + this.upcomingInput() + `
|
|
455
455
|
` + v + "^";
|
|
456
456
|
}, "showPosition"),
|
|
457
457
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
458
|
-
test_match: /* @__PURE__ */ x(function(
|
|
459
|
-
var
|
|
460
|
-
if (this.options.backtrack_lexer && (
|
|
458
|
+
test_match: /* @__PURE__ */ x(function(S, v) {
|
|
459
|
+
var P, y, z;
|
|
460
|
+
if (this.options.backtrack_lexer && (z = {
|
|
461
461
|
yylineno: this.yylineno,
|
|
462
462
|
yylloc: {
|
|
463
463
|
first_line: this.yylloc.first_line,
|
|
@@ -476,16 +476,16 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
476
476
|
yy: this.yy,
|
|
477
477
|
conditionStack: this.conditionStack.slice(0),
|
|
478
478
|
done: this.done
|
|
479
|
-
}, this.options.ranges && (
|
|
479
|
+
}, 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 = {
|
|
480
480
|
first_line: this.yylloc.last_line,
|
|
481
481
|
last_line: this.yylineno + 1,
|
|
482
482
|
first_column: this.yylloc.last_column,
|
|
483
|
-
last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column +
|
|
484
|
-
}, this.yytext +=
|
|
485
|
-
return
|
|
483
|
+
last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + S[0].length
|
|
484
|
+
}, 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)
|
|
485
|
+
return P;
|
|
486
486
|
if (this._backtrack) {
|
|
487
|
-
for (var c in
|
|
488
|
-
this[c] =
|
|
487
|
+
for (var c in z)
|
|
488
|
+
this[c] = z[c];
|
|
489
489
|
return !1;
|
|
490
490
|
}
|
|
491
491
|
return !1;
|
|
@@ -495,13 +495,13 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
495
495
|
if (this.done)
|
|
496
496
|
return this.EOF;
|
|
497
497
|
this._input || (this.done = !0);
|
|
498
|
-
var
|
|
498
|
+
var S, v, P, y;
|
|
499
499
|
this._more || (this.yytext = "", this.match = "");
|
|
500
|
-
for (var
|
|
501
|
-
if (
|
|
502
|
-
if (v =
|
|
503
|
-
if (
|
|
504
|
-
return
|
|
500
|
+
for (var z = this._currentRules(), c = 0; c < z.length; c++)
|
|
501
|
+
if (P = this._input.match(this.rules[z[c]]), P && (!v || P[0].length > v[0].length)) {
|
|
502
|
+
if (v = P, y = c, this.options.backtrack_lexer) {
|
|
503
|
+
if (S = this.test_match(P, z[c]), S !== !1)
|
|
504
|
+
return S;
|
|
505
505
|
if (this._backtrack) {
|
|
506
506
|
v = !1;
|
|
507
507
|
continue;
|
|
@@ -510,7 +510,7 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
510
510
|
} else if (!this.options.flex)
|
|
511
511
|
break;
|
|
512
512
|
}
|
|
513
|
-
return v ? (
|
|
513
|
+
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.
|
|
514
514
|
` + this.showPosition(), {
|
|
515
515
|
text: "",
|
|
516
516
|
token: null,
|
|
@@ -548,7 +548,7 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
548
548
|
return this.conditionStack.length;
|
|
549
549
|
}, "stateStackSize"),
|
|
550
550
|
options: { "case-insensitive": !0 },
|
|
551
|
-
performAction: /* @__PURE__ */ x(function(v,
|
|
551
|
+
performAction: /* @__PURE__ */ x(function(v, P, y, z) {
|
|
552
552
|
switch (y) {
|
|
553
553
|
case 0:
|
|
554
554
|
return 5;
|
|
@@ -573,15 +573,15 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
573
573
|
case 10:
|
|
574
574
|
return this.popState(), this.popState(), 77;
|
|
575
575
|
case 11:
|
|
576
|
-
return
|
|
576
|
+
return P.yytext = P.yytext.trim(), 73;
|
|
577
577
|
case 12:
|
|
578
|
-
return
|
|
578
|
+
return P.yytext = P.yytext.trim(), this.begin("ALIAS"), 73;
|
|
579
579
|
case 13:
|
|
580
|
-
return
|
|
580
|
+
return P.yytext = P.yytext.trim(), this.popState(), 73;
|
|
581
581
|
case 14:
|
|
582
582
|
return this.popState(), 10;
|
|
583
583
|
case 15:
|
|
584
|
-
return
|
|
584
|
+
return P.yytext = P.yytext.trim(), this.popState(), 10;
|
|
585
585
|
case 16:
|
|
586
586
|
return this.begin("LINE"), 15;
|
|
587
587
|
case 17:
|
|
@@ -673,7 +673,7 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
673
673
|
case 59:
|
|
674
674
|
return 5;
|
|
675
675
|
case 60:
|
|
676
|
-
return
|
|
676
|
+
return P.yytext = P.yytext.trim(), 73;
|
|
677
677
|
case 61:
|
|
678
678
|
return 80;
|
|
679
679
|
case 62:
|
|
@@ -747,14 +747,14 @@ Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : jt
|
|
|
747
747
|
};
|
|
748
748
|
return ut;
|
|
749
749
|
})();
|
|
750
|
-
|
|
751
|
-
function
|
|
750
|
+
Xt.lexer = Je;
|
|
751
|
+
function vt() {
|
|
752
752
|
this.yy = {};
|
|
753
753
|
}
|
|
754
|
-
return x(
|
|
754
|
+
return x(vt, "Parser"), vt.prototype = Xt, Xt.Parser = vt, new vt();
|
|
755
755
|
})();
|
|
756
|
-
|
|
757
|
-
var
|
|
756
|
+
te.parser = te;
|
|
757
|
+
var fr = te, _r = {
|
|
758
758
|
SOLID: 0,
|
|
759
759
|
DOTTED: 1,
|
|
760
760
|
NOTE: 2,
|
|
@@ -806,21 +806,21 @@ var _r = ee, gr = {
|
|
|
806
806
|
CENTRAL_CONNECTION: 59,
|
|
807
807
|
CENTRAL_CONNECTION_REVERSE: 60,
|
|
808
808
|
CENTRAL_CONNECTION_DUAL: 61
|
|
809
|
-
},
|
|
809
|
+
}, gr = {
|
|
810
810
|
FILLED: 0,
|
|
811
811
|
OPEN: 1
|
|
812
|
-
},
|
|
812
|
+
}, xr = {
|
|
813
813
|
LEFTOF: 0,
|
|
814
814
|
RIGHTOF: 1,
|
|
815
815
|
OVER: 2
|
|
816
|
-
},
|
|
816
|
+
}, Wt = {
|
|
817
817
|
ACTOR: "actor",
|
|
818
818
|
CONTROL: "control",
|
|
819
819
|
DATABASE: "database",
|
|
820
820
|
ENTITY: "entity"
|
|
821
|
-
},
|
|
821
|
+
}, Ir = class {
|
|
822
822
|
constructor() {
|
|
823
|
-
this.state = new
|
|
823
|
+
this.state = new tr(() => ({
|
|
824
824
|
prevActor: void 0,
|
|
825
825
|
actors: /* @__PURE__ */ new Map(),
|
|
826
826
|
createdActors: /* @__PURE__ */ new Map(),
|
|
@@ -833,98 +833,101 @@ var _r = ee, gr = {
|
|
|
833
833
|
currentBox: void 0,
|
|
834
834
|
lastCreated: void 0,
|
|
835
835
|
lastDestroyed: void 0
|
|
836
|
-
})), this.setAccTitle =
|
|
836
|
+
})), 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;
|
|
837
837
|
}
|
|
838
|
-
|
|
838
|
+
static {
|
|
839
|
+
x(this, "SequenceDB");
|
|
840
|
+
}
|
|
841
|
+
addBox(e) {
|
|
839
842
|
this.state.records.boxes.push({
|
|
840
|
-
name:
|
|
841
|
-
wrap:
|
|
842
|
-
fill:
|
|
843
|
+
name: e.text,
|
|
844
|
+
wrap: e.wrap ?? this.autoWrap(),
|
|
845
|
+
fill: e.color,
|
|
843
846
|
actorKeys: []
|
|
844
847
|
}), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
|
|
845
848
|
}
|
|
846
|
-
addActor(t, a, r, i
|
|
847
|
-
let
|
|
848
|
-
if (
|
|
849
|
-
let
|
|
850
|
-
|
|
851
|
-
`) ?
|
|
852
|
-
` :
|
|
853
|
-
` +
|
|
854
|
-
}`,
|
|
849
|
+
addActor(e, t, a, r, i) {
|
|
850
|
+
let n = this.state.records.currentBox, s;
|
|
851
|
+
if (i !== void 0) {
|
|
852
|
+
let u;
|
|
853
|
+
i.includes(`
|
|
854
|
+
`) ? u = i + `
|
|
855
|
+
` : u = `{
|
|
856
|
+
` + i + `
|
|
857
|
+
}`, s = lr(u, { schema: hr });
|
|
855
858
|
}
|
|
856
|
-
|
|
857
|
-
const
|
|
858
|
-
if (
|
|
859
|
-
if (this.state.records.currentBox &&
|
|
859
|
+
r = s?.type ?? r, s?.alias && (!a || a.text === t) && (a = { text: s.alias, wrap: a?.wrap, type: r });
|
|
860
|
+
const o = this.state.records.actors.get(e);
|
|
861
|
+
if (o) {
|
|
862
|
+
if (this.state.records.currentBox && o.box && this.state.records.currentBox !== o.box)
|
|
860
863
|
throw new Error(
|
|
861
|
-
`A same participant should only be defined in one Box: ${
|
|
864
|
+
`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.`
|
|
862
865
|
);
|
|
863
|
-
if (
|
|
866
|
+
if (n = o.box ? o.box : this.state.records.currentBox, o.box = n, o && t === o.name && a == null)
|
|
864
867
|
return;
|
|
865
868
|
}
|
|
866
|
-
if (
|
|
867
|
-
box:
|
|
868
|
-
name:
|
|
869
|
-
description:
|
|
870
|
-
wrap:
|
|
869
|
+
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, {
|
|
870
|
+
box: n,
|
|
871
|
+
name: t,
|
|
872
|
+
description: a.text,
|
|
873
|
+
wrap: a.wrap ?? this.autoWrap(),
|
|
871
874
|
prevActor: this.state.records.prevActor,
|
|
872
875
|
links: {},
|
|
873
876
|
properties: {},
|
|
874
877
|
actorCnt: null,
|
|
875
878
|
rectData: null,
|
|
876
|
-
type:
|
|
879
|
+
type: r ?? "participant"
|
|
877
880
|
}), this.state.records.prevActor) {
|
|
878
|
-
const
|
|
879
|
-
|
|
881
|
+
const u = this.state.records.actors.get(this.state.records.prevActor);
|
|
882
|
+
u && (u.nextActor = e);
|
|
880
883
|
}
|
|
881
|
-
this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(
|
|
884
|
+
this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(e), this.state.records.prevActor = e;
|
|
882
885
|
}
|
|
883
|
-
activationCount(
|
|
884
|
-
let
|
|
885
|
-
if (!
|
|
886
|
+
activationCount(e) {
|
|
887
|
+
let t, a = 0;
|
|
888
|
+
if (!e)
|
|
886
889
|
return 0;
|
|
887
|
-
for (
|
|
888
|
-
this.state.records.messages[
|
|
889
|
-
return
|
|
890
|
+
for (t = 0; t < this.state.records.messages.length; t++)
|
|
891
|
+
this.state.records.messages[t].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[t].from === e && a++, this.state.records.messages[t].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[t].from === e && a--;
|
|
892
|
+
return a;
|
|
890
893
|
}
|
|
891
|
-
addMessage(t, a, r
|
|
894
|
+
addMessage(e, t, a, r) {
|
|
892
895
|
this.state.records.messages.push({
|
|
893
896
|
id: this.state.records.messages.length.toString(),
|
|
894
|
-
from:
|
|
895
|
-
to:
|
|
896
|
-
message:
|
|
897
|
-
wrap:
|
|
898
|
-
answer:
|
|
897
|
+
from: e,
|
|
898
|
+
to: t,
|
|
899
|
+
message: a.text,
|
|
900
|
+
wrap: a.wrap ?? this.autoWrap(),
|
|
901
|
+
answer: r
|
|
899
902
|
});
|
|
900
903
|
}
|
|
901
|
-
addSignal(t, a, r, i
|
|
902
|
-
if (
|
|
903
|
-
const
|
|
904
|
-
throw
|
|
904
|
+
addSignal(e, t, a, r, i = !1, n) {
|
|
905
|
+
if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
|
|
906
|
+
const o = new Error("Trying to inactivate an inactive participant (" + e + ")");
|
|
907
|
+
throw o.hash = {
|
|
905
908
|
text: "->>-",
|
|
906
909
|
token: "->>-",
|
|
907
910
|
line: "1",
|
|
908
911
|
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
909
912
|
expected: ["'ACTIVE_PARTICIPANT'"]
|
|
910
|
-
},
|
|
913
|
+
}, o;
|
|
911
914
|
}
|
|
912
915
|
return this.state.records.messages.push({
|
|
913
916
|
id: this.state.records.messages.length.toString(),
|
|
914
|
-
from:
|
|
915
|
-
to:
|
|
916
|
-
message:
|
|
917
|
-
wrap:
|
|
918
|
-
type:
|
|
919
|
-
activate:
|
|
920
|
-
centralConnection:
|
|
917
|
+
from: e,
|
|
918
|
+
to: t,
|
|
919
|
+
message: a?.text ?? "",
|
|
920
|
+
wrap: a?.wrap ?? this.autoWrap(),
|
|
921
|
+
type: r,
|
|
922
|
+
activate: i,
|
|
923
|
+
centralConnection: n ?? 0
|
|
921
924
|
}), !0;
|
|
922
925
|
}
|
|
923
926
|
hasAtLeastOneBox() {
|
|
924
927
|
return this.state.records.boxes.length > 0;
|
|
925
928
|
}
|
|
926
929
|
hasAtLeastOneBoxWithTitle() {
|
|
927
|
-
return this.state.records.boxes.some((
|
|
930
|
+
return this.state.records.boxes.some((e) => e.name);
|
|
928
931
|
}
|
|
929
932
|
getMessages() {
|
|
930
933
|
return this.state.records.messages;
|
|
@@ -941,8 +944,8 @@ var _r = ee, gr = {
|
|
|
941
944
|
getDestroyedActors() {
|
|
942
945
|
return this.state.records.destroyedActors;
|
|
943
946
|
}
|
|
944
|
-
getActor(
|
|
945
|
-
return this.state.records.actors.get(
|
|
947
|
+
getActor(e) {
|
|
948
|
+
return this.state.records.actors.get(e);
|
|
946
949
|
}
|
|
947
950
|
getActorKeys() {
|
|
948
951
|
return [...this.state.records.actors.keys()];
|
|
@@ -956,281 +959,280 @@ var _r = ee, gr = {
|
|
|
956
959
|
showSequenceNumbers() {
|
|
957
960
|
return this.state.records.sequenceNumbersEnabled;
|
|
958
961
|
}
|
|
959
|
-
setWrap(
|
|
960
|
-
this.state.records.wrapEnabled =
|
|
962
|
+
setWrap(e) {
|
|
963
|
+
this.state.records.wrapEnabled = e;
|
|
961
964
|
}
|
|
962
|
-
extractWrap(
|
|
963
|
-
if (
|
|
965
|
+
extractWrap(e) {
|
|
966
|
+
if (e === void 0)
|
|
964
967
|
return {};
|
|
965
|
-
|
|
966
|
-
const
|
|
967
|
-
return { cleanedText: (
|
|
968
|
+
e = e.trim();
|
|
969
|
+
const t = /^:?wrap:/.exec(e) !== null ? !0 : /^:?nowrap:/.exec(e) !== null ? !1 : void 0;
|
|
970
|
+
return { cleanedText: (t === void 0 ? e : e.replace(/^:?(?:no)?wrap:/, "")).trim(), wrap: t };
|
|
968
971
|
}
|
|
969
972
|
autoWrap() {
|
|
970
|
-
|
|
971
|
-
return this.state.records.wrapEnabled !== void 0 ? this.state.records.wrapEnabled : ((t = j().sequence) == null ? void 0 : t.wrap) ?? !1;
|
|
973
|
+
return this.state.records.wrapEnabled !== void 0 ? this.state.records.wrapEnabled : $().sequence?.wrap ?? !1;
|
|
972
974
|
}
|
|
973
975
|
clear() {
|
|
974
|
-
this.state.reset(),
|
|
976
|
+
this.state.reset(), dr();
|
|
975
977
|
}
|
|
976
|
-
parseMessage(
|
|
977
|
-
const
|
|
978
|
-
text:
|
|
979
|
-
wrap:
|
|
978
|
+
parseMessage(e) {
|
|
979
|
+
const t = e.trim(), { wrap: a, cleanedText: r } = this.extractWrap(t), i = {
|
|
980
|
+
text: r,
|
|
981
|
+
wrap: a
|
|
980
982
|
};
|
|
981
|
-
return
|
|
983
|
+
return at.debug(`parseMessage: ${JSON.stringify(i)}`), i;
|
|
982
984
|
}
|
|
983
985
|
// We expect the box statement to be color first then description
|
|
984
986
|
// The color can be rgb,rgba,hsl,hsla, or css code names #hex codes are not supported for now because of the way the char # is handled
|
|
985
987
|
// We extract first segment as color, the rest of the line is considered as text
|
|
986
|
-
parseBoxData(
|
|
987
|
-
const
|
|
988
|
-
let
|
|
989
|
-
if (window
|
|
990
|
-
window.CSS.supports("color",
|
|
988
|
+
parseBoxData(e) {
|
|
989
|
+
const t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e);
|
|
990
|
+
let a = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
|
|
991
|
+
if (window?.CSS)
|
|
992
|
+
window.CSS.supports("color", a) || (a = "transparent", r = e.trim());
|
|
991
993
|
else {
|
|
992
|
-
const
|
|
993
|
-
|
|
994
|
+
const s = new Option().style;
|
|
995
|
+
s.color = a, s.color !== a && (a = "transparent", r = e.trim());
|
|
994
996
|
}
|
|
995
|
-
const { wrap:
|
|
997
|
+
const { wrap: i, cleanedText: n } = this.extractWrap(r);
|
|
996
998
|
return {
|
|
997
|
-
text:
|
|
998
|
-
color:
|
|
999
|
-
wrap:
|
|
999
|
+
text: n ? Yt(n, $()) : void 0,
|
|
1000
|
+
color: a,
|
|
1001
|
+
wrap: i
|
|
1000
1002
|
};
|
|
1001
1003
|
}
|
|
1002
|
-
addNote(t, a
|
|
1003
|
-
const
|
|
1004
|
-
actor:
|
|
1005
|
-
placement:
|
|
1006
|
-
message:
|
|
1007
|
-
wrap:
|
|
1008
|
-
},
|
|
1009
|
-
this.state.records.notes.push(
|
|
1004
|
+
addNote(e, t, a) {
|
|
1005
|
+
const r = {
|
|
1006
|
+
actor: e,
|
|
1007
|
+
placement: t,
|
|
1008
|
+
message: a.text,
|
|
1009
|
+
wrap: a.wrap ?? this.autoWrap()
|
|
1010
|
+
}, i = [].concat(e, e);
|
|
1011
|
+
this.state.records.notes.push(r), this.state.records.messages.push({
|
|
1010
1012
|
id: this.state.records.messages.length.toString(),
|
|
1011
|
-
from:
|
|
1012
|
-
to:
|
|
1013
|
-
message:
|
|
1014
|
-
wrap:
|
|
1013
|
+
from: i[0],
|
|
1014
|
+
to: i[1],
|
|
1015
|
+
message: a.text,
|
|
1016
|
+
wrap: a.wrap ?? this.autoWrap(),
|
|
1015
1017
|
type: this.LINETYPE.NOTE,
|
|
1016
|
-
placement:
|
|
1018
|
+
placement: t
|
|
1017
1019
|
});
|
|
1018
1020
|
}
|
|
1019
|
-
addLinks(
|
|
1020
|
-
const
|
|
1021
|
+
addLinks(e, t) {
|
|
1022
|
+
const a = this.getActor(e);
|
|
1021
1023
|
try {
|
|
1022
|
-
let
|
|
1023
|
-
|
|
1024
|
-
const
|
|
1025
|
-
this.insertLinks(
|
|
1026
|
-
} catch (
|
|
1027
|
-
|
|
1024
|
+
let r = Yt(t.text, $());
|
|
1025
|
+
r = r.replace(/=/g, "="), r = r.replace(/&/g, "&");
|
|
1026
|
+
const i = JSON.parse(r);
|
|
1027
|
+
this.insertLinks(a, i);
|
|
1028
|
+
} catch (r) {
|
|
1029
|
+
at.error("error while parsing actor link text", r);
|
|
1028
1030
|
}
|
|
1029
1031
|
}
|
|
1030
|
-
addALink(
|
|
1031
|
-
const
|
|
1032
|
+
addALink(e, t) {
|
|
1033
|
+
const a = this.getActor(e);
|
|
1032
1034
|
try {
|
|
1033
|
-
const
|
|
1034
|
-
let
|
|
1035
|
-
const
|
|
1036
|
-
|
|
1037
|
-
const
|
|
1038
|
-
|
|
1039
|
-
} catch (
|
|
1040
|
-
|
|
1035
|
+
const r = {};
|
|
1036
|
+
let i = Yt(t.text, $());
|
|
1037
|
+
const n = i.indexOf("@");
|
|
1038
|
+
i = i.replace(/=/g, "="), i = i.replace(/&/g, "&");
|
|
1039
|
+
const s = i.slice(0, n - 1).trim(), o = i.slice(n + 1).trim();
|
|
1040
|
+
r[s] = o, this.insertLinks(a, r);
|
|
1041
|
+
} catch (r) {
|
|
1042
|
+
at.error("error while parsing actor link text", r);
|
|
1041
1043
|
}
|
|
1042
1044
|
}
|
|
1043
|
-
insertLinks(
|
|
1044
|
-
if (
|
|
1045
|
-
|
|
1045
|
+
insertLinks(e, t) {
|
|
1046
|
+
if (e.links == null)
|
|
1047
|
+
e.links = t;
|
|
1046
1048
|
else
|
|
1047
|
-
for (const
|
|
1048
|
-
|
|
1049
|
+
for (const a in t)
|
|
1050
|
+
e.links[a] = t[a];
|
|
1049
1051
|
}
|
|
1050
|
-
addProperties(
|
|
1051
|
-
const
|
|
1052
|
+
addProperties(e, t) {
|
|
1053
|
+
const a = this.getActor(e);
|
|
1052
1054
|
try {
|
|
1053
|
-
const
|
|
1054
|
-
this.insertProperties(
|
|
1055
|
-
} catch (
|
|
1056
|
-
|
|
1055
|
+
const r = Yt(t.text, $()), i = JSON.parse(r);
|
|
1056
|
+
this.insertProperties(a, i);
|
|
1057
|
+
} catch (r) {
|
|
1058
|
+
at.error("error while parsing actor properties text", r);
|
|
1057
1059
|
}
|
|
1058
1060
|
}
|
|
1059
|
-
insertProperties(
|
|
1060
|
-
if (
|
|
1061
|
-
|
|
1061
|
+
insertProperties(e, t) {
|
|
1062
|
+
if (e.properties == null)
|
|
1063
|
+
e.properties = t;
|
|
1062
1064
|
else
|
|
1063
|
-
for (const
|
|
1064
|
-
|
|
1065
|
+
for (const a in t)
|
|
1066
|
+
e.properties[a] = t[a];
|
|
1065
1067
|
}
|
|
1066
1068
|
boxEnd() {
|
|
1067
1069
|
this.state.records.currentBox = void 0;
|
|
1068
1070
|
}
|
|
1069
|
-
addDetails(
|
|
1070
|
-
const
|
|
1071
|
+
addDetails(e, t) {
|
|
1072
|
+
const a = this.getActor(e), r = document.getElementById(t.text);
|
|
1071
1073
|
try {
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1074
|
-
} catch (
|
|
1075
|
-
|
|
1074
|
+
const i = r.innerHTML, n = JSON.parse(i);
|
|
1075
|
+
n.properties && this.insertProperties(a, n.properties), n.links && this.insertLinks(a, n.links);
|
|
1076
|
+
} catch (i) {
|
|
1077
|
+
at.error("error while parsing actor details text", i);
|
|
1076
1078
|
}
|
|
1077
1079
|
}
|
|
1078
|
-
getActorProperty(
|
|
1079
|
-
if (
|
|
1080
|
-
return
|
|
1080
|
+
getActorProperty(e, t) {
|
|
1081
|
+
if (e?.properties !== void 0)
|
|
1082
|
+
return e.properties[t];
|
|
1081
1083
|
}
|
|
1082
1084
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
|
|
1083
|
-
apply(
|
|
1084
|
-
if (Array.isArray(
|
|
1085
|
-
|
|
1086
|
-
this.apply(
|
|
1085
|
+
apply(e) {
|
|
1086
|
+
if (Array.isArray(e))
|
|
1087
|
+
e.forEach((t) => {
|
|
1088
|
+
this.apply(t);
|
|
1087
1089
|
});
|
|
1088
1090
|
else
|
|
1089
|
-
switch (
|
|
1091
|
+
switch (e.type) {
|
|
1090
1092
|
case "sequenceIndex":
|
|
1091
1093
|
this.state.records.messages.push({
|
|
1092
1094
|
id: this.state.records.messages.length.toString(),
|
|
1093
1095
|
from: void 0,
|
|
1094
1096
|
to: void 0,
|
|
1095
1097
|
message: {
|
|
1096
|
-
start:
|
|
1097
|
-
step:
|
|
1098
|
-
visible:
|
|
1098
|
+
start: e.sequenceIndex,
|
|
1099
|
+
step: e.sequenceIndexStep,
|
|
1100
|
+
visible: e.sequenceVisible
|
|
1099
1101
|
},
|
|
1100
1102
|
wrap: !1,
|
|
1101
|
-
type:
|
|
1103
|
+
type: e.signalType
|
|
1102
1104
|
});
|
|
1103
1105
|
break;
|
|
1104
1106
|
case "addParticipant":
|
|
1105
|
-
this.addActor(
|
|
1107
|
+
this.addActor(e.actor, e.actor, e.description, e.draw, e.config);
|
|
1106
1108
|
break;
|
|
1107
1109
|
case "createParticipant":
|
|
1108
|
-
if (this.state.records.actors.has(
|
|
1110
|
+
if (this.state.records.actors.has(e.actor))
|
|
1109
1111
|
throw new Error(
|
|
1110
1112
|
"It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior"
|
|
1111
1113
|
);
|
|
1112
|
-
this.state.records.lastCreated =
|
|
1114
|
+
this.state.records.lastCreated = e.actor, this.addActor(e.actor, e.actor, e.description, e.draw, e.config), this.state.records.createdActors.set(e.actor, this.state.records.messages.length);
|
|
1113
1115
|
break;
|
|
1114
1116
|
case "destroyParticipant":
|
|
1115
|
-
this.state.records.lastDestroyed =
|
|
1117
|
+
this.state.records.lastDestroyed = e.actor, this.state.records.destroyedActors.set(e.actor, this.state.records.messages.length);
|
|
1116
1118
|
break;
|
|
1117
1119
|
case "activeStart":
|
|
1118
|
-
this.addSignal(
|
|
1120
|
+
this.addSignal(e.actor, void 0, void 0, e.signalType);
|
|
1119
1121
|
break;
|
|
1120
1122
|
case "centralConnection":
|
|
1121
|
-
this.addSignal(
|
|
1123
|
+
this.addSignal(e.actor, void 0, void 0, e.signalType);
|
|
1122
1124
|
break;
|
|
1123
1125
|
case "centralConnectionReverse":
|
|
1124
|
-
this.addSignal(
|
|
1126
|
+
this.addSignal(e.actor, void 0, void 0, e.signalType);
|
|
1125
1127
|
break;
|
|
1126
1128
|
case "activeEnd":
|
|
1127
|
-
this.addSignal(
|
|
1129
|
+
this.addSignal(e.actor, void 0, void 0, e.signalType);
|
|
1128
1130
|
break;
|
|
1129
1131
|
case "addNote":
|
|
1130
|
-
this.addNote(
|
|
1132
|
+
this.addNote(e.actor, e.placement, e.text);
|
|
1131
1133
|
break;
|
|
1132
1134
|
case "addLinks":
|
|
1133
|
-
this.addLinks(
|
|
1135
|
+
this.addLinks(e.actor, e.text);
|
|
1134
1136
|
break;
|
|
1135
1137
|
case "addALink":
|
|
1136
|
-
this.addALink(
|
|
1138
|
+
this.addALink(e.actor, e.text);
|
|
1137
1139
|
break;
|
|
1138
1140
|
case "addProperties":
|
|
1139
|
-
this.addProperties(
|
|
1141
|
+
this.addProperties(e.actor, e.text);
|
|
1140
1142
|
break;
|
|
1141
1143
|
case "addDetails":
|
|
1142
|
-
this.addDetails(
|
|
1144
|
+
this.addDetails(e.actor, e.text);
|
|
1143
1145
|
break;
|
|
1144
1146
|
case "addMessage":
|
|
1145
1147
|
if (this.state.records.lastCreated) {
|
|
1146
|
-
if (
|
|
1148
|
+
if (e.to !== this.state.records.lastCreated)
|
|
1147
1149
|
throw new Error(
|
|
1148
1150
|
"The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
|
|
1149
1151
|
);
|
|
1150
1152
|
this.state.records.lastCreated = void 0;
|
|
1151
1153
|
} else if (this.state.records.lastDestroyed) {
|
|
1152
|
-
if (
|
|
1154
|
+
if (e.to !== this.state.records.lastDestroyed && e.from !== this.state.records.lastDestroyed)
|
|
1153
1155
|
throw new Error(
|
|
1154
1156
|
"The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
|
|
1155
1157
|
);
|
|
1156
1158
|
this.state.records.lastDestroyed = void 0;
|
|
1157
1159
|
}
|
|
1158
1160
|
this.addSignal(
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1161
|
+
e.from,
|
|
1162
|
+
e.to,
|
|
1163
|
+
e.msg,
|
|
1164
|
+
e.signalType,
|
|
1165
|
+
e.activate,
|
|
1166
|
+
e.centralConnection
|
|
1165
1167
|
);
|
|
1166
1168
|
break;
|
|
1167
1169
|
case "boxStart":
|
|
1168
|
-
this.addBox(
|
|
1170
|
+
this.addBox(e.boxData);
|
|
1169
1171
|
break;
|
|
1170
1172
|
case "boxEnd":
|
|
1171
1173
|
this.boxEnd();
|
|
1172
1174
|
break;
|
|
1173
1175
|
case "loopStart":
|
|
1174
|
-
this.addSignal(void 0, void 0,
|
|
1176
|
+
this.addSignal(void 0, void 0, e.loopText, e.signalType);
|
|
1175
1177
|
break;
|
|
1176
1178
|
case "loopEnd":
|
|
1177
|
-
this.addSignal(void 0, void 0, void 0,
|
|
1179
|
+
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
1178
1180
|
break;
|
|
1179
1181
|
case "rectStart":
|
|
1180
|
-
this.addSignal(void 0, void 0,
|
|
1182
|
+
this.addSignal(void 0, void 0, e.color, e.signalType);
|
|
1181
1183
|
break;
|
|
1182
1184
|
case "rectEnd":
|
|
1183
|
-
this.addSignal(void 0, void 0, void 0,
|
|
1185
|
+
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
1184
1186
|
break;
|
|
1185
1187
|
case "optStart":
|
|
1186
|
-
this.addSignal(void 0, void 0,
|
|
1188
|
+
this.addSignal(void 0, void 0, e.optText, e.signalType);
|
|
1187
1189
|
break;
|
|
1188
1190
|
case "optEnd":
|
|
1189
|
-
this.addSignal(void 0, void 0, void 0,
|
|
1191
|
+
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
1190
1192
|
break;
|
|
1191
1193
|
case "altStart":
|
|
1192
|
-
this.addSignal(void 0, void 0,
|
|
1194
|
+
this.addSignal(void 0, void 0, e.altText, e.signalType);
|
|
1193
1195
|
break;
|
|
1194
1196
|
case "else":
|
|
1195
|
-
this.addSignal(void 0, void 0,
|
|
1197
|
+
this.addSignal(void 0, void 0, e.altText, e.signalType);
|
|
1196
1198
|
break;
|
|
1197
1199
|
case "altEnd":
|
|
1198
|
-
this.addSignal(void 0, void 0, void 0,
|
|
1200
|
+
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
1199
1201
|
break;
|
|
1200
1202
|
case "setAccTitle":
|
|
1201
|
-
|
|
1203
|
+
ke(e.text);
|
|
1202
1204
|
break;
|
|
1203
1205
|
case "parStart":
|
|
1204
|
-
this.addSignal(void 0, void 0,
|
|
1206
|
+
this.addSignal(void 0, void 0, e.parText, e.signalType);
|
|
1205
1207
|
break;
|
|
1206
1208
|
case "and":
|
|
1207
|
-
this.addSignal(void 0, void 0,
|
|
1209
|
+
this.addSignal(void 0, void 0, e.parText, e.signalType);
|
|
1208
1210
|
break;
|
|
1209
1211
|
case "parEnd":
|
|
1210
|
-
this.addSignal(void 0, void 0, void 0,
|
|
1212
|
+
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
1211
1213
|
break;
|
|
1212
1214
|
case "criticalStart":
|
|
1213
|
-
this.addSignal(void 0, void 0,
|
|
1215
|
+
this.addSignal(void 0, void 0, e.criticalText, e.signalType);
|
|
1214
1216
|
break;
|
|
1215
1217
|
case "option":
|
|
1216
|
-
this.addSignal(void 0, void 0,
|
|
1218
|
+
this.addSignal(void 0, void 0, e.optionText, e.signalType);
|
|
1217
1219
|
break;
|
|
1218
1220
|
case "criticalEnd":
|
|
1219
|
-
this.addSignal(void 0, void 0, void 0,
|
|
1221
|
+
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
1220
1222
|
break;
|
|
1221
1223
|
case "breakStart":
|
|
1222
|
-
this.addSignal(void 0, void 0,
|
|
1224
|
+
this.addSignal(void 0, void 0, e.breakText, e.signalType);
|
|
1223
1225
|
break;
|
|
1224
1226
|
case "breakEnd":
|
|
1225
|
-
this.addSignal(void 0, void 0, void 0,
|
|
1227
|
+
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
1226
1228
|
break;
|
|
1227
1229
|
}
|
|
1228
1230
|
}
|
|
1229
1231
|
getConfig() {
|
|
1230
|
-
return
|
|
1232
|
+
return $().sequence;
|
|
1231
1233
|
}
|
|
1232
|
-
},
|
|
1233
|
-
const t = e.dropShadow ?? "none", { look: a } =
|
|
1234
|
+
}, yr = /* @__PURE__ */ x((e) => {
|
|
1235
|
+
const t = e.dropShadow ?? "none", { look: a } = $();
|
|
1234
1236
|
return `.actor {
|
|
1235
1237
|
stroke: ${e.actorBorder};
|
|
1236
1238
|
fill: ${e.actorBkg};
|
|
@@ -1371,26 +1373,26 @@ var _r = ee, gr = {
|
|
|
1371
1373
|
stroke: ${e.nodeBorder};
|
|
1372
1374
|
}
|
|
1373
1375
|
`;
|
|
1374
|
-
}, "getStyles"),
|
|
1375
|
-
const a =
|
|
1376
|
-
return
|
|
1377
|
-
}, "drawRect"),
|
|
1376
|
+
}, "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) {
|
|
1377
|
+
const a = ur(e, t);
|
|
1378
|
+
return Kt().look === "neo" && a.attr("data-look", "neo"), a;
|
|
1379
|
+
}, "drawRect"), Or = /* @__PURE__ */ x(function(e, t, a, r, i) {
|
|
1378
1380
|
if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0)
|
|
1379
1381
|
return { height: 0, width: 0 };
|
|
1380
1382
|
const n = t.links, s = t.actorCnt, o = t.rectData;
|
|
1381
|
-
var
|
|
1382
|
-
i && (
|
|
1383
|
-
const
|
|
1384
|
-
|
|
1383
|
+
var u = "none";
|
|
1384
|
+
i && (u = "block !important");
|
|
1385
|
+
const d = e.append("g");
|
|
1386
|
+
d.attr("id", "actor" + s + "_popup"), d.attr("class", "actorPopupMenu"), d.attr("display", u);
|
|
1385
1387
|
var p = "";
|
|
1386
1388
|
o.class !== void 0 && (p = " " + o.class);
|
|
1387
1389
|
let _ = o.width > a ? o.width : a;
|
|
1388
|
-
const
|
|
1389
|
-
if (
|
|
1390
|
+
const E = d.append("rect");
|
|
1391
|
+
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) {
|
|
1390
1392
|
var O = 20;
|
|
1391
1393
|
for (let f in n) {
|
|
1392
|
-
var T =
|
|
1393
|
-
T.attr("xlink:href", g), T.attr("target", "_blank"),
|
|
1394
|
+
var T = d.append("a"), g = Ce.sanitizeUrl(n[f]);
|
|
1395
|
+
T.attr("xlink:href", g), T.attr("target", "_blank"), Ur(r)(
|
|
1394
1396
|
f,
|
|
1395
1397
|
T,
|
|
1396
1398
|
o.x + 10,
|
|
@@ -1402,43 +1404,43 @@ var _r = ee, gr = {
|
|
|
1402
1404
|
), O += 30;
|
|
1403
1405
|
}
|
|
1404
1406
|
}
|
|
1405
|
-
return
|
|
1406
|
-
}, "drawPopup"),
|
|
1407
|
+
return E.attr("height", O), { height: o.height + O, width: _ };
|
|
1408
|
+
}, "drawPopup"), Ht = /* @__PURE__ */ x(function(e) {
|
|
1407
1409
|
return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
1408
|
-
}, "popupMenuToggle"),
|
|
1410
|
+
}, "popupMenuToggle"), Ft = /* @__PURE__ */ x(async function(e, t, a = null) {
|
|
1409
1411
|
let r = e.append("foreignObject");
|
|
1410
|
-
const i = await
|
|
1412
|
+
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();
|
|
1411
1413
|
if (r.attr("height", Math.round(s.height)).attr("width", Math.round(s.width)), t.class === "noteText") {
|
|
1412
1414
|
const o = e.node().firstChild;
|
|
1413
1415
|
o.setAttribute("height", s.height + 2 * t.textMargin);
|
|
1414
|
-
const
|
|
1415
|
-
r.attr("x", Math.round(
|
|
1416
|
+
const u = o.getBBox();
|
|
1417
|
+
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));
|
|
1416
1418
|
} else if (a) {
|
|
1417
|
-
let { startx: o, stopx:
|
|
1418
|
-
if (o >
|
|
1419
|
+
let { startx: o, stopx: u, starty: d } = a;
|
|
1420
|
+
if (o > u) {
|
|
1419
1421
|
const p = o;
|
|
1420
|
-
o =
|
|
1422
|
+
o = u, u = p;
|
|
1421
1423
|
}
|
|
1422
|
-
r.attr("x", Math.round(o + Math.abs(o -
|
|
1424
|
+
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));
|
|
1423
1425
|
}
|
|
1424
1426
|
return [r];
|
|
1425
|
-
}, "drawKatex"),
|
|
1427
|
+
}, "drawKatex"), mt = /* @__PURE__ */ x(function(e, t) {
|
|
1426
1428
|
let a = 0, r = 0;
|
|
1427
|
-
const i = t.text.split(
|
|
1428
|
-
let o = [],
|
|
1429
|
+
const i = t.text.split(N.lineBreakRegex), [n, s] = Me(t.fontSize);
|
|
1430
|
+
let o = [], u = 0, d = /* @__PURE__ */ x(() => t.y, "yfunc");
|
|
1429
1431
|
if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0)
|
|
1430
1432
|
switch (t.valign) {
|
|
1431
1433
|
case "top":
|
|
1432
1434
|
case "start":
|
|
1433
|
-
|
|
1435
|
+
d = /* @__PURE__ */ x(() => Math.round(t.y + t.textMargin), "yfunc");
|
|
1434
1436
|
break;
|
|
1435
1437
|
case "middle":
|
|
1436
1438
|
case "center":
|
|
1437
|
-
|
|
1439
|
+
d = /* @__PURE__ */ x(() => Math.round(t.y + (a + r + t.textMargin) / 2), "yfunc");
|
|
1438
1440
|
break;
|
|
1439
1441
|
case "bottom":
|
|
1440
1442
|
case "end":
|
|
1441
|
-
|
|
1443
|
+
d = /* @__PURE__ */ x(() => Math.round(
|
|
1442
1444
|
t.y + (a + r + 2 * t.textMargin) - t.textMargin
|
|
1443
1445
|
), "yfunc");
|
|
1444
1446
|
break;
|
|
@@ -1459,42 +1461,41 @@ var _r = ee, gr = {
|
|
|
1459
1461
|
break;
|
|
1460
1462
|
}
|
|
1461
1463
|
for (let [p, _] of i.entries()) {
|
|
1462
|
-
t.textMargin !== void 0 && t.textMargin === 0 && n !== void 0 && (
|
|
1463
|
-
const
|
|
1464
|
-
|
|
1465
|
-
const O = _ ||
|
|
1464
|
+
t.textMargin !== void 0 && t.textMargin === 0 && n !== void 0 && (u = p * n);
|
|
1465
|
+
const E = e.append("text");
|
|
1466
|
+
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);
|
|
1467
|
+
const O = _ || Tr;
|
|
1466
1468
|
if (t.tspan) {
|
|
1467
|
-
const T =
|
|
1469
|
+
const T = E.append("tspan");
|
|
1468
1470
|
T.attr("x", t.x), t.fill !== void 0 && T.attr("fill", t.fill), T.text(O);
|
|
1469
1471
|
} else
|
|
1470
|
-
|
|
1471
|
-
t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (
|
|
1472
|
+
E.text(O);
|
|
1473
|
+
t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (E._groups || E)[0][0].getBBox().height, a = r), o.push(E);
|
|
1472
1474
|
}
|
|
1473
1475
|
return o;
|
|
1474
|
-
}, "drawText"),
|
|
1475
|
-
function a(i, n, s, o,
|
|
1476
|
-
return i + "," + n + " " + (i + s) + "," + n + " " + (i + s) + "," + (n + o -
|
|
1476
|
+
}, "drawText"), Ve = /* @__PURE__ */ x(function(e, t) {
|
|
1477
|
+
function a(i, n, s, o, u) {
|
|
1478
|
+
return i + "," + n + " " + (i + s) + "," + n + " " + (i + s) + "," + (n + o - u) + " " + (i + s - u * 1.2) + "," + (n + o) + " " + i + "," + (n + o);
|
|
1477
1479
|
}
|
|
1478
1480
|
x(a, "genPoints");
|
|
1479
1481
|
const r = e.append("polygon");
|
|
1480
|
-
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,
|
|
1481
|
-
}, "drawLabel"), B = -1,
|
|
1482
|
+
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;
|
|
1483
|
+
}, "drawLabel"), B = -1, Ye = /* @__PURE__ */ x((e, t, a, r) => {
|
|
1482
1484
|
e.select && a.forEach((i) => {
|
|
1483
1485
|
const n = t.get(i), s = e.select("#actor" + n.actorCnt);
|
|
1484
1486
|
!r.mirrorActors && n.stopy ? s.attr("y2", n.stopy + n.height / 2) : r.mirrorActors && s.attr("y2", n.stopy);
|
|
1485
1487
|
});
|
|
1486
|
-
}, "fixLifeLineHeights"),
|
|
1487
|
-
|
|
1488
|
-
const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height, { look: E, theme: h, themeVariables: p } = a, { bkgColorArray: _, borderColorArray: u } = p, O = e.append("g").lower();
|
|
1488
|
+
}, "fixLifeLineHeights"), Lr = /* @__PURE__ */ x(function(e, t, a, r, i) {
|
|
1489
|
+
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();
|
|
1489
1490
|
var T = O;
|
|
1490
|
-
r || (B++, Object.keys(t.links || {}).length && !a.forceMenus && T.attr("onclick",
|
|
1491
|
+
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"));
|
|
1491
1492
|
const g = dt();
|
|
1492
1493
|
var f = "actor";
|
|
1493
|
-
|
|
1494
|
-
const I =
|
|
1495
|
-
if (pt.has(
|
|
1494
|
+
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);
|
|
1495
|
+
const I = Nt(T, g), L = i.get(t.name) ?? 0;
|
|
1496
|
+
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) {
|
|
1496
1497
|
const w = t.properties.icon.trim();
|
|
1497
|
-
w.charAt(0) === "@" ?
|
|
1498
|
+
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);
|
|
1498
1499
|
}
|
|
1499
1500
|
r || (T.attr("data-et", "participant"), T.attr("data-type", "participant"), T.attr("data-id", t.name)), Et(a, Q(t.description))(
|
|
1500
1501
|
t.description,
|
|
@@ -1503,7 +1504,7 @@ var _r = ee, gr = {
|
|
|
1503
1504
|
g.y,
|
|
1504
1505
|
g.width,
|
|
1505
1506
|
g.height,
|
|
1506
|
-
{ class: `actor ${
|
|
1507
|
+
{ class: `actor ${qt}` },
|
|
1507
1508
|
a
|
|
1508
1509
|
);
|
|
1509
1510
|
let b = t.height;
|
|
@@ -1512,25 +1513,24 @@ var _r = ee, gr = {
|
|
|
1512
1513
|
t.height = w.height, b = w.height;
|
|
1513
1514
|
}
|
|
1514
1515
|
return b;
|
|
1515
|
-
}, "drawActorTypeParticipant"),
|
|
1516
|
-
|
|
1517
|
-
const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height, { look: E, theme: h, themeVariables: p } = a, { bkgColorArray: _, borderColorArray: u } = p, O = e.append("g").lower();
|
|
1516
|
+
}, "drawActorTypeParticipant"), br = /* @__PURE__ */ x(function(e, t, a, r, i) {
|
|
1517
|
+
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();
|
|
1518
1518
|
var T = O;
|
|
1519
|
-
r || (B++, Object.keys(t.links || {}).length && !a.forceMenus && T.attr("onclick",
|
|
1519
|
+
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"));
|
|
1520
1520
|
const g = dt();
|
|
1521
1521
|
var f = "actor";
|
|
1522
|
-
|
|
1522
|
+
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;
|
|
1523
1523
|
const I = 6, L = {
|
|
1524
1524
|
...g,
|
|
1525
1525
|
x: g.x + -I,
|
|
1526
1526
|
y: g.y + +I,
|
|
1527
1527
|
class: "actor"
|
|
1528
|
-
}, b =
|
|
1529
|
-
t.rectData = g,
|
|
1530
|
-
const
|
|
1531
|
-
if (pt.has(
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1528
|
+
}, b = Nt(T, g), w = Nt(T, L);
|
|
1529
|
+
t.rectData = g, u === "neo" && T.attr("filter", "url(#drop-shadow)");
|
|
1530
|
+
const A = i.get(t.name) ?? 0;
|
|
1531
|
+
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) {
|
|
1532
|
+
const M = t.properties.icon.trim();
|
|
1533
|
+
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);
|
|
1534
1534
|
}
|
|
1535
1535
|
Et(a, Q(t.description))(
|
|
1536
1536
|
t.description,
|
|
@@ -1539,38 +1539,37 @@ var _r = ee, gr = {
|
|
|
1539
1539
|
g.y + I,
|
|
1540
1540
|
g.width,
|
|
1541
1541
|
g.height,
|
|
1542
|
-
{ class: `actor ${
|
|
1542
|
+
{ class: `actor ${qt}` },
|
|
1543
1543
|
a
|
|
1544
1544
|
);
|
|
1545
|
-
let
|
|
1545
|
+
let D = t.height;
|
|
1546
1546
|
if (b.node) {
|
|
1547
|
-
const
|
|
1548
|
-
t.height =
|
|
1547
|
+
const M = b.node().getBBox();
|
|
1548
|
+
t.height = M.height, D = M.height;
|
|
1549
1549
|
}
|
|
1550
|
-
return r || (T.attr("data-et", "participant"), T.attr("data-type", "collections"), T.attr("data-id", t.name)),
|
|
1551
|
-
}, "drawActorTypeCollections"),
|
|
1552
|
-
|
|
1553
|
-
const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height, { look: E, theme: h, themeVariables: p } = a, { bkgColorArray: _, borderColorArray: u } = p, O = e.append("g").lower();
|
|
1550
|
+
return r || (T.attr("data-et", "participant"), T.attr("data-type", "collections"), T.attr("data-id", t.name)), D;
|
|
1551
|
+
}, "drawActorTypeCollections"), mr = /* @__PURE__ */ x(function(e, t, a, r, i) {
|
|
1552
|
+
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();
|
|
1554
1553
|
let T = O;
|
|
1555
|
-
r || (B++, Object.keys(t.links || {}).length && !a.forceMenus && T.attr("onclick",
|
|
1554
|
+
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"));
|
|
1556
1555
|
const g = dt();
|
|
1557
1556
|
let f = "actor";
|
|
1558
|
-
|
|
1559
|
-
const I = g.height / 2, L = I / (2.5 + g.height / 50), b = T.append("g"),
|
|
1557
|
+
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;
|
|
1558
|
+
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}
|
|
1560
1559
|
a ${L},${I} 0 0 0 0,${g.height}
|
|
1561
1560
|
h ${g.width - 2 * L}
|
|
1562
1561
|
a ${L},${I} 0 0 0 0,-${g.height}
|
|
1563
1562
|
Z
|
|
1564
1563
|
`;
|
|
1565
|
-
b.append("path").attr("d",
|
|
1564
|
+
b.append("path").attr("d", A), w.append("path").attr(
|
|
1566
1565
|
"d",
|
|
1567
1566
|
`M ${g.x},${g.y + I}
|
|
1568
1567
|
a ${L},${I} 0 0 0 0,${g.height}`
|
|
1569
|
-
), b.attr("transform", `translate(${L}, ${-(g.height / 2)})`),
|
|
1570
|
-
const
|
|
1571
|
-
if (pt.has(
|
|
1572
|
-
const
|
|
1573
|
-
|
|
1568
|
+
), 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)");
|
|
1569
|
+
const D = i.get(t.name) ?? 0;
|
|
1570
|
+
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) {
|
|
1571
|
+
const W = t.properties.icon.trim(), U = g.x + g.width - 20, G = g.y + 10;
|
|
1572
|
+
W.charAt(0) === "@" ? se(T, U, G, W.substr(1)) : ie(T, U, G, W);
|
|
1574
1573
|
}
|
|
1575
1574
|
Et(a, Q(t.description))(
|
|
1576
1575
|
t.description,
|
|
@@ -1579,53 +1578,51 @@ var _r = ee, gr = {
|
|
|
1579
1578
|
g.y,
|
|
1580
1579
|
g.width,
|
|
1581
1580
|
g.height,
|
|
1582
|
-
{ class: `actor ${
|
|
1581
|
+
{ class: `actor ${qt}` },
|
|
1583
1582
|
a
|
|
1584
1583
|
);
|
|
1585
1584
|
let M = t.height;
|
|
1586
1585
|
const V = b.select("path:last-child");
|
|
1587
1586
|
if (V.node()) {
|
|
1588
|
-
const
|
|
1589
|
-
t.height =
|
|
1587
|
+
const W = V.node().getBBox();
|
|
1588
|
+
t.height = W.height, M = W.height;
|
|
1590
1589
|
}
|
|
1591
1590
|
return r || (T.attr("data-et", "participant"), T.attr("data-type", "queue"), T.attr("data-id", t.name)), M;
|
|
1592
|
-
}, "drawActorTypeQueue"),
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
r || (B++, f.append("line").attr("id", "actor" + B).attr("x1", o).attr("y1", E).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);
|
|
1591
|
+
}, "drawActorTypeQueue"), Ar = /* @__PURE__ */ x(function(e, t, a, r, i, n) {
|
|
1592
|
+
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();
|
|
1593
|
+
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
1594
|
const I = e.append("g");
|
|
1597
1595
|
let L = yt;
|
|
1598
1596
|
r ? L += ` ${_t}` : L += ` ${ft}`, I.attr("class", L), I.attr("name", t.name);
|
|
1599
1597
|
const b = dt();
|
|
1600
1598
|
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",
|
|
1599
|
+
const w = t.x + t.width / 2, A = s + 32, D = 22;
|
|
1600
|
+
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
1601
|
const M = n.get(t.name) ?? 0;
|
|
1604
|
-
pt.has(p) ? (I.style("stroke", O[M % O.length]), I.style("fill",
|
|
1602
|
+
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
1603
|
const V = I.node().getBBox();
|
|
1606
|
-
return t.height = V.height + 2 * (
|
|
1604
|
+
return t.height = V.height + 2 * (a?.sequence?.labelBoxHeight ?? 0), Et(a, Q(t.description))(
|
|
1607
1605
|
t.description,
|
|
1608
1606
|
I,
|
|
1609
1607
|
b.x,
|
|
1610
|
-
b.y +
|
|
1608
|
+
b.y + D + (r ? 5 : 12),
|
|
1611
1609
|
b.width,
|
|
1612
1610
|
b.height,
|
|
1613
1611
|
{ class: `actor ${yt}` },
|
|
1614
1612
|
a
|
|
1615
1613
|
), r || (I.attr("data-et", "participant"), I.attr("data-type", "control"), I.attr("data-id", t.name)), t.height;
|
|
1616
|
-
}, "drawActorTypeControl"),
|
|
1617
|
-
|
|
1618
|
-
const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + 75, { look: E, theme: h, themeVariables: p } = a, { bkgColorArray: _, borderColorArray: u } = p, O = e.append("g").lower(), T = e.append("g");
|
|
1614
|
+
}, "drawActorTypeControl"), Sr = /* @__PURE__ */ x(function(e, t, a, r, i) {
|
|
1615
|
+
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");
|
|
1619
1616
|
let g = "actor";
|
|
1620
1617
|
r ? g += ` ${_t}` : g += ` ${ft}`, T.attr("class", g), T.attr("name", t.name);
|
|
1621
1618
|
const f = dt();
|
|
1622
1619
|
f.x = t.x, f.y = n, f.fill = "#eaeaea", f.width = t.width, f.height = t.height, f.class = "actor";
|
|
1623
1620
|
const I = t.x + t.width / 2, L = n + (r ? 10 : 25), b = 22;
|
|
1624
|
-
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),
|
|
1625
|
-
const
|
|
1626
|
-
pt.has(
|
|
1627
|
-
const
|
|
1628
|
-
return t.height =
|
|
1621
|
+
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)");
|
|
1622
|
+
const w = i.get(t.name) ?? 0;
|
|
1623
|
+
pt.has(d) && (T.style("stroke", E[w % E.length]), T.style("fill", _[w % E.length]));
|
|
1624
|
+
const A = T.node().getBBox();
|
|
1625
|
+
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))(
|
|
1629
1626
|
t.description,
|
|
1630
1627
|
T,
|
|
1631
1628
|
f.x,
|
|
@@ -1635,54 +1632,53 @@ var _r = ee, gr = {
|
|
|
1635
1632
|
{ class: `actor ${yt}` },
|
|
1636
1633
|
a
|
|
1637
1634
|
), 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;
|
|
1638
|
-
}, "drawActorTypeEntity"),
|
|
1639
|
-
|
|
1640
|
-
const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + t.height + 2 * a.boxTextMargin, { theme: E, themeVariables: h, look: p } = a, { bkgColorArray: _, borderColorArray: u, actorBorder: O } = h, T = e.append("g").lower();
|
|
1635
|
+
}, "drawActorTypeEntity"), wr = /* @__PURE__ */ x(function(e, t, a, r, i) {
|
|
1636
|
+
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();
|
|
1641
1637
|
let g = T;
|
|
1642
|
-
r || (B++, Object.keys(t.links || {}).length && !a.forceMenus && g.attr("onclick",
|
|
1638
|
+
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"));
|
|
1643
1639
|
const f = dt();
|
|
1644
1640
|
let I = "actor";
|
|
1645
|
-
|
|
1646
|
-
const L = f.width / 3, b = f.width / 3,
|
|
1647
|
-
|
|
1641
|
+
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;
|
|
1642
|
+
const L = f.width / 3, b = f.width / 3, w = L / 2, A = w / (2.5 + L / 50), D = g.append("g");
|
|
1643
|
+
D.attr("class", I);
|
|
1648
1644
|
const M = `
|
|
1649
|
-
M ${f.x},${f.y +
|
|
1650
|
-
a ${
|
|
1651
|
-
a ${
|
|
1652
|
-
l 0,${b - 2 *
|
|
1653
|
-
a ${
|
|
1654
|
-
l 0,-${b - 2 *
|
|
1645
|
+
M ${f.x},${f.y + A}
|
|
1646
|
+
a ${w},${A} 0 0 0 ${L},0
|
|
1647
|
+
a ${w},${A} 0 0 0 -${L},0
|
|
1648
|
+
l 0,${b - 2 * A}
|
|
1649
|
+
a ${w},${A} 0 0 0 ${L},0
|
|
1650
|
+
l 0,-${b - 2 * A}
|
|
1655
1651
|
`;
|
|
1656
|
-
|
|
1652
|
+
D.append("path").attr("d", M), p === "neo" && D.attr("filter", "url(#drop-shadow)");
|
|
1657
1653
|
const V = i.get(t.name) ?? 0;
|
|
1658
|
-
pt.has(
|
|
1654
|
+
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))(
|
|
1659
1655
|
t.description,
|
|
1660
1656
|
g,
|
|
1661
1657
|
f.x,
|
|
1662
1658
|
f.y + 35,
|
|
1663
1659
|
f.width,
|
|
1664
1660
|
f.height,
|
|
1665
|
-
{ class: `actor ${
|
|
1661
|
+
{ class: `actor ${qt}` },
|
|
1666
1662
|
a
|
|
1667
1663
|
);
|
|
1668
|
-
const
|
|
1669
|
-
if (
|
|
1670
|
-
const
|
|
1671
|
-
t.height =
|
|
1664
|
+
const W = D.select("path:last-child");
|
|
1665
|
+
if (W.node()) {
|
|
1666
|
+
const U = W.node().getBBox();
|
|
1667
|
+
t.height = U.height + (a.sequence.labelBoxHeight ?? 0);
|
|
1672
1668
|
}
|
|
1673
1669
|
return r || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
|
|
1674
|
-
}, "drawActorTypeDatabase"),
|
|
1675
|
-
const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + 80,
|
|
1676
|
-
r || (B++,
|
|
1670
|
+
}, "drawActorTypeDatabase"), Nr = /* @__PURE__ */ x(function(e, t, a, r, i) {
|
|
1671
|
+
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;
|
|
1672
|
+
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);
|
|
1677
1673
|
const f = e.append("g");
|
|
1678
1674
|
let I = yt;
|
|
1679
1675
|
r ? I += ` ${_t}` : I += ` ${ft}`, f.attr("class", I), f.attr("name", t.name);
|
|
1680
1676
|
const L = dt();
|
|
1681
|
-
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 -
|
|
1677
|
+
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)");
|
|
1682
1678
|
const b = i.get(t.name) ?? 0;
|
|
1683
1679
|
pt.has(_) ? (f.style("stroke", T[b % T.length]), f.style("fill", O[b % T.length])) : f.style("stroke", g);
|
|
1684
|
-
const
|
|
1685
|
-
return t.height =
|
|
1680
|
+
const w = f.node().getBBox();
|
|
1681
|
+
return t.height = w.height + (a.sequence.labelBoxHeight ?? 0), Et(a, Q(t.description))(
|
|
1686
1682
|
t.description,
|
|
1687
1683
|
f,
|
|
1688
1684
|
L.x,
|
|
@@ -1691,45 +1687,45 @@ var _r = ee, gr = {
|
|
|
1691
1687
|
L.height,
|
|
1692
1688
|
{ class: `actor ${yt}` },
|
|
1693
1689
|
a
|
|
1694
|
-
), f.attr("transform", `translate(0,${
|
|
1695
|
-
}, "drawActorTypeBoundary"),
|
|
1696
|
-
const n = r ? t.stopy : t.starty, s = t.x + t.width / 2, o = n + 80, { look:
|
|
1690
|
+
), 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;
|
|
1691
|
+
}, "drawActorTypeBoundary"), Pr = /* @__PURE__ */ x(function(e, t, a, r, i) {
|
|
1692
|
+
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();
|
|
1697
1693
|
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);
|
|
1698
1694
|
const g = e.append("g");
|
|
1699
1695
|
let f = yt;
|
|
1700
1696
|
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);
|
|
1701
|
-
const I =
|
|
1697
|
+
const I = u === "neo" ? 0.5 : 1, L = u === "neo" ? n + (1 - I) * 30 : n;
|
|
1702
1698
|
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);
|
|
1703
1699
|
const b = g.append("circle");
|
|
1704
1700
|
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);
|
|
1705
|
-
const
|
|
1706
|
-
t.height =
|
|
1707
|
-
const
|
|
1708
|
-
|
|
1709
|
-
const
|
|
1710
|
-
return pt.has(
|
|
1701
|
+
const w = g.node().getBBox();
|
|
1702
|
+
t.height = w.height;
|
|
1703
|
+
const A = dt();
|
|
1704
|
+
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;
|
|
1705
|
+
const D = i.get(t.name) ?? 0;
|
|
1706
|
+
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))(
|
|
1711
1707
|
t.description,
|
|
1712
1708
|
g,
|
|
1713
|
-
|
|
1714
|
-
L + 35 * I - (
|
|
1715
|
-
|
|
1716
|
-
|
|
1709
|
+
A.x,
|
|
1710
|
+
L + 35 * I - (u === "neo" ? 10 : 0),
|
|
1711
|
+
A.width,
|
|
1712
|
+
A.height,
|
|
1717
1713
|
{ class: `actor ${yt}` },
|
|
1718
1714
|
a
|
|
1719
1715
|
), t.height;
|
|
1720
|
-
}, "drawActorTypeActor"),
|
|
1716
|
+
}, "drawActorTypeActor"), kr = /* @__PURE__ */ x(async function(e, t, a, r, i, n, s) {
|
|
1721
1717
|
const o = s ?? new Map(
|
|
1722
|
-
[...n.db.getActors().values()].map((
|
|
1718
|
+
[...n.db.getActors().values()].map((u, d) => [u.name, d])
|
|
1723
1719
|
);
|
|
1724
1720
|
switch (t.type) {
|
|
1725
1721
|
case "actor":
|
|
1726
|
-
return await
|
|
1722
|
+
return await Pr(e, t, a, r, o);
|
|
1727
1723
|
case "participant":
|
|
1728
|
-
return await
|
|
1724
|
+
return await Lr(e, t, a, r, o);
|
|
1729
1725
|
case "boundary":
|
|
1730
|
-
return await
|
|
1726
|
+
return await Nr(e, t, a, r, o);
|
|
1731
1727
|
case "control":
|
|
1732
|
-
return await
|
|
1728
|
+
return await Ar(
|
|
1733
1729
|
e,
|
|
1734
1730
|
t,
|
|
1735
1731
|
a,
|
|
@@ -1738,17 +1734,17 @@ var _r = ee, gr = {
|
|
|
1738
1734
|
o
|
|
1739
1735
|
);
|
|
1740
1736
|
case "entity":
|
|
1741
|
-
return await
|
|
1737
|
+
return await Sr(e, t, a, r, o);
|
|
1742
1738
|
case "database":
|
|
1743
|
-
return await
|
|
1739
|
+
return await wr(e, t, a, r, o);
|
|
1744
1740
|
case "collections":
|
|
1745
|
-
return await
|
|
1741
|
+
return await br(e, t, a, r, o);
|
|
1746
1742
|
case "queue":
|
|
1747
|
-
return await
|
|
1743
|
+
return await mr(e, t, a, r, o);
|
|
1748
1744
|
}
|
|
1749
|
-
}, "drawActor"),
|
|
1745
|
+
}, "drawActor"), Dr = /* @__PURE__ */ x(function(e, t, a) {
|
|
1750
1746
|
const i = e.append("g");
|
|
1751
|
-
|
|
1747
|
+
We(i, t), t.name && Et(a)(
|
|
1752
1748
|
t.name,
|
|
1753
1749
|
i,
|
|
1754
1750
|
t.x,
|
|
@@ -1758,26 +1754,26 @@ var _r = ee, gr = {
|
|
|
1758
1754
|
{ class: "text" },
|
|
1759
1755
|
a
|
|
1760
1756
|
), i.lower();
|
|
1761
|
-
}, "drawBox"),
|
|
1757
|
+
}, "drawBox"), vr = /* @__PURE__ */ x(function(e) {
|
|
1762
1758
|
return e.append("g");
|
|
1763
|
-
}, "anchorElement"),
|
|
1764
|
-
const { theme: o, themeVariables:
|
|
1765
|
-
|
|
1766
|
-
const g =
|
|
1759
|
+
}, "anchorElement"), Cr = /* @__PURE__ */ x(function(e, t, a, r, i, n, s) {
|
|
1760
|
+
const { theme: o, themeVariables: u } = r, { bkgColorArray: d, borderColorArray: p, mainBkg: _ } = u, E = dt(), O = t.anchored, T = t.actor;
|
|
1761
|
+
E.x = t.startx, E.y = t.starty, E.class = "activation" + i % 3, E.width = t.stopx - t.startx, E.height = a - t.starty;
|
|
1762
|
+
const g = Nt(O, E), I = (s ?? new Map(
|
|
1767
1763
|
[...n.db.getActors().values()].map((L, b) => [L.name, b])
|
|
1768
1764
|
)).get(T) ?? 0;
|
|
1769
|
-
pt.has(o) && (g.style("stroke", p[I % p.length]), g.style("fill",
|
|
1770
|
-
}, "drawActivation"),
|
|
1765
|
+
pt.has(o) && (g.style("stroke", p[I % p.length]), g.style("fill", d[I % p.length] ?? _));
|
|
1766
|
+
}, "drawActivation"), Mr = /* @__PURE__ */ x(async function(e, t, a, r, i) {
|
|
1771
1767
|
const {
|
|
1772
1768
|
boxMargin: n,
|
|
1773
1769
|
boxTextMargin: s,
|
|
1774
1770
|
labelBoxHeight: o,
|
|
1775
|
-
labelBoxWidth:
|
|
1776
|
-
messageFontFamily:
|
|
1771
|
+
labelBoxWidth: u,
|
|
1772
|
+
messageFontFamily: d,
|
|
1777
1773
|
messageFontSize: p,
|
|
1778
1774
|
messageFontWeight: _
|
|
1779
|
-
} = r,
|
|
1780
|
-
return
|
|
1775
|
+
} = r, E = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + i.id), O = /* @__PURE__ */ x(function(f, I, L, b) {
|
|
1776
|
+
return E.append("line").attr("x1", f).attr("y1", I).attr("x2", L).attr("y2", b).attr("class", "loopLine");
|
|
1781
1777
|
}, "drawLoopLine");
|
|
1782
1778
|
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) {
|
|
1783
1779
|
O(t.startx, f.y, t.stopx, f.y).style(
|
|
@@ -1785,49 +1781,49 @@ var _r = ee, gr = {
|
|
|
1785
1781
|
"3, 3"
|
|
1786
1782
|
);
|
|
1787
1783
|
});
|
|
1788
|
-
let T =
|
|
1789
|
-
T.text = a, T.x = t.startx, T.y = t.starty, T.fontFamily =
|
|
1790
|
-
let g = Q(T.text) ? await
|
|
1784
|
+
let T = ae();
|
|
1785
|
+
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;
|
|
1786
|
+
let g = Q(T.text) ? await Ft(E, T, t) : mt(E, T);
|
|
1791
1787
|
if (t.sectionTitles !== void 0) {
|
|
1792
1788
|
for (const [f, I] of Object.entries(t.sectionTitles))
|
|
1793
1789
|
if (I.message) {
|
|
1794
|
-
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 =
|
|
1790
|
+
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);
|
|
1795
1791
|
let L = Math.round(
|
|
1796
|
-
g.map((b) => (b._groups || b)[0][0].getBBox().height).reduce((b,
|
|
1792
|
+
g.map((b) => (b._groups || b)[0][0].getBBox().height).reduce((b, w) => b + w)
|
|
1797
1793
|
);
|
|
1798
1794
|
t.sections[f].height += L - (n + s);
|
|
1799
1795
|
}
|
|
1800
1796
|
}
|
|
1801
|
-
return t.height = Math.round(t.stopy - t.starty),
|
|
1802
|
-
}, "drawLoop"),
|
|
1803
|
-
|
|
1804
|
-
}, "drawBackgroundRect"),
|
|
1797
|
+
return t.height = Math.round(t.stopy - t.starty), E;
|
|
1798
|
+
}, "drawLoop"), We = /* @__PURE__ */ x(function(e, t) {
|
|
1799
|
+
Er(e, t);
|
|
1800
|
+
}, "drawBackgroundRect"), Br = /* @__PURE__ */ x(function(e, t) {
|
|
1805
1801
|
e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
|
|
1806
1802
|
"d",
|
|
1807
1803
|
"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"
|
|
1808
1804
|
);
|
|
1809
|
-
}, "insertDatabaseIcon"),
|
|
1805
|
+
}, "insertDatabaseIcon"), Vr = /* @__PURE__ */ x(function(e, t) {
|
|
1810
1806
|
e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1811
1807
|
"d",
|
|
1812
1808
|
"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"
|
|
1813
1809
|
);
|
|
1814
|
-
}, "insertComputerIcon"),
|
|
1810
|
+
}, "insertComputerIcon"), Yr = /* @__PURE__ */ x(function(e, t) {
|
|
1815
1811
|
e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1816
1812
|
"d",
|
|
1817
1813
|
"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"
|
|
1818
1814
|
);
|
|
1819
|
-
}, "insertClockIcon"),
|
|
1815
|
+
}, "insertClockIcon"), Wr = /* @__PURE__ */ x(function(e, t) {
|
|
1820
1816
|
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");
|
|
1821
|
-
}, "insertArrowHead"),
|
|
1817
|
+
}, "insertArrowHead"), Kr = /* @__PURE__ */ x(function(e, t) {
|
|
1822
1818
|
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");
|
|
1823
|
-
}, "insertArrowFilledHead"),
|
|
1819
|
+
}, "insertArrowFilledHead"), Fr = /* @__PURE__ */ x(function(e, t) {
|
|
1824
1820
|
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);
|
|
1825
|
-
}, "insertSequenceNumber"),
|
|
1821
|
+
}, "insertSequenceNumber"), qr = /* @__PURE__ */ x(function(e, t) {
|
|
1826
1822
|
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");
|
|
1827
|
-
}, "insertArrowCrossHead"),
|
|
1823
|
+
}, "insertArrowCrossHead"), Hr = /* @__PURE__ */ x(function(e, t) {
|
|
1828
1824
|
const { theme: a } = t;
|
|
1829
1825
|
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"}`);
|
|
1830
|
-
}, "insertDropShadow"),
|
|
1826
|
+
}, "insertDropShadow"), Ke = /* @__PURE__ */ x(function() {
|
|
1831
1827
|
return {
|
|
1832
1828
|
x: 0,
|
|
1833
1829
|
y: 0,
|
|
@@ -1842,7 +1838,7 @@ var _r = ee, gr = {
|
|
|
1842
1838
|
tspan: !0,
|
|
1843
1839
|
valign: void 0
|
|
1844
1840
|
};
|
|
1845
|
-
}, "getTextObj"),
|
|
1841
|
+
}, "getTextObj"), zr = /* @__PURE__ */ x(function() {
|
|
1846
1842
|
return {
|
|
1847
1843
|
x: 0,
|
|
1848
1844
|
y: 0,
|
|
@@ -1855,27 +1851,27 @@ var _r = ee, gr = {
|
|
|
1855
1851
|
ry: 0
|
|
1856
1852
|
};
|
|
1857
1853
|
}, "getNoteRect"), Et = /* @__PURE__ */ (function() {
|
|
1858
|
-
function e(n, s, o,
|
|
1859
|
-
const
|
|
1860
|
-
i(
|
|
1854
|
+
function e(n, s, o, u, d, p, _) {
|
|
1855
|
+
const E = s.append("text").attr("x", o + d / 2).attr("y", u + p / 2 + 5).style("text-anchor", "middle").text(n);
|
|
1856
|
+
i(E, _);
|
|
1861
1857
|
}
|
|
1862
1858
|
x(e, "byText");
|
|
1863
|
-
function t(n, s, o,
|
|
1864
|
-
const { actorFontSize: O, actorFontFamily: T, actorFontWeight: g } =
|
|
1859
|
+
function t(n, s, o, u, d, p, _, E) {
|
|
1860
|
+
const { actorFontSize: O, actorFontFamily: T, actorFontWeight: g } = E, [f, I] = Me(O), L = n.split(N.lineBreakRegex);
|
|
1865
1861
|
for (let b = 0; b < L.length; b++) {
|
|
1866
|
-
const
|
|
1867
|
-
|
|
1862
|
+
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);
|
|
1863
|
+
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, _);
|
|
1868
1864
|
}
|
|
1869
1865
|
}
|
|
1870
1866
|
x(t, "byTspan");
|
|
1871
|
-
function a(n, s, o,
|
|
1872
|
-
const O = s.append("switch"), g = O.append("foreignObject").attr("x", o).attr("y",
|
|
1873
|
-
g.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(n), t(n, O, o,
|
|
1867
|
+
function a(n, s, o, u, d, p, _, E) {
|
|
1868
|
+
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%");
|
|
1869
|
+
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, _);
|
|
1874
1870
|
}
|
|
1875
1871
|
x(a, "byFo");
|
|
1876
|
-
async function r(n, s, o,
|
|
1877
|
-
const O = await
|
|
1878
|
-
f.append("div").style("text-align", "center").style("vertical-align", "middle").html(await
|
|
1872
|
+
async function r(n, s, o, u, d, p, _, E) {
|
|
1873
|
+
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%");
|
|
1874
|
+
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, _);
|
|
1879
1875
|
}
|
|
1880
1876
|
x(r, "byKatex");
|
|
1881
1877
|
function i(n, s) {
|
|
@@ -1885,23 +1881,23 @@ var _r = ee, gr = {
|
|
|
1885
1881
|
return x(i, "_setTextAttrs"), function(n, s = !1) {
|
|
1886
1882
|
return s ? r : n.textPlacement === "fo" ? a : n.textPlacement === "old" ? e : t;
|
|
1887
1883
|
};
|
|
1888
|
-
})(),
|
|
1889
|
-
function e(i, n, s, o,
|
|
1884
|
+
})(), Ur = /* @__PURE__ */ (function() {
|
|
1885
|
+
function e(i, n, s, o, u, d, p) {
|
|
1890
1886
|
const _ = n.append("text").attr("x", s).attr("y", o).style("text-anchor", "start").text(i);
|
|
1891
1887
|
r(_, p);
|
|
1892
1888
|
}
|
|
1893
1889
|
x(e, "byText");
|
|
1894
|
-
function t(i, n, s, o,
|
|
1895
|
-
const { actorFontSize:
|
|
1890
|
+
function t(i, n, s, o, u, d, p, _) {
|
|
1891
|
+
const { actorFontSize: E, actorFontFamily: O, actorFontWeight: T } = _, g = i.split(N.lineBreakRegex);
|
|
1896
1892
|
for (let f = 0; f < g.length; f++) {
|
|
1897
|
-
const I = f *
|
|
1898
|
-
L.append("tspan").attr("x", s).attr("dy", I).text(g[f]), L.attr("y", o +
|
|
1893
|
+
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);
|
|
1894
|
+
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);
|
|
1899
1895
|
}
|
|
1900
1896
|
}
|
|
1901
1897
|
x(t, "byTspan");
|
|
1902
|
-
function a(i, n, s, o,
|
|
1903
|
-
const
|
|
1904
|
-
T.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i,
|
|
1898
|
+
function a(i, n, s, o, u, d, p, _) {
|
|
1899
|
+
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%");
|
|
1900
|
+
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);
|
|
1905
1901
|
}
|
|
1906
1902
|
x(a, "byFo");
|
|
1907
1903
|
function r(i, n) {
|
|
@@ -1911,41 +1907,41 @@ var _r = ee, gr = {
|
|
|
1911
1907
|
return x(r, "_setTextAttrs"), function(i) {
|
|
1912
1908
|
return i.textPlacement === "fo" ? a : i.textPlacement === "old" ? e : t;
|
|
1913
1909
|
};
|
|
1914
|
-
})(),
|
|
1910
|
+
})(), Gr = /* @__PURE__ */ x(function(e, t) {
|
|
1915
1911
|
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");
|
|
1916
|
-
}, "insertSolidTopArrowHead"),
|
|
1912
|
+
}, "insertSolidTopArrowHead"), Xr = /* @__PURE__ */ x(function(e, t) {
|
|
1917
1913
|
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");
|
|
1918
|
-
}, "insertSolidBottomArrowHead"),
|
|
1914
|
+
}, "insertSolidBottomArrowHead"), Jr = /* @__PURE__ */ x(function(e, t) {
|
|
1919
1915
|
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");
|
|
1920
|
-
}, "insertStickTopArrowHead"),
|
|
1916
|
+
}, "insertStickTopArrowHead"), Zr = /* @__PURE__ */ x(function(e, t) {
|
|
1921
1917
|
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");
|
|
1922
|
-
}, "insertStickBottomArrowHead"),
|
|
1923
|
-
drawRect:
|
|
1924
|
-
drawText:
|
|
1925
|
-
drawLabel:
|
|
1926
|
-
drawActor:
|
|
1927
|
-
drawBox:
|
|
1928
|
-
drawPopup:
|
|
1929
|
-
anchorElement:
|
|
1930
|
-
drawActivation:
|
|
1931
|
-
drawLoop:
|
|
1932
|
-
drawBackgroundRect:
|
|
1933
|
-
insertArrowHead:
|
|
1934
|
-
insertArrowFilledHead:
|
|
1935
|
-
insertSequenceNumber:
|
|
1936
|
-
insertArrowCrossHead:
|
|
1937
|
-
insertDatabaseIcon:
|
|
1938
|
-
insertComputerIcon:
|
|
1939
|
-
insertClockIcon:
|
|
1940
|
-
getTextObj:
|
|
1941
|
-
getNoteRect:
|
|
1942
|
-
fixLifeLineHeights:
|
|
1943
|
-
sanitizeUrl:
|
|
1944
|
-
insertDropShadow:
|
|
1945
|
-
insertSolidTopArrowHead:
|
|
1946
|
-
insertSolidBottomArrowHead:
|
|
1947
|
-
insertStickTopArrowHead:
|
|
1948
|
-
insertStickBottomArrowHead:
|
|
1918
|
+
}, "insertStickBottomArrowHead"), q = {
|
|
1919
|
+
drawRect: Nt,
|
|
1920
|
+
drawText: mt,
|
|
1921
|
+
drawLabel: Ve,
|
|
1922
|
+
drawActor: kr,
|
|
1923
|
+
drawBox: Dr,
|
|
1924
|
+
drawPopup: Or,
|
|
1925
|
+
anchorElement: vr,
|
|
1926
|
+
drawActivation: Cr,
|
|
1927
|
+
drawLoop: Mr,
|
|
1928
|
+
drawBackgroundRect: We,
|
|
1929
|
+
insertArrowHead: Wr,
|
|
1930
|
+
insertArrowFilledHead: Kr,
|
|
1931
|
+
insertSequenceNumber: Fr,
|
|
1932
|
+
insertArrowCrossHead: qr,
|
|
1933
|
+
insertDatabaseIcon: Br,
|
|
1934
|
+
insertComputerIcon: Vr,
|
|
1935
|
+
insertClockIcon: Yr,
|
|
1936
|
+
getTextObj: Ke,
|
|
1937
|
+
getNoteRect: zr,
|
|
1938
|
+
fixLifeLineHeights: Ye,
|
|
1939
|
+
sanitizeUrl: Ce.sanitizeUrl,
|
|
1940
|
+
insertDropShadow: Hr,
|
|
1941
|
+
insertSolidTopArrowHead: Gr,
|
|
1942
|
+
insertSolidBottomArrowHead: Xr,
|
|
1943
|
+
insertStickTopArrowHead: Jr,
|
|
1944
|
+
insertStickBottomArrowHead: Zr
|
|
1949
1945
|
}, l = {}, R = {
|
|
1950
1946
|
data: {
|
|
1951
1947
|
startx: void 0,
|
|
@@ -2005,7 +2001,7 @@ var _r = ee, gr = {
|
|
|
2005
2001
|
stopx: void 0,
|
|
2006
2002
|
starty: void 0,
|
|
2007
2003
|
stopy: void 0
|
|
2008
|
-
}, this.verticalPos = 0,
|
|
2004
|
+
}, this.verticalPos = 0, He($());
|
|
2009
2005
|
}, "init"),
|
|
2010
2006
|
updateVal: /* @__PURE__ */ x(function(e, t, a, r) {
|
|
2011
2007
|
e[t] === void 0 ? e[t] = a : e[t] = r(a, e[t]);
|
|
@@ -2014,27 +2010,27 @@ var _r = ee, gr = {
|
|
|
2014
2010
|
const i = this;
|
|
2015
2011
|
let n = 0;
|
|
2016
2012
|
function s(o) {
|
|
2017
|
-
return /* @__PURE__ */ x(function(
|
|
2013
|
+
return /* @__PURE__ */ x(function(d) {
|
|
2018
2014
|
n++;
|
|
2019
2015
|
const p = i.sequenceItems.length - n + 1;
|
|
2020
|
-
i.updateVal(
|
|
2016
|
+
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));
|
|
2021
2017
|
}, "updateItemBounds");
|
|
2022
2018
|
}
|
|
2023
2019
|
x(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
|
|
2024
2020
|
}, "updateBounds"),
|
|
2025
2021
|
insert: /* @__PURE__ */ x(function(e, t, a, r) {
|
|
2026
|
-
const i =
|
|
2022
|
+
const i = N.getMin(e, a), n = N.getMax(e, a), s = N.getMin(t, r), o = N.getMax(t, r);
|
|
2027
2023
|
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);
|
|
2028
2024
|
}, "insert"),
|
|
2029
2025
|
newActivation: /* @__PURE__ */ x(function(e, t, a) {
|
|
2030
|
-
const r = a.get(e.from), i =
|
|
2026
|
+
const r = a.get(e.from), i = zt(e.from).length || 0, n = r.x + r.width / 2 + (i - 1) * l.activationWidth / 2;
|
|
2031
2027
|
this.activations.push({
|
|
2032
2028
|
startx: n,
|
|
2033
2029
|
starty: this.verticalPos + 2,
|
|
2034
2030
|
stopx: n + l.activationWidth,
|
|
2035
2031
|
stopy: void 0,
|
|
2036
2032
|
actor: e.from,
|
|
2037
|
-
anchored:
|
|
2033
|
+
anchored: q.anchorElement(t)
|
|
2038
2034
|
});
|
|
2039
2035
|
}, "newActivation"),
|
|
2040
2036
|
endActivation: /* @__PURE__ */ x(function(e) {
|
|
@@ -2076,7 +2072,7 @@ var _r = ee, gr = {
|
|
|
2076
2072
|
this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
|
|
2077
2073
|
}, "resetVerticalPos"),
|
|
2078
2074
|
bumpVerticalPos: /* @__PURE__ */ x(function(e) {
|
|
2079
|
-
this.verticalPos = this.verticalPos + e, this.data.stopy =
|
|
2075
|
+
this.verticalPos = this.verticalPos + e, this.data.stopy = N.getMax(this.data.stopy, this.verticalPos);
|
|
2080
2076
|
}, "bumpVerticalPos"),
|
|
2081
2077
|
getVerticalPos: /* @__PURE__ */ x(function() {
|
|
2082
2078
|
return this.verticalPos;
|
|
@@ -2084,48 +2080,48 @@ var _r = ee, gr = {
|
|
|
2084
2080
|
getBounds: /* @__PURE__ */ x(function() {
|
|
2085
2081
|
return { bounds: this.data, models: this.models };
|
|
2086
2082
|
}, "getBounds")
|
|
2087
|
-
},
|
|
2083
|
+
}, Qr = /* @__PURE__ */ x(async function(e, t, a) {
|
|
2088
2084
|
R.bumpVerticalPos(l.boxMargin), t.height = l.boxMargin, t.starty = R.getVerticalPos();
|
|
2089
2085
|
const r = dt();
|
|
2090
2086
|
r.x = t.startx, r.y = t.starty, r.width = t.width || l.width, r.class = "note";
|
|
2091
2087
|
const i = e.append("g");
|
|
2092
2088
|
i.attr("data-et", "note"), i.attr("data-id", "i" + a);
|
|
2093
|
-
const n =
|
|
2089
|
+
const n = q.drawRect(i, r), s = ae();
|
|
2094
2090
|
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";
|
|
2095
|
-
const o = Q(s.text) ? await
|
|
2096
|
-
o.map((
|
|
2091
|
+
const o = Q(s.text) ? await Ft(i, s) : mt(i, s), u = Math.round(
|
|
2092
|
+
o.map((d) => (d._groups || d)[0][0].getBBox().height).reduce((d, p) => d + p)
|
|
2097
2093
|
);
|
|
2098
|
-
n.attr("height",
|
|
2099
|
-
}, "drawNote"),
|
|
2100
|
-
const o = r.db.getActors(),
|
|
2101
|
-
let _ =
|
|
2102
|
-
const O = _ <=
|
|
2103
|
-
const V =
|
|
2094
|
+
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);
|
|
2095
|
+
}, "drawNote"), De = /* @__PURE__ */ x(function(e, t, a, r, i, n, s) {
|
|
2096
|
+
const o = r.db.getActors(), u = o.get(t.from), d = o.get(t.to), p = a.sequenceVisible;
|
|
2097
|
+
let _ = u.x + u.width / 2, E = d.x + d.width / 2;
|
|
2098
|
+
const O = _ <= E, T = Xe(t, r), g = e.append("g"), f = 16.5, I = /* @__PURE__ */ x((D, M) => {
|
|
2099
|
+
const V = D ? f : -f;
|
|
2104
2100
|
return M ? -V : V;
|
|
2105
|
-
}, "getCircleOffset"), L = /* @__PURE__ */ x((
|
|
2106
|
-
g.append("circle").attr("cx",
|
|
2107
|
-
}, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE:
|
|
2101
|
+
}, "getCircleOffset"), L = /* @__PURE__ */ x((D) => {
|
|
2102
|
+
g.append("circle").attr("cx", D).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
|
|
2103
|
+
}, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: w, CENTRAL_CONNECTION_DUAL: A } = r.db.LINETYPE;
|
|
2108
2104
|
if (p)
|
|
2109
2105
|
switch (t.centralConnection) {
|
|
2110
2106
|
case b:
|
|
2111
|
-
T && (
|
|
2107
|
+
T && (E += I(O, !0));
|
|
2112
2108
|
break;
|
|
2113
|
-
case
|
|
2109
|
+
case w:
|
|
2114
2110
|
T || (_ += I(O, !1));
|
|
2115
2111
|
break;
|
|
2116
|
-
case
|
|
2117
|
-
T ?
|
|
2112
|
+
case A:
|
|
2113
|
+
T ? E += I(O, !0) : _ += I(O, !1);
|
|
2118
2114
|
break;
|
|
2119
2115
|
}
|
|
2120
2116
|
switch (t.centralConnection) {
|
|
2121
2117
|
case b:
|
|
2122
|
-
L(
|
|
2118
|
+
L(E);
|
|
2123
2119
|
break;
|
|
2124
|
-
case
|
|
2120
|
+
case w:
|
|
2125
2121
|
L(_);
|
|
2126
2122
|
break;
|
|
2127
|
-
case
|
|
2128
|
-
L(_), L(
|
|
2123
|
+
case A:
|
|
2124
|
+
L(_), L(E);
|
|
2129
2125
|
break;
|
|
2130
2126
|
}
|
|
2131
2127
|
}, "drawCentralConnection"), Rt = /* @__PURE__ */ x((e) => ({
|
|
@@ -2136,123 +2132,123 @@ var _r = ee, gr = {
|
|
|
2136
2132
|
fontFamily: e.noteFontFamily,
|
|
2137
2133
|
fontSize: e.noteFontSize,
|
|
2138
2134
|
fontWeight: e.noteFontWeight
|
|
2139
|
-
}), "noteFont"),
|
|
2135
|
+
}), "noteFont"), ee = /* @__PURE__ */ x((e) => ({
|
|
2140
2136
|
fontFamily: e.actorFontFamily,
|
|
2141
2137
|
fontSize: e.actorFontSize,
|
|
2142
2138
|
fontWeight: e.actorFontWeight
|
|
2143
2139
|
}), "actorFont");
|
|
2144
|
-
async function
|
|
2140
|
+
async function Fe(e, t) {
|
|
2145
2141
|
R.bumpVerticalPos(10);
|
|
2146
|
-
const { startx: a, stopx: r, message: i } = t, n =
|
|
2142
|
+
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));
|
|
2147
2143
|
if (!s) {
|
|
2148
2144
|
const _ = o.height / n;
|
|
2149
2145
|
t.height += _, R.bumpVerticalPos(_);
|
|
2150
2146
|
}
|
|
2151
|
-
let
|
|
2147
|
+
let u, d = o.height - 10;
|
|
2152
2148
|
const p = o.width;
|
|
2153
2149
|
if (a === r) {
|
|
2154
|
-
|
|
2155
|
-
const _ =
|
|
2150
|
+
u = R.getVerticalPos() + d, l.rightAngles || (d += l.boxMargin, u = R.getVerticalPos() + d), d += 30;
|
|
2151
|
+
const _ = N.getMax(p / 2, l.width / 2);
|
|
2156
2152
|
R.insert(
|
|
2157
2153
|
a - _,
|
|
2158
|
-
R.getVerticalPos() - 10 +
|
|
2154
|
+
R.getVerticalPos() - 10 + d,
|
|
2159
2155
|
r + _,
|
|
2160
|
-
R.getVerticalPos() + 30 +
|
|
2156
|
+
R.getVerticalPos() + 30 + d
|
|
2161
2157
|
);
|
|
2162
2158
|
} else
|
|
2163
|
-
|
|
2164
|
-
return R.bumpVerticalPos(
|
|
2159
|
+
d += l.boxMargin, u = R.getVerticalPos() + d, R.insert(a, u - 10, r, u);
|
|
2160
|
+
return R.bumpVerticalPos(d), t.height += d, t.stopy = t.starty + t.height, R.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), u;
|
|
2165
2161
|
}
|
|
2166
|
-
x(
|
|
2167
|
-
var
|
|
2168
|
-
const { startx: s, stopx: o, starty:
|
|
2169
|
-
T.x = Math.min(s, o), T.y =
|
|
2162
|
+
x(Fe, "boundMessage");
|
|
2163
|
+
var $r = /* @__PURE__ */ x(async function(e, t, a, r, i, n) {
|
|
2164
|
+
const { startx: s, stopx: o, starty: u, message: d, type: p, sequenceIndex: _, sequenceVisible: E } = t, O = Z.calculateTextDimensions(d, Rt(l)), T = ae();
|
|
2165
|
+
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);
|
|
2170
2166
|
const g = O.width;
|
|
2171
2167
|
let f;
|
|
2172
2168
|
if (s === o) {
|
|
2173
|
-
const L =
|
|
2169
|
+
const L = E || l.showSequenceNumbers, b = Xe(i, r), w = ia(i, r), A = s + (L && (b || w) ? 10 : 0);
|
|
2174
2170
|
l.rightAngles ? f = e.append("path").attr(
|
|
2175
2171
|
"d",
|
|
2176
|
-
`M ${
|
|
2172
|
+
`M ${A},${a} H ${s + N.getMax(l.width / 2, g / 2)} V ${a + 25} H ${s}`
|
|
2177
2173
|
) : f = e.append("path").attr(
|
|
2178
2174
|
"d",
|
|
2179
|
-
"M " +
|
|
2180
|
-
),
|
|
2175
|
+
"M " + A + "," + a + " C " + (A + 60) + "," + (a - 10) + " " + (s + 60) + "," + (a + 30) + " " + s + "," + (a + 20)
|
|
2176
|
+
), jt(i, r) && De(e, i, t, r, s, o, a);
|
|
2181
2177
|
} else
|
|
2182
|
-
f = e.append("line"), f.attr("x1", s), f.attr("y1", a), f.attr("x2", o), f.attr("y2", a),
|
|
2178
|
+
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);
|
|
2183
2179
|
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);
|
|
2184
2180
|
let I = "";
|
|
2185
|
-
if (l.arrowMarkerAbsolute && (I =
|
|
2186
|
-
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,
|
|
2187
|
-
let
|
|
2188
|
-
L ? (s < o ?
|
|
2181
|
+
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) {
|
|
2182
|
+
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);
|
|
2183
|
+
let D = s, M = o;
|
|
2184
|
+
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);
|
|
2189
2185
|
let V = 0;
|
|
2190
|
-
const
|
|
2191
|
-
|
|
2192
|
-
let
|
|
2186
|
+
const W = s === o, U = s <= o;
|
|
2187
|
+
W ? V = t.fromBounds + 1 : b ? V = U ? t.toBounds - 1 : t.fromBounds + 1 : V = U ? t.fromBounds + 1 : t.toBounds - 1;
|
|
2188
|
+
let G = "12px";
|
|
2193
2189
|
const X = _.toString().length;
|
|
2194
|
-
X > 5 ?
|
|
2190
|
+
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(_);
|
|
2195
2191
|
}
|
|
2196
|
-
}, "drawMessage"),
|
|
2197
|
-
let o = 0,
|
|
2192
|
+
}, "drawMessage"), jr = /* @__PURE__ */ x(function(e, t, a, r, i, n, s) {
|
|
2193
|
+
let o = 0, u = 0, d, p = 0;
|
|
2198
2194
|
for (const _ of r) {
|
|
2199
|
-
const
|
|
2200
|
-
|
|
2195
|
+
const E = t.get(_), O = E.box;
|
|
2196
|
+
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);
|
|
2201
2197
|
}
|
|
2202
|
-
|
|
2203
|
-
}, "addActorRenderingData"),
|
|
2198
|
+
d && !s && R.models.addBox(d), R.bumpVerticalPos(p);
|
|
2199
|
+
}, "addActorRenderingData"), re = /* @__PURE__ */ x(async function(e, t, a, r, i, n, s) {
|
|
2204
2200
|
if (r) {
|
|
2205
2201
|
let o = 0;
|
|
2206
2202
|
R.bumpVerticalPos(l.boxMargin * 2);
|
|
2207
|
-
for (const
|
|
2208
|
-
const
|
|
2209
|
-
|
|
2210
|
-
const p = await
|
|
2203
|
+
for (const u of a) {
|
|
2204
|
+
const d = t.get(u);
|
|
2205
|
+
d.stopy || (d.stopy = R.getVerticalPos());
|
|
2206
|
+
const p = await q.drawActor(
|
|
2211
2207
|
e,
|
|
2212
|
-
|
|
2208
|
+
d,
|
|
2213
2209
|
l,
|
|
2214
2210
|
!0,
|
|
2215
2211
|
i,
|
|
2216
2212
|
n,
|
|
2217
2213
|
s
|
|
2218
2214
|
);
|
|
2219
|
-
o =
|
|
2215
|
+
o = N.getMax(o, p);
|
|
2220
2216
|
}
|
|
2221
2217
|
R.bumpVerticalPos(o + l.boxMargin);
|
|
2222
2218
|
} else
|
|
2223
2219
|
for (const o of a) {
|
|
2224
|
-
const
|
|
2225
|
-
await
|
|
2220
|
+
const u = t.get(o);
|
|
2221
|
+
await q.drawActor(e, u, l, !1, i, n, s);
|
|
2226
2222
|
}
|
|
2227
|
-
}, "drawActors"),
|
|
2223
|
+
}, "drawActors"), qe = /* @__PURE__ */ x(function(e, t, a, r) {
|
|
2228
2224
|
let i = 0, n = 0;
|
|
2229
2225
|
for (const s of a) {
|
|
2230
|
-
const o = t.get(s),
|
|
2226
|
+
const o = t.get(s), u = ea(o), d = q.drawPopup(
|
|
2231
2227
|
e,
|
|
2232
2228
|
o,
|
|
2233
|
-
|
|
2229
|
+
u,
|
|
2234
2230
|
l,
|
|
2235
2231
|
l.forceMenus,
|
|
2236
2232
|
r
|
|
2237
2233
|
);
|
|
2238
|
-
|
|
2234
|
+
d.height > i && (i = d.height), d.width + o.x > n && (n = d.width + o.x);
|
|
2239
2235
|
}
|
|
2240
2236
|
return { maxHeight: i, maxWidth: n };
|
|
2241
|
-
}, "drawActorsPopup"),
|
|
2242
|
-
|
|
2243
|
-
}, "setConf"),
|
|
2237
|
+
}, "drawActorsPopup"), He = /* @__PURE__ */ x(function(e) {
|
|
2238
|
+
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);
|
|
2239
|
+
}, "setConf"), zt = /* @__PURE__ */ x(function(e) {
|
|
2244
2240
|
return R.activations.filter(function(t) {
|
|
2245
2241
|
return t.actor === e;
|
|
2246
2242
|
});
|
|
2247
|
-
}, "actorActivations"),
|
|
2248
|
-
const a = t.get(e), r =
|
|
2243
|
+
}, "actorActivations"), ve = /* @__PURE__ */ x(function(e, t) {
|
|
2244
|
+
const a = t.get(e), r = zt(e), i = r.reduce(
|
|
2249
2245
|
function(s, o) {
|
|
2250
|
-
return
|
|
2246
|
+
return N.getMin(s, o.startx);
|
|
2251
2247
|
},
|
|
2252
2248
|
a.x + a.width / 2 - 1
|
|
2253
2249
|
), n = r.reduce(
|
|
2254
2250
|
function(s, o) {
|
|
2255
|
-
return
|
|
2251
|
+
return N.getMax(s, o.stopx);
|
|
2256
2252
|
},
|
|
2257
2253
|
a.x + a.width / 2 + 1
|
|
2258
2254
|
);
|
|
@@ -2264,13 +2260,13 @@ function ht(e, t, a, r, i) {
|
|
|
2264
2260
|
if (t.id && t.message && e[t.id]) {
|
|
2265
2261
|
const s = e[t.id].width, o = Rt(l);
|
|
2266
2262
|
t.message = Z.wrapLabel(`[${t.message}]`, s - 2 * l.wrapPadding, o), t.width = s, t.wrap = !0;
|
|
2267
|
-
const
|
|
2268
|
-
n = r +
|
|
2263
|
+
const u = Z.calculateTextDimensions(t.message, o), d = N.getMax(u.height, l.labelBoxHeight);
|
|
2264
|
+
n = r + d, at.debug(`${d} - ${t.message}`);
|
|
2269
2265
|
}
|
|
2270
2266
|
i(t), R.bumpVerticalPos(n);
|
|
2271
2267
|
}
|
|
2272
2268
|
x(ht, "adjustLoopHeightForWrap");
|
|
2273
|
-
function
|
|
2269
|
+
function ze(e, t, a, r, i, n, s) {
|
|
2274
2270
|
function o(p, _) {
|
|
2275
2271
|
p.x < i.get(e.from).x ? (R.insert(
|
|
2276
2272
|
t.stopx - _,
|
|
@@ -2285,7 +2281,7 @@ function Ue(e, t, a, r, i, n, s) {
|
|
|
2285
2281
|
), t.stopx = t.stopx - _);
|
|
2286
2282
|
}
|
|
2287
2283
|
x(o, "receiverAdjustment");
|
|
2288
|
-
function
|
|
2284
|
+
function u(p, _) {
|
|
2289
2285
|
p.x < i.get(e.to).x ? (R.insert(
|
|
2290
2286
|
t.startx - _,
|
|
2291
2287
|
t.starty,
|
|
@@ -2298,219 +2294,216 @@ function Ue(e, t, a, r, i, n, s) {
|
|
|
2298
2294
|
t.stopy + p.height / 2 + l.noteMargin
|
|
2299
2295
|
), t.startx = t.startx - _);
|
|
2300
2296
|
}
|
|
2301
|
-
x(
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2297
|
+
x(u, "senderAdjustment");
|
|
2298
|
+
const d = [
|
|
2299
|
+
Wt.ACTOR,
|
|
2300
|
+
Wt.CONTROL,
|
|
2301
|
+
Wt.ENTITY,
|
|
2302
|
+
Wt.DATABASE
|
|
2307
2303
|
];
|
|
2308
2304
|
if (n.get(e.to) == r) {
|
|
2309
|
-
const p = i.get(e.to), _ =
|
|
2305
|
+
const p = i.get(e.to), _ = d.includes(p.type) ? It / 2 + 3 : p.width / 2 + 3;
|
|
2310
2306
|
o(p, _), p.starty = a - p.height / 2, R.bumpVerticalPos(p.height / 2);
|
|
2311
2307
|
} else if (s.get(e.from) == r) {
|
|
2312
2308
|
const p = i.get(e.from);
|
|
2313
2309
|
if (l.mirrorActors) {
|
|
2314
|
-
const _ =
|
|
2315
|
-
|
|
2310
|
+
const _ = d.includes(p.type) ? It / 2 : p.width / 2;
|
|
2311
|
+
u(p, _);
|
|
2316
2312
|
}
|
|
2317
2313
|
p.stopy = a - p.height / 2, R.bumpVerticalPos(p.height / 2);
|
|
2318
2314
|
} else if (s.get(e.to) == r) {
|
|
2319
2315
|
const p = i.get(e.to);
|
|
2320
2316
|
if (l.mirrorActors) {
|
|
2321
|
-
const _ =
|
|
2317
|
+
const _ = d.includes(p.type) ? It / 2 + 3 : p.width / 2 + 3;
|
|
2322
2318
|
o(p, _);
|
|
2323
2319
|
}
|
|
2324
2320
|
p.stopy = a - p.height / 2, R.bumpVerticalPos(p.height / 2);
|
|
2325
2321
|
}
|
|
2326
2322
|
}
|
|
2327
|
-
x(
|
|
2328
|
-
var
|
|
2329
|
-
const { securityLevel: i, sequence: n, look: s, themeVariables: o } =
|
|
2323
|
+
x(ze, "adjustCreatedDestroyedData");
|
|
2324
|
+
var ta = /* @__PURE__ */ x(async function(e, t, a, r) {
|
|
2325
|
+
const { securityLevel: i, sequence: n, look: s, themeVariables: o } = $();
|
|
2330
2326
|
l = n;
|
|
2331
|
-
let
|
|
2332
|
-
i === "sandbox" && (
|
|
2333
|
-
const
|
|
2334
|
-
R.init(),
|
|
2335
|
-
const _ = i === "sandbox" ?
|
|
2327
|
+
let u;
|
|
2328
|
+
i === "sandbox" && (u = Vt("#i" + t));
|
|
2329
|
+
const d = i === "sandbox" ? Vt(u.nodes()[0].contentDocument.body) : Vt("body"), p = i === "sandbox" ? u.nodes()[0].contentDocument : document;
|
|
2330
|
+
R.init(), at.debug(r.db);
|
|
2331
|
+
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();
|
|
2336
2332
|
let f = r.db.getActorKeys();
|
|
2337
|
-
const I = r.db.getMessages(), L = r.db.getDiagramTitle(), b = r.db.hasAtLeastOneBox(),
|
|
2338
|
-
if (l.height = await
|
|
2339
|
-
const
|
|
2340
|
-
I.forEach((
|
|
2341
|
-
|
|
2342
|
-
}), f = f.filter((
|
|
2343
|
-
}
|
|
2344
|
-
const
|
|
2345
|
-
f.map((
|
|
2346
|
-
var rt;
|
|
2347
|
-
return [((rt = u.get(A)) == null ? void 0 : rt.name) ?? A, D];
|
|
2348
|
-
})
|
|
2333
|
+
const I = r.db.getMessages(), L = r.db.getDiagramTitle(), b = r.db.hasAtLeastOneBox(), w = r.db.hasAtLeastOneBoxWithTitle(), A = await Ue(E, I, r);
|
|
2334
|
+
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) {
|
|
2335
|
+
const m = /* @__PURE__ */ new Set();
|
|
2336
|
+
I.forEach((k) => {
|
|
2337
|
+
m.add(k.from), m.add(k.to);
|
|
2338
|
+
}), f = f.filter((k) => m.has(k));
|
|
2339
|
+
}
|
|
2340
|
+
const D = new Map(
|
|
2341
|
+
f.map((m, k) => [E.get(m)?.name ?? m, k])
|
|
2349
2342
|
);
|
|
2350
|
-
|
|
2351
|
-
const M = await
|
|
2352
|
-
|
|
2353
|
-
function V(
|
|
2354
|
-
const
|
|
2355
|
-
|
|
2343
|
+
jr(_, E, O, f, 0, I, !1);
|
|
2344
|
+
const M = await oa(I, E, A, r);
|
|
2345
|
+
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);
|
|
2346
|
+
function V(m, k) {
|
|
2347
|
+
const lt = R.endActivation(m);
|
|
2348
|
+
lt.starty + 18 > k && (lt.starty = k - 6, k += 12), q.drawActivation(
|
|
2356
2349
|
_,
|
|
2357
|
-
|
|
2358
|
-
|
|
2350
|
+
lt,
|
|
2351
|
+
k,
|
|
2359
2352
|
l,
|
|
2360
|
-
|
|
2353
|
+
zt(m.from).length,
|
|
2361
2354
|
r,
|
|
2362
|
-
|
|
2363
|
-
), R.insert(
|
|
2355
|
+
D
|
|
2356
|
+
), R.insert(lt.startx, k - 10, lt.stopx, k);
|
|
2364
2357
|
}
|
|
2365
2358
|
x(V, "activeEnd");
|
|
2366
|
-
let
|
|
2367
|
-
const
|
|
2368
|
-
let
|
|
2369
|
-
for (const
|
|
2370
|
-
let
|
|
2371
|
-
switch (
|
|
2359
|
+
let W = 1, U = 1;
|
|
2360
|
+
const G = [], X = [];
|
|
2361
|
+
let nt = 0;
|
|
2362
|
+
for (const m of I) {
|
|
2363
|
+
let k, lt, et;
|
|
2364
|
+
switch (m.type) {
|
|
2372
2365
|
case r.db.LINETYPE.NOTE:
|
|
2373
|
-
R.resetVerticalPos(),
|
|
2366
|
+
R.resetVerticalPos(), lt = m.noteModel, await Qr(_, lt, m.id);
|
|
2374
2367
|
break;
|
|
2375
2368
|
case r.db.LINETYPE.ACTIVE_START:
|
|
2376
|
-
R.newActivation(
|
|
2369
|
+
R.newActivation(m, _, E);
|
|
2377
2370
|
break;
|
|
2378
2371
|
case r.db.LINETYPE.CENTRAL_CONNECTION:
|
|
2379
|
-
R.newActivation(
|
|
2372
|
+
R.newActivation(m, _, E);
|
|
2380
2373
|
break;
|
|
2381
2374
|
case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
|
|
2382
|
-
R.newActivation(
|
|
2375
|
+
R.newActivation(m, _, E);
|
|
2383
2376
|
break;
|
|
2384
2377
|
case r.db.LINETYPE.ACTIVE_END:
|
|
2385
|
-
V(
|
|
2378
|
+
V(m, R.getVerticalPos());
|
|
2386
2379
|
break;
|
|
2387
2380
|
case r.db.LINETYPE.LOOP_START:
|
|
2388
2381
|
ht(
|
|
2389
2382
|
M,
|
|
2390
|
-
|
|
2383
|
+
m,
|
|
2391
2384
|
l.boxMargin,
|
|
2392
2385
|
l.boxMargin + l.boxTextMargin,
|
|
2393
|
-
(
|
|
2386
|
+
(K) => R.newLoop(K)
|
|
2394
2387
|
);
|
|
2395
2388
|
break;
|
|
2396
2389
|
case r.db.LINETYPE.LOOP_END:
|
|
2397
|
-
|
|
2390
|
+
k = R.endLoop(), await q.drawLoop(_, k, "loop", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
|
|
2398
2391
|
break;
|
|
2399
2392
|
case r.db.LINETYPE.RECT_START:
|
|
2400
|
-
ht(M,
|
|
2401
|
-
let Ot =
|
|
2402
|
-
Ot || (Ot =
|
|
2393
|
+
ht(M, m, l.boxMargin, l.boxMargin, (K) => {
|
|
2394
|
+
let Ot = K.message;
|
|
2395
|
+
Ot || (Ot = o?.rectBkgColor || o?.actorBkg || "rgba(128, 128, 128, 0.5)"), R.newLoop(void 0, Ot);
|
|
2403
2396
|
});
|
|
2404
2397
|
break;
|
|
2405
2398
|
case r.db.LINETYPE.RECT_END:
|
|
2406
|
-
|
|
2399
|
+
k = R.endLoop(), X.push(k), R.models.addLoop(k), R.bumpVerticalPos(k.stopy - R.getVerticalPos());
|
|
2407
2400
|
break;
|
|
2408
2401
|
case r.db.LINETYPE.OPT_START:
|
|
2409
2402
|
ht(
|
|
2410
2403
|
M,
|
|
2411
|
-
|
|
2404
|
+
m,
|
|
2412
2405
|
l.boxMargin,
|
|
2413
2406
|
l.boxMargin + l.boxTextMargin,
|
|
2414
|
-
(
|
|
2407
|
+
(K) => R.newLoop(K)
|
|
2415
2408
|
);
|
|
2416
2409
|
break;
|
|
2417
2410
|
case r.db.LINETYPE.OPT_END:
|
|
2418
|
-
|
|
2411
|
+
k = R.endLoop(), await q.drawLoop(_, k, "opt", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
|
|
2419
2412
|
break;
|
|
2420
2413
|
case r.db.LINETYPE.ALT_START:
|
|
2421
2414
|
ht(
|
|
2422
2415
|
M,
|
|
2423
|
-
|
|
2416
|
+
m,
|
|
2424
2417
|
l.boxMargin,
|
|
2425
2418
|
l.boxMargin + l.boxTextMargin,
|
|
2426
|
-
(
|
|
2419
|
+
(K) => R.newLoop(K)
|
|
2427
2420
|
);
|
|
2428
2421
|
break;
|
|
2429
2422
|
case r.db.LINETYPE.ALT_ELSE:
|
|
2430
2423
|
ht(
|
|
2431
2424
|
M,
|
|
2432
|
-
|
|
2425
|
+
m,
|
|
2433
2426
|
l.boxMargin + l.boxTextMargin,
|
|
2434
2427
|
l.boxMargin,
|
|
2435
|
-
(
|
|
2428
|
+
(K) => R.addSectionToLoop(K)
|
|
2436
2429
|
);
|
|
2437
2430
|
break;
|
|
2438
2431
|
case r.db.LINETYPE.ALT_END:
|
|
2439
|
-
|
|
2432
|
+
k = R.endLoop(), await q.drawLoop(_, k, "alt", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
|
|
2440
2433
|
break;
|
|
2441
2434
|
case r.db.LINETYPE.PAR_START:
|
|
2442
2435
|
case r.db.LINETYPE.PAR_OVER_START:
|
|
2443
2436
|
ht(
|
|
2444
2437
|
M,
|
|
2445
|
-
|
|
2438
|
+
m,
|
|
2446
2439
|
l.boxMargin,
|
|
2447
2440
|
l.boxMargin + l.boxTextMargin,
|
|
2448
|
-
(
|
|
2441
|
+
(K) => R.newLoop(K)
|
|
2449
2442
|
), R.saveVerticalPos();
|
|
2450
2443
|
break;
|
|
2451
2444
|
case r.db.LINETYPE.PAR_AND:
|
|
2452
2445
|
ht(
|
|
2453
2446
|
M,
|
|
2454
|
-
|
|
2447
|
+
m,
|
|
2455
2448
|
l.boxMargin + l.boxTextMargin,
|
|
2456
2449
|
l.boxMargin,
|
|
2457
|
-
(
|
|
2450
|
+
(K) => R.addSectionToLoop(K)
|
|
2458
2451
|
);
|
|
2459
2452
|
break;
|
|
2460
2453
|
case r.db.LINETYPE.PAR_END:
|
|
2461
|
-
|
|
2454
|
+
k = R.endLoop(), await q.drawLoop(_, k, "par", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
|
|
2462
2455
|
break;
|
|
2463
2456
|
case r.db.LINETYPE.AUTONUMBER:
|
|
2464
|
-
|
|
2457
|
+
W = m.message.start || W, U = m.message.step || U, m.message.visible ? r.db.enableSequenceNumbers() : r.db.disableSequenceNumbers();
|
|
2465
2458
|
break;
|
|
2466
2459
|
case r.db.LINETYPE.CRITICAL_START:
|
|
2467
2460
|
ht(
|
|
2468
2461
|
M,
|
|
2469
|
-
|
|
2462
|
+
m,
|
|
2470
2463
|
l.boxMargin,
|
|
2471
2464
|
l.boxMargin + l.boxTextMargin,
|
|
2472
|
-
(
|
|
2465
|
+
(K) => R.newLoop(K)
|
|
2473
2466
|
);
|
|
2474
2467
|
break;
|
|
2475
2468
|
case r.db.LINETYPE.CRITICAL_OPTION:
|
|
2476
2469
|
ht(
|
|
2477
2470
|
M,
|
|
2478
|
-
|
|
2471
|
+
m,
|
|
2479
2472
|
l.boxMargin + l.boxTextMargin,
|
|
2480
2473
|
l.boxMargin,
|
|
2481
|
-
(
|
|
2474
|
+
(K) => R.addSectionToLoop(K)
|
|
2482
2475
|
);
|
|
2483
2476
|
break;
|
|
2484
2477
|
case r.db.LINETYPE.CRITICAL_END:
|
|
2485
|
-
|
|
2478
|
+
k = R.endLoop(), await q.drawLoop(_, k, "critical", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
|
|
2486
2479
|
break;
|
|
2487
2480
|
case r.db.LINETYPE.BREAK_START:
|
|
2488
2481
|
ht(
|
|
2489
2482
|
M,
|
|
2490
|
-
|
|
2483
|
+
m,
|
|
2491
2484
|
l.boxMargin,
|
|
2492
2485
|
l.boxMargin + l.boxTextMargin,
|
|
2493
|
-
(
|
|
2486
|
+
(K) => R.newLoop(K)
|
|
2494
2487
|
);
|
|
2495
2488
|
break;
|
|
2496
2489
|
case r.db.LINETYPE.BREAK_END:
|
|
2497
|
-
|
|
2490
|
+
k = R.endLoop(), await q.drawLoop(_, k, "break", l, m), R.bumpVerticalPos(k.stopy - R.getVerticalPos()), R.models.addLoop(k);
|
|
2498
2491
|
break;
|
|
2499
2492
|
default:
|
|
2500
2493
|
try {
|
|
2501
|
-
|
|
2502
|
-
const
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2494
|
+
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;
|
|
2495
|
+
const K = await Fe(_, et);
|
|
2496
|
+
ze(
|
|
2497
|
+
m,
|
|
2498
|
+
et,
|
|
2499
|
+
K,
|
|
2500
|
+
nt,
|
|
2501
|
+
E,
|
|
2509
2502
|
O,
|
|
2510
2503
|
T
|
|
2511
|
-
),
|
|
2512
|
-
} catch (
|
|
2513
|
-
|
|
2504
|
+
), G.push({ messageModel: et, lineStartY: K, msg: m }), R.models.addMessage(et);
|
|
2505
|
+
} catch (K) {
|
|
2506
|
+
at.error("error while drawing message", K);
|
|
2514
2507
|
}
|
|
2515
2508
|
}
|
|
2516
2509
|
[
|
|
@@ -2540,91 +2533,91 @@ var ea = /* @__PURE__ */ x(async function(e, t, a, r) {
|
|
|
2540
2533
|
r.db.LINETYPE.DOTTED_POINT,
|
|
2541
2534
|
r.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
2542
2535
|
r.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
2543
|
-
].includes(
|
|
2536
|
+
].includes(m.type) && (W = Math.round((W + U) * 100) / 100), nt++;
|
|
2544
2537
|
}
|
|
2545
|
-
|
|
2546
|
-
for (const
|
|
2547
|
-
await
|
|
2548
|
-
l.mirrorActors && await
|
|
2549
|
-
for (const
|
|
2550
|
-
|
|
2551
|
-
const
|
|
2552
|
-
|
|
2538
|
+
at.debug("createdActors", O), at.debug("destroyedActors", T), await re(_, E, f, !1, t, r, D);
|
|
2539
|
+
for (const m of G)
|
|
2540
|
+
await $r(_, m.messageModel, m.lineStartY, r, m.msg, t);
|
|
2541
|
+
l.mirrorActors && await re(_, E, f, !0, t, r, D), X.forEach((m) => q.drawBackgroundRect(_, m)), Ye(_, E, f, l);
|
|
2542
|
+
for (const m of R.models.boxes) {
|
|
2543
|
+
m.height = R.getVerticalPos() - m.y, R.insert(m.x, m.y, m.x + m.width, m.height);
|
|
2544
|
+
const k = l.boxMargin * 2;
|
|
2545
|
+
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);
|
|
2553
2546
|
}
|
|
2554
2547
|
b && R.bumpVerticalPos(l.boxMargin);
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2557
|
-
let
|
|
2558
|
-
|
|
2559
|
-
let
|
|
2560
|
-
l.mirrorActors && (
|
|
2561
|
-
let
|
|
2562
|
-
|
|
2563
|
-
const C =
|
|
2564
|
-
L && _.append("text").text(L).attr("x", (
|
|
2565
|
-
const
|
|
2548
|
+
const j = qe(_, E, f, p), { bounds: H } = R.getBounds();
|
|
2549
|
+
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);
|
|
2550
|
+
let st = H.stopy - H.starty;
|
|
2551
|
+
st < j.maxHeight && (st = j.maxHeight);
|
|
2552
|
+
let tt = st + 2 * l.diagramMarginY;
|
|
2553
|
+
l.mirrorActors && (tt = tt - l.boxMargin + l.bottomMarginAdj);
|
|
2554
|
+
let Y = H.stopx - H.startx;
|
|
2555
|
+
Y < j.maxWidth && (Y = j.maxWidth);
|
|
2556
|
+
const C = Y + 2 * l.diagramMarginX;
|
|
2557
|
+
L && _.append("text").text(L).attr("x", (H.stopx - H.startx) / 2 - 2 * l.diagramMarginX).attr("y", -25), rr(_, tt, C, l.useMaxWidth);
|
|
2558
|
+
const At = L ? 40 : 0, kt = E.size && s === "neo" ? 30 : 0;
|
|
2566
2559
|
_.attr(
|
|
2567
2560
|
"viewBox",
|
|
2568
|
-
|
|
2569
|
-
),
|
|
2561
|
+
H.startx - l.diagramMarginX + " -" + (l.diagramMarginY + At) + " " + C + " " + (tt + At + kt)
|
|
2562
|
+
), at.debug("models:", R.models);
|
|
2570
2563
|
}, "draw");
|
|
2571
|
-
async function
|
|
2564
|
+
async function Ue(e, t, a) {
|
|
2572
2565
|
const r = {};
|
|
2573
2566
|
for (const i of t)
|
|
2574
2567
|
if (e.get(i.to) && e.get(i.from)) {
|
|
2575
2568
|
const n = e.get(i.to);
|
|
2576
2569
|
if (i.placement === a.db.PLACEMENT.LEFTOF && !n.prevActor || i.placement === a.db.PLACEMENT.RIGHTOF && !n.nextActor)
|
|
2577
2570
|
continue;
|
|
2578
|
-
const s = i.placement !== void 0, o = !s,
|
|
2579
|
-
o && i.from === n.nextActor ? r[i.to] =
|
|
2571
|
+
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;
|
|
2572
|
+
o && i.from === n.nextActor ? r[i.to] = N.getMax(
|
|
2580
2573
|
r[i.to] || 0,
|
|
2581
2574
|
_
|
|
2582
|
-
) : o && i.from === n.prevActor ? r[i.from] =
|
|
2575
|
+
) : o && i.from === n.prevActor ? r[i.from] = N.getMax(
|
|
2583
2576
|
r[i.from] || 0,
|
|
2584
2577
|
_
|
|
2585
|
-
) : o && i.from === i.to ? (r[i.from] =
|
|
2578
|
+
) : o && i.from === i.to ? (r[i.from] = N.getMax(
|
|
2586
2579
|
r[i.from] || 0,
|
|
2587
2580
|
_ / 2
|
|
2588
|
-
), r[i.to] =
|
|
2581
|
+
), r[i.to] = N.getMax(
|
|
2589
2582
|
r[i.to] || 0,
|
|
2590
2583
|
_ / 2
|
|
2591
|
-
)) : i.placement === a.db.PLACEMENT.RIGHTOF ? r[i.from] =
|
|
2584
|
+
)) : i.placement === a.db.PLACEMENT.RIGHTOF ? r[i.from] = N.getMax(
|
|
2592
2585
|
r[i.from] || 0,
|
|
2593
2586
|
_
|
|
2594
|
-
) : i.placement === a.db.PLACEMENT.LEFTOF ? r[n.prevActor] =
|
|
2587
|
+
) : i.placement === a.db.PLACEMENT.LEFTOF ? r[n.prevActor] = N.getMax(
|
|
2595
2588
|
r[n.prevActor] || 0,
|
|
2596
2589
|
_
|
|
2597
|
-
) : i.placement === a.db.PLACEMENT.OVER && (n.prevActor && (r[n.prevActor] =
|
|
2590
|
+
) : i.placement === a.db.PLACEMENT.OVER && (n.prevActor && (r[n.prevActor] = N.getMax(
|
|
2598
2591
|
r[n.prevActor] || 0,
|
|
2599
2592
|
_ / 2
|
|
2600
|
-
)), n.nextActor && (r[i.from] =
|
|
2593
|
+
)), n.nextActor && (r[i.from] = N.getMax(
|
|
2601
2594
|
r[i.from] || 0,
|
|
2602
2595
|
_ / 2
|
|
2603
2596
|
)));
|
|
2604
2597
|
}
|
|
2605
|
-
return
|
|
2598
|
+
return at.debug("maxMessageWidthPerActor:", r), r;
|
|
2606
2599
|
}
|
|
2607
|
-
x(
|
|
2608
|
-
var
|
|
2600
|
+
x(Ue, "getMaxMessageWidthPerActor");
|
|
2601
|
+
var ea = /* @__PURE__ */ x(function(e) {
|
|
2609
2602
|
let t = 0;
|
|
2610
|
-
const a =
|
|
2603
|
+
const a = ee(l);
|
|
2611
2604
|
for (const r in e.links) {
|
|
2612
2605
|
const n = Z.calculateTextDimensions(r, a).width + 2 * l.wrapPadding + 2 * l.boxMargin;
|
|
2613
2606
|
t < n && (t = n);
|
|
2614
2607
|
}
|
|
2615
2608
|
return t;
|
|
2616
2609
|
}, "getRequiredPopupWidth");
|
|
2617
|
-
async function
|
|
2610
|
+
async function Ge(e, t, a) {
|
|
2618
2611
|
let r = 0;
|
|
2619
2612
|
for (const n of e.keys()) {
|
|
2620
2613
|
const s = e.get(n);
|
|
2621
2614
|
s.wrap && (s.description = Z.wrapLabel(
|
|
2622
2615
|
s.description,
|
|
2623
2616
|
l.width - 2 * l.wrapPadding,
|
|
2624
|
-
|
|
2617
|
+
ee(l)
|
|
2625
2618
|
));
|
|
2626
|
-
const o = Q(s.description) ? await
|
|
2627
|
-
s.width = s.wrap ? l.width :
|
|
2619
|
+
const o = Q(s.description) ? await Pt(s.description, $()) : Z.calculateTextDimensions(s.description, ee(l));
|
|
2620
|
+
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);
|
|
2628
2621
|
}
|
|
2629
2622
|
for (const n in t) {
|
|
2630
2623
|
const s = e.get(n);
|
|
@@ -2633,36 +2626,36 @@ async function Xe(e, t, a) {
|
|
|
2633
2626
|
const o = e.get(s.nextActor);
|
|
2634
2627
|
if (!o) {
|
|
2635
2628
|
const _ = t[n] + l.actorMargin - s.width / 2;
|
|
2636
|
-
s.margin =
|
|
2629
|
+
s.margin = N.getMax(_, l.actorMargin);
|
|
2637
2630
|
continue;
|
|
2638
2631
|
}
|
|
2639
|
-
const
|
|
2640
|
-
s.margin =
|
|
2632
|
+
const d = t[n] + l.actorMargin - s.width / 2 - o.width / 2;
|
|
2633
|
+
s.margin = N.getMax(d, l.actorMargin);
|
|
2641
2634
|
}
|
|
2642
2635
|
let i = 0;
|
|
2643
2636
|
return a.forEach((n) => {
|
|
2644
2637
|
const s = Rt(l);
|
|
2645
|
-
let o = n.actorKeys.reduce((_,
|
|
2646
|
-
const
|
|
2647
|
-
o +=
|
|
2648
|
-
const
|
|
2649
|
-
i =
|
|
2650
|
-
const p =
|
|
2638
|
+
let o = n.actorKeys.reduce((_, E) => _ += e.get(E).width + (e.get(E).margin || 0), 0);
|
|
2639
|
+
const u = l.boxMargin * 8;
|
|
2640
|
+
o += u, o -= 2 * l.boxTextMargin, n.wrap && (n.name = Z.wrapLabel(n.name, o - 2 * l.wrapPadding, s));
|
|
2641
|
+
const d = Z.calculateTextDimensions(n.name, s);
|
|
2642
|
+
i = N.getMax(d.height, i);
|
|
2643
|
+
const p = N.getMax(o, d.width + 2 * l.wrapPadding);
|
|
2651
2644
|
if (n.margin = l.boxTextMargin, o < p) {
|
|
2652
2645
|
const _ = (p - o) / 2;
|
|
2653
2646
|
n.margin += _;
|
|
2654
2647
|
}
|
|
2655
|
-
}), a.forEach((n) => n.textMaxHeight = i),
|
|
2648
|
+
}), a.forEach((n) => n.textMaxHeight = i), N.getMax(r, l.height);
|
|
2656
2649
|
}
|
|
2657
|
-
x(
|
|
2658
|
-
var
|
|
2650
|
+
x(Ge, "calculateActorMargins");
|
|
2651
|
+
var ra = /* @__PURE__ */ x(async function(e, t, a) {
|
|
2659
2652
|
const r = t.get(e.from), i = t.get(e.to), n = r.x, s = i.x, o = e.wrap && e.message;
|
|
2660
|
-
let
|
|
2653
|
+
let u = Q(e.message) ? await Pt(e.message, $()) : Z.calculateTextDimensions(
|
|
2661
2654
|
o ? Z.wrapLabel(e.message, l.width, bt(l)) : e.message,
|
|
2662
2655
|
bt(l)
|
|
2663
2656
|
);
|
|
2664
|
-
const
|
|
2665
|
-
width: o ? l.width :
|
|
2657
|
+
const d = {
|
|
2658
|
+
width: o ? l.width : N.getMax(l.width, u.width + 2 * l.noteMargin),
|
|
2666
2659
|
height: 0,
|
|
2667
2660
|
startx: r.x,
|
|
2668
2661
|
stopx: 0,
|
|
@@ -2670,28 +2663,28 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2670
2663
|
stopy: 0,
|
|
2671
2664
|
message: e.message
|
|
2672
2665
|
};
|
|
2673
|
-
return e.placement === a.db.PLACEMENT.RIGHTOF ? (
|
|
2666
|
+
return e.placement === a.db.PLACEMENT.RIGHTOF ? (d.width = o ? N.getMax(l.width, u.width) : N.getMax(
|
|
2674
2667
|
r.width / 2 + i.width / 2,
|
|
2675
|
-
|
|
2676
|
-
),
|
|
2668
|
+
u.width + 2 * l.noteMargin
|
|
2669
|
+
), 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(
|
|
2677
2670
|
r.width / 2 + i.width / 2,
|
|
2678
|
-
|
|
2679
|
-
),
|
|
2680
|
-
o ? Z.wrapLabel(e.message,
|
|
2671
|
+
u.width + 2 * l.noteMargin
|
|
2672
|
+
), d.startx = n - d.width + (r.width - l.actorMargin) / 2) : e.to === e.from ? (u = Z.calculateTextDimensions(
|
|
2673
|
+
o ? Z.wrapLabel(e.message, N.getMax(l.width, r.width), bt(l)) : e.message,
|
|
2681
2674
|
bt(l)
|
|
2682
|
-
),
|
|
2675
|
+
), 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(
|
|
2683
2676
|
e.message,
|
|
2684
|
-
|
|
2677
|
+
d.width - 2 * l.wrapPadding,
|
|
2685
2678
|
bt(l)
|
|
2686
|
-
)),
|
|
2687
|
-
`NM:[${
|
|
2688
|
-
),
|
|
2689
|
-
}, "buildNoteModel"),
|
|
2679
|
+
)), at.debug(
|
|
2680
|
+
`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`
|
|
2681
|
+
), d;
|
|
2682
|
+
}, "buildNoteModel"), aa = 4, jt = /* @__PURE__ */ x(function(e, t) {
|
|
2690
2683
|
const { CENTRAL_CONNECTION: a, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
|
|
2691
2684
|
return [a, r, i].includes(
|
|
2692
2685
|
e.centralConnection
|
|
2693
2686
|
);
|
|
2694
|
-
}, "hasCentralConnection"),
|
|
2687
|
+
}, "hasCentralConnection"), sa = /* @__PURE__ */ x(function(e, t, a) {
|
|
2695
2688
|
const {
|
|
2696
2689
|
CENTRAL_CONNECTION_REVERSE: r,
|
|
2697
2690
|
CENTRAL_CONNECTION_DUAL: i,
|
|
@@ -2699,8 +2692,8 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2699
2692
|
BIDIRECTIONAL_DOTTED: s
|
|
2700
2693
|
} = t.db.LINETYPE;
|
|
2701
2694
|
let o = 0;
|
|
2702
|
-
return (e.centralConnection === r || e.centralConnection === i) && (o +=
|
|
2703
|
-
}, "calculateCentralConnectionOffset"),
|
|
2695
|
+
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;
|
|
2696
|
+
}, "calculateCentralConnectionOffset"), Xe = /* @__PURE__ */ x(function(e, t) {
|
|
2704
2697
|
const {
|
|
2705
2698
|
SOLID_ARROW_TOP_REVERSE: a,
|
|
2706
2699
|
SOLID_ARROW_TOP_REVERSE_DOTTED: r,
|
|
@@ -2708,8 +2701,8 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2708
2701
|
SOLID_ARROW_BOTTOM_REVERSE_DOTTED: n,
|
|
2709
2702
|
STICK_ARROW_TOP_REVERSE: s,
|
|
2710
2703
|
STICK_ARROW_TOP_REVERSE_DOTTED: o,
|
|
2711
|
-
STICK_ARROW_BOTTOM_REVERSE:
|
|
2712
|
-
STICK_ARROW_BOTTOM_REVERSE_DOTTED:
|
|
2704
|
+
STICK_ARROW_BOTTOM_REVERSE: u,
|
|
2705
|
+
STICK_ARROW_BOTTOM_REVERSE_DOTTED: d
|
|
2713
2706
|
} = t.db.LINETYPE;
|
|
2714
2707
|
return [
|
|
2715
2708
|
a,
|
|
@@ -2718,14 +2711,14 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2718
2711
|
n,
|
|
2719
2712
|
s,
|
|
2720
2713
|
o,
|
|
2721
|
-
|
|
2722
|
-
|
|
2714
|
+
u,
|
|
2715
|
+
d
|
|
2723
2716
|
].includes(e.type);
|
|
2724
|
-
}, "isReverseArrowType"),
|
|
2717
|
+
}, "isReverseArrowType"), ia = /* @__PURE__ */ x(function(e, t) {
|
|
2725
2718
|
const { BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
|
|
2726
2719
|
return [a, r].includes(e.type);
|
|
2727
|
-
}, "isBidirectionalArrowType"),
|
|
2728
|
-
const { look: r } =
|
|
2720
|
+
}, "isBidirectionalArrowType"), na = /* @__PURE__ */ x(function(e, t, a) {
|
|
2721
|
+
const { look: r } = $();
|
|
2729
2722
|
if (![
|
|
2730
2723
|
a.db.LINETYPE.SOLID_OPEN,
|
|
2731
2724
|
a.db.LINETYPE.DOTTED_OPEN,
|
|
@@ -2755,11 +2748,11 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2755
2748
|
a.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
2756
2749
|
].includes(e.type))
|
|
2757
2750
|
return {};
|
|
2758
|
-
const [i, n] =
|
|
2759
|
-
let
|
|
2760
|
-
r === "neo" && (e.type !== a.db.LINETYPE.SOLID_OPEN && (p +=
|
|
2761
|
-
const _ = Math.abs(s - o) > 2,
|
|
2762
|
-
e.from === e.to ? p =
|
|
2751
|
+
const [i, n] = ve(e.from, t), [s, o] = ve(e.to, t), u = i <= s;
|
|
2752
|
+
let d = u ? n : i, p = u ? s : o;
|
|
2753
|
+
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);
|
|
2754
|
+
const _ = Math.abs(s - o) > 2, E = /* @__PURE__ */ x((f) => u ? -f : f, "adjustValue");
|
|
2755
|
+
e.from === e.to ? p = d : (e.activate && !_ && (p += E(l.activationWidth / 2 - 1)), [
|
|
2763
2756
|
a.db.LINETYPE.SOLID_OPEN,
|
|
2764
2757
|
a.db.LINETYPE.DOTTED_OPEN,
|
|
2765
2758
|
a.db.LINETYPE.STICK_TOP,
|
|
@@ -2774,29 +2767,29 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2774
2767
|
a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
2775
2768
|
a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
2776
2769
|
a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
|
|
2777
|
-
].includes(e.type) || (p +=
|
|
2770
|
+
].includes(e.type) || (p += E(3)), [
|
|
2778
2771
|
a.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
2779
2772
|
a.db.LINETYPE.BIDIRECTIONAL_DOTTED,
|
|
2780
2773
|
a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
|
|
2781
2774
|
a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
|
|
2782
2775
|
a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
|
|
2783
2776
|
a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
|
|
2784
|
-
].includes(e.type) && (
|
|
2785
|
-
const O = [i, n, s, o], T = Math.abs(
|
|
2777
|
+
].includes(e.type) && (d -= E(3)));
|
|
2778
|
+
const O = [i, n, s, o], T = Math.abs(d - p);
|
|
2786
2779
|
e.wrap && e.message && (e.message = Z.wrapLabel(
|
|
2787
2780
|
e.message,
|
|
2788
|
-
|
|
2781
|
+
N.getMax(T + 2 * l.wrapPadding, l.width),
|
|
2789
2782
|
Rt(l)
|
|
2790
2783
|
));
|
|
2791
2784
|
const g = Z.calculateTextDimensions(e.message, Rt(l));
|
|
2792
2785
|
return {
|
|
2793
|
-
width:
|
|
2786
|
+
width: N.getMax(
|
|
2794
2787
|
e.wrap ? 0 : g.width + 2 * l.wrapPadding,
|
|
2795
2788
|
T + 2 * l.wrapPadding,
|
|
2796
2789
|
l.width
|
|
2797
2790
|
),
|
|
2798
2791
|
height: 0,
|
|
2799
|
-
startx:
|
|
2792
|
+
startx: d,
|
|
2800
2793
|
stopx: p,
|
|
2801
2794
|
starty: 0,
|
|
2802
2795
|
stopy: 0,
|
|
@@ -2806,11 +2799,11 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2806
2799
|
fromBounds: Math.min.apply(null, O),
|
|
2807
2800
|
toBounds: Math.max.apply(null, O)
|
|
2808
2801
|
};
|
|
2809
|
-
}, "buildMessageModel"),
|
|
2802
|
+
}, "buildMessageModel"), oa = /* @__PURE__ */ x(async function(e, t, a, r) {
|
|
2810
2803
|
const i = {}, n = [];
|
|
2811
|
-
let s, o,
|
|
2812
|
-
for (const
|
|
2813
|
-
switch (
|
|
2804
|
+
let s, o, u;
|
|
2805
|
+
for (const d of e) {
|
|
2806
|
+
switch (d.type) {
|
|
2814
2807
|
case r.db.LINETYPE.LOOP_START:
|
|
2815
2808
|
case r.db.LINETYPE.ALT_START:
|
|
2816
2809
|
case r.db.LINETYPE.OPT_START:
|
|
@@ -2819,8 +2812,8 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2819
2812
|
case r.db.LINETYPE.CRITICAL_START:
|
|
2820
2813
|
case r.db.LINETYPE.BREAK_START:
|
|
2821
2814
|
n.push({
|
|
2822
|
-
id:
|
|
2823
|
-
msg:
|
|
2815
|
+
id: d.id,
|
|
2816
|
+
msg: d.message,
|
|
2824
2817
|
from: Number.MAX_SAFE_INTEGER,
|
|
2825
2818
|
to: Number.MIN_SAFE_INTEGER,
|
|
2826
2819
|
width: 0
|
|
@@ -2829,7 +2822,7 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2829
2822
|
case r.db.LINETYPE.ALT_ELSE:
|
|
2830
2823
|
case r.db.LINETYPE.PAR_AND:
|
|
2831
2824
|
case r.db.LINETYPE.CRITICAL_OPTION:
|
|
2832
|
-
|
|
2825
|
+
d.message && (s = n.pop(), i[s.id] = s, i[d.id] = s, n.push(s));
|
|
2833
2826
|
break;
|
|
2834
2827
|
case r.db.LINETYPE.LOOP_END:
|
|
2835
2828
|
case r.db.LINETYPE.ALT_END:
|
|
@@ -2841,10 +2834,10 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2841
2834
|
break;
|
|
2842
2835
|
case r.db.LINETYPE.ACTIVE_START:
|
|
2843
2836
|
{
|
|
2844
|
-
const _ = t.get(
|
|
2837
|
+
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 = {
|
|
2845
2838
|
startx: O,
|
|
2846
2839
|
stopx: O + l.activationWidth,
|
|
2847
|
-
actor:
|
|
2840
|
+
actor: d.from,
|
|
2848
2841
|
enabled: !0
|
|
2849
2842
|
};
|
|
2850
2843
|
R.activations.push(T);
|
|
@@ -2852,47 +2845,47 @@ var aa = /* @__PURE__ */ x(async function(e, t, a) {
|
|
|
2852
2845
|
break;
|
|
2853
2846
|
case r.db.LINETYPE.ACTIVE_END:
|
|
2854
2847
|
{
|
|
2855
|
-
const _ = R.activations.map((
|
|
2848
|
+
const _ = R.activations.map((E) => E.actor).lastIndexOf(d.from);
|
|
2856
2849
|
R.activations.splice(_, 1).splice(0, 1);
|
|
2857
2850
|
}
|
|
2858
2851
|
break;
|
|
2859
2852
|
}
|
|
2860
|
-
|
|
2861
|
-
s = _, s.from =
|
|
2862
|
-
})) : (
|
|
2863
|
-
if (s = _,
|
|
2864
|
-
const
|
|
2865
|
-
s.from =
|
|
2866
|
-
|
|
2867
|
-
|
|
2853
|
+
d.placement !== void 0 ? (o = await ra(d, t, r), d.noteModel = o, n.forEach((_) => {
|
|
2854
|
+
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;
|
|
2855
|
+
})) : (u = na(d, t, r), d.msgModel = u, u.startx && u.stopx && n.length > 0 && n.forEach((_) => {
|
|
2856
|
+
if (s = _, u.startx === u.stopx) {
|
|
2857
|
+
const E = t.get(d.from), O = t.get(d.to);
|
|
2858
|
+
s.from = N.getMin(
|
|
2859
|
+
E.x - u.width / 2,
|
|
2860
|
+
E.x - E.width / 2,
|
|
2868
2861
|
s.from
|
|
2869
|
-
), s.to =
|
|
2870
|
-
O.x + E.width / 2,
|
|
2862
|
+
), s.to = N.getMax(
|
|
2871
2863
|
O.x + u.width / 2,
|
|
2864
|
+
O.x + E.width / 2,
|
|
2872
2865
|
s.to
|
|
2873
|
-
), s.width =
|
|
2866
|
+
), s.width = N.getMax(s.width, Math.abs(s.to - s.from)) - l.labelBoxWidth;
|
|
2874
2867
|
} else
|
|
2875
|
-
s.from =
|
|
2868
|
+
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;
|
|
2876
2869
|
}));
|
|
2877
2870
|
}
|
|
2878
|
-
return R.activations = [],
|
|
2879
|
-
}, "calculateLoopBounds"),
|
|
2871
|
+
return R.activations = [], at.debug("Loop type widths:", i), i;
|
|
2872
|
+
}, "calculateLoopBounds"), ca = {
|
|
2880
2873
|
bounds: R,
|
|
2881
|
-
drawActors:
|
|
2882
|
-
drawActorsPopup:
|
|
2883
|
-
setConf:
|
|
2884
|
-
draw:
|
|
2885
|
-
},
|
|
2886
|
-
parser:
|
|
2874
|
+
drawActors: re,
|
|
2875
|
+
drawActorsPopup: qe,
|
|
2876
|
+
setConf: He,
|
|
2877
|
+
draw: ta
|
|
2878
|
+
}, Ta = {
|
|
2879
|
+
parser: fr,
|
|
2887
2880
|
get db() {
|
|
2888
|
-
return new
|
|
2881
|
+
return new Ir();
|
|
2889
2882
|
},
|
|
2890
|
-
renderer:
|
|
2891
|
-
styles:
|
|
2883
|
+
renderer: ca,
|
|
2884
|
+
styles: Rr,
|
|
2892
2885
|
init: /* @__PURE__ */ x((e) => {
|
|
2893
|
-
e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap,
|
|
2886
|
+
e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap, er({ sequence: { wrap: e.wrap } }));
|
|
2894
2887
|
}, "init")
|
|
2895
2888
|
};
|
|
2896
2889
|
export {
|
|
2897
|
-
|
|
2890
|
+
Ta as diagram
|
|
2898
2891
|
};
|