@ashwin_droid/notion-stream 1.0.0 → 1.0.2
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/{_baseUniq-DSwfPiGC.js → _baseUniq-D32sgNIc.js} +1 -1
- package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-DCnQIx8G.mjs} +51 -51
- package/dist/{arc-BBnIBs2j.js → arc-B0uBm0sN.js} +1 -1
- package/dist/{arc-DmoYXidQ.mjs → arc-OrNNmmBm.mjs} +1 -1
- package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-CLYqYgyv.js} +1 -1
- package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-seCMyeyz.mjs} +1 -1
- package/dist/architectureDiagram-VXUJARFQ-BGsDPmi_.js +36 -0
- package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-BmPLNLcs.mjs} +1846 -1850
- package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-CXKvT-9-.mjs} +913 -922
- package/dist/blockDiagram-VD42YOAC-NQhzFvsO.js +122 -0
- package/dist/c4Diagram-YG6GDRKO-CMXx6pyB.js +10 -0
- package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-DAGMHESb.mjs} +169 -170
- package/dist/{channel-DVpqhnow.mjs → channel-BXGyzQA6.mjs} +1 -1
- package/dist/channel-Dw8BXC8D.js +1 -0
- package/dist/chunk-4BX2VUAB-MnK73C0-.js +1 -0
- package/dist/chunk-4BX2VUAB-ZaWvd3Xe.mjs +8 -0
- package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-B1EpdpVW.js} +1 -1
- package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-iKbZBHA5.mjs} +1 -1
- package/dist/chunk-B4BG7PRW-Bo_sfBKL.js +165 -0
- package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-DgqSow4f.mjs} +251 -252
- package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-BAHL-2VJ.mjs} +444 -456
- package/dist/chunk-DI55MBZ5-BuuMLI1S.js +220 -0
- package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BE8MbNLe.mjs} +1 -1
- package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-Cs1BNv23.js} +1 -1
- package/dist/chunk-QN33PNHL-MX1ZMWu-.js +1 -0
- package/dist/chunk-QN33PNHL-ZaWv5vaA.mjs +19 -0
- package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-D2X7PBDi.mjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-Db6mVb9M.js} +1 -1
- package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-AMFXF6mq.mjs} +20 -20
- package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-CzjtACDr.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-CPwvtUDj.mjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-UNrH9bQo.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-CPwvtUDj.mjs} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-UNrH9bQo.js} +1 -1
- package/dist/{clone-KtLCwiKH.mjs → clone-CV4F8CSW.mjs} +1 -1
- package/dist/clone-HVsPHeK3.js +1 -0
- package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-38K5Mxo2.js} +1 -1
- package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-Q-OOsw6q.mjs} +1 -1
- package/dist/cose-bilkent-S5V4N54A-1B77PywG.js +1 -0
- package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-greBbyuM.mjs} +592 -589
- package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
- package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
- package/dist/dagre-6UL2VRFP-DEQXyXKh.js +4 -0
- package/dist/dagre-6UL2VRFP-DN5Inkgr.mjs +443 -0
- package/dist/diagram-PSM6KHXK-C7tjFZpr.js +24 -0
- package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-D-GS1fTc.mjs} +45 -48
- package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-DJXBxeH4.mjs} +10 -14
- package/dist/diagram-QEK2KX5R-Doa8ooC_.js +43 -0
- package/dist/diagram-S2PKOQOG-BN04h93a.js +24 -0
- package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-BuPevKqw.mjs} +22 -23
- package/dist/erDiagram-Q2GNP2WA-AS2vnQKc.js +60 -0
- package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-DxOmvmqL.mjs} +77 -78
- package/dist/flowDiagram-NV44I4VS-BChiRwcp.js +162 -0
- package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-Cs_jC87H.mjs} +442 -449
- package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-02b_-xyZ.mjs} +1049 -1041
- package/dist/ganttDiagram-JELNMOA3-BGy1b6TD.js +267 -0
- package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-BWm0SBV4.mjs} +1 -1
- package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-DVfckSNX.js} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-CfzoE07P.mjs +699 -0
- package/dist/gitGraphDiagram-NY62KEGX-Cm9ywQoW.js +65 -0
- package/dist/{graph-C_T4ZBuC.mjs → graph-DEu7-ZhH.mjs} +8 -8
- package/dist/{graph-BNpx6ebg.js → graph-Dw_87ii6.js} +1 -1
- package/dist/index-BwYOYPeK.js +670 -0
- package/dist/{index-oe4HpmeG.mjs → index-DH3CVXwD.mjs} +22541 -22646
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-BpKxONZx.js} +1 -1
- package/dist/info-NVLQJR56-MmJP3L6S.mjs +5 -0
- package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-Bfsucvti.mjs} +2 -2
- package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-q-yX3_By.js} +1 -1
- package/dist/journeyDiagram-XKPGCS4Q-BqtyHvQF.js +139 -0
- package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-dFRLmnr-.mjs} +24 -26
- package/dist/kanban-definition-3W4ZIXB7-DeOl9Eme.mjs +719 -0
- package/dist/kanban-definition-3W4ZIXB7-DraMxv75.js +89 -0
- package/dist/{layout-CuWQnP5Y.js → layout-BKTUO8WZ.js} +1 -1
- package/dist/{layout-Cd98WJ7r.mjs → layout-CpL-hYTa.mjs} +22 -22
- package/dist/{linear-SU4e8MRt.mjs → linear-CLwIU3di.mjs} +20 -20
- package/dist/{linear-DFDw13y6.js → linear-DvM229Di.js} +1 -1
- package/dist/mermaid-4DMBBIKO-BpqXz0_U.mjs +4 -0
- package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-Cd15t2pT.js} +1 -1
- package/dist/mermaid-parser.core-BVlc9Lqd.js +128 -0
- package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CLAapB2-.mjs} +3404 -3369
- package/dist/{min-C2k771MZ.mjs → min--ML-ONY_.mjs} +2 -2
- package/dist/{min-CppMRDFn.js → min-BQ4NUvNf.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-78K_EDCb.mjs} +170 -172
- package/dist/mindmap-definition-VGOIOE7T-ZHY70ZzV.js +68 -0
- package/dist/notion-stream.css +1 -0
- package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-B34lFb6T.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-C9xcJQVN.js} +1 -1
- package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-Bz_jfTd_.js} +1 -1
- package/dist/pie-7BOR55EZ-DW2Zgje5.mjs +5 -0
- package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-CKzchAXU.js} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-Ctp6QR7f.mjs} +21 -21
- package/dist/quadrantDiagram-AYHSOK5B-D2Rt32D2.js +7 -0
- package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-D3U_Qicu.mjs} +230 -232
- package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-CO5ECFHq.mjs} +1 -1
- package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-DI4PJJjm.js} +1 -1
- package/dist/requirementDiagram-UZGBJVZJ-CSgb6U9N.js +64 -0
- package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-Da_yWSD1.mjs} +190 -192
- package/dist/sankeyDiagram-TZEHDZUN-C8jpBnM0.js +10 -0
- package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-Dp3Eyl8Q.mjs} +189 -189
- package/dist/sequenceDiagram-WL72ISMW-BZJ7d_X4.js +145 -0
- package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-yJKe02sV.mjs} +222 -229
- package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-Cfuygt_P.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-z0IX85WL.mjs} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-BDMFqSat.mjs} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-BiriAQkj.js} +1 -1
- package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-BmEq-RM3.mjs} +217 -223
- package/dist/timeline-definition-IT6M3QCI-CBmpRgUM.js +61 -0
- package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-IaHP18r_.mjs} +1 -1
- package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-qP0VzKwW.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BSaI76KX.mjs} +7 -7
- package/dist/xychartDiagram-PRI3JC2R-CQgij0Fy.js +7 -0
- package/package.json +5 -5
- package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
- package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
- package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
- package/dist/channel-6dUO0MQi.js +0 -1
- package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
- package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
- package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
- package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
- package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
- package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
- package/dist/clone-B0UaPT2Z.js +0 -1
- package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
- package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
- package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
- package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
- package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
- package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
- package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
- package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
- package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
- package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
- package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
- package/dist/index-CkYZRBYn.js +0 -676
- package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
- package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
- package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
- package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
- package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
- package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
- package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
- package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
- package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
- package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
- package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
- package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
- package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-yJKe02sV.mjs}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { a as we, b as Xt, g as ct, d as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B-
|
|
2
|
-
import { _ as f, r as Ie, f as st, h as St, l as Q, n as re, i as Le, j as _e, o as I, e as se, s as Ae, y as ke, d as Pe, g as Ne, z as Se, A as Me, J as Re, D as De, m as Mt, x as
|
|
3
|
-
import { I as Be } from "./chunk-QZHKN3VN-
|
|
4
|
-
var Ut = function() {
|
|
1
|
+
import { a as we, b as Xt, g as ct, d as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B-AMFXF6mq.mjs";
|
|
2
|
+
import { _ as f, r as Ie, f as st, h as St, l as Q, n as re, i as Le, j as _e, o as I, e as se, s as Ae, y as ke, d as Pe, g as Ne, z as Se, A as Me, J as Re, D as De, m as Mt, x as W, a7 as z, a8 as _t, a9 as ie, aa as Ce, ab as Oe, ac as ne, L as Ht } from "./index-DH3CVXwD.mjs";
|
|
3
|
+
import { I as Be } from "./chunk-QZHKN3VN-D2X7PBDi.mjs";
|
|
4
|
+
var Ut = (function() {
|
|
5
5
|
var e = /* @__PURE__ */ f(function(pt, v, A, L) {
|
|
6
6
|
for (A = A || {}, L = pt.length; L--; A[pt[L]] = v) ;
|
|
7
7
|
return A;
|
|
8
|
-
}, "o"), t = [1, 2], n = [1, 3], s = [1, 4], r = [2, 4], i = [1, 9], c = [1, 11], h = [1, 13], o = [1, 14], a = [1, 16], p = [1, 17], g = [1, 18], x = [1, 24], y = [1, 25],
|
|
8
|
+
}, "o"), t = [1, 2], n = [1, 3], s = [1, 4], r = [2, 4], i = [1, 9], c = [1, 11], h = [1, 13], o = [1, 14], a = [1, 16], p = [1, 17], g = [1, 18], x = [1, 24], y = [1, 25], m = [1, 26], w = [1, 27], k = [1, 28], N = [1, 29], S = [1, 30], O = [1, 31], B = [1, 32], q = [1, 33], H = [1, 34], Z = [1, 35], at = [1, 36], U = [1, 37], G = [1, 38], F = [1, 39], D = [1, 41], $ = [1, 42], K = [1, 43], j = [1, 44], rt = [1, 45], R = [1, 46], E = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 55, 60, 61, 62, 63, 71], _ = [2, 71], X = [4, 5, 16, 50, 52, 53], tt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], M = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 55, 60, 61, 62, 63, 71], Vt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 55, 60, 61, 62, 63, 71], Zt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 55, 60, 61, 62, 63, 71], ot = [69, 70, 71], lt = [1, 127], Yt = {
|
|
9
9
|
trace: /* @__PURE__ */ f(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, box_section: 10, box_line: 11, participant_statement: 12, create: 13, box: 14, restOfLine: 15, end: 16, signal: 17, autonumber: 18, NUM: 19, off: 20, activate: 21, actor: 22, deactivate: 23, note_statement: 24, links_statement: 25, link_statement: 26, properties_statement: 27, details_statement: 28, title: 29, legacy_title: 30, acc_title: 31, acc_title_value: 32, acc_descr: 33, acc_descr_value: 34, acc_descr_multiline_value: 35, loop: 36, rect: 37, opt: 38, alt: 39, else_sections: 40, par: 41, par_sections: 42, par_over: 43, critical: 44, option_sections: 45, break: 46, option: 47, and: 48, else: 49, participant: 50, AS: 51, participant_actor: 52, destroy: 53, actor_with_config: 54, note: 55, placement: 56, text2: 57, over: 58, actor_pair: 59, links: 60, link: 61, properties: 62, details: 63, spaceList: 64, ",": 65, left_of: 66, right_of: 67, signaltype: 68, "+": 69, "-": 70, ACTOR: 71, config_object: 72, CONFIG_START: 73, CONFIG_CONTENT: 74, CONFIG_END: 75, SOLID_OPEN_ARROW: 76, DOTTED_OPEN_ARROW: 77, SOLID_ARROW: 78, BIDIRECTIONAL_SOLID_ARROW: 79, DOTTED_ARROW: 80, BIDIRECTIONAL_DOTTED_ARROW: 81, SOLID_CROSS: 82, DOTTED_CROSS: 83, SOLID_POINT: 84, DOTTED_POINT: 85, TXT: 86, $accept: 0, $end: 1 },
|
|
13
13
|
terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 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", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy", 55: "note", 58: "over", 60: "links", 61: "link", 62: "properties", 63: "details", 65: ",", 66: "left_of", 67: "right_of", 69: "+", 70: "-", 71: "ACTOR", 73: "CONFIG_START", 74: "CONFIG_CONTENT", 75: "CONFIG_END", 76: "SOLID_OPEN_ARROW", 77: "DOTTED_OPEN_ARROW", 78: "SOLID_ARROW", 79: "BIDIRECTIONAL_SOLID_ARROW", 80: "DOTTED_ARROW", 81: "BIDIRECTIONAL_DOTTED_ARROW", 82: "SOLID_CROSS", 83: "DOTTED_CROSS", 84: "SOLID_POINT", 85: "DOTTED_POINT", 86: "TXT" },
|
|
14
14
|
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 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], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [64, 2], [64, 1], [59, 3], [59, 1], [56, 1], [56, 1], [17, 5], [17, 5], [17, 4], [54, 2], [72, 3], [22, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [57, 1]],
|
|
15
|
-
performAction: /* @__PURE__ */ f(function(v, A, L,
|
|
15
|
+
performAction: /* @__PURE__ */ f(function(v, A, L, b, C, d, It) {
|
|
16
16
|
var u = d.length - 1;
|
|
17
|
-
switch (
|
|
17
|
+
switch (C) {
|
|
18
18
|
case 3:
|
|
19
|
-
return
|
|
19
|
+
return b.apply(d[u]), d[u];
|
|
20
20
|
case 4:
|
|
21
21
|
case 9:
|
|
22
22
|
this.$ = [];
|
|
@@ -39,80 +39,80 @@ var Ut = function() {
|
|
|
39
39
|
d[u].type = "createParticipant", this.$ = d[u];
|
|
40
40
|
break;
|
|
41
41
|
case 16:
|
|
42
|
-
d[u - 1].unshift({ type: "boxStart", boxData:
|
|
42
|
+
d[u - 1].unshift({ type: "boxStart", boxData: b.parseBoxData(d[u - 2]) }), d[u - 1].push({ type: "boxEnd", boxText: d[u - 2] }), this.$ = d[u - 1];
|
|
43
43
|
break;
|
|
44
44
|
case 18:
|
|
45
|
-
this.$ = { type: "sequenceIndex", sequenceIndex: Number(d[u - 2]), sequenceIndexStep: Number(d[u - 1]), sequenceVisible: !0, signalType:
|
|
45
|
+
this.$ = { type: "sequenceIndex", sequenceIndex: Number(d[u - 2]), sequenceIndexStep: Number(d[u - 1]), sequenceVisible: !0, signalType: b.LINETYPE.AUTONUMBER };
|
|
46
46
|
break;
|
|
47
47
|
case 19:
|
|
48
|
-
this.$ = { type: "sequenceIndex", sequenceIndex: Number(d[u - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType:
|
|
48
|
+
this.$ = { type: "sequenceIndex", sequenceIndex: Number(d[u - 1]), sequenceIndexStep: 1, sequenceVisible: !0, signalType: b.LINETYPE.AUTONUMBER };
|
|
49
49
|
break;
|
|
50
50
|
case 20:
|
|
51
|
-
this.$ = { type: "sequenceIndex", sequenceVisible: !1, signalType:
|
|
51
|
+
this.$ = { type: "sequenceIndex", sequenceVisible: !1, signalType: b.LINETYPE.AUTONUMBER };
|
|
52
52
|
break;
|
|
53
53
|
case 21:
|
|
54
|
-
this.$ = { type: "sequenceIndex", sequenceVisible: !0, signalType:
|
|
54
|
+
this.$ = { type: "sequenceIndex", sequenceVisible: !0, signalType: b.LINETYPE.AUTONUMBER };
|
|
55
55
|
break;
|
|
56
56
|
case 22:
|
|
57
|
-
this.$ = { type: "activeStart", signalType:
|
|
57
|
+
this.$ = { type: "activeStart", signalType: b.LINETYPE.ACTIVE_START, actor: d[u - 1].actor };
|
|
58
58
|
break;
|
|
59
59
|
case 23:
|
|
60
|
-
this.$ = { type: "activeEnd", signalType:
|
|
60
|
+
this.$ = { type: "activeEnd", signalType: b.LINETYPE.ACTIVE_END, actor: d[u - 1].actor };
|
|
61
61
|
break;
|
|
62
62
|
case 29:
|
|
63
|
-
|
|
63
|
+
b.setDiagramTitle(d[u].substring(6)), this.$ = d[u].substring(6);
|
|
64
64
|
break;
|
|
65
65
|
case 30:
|
|
66
|
-
|
|
66
|
+
b.setDiagramTitle(d[u].substring(7)), this.$ = d[u].substring(7);
|
|
67
67
|
break;
|
|
68
68
|
case 31:
|
|
69
|
-
this.$ = d[u].trim(),
|
|
69
|
+
this.$ = d[u].trim(), b.setAccTitle(this.$);
|
|
70
70
|
break;
|
|
71
71
|
case 32:
|
|
72
72
|
case 33:
|
|
73
|
-
this.$ = d[u].trim(),
|
|
73
|
+
this.$ = d[u].trim(), b.setAccDescription(this.$);
|
|
74
74
|
break;
|
|
75
75
|
case 34:
|
|
76
|
-
d[u - 1].unshift({ type: "loopStart", loopText:
|
|
76
|
+
d[u - 1].unshift({ type: "loopStart", loopText: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.LOOP_START }), d[u - 1].push({ type: "loopEnd", loopText: d[u - 2], signalType: b.LINETYPE.LOOP_END }), this.$ = d[u - 1];
|
|
77
77
|
break;
|
|
78
78
|
case 35:
|
|
79
|
-
d[u - 1].unshift({ type: "rectStart", color:
|
|
79
|
+
d[u - 1].unshift({ type: "rectStart", color: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.RECT_START }), d[u - 1].push({ type: "rectEnd", color: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.RECT_END }), this.$ = d[u - 1];
|
|
80
80
|
break;
|
|
81
81
|
case 36:
|
|
82
|
-
d[u - 1].unshift({ type: "optStart", optText:
|
|
82
|
+
d[u - 1].unshift({ type: "optStart", optText: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.OPT_START }), d[u - 1].push({ type: "optEnd", optText: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.OPT_END }), this.$ = d[u - 1];
|
|
83
83
|
break;
|
|
84
84
|
case 37:
|
|
85
|
-
d[u - 1].unshift({ type: "altStart", altText:
|
|
85
|
+
d[u - 1].unshift({ type: "altStart", altText: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.ALT_START }), d[u - 1].push({ type: "altEnd", signalType: b.LINETYPE.ALT_END }), this.$ = d[u - 1];
|
|
86
86
|
break;
|
|
87
87
|
case 38:
|
|
88
|
-
d[u - 1].unshift({ type: "parStart", parText:
|
|
88
|
+
d[u - 1].unshift({ type: "parStart", parText: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.PAR_START }), d[u - 1].push({ type: "parEnd", signalType: b.LINETYPE.PAR_END }), this.$ = d[u - 1];
|
|
89
89
|
break;
|
|
90
90
|
case 39:
|
|
91
|
-
d[u - 1].unshift({ type: "parStart", parText:
|
|
91
|
+
d[u - 1].unshift({ type: "parStart", parText: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.PAR_OVER_START }), d[u - 1].push({ type: "parEnd", signalType: b.LINETYPE.PAR_END }), this.$ = d[u - 1];
|
|
92
92
|
break;
|
|
93
93
|
case 40:
|
|
94
|
-
d[u - 1].unshift({ type: "criticalStart", criticalText:
|
|
94
|
+
d[u - 1].unshift({ type: "criticalStart", criticalText: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.CRITICAL_START }), d[u - 1].push({ type: "criticalEnd", signalType: b.LINETYPE.CRITICAL_END }), this.$ = d[u - 1];
|
|
95
95
|
break;
|
|
96
96
|
case 41:
|
|
97
|
-
d[u - 1].unshift({ type: "breakStart", breakText:
|
|
97
|
+
d[u - 1].unshift({ type: "breakStart", breakText: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.BREAK_START }), d[u - 1].push({ type: "breakEnd", optText: b.parseMessage(d[u - 2]), signalType: b.LINETYPE.BREAK_END }), this.$ = d[u - 1];
|
|
98
98
|
break;
|
|
99
99
|
case 43:
|
|
100
|
-
this.$ = d[u - 3].concat([{ type: "option", optionText:
|
|
100
|
+
this.$ = d[u - 3].concat([{ type: "option", optionText: b.parseMessage(d[u - 1]), signalType: b.LINETYPE.CRITICAL_OPTION }, d[u]]);
|
|
101
101
|
break;
|
|
102
102
|
case 45:
|
|
103
|
-
this.$ = d[u - 3].concat([{ type: "and", parText:
|
|
103
|
+
this.$ = d[u - 3].concat([{ type: "and", parText: b.parseMessage(d[u - 1]), signalType: b.LINETYPE.PAR_AND }, d[u]]);
|
|
104
104
|
break;
|
|
105
105
|
case 47:
|
|
106
|
-
this.$ = d[u - 3].concat([{ type: "else", altText:
|
|
106
|
+
this.$ = d[u - 3].concat([{ type: "else", altText: b.parseMessage(d[u - 1]), signalType: b.LINETYPE.ALT_ELSE }, d[u]]);
|
|
107
107
|
break;
|
|
108
108
|
case 48:
|
|
109
|
-
d[u - 3].draw = "participant", d[u - 3].type = "addParticipant", d[u - 3].description =
|
|
109
|
+
d[u - 3].draw = "participant", d[u - 3].type = "addParticipant", d[u - 3].description = b.parseMessage(d[u - 1]), this.$ = d[u - 3];
|
|
110
110
|
break;
|
|
111
111
|
case 49:
|
|
112
112
|
d[u - 1].draw = "participant", d[u - 1].type = "addParticipant", this.$ = d[u - 1];
|
|
113
113
|
break;
|
|
114
114
|
case 50:
|
|
115
|
-
d[u - 3].draw = "actor", d[u - 3].type = "addParticipant", d[u - 3].description =
|
|
115
|
+
d[u - 3].draw = "actor", d[u - 3].type = "addParticipant", d[u - 3].description = b.parseMessage(d[u - 1]), this.$ = d[u - 3];
|
|
116
116
|
break;
|
|
117
117
|
case 51:
|
|
118
118
|
d[u - 1].draw = "actor", d[u - 1].type = "addParticipant", this.$ = d[u - 1];
|
|
@@ -127,7 +127,7 @@ var Ut = function() {
|
|
|
127
127
|
this.$ = [d[u - 1], { type: "addNote", placement: d[u - 2], actor: d[u - 1].actor, text: d[u] }];
|
|
128
128
|
break;
|
|
129
129
|
case 55:
|
|
130
|
-
d[u - 2] = [].concat(d[u - 1], d[u - 1]).slice(0, 2), d[u - 2][0] = d[u - 2][0].actor, d[u - 2][1] = d[u - 2][1].actor, this.$ = [d[u - 1], { type: "addNote", placement:
|
|
130
|
+
d[u - 2] = [].concat(d[u - 1], d[u - 1]).slice(0, 2), d[u - 2][0] = d[u - 2][0].actor, d[u - 2][1] = d[u - 2][1].actor, this.$ = [d[u - 1], { type: "addNote", placement: b.PLACEMENT.OVER, actor: d[u - 2].slice(0, 2), text: d[u] }];
|
|
131
131
|
break;
|
|
132
132
|
case 56:
|
|
133
133
|
this.$ = [d[u - 1], { type: "addLinks", actor: d[u - 1].actor, text: d[u] }];
|
|
@@ -148,17 +148,17 @@ var Ut = function() {
|
|
|
148
148
|
this.$ = d[u];
|
|
149
149
|
break;
|
|
150
150
|
case 64:
|
|
151
|
-
this.$ =
|
|
151
|
+
this.$ = b.PLACEMENT.LEFTOF;
|
|
152
152
|
break;
|
|
153
153
|
case 65:
|
|
154
|
-
this.$ =
|
|
154
|
+
this.$ = b.PLACEMENT.RIGHTOF;
|
|
155
155
|
break;
|
|
156
156
|
case 66:
|
|
157
157
|
this.$ = [
|
|
158
158
|
d[u - 4],
|
|
159
159
|
d[u - 1],
|
|
160
160
|
{ type: "addMessage", from: d[u - 4].actor, to: d[u - 1].actor, signalType: d[u - 3], msg: d[u], activate: !0 },
|
|
161
|
-
{ type: "activeStart", signalType:
|
|
161
|
+
{ type: "activeStart", signalType: b.LINETYPE.ACTIVE_START, actor: d[u - 1].actor }
|
|
162
162
|
];
|
|
163
163
|
break;
|
|
164
164
|
case 67:
|
|
@@ -166,7 +166,7 @@ var Ut = function() {
|
|
|
166
166
|
d[u - 4],
|
|
167
167
|
d[u - 1],
|
|
168
168
|
{ type: "addMessage", from: d[u - 4].actor, to: d[u - 1].actor, signalType: d[u - 3], msg: d[u] },
|
|
169
|
-
{ type: "activeEnd", signalType:
|
|
169
|
+
{ type: "activeEnd", signalType: b.LINETYPE.ACTIVE_END, actor: d[u - 4].actor }
|
|
170
170
|
];
|
|
171
171
|
break;
|
|
172
172
|
case 68:
|
|
@@ -186,41 +186,41 @@ var Ut = function() {
|
|
|
186
186
|
this.$ = { type: "addParticipant", actor: d[u] };
|
|
187
187
|
break;
|
|
188
188
|
case 72:
|
|
189
|
-
this.$ =
|
|
189
|
+
this.$ = b.LINETYPE.SOLID_OPEN;
|
|
190
190
|
break;
|
|
191
191
|
case 73:
|
|
192
|
-
this.$ =
|
|
192
|
+
this.$ = b.LINETYPE.DOTTED_OPEN;
|
|
193
193
|
break;
|
|
194
194
|
case 74:
|
|
195
|
-
this.$ =
|
|
195
|
+
this.$ = b.LINETYPE.SOLID;
|
|
196
196
|
break;
|
|
197
197
|
case 75:
|
|
198
|
-
this.$ =
|
|
198
|
+
this.$ = b.LINETYPE.BIDIRECTIONAL_SOLID;
|
|
199
199
|
break;
|
|
200
200
|
case 76:
|
|
201
|
-
this.$ =
|
|
201
|
+
this.$ = b.LINETYPE.DOTTED;
|
|
202
202
|
break;
|
|
203
203
|
case 77:
|
|
204
|
-
this.$ =
|
|
204
|
+
this.$ = b.LINETYPE.BIDIRECTIONAL_DOTTED;
|
|
205
205
|
break;
|
|
206
206
|
case 78:
|
|
207
|
-
this.$ =
|
|
207
|
+
this.$ = b.LINETYPE.SOLID_CROSS;
|
|
208
208
|
break;
|
|
209
209
|
case 79:
|
|
210
|
-
this.$ =
|
|
210
|
+
this.$ = b.LINETYPE.DOTTED_CROSS;
|
|
211
211
|
break;
|
|
212
212
|
case 80:
|
|
213
|
-
this.$ =
|
|
213
|
+
this.$ = b.LINETYPE.SOLID_POINT;
|
|
214
214
|
break;
|
|
215
215
|
case 81:
|
|
216
|
-
this.$ =
|
|
216
|
+
this.$ = b.LINETYPE.DOTTED_POINT;
|
|
217
217
|
break;
|
|
218
218
|
case 82:
|
|
219
|
-
this.$ =
|
|
219
|
+
this.$ = b.parseMessage(d[u].trim().substring(1));
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
222
|
}, "anonymous"),
|
|
223
|
-
table: [{ 3: 1, 4: t, 5: n, 6: s }, { 1: [3] }, { 3: 5, 4: t, 5: n, 6: s }, { 3: 6, 4: t, 5: n, 6: s }, e([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31:
|
|
223
|
+
table: [{ 3: 1, 4: t, 5: n, 6: s }, { 1: [3] }, { 3: 5, 4: t, 5: n, 6: s }, { 3: 6, 4: t, 5: n, 6: s }, e([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: m, 33: w, 35: k, 36: N, 37: S, 38: O, 39: B, 41: q, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: F, 55: D, 60: $, 61: K, 62: j, 63: rt, 71: R }, e(E, [2, 5]), { 9: 47, 12: 12, 13: h, 14: o, 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: m, 33: w, 35: k, 36: N, 37: S, 38: O, 39: B, 41: q, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: F, 55: D, 60: $, 61: K, 62: j, 63: rt, 71: R }, e(E, [2, 7]), e(E, [2, 8]), e(E, [2, 14]), { 12: 48, 50: U, 52: G, 53: F }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 71: R }, { 22: 55, 71: R }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, e(E, [2, 29]), e(E, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, e(E, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 54: 72, 71: [1, 73] }, { 22: 74, 71: R }, { 22: 75, 71: R }, { 68: 76, 76: [1, 77], 77: [1, 78], 78: [1, 79], 79: [1, 80], 80: [1, 81], 81: [1, 82], 82: [1, 83], 83: [1, 84], 84: [1, 85], 85: [1, 86] }, { 56: 87, 58: [1, 88], 66: [1, 89], 67: [1, 90] }, { 22: 91, 71: R }, { 22: 92, 71: R }, { 22: 93, 71: R }, { 22: 94, 71: R }, e([5, 51, 65, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86], _), e(E, [2, 6]), e(E, [2, 15]), e(X, [2, 9], { 10: 95 }), e(E, [2, 17]), { 5: [1, 97], 19: [1, 96] }, { 5: [1, 98] }, e(E, [2, 21]), { 5: [1, 99] }, { 5: [1, 100] }, e(E, [2, 24]), e(E, [2, 25]), e(E, [2, 26]), e(E, [2, 27]), e(E, [2, 28]), e(E, [2, 31]), e(E, [2, 32]), e(tt, r, { 7: 101 }), e(tt, r, { 7: 102 }), e(tt, r, { 7: 103 }), e(M, r, { 40: 104, 7: 105 }), e(Vt, r, { 42: 106, 7: 107 }), e(Vt, r, { 7: 107, 42: 108 }), e(Zt, r, { 45: 109, 7: 110 }), e(tt, r, { 7: 111 }), { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, e([5, 51], _, { 72: 115, 73: [1, 116] }), { 5: [1, 118], 51: [1, 117] }, { 5: [1, 119] }, { 22: 122, 69: [1, 120], 70: [1, 121], 71: R }, e(ot, [2, 72]), e(ot, [2, 73]), e(ot, [2, 74]), e(ot, [2, 75]), e(ot, [2, 76]), e(ot, [2, 77]), e(ot, [2, 78]), e(ot, [2, 79]), e(ot, [2, 80]), e(ot, [2, 81]), { 22: 123, 71: R }, { 22: 125, 59: 124, 71: R }, { 71: [2, 64] }, { 71: [2, 65] }, { 57: 126, 86: lt }, { 57: 128, 86: lt }, { 57: 129, 86: lt }, { 57: 130, 86: lt }, { 4: [1, 133], 5: [1, 135], 11: 132, 12: 134, 16: [1, 131], 50: U, 52: G, 53: F }, { 5: [1, 136] }, e(E, [2, 19]), e(E, [2, 20]), e(E, [2, 22]), e(E, [2, 23]), { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [1, 137], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: m, 33: w, 35: k, 36: N, 37: S, 38: O, 39: B, 41: q, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: F, 55: D, 60: $, 61: K, 62: j, 63: rt, 71: R }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [1, 138], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: m, 33: w, 35: k, 36: N, 37: S, 38: O, 39: B, 41: q, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: F, 55: D, 60: $, 61: K, 62: j, 63: rt, 71: R }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [1, 139], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: m, 33: w, 35: k, 36: N, 37: S, 38: O, 39: B, 41: q, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: F, 55: D, 60: $, 61: K, 62: j, 63: rt, 71: R }, { 16: [1, 140] }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [2, 46], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: m, 33: w, 35: k, 36: N, 37: S, 38: O, 39: B, 41: q, 43: H, 44: Z, 46: at, 49: [1, 141], 50: U, 52: G, 53: F, 55: D, 60: $, 61: K, 62: j, 63: rt, 71: R }, { 16: [1, 142] }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [2, 44], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: m, 33: w, 35: k, 36: N, 37: S, 38: O, 39: B, 41: q, 43: H, 44: Z, 46: at, 48: [1, 143], 50: U, 52: G, 53: F, 55: D, 60: $, 61: K, 62: j, 63: rt, 71: R }, { 16: [1, 144] }, { 16: [1, 145] }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [2, 42], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: m, 33: w, 35: k, 36: N, 37: S, 38: O, 39: B, 41: q, 43: H, 44: Z, 46: at, 47: [1, 146], 50: U, 52: G, 53: F, 55: D, 60: $, 61: K, 62: j, 63: rt, 71: R }, { 4: i, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: o, 16: [1, 147], 17: 15, 18: a, 21: p, 22: 40, 23: g, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: x, 30: y, 31: m, 33: w, 35: k, 36: N, 37: S, 38: O, 39: B, 41: q, 43: H, 44: Z, 46: at, 50: U, 52: G, 53: F, 55: D, 60: $, 61: K, 62: j, 63: rt, 71: R }, { 15: [1, 148] }, e(E, [2, 49]), e(E, [2, 53]), { 5: [2, 69] }, { 74: [1, 149] }, { 15: [1, 150] }, e(E, [2, 51]), e(E, [2, 52]), { 22: 151, 71: R }, { 22: 152, 71: R }, { 57: 153, 86: lt }, { 57: 154, 86: lt }, { 57: 155, 86: lt }, { 65: [1, 156], 86: [2, 63] }, { 5: [2, 56] }, { 5: [2, 82] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: [2, 59] }, e(E, [2, 16]), e(X, [2, 10]), { 12: 157, 50: U, 52: G, 53: F }, e(X, [2, 12]), e(X, [2, 13]), e(E, [2, 18]), e(E, [2, 34]), e(E, [2, 35]), e(E, [2, 36]), e(E, [2, 37]), { 15: [1, 158] }, e(E, [2, 38]), { 15: [1, 159] }, e(E, [2, 39]), e(E, [2, 40]), { 15: [1, 160] }, e(E, [2, 41]), { 5: [1, 161] }, { 75: [1, 162] }, { 5: [1, 163] }, { 57: 164, 86: lt }, { 57: 165, 86: lt }, { 5: [2, 68] }, { 5: [2, 54] }, { 5: [2, 55] }, { 22: 166, 71: R }, e(X, [2, 11]), e(M, r, { 7: 105, 40: 167 }), e(Vt, r, { 7: 107, 42: 168 }), e(Zt, r, { 7: 110, 45: 169 }), e(E, [2, 48]), { 5: [2, 70] }, e(E, [2, 50]), { 5: [2, 66] }, { 5: [2, 67] }, { 86: [2, 62] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
|
|
224
224
|
defaultActions: { 5: [2, 1], 6: [2, 2], 89: [2, 64], 90: [2, 65], 115: [2, 69], 126: [2, 56], 127: [2, 82], 128: [2, 57], 129: [2, 58], 130: [2, 59], 153: [2, 68], 154: [2, 54], 155: [2, 55], 162: [2, 70], 164: [2, 66], 165: [2, 67], 166: [2, 62], 167: [2, 47], 168: [2, 45], 169: [2, 43] },
|
|
225
225
|
parseError: /* @__PURE__ */ f(function(v, A) {
|
|
226
226
|
if (A.recoverable)
|
|
@@ -231,21 +231,21 @@ var Ut = function() {
|
|
|
231
231
|
}
|
|
232
232
|
}, "parseError"),
|
|
233
233
|
parse: /* @__PURE__ */ f(function(v) {
|
|
234
|
-
var A = this, L = [0],
|
|
234
|
+
var A = this, L = [0], b = [], C = [null], d = [], It = this.table, u = "", kt = 0, $t = 0, Te = 2, jt = 1, Ee = d.slice.call(arguments, 1), Y = Object.create(this.lexer), ft = { yy: {} };
|
|
235
235
|
for (var Wt in this.yy)
|
|
236
236
|
Object.prototype.hasOwnProperty.call(this.yy, Wt) && (ft.yy[Wt] = this.yy[Wt]);
|
|
237
|
-
|
|
238
|
-
var Ft =
|
|
237
|
+
Y.setInput(v, ft.yy), ft.yy.lexer = Y, ft.yy.parser = this, typeof Y.yylloc > "u" && (Y.yylloc = {});
|
|
238
|
+
var Ft = Y.yylloc;
|
|
239
239
|
d.push(Ft);
|
|
240
|
-
var be =
|
|
240
|
+
var be = Y.options && Y.options.ranges;
|
|
241
241
|
typeof ft.yy.parseError == "function" ? this.parseError = ft.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
242
242
|
function me(et) {
|
|
243
|
-
L.length = L.length - 2 * et,
|
|
243
|
+
L.length = L.length - 2 * et, C.length = C.length - et, d.length = d.length - et;
|
|
244
244
|
}
|
|
245
245
|
f(me, "popStack");
|
|
246
246
|
function te() {
|
|
247
247
|
var et;
|
|
248
|
-
return et =
|
|
248
|
+
return et = b.pop() || Y.lex() || jt, typeof et != "number" && (et instanceof Array && (b = et, et = b.pop()), et = A.symbols_[et] || et), et;
|
|
249
249
|
}
|
|
250
250
|
f(te, "lex");
|
|
251
251
|
for (var J, yt, it, qt, bt = {}, Pt, ht, ee, Nt; ; ) {
|
|
@@ -254,12 +254,12 @@ var Ut = function() {
|
|
|
254
254
|
Nt = [];
|
|
255
255
|
for (Pt in It[yt])
|
|
256
256
|
this.terminals_[Pt] && Pt > Te && Nt.push("'" + this.terminals_[Pt] + "'");
|
|
257
|
-
|
|
258
|
-
` +
|
|
257
|
+
Y.showPosition ? zt = "Parse error on line " + (kt + 1) + `:
|
|
258
|
+
` + Y.showPosition() + `
|
|
259
259
|
Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt = "Parse error on line " + (kt + 1) + ": Unexpected " + (J == jt ? "end of input" : "'" + (this.terminals_[J] || J) + "'"), this.parseError(zt, {
|
|
260
|
-
text:
|
|
260
|
+
text: Y.match,
|
|
261
261
|
token: this.terminals_[J] || J,
|
|
262
|
-
line:
|
|
262
|
+
line: Y.yylineno,
|
|
263
263
|
loc: Ft,
|
|
264
264
|
expected: Nt
|
|
265
265
|
});
|
|
@@ -268,10 +268,10 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
268
268
|
throw new Error("Parse Error: multiple actions possible at state: " + yt + ", token: " + J);
|
|
269
269
|
switch (it[0]) {
|
|
270
270
|
case 1:
|
|
271
|
-
L.push(J),
|
|
271
|
+
L.push(J), C.push(Y.yytext), d.push(Y.yylloc), L.push(it[1]), J = null, $t = Y.yyleng, u = Y.yytext, kt = Y.yylineno, Ft = Y.yylloc;
|
|
272
272
|
break;
|
|
273
273
|
case 2:
|
|
274
|
-
if (ht = this.productions_[it[1]][1], bt.$ =
|
|
274
|
+
if (ht = this.productions_[it[1]][1], bt.$ = C[C.length - ht], bt._$ = {
|
|
275
275
|
first_line: d[d.length - (ht || 1)].first_line,
|
|
276
276
|
last_line: d[d.length - 1].last_line,
|
|
277
277
|
first_column: d[d.length - (ht || 1)].first_column,
|
|
@@ -285,11 +285,11 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
285
285
|
kt,
|
|
286
286
|
ft.yy,
|
|
287
287
|
it[1],
|
|
288
|
-
|
|
288
|
+
C,
|
|
289
289
|
d
|
|
290
290
|
].concat(Ee)), typeof qt < "u")
|
|
291
291
|
return qt;
|
|
292
|
-
ht && (L = L.slice(0, -1 * ht * 2),
|
|
292
|
+
ht && (L = L.slice(0, -1 * ht * 2), C = C.slice(0, -1 * ht), d = d.slice(0, -1 * ht)), L.push(this.productions_[it[1]][0]), C.push(bt.$), d.push(bt._$), ee = It[L[L.length - 2]][L[L.length - 1]], L.push(ee);
|
|
293
293
|
break;
|
|
294
294
|
case 3:
|
|
295
295
|
return !0;
|
|
@@ -297,7 +297,7 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
297
297
|
}
|
|
298
298
|
return !0;
|
|
299
299
|
}, "parse")
|
|
300
|
-
}, ye = /* @__PURE__ */ function() {
|
|
300
|
+
}, ye = /* @__PURE__ */ (function() {
|
|
301
301
|
var pt = {
|
|
302
302
|
EOF: 1,
|
|
303
303
|
parseError: /* @__PURE__ */ f(function(A, L) {
|
|
@@ -326,15 +326,15 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
326
326
|
unput: /* @__PURE__ */ f(function(v) {
|
|
327
327
|
var A = v.length, L = v.split(/(?:\r\n?|\n)/g);
|
|
328
328
|
this._input = v + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - A), this.offset -= A;
|
|
329
|
-
var
|
|
329
|
+
var b = this.match.split(/(?:\r\n?|\n)/g);
|
|
330
330
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), L.length - 1 && (this.yylineno -= L.length - 1);
|
|
331
|
-
var
|
|
331
|
+
var C = this.yylloc.range;
|
|
332
332
|
return this.yylloc = {
|
|
333
333
|
first_line: this.yylloc.first_line,
|
|
334
334
|
last_line: this.yylineno + 1,
|
|
335
335
|
first_column: this.yylloc.first_column,
|
|
336
|
-
last_column: L ? (L.length ===
|
|
337
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
336
|
+
last_column: L ? (L.length === b.length ? this.yylloc.first_column : 0) + b[b.length - L.length].length - L[0].length : this.yylloc.first_column - A
|
|
337
|
+
}, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - A]), this.yyleng = this.yytext.length, this;
|
|
338
338
|
}, "unput"),
|
|
339
339
|
// When called from action, caches matched text and appends it on next action
|
|
340
340
|
more: /* @__PURE__ */ f(function() {
|
|
@@ -375,8 +375,8 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
375
375
|
}, "showPosition"),
|
|
376
376
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
377
377
|
test_match: /* @__PURE__ */ f(function(v, A) {
|
|
378
|
-
var L,
|
|
379
|
-
if (this.options.backtrack_lexer && (
|
|
378
|
+
var L, b, C;
|
|
379
|
+
if (this.options.backtrack_lexer && (C = {
|
|
380
380
|
yylineno: this.yylineno,
|
|
381
381
|
yylloc: {
|
|
382
382
|
first_line: this.yylloc.first_line,
|
|
@@ -395,16 +395,16 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
395
395
|
yy: this.yy,
|
|
396
396
|
conditionStack: this.conditionStack.slice(0),
|
|
397
397
|
done: this.done
|
|
398
|
-
}, this.options.ranges && (
|
|
398
|
+
}, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), b = v[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.length), this.yylloc = {
|
|
399
399
|
first_line: this.yylloc.last_line,
|
|
400
400
|
last_line: this.yylineno + 1,
|
|
401
401
|
first_column: this.yylloc.last_column,
|
|
402
|
-
last_column:
|
|
402
|
+
last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + v[0].length
|
|
403
403
|
}, this.yytext += v[0], this.match += v[0], this.matches = v, 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(v[0].length), this.matched += v[0], L = this.performAction.call(this, this.yy, this, A, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), L)
|
|
404
404
|
return L;
|
|
405
405
|
if (this._backtrack) {
|
|
406
|
-
for (var d in
|
|
407
|
-
this[d] =
|
|
406
|
+
for (var d in C)
|
|
407
|
+
this[d] = C[d];
|
|
408
408
|
return !1;
|
|
409
409
|
}
|
|
410
410
|
return !1;
|
|
@@ -414,12 +414,12 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
414
414
|
if (this.done)
|
|
415
415
|
return this.EOF;
|
|
416
416
|
this._input || (this.done = !0);
|
|
417
|
-
var v, A, L,
|
|
417
|
+
var v, A, L, b;
|
|
418
418
|
this._more || (this.yytext = "", this.match = "");
|
|
419
|
-
for (var
|
|
420
|
-
if (L = this._input.match(this.rules[
|
|
421
|
-
if (A = L,
|
|
422
|
-
if (v = this.test_match(L,
|
|
419
|
+
for (var C = this._currentRules(), d = 0; d < C.length; d++)
|
|
420
|
+
if (L = this._input.match(this.rules[C[d]]), L && (!A || L[0].length > A[0].length)) {
|
|
421
|
+
if (A = L, b = d, this.options.backtrack_lexer) {
|
|
422
|
+
if (v = this.test_match(L, C[d]), v !== !1)
|
|
423
423
|
return v;
|
|
424
424
|
if (this._backtrack) {
|
|
425
425
|
A = !1;
|
|
@@ -429,7 +429,7 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
429
429
|
} else if (!this.options.flex)
|
|
430
430
|
break;
|
|
431
431
|
}
|
|
432
|
-
return A ? (v = this.test_match(A,
|
|
432
|
+
return A ? (v = this.test_match(A, C[b]), v !== !1 ? v : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
433
433
|
` + this.showPosition(), {
|
|
434
434
|
text: "",
|
|
435
435
|
token: null,
|
|
@@ -467,8 +467,8 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
467
467
|
return this.conditionStack.length;
|
|
468
468
|
}, "stateStackSize"),
|
|
469
469
|
options: { "case-insensitive": !0 },
|
|
470
|
-
performAction: /* @__PURE__ */ f(function(A, L,
|
|
471
|
-
switch (
|
|
470
|
+
performAction: /* @__PURE__ */ f(function(A, L, b, C) {
|
|
471
|
+
switch (b) {
|
|
472
472
|
case 0:
|
|
473
473
|
return 5;
|
|
474
474
|
case 1:
|
|
@@ -625,13 +625,13 @@ Expecting ` + Nt.join(", ") + ", got '" + (this.terminals_[J] || J) + "'" : zt =
|
|
|
625
625
|
conditions: { acc_descr_multiline: { rules: [50, 51], inclusive: !1 }, acc_descr: { rules: [48], inclusive: !1 }, acc_title: { rules: [46], inclusive: !1 }, ID: { rules: [2, 3, 7, 10, 11, 17], inclusive: !1 }, ALIAS: { rules: [2, 3, 18, 19], inclusive: !1 }, LINE: { rules: [2, 3, 31], inclusive: !1 }, CONFIG: { rules: [8, 9], inclusive: !1 }, CONFIG_DATA: { rules: [], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 4, 5, 6, 12, 13, 14, 15, 16, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 49, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73], inclusive: !0 } }
|
|
626
626
|
};
|
|
627
627
|
return pt;
|
|
628
|
-
}();
|
|
628
|
+
})();
|
|
629
629
|
Yt.lexer = ye;
|
|
630
630
|
function At() {
|
|
631
631
|
this.yy = {};
|
|
632
632
|
}
|
|
633
633
|
return f(At, "Parser"), At.prototype = Yt, Yt.Parser = At, new At();
|
|
634
|
-
}();
|
|
634
|
+
})();
|
|
635
635
|
Ut.parser = Ut;
|
|
636
636
|
var Ve = Ut, Ye = {
|
|
637
637
|
SOLID: 0,
|
|
@@ -713,7 +713,7 @@ var Ve = Ut, Ye = {
|
|
|
713
713
|
` + i + `
|
|
714
714
|
}`, h = Me(a, { schema: Re });
|
|
715
715
|
}
|
|
716
|
-
r =
|
|
716
|
+
r = h?.type ?? r;
|
|
717
717
|
const o = this.state.records.actors.get(t);
|
|
718
718
|
if (o) {
|
|
719
719
|
if (this.state.records.currentBox && o.box && this.state.records.currentBox !== o.box)
|
|
@@ -723,7 +723,7 @@ var Ve = Ut, Ye = {
|
|
|
723
723
|
if (c = o.box ? o.box : this.state.records.currentBox, o.box = c, o && n === o.name && s == null)
|
|
724
724
|
return;
|
|
725
725
|
}
|
|
726
|
-
if (
|
|
726
|
+
if (s?.text == null && (s = { text: n, type: r }), (r == null || s.text == null) && (s = { text: n, type: r }), this.state.records.actors.set(t, {
|
|
727
727
|
box: c,
|
|
728
728
|
name: n,
|
|
729
729
|
description: s.text,
|
|
@@ -773,8 +773,8 @@ var Ve = Ut, Ye = {
|
|
|
773
773
|
id: this.state.records.messages.length.toString(),
|
|
774
774
|
from: t,
|
|
775
775
|
to: n,
|
|
776
|
-
message:
|
|
777
|
-
wrap:
|
|
776
|
+
message: s?.text ?? "",
|
|
777
|
+
wrap: s?.wrap ?? this.autoWrap(),
|
|
778
778
|
type: r,
|
|
779
779
|
activate: i
|
|
780
780
|
}), !0;
|
|
@@ -826,8 +826,7 @@ var Ve = Ut, Ye = {
|
|
|
826
826
|
return { cleanedText: (n === void 0 ? t : t.replace(/^:?(?:no)?wrap:/, "")).trim(), wrap: n };
|
|
827
827
|
}
|
|
828
828
|
autoWrap() {
|
|
829
|
-
|
|
830
|
-
return this.state.records.wrapEnabled !== void 0 ? this.state.records.wrapEnabled : ((t = st().sequence) == null ? void 0 : t.wrap) ?? !1;
|
|
829
|
+
return this.state.records.wrapEnabled !== void 0 ? this.state.records.wrapEnabled : st().sequence?.wrap ?? !1;
|
|
831
830
|
}
|
|
832
831
|
clear() {
|
|
833
832
|
this.state.reset(), De();
|
|
@@ -844,8 +843,8 @@ var Ve = Ut, Ye = {
|
|
|
844
843
|
// We extract first segment as color, the rest of the line is considered as text
|
|
845
844
|
parseBoxData(t) {
|
|
846
845
|
const n = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);
|
|
847
|
-
let s = n
|
|
848
|
-
if (window
|
|
846
|
+
let s = n?.[1] ? n[1].trim() : "transparent", r = n?.[2] ? n[2].trim() : void 0;
|
|
847
|
+
if (window?.CSS)
|
|
849
848
|
window.CSS.supports("color", s) || (s = "transparent", r = t.trim());
|
|
850
849
|
else {
|
|
851
850
|
const h = new Option().style;
|
|
@@ -935,7 +934,7 @@ var Ve = Ut, Ye = {
|
|
|
935
934
|
}
|
|
936
935
|
}
|
|
937
936
|
getActorProperty(t, n) {
|
|
938
|
-
if (
|
|
937
|
+
if (t?.properties !== void 0)
|
|
939
938
|
return t.properties[n];
|
|
940
939
|
}
|
|
941
940
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
|
|
@@ -1197,7 +1196,7 @@ var Ve = Ut, Ye = {
|
|
|
1197
1196
|
stroke-width: 2px;
|
|
1198
1197
|
}
|
|
1199
1198
|
|
|
1200
|
-
`, "getStyles"), He = ze, Tt =
|
|
1199
|
+
`, "getStyles"), He = ze, Tt = 36, gt = "actor-top", xt = "actor-bottom", Ct = "actor-box", ut = "actor-man", Lt = /* @__PURE__ */ f(function(e, t) {
|
|
1201
1200
|
return ve(e, t);
|
|
1202
1201
|
}, "drawRect"), Ue = /* @__PURE__ */ f(function(e, t, n, s, r) {
|
|
1203
1202
|
if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0)
|
|
@@ -1214,10 +1213,10 @@ var Ve = Ut, Ye = {
|
|
|
1214
1213
|
if (x.attr("class", "actorPopupMenuPanel" + p), x.attr("x", h.x), x.attr("y", h.height), x.attr("fill", h.fill), x.attr("stroke", h.stroke), x.attr("width", g), x.attr("height", h.height), x.attr("rx", h.rx), x.attr("ry", h.ry), i != null) {
|
|
1215
1214
|
var y = 20;
|
|
1216
1215
|
for (let k in i) {
|
|
1217
|
-
var
|
|
1218
|
-
|
|
1216
|
+
var m = a.append("a"), w = re.sanitizeUrl(i[k]);
|
|
1217
|
+
m.attr("xlink:href", w), m.attr("target", "_blank"), us(s)(
|
|
1219
1218
|
k,
|
|
1220
|
-
|
|
1219
|
+
m,
|
|
1221
1220
|
h.x + 10,
|
|
1222
1221
|
h.height + y,
|
|
1223
1222
|
g,
|
|
@@ -1289,8 +1288,8 @@ var Ve = Ut, Ye = {
|
|
|
1289
1288
|
x.attr("x", t.x), x.attr("y", a()), t.anchor !== void 0 && x.attr("text-anchor", t.anchor).attr("dominant-baseline", t.dominantBaseline).attr("alignment-baseline", t.alignmentBaseline), t.fontFamily !== void 0 && x.style("font-family", t.fontFamily), c !== void 0 && x.style("font-size", c), t.fontWeight !== void 0 && x.style("font-weight", t.fontWeight), t.fill !== void 0 && x.attr("fill", t.fill), t.class !== void 0 && x.attr("class", t.class), t.dy !== void 0 ? x.attr("dy", t.dy) : o !== 0 && x.attr("dy", o);
|
|
1290
1289
|
const y = g || Ce;
|
|
1291
1290
|
if (t.tspan) {
|
|
1292
|
-
const
|
|
1293
|
-
|
|
1291
|
+
const m = x.append("tspan");
|
|
1292
|
+
m.attr("x", t.x), t.fill !== void 0 && m.attr("fill", t.fill), m.text(y);
|
|
1294
1293
|
} else
|
|
1295
1294
|
x.text(y);
|
|
1296
1295
|
t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (s += (x._groups || x)[0][0].getBBox().height, n = s), h.push(x);
|
|
@@ -1309,17 +1308,16 @@ var Ve = Ut, Ye = {
|
|
|
1309
1308
|
!s.mirrorActors && i.stopy ? c.attr("y2", i.stopy + i.height / 2) : s.mirrorActors && c.attr("y2", i.stopy);
|
|
1310
1309
|
});
|
|
1311
1310
|
}, "fixLifeLineHeights"), Ge = /* @__PURE__ */ f(function(e, t, n, s) {
|
|
1312
|
-
var y, b;
|
|
1313
1311
|
const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + t.height, h = e.append("g").lower();
|
|
1314
1312
|
var o = h;
|
|
1315
1313
|
s || (P++, Object.keys(t.links || {}).length && !n.forceMenus && o.attr("onclick", Ot(`actor${P}_popup`)).attr("cursor", "pointer"), o.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), o = h.append("g"), t.actorCnt = P, t.links != null && o.attr("id", "root-" + P));
|
|
1316
1314
|
const a = ct();
|
|
1317
1315
|
var p = "actor";
|
|
1318
|
-
|
|
1316
|
+
t.properties?.class ? p = t.properties.class : a.fill = "#eaeaea", s ? p += ` ${xt}` : p += ` ${gt}`, a.x = t.x, a.y = r, a.width = t.width, a.height = t.height, a.class = p, a.rx = 3, a.ry = 3, a.name = t.name;
|
|
1319
1317
|
const g = Lt(o, a);
|
|
1320
|
-
if (t.rectData = a,
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1318
|
+
if (t.rectData = a, t.properties?.icon) {
|
|
1319
|
+
const y = t.properties.icon.trim();
|
|
1320
|
+
y.charAt(0) === "@" ? Jt(o, a.x + a.width - 20, a.y + 10, y.substr(1)) : Qt(o, a.x + a.width - 20, a.y + 10, y);
|
|
1323
1321
|
}
|
|
1324
1322
|
dt(n, z(t.description))(
|
|
1325
1323
|
t.description,
|
|
@@ -1333,27 +1331,26 @@ var Ve = Ut, Ye = {
|
|
|
1333
1331
|
);
|
|
1334
1332
|
let x = t.height;
|
|
1335
1333
|
if (g.node) {
|
|
1336
|
-
const
|
|
1337
|
-
t.height =
|
|
1334
|
+
const y = g.node().getBBox();
|
|
1335
|
+
t.height = y.height, x = y.height;
|
|
1338
1336
|
}
|
|
1339
1337
|
return x;
|
|
1340
1338
|
}, "drawActorTypeParticipant"), Ke = /* @__PURE__ */ f(function(e, t, n, s) {
|
|
1341
|
-
var w, k;
|
|
1342
1339
|
const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + t.height, h = e.append("g").lower();
|
|
1343
1340
|
var o = h;
|
|
1344
1341
|
s || (P++, Object.keys(t.links || {}).length && !n.forceMenus && o.attr("onclick", Ot(`actor${P}_popup`)).attr("cursor", "pointer"), o.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), o = h.append("g"), t.actorCnt = P, t.links != null && o.attr("id", "root-" + P));
|
|
1345
1342
|
const a = ct();
|
|
1346
1343
|
var p = "actor";
|
|
1347
|
-
|
|
1344
|
+
t.properties?.class ? p = t.properties.class : a.fill = "#eaeaea", s ? p += ` ${xt}` : p += ` ${gt}`, a.x = t.x, a.y = r, a.width = t.width, a.height = t.height, a.class = p, a.name = t.name;
|
|
1348
1345
|
const g = 6, x = {
|
|
1349
1346
|
...a,
|
|
1350
1347
|
x: a.x + -g,
|
|
1351
1348
|
y: a.y + +g,
|
|
1352
1349
|
class: "actor"
|
|
1353
1350
|
}, y = Lt(o, a);
|
|
1354
|
-
if (Lt(o, x), t.rectData = a,
|
|
1355
|
-
const
|
|
1356
|
-
|
|
1351
|
+
if (Lt(o, x), t.rectData = a, t.properties?.icon) {
|
|
1352
|
+
const w = t.properties.icon.trim();
|
|
1353
|
+
w.charAt(0) === "@" ? Jt(o, a.x + a.width - 20, a.y + 10, w.substr(1)) : Qt(o, a.x + a.width - 20, a.y + 10, w);
|
|
1357
1354
|
}
|
|
1358
1355
|
dt(n, z(t.description))(
|
|
1359
1356
|
t.description,
|
|
@@ -1365,21 +1362,20 @@ var Ve = Ut, Ye = {
|
|
|
1365
1362
|
{ class: `actor ${Ct}` },
|
|
1366
1363
|
n
|
|
1367
1364
|
);
|
|
1368
|
-
let
|
|
1365
|
+
let m = t.height;
|
|
1369
1366
|
if (y.node) {
|
|
1370
|
-
const
|
|
1371
|
-
t.height =
|
|
1367
|
+
const w = y.node().getBBox();
|
|
1368
|
+
t.height = w.height, m = w.height;
|
|
1372
1369
|
}
|
|
1373
|
-
return
|
|
1370
|
+
return m;
|
|
1374
1371
|
}, "drawActorTypeCollections"), Xe = /* @__PURE__ */ f(function(e, t, n, s) {
|
|
1375
|
-
var N, S;
|
|
1376
1372
|
const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + t.height, h = e.append("g").lower();
|
|
1377
1373
|
let o = h;
|
|
1378
1374
|
s || (P++, Object.keys(t.links || {}).length && !n.forceMenus && o.attr("onclick", Ot(`actor${P}_popup`)).attr("cursor", "pointer"), o.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), o = h.append("g"), t.actorCnt = P, t.links != null && o.attr("id", "root-" + P));
|
|
1379
1375
|
const a = ct();
|
|
1380
1376
|
let p = "actor";
|
|
1381
|
-
|
|
1382
|
-
const g = a.height / 2, x = g / (2.5 + a.height / 50), y = o.append("g"),
|
|
1377
|
+
t.properties?.class ? p = t.properties.class : a.fill = "#eaeaea", s ? p += ` ${xt}` : p += ` ${gt}`, a.x = t.x, a.y = r, a.width = t.width, a.height = t.height, a.class = p, a.name = t.name;
|
|
1378
|
+
const g = a.height / 2, x = g / (2.5 + a.height / 50), y = o.append("g"), m = o.append("g");
|
|
1383
1379
|
if (y.append("path").attr(
|
|
1384
1380
|
"d",
|
|
1385
1381
|
`M ${a.x},${a.y + g}
|
|
@@ -1388,13 +1384,13 @@ var Ve = Ut, Ye = {
|
|
|
1388
1384
|
a ${x},${g} 0 0 0 0,-${a.height}
|
|
1389
1385
|
Z
|
|
1390
1386
|
`
|
|
1391
|
-
).attr("class", p),
|
|
1387
|
+
).attr("class", p), m.append("path").attr(
|
|
1392
1388
|
"d",
|
|
1393
1389
|
`M ${a.x},${a.y + g}
|
|
1394
1390
|
a ${x},${g} 0 0 0 0,${a.height}`
|
|
1395
|
-
).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", p), y.attr("transform", `translate(${x}, ${-(a.height / 2)})`),
|
|
1396
|
-
const
|
|
1397
|
-
|
|
1391
|
+
).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", p), y.attr("transform", `translate(${x}, ${-(a.height / 2)})`), m.attr("transform", `translate(${a.width - x}, ${-a.height / 2})`), t.rectData = a, t.properties?.icon) {
|
|
1392
|
+
const N = t.properties.icon.trim(), S = a.x + a.width - 20, O = a.y + 10;
|
|
1393
|
+
N.charAt(0) === "@" ? Jt(o, S, O, N.substr(1)) : Qt(o, S, O, N);
|
|
1398
1394
|
}
|
|
1399
1395
|
dt(n, z(t.description))(
|
|
1400
1396
|
t.description,
|
|
@@ -1409,12 +1405,11 @@ var Ve = Ut, Ye = {
|
|
|
1409
1405
|
let w = t.height;
|
|
1410
1406
|
const k = y.select("path:last-child");
|
|
1411
1407
|
if (k.node()) {
|
|
1412
|
-
const
|
|
1413
|
-
t.height =
|
|
1408
|
+
const N = k.node().getBBox();
|
|
1409
|
+
t.height = N.height, w = N.height;
|
|
1414
1410
|
}
|
|
1415
1411
|
return w;
|
|
1416
1412
|
}, "drawActorTypeQueue"), Je = /* @__PURE__ */ f(function(e, t, n, s) {
|
|
1417
|
-
var w;
|
|
1418
1413
|
const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + 75, h = e.append("g").lower();
|
|
1419
1414
|
s || (P++, h.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = P);
|
|
1420
1415
|
const o = e.append("g");
|
|
@@ -1424,8 +1419,8 @@ var Ve = Ut, Ye = {
|
|
|
1424
1419
|
p.x = t.x, p.y = r, p.fill = "#eaeaea", p.width = t.width, p.height = t.height, p.class = "actor";
|
|
1425
1420
|
const g = t.x + t.width / 2, x = r + 30, y = 18;
|
|
1426
1421
|
o.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), o.append("circle").attr("cx", g).attr("cy", x).attr("r", y).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2), o.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${g}, ${x - y})`);
|
|
1427
|
-
const
|
|
1428
|
-
return t.height =
|
|
1422
|
+
const m = o.node().getBBox();
|
|
1423
|
+
return t.height = m.height + 2 * (n?.sequence?.labelBoxHeight ?? 0), dt(n, z(t.description))(
|
|
1429
1424
|
t.description,
|
|
1430
1425
|
o,
|
|
1431
1426
|
p.x,
|
|
@@ -1436,7 +1431,6 @@ var Ve = Ut, Ye = {
|
|
|
1436
1431
|
n
|
|
1437
1432
|
), t.height;
|
|
1438
1433
|
}, "drawActorTypeControl"), Qe = /* @__PURE__ */ f(function(e, t, n, s) {
|
|
1439
|
-
var w;
|
|
1440
1434
|
const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + 75, h = e.append("g").lower(), o = e.append("g");
|
|
1441
1435
|
let a = ut;
|
|
1442
1436
|
s ? a += ` ${xt}` : a += ` ${gt}`, o.attr("class", a), o.attr("name", t.name);
|
|
@@ -1444,8 +1438,8 @@ var Ve = Ut, Ye = {
|
|
|
1444
1438
|
p.x = t.x, p.y = r, p.fill = "#eaeaea", p.width = t.width, p.height = t.height, p.class = "actor";
|
|
1445
1439
|
const g = t.x + t.width / 2, x = r + (s ? 10 : 25), y = 18;
|
|
1446
1440
|
o.append("circle").attr("cx", g).attr("cy", x).attr("r", y).attr("width", t.width).attr("height", t.height), o.append("line").attr("x1", g - y).attr("x2", g + y).attr("y1", x + y).attr("y2", x + y).attr("stroke", "#333").attr("stroke-width", 2);
|
|
1447
|
-
const
|
|
1448
|
-
return t.height =
|
|
1441
|
+
const m = o.node().getBBox();
|
|
1442
|
+
return t.height = m.height + (n?.sequence?.labelBoxHeight ?? 0), s || (P++, h.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = P), dt(n, z(t.description))(
|
|
1449
1443
|
t.description,
|
|
1450
1444
|
o,
|
|
1451
1445
|
p.x,
|
|
@@ -1456,26 +1450,25 @@ var Ve = Ut, Ye = {
|
|
|
1456
1450
|
n
|
|
1457
1451
|
), s ? o.attr("transform", `translate(0, ${y / 2})`) : o.attr("transform", `translate(0, ${y / 2})`), t.height;
|
|
1458
1452
|
}, "drawActorTypeEntity"), Ze = /* @__PURE__ */ f(function(e, t, n, s) {
|
|
1459
|
-
var S;
|
|
1460
1453
|
const r = s ? t.stopy : t.starty, i = t.x + t.width / 2, c = r + t.height + 2 * n.boxTextMargin, h = e.append("g").lower();
|
|
1461
1454
|
let o = h;
|
|
1462
1455
|
s || (P++, Object.keys(t.links || {}).length && !n.forceMenus && o.attr("onclick", Ot(`actor${P}_popup`)).attr("cursor", "pointer"), o.append("line").attr("id", "actor" + P).attr("x1", i).attr("y1", c).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), o = h.append("g"), t.actorCnt = P, t.links != null && o.attr("id", "root-" + P));
|
|
1463
1456
|
const a = ct();
|
|
1464
1457
|
let p = "actor";
|
|
1465
|
-
|
|
1466
|
-
const g = a.width / 4, x = a.width / 4, y = g / 2,
|
|
1467
|
-
M ${a.x},${a.y +
|
|
1468
|
-
a ${y},${
|
|
1469
|
-
a ${y},${
|
|
1470
|
-
l 0,${x - 2 *
|
|
1471
|
-
a ${y},${
|
|
1472
|
-
l 0,-${x - 2 *
|
|
1458
|
+
t.properties?.class ? p = t.properties.class : a.fill = "#eaeaea", s ? p += ` ${xt}` : p += ` ${gt}`, a.x = t.x, a.y = r, a.width = t.width, a.height = t.height, a.class = p, a.name = t.name, a.x = t.x, a.y = r;
|
|
1459
|
+
const g = a.width / 4, x = a.width / 4, y = g / 2, m = y / (2.5 + g / 50), w = o.append("g"), k = `
|
|
1460
|
+
M ${a.x},${a.y + m}
|
|
1461
|
+
a ${y},${m} 0 0 0 ${g},0
|
|
1462
|
+
a ${y},${m} 0 0 0 -${g},0
|
|
1463
|
+
l 0,${x - 2 * m}
|
|
1464
|
+
a ${y},${m} 0 0 0 ${g},0
|
|
1465
|
+
l 0,-${x - 2 * m}
|
|
1473
1466
|
`;
|
|
1474
|
-
w.append("path").attr("d", k).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", p), s ? w.attr("transform", `translate(${g * 1.5}, ${a.height / 4 - 2 *
|
|
1467
|
+
w.append("path").attr("d", k).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", p), s ? w.attr("transform", `translate(${g * 1.5}, ${a.height / 4 - 2 * m})`) : w.attr("transform", `translate(${g * 1.5}, ${(a.height + m) / 4})`), t.rectData = a, dt(n, z(t.description))(
|
|
1475
1468
|
t.description,
|
|
1476
1469
|
o,
|
|
1477
1470
|
a.x,
|
|
1478
|
-
a.y + (s ? (a.height + x) / 4 : (a.height +
|
|
1471
|
+
a.y + (s ? (a.height + x) / 4 : (a.height + m) / 2),
|
|
1479
1472
|
a.width,
|
|
1480
1473
|
a.height,
|
|
1481
1474
|
{ class: `actor ${Ct}` },
|
|
@@ -1483,8 +1476,8 @@ var Ve = Ut, Ye = {
|
|
|
1483
1476
|
);
|
|
1484
1477
|
const N = w.select("path:last-child");
|
|
1485
1478
|
if (N.node()) {
|
|
1486
|
-
const
|
|
1487
|
-
t.height =
|
|
1479
|
+
const S = N.node().getBBox();
|
|
1480
|
+
t.height = S.height + (n.sequence.labelBoxHeight ?? 0);
|
|
1488
1481
|
}
|
|
1489
1482
|
return t.height;
|
|
1490
1483
|
}, "drawActorTypeDatabase"), $e = /* @__PURE__ */ f(function(e, t, n, s) {
|
|
@@ -1583,13 +1576,13 @@ var Ve = Ut, Ye = {
|
|
|
1583
1576
|
});
|
|
1584
1577
|
let y = Xt();
|
|
1585
1578
|
y.text = n, y.x = t.startx, y.y = t.starty, y.fontFamily = o, y.fontSize = a, y.fontWeight = p, y.anchor = "middle", y.valign = "middle", y.tspan = !1, y.width = h || 50, y.height = c || 20, y.textMargin = i, y.class = "labelText", oe(g, y), y = he(), y.text = t.title, y.x = t.startx + h / 2 + (t.stopx - t.startx) / 2, y.y = t.starty + r + i, y.anchor = "middle", y.valign = "middle", y.textMargin = i, y.class = "loopText", y.fontFamily = o, y.fontSize = a, y.fontWeight = p, y.wrap = !0;
|
|
1586
|
-
let
|
|
1579
|
+
let m = z(y.text) ? await Dt(g, y, t) : vt(g, y);
|
|
1587
1580
|
if (t.sectionTitles !== void 0) {
|
|
1588
1581
|
for (const [w, k] of Object.entries(t.sectionTitles))
|
|
1589
1582
|
if (k.message) {
|
|
1590
1583
|
y.text = k.message, y.x = t.startx + (t.stopx - t.startx) / 2, y.y = t.sections[w].y + r + i, y.class = "loopText", y.anchor = "middle", y.valign = "middle", y.tspan = !1, y.fontFamily = o, y.fontSize = a, y.fontWeight = p, y.wrap = t.wrap, z(y.text) ? (t.starty = t.sections[w].y, await Dt(g, y, t)) : vt(g, y);
|
|
1591
1584
|
let N = Math.round(
|
|
1592
|
-
|
|
1585
|
+
m.map((S) => (S._groups || S)[0][0].getBBox().height).reduce((S, O) => S + O)
|
|
1593
1586
|
);
|
|
1594
1587
|
t.sections[w].height += N - (r + i);
|
|
1595
1588
|
}
|
|
@@ -1647,17 +1640,17 @@ var Ve = Ut, Ye = {
|
|
|
1647
1640
|
rx: 0,
|
|
1648
1641
|
ry: 0
|
|
1649
1642
|
};
|
|
1650
|
-
}, "getNoteRect"), dt = /* @__PURE__ */ function() {
|
|
1643
|
+
}, "getNoteRect"), dt = /* @__PURE__ */ (function() {
|
|
1651
1644
|
function e(i, c, h, o, a, p, g) {
|
|
1652
1645
|
const x = c.append("text").attr("x", h + a / 2).attr("y", o + p / 2 + 5).style("text-anchor", "middle").text(i);
|
|
1653
1646
|
r(x, g);
|
|
1654
1647
|
}
|
|
1655
1648
|
f(e, "byText");
|
|
1656
1649
|
function t(i, c, h, o, a, p, g, x) {
|
|
1657
|
-
const { actorFontSize: y, actorFontFamily:
|
|
1658
|
-
for (let
|
|
1659
|
-
const
|
|
1660
|
-
|
|
1650
|
+
const { actorFontSize: y, actorFontFamily: m, actorFontWeight: w } = x, [k, N] = ie(y), S = i.split(I.lineBreakRegex);
|
|
1651
|
+
for (let O = 0; O < S.length; O++) {
|
|
1652
|
+
const B = O * k - k * (S.length - 1) / 2, q = c.append("text").attr("x", h + a / 2).attr("y", o).style("text-anchor", "middle").style("font-size", N).style("font-weight", w).style("font-family", m);
|
|
1653
|
+
q.append("tspan").attr("x", h + a / 2).attr("dy", B).text(S[O]), q.attr("y", o + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(q, g);
|
|
1661
1654
|
}
|
|
1662
1655
|
}
|
|
1663
1656
|
f(t, "byTspan");
|
|
@@ -1667,8 +1660,8 @@ var Ve = Ut, Ye = {
|
|
|
1667
1660
|
}
|
|
1668
1661
|
f(n, "byFo");
|
|
1669
1662
|
async function s(i, c, h, o, a, p, g, x) {
|
|
1670
|
-
const y = await _t(i, Ht()),
|
|
1671
|
-
k.append("div").style("text-align", "center").style("vertical-align", "middle").html(await ne(i, Ht())), t(i,
|
|
1663
|
+
const y = await _t(i, Ht()), m = c.append("switch"), k = m.append("foreignObject").attr("x", h + a / 2 - y.width / 2).attr("y", o + p / 2 - y.height / 2).attr("width", y.width).attr("height", y.height).append("xhtml:div").style("height", "100%").style("width", "100%");
|
|
1664
|
+
k.append("div").style("text-align", "center").style("vertical-align", "middle").html(await ne(i, Ht())), t(i, m, h, o, a, p, g, x), r(k, g);
|
|
1672
1665
|
}
|
|
1673
1666
|
f(s, "byKatex");
|
|
1674
1667
|
function r(i, c) {
|
|
@@ -1678,23 +1671,23 @@ var Ve = Ut, Ye = {
|
|
|
1678
1671
|
return f(r, "_setTextAttrs"), function(i, c = !1) {
|
|
1679
1672
|
return c ? s : i.textPlacement === "fo" ? n : i.textPlacement === "old" ? e : t;
|
|
1680
1673
|
};
|
|
1681
|
-
}(), us = /* @__PURE__ */ function() {
|
|
1674
|
+
})(), us = /* @__PURE__ */ (function() {
|
|
1682
1675
|
function e(r, i, c, h, o, a, p) {
|
|
1683
1676
|
const g = i.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").text(r);
|
|
1684
1677
|
s(g, p);
|
|
1685
1678
|
}
|
|
1686
1679
|
f(e, "byText");
|
|
1687
1680
|
function t(r, i, c, h, o, a, p, g) {
|
|
1688
|
-
const { actorFontSize: x, actorFontFamily: y, actorFontWeight:
|
|
1681
|
+
const { actorFontSize: x, actorFontFamily: y, actorFontWeight: m } = g, w = r.split(I.lineBreakRegex);
|
|
1689
1682
|
for (let k = 0; k < w.length; k++) {
|
|
1690
|
-
const N = k * x - x * (w.length - 1) / 2, S = i.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").style("font-size", x).style("font-weight",
|
|
1683
|
+
const N = k * x - x * (w.length - 1) / 2, S = i.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").style("font-size", x).style("font-weight", m).style("font-family", y);
|
|
1691
1684
|
S.append("tspan").attr("x", c).attr("dy", N).text(w[k]), S.attr("y", h + a / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(S, p);
|
|
1692
1685
|
}
|
|
1693
1686
|
}
|
|
1694
1687
|
f(t, "byTspan");
|
|
1695
1688
|
function n(r, i, c, h, o, a, p, g) {
|
|
1696
|
-
const x = i.append("switch"),
|
|
1697
|
-
|
|
1689
|
+
const x = i.append("switch"), m = x.append("foreignObject").attr("x", c).attr("y", h).attr("width", o).attr("height", a).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
1690
|
+
m.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, x, c, h, o, a, p, g), s(m, p);
|
|
1698
1691
|
}
|
|
1699
1692
|
f(n, "byFo");
|
|
1700
1693
|
function s(r, i) {
|
|
@@ -1704,7 +1697,7 @@ var Ve = Ut, Ye = {
|
|
|
1704
1697
|
return f(s, "_setTextAttrs"), function(r) {
|
|
1705
1698
|
return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
|
|
1706
1699
|
};
|
|
1707
|
-
}(), V = {
|
|
1700
|
+
})(), V = {
|
|
1708
1701
|
drawRect: Lt,
|
|
1709
1702
|
drawText: vt,
|
|
1710
1703
|
drawLabel: oe,
|
|
@@ -1725,7 +1718,7 @@ var Ve = Ut, Ye = {
|
|
|
1725
1718
|
getTextObj: he,
|
|
1726
1719
|
getNoteRect: ps,
|
|
1727
1720
|
fixLifeLineHeights: ce,
|
|
1728
|
-
sanitizeUrl: re
|
|
1721
|
+
sanitizeUrl: re.sanitizeUrl
|
|
1729
1722
|
}, l = {}, T = {
|
|
1730
1723
|
data: {
|
|
1731
1724
|
startx: void 0,
|
|
@@ -1889,7 +1882,7 @@ var Ve = Ut, Ye = {
|
|
|
1889
1882
|
}), "actorFont");
|
|
1890
1883
|
async function de(e, t) {
|
|
1891
1884
|
T.bumpVerticalPos(10);
|
|
1892
|
-
const { startx: n, stopx: s, message: r } = t, i = I.splitBreaks(r).length, c = z(r), h = c ? await _t(r, st()) :
|
|
1885
|
+
const { startx: n, stopx: s, message: r } = t, i = I.splitBreaks(r).length, c = z(r), h = c ? await _t(r, st()) : W.calculateTextDimensions(r, Et(l));
|
|
1893
1886
|
if (!c) {
|
|
1894
1887
|
const g = h.height / i;
|
|
1895
1888
|
t.height += g, T.bumpVerticalPos(g);
|
|
@@ -1911,19 +1904,19 @@ async function de(e, t) {
|
|
|
1911
1904
|
}
|
|
1912
1905
|
f(de, "boundMessage");
|
|
1913
1906
|
var xs = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
1914
|
-
const { startx: r, stopx: i, starty: c, message: h, type: o, sequenceIndex: a, sequenceVisible: p } = t, g =
|
|
1907
|
+
const { startx: r, stopx: i, starty: c, message: h, type: o, sequenceIndex: a, sequenceVisible: p } = t, g = W.calculateTextDimensions(h, Et(l)), x = Xt();
|
|
1915
1908
|
x.x = r, x.y = c + 10, x.width = i - r, x.class = "messageText", x.dy = "1em", x.text = h, x.fontFamily = l.messageFontFamily, x.fontSize = l.messageFontSize, x.fontWeight = l.messageFontWeight, x.anchor = l.messageAlign, x.valign = "center", x.textMargin = l.wrapPadding, x.tspan = !1, z(x.text) ? await Dt(e, x, { startx: r, stopx: i, starty: n }) : vt(e, x);
|
|
1916
1909
|
const y = g.width;
|
|
1917
|
-
let
|
|
1918
|
-
r === i ? l.rightAngles ?
|
|
1910
|
+
let m;
|
|
1911
|
+
r === i ? l.rightAngles ? m = e.append("path").attr(
|
|
1919
1912
|
"d",
|
|
1920
1913
|
`M ${r},${n} H ${r + I.getMax(l.width / 2, y / 2)} V ${n + 25} H ${r}`
|
|
1921
|
-
) :
|
|
1914
|
+
) : m = e.append("path").attr(
|
|
1922
1915
|
"d",
|
|
1923
1916
|
"M " + r + "," + n + " C " + (r + 60) + "," + (n - 10) + " " + (r + 60) + "," + (n + 30) + " " + r + "," + (n + 20)
|
|
1924
|
-
) : (
|
|
1917
|
+
) : (m = e.append("line"), m.attr("x1", r), m.attr("y1", n), m.attr("x2", i), m.attr("y2", n)), o === s.db.LINETYPE.DOTTED || o === s.db.LINETYPE.DOTTED_CROSS || o === s.db.LINETYPE.DOTTED_POINT || o === s.db.LINETYPE.DOTTED_OPEN || o === s.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (m.style("stroke-dasharray", "3, 3"), m.attr("class", "messageLine1")) : m.attr("class", "messageLine0");
|
|
1925
1918
|
let w = "";
|
|
1926
|
-
l.arrowMarkerAbsolute && (w = Oe(!0)),
|
|
1919
|
+
l.arrowMarkerAbsolute && (w = Oe(!0)), m.attr("stroke-width", 2), m.attr("stroke", "none"), m.style("fill", "none"), (o === s.db.LINETYPE.SOLID || o === s.db.LINETYPE.DOTTED) && m.attr("marker-end", "url(" + w + "#arrowhead)"), (o === s.db.LINETYPE.BIDIRECTIONAL_SOLID || o === s.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (m.attr("marker-start", "url(" + w + "#arrowhead)"), m.attr("marker-end", "url(" + w + "#arrowhead)")), (o === s.db.LINETYPE.SOLID_POINT || o === s.db.LINETYPE.DOTTED_POINT) && m.attr("marker-end", "url(" + w + "#filled-head)"), (o === s.db.LINETYPE.SOLID_CROSS || o === s.db.LINETYPE.DOTTED_CROSS) && m.attr("marker-end", "url(" + w + "#crosshead)"), (p || l.showSequenceNumbers) && ((o === s.db.LINETYPE.BIDIRECTIONAL_SOLID || o === s.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (r < i ? m.attr("x1", r + 12) : m.attr("x1", r + 6)), e.append("line").attr("x1", r).attr("y1", n).attr("x2", r).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + w + "#sequencenumber)"), e.append("text").attr("x", r).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(a));
|
|
1927
1920
|
}, "drawMessage"), fs = /* @__PURE__ */ f(function(e, t, n, s, r, i, c) {
|
|
1928
1921
|
let h = 0, o = 0, a, p = 0;
|
|
1929
1922
|
for (const g of s) {
|
|
@@ -1986,8 +1979,8 @@ function nt(e, t, n, s, r) {
|
|
|
1986
1979
|
let i = s;
|
|
1987
1980
|
if (t.id && t.message && e[t.id]) {
|
|
1988
1981
|
const c = e[t.id].width, h = Et(l);
|
|
1989
|
-
t.message =
|
|
1990
|
-
const o =
|
|
1982
|
+
t.message = W.wrapLabel(`[${t.message}]`, c - 2 * l.wrapPadding, h), t.width = c, t.wrap = !0;
|
|
1983
|
+
const o = W.calculateTextDimensions(t.message, h), a = I.getMax(o.height, l.labelBoxHeight);
|
|
1991
1984
|
i = s + a, Q.debug(`${a} - ${t.message}`);
|
|
1992
1985
|
}
|
|
1993
1986
|
r(t), T.bumpVerticalPos(i);
|
|
@@ -2056,18 +2049,18 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2056
2049
|
const h = r === "sandbox" ? St(c.nodes()[0].contentDocument.body) : St("body"), o = r === "sandbox" ? c.nodes()[0].contentDocument : document;
|
|
2057
2050
|
T.init(), Q.debug(s.db);
|
|
2058
2051
|
const a = r === "sandbox" ? h.select(`[id="${t}"]`) : St(`[id="${t}"]`), p = s.db.getActors(), g = s.db.getCreatedActors(), x = s.db.getDestroyedActors(), y = s.db.getBoxes();
|
|
2059
|
-
let
|
|
2060
|
-
const w = s.db.getMessages(), k = s.db.getDiagramTitle(), N = s.db.hasAtLeastOneBox(), S = s.db.hasAtLeastOneBoxWithTitle(),
|
|
2061
|
-
if (l.height = await fe(p,
|
|
2052
|
+
let m = s.db.getActorKeys();
|
|
2053
|
+
const w = s.db.getMessages(), k = s.db.getDiagramTitle(), N = s.db.hasAtLeastOneBox(), S = s.db.hasAtLeastOneBoxWithTitle(), O = await xe(p, w, s);
|
|
2054
|
+
if (l.height = await fe(p, O, y), V.insertComputerIcon(a), V.insertDatabaseIcon(a), V.insertClockIcon(a), N && (T.bumpVerticalPos(l.boxMargin), S && T.bumpVerticalPos(y[0].textMaxHeight)), l.hideUnusedParticipants === !0) {
|
|
2062
2055
|
const E = /* @__PURE__ */ new Set();
|
|
2063
2056
|
w.forEach((_) => {
|
|
2064
2057
|
E.add(_.from), E.add(_.to);
|
|
2065
|
-
}),
|
|
2058
|
+
}), m = m.filter((_) => E.has(_));
|
|
2066
2059
|
}
|
|
2067
|
-
fs(a, p, g,
|
|
2068
|
-
const
|
|
2060
|
+
fs(a, p, g, m, 0, w, !1);
|
|
2061
|
+
const B = await ms(w, p, O, s);
|
|
2069
2062
|
V.insertArrowHead(a), V.insertArrowCrossHead(a), V.insertArrowFilledHead(a), V.insertSequenceNumber(a);
|
|
2070
|
-
function
|
|
2063
|
+
function q(E, _) {
|
|
2071
2064
|
const X = T.endActivation(E);
|
|
2072
2065
|
X.starty + 18 > _ && (X.starty = _ - 6, _ += 12), V.drawActivation(
|
|
2073
2066
|
a,
|
|
@@ -2077,7 +2070,7 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2077
2070
|
Bt(E.from).length
|
|
2078
2071
|
), T.insert(X.startx, _ - 10, X.stopx, _);
|
|
2079
2072
|
}
|
|
2080
|
-
f(
|
|
2073
|
+
f(q, "activeEnd");
|
|
2081
2074
|
let H = 1, Z = 1;
|
|
2082
2075
|
const at = [], U = [];
|
|
2083
2076
|
let G = 0;
|
|
@@ -2091,15 +2084,15 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2091
2084
|
T.newActivation(E, a, p);
|
|
2092
2085
|
break;
|
|
2093
2086
|
case s.db.LINETYPE.ACTIVE_END:
|
|
2094
|
-
|
|
2087
|
+
q(E, T.getVerticalPos());
|
|
2095
2088
|
break;
|
|
2096
2089
|
case s.db.LINETYPE.LOOP_START:
|
|
2097
2090
|
nt(
|
|
2098
|
-
|
|
2091
|
+
B,
|
|
2099
2092
|
E,
|
|
2100
2093
|
l.boxMargin,
|
|
2101
2094
|
l.boxMargin + l.boxTextMargin,
|
|
2102
|
-
(
|
|
2095
|
+
(M) => T.newLoop(M)
|
|
2103
2096
|
);
|
|
2104
2097
|
break;
|
|
2105
2098
|
case s.db.LINETYPE.LOOP_END:
|
|
@@ -2107,11 +2100,11 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2107
2100
|
break;
|
|
2108
2101
|
case s.db.LINETYPE.RECT_START:
|
|
2109
2102
|
nt(
|
|
2110
|
-
|
|
2103
|
+
B,
|
|
2111
2104
|
E,
|
|
2112
2105
|
l.boxMargin,
|
|
2113
2106
|
l.boxMargin,
|
|
2114
|
-
(
|
|
2107
|
+
(M) => T.newLoop(void 0, M.message)
|
|
2115
2108
|
);
|
|
2116
2109
|
break;
|
|
2117
2110
|
case s.db.LINETYPE.RECT_END:
|
|
@@ -2119,11 +2112,11 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2119
2112
|
break;
|
|
2120
2113
|
case s.db.LINETYPE.OPT_START:
|
|
2121
2114
|
nt(
|
|
2122
|
-
|
|
2115
|
+
B,
|
|
2123
2116
|
E,
|
|
2124
2117
|
l.boxMargin,
|
|
2125
2118
|
l.boxMargin + l.boxTextMargin,
|
|
2126
|
-
(
|
|
2119
|
+
(M) => T.newLoop(M)
|
|
2127
2120
|
);
|
|
2128
2121
|
break;
|
|
2129
2122
|
case s.db.LINETYPE.OPT_END:
|
|
@@ -2131,20 +2124,20 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2131
2124
|
break;
|
|
2132
2125
|
case s.db.LINETYPE.ALT_START:
|
|
2133
2126
|
nt(
|
|
2134
|
-
|
|
2127
|
+
B,
|
|
2135
2128
|
E,
|
|
2136
2129
|
l.boxMargin,
|
|
2137
2130
|
l.boxMargin + l.boxTextMargin,
|
|
2138
|
-
(
|
|
2131
|
+
(M) => T.newLoop(M)
|
|
2139
2132
|
);
|
|
2140
2133
|
break;
|
|
2141
2134
|
case s.db.LINETYPE.ALT_ELSE:
|
|
2142
2135
|
nt(
|
|
2143
|
-
|
|
2136
|
+
B,
|
|
2144
2137
|
E,
|
|
2145
2138
|
l.boxMargin + l.boxTextMargin,
|
|
2146
2139
|
l.boxMargin,
|
|
2147
|
-
(
|
|
2140
|
+
(M) => T.addSectionToLoop(M)
|
|
2148
2141
|
);
|
|
2149
2142
|
break;
|
|
2150
2143
|
case s.db.LINETYPE.ALT_END:
|
|
@@ -2153,20 +2146,20 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2153
2146
|
case s.db.LINETYPE.PAR_START:
|
|
2154
2147
|
case s.db.LINETYPE.PAR_OVER_START:
|
|
2155
2148
|
nt(
|
|
2156
|
-
|
|
2149
|
+
B,
|
|
2157
2150
|
E,
|
|
2158
2151
|
l.boxMargin,
|
|
2159
2152
|
l.boxMargin + l.boxTextMargin,
|
|
2160
|
-
(
|
|
2153
|
+
(M) => T.newLoop(M)
|
|
2161
2154
|
), T.saveVerticalPos();
|
|
2162
2155
|
break;
|
|
2163
2156
|
case s.db.LINETYPE.PAR_AND:
|
|
2164
2157
|
nt(
|
|
2165
|
-
|
|
2158
|
+
B,
|
|
2166
2159
|
E,
|
|
2167
2160
|
l.boxMargin + l.boxTextMargin,
|
|
2168
2161
|
l.boxMargin,
|
|
2169
|
-
(
|
|
2162
|
+
(M) => T.addSectionToLoop(M)
|
|
2170
2163
|
);
|
|
2171
2164
|
break;
|
|
2172
2165
|
case s.db.LINETYPE.PAR_END:
|
|
@@ -2177,20 +2170,20 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2177
2170
|
break;
|
|
2178
2171
|
case s.db.LINETYPE.CRITICAL_START:
|
|
2179
2172
|
nt(
|
|
2180
|
-
|
|
2173
|
+
B,
|
|
2181
2174
|
E,
|
|
2182
2175
|
l.boxMargin,
|
|
2183
2176
|
l.boxMargin + l.boxTextMargin,
|
|
2184
|
-
(
|
|
2177
|
+
(M) => T.newLoop(M)
|
|
2185
2178
|
);
|
|
2186
2179
|
break;
|
|
2187
2180
|
case s.db.LINETYPE.CRITICAL_OPTION:
|
|
2188
2181
|
nt(
|
|
2189
|
-
|
|
2182
|
+
B,
|
|
2190
2183
|
E,
|
|
2191
2184
|
l.boxMargin + l.boxTextMargin,
|
|
2192
2185
|
l.boxMargin,
|
|
2193
|
-
(
|
|
2186
|
+
(M) => T.addSectionToLoop(M)
|
|
2194
2187
|
);
|
|
2195
2188
|
break;
|
|
2196
2189
|
case s.db.LINETYPE.CRITICAL_END:
|
|
@@ -2198,11 +2191,11 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2198
2191
|
break;
|
|
2199
2192
|
case s.db.LINETYPE.BREAK_START:
|
|
2200
2193
|
nt(
|
|
2201
|
-
|
|
2194
|
+
B,
|
|
2202
2195
|
E,
|
|
2203
2196
|
l.boxMargin,
|
|
2204
2197
|
l.boxMargin + l.boxTextMargin,
|
|
2205
|
-
(
|
|
2198
|
+
(M) => T.newLoop(M)
|
|
2206
2199
|
);
|
|
2207
2200
|
break;
|
|
2208
2201
|
case s.db.LINETYPE.BREAK_END:
|
|
@@ -2211,18 +2204,18 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2211
2204
|
default:
|
|
2212
2205
|
try {
|
|
2213
2206
|
tt = E.msgModel, tt.starty = T.getVerticalPos(), tt.sequenceIndex = H, tt.sequenceVisible = s.db.showSequenceNumbers();
|
|
2214
|
-
const
|
|
2207
|
+
const M = await de(a, tt);
|
|
2215
2208
|
ge(
|
|
2216
2209
|
E,
|
|
2217
2210
|
tt,
|
|
2218
|
-
|
|
2211
|
+
M,
|
|
2219
2212
|
G,
|
|
2220
2213
|
p,
|
|
2221
2214
|
g,
|
|
2222
2215
|
x
|
|
2223
|
-
), at.push({ messageModel: tt, lineStartY:
|
|
2224
|
-
} catch (
|
|
2225
|
-
Q.error("error while drawing message",
|
|
2216
|
+
), at.push({ messageModel: tt, lineStartY: M }), T.models.addMessage(tt);
|
|
2217
|
+
} catch (M) {
|
|
2218
|
+
Q.error("error while drawing message", M);
|
|
2226
2219
|
}
|
|
2227
2220
|
}
|
|
2228
2221
|
[
|
|
@@ -2238,30 +2231,30 @@ var ys = /* @__PURE__ */ f(async function(e, t, n, s) {
|
|
|
2238
2231
|
s.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
2239
2232
|
].includes(E.type) && (H = H + Z), G++;
|
|
2240
2233
|
}
|
|
2241
|
-
Q.debug("createdActors", g), Q.debug("destroyedActors", x), await Kt(a, p,
|
|
2234
|
+
Q.debug("createdActors", g), Q.debug("destroyedActors", x), await Kt(a, p, m, !1);
|
|
2242
2235
|
for (const E of at)
|
|
2243
2236
|
await xs(a, E.messageModel, E.lineStartY, s);
|
|
2244
|
-
l.mirrorActors && await Kt(a, p,
|
|
2237
|
+
l.mirrorActors && await Kt(a, p, m, !0), U.forEach((E) => V.drawBackgroundRect(a, E)), ce(a, p, m, l);
|
|
2245
2238
|
for (const E of T.models.boxes) {
|
|
2246
2239
|
E.height = T.getVerticalPos() - E.y, T.insert(E.x, E.y, E.x + E.width, E.height);
|
|
2247
2240
|
const _ = l.boxMargin * 2;
|
|
2248
2241
|
E.startx = E.x - _, E.starty = E.y - _ * 0.25, E.stopx = E.startx + E.width + 2 * _, E.stopy = E.starty + E.height + _ * 0.75, E.stroke = "rgb(0,0,0, 0.5)", V.drawBox(a, E, l);
|
|
2249
2242
|
}
|
|
2250
2243
|
N && T.bumpVerticalPos(l.boxMargin);
|
|
2251
|
-
const
|
|
2252
|
-
|
|
2253
|
-
let $ =
|
|
2254
|
-
$ <
|
|
2244
|
+
const F = pe(a, p, m, o), { bounds: D } = T.getBounds();
|
|
2245
|
+
D.startx === void 0 && (D.startx = 0), D.starty === void 0 && (D.starty = 0), D.stopx === void 0 && (D.stopx = 0), D.stopy === void 0 && (D.stopy = 0);
|
|
2246
|
+
let $ = D.stopy - D.starty;
|
|
2247
|
+
$ < F.maxHeight && ($ = F.maxHeight);
|
|
2255
2248
|
let K = $ + 2 * l.diagramMarginY;
|
|
2256
2249
|
l.mirrorActors && (K = K - l.boxMargin + l.bottomMarginAdj);
|
|
2257
|
-
let j =
|
|
2258
|
-
j <
|
|
2250
|
+
let j = D.stopx - D.startx;
|
|
2251
|
+
j < F.maxWidth && (j = F.maxWidth);
|
|
2259
2252
|
const rt = j + 2 * l.diagramMarginX;
|
|
2260
|
-
k && a.append("text").text(k).attr("x", (
|
|
2261
|
-
const
|
|
2253
|
+
k && a.append("text").text(k).attr("x", (D.stopx - D.startx) / 2 - 2 * l.diagramMarginX).attr("y", -25), Le(a, K, rt, l.useMaxWidth);
|
|
2254
|
+
const R = k ? 40 : 0;
|
|
2262
2255
|
a.attr(
|
|
2263
2256
|
"viewBox",
|
|
2264
|
-
|
|
2257
|
+
D.startx - l.diagramMarginX + " -" + (l.diagramMarginY + R) + " " + rt + " " + (K + R)
|
|
2265
2258
|
), Q.debug("models:", T.models);
|
|
2266
2259
|
}, "draw");
|
|
2267
2260
|
async function xe(e, t, n) {
|
|
@@ -2271,7 +2264,7 @@ async function xe(e, t, n) {
|
|
|
2271
2264
|
const i = e.get(r.to);
|
|
2272
2265
|
if (r.placement === n.db.PLACEMENT.LEFTOF && !i.prevActor || r.placement === n.db.PLACEMENT.RIGHTOF && !i.nextActor)
|
|
2273
2266
|
continue;
|
|
2274
|
-
const c = r.placement !== void 0, h = !c, o = c ? mt(l) : Et(l), a = r.wrap ?
|
|
2267
|
+
const c = r.placement !== void 0, h = !c, o = c ? mt(l) : Et(l), a = r.wrap ? W.wrapLabel(r.message, l.width - 2 * l.wrapPadding, o) : r.message, g = (z(a) ? await _t(r.message, st()) : W.calculateTextDimensions(a, o)).width + 2 * l.wrapPadding;
|
|
2275
2268
|
h && r.from === i.nextActor ? s[r.to] = I.getMax(
|
|
2276
2269
|
s[r.to] || 0,
|
|
2277
2270
|
g
|
|
@@ -2305,7 +2298,7 @@ var Ts = /* @__PURE__ */ f(function(e) {
|
|
|
2305
2298
|
let t = 0;
|
|
2306
2299
|
const n = Gt(l);
|
|
2307
2300
|
for (const s in e.links) {
|
|
2308
|
-
const i =
|
|
2301
|
+
const i = W.calculateTextDimensions(s, n).width + 2 * l.wrapPadding + 2 * l.boxMargin;
|
|
2309
2302
|
t < i && (t = i);
|
|
2310
2303
|
}
|
|
2311
2304
|
return t;
|
|
@@ -2314,12 +2307,12 @@ async function fe(e, t, n) {
|
|
|
2314
2307
|
let s = 0;
|
|
2315
2308
|
for (const i of e.keys()) {
|
|
2316
2309
|
const c = e.get(i);
|
|
2317
|
-
c.wrap && (c.description =
|
|
2310
|
+
c.wrap && (c.description = W.wrapLabel(
|
|
2318
2311
|
c.description,
|
|
2319
2312
|
l.width - 2 * l.wrapPadding,
|
|
2320
2313
|
Gt(l)
|
|
2321
2314
|
));
|
|
2322
|
-
const h = z(c.description) ? await _t(c.description, st()) :
|
|
2315
|
+
const h = z(c.description) ? await _t(c.description, st()) : W.calculateTextDimensions(c.description, Gt(l));
|
|
2323
2316
|
c.width = c.wrap ? l.width : I.getMax(l.width, h.width + 2 * l.wrapPadding), c.height = c.wrap ? I.getMax(h.height, l.height) : l.height, s = I.getMax(s, c.height);
|
|
2324
2317
|
}
|
|
2325
2318
|
for (const i in t) {
|
|
@@ -2340,8 +2333,8 @@ async function fe(e, t, n) {
|
|
|
2340
2333
|
const c = Et(l);
|
|
2341
2334
|
let h = i.actorKeys.reduce((g, x) => g += e.get(x).width + (e.get(x).margin || 0), 0);
|
|
2342
2335
|
const o = l.boxMargin * 8;
|
|
2343
|
-
h += o, h -= 2 * l.boxTextMargin, i.wrap && (i.name =
|
|
2344
|
-
const a =
|
|
2336
|
+
h += o, h -= 2 * l.boxTextMargin, i.wrap && (i.name = W.wrapLabel(i.name, h - 2 * l.wrapPadding, c));
|
|
2337
|
+
const a = W.calculateTextDimensions(i.name, c);
|
|
2345
2338
|
r = I.getMax(a.height, r);
|
|
2346
2339
|
const p = I.getMax(h, a.width + 2 * l.wrapPadding);
|
|
2347
2340
|
if (i.margin = l.boxTextMargin, h < p) {
|
|
@@ -2353,8 +2346,8 @@ async function fe(e, t, n) {
|
|
|
2353
2346
|
f(fe, "calculateActorMargins");
|
|
2354
2347
|
var Es = /* @__PURE__ */ f(async function(e, t, n) {
|
|
2355
2348
|
const s = t.get(e.from), r = t.get(e.to), i = s.x, c = r.x, h = e.wrap && e.message;
|
|
2356
|
-
let o = z(e.message) ? await _t(e.message, st()) :
|
|
2357
|
-
h ?
|
|
2349
|
+
let o = z(e.message) ? await _t(e.message, st()) : W.calculateTextDimensions(
|
|
2350
|
+
h ? W.wrapLabel(e.message, l.width, mt(l)) : e.message,
|
|
2358
2351
|
mt(l)
|
|
2359
2352
|
);
|
|
2360
2353
|
const a = {
|
|
@@ -2372,10 +2365,10 @@ var Es = /* @__PURE__ */ f(async function(e, t, n) {
|
|
|
2372
2365
|
), a.startx = i + (s.width + l.actorMargin) / 2) : e.placement === n.db.PLACEMENT.LEFTOF ? (a.width = h ? I.getMax(l.width, o.width + 2 * l.noteMargin) : I.getMax(
|
|
2373
2366
|
s.width / 2 + r.width / 2,
|
|
2374
2367
|
o.width + 2 * l.noteMargin
|
|
2375
|
-
), a.startx = i - a.width + (s.width - l.actorMargin) / 2) : e.to === e.from ? (o =
|
|
2376
|
-
h ?
|
|
2368
|
+
), a.startx = i - a.width + (s.width - l.actorMargin) / 2) : e.to === e.from ? (o = W.calculateTextDimensions(
|
|
2369
|
+
h ? W.wrapLabel(e.message, I.getMax(l.width, s.width), mt(l)) : e.message,
|
|
2377
2370
|
mt(l)
|
|
2378
|
-
), a.width = h ? I.getMax(l.width, s.width) : I.getMax(s.width, l.width, o.width + 2 * l.noteMargin), a.startx = i + (s.width - a.width) / 2) : (a.width = Math.abs(i + s.width / 2 - (c + r.width / 2)) + l.actorMargin, a.startx = i < c ? i + s.width / 2 - l.actorMargin / 2 : c + r.width / 2 - l.actorMargin / 2), h && (a.message =
|
|
2371
|
+
), a.width = h ? I.getMax(l.width, s.width) : I.getMax(s.width, l.width, o.width + 2 * l.noteMargin), a.startx = i + (s.width - a.width) / 2) : (a.width = Math.abs(i + s.width / 2 - (c + r.width / 2)) + l.actorMargin, a.startx = i < c ? i + s.width / 2 - l.actorMargin / 2 : c + r.width / 2 - l.actorMargin / 2), h && (a.message = W.wrapLabel(
|
|
2379
2372
|
e.message,
|
|
2380
2373
|
a.width - 2 * l.wrapPadding,
|
|
2381
2374
|
mt(l)
|
|
@@ -2403,15 +2396,15 @@ var Es = /* @__PURE__ */ f(async function(e, t, n) {
|
|
|
2403
2396
|
e.type
|
|
2404
2397
|
) && (o -= g(3)));
|
|
2405
2398
|
const x = [s, r, i, c], y = Math.abs(o - a);
|
|
2406
|
-
e.wrap && e.message && (e.message =
|
|
2399
|
+
e.wrap && e.message && (e.message = W.wrapLabel(
|
|
2407
2400
|
e.message,
|
|
2408
2401
|
I.getMax(y + 2 * l.wrapPadding, l.width),
|
|
2409
2402
|
Et(l)
|
|
2410
2403
|
));
|
|
2411
|
-
const
|
|
2404
|
+
const m = W.calculateTextDimensions(e.message, Et(l));
|
|
2412
2405
|
return {
|
|
2413
2406
|
width: I.getMax(
|
|
2414
|
-
e.wrap ? 0 :
|
|
2407
|
+
e.wrap ? 0 : m.width + 2 * l.wrapPadding,
|
|
2415
2408
|
y + 2 * l.wrapPadding,
|
|
2416
2409
|
l.width
|
|
2417
2410
|
),
|
|
@@ -2461,13 +2454,13 @@ var Es = /* @__PURE__ */ f(async function(e, t, n) {
|
|
|
2461
2454
|
break;
|
|
2462
2455
|
case s.db.LINETYPE.ACTIVE_START:
|
|
2463
2456
|
{
|
|
2464
|
-
const g = t.get(a.from ? a.from : a.to.actor), x = Bt(a.from ? a.from : a.to.actor).length, y = g.x + g.width / 2 + (x - 1) * l.activationWidth / 2,
|
|
2457
|
+
const g = t.get(a.from ? a.from : a.to.actor), x = Bt(a.from ? a.from : a.to.actor).length, y = g.x + g.width / 2 + (x - 1) * l.activationWidth / 2, m = {
|
|
2465
2458
|
startx: y,
|
|
2466
2459
|
stopx: y + l.activationWidth,
|
|
2467
2460
|
actor: a.from,
|
|
2468
2461
|
enabled: !0
|
|
2469
2462
|
};
|
|
2470
|
-
T.activations.push(
|
|
2463
|
+
T.activations.push(m);
|
|
2471
2464
|
}
|
|
2472
2465
|
break;
|
|
2473
2466
|
case s.db.LINETYPE.ACTIVE_END:
|