@pi-outpost/embed 0.38.0 → 0.40.0
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/{abnfDiagram-YUKMZFIV-dNHR2FX4.js → abnfDiagram-WEYOIA3C-B2ss_Vsq.js} +4 -4
- package/dist/{abnfDiagram-YUKMZFIV-CgM8_qF6.cjs → abnfDiagram-WEYOIA3C-DMn87p58.cjs} +1 -1
- package/dist/{architectureDiagram-47P4ROYG-C_rUoWaO.js → architectureDiagram-ZHVYKT53-C5QppHvM.js} +5 -5
- package/dist/{architectureDiagram-47P4ROYG-bflaQP1L.cjs → architectureDiagram-ZHVYKT53-DBfdIpyr.cjs} +1 -1
- package/dist/{blockDiagram-E7TT5TSB-BKw9FE2U.cjs → blockDiagram-RJAE7QA3-CODM9GdZ.cjs} +1 -1
- package/dist/{blockDiagram-E7TT5TSB-CEa2A5E9.js → blockDiagram-RJAE7QA3-DOvlohR9.js} +10 -10
- package/dist/{c4Diagram-CRA5TL53-CtJh9DsO.js → c4Diagram-XDPPPE54-8dwnUpAO.js} +8 -8
- package/dist/{c4Diagram-CRA5TL53-C-PuMGA5.cjs → c4Diagram-XDPPPE54-eTVK3Kzy.cjs} +1 -1
- package/dist/{channel-DCXZw5aW.js → channel-B1lf-ehw.js} +1 -1
- package/dist/channel-BRczbI_M.cjs +1 -0
- package/dist/{chunk-AW2ZBBNX-CVsDDdv5.js → chunk-2E7WHVMD-Dg_Sckag.js} +3 -3
- package/dist/{chunk-AW2ZBBNX-C4uNh90t.cjs → chunk-2E7WHVMD-DkV-cet-.cjs} +1 -1
- package/dist/{chunk-HTAEGDNF-D4u24-lD.js → chunk-4EMNKR2T-C2XrT3x_.js} +2 -2
- package/dist/{chunk-HTAEGDNF-I4JlqwMr.cjs → chunk-4EMNKR2T-DfeN909d.cjs} +1 -1
- package/dist/{chunk-7TKQ45FW-CD1KuemG.js → chunk-55XCU76K-CADZXRVb.js} +2 -2
- package/dist/{chunk-7TKQ45FW-Djscho_M.cjs → chunk-55XCU76K-d9D4PS_7.cjs} +1 -1
- package/dist/{chunk-3YJQHVM4-ChvNe1M8.cjs → chunk-7S6XSTFO-DJ37SdG5.cjs} +1 -1
- package/dist/{chunk-3YJQHVM4-BNbfg-7y.js → chunk-7S6XSTFO-DV8etStf.js} +2 -2
- package/dist/{chunk-E2ZNV5FY-Bu796yUY.js → chunk-AQDTSKZB-CUCC855j.js} +4 -4
- package/dist/{chunk-E2ZNV5FY-DIRTchKA.cjs → chunk-AQDTSKZB-DElrkKED.cjs} +1 -1
- package/dist/{chunk-VPRB5NB3-DJh7spRO.js → chunk-DSNLSHJZ-Bicto10E.js} +2 -1
- package/dist/{chunk-VPRB5NB3-CT204jN6.cjs → chunk-DSNLSHJZ-DZO9xahH.cjs} +1 -1
- package/dist/{chunk-XC4XBNZT-CSiWBPH9.js → chunk-HAGFOTED-BjDmRfgG.js} +29 -29
- package/dist/chunk-HAGFOTED-Dykk1LyE.cjs +62 -0
- package/dist/{chunk-NTY3LDVX-CvRtOCpm.js → chunk-HNE4Q36P-5u7dvjgt.js} +7 -7
- package/dist/chunk-HNE4Q36P-C-j5Nn9f.cjs +1 -0
- package/dist/{chunk-EU5HNXII-DNBbmfcI.cjs → chunk-NQOKRVIF-CpOc5MEh.cjs} +1 -1
- package/dist/{chunk-EU5HNXII-DW-QTb0f.js → chunk-NQOKRVIF-DUgN94ic.js} +8 -8
- package/dist/{chunk-4EA7E6EY-B5P7n2an.js → chunk-UHW7PFBP-NbzzxkEP.js} +2 -2
- package/dist/{chunk-4EA7E6EY-3OELTJ93.cjs → chunk-UHW7PFBP-SZ8KvGM0.cjs} +1 -1
- package/dist/{chunk-KQW6MTUR-C_XQxsme.cjs → chunk-VQ5W62QI-CsW6i5Ev.cjs} +1 -1
- package/dist/{chunk-KQW6MTUR-c0XOjr_c.js → chunk-VQ5W62QI-D3c9tcDC.js} +2 -2
- package/dist/chunk-WQQL4CDK-TvwGUFeE.cjs +10 -0
- package/dist/{chunk-2BW5OAIV-DWtmlmt_.js → chunk-WQQL4CDK-l3Yf4SAX.js} +114 -114
- package/dist/{chunk-HJ2JQQFS-DnrogIdt.cjs → chunk-YZO67HFG-CLf5aoHk.cjs} +1 -1
- package/dist/{chunk-HJ2JQQFS-CgYTXthn.js → chunk-YZO67HFG-DWHo0c6-.js} +2 -2
- package/dist/{chunk-DBDB3WZW-DSRcln4l.cjs → chunk-ZAUX2LTX-BwjEPfG0.cjs} +1 -1
- package/dist/{chunk-DBDB3WZW-DpEOsLsQ.js → chunk-ZAUX2LTX-COHXRsvU.js} +3 -3
- package/dist/{chunk-FVRAUYC3-Crqd-lTD.cjs → chunk-ZCHMQSOR-7slscxYq.cjs} +1 -1
- package/dist/{chunk-FVRAUYC3-tiT7dtx-.js → chunk-ZCHMQSOR-Cw-9SNln.js} +8 -8
- package/dist/{classDiagram-v2-K4WV4PDN-C39xKke0.js → classDiagram-v2-4MYWR3UA-vsmkJ0Cx.js} +13 -13
- package/dist/{classDiagram-v2-K4WV4PDN-BndXIwai.cjs → classDiagram-v2-4MYWR3UA-wLbwKHvU.cjs} +1 -1
- package/dist/conversationExport-BmvGyAf-.cjs +71 -0
- package/dist/{conversationExport-BXEb1n8C.js → conversationExport-CBiBLWVk.js} +14 -12
- package/dist/{conversationHistory-BCj7z0AY.cjs → conversationHistory-DN1r7WZT.cjs} +39 -39
- package/dist/{conversationHistory-BsL2Q-mL.js → conversationHistory-DwB6hasI.js} +4628 -4567
- package/dist/{cynefinDiagram-3GCD6N5R-C2CRSeJl.js → cynefinDiagram-WF24UDRP-BhWkOxCi.js} +4 -4
- package/dist/{cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs → cynefinDiagram-WF24UDRP-CHBmFbqk.cjs} +1 -1
- package/dist/{dagre-W4DXFKR2-aPKdYPEj.cjs → dagre-NK4GIZVX-BI_akQkH.cjs} +1 -1
- package/dist/{dagre-W4DXFKR2-ECmxkO0T.js → dagre-NK4GIZVX-CJfLDa-C.js} +11 -11
- package/dist/{diagram-OVF4WLC6-D6r6aTeO.js → diagram-CBK3MWTC-2pAHlnGJ.js} +6 -6
- package/dist/{diagram-OVF4WLC6-CwZeVpHT.cjs → diagram-CBK3MWTC-B_5GBGbb.cjs} +1 -1
- package/dist/{diagram-UMYRVEAY-BE-t_ZdV.cjs → diagram-I5XIIV2D-BPxYY-Kp.cjs} +1 -1
- package/dist/{diagram-UMYRVEAY-blW7NpUU.js → diagram-I5XIIV2D-CQ_Y9NJs.js} +4 -4
- package/dist/{diagram-PFPMY2P6-BpOJbdZ5.js → diagram-ODIL2UCW-BJL-7QWJ.js} +5 -5
- package/dist/{diagram-PFPMY2P6-DlLbGc_k.cjs → diagram-ODIL2UCW-pyDNtrY0.cjs} +1 -1
- package/dist/{diagram-ZIFT7M5P-BHePHmHl.cjs → diagram-PFBEJUXE-BUvTWvw5.cjs} +1 -1
- package/dist/{diagram-ZIFT7M5P-CZOnEYez.js → diagram-PFBEJUXE-CXd3x3TA.js} +3 -3
- package/dist/{diagram-YEKJPTXX-CeQjir5H.cjs → diagram-RJA3I4VV-T3Hd1koB.cjs} +1 -1
- package/dist/{diagram-YEKJPTXX-BOgf87BN.js → diagram-RJA3I4VV-eMNhs7pW.js} +4 -4
- package/dist/{diagram-2UJZ2QOL-B1JKtFHG.cjs → diagram-TYUNFSNR-B_p2UHsR.cjs} +1 -1
- package/dist/{diagram-2UJZ2QOL-CJRsGDwn.js → diagram-TYUNFSNR-CWpFSB2K.js} +14 -14
- package/dist/docxExport-B24fOHFl.cjs +3 -0
- package/dist/{docxExport-BKC_hi5D.js → docxExport-BGYavEI-.js} +13 -12
- package/dist/download-DVJ5QY85.js +7 -0
- package/dist/download-U7JEZ6c9.cjs +1 -0
- package/dist/{ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js → ebnfDiagram-V4P3TTPT-B7cCNP3X.js} +4 -4
- package/dist/{ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs → ebnfDiagram-V4P3TTPT-DAoJZ85k.cjs} +1 -1
- package/dist/elk-QONTBCTQ-BDAptnPT.cjs +27 -0
- package/dist/{elk-IJKZMXRS-V31is6hS.js → elk-QONTBCTQ-BYnAuRAH.js} +18399 -18383
- package/dist/{erDiagram-O2IAPWRE-CnkFrABC.cjs → erDiagram-KYQIGQAA-BIlejnVi.cjs} +1 -1
- package/dist/{erDiagram-O2IAPWRE-CP06GjjM.js → erDiagram-KYQIGQAA-BKkxORU3.js} +13 -13
- package/dist/flowDiagram-IUGLLWBU-BSiCLGuL.cjs +1 -0
- package/dist/flowDiagram-IUGLLWBU-DL_I6QCE.js +16 -0
- package/dist/{ganttDiagram-R7TSEDQI-Jhax10tw.cjs → ganttDiagram-R7GPNTJY-BGcXo1KA.cjs} +1 -1
- package/dist/{ganttDiagram-R7TSEDQI-y1bDU8Ba.js → ganttDiagram-R7GPNTJY-dcubAqZI.js} +2 -2
- package/dist/{gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs → gitGraphDiagram-PDYL7XHY-BoJsALki.cjs} +1 -1
- package/dist/{gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js → gitGraphDiagram-PDYL7XHY-CfRYMd3w.js} +3 -3
- package/dist/{infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs → infoDiagram-MVDRKAX5-B1QBSTSo.cjs} +1 -1
- package/dist/{infoDiagram-5W2HQ5XZ-Dw_D4zI1.js → infoDiagram-MVDRKAX5-BYGrp2QT.js} +4 -4
- package/dist/{ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs → ishikawaDiagram-HPEHV2GE-BWJo3pFM.cjs} +1 -1
- package/dist/{ishikawaDiagram-K3B6WC7H-BeLiZFVY.js → ishikawaDiagram-HPEHV2GE-C32LoFQd.js} +4 -4
- package/dist/{journeyDiagram-COXZFDF6-Dge2AV0B.cjs → journeyDiagram-BOSHW7O7-090H5NM8.cjs} +1 -1
- package/dist/{journeyDiagram-COXZFDF6-B-qvdudB.js → journeyDiagram-BOSHW7O7-DJ9OKW8H.js} +3 -3
- package/dist/{kanban-definition-P3RFRI5V-C02YfFZv.cjs → kanban-definition-FNSA4HC5-BhC2u-9L.cjs} +1 -1
- package/dist/{kanban-definition-P3RFRI5V-D0XAXDl8.js → kanban-definition-FNSA4HC5-FqIvMKJw.js} +10 -10
- package/dist/katex-DBUQi-HZ.cjs +257 -0
- package/dist/{katex-ohtLbxXc.js → katex-DTnCNBYg.js} +2116 -2212
- package/dist/lib-BDkAiWI9.cjs +26 -0
- package/dist/{lib-BgQYQRfw.js → lib-DILNlJGg.js} +1049 -1055
- package/dist/{line-BTenwQwq.js → line-CJjnW4T-.js} +1 -1
- package/dist/{line-5eGinYgh.cjs → line-DjYp3Ff8.cjs} +1 -1
- package/dist/loadReferencedImage-CHTgZKAP.cjs +1 -0
- package/dist/loadReferencedImage-CkvnSeQi.js +144 -0
- package/dist/{mermaid.core-4MZ-Iwu7.cjs → mermaid.core-2PafqU96.cjs} +4 -4
- package/dist/{mermaid.core-BJkDCzqA.js → mermaid.core-BxQmR6RW.js} +53 -53
- package/dist/mermaidToImage-CSR5Vyvs.cjs +25 -0
- package/dist/mermaidToImage-DowDuCUe.js +14297 -0
- package/dist/{mindmap-definition-LZFPQGKD-gYumvdwo.js → mindmap-definition-6OY57UG3-C0JXAaiI.js} +27 -24
- package/dist/{mindmap-definition-LZFPQGKD-CXV1hV3a.cjs → mindmap-definition-6OY57UG3-QMaMZxqJ.cjs} +11 -9
- package/dist/{pegDiagram-BGZESJAR-Dw9pRv5d.js → pegDiagram-ECIUJNBX-BluDPMz-.js} +4 -4
- package/dist/{pegDiagram-BGZESJAR-BICf3jMN.cjs → pegDiagram-ECIUJNBX-agFLe55J.cjs} +1 -1
- package/dist/pi-outpost-embed.cjs +25 -25
- package/dist/pi-outpost-embed.js +3854 -3817
- package/dist/{pieDiagram-CAPJLFHJ-CF8cTQpC.cjs → pieDiagram-GNMPY74T-Bkt6LXIr.cjs} +1 -1
- package/dist/{pieDiagram-CAPJLFHJ-uz37FR9I.js → pieDiagram-GNMPY74T-D2Dlw9oL.js} +4 -4
- package/dist/{quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs → quadrantDiagram-D57K4MC3-BwUPO-ri.cjs} +1 -1
- package/dist/{quadrantDiagram-GDMTTRAM-C4rt8LIh.js → quadrantDiagram-D57K4MC3-vbdBbRAF.js} +2 -2
- package/dist/{railroadDiagram-SM67HX2B-T5SG0kEf.js → railroadDiagram-Y72NRBL7-B2x_q8pa.js} +4 -4
- package/dist/{railroadDiagram-SM67HX2B-GgesxX7v.cjs → railroadDiagram-Y72NRBL7-CJ9MP3wV.cjs} +1 -1
- package/dist/{requirementDiagram-X7JNWC4A-BVzf-VRr.cjs → requirementDiagram-EQYSW5RA-CP0M11vC.cjs} +1 -1
- package/dist/{requirementDiagram-X7JNWC4A-BEeCszC1.js → requirementDiagram-EQYSW5RA-j7VZ-e65.js} +12 -12
- package/dist/{sankeyDiagram-UM26HJRW-CdBXqklJ.cjs → sankeyDiagram-SY24JHO5-B7NuxaKG.cjs} +1 -1
- package/dist/{sankeyDiagram-UM26HJRW-DLDVzhPm.js → sankeyDiagram-SY24JHO5-Cgewgbc8.js} +2 -2
- package/dist/{sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs → sequenceDiagram-BLEHNHQU-B5THoiqW.cjs} +1 -1
- package/dist/{sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js → sequenceDiagram-BLEHNHQU-DsjvHcWN.js} +5 -5
- package/dist/{stateDiagram-v2-TBUQTH76-PRnBJSrY.js → stateDiagram-v2-A6IESKWZ-BD0FNkiB.js} +13 -13
- package/dist/{stateDiagram-v2-TBUQTH76-BTuAbG28.cjs → stateDiagram-v2-A6IESKWZ-Dqzvdrv1.cjs} +1 -1
- package/dist/swimlanes-B3ENRKFQ-DEsfJ_Va.cjs +1 -0
- package/dist/{swimlanes-N4OXWK64-DipLcZla.js → swimlanes-B3ENRKFQ-Do-xntE9.js} +365 -364
- package/dist/swimlanesDiagram-AYQRV4AK-CU4USE4p.cjs +8 -0
- package/dist/swimlanesDiagram-AYQRV4AK-ora_Y3LB.js +27 -0
- package/dist/{timeline-definition-YOQAKGHF-D_LWHCSA.cjs → timeline-definition-JXYKGLGB-B_QITrmE.cjs} +1 -1
- package/dist/{timeline-definition-YOQAKGHF-h8_spxIb.js → timeline-definition-JXYKGLGB-Cxi2ay-W.js} +4 -4
- package/dist/{usecaseDiagram-VIAY4XPW-DCfwvERR.js → usecaseDiagram-WPOLBNNX-C5u6uogx.js} +11 -11
- package/dist/{usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs → usecaseDiagram-WPOLBNNX-_GFZAFdK.cjs} +1 -1
- package/dist/{vennDiagram-BLWOH2XV-niExkaFk.cjs → vennDiagram-Q3Y3IDCW-Bf1i94bS.cjs} +1 -1
- package/dist/{vennDiagram-BLWOH2XV-_zHkfDVB.js → vennDiagram-Q3Y3IDCW-CircfM4o.js} +4 -4
- package/dist/{wardleyDiagram-YMQ3BMBF-BKvQkiZP.js → wardleyDiagram-IVAIDKWA-BOSseRAa.js} +4 -4
- package/dist/{wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs → wardleyDiagram-IVAIDKWA-Cr5LS-u2.cjs} +1 -1
- package/dist/{xychartDiagram-TAQBALBS-DlfKpBG9.js → xychartDiagram-4URNHDU4-C4X8LFY4.js} +7 -7
- package/dist/{xychartDiagram-TAQBALBS-CkNZcyIi.cjs → xychartDiagram-4URNHDU4-DOUN6alM.cjs} +1 -1
- package/package.json +2 -2
- package/dist/channel-BjC1TKrU.cjs +0 -1
- package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +0 -10
- package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +0 -1
- package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +0 -62
- package/dist/conversationExport-DEKaUq-d.cjs +0 -71
- package/dist/docxExport-V7joLrkm.cjs +0 -3
- package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +0 -27
- package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +0 -1
- package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +0 -16
- package/dist/katex-CEF6MvLx.cjs +0 -257
- package/dist/lib-DVuUFI8o.cjs +0 -26
- package/dist/loadReferencedImage-FGse7G4p.js +0 -36292
- package/dist/loadReferencedImage-QespeGh9.cjs +0 -281
- package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +0 -1
- package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +0 -8
- package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +0 -27
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-Dkp7vqs8.js";
|
|
3
|
-
import { B as r, M as i, b as a, f as o, g as s, k as c, w as l, y as u, z as d } from "./chunk-
|
|
4
|
-
import { a as f, d as p, m, r as h } from "./chunk-
|
|
5
|
-
import { n as g, t as _ } from "./chunk-
|
|
6
|
-
import { n as v, r as y } from "./chunk-
|
|
7
|
-
import { a as b, i as x, r as S, t as C } from "./chunk-
|
|
3
|
+
import { B as r, M as i, b as a, f as o, g as s, k as c, w as l, y as u, z as d } from "./chunk-DSNLSHJZ-Bicto10E.js";
|
|
4
|
+
import { a as f, d as p, m, r as h } from "./chunk-7S6XSTFO-DV8etStf.js";
|
|
5
|
+
import { n as g, t as _ } from "./chunk-YZO67HFG-DWHo0c6-.js";
|
|
6
|
+
import { n as v, r as y } from "./chunk-AQDTSKZB-CUCC855j.js";
|
|
7
|
+
import { a as b, i as x, r as S, t as C } from "./chunk-UHW7PFBP-NbzzxkEP.js";
|
|
8
8
|
import { s as w } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
|
|
9
9
|
import { t as T } from "./rough.esm-D2JJJ0Ot.js";
|
|
10
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
10
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-HAGFOTED.mjs
|
|
11
11
|
var E = 1, D = 3;
|
|
12
12
|
async function O(t) {
|
|
13
13
|
let n = t.getElementsByTagName("img");
|
|
@@ -84,30 +84,30 @@ var A = 3, j = 32, M = /* @__PURE__ */ e(async (e, t, r) => {
|
|
|
84
84
|
width: n,
|
|
85
85
|
height: o
|
|
86
86
|
};
|
|
87
|
-
}, "withMinWidth"), P = /* @__PURE__ */ e(async (e, t, r) => {
|
|
87
|
+
}, "withMinWidth"), P = /* @__PURE__ */ e(async (e, t, r, { ignoreMinWidth: i = !1 } = {}) => {
|
|
88
88
|
if (t.stereotype !== void 0) return M(e, t, r);
|
|
89
|
-
let
|
|
90
|
-
|
|
91
|
-
let
|
|
92
|
-
|
|
93
|
-
let
|
|
94
|
-
useHtmlLabels:
|
|
89
|
+
let o, c = t.useHtmlLabels || s(a()?.htmlLabels);
|
|
90
|
+
o = r || "node default";
|
|
91
|
+
let l = e.insert("g").attr("class", o).attr("id", t.domId || t.id), u = l.insert("g").attr("class", "label").attr("style", p(t.labelStyle)), m;
|
|
92
|
+
m = t.label === void 0 ? "" : typeof t.label == "string" ? t.label : t.label[0];
|
|
93
|
+
let h = !!t.icon || !!t.img, g = t.labelType === "markdown", _ = m && !t.width && !i ? t.minWidth ?? 0 : 0, b = await v(u, d(f(m), a()), {
|
|
94
|
+
useHtmlLabels: c,
|
|
95
95
|
width: t.width || t.wrappingWidth || a().flowchart?.wrappingWidth,
|
|
96
|
-
minWidth:
|
|
97
|
-
classes:
|
|
96
|
+
minWidth: _,
|
|
97
|
+
classes: g ? "markdown-node-label" : "",
|
|
98
98
|
style: t.labelStyle,
|
|
99
|
-
addSvgBackground:
|
|
100
|
-
markdown:
|
|
101
|
-
}, a()),
|
|
102
|
-
if (
|
|
103
|
-
let e =
|
|
104
|
-
await O(e),
|
|
105
|
-
} else
|
|
106
|
-
return
|
|
107
|
-
shapeSvg:
|
|
108
|
-
bbox:
|
|
109
|
-
halfPadding:
|
|
110
|
-
label:
|
|
99
|
+
addSvgBackground: h,
|
|
100
|
+
markdown: g
|
|
101
|
+
}, a()), x = (t?.padding ?? 0) / 2, S;
|
|
102
|
+
if (c) {
|
|
103
|
+
let e = b.children[0], t = n(b);
|
|
104
|
+
await O(e), S = await y.measure(() => e.getBoundingClientRect()), S = N(S, _), t.attr("width", S.width), t.attr("height", S.height);
|
|
105
|
+
} else S = await y.measure(() => b.getBBox()), S = N(S, _);
|
|
106
|
+
return c ? u.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")") : u.attr("transform", "translate(0, " + -S.height / 2 + ")"), t.centerLabel && u.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")"), u.insert("rect", ":first-child"), {
|
|
107
|
+
shapeSvg: l,
|
|
108
|
+
bbox: S,
|
|
109
|
+
halfPadding: x,
|
|
110
|
+
label: u
|
|
111
111
|
};
|
|
112
112
|
}, "labelHelper"), F = /* @__PURE__ */ e(async (e, t, r) => {
|
|
113
113
|
let i = r.useHtmlLabels ?? l(a()), o = e.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), s = await v(o, d(f(t), a()), {
|
|
@@ -1011,7 +1011,7 @@ e(ke, "choice");
|
|
|
1011
1011
|
async function Ae(e, n, r) {
|
|
1012
1012
|
let { labelStyles: i, nodeStyles: a } = x(n);
|
|
1013
1013
|
n.labelStyle = i;
|
|
1014
|
-
let { shapeSvg: o, bbox: s, halfPadding: c } = await P(e, n, L(n)), l = r?.padding ?? c, u = Math.sqrt(s.width ** 2 + s.height ** 2) / 2, d = n.look === "neo" ? u +
|
|
1014
|
+
let { shapeSvg: o, bbox: s, halfPadding: c } = await P(e, n, L(n), { ignoreMinWidth: !0 }), l = r?.padding ?? c, u = Math.sqrt(s.width ** 2 + s.height ** 2) / 2, d = n.look === "neo" ? u + 16 : u + l, f, { cssStyles: m } = n;
|
|
1015
1015
|
if (n.look === "handDrawn") {
|
|
1016
1016
|
let e = T.svg(o), t = b(n, {}), r = e.circle(0, 0, d * 2, t);
|
|
1017
1017
|
f = o.insert(() => r, ":first-child"), f.attr("class", "basic label-container").attr("style", p(m));
|
|
@@ -1480,7 +1480,7 @@ e(Je, "dividedRectangle");
|
|
|
1480
1480
|
async function Ye(e, n) {
|
|
1481
1481
|
let { labelStyles: r, nodeStyles: i } = x(n), a = n.look === "neo" ? 12 : 5;
|
|
1482
1482
|
n.labelStyle = r;
|
|
1483
|
-
let o = n.padding ?? 0, s = n.look === "neo" ? 16 : o, { shapeSvg: c, bbox: l } = await P(e, n, L(n)), u = Math.sqrt(l.width ** 2 + l.height ** 2) / 2, d = (n?.width ? n?.width / 2 : u) + (s ?? 0), f = d + a, m, { cssStyles: h } = n;
|
|
1483
|
+
let o = n.padding ?? 0, s = n.look === "neo" ? 16 : o, { shapeSvg: c, bbox: l } = await P(e, n, L(n), { ignoreMinWidth: !0 }), u = Math.sqrt(l.width ** 2 + l.height ** 2) / 2, d = (n?.width ? n?.width / 2 : u) + (s ?? 0), f = d + a, m, { cssStyles: h } = n;
|
|
1484
1484
|
if (n.look === "handDrawn") {
|
|
1485
1485
|
let e = T.svg(c), t = b(n, {
|
|
1486
1486
|
roughness: .2,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-DSNLSHJZ-DZO9xahH.cjs"),r=require("./chunk-7S6XSTFO-DJ37SdG5.cjs"),i=require("./chunk-YZO67HFG-CLf5aoHk.cjs"),a=require("./chunk-AQDTSKZB-DElrkKED.cjs"),o=require("./chunk-UHW7PFBP-SZ8KvGM0.cjs"),s=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs"),c=require("./rough.esm-ChRLLRha.cjs");var l=1,u=3;async function d(t){let i=t.getElementsByTagName(`img`);if(!i||i.length===0)return;let a=!f(t);await Promise.all([...i].map(t=>new Promise(i=>{function o(){if(t.style.display=`flex`,t.style.flexDirection=`column`,a){let e=n.b().fontSize?n.b().fontSize:window.getComputedStyle(document.body).fontSize,[i=n.f.fontSize]=r.m(e),a=i*5+`px`;t.style.minWidth=a,t.style.maxWidth=a}else t.style.width=`100%`;i(t)}e.n(o,`setupImage`),setTimeout(()=>{t.complete&&o()}),t.addEventListener(`error`,o),t.addEventListener(`load`,o)})))}e.n(d,`configureLabelImages`);function f(e){return e.nodeType===u?e.textContent?.trim()!==``:e.nodeType!==l||e.tagName.toLowerCase()===`img`?!1:[...e.childNodes].some(f)}e.n(f,`hasTextBesidesImages`);var p=3,m=32,h=e.n(async(e,i,o)=>{let s=n.b(),c=e.insert(`g`).attr(`class`,o??`node default`).attr(`id`,i.domId||i.id),l=c.insert(`g`).attr(`class`,`label`).attr(`style`,r.d(i.labelStyle)),u=[{text:typeof i.label==`string`?i.label:i.label?.[0]??``,cssClass:`c4-name`},{text:i.stereotype,cssClass:`c4-type`},...(i.description??[]).map(e=>({text:e,cssClass:`c4-descr`}))].filter(e=>e.text),d=i.width?Math.max(i.width-2*(i.padding??0),m):n.b().flowchart?.wrappingWidth??200,f=s.c4?.wrap??!0?d:1/0,h=await Promise.all(u.map(async e=>{let o=l.append(`g`).attr(`class`,e.cssClass),c=await a.n(o,n.z(r.a(e.text??``),s),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:f,style:i.labelStyle},s);return t.p(c).selectAll(`tspan.text-outer-tspan`).attr(`text-anchor`,`middle`),t.p(c).selectAll(`tspan.text-inner-tspan`).attr(`font-weight`,null).attr(`font-style`,null),{el:o,box:o.node().getBBox()}})),g=Math.max(...h.map(({box:e})=>e.width),0),_=0;for(let{el:e,box:t}of h)e.attr(`transform`,`translate(${g/2-t.x-t.width/2}, ${_-t.y})`),_+=t.height+p;let v=h.length>0?_-p:0;return l.insert(`rect`,`:first-child`),l.attr(`transform`,`translate(${-g/2}, ${-v/2})`),{shapeSvg:c,bbox:l.node().getBBox(),halfPadding:(i.padding??0)/2,label:l}},`c4LabelHelper`),g=e.n((t,n)=>{let{x:r,y:i,width:a,height:o}=t;return a>=n?t:`left`in t?{x:r,y:i,width:n,height:o,top:i,left:r,bottom:i+o,right:r+n,toJSON:e.n(()=>({}),`toJSON`)}:{x:r-(n-a)/2,y:i,width:n,height:o}},`withMinWidth`),_=e.n(async(e,i,o,{ignoreMinWidth:s=!1}={})=>{if(i.stereotype!==void 0)return h(e,i,o);let c,l=i.useHtmlLabels||n.g(n.b()?.htmlLabels);c=o||`node default`;let u=e.insert(`g`).attr(`class`,c).attr(`id`,i.domId||i.id),f=u.insert(`g`).attr(`class`,`label`).attr(`style`,r.d(i.labelStyle)),p;p=i.label===void 0?``:typeof i.label==`string`?i.label:i.label[0];let m=!!i.icon||!!i.img,_=i.labelType===`markdown`,v=p&&!i.width&&!s?i.minWidth??0:0,y=await a.n(f,n.z(r.a(p),n.b()),{useHtmlLabels:l,width:i.width||i.wrappingWidth||n.b().flowchart?.wrappingWidth,minWidth:v,classes:_?`markdown-node-label`:``,style:i.labelStyle,addSvgBackground:m,markdown:_},n.b()),b=(i?.padding??0)/2,x;if(l){let e=y.children[0],n=t.p(y);await d(e),x=await a.r.measure(()=>e.getBoundingClientRect()),x=g(x,v),n.attr(`width`,x.width),n.attr(`height`,x.height)}else x=await a.r.measure(()=>y.getBBox()),x=g(x,v);return l?f.attr(`transform`,`translate(`+-x.width/2+`, `+-x.height/2+`)`):f.attr(`transform`,`translate(0, `+-x.height/2+`)`),i.centerLabel&&f.attr(`transform`,`translate(`+-x.width/2+`, `+-x.height/2+`)`),f.insert(`rect`,`:first-child`),{shapeSvg:u,bbox:x,halfPadding:b,label:f}},`labelHelper`),v=e.n(async(e,i,o)=>{let s=o.useHtmlLabels??n.w(n.b()),c=e.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,n.z(r.a(i),n.b()),{useHtmlLabels:s,width:o.width||n.b()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=o.padding/2,d;if(n.w(n.b())){let e=l.children[0],n=t.p(l);d=await a.r.measure(()=>e.getBoundingClientRect()),n.attr(`width`,d.width),n.attr(`height`,d.height)}else d=await a.r.measure(()=>l.getBBox());return s?c.attr(`transform`,`translate(`+-d.width/2+`, `+-d.height/2+`)`):c.attr(`transform`,`translate(0, `+-d.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-d.width/2+`, `+-d.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:d,halfPadding:u,label:c}},`insertLabel`),y=e.n((e,t,n)=>{if(n){e.width=n.width,e.height=n.height;return}let r=t.node().getBBox();e.width=r.width,e.height=r.height},`updateNodeBounds`),b=e.n((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function x(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}e.n(x,`createPathFromPoints`);function S(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}e.n(S,`generateFullSineWavePoints`);function C(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(C,`generateCirclePoints`);function w(t){let n=Array.from(t.childNodes).filter(e=>e.tagName===`path`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),i=n.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);r.setAttribute(`d`,i);let a=n.find(e=>e.getAttribute(`fill`)!==`none`),o=n.find(e=>e.getAttribute(`stroke`)!==`none`),s=e.n((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(a){let e={fill:s(a,`fill`),"fill-opacity":s(a,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}if(o){let e={stroke:s(o,`stroke`),"stroke-width":s(o,`stroke-width`)??`1`,"stroke-opacity":s(o,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&r.setAttribute(e,t)})}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return c.appendChild(r),c}e.n(w,`mergePaths`);var T=e.n((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`);function E(e,t){return e.intersect(t)}e.n(E,`intersectNode`);var D=E;function O(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}e.n(O,`intersectEllipse`);var k=O;function A(e,t,n){return k(e,t,t,n)}e.n(A,`intersectCircle`);var j=A;function M(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&N(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&N(p,m))return;let h=i*d-u*a;return h===0?void 0:{x:(a*f-d*o)/h,y:(u*o-i*f)/h}}}e.n(M,`intersectLine`);function N(e,t){return e*t>0}e.n(N,`sameSign`);var P=M;function F(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=P(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}e.n(F,`intersectPolygon`);var I={node:D,circle:j,ellipse:k,polygon:F,rect:T},L=e.n((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),R=e.n(async(e,t,r,i=!1,o=!1)=>{let s=t||``;typeof s==`object`&&(s=s[0]);let c=n.b(),l=n.w(c);return await a.n(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`);function z(e,n){let{labelStyles:i}=o.i(n);n.labelStyle=i;let a=b(n),s=a;a||(s=`anchor`);let l=e.insert(`g`).attr(`class`,s).attr(`id`,n.domId||n.id),{cssStyles:u}=n,d=c.t.svg(l),f=o.a(n,{fill:`black`,stroke:`none`,fillStyle:`solid`});n.look!==`handDrawn`&&(f.roughness=0);let p=d.circle(0,0,2,f),m=l.insert(()=>p,`:first-child`);return m.attr(`class`,`anchor`).attr(`style`,r.d(u)),y(n,m),n.intersect=function(e){return t.m.info(`Circle intersect`,n,1,e),I.circle(n,1,e)},l}e.n(z,`anchor`);function ee(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}e.n(ee,`generateArcPoints`);function B(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}e.n(B,`calculateArcSagitta`);async function V(t,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.labelStyle=r;let a=n.padding??0,s=n.look===`neo`?16:a,l=n.look===`neo`?12:a,u=e.n(e=>e+l,`calcTotalHeight`),d=e.n(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:f,bbox:p}=await _(t,n,b(n)),m=u(n?.height?n?.height:p.height),[h,g]=d(m),v=B(m,h,g),S=(n?.width?n?.width:p.width)+s*2+v-v,C=m,{cssStyles:w}=n,T=[{x:S/2,y:-C/2},{x:-S/2,y:-C/2},...ee(-S/2,-C/2,-S/2,C/2,h,g,!1),{x:S/2,y:C/2},...ee(S/2,C/2,S/2,-C/2,h,g,!0)],E=c.t.svg(f),D=o.a(n,{});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=x(T),k=E.path(O,D),A=f.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),w&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,w),i&&n.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,i),A.attr(`transform`,`translate(${h/2}, 0)`),y(n,A),n.intersect=function(e){return I.polygon(n,T,e)},f}e.n(V,`bowTieRect`);async function H(t,n,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=o.i(n);n.labelStyle=i;let{shapeSvg:s,bbox:l,label:u}=await _(t,n,b(n)),d=r?.nodeBorder??r?.lineColor??`currentColor`,f=n.padding??12,p=Math.max(l.width+f*2,n.width??0,80),m=Math.max(Math.min(p*.08,12),5),h=Math.max(l.height+f*2+m,n.height??0),g=-h/2+m,v=h/2,x=p*.72,S=[`M${-p/2},${g}`,`L${-x/2},${v}`,`A${x/2},${m} 0 0 0 ${x/2},${v}`,`L${p/2},${g}`,`A${p/2},${m} 0 0 0 ${-p/2},${g}`,`Z`].join(` `),{cssStyles:C}=n,w=s.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(n.look===`handDrawn`){let e=c.t.svg(s).path(S,o.a(n,{}));w.node()?.appendChild(e),C&&w.attr(`style`,C)}else w.append(`path`).attr(`d`,S).attr(`style`,a);w.append(`ellipse`).attr(`cx`,0).attr(`cy`,g).attr(`rx`,p/2).attr(`ry`,m).attr(`style`,`fill:none;stroke:${d};stroke-width:1px`),y(n,w);let T=g+(v-g)/2;u.attr(`transform`,`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${T-l.height/2-(l.y-(l.top??0))})`);let E=e.n((e,t,n)=>Array.from({length:13},(r,i)=>{let a=Math.PI-i*Math.PI/12;return{x:e*Math.cos(a),y:t+n*m*Math.sin(a)}}),`arc`),D=[...E(p/2,g,-1),...E(x/2,v,1).reverse()];return n.intersect=function(e){return I.polygon(n,D,e)},s}e.n(H,`bucket`);var U=20,te=8,ne=80,W=8;function G(e){let{themeVariables:t}=n.b(),r=t.clusterBkg,i=t.clusterBorder;switch(e){case`flow`:return{rx:10,fill:`none`,stroke:t.flowContainerStroke||t.secondaryBorderColor,strokeWidth:.75,cssClass:`flow-collapsed`};default:return{rx:W,fill:r,stroke:i,cssClass:`collapsed-group`}}}e.n(G,`getCollapsedStyle`);async function K(e,t){let i=G(t.metadata?.containerType),{fill:a,stroke:l}=i,{nodeStyles:u}=o.i(t),{shapeSvg:d,bbox:f}=await _(e,t,b(t)),{theme:p,themeVariables:m}=n.b();s.s(d,t.colorIndex,p,m.borderColorArray);let h=t.padding??8,g=f.height,v=Math.max(f.width+h*2,ne,t?.width??0),x=Math.max(g+te+U+h*2,t?.height??0),S=-v/2,C=-x/2,w=-(te+U)/2,T=d.select(`.label`);T&&(t.useHtmlLabels??n.w(n.b())?T.attr(`transform`,`translate(${-f.width/2}, ${-f.height/2+w})`):T.attr(`transform`,`translate(0, ${-f.height/2+w})`));let E;if(t.look===`handDrawn`){let e=c.t.svg(d),n=o.a(t,{fill:a,stroke:l,...i.strokeWidth===void 0?{}:{strokeWidth:i.strokeWidth},...a===`none`?{fillWeight:0}:{fillStyle:`solid`}}),s=e.path(L(S,C,v,x,i.rx),n);E=d.insert(()=>s,`:first-child`),E.attr(`class`,`basic label-container `+i.cssClass).attr(`style`,r.d(t.cssStyles))}else E=d.insert(`rect`,`:first-child`),E.attr(`class`,`basic label-container `+i.cssClass).attr(`style`,u).attr(`rx`,i.rx).attr(`ry`,i.rx).attr(`x`,S).attr(`y`,C).attr(`width`,v).attr(`height`,x).attr(`fill`,a).attr(`stroke`,l),i.strokeWidth!==void 0&&E.attr(`stroke-width`,i.strokeWidth+`px`);let D=C+h+g+te;d.append(`line`).attr(`class`,`collapsed-separator`).attr(`x1`,S+8).attr(`y1`,D).attr(`x2`,S+v-8).attr(`y2`,D).attr(`stroke`,l).attr(`stroke-dasharray`,`3, 3`);let O=D+U/2;for(let e=-1;e<=1;e++)d.append(`circle`).attr(`class`,`collapsed-indicator`).attr(`cx`,e*10).attr(`cy`,O).attr(`r`,2.5).attr(`fill`,l);return y(t,E),t.calcIntersect=function(e,t){return I.rect(e,t)},t.intersect=function(e){return I.rect(t,e)},d}e.n(K,`collapsedGroup`);function q(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}e.n(q,`insertPolygonShape`);var re=[`right`,`left`,`up`,`down`],ie=`point`,ae=e.n(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n)}return t},`expandAndDeduplicateDirections`),oe=e.n(e=>re.filter(t=>e.has(t)).join(`|`)||ie,`getDirectionKey`),se={"right|left|up|down":e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],`right|left|up|down`),"right|left|up":e.n(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],`right|left|up`),"right|left|down":e.n(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],`right|left|down`),"right|up|down":e.n(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],`right|up|down`),"left|up|down":e.n(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],`left|up|down`),"right|left":e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`right|left`),"up|down":e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`up|down`),"right|up":e.n(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],`right|up`),"right|down":e.n(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],`right|down`),"left|up":e.n(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],`left|up`),"left|down":e.n(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],`left|down`),right:e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],`right`),left:e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`left`),up:e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],`up`),down:e.n(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`down`),[ie]:()=>[{x:0,y:0}]},ce=e.n((e,t,n,r)=>{let i=ae(e),a=(n.padding??0)/2,o=t.height+4*a,s=o/2,c=r??t.width+2*s+2*a;return(se[oe(i)]??se[ie])({height:o,midpoint:s,padding:a,width:c})},`getArrowPoints`);async function le(e,t){let n=t,{shapeSvg:r,bbox:i}=await _(e,n,b(n)),a=n.padding??0,o=i.height+2*a,s=o/2,c=i.width+2*s+a,l=n.width??0,u=n.positioned&&(n.widthInColumns??1)>1&&l>c?l:c,d=ce(n.directions??[],i,n,u),f=q(r,u,o,d);return f.attr(`style`,n.style??null),y(n,f),n.intersect=function(e){return I.polygon(n,d,e)},r}e.n(le,`block_arrow`);async function ue(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=o.i(t);t.labelStyle=r;let{shapeSvg:a,bbox:s,label:l}=await _(e,t,b(t)),u=n?.nodeBorder??n?.lineColor??`currentColor`,d=t.padding??12,f=Math.max(s.width+d*2,t.width??0,90),p=Math.max(s.height+d*2+18,t.height??0),m=-p/2,{cssStyles:h}=t,g=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=c.t.svg(a).path(L(-f/2,m,f,p,12),o.a(t,{}));g.node()?.appendChild(e),h&&g.attr(`style`,h)}else g.append(`rect`).attr(`x`,-f/2).attr(`y`,m).attr(`width`,f).attr(`height`,p).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);g.append(`line`).attr(`x1`,-f/2).attr(`y1`,m+18).attr(`x2`,f/2).attr(`y2`,m+18).attr(`style`,`stroke:${u};stroke-width:1px`);for(let e=0;e<3;e++)g.append(`circle`).attr(`cx`,-f/2+12+e*9).attr(`cy`,m+9).attr(`r`,2.5).attr(`style`,`fill:${u};stroke:none`);g.append(`rect`).attr(`class`,`browser-address-bar`).attr(`x`,-f/2+44).attr(`y`,m+4).attr(`width`,Math.max(f-56,10)).attr(`height`,10).attr(`rx`,3).attr(`ry`,3).attr(`style`,`fill:none;stroke:${u};stroke-width:1px;opacity:0.6`),y(t,g);let v=m+18+(p-18)/2;return l.attr(`transform`,`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${v-s.height/2-(s.y-(s.top??0))})`),t.intersect=function(e){return I.rect(t,e)},a}e.n(ue,`browser`);var de=12;async function fe(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,s=t.look===`neo`?24:i,{shapeSvg:l,bbox:u}=await _(e,t,b(t)),d=(t?.width??u.width)+(t.look===`neo`?a*2:a+de),f=(t?.height??u.height)+(t.look===`neo`?s*2:s),p=d,m=-f,h=[{x:0+de,y:m},{x:p,y:m},{x:p,y:0},{x:0,y:0},{x:0,y:m+de},{x:0+de,y:m}],g,{cssStyles:v}=t;if(t.look===`handDrawn`){let e=c.t.svg(l),n=o.a(t,{}),r=x(h),i=e.path(r,n);g=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${f/2})`),v&&g.attr(`style`,v)}else g=q(l,d,f,h);return r&&g.attr(`style`,r),y(t,g),t.intersect=function(e){return I.polygon(t,h,e)},l}e.n(fe,`card`);function pe(e,t){let{nodeStyles:n}=o.i(t);t.label=``;let r=e.insert(`g`).attr(`class`,b(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=c.t.svg(r),u=o.a(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=x(s),f=l.path(d,u),p=r.insert(()=>f,`:first-child`);return i&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return I.polygon(t,s,e)},r}e.n(pe,`choice`);async function me(e,n,i){let{labelStyles:a,nodeStyles:s}=o.i(n);n.labelStyle=a;let{shapeSvg:l,bbox:u,halfPadding:d}=await _(e,n,b(n),{ignoreMinWidth:!0}),f=i?.padding??d,p=Math.sqrt(u.width**2+u.height**2)/2,m=n.look===`neo`?p+16:p+f,h,{cssStyles:g}=n;if(n.look===`handDrawn`){let e=c.t.svg(l),t=o.a(n,{}),i=e.circle(0,0,m*2,t);h=l.insert(()=>i,`:first-child`),h.attr(`class`,`basic label-container`).attr(`style`,r.d(g))}else h=l.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,s).attr(`r`,m).attr(`cx`,0).attr(`cy`,0);return y(n,h),n.calcIntersect=function(e,t){let n=e.width/2;return I.circle(e,n,t)},n.intersect=function(e){return t.m.info(`Circle intersect`,n,m,e),I.circle(n,m,e)},l}e.n(me,`circle`);async function he(e,t){let n=t,{shapeSvg:r,bbox:i,halfPadding:a}=await _(e,n,[`node`,n.cssClasses,n.class].filter(Boolean).join(` `)),o=r.insert(`rect`,`:first-child`),s=n.padding??0,c=n.positioned?n.width??0:i.width+s,l=n.positioned?n.height??0:i.height+s,u=n.positioned?-c/2:-i.width/2-a,d=n.positioned?-l/2:-i.height/2-a;return o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style??null).attr(`rx`,n.rx??null).attr(`ry`,n.ry??null).attr(`x`,u).attr(`y`,d).attr(`width`,c).attr(`height`,l),y(n,o),n.intersect=function(e){return I.rect(n,e)},r}e.n(he,`composite`);async function ge(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=o.i(t);t.labelStyle=r;let{shapeSvg:a,bbox:s,label:l}=await _(e,t,b(t)),u=n?.nodeBorder??n?.lineColor??`currentColor`,d=t.padding??12,f=Math.max(s.width+d*2,t.width??0,90),p=Math.max(s.height+d*2+20,t.height??0),m=-p/2,{cssStyles:h}=t,g=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=c.t.svg(a).path(L(-f/2,m,f,p,12),o.a(t,{}));g.node()?.appendChild(e),h&&g.attr(`style`,h)}else g.append(`rect`).attr(`x`,-f/2).attr(`y`,m).attr(`width`,f).attr(`height`,p).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);g.append(`text`).attr(`x`,-f/2+12).attr(`y`,m+16).attr(`class`,`console-glyph`).attr(`style`,`font-family:monospace;font-weight:bold;font-size:14px;fill:${u}`).text(`>_`),y(t,g);let v=m+20+(p-20)/2;return l.attr(`transform`,`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${v-s.height/2-(s.y-(s.top??0))})`),t.intersect=function(e){return I.rect(t,e)},a}e.n(ge,`consoleWindow`);function _e(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
|
|
2
|
+
M ${i.x},${i.y} L ${o.x},${o.y}`}e.n(_e,`createLine`);function ve(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.labelStyle=r,n.label=``;let a=e.insert(`g`).attr(`class`,b(n)).attr(`id`,n.domId??n.id),s=Math.max(30,n?.width??0),{cssStyles:l}=n,u=c.t.svg(a),d=o.a(n,{});n.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=u.circle(0,0,s*2,d),p=_e(s),m=u.path(p,d),h=a.insert(()=>f,`:first-child`);return h.insert(()=>m),h.attr(`class`,`outer-path`),l&&n.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,l),i&&n.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,i),y(n,h),n.intersect=function(e){return t.m.info(`crossedCircle intersect`,n,{radius:s,point:e}),I.circle(n,s,e)},a}e.n(ve,`crossedCircle`);function J(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(J,`generateCirclePoints`);async function ye(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:s}=await _(e,t,b(t)),l=t.look===`neo`?18:t.padding??0,u=t.look===`neo`?12:t.padding??0,d=a.width+l,f=a.height+u,p=Math.max(5,f*.1),{cssStyles:m}=t,h=[...J(d/2,-f/2,p,30,-90,0),{x:-d/2-p,y:p},...J(d/2+p*2,-p,p,20,-180,-270),...J(d/2+p*2,p,p,20,-90,-180),{x:-d/2-p,y:-f/2},...J(d/2,f/2,p,20,0,90)],g=[{x:d/2,y:-f/2-p},{x:-d/2,y:-f/2-p},...J(d/2,-f/2,p,20,-90,0),{x:-d/2-p,y:-p},...J(d/2+d*.1,-p,p,20,-180,-270),...J(d/2+d*.1,p,p,20,-90,-180),{x:-d/2-p,y:f/2},...J(d/2,f/2,p,20,0,90),{x:-d/2,y:f/2+p},{x:d/2,y:f/2+p}],v=c.t.svg(i),S=o.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=x(h).replace(`Z`,``),w=v.path(C,S),T=x(g),E=v.path(T,{...S}),D=i.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),m&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${p}, 0)`),s.attr(`transform`,`translate(${-d/2+p-(a.x-(a.left??0))},${-f/2+(t.padding??0)/2-(a.y-(a.top??0))})`),y(t,D),t.intersect=function(e){return I.polygon(t,g,e)},i}e.n(ye,`curlyBraceLeft`);function Y(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:a,y:l})}return o}e.n(Y,`generateCirclePoints`);async function be(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:s}=await _(e,t,b(t)),l=t.look===`neo`?18:t.padding??0,u=t.look===`neo`?12:t.padding??0,d=a.width+(t.look===`neo`?l*2:l),f=a.height+(t.look===`neo`?u*2:u),p=Math.max(5,f*.1),{cssStyles:m}=t,h=[...Y(d/2,-f/2,p,20,-90,0),{x:d/2+p,y:-p},...Y(d/2+p*2,-p,p,20,-180,-270),...Y(d/2+p*2,p,p,20,-90,-180),{x:d/2+p,y:f/2},...Y(d/2,f/2,p,20,0,90)],g=[{x:-d/2,y:-f/2-p},{x:d/2,y:-f/2-p},...Y(d/2,-f/2,p,20,-90,0),{x:d/2+p,y:-p},...Y(d/2+p*2,-p,p,20,-180,-270),...Y(d/2+p*2,p,p,20,-90,-180),{x:d/2+p,y:f/2},...Y(d/2,f/2,p,20,0,90),{x:d/2,y:f/2+p},{x:-d/2,y:f/2+p}],v=c.t.svg(i),S=o.a(t,{fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=x(h).replace(`Z`,``),w=v.path(C,S),T=x(g),E=v.path(T,{...S}),D=i.insert(`g`,`:first-child`);return D.insert(()=>E,`:first-child`).attr(`stroke-opacity`,0),D.insert(()=>w,`:first-child`),D.attr(`class`,`text`),m&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),D.attr(`transform`,`translate(${-p}, 0)`),s.attr(`transform`,`translate(${-d/2+(t.padding??0)/2-(a.x-(a.left??0))},${-f/2+(t.padding??0)/2-(a.y-(a.top??0))})`),y(t,D),t.intersect=function(e){return I.polygon(t,g,e)},i}e.n(be,`curlyBraceRight`);function X(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.n(X,`generateCirclePoints`);async function xe(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:s}=await _(e,t,b(t)),l=t.look===`neo`?18:t.padding??0,u=t.look===`neo`?12:t.padding??0,d=a.width+(t.look===`neo`?l*2:l),f=a.height+(t.look===`neo`?u*2:u),p=Math.max(5,f*.1),{cssStyles:m}=t,h=[...X(d/2,-f/2,p,30,-90,0),{x:-d/2-p,y:p},...X(d/2+p*2,-p,p,20,-180,-270),...X(d/2+p*2,p,p,20,-90,-180),{x:-d/2-p,y:-f/2},...X(d/2,f/2,p,20,0,90)],g=[...X(-d/2+p+p/2,-f/2,p,20,-90,-180),{x:d/2-p/2,y:p},...X(-d/2-p/2,-p,p,20,0,90),...X(-d/2-p/2,p,p,20,-90,0),{x:d/2-p/2,y:-p},...X(-d/2+p+p/2,f/2,p,30,-180,-270)],v=[{x:d/2,y:-f/2-p},{x:-d/2,y:-f/2-p},...X(d/2,-f/2,p,20,-90,0),{x:-d/2-p,y:-p},...X(d/2+p*2,-p,p,20,-180,-270),...X(d/2+p*2,p,p,20,-90,-180),{x:-d/2-p,y:f/2},...X(d/2,f/2,p,20,0,90),{x:-d/2,y:f/2+p},{x:d/2-p-p/2,y:f/2+p},...X(-d/2+p+p/2,-f/2,p,20,-90,-180),{x:d/2-p/2,y:p},...X(-d/2-p/2,-p,p,20,0,90),...X(-d/2-p/2,p,p,20,-90,0),{x:d/2-p/2,y:-p},...X(-d/2+p+p/2,f/2,p,30,-180,-270)],S=c.t.svg(i),C=o.a(t,{fill:`none`});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=x(h).replace(`Z`,``),T=S.path(w,C),E=x(g).replace(`Z`,``),D=S.path(E,C),O=x(v),k=S.path(O,{...C}),A=i.insert(`g`,`:first-child`);return A.insert(()=>k,`:first-child`).attr(`stroke-opacity`,0),A.insert(()=>T,`:first-child`),A.insert(()=>D,`:first-child`),A.attr(`class`,`text`),m&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(${p-p/4}, 0)`),s.attr(`transform`,`translate(${-d/2+(t.padding??0)/2-(a.x-(a.left??0))},${-f/2+(t.padding??0)/2-(a.y-(a.top??0))})`),y(t,A),t.intersect=function(e){return I.polygon(t,v,e)},i}e.n(xe,`curlyBraces`);async function Se(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,s=t.look===`neo`?12:i,{shapeSvg:l,bbox:u}=await _(e,t,b(t)),d=Math.max(5,u.height+s*2,t?.height??0),f=d/2,p=f-Math.sqrt(Math.max(0,f**2-(u.height/2)**2)),m=Math.max(d/4,p),h=Math.max(20,u.width+a*2+m*2,(u.width+a*2)*1.25,t?.width??0),{cssStyles:g}=t,v=c.t.svg(l),S=o.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let w=h,T=d,E=w-f,D=T/4,O=[{x:E,y:0},{x:D,y:0},{x:0,y:T/2},{x:D,y:T},{x:E,y:T},...C(-E,-T/2,f,50,270,90)],k=x(O),A=v.path(k,S),j=l.insert(()=>A,`:first-child`);return j.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&j.selectChildren(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&j.selectChildren(`path`).attr(`style`,r),j.attr(`transform`,`translate(${-h/2}, ${-d/2})`),y(t,j),t.intersect=function(e){return I.polygon(t,O,e)},l}e.n(Se,`curvedTrapezoid`);async function Ce(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:s}=await _(e,t,b(t)),l=t.padding??20,u=Math.max(a.width+l*2,t.width??0,100),d=Math.min(Math.max(u*.23,16),56),f=d*.27,p=Math.max(a.height+l*2,t.height?t.height-(2*d-f):0),m=Math.min(u*.177,p*.45),h=p+2*d-f,g=-h/2,v=g+2*d-f,x=i.insert(`g`,`:first-child`).attr(`class`,`basic label-container`),{cssStyles:S}=t;if(t.look===`handDrawn`){let e=c.t.svg(i),n=o.a(t,{}),r=e.path(L(-u/2,v,u,p,m),n),a=e.circle(0,g+d,d*2,n);x.insert(()=>a,`:first-child`),x.insert(()=>r,`:first-child`),S&&x.attr(`style`,S)}else x.append(`rect`).attr(`x`,-u/2).attr(`y`,v).attr(`width`,u).attr(`height`,p).attr(`rx`,m).attr(`ry`,m).attr(`style`,r),x.append(`circle`).attr(`cx`,0).attr(`cy`,g+d).attr(`r`,d).attr(`style`,r);y(t,x);let w=v+p/2;s.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${w-a.height/2-(a.y-(a.top??0))})`);let T=g+d,E=Math.asin(Math.min(1,(v-T)/d))*180/Math.PI,D=[...C(0,-T,d,24,180+E,-E),...C(-(-u/2+m),-(v+m),m,12,90,0),...C(-(-u/2+m),-(h/2-m),m,12,360,270),...C(-(u/2-m),-(h/2-m),m,12,270,180),...C(-(u/2-m),-(v+m),m,12,180,90)];return t.intersect=function(e){return I.polygon(t,D,e)},i}e.n(Ce,`person`);var we=e.n((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),Te=e.n((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),Ee=e.n((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),De=8,Oe=8;async function ke(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t.padding??0,s=t.look===`neo`?24:a,l=t.look===`neo`?24:a,u=t.width??0;if(t.width&&(t.width-=l,t.width<Oe&&(t.width=Oe)),t.height){let e=u/2/(2.5+u/50);t.height=t.height-s-e*3,t.height<De&&(t.height=De)}let{shapeSvg:d,bbox:f,label:p}=await _(e,t,b(t)),m=Math.max(t.width??0,f.width)+l,h=m/2,g=h/(2.5+m/50),v=Math.max(t.height??0,f.height)+s+g,x,{cssStyles:S}=t;if(t.look===`handDrawn`){let e=c.t.svg(d),n=Te(0,0,m,v,h,g),r=Ee(0,g,m,v,h,g),i=o.a(t,{}),a=e.path(n,i),s=e.path(r,o.a(t,{fill:`none`}));x=d.insert(()=>s,`:first-child`),x=d.insert(()=>a,`:first-child`),x.attr(`class`,`basic label-container`),S&&x.attr(`style`,S)}else{let e=we(0,0,m,v,h,g);x=d.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,r.d(S)).attr(`style`,i)}return x.attr(`label-offset-y`,g),x.attr(`transform`,`translate(${-m/2}, ${-(v/2+g)})`),y(t,x),p.attr(`transform`,`translate(${-(f.width/2)-(f.x-(f.left??0))}, ${-(f.height/2)+(t.padding??0)/1.5-(f.y-(f.top??0))})`),t.intersect=function(e){let n=I.rect(t,e),r=n.x-(t.x??0);if(h!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-g)){let i=g*g*(1-r*r/(h*h));i>0&&(i=Math.sqrt(i)),i=g-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},d}e.n(ke,`cylinder`);async function Ae(e,t,n){let{labelStyles:i,nodeStyles:a}=o.i(t);t.labelStyle=i;let{shapeSvg:s,bbox:l}=await _(e,t,b(t)),u=Math.max(l.width+n.labelPaddingX*2,t?.width||0),d=Math.max(l.height+n.labelPaddingY*2,t?.height||0),f=-u/2,p=-d/2,m,{rx:h,ry:g}=t,{cssStyles:v}=t;if(n?.rx&&n.ry&&(h=n.rx,g=n.ry),t.look===`handDrawn`){let e=c.t.svg(s),n=o.a(t,{}),i=h||g?e.path(L(f,p,u,d,h||0),n):e.rectangle(f,p,u,d,n);m=s.insert(()=>i,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,r.d(v))}else m=s.insert(`rect`,`:first-child`),m.attr(`class`,`basic label-container`).attr(`style`,a).attr(`rx`,r.d(h)).attr(`ry`,r.d(g)).attr(`x`,f).attr(`y`,p).attr(`width`,u).attr(`height`,d);return y(t,m,t.look===`handDrawn`?void 0:{width:u,height:d}),t.calcIntersect=function(e,t){return I.rect(e,t)},t.intersect=function(e){return I.rect(t,e)},s}e.n(Ae,`drawRect`);async function je(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:a,width:s,height:l}=t,u=await Ae(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(a??0)*2,labelPaddingY:i??a??0});if(t.look===`handDrawn`){let e=c.t.svg(u),n=o.a(t,{}),r=u.select(`.basic.label-container > path:nth-child(2)`),i=r.node();if(!i)return u;let a=null;if(i instanceof SVGGraphicsElement)a=i.getBBox();else return u;return u.insert(()=>e.line(a.x,a.y,a.x+a.width,a.y,n),`.basic.label-container g.label`),u.insert(()=>e.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,n),`.basic.label-container g.label`),r.remove(),u}let d=u.select(`.basic.label-container`),f=(Number(d.attr(`width`))||s)??0,p=(Number(d.attr(`height`))||l)??0;return f>0&&p>0&&d.attr(`stroke-dasharray`,`${f} ${p}`),u}e.n(je,`datastore`);async function Me(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:s,bbox:l,label:u}=await _(e,t,b(t)),d=l.width+i,f=l.height+a,p=f*.2,m=-d/2,h=-f/2-p/2,{cssStyles:g}=t,v=c.t.svg(s),x=o.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=[{x:m,y:h+p},{x:-m,y:h+p},{x:-m,y:-h},{x:m,y:-h},{x:m,y:h},{x:-m,y:h},{x:-m,y:h+p}],C=v.polygon(S.map(e=>[e.x,e.y]),x),w=s.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),u.attr(`transform`,`translate(${m+(t.padding??0)/2-(l.x-(l.left??0))}, ${h+p+(t.padding??0)/2-(l.y-(l.top??0))})`),y(t,w),t.intersect=function(e){return I.rect(t,e)},s}e.n(Me,`dividedRectangle`);async function Ne(e,n){let{labelStyles:i,nodeStyles:a}=o.i(n),s=n.look===`neo`?12:5;n.labelStyle=i;let l=n.padding??0,u=n.look===`neo`?16:l,{shapeSvg:d,bbox:f}=await _(e,n,b(n),{ignoreMinWidth:!0}),p=Math.sqrt(f.width**2+f.height**2)/2,m=(n?.width?n?.width/2:p)+(u??0),h=m+s,g,{cssStyles:v}=n;if(n.look===`handDrawn`){let e=c.t.svg(d),t=o.a(n,{roughness:.2,strokeWidth:2.5}),i=o.a(n,{roughness:.2,strokeWidth:1.5}),a=e.circle(0,0,h*2,t),s=e.circle(0,0,m*2,i);g=d.insert(`g`,`:first-child`),g.attr(`class`,r.d(n.cssClasses)).attr(`style`,r.d(v)),g.node()?.appendChild(a),g.node()?.appendChild(s)}else{g=d.insert(`g`,`:first-child`);let e=g.insert(`circle`,`:first-child`),t=g.insert(`circle`);g.attr(`class`,`basic label-container`).attr(`style`,a),e.attr(`class`,`outer-circle`).attr(`style`,a).attr(`r`,h).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,a).attr(`r`,m).attr(`cx`,0).attr(`cy`,0)}return y(n,g),n.intersect=function(e){return t.m.info(`DoubleCircle intersect`,n,h,e),I.circle(n,h,e)},d}e.n(Ne,`doublecircle`);async function Pe(e,t){let{labelStyles:r,nodeStyles:i}=o.i(t);t.labelStyle=r;let{shapeSvg:a,bbox:l,halfPadding:u}=await _(e,t,b(t)),{theme:d,themeVariables:f}=n.b();s.s(a,t.colorIndex,d,f.borderColorArray);let p=u??10,m=l.width/2+p*2,h=l.height/2+p*2,g,{cssStyles:v}=t;if(t.look===`handDrawn`){let e=c.t.svg(a),n=o.a(t,{}),r=e.ellipse(0,0,m*2,h*2,n);g=a.insert(()=>r,`:first-child`),g.attr(`class`,`basic label-container`),v&&g.attr(`style`,v)}else g=a.insert(`ellipse`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,i).attr(`rx`,m).attr(`ry`,h).attr(`cx`,0).attr(`cy`,0);return t.width=m*2,t.height=h*2,y(t,g),t.calcIntersect=function(e,t){let n=e.width/2,r=e.height/2;return I.ellipse(e,n,r,t)},t.intersect=function(e){return I.ellipse(t,m,h,e)},a}e.n(Pe,`usecaseEllipse`);function Fe(e,n,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=o.i(n);n.label=``,n.labelStyle=i;let s=e.insert(`g`).attr(`class`,b(n)).attr(`id`,n.domId??n.id),{cssStyles:l}=n,u=c.t.svg(s),{nodeBorder:d}=r,f=o.a(n,{fillStyle:`solid`});n.look!==`handDrawn`&&(f.roughness=0);let p=u.circle(0,0,14,f),m=s.insert(()=>p,`:first-child`);return m.selectAll(`path`).attr(`style`,`fill: ${d} !important;`),l&&l.length>0&&n.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,l),a&&n.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,a),y(n,m),n.intersect=function(e){return t.m.info(`filledCircle intersect`,n,{radius:7,point:e}),I.circle(n,7,e)},s}e.n(Fe,`filledCircle`);var Ie=10,Le=10;async function Re(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.labelStyle=r;let a=n.padding??0,s=n.look===`neo`?a*2:a;(n.width||n.height)&&(n.height=n?.height??0,n.height<Ie&&(n.height=Ie),n.width=(n?.width??0)-s-s/2,n.width<Le&&(n.width=Le));let{shapeSvg:l,bbox:u,label:d}=await _(e,n,b(n)),f=(n?.width?n?.width:u.width)+(s??0),p=n?.height?n?.height:f+u.height,m=p,h=[{x:0,y:-p},{x:m,y:-p},{x:m/2,y:0}],{cssStyles:g}=n,v=c.t.svg(l),S=o.a(n,{});n.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=x(h),w=v.path(C,S),T=l.insert(()=>w,`:first-child`).attr(`transform`,`translate(${-p/2}, ${p/2})`).attr(`class`,`outer-path`);return g&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,g),i&&n.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,i),n.width=f,n.height=p,y(n,T),d.attr(`transform`,`translate(${-u.width/2-(u.x-(u.left??0))}, ${-p/2+(n.padding??0)/2+(u.y-(u.top??0))})`),n.intersect=function(e){return t.m.info(`Triangle intersect`,n,h,e),I.polygon(n,h,e)},l}e.n(Re,`flippedTriangle`);async function ze(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:s}=await _(e,t,b(t)),l=t.padding??12,u=Math.max(a.width+l*2,t.width??0,90),d=a.height+l*2,f=Math.max(Math.min(d*.16,14),8),p=Math.max(d+f,t.height??0),m=p-f,h=Math.max(u*.38,28),g=-p/2,v=[{x:-u/2,y:g},{x:-u/2+h,y:g},{x:-u/2+h,y:g+f},{x:u/2,y:g+f},{x:u/2,y:p/2},{x:-u/2,y:p/2}],x=[`M${v[0].x},${v[0].y}`,...v.slice(1).map(e=>`L${e.x},${e.y}`),`Z`].join(` `),{cssStyles:S}=t,C;if(t.look===`handDrawn`){let e=c.t.svg(i).path(x,o.a(t,{}));C=i.insert(()=>e,`:first-child`).attr(`class`,`basic label-container`),S&&C.attr(`style`,S)}else C=i.insert(`path`,`:first-child`).attr(`d`,x).attr(`class`,`basic label-container`).attr(`style`,r);t.look===`handDrawn`?y(t,C):y(t,C,{width:u,height:p});let w=g+f+m/2;return s.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${w-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(e){return I.polygon(t,v,e)},i}e.n(ze,`folder`);function Be(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=o.i(t);t.label=``;let s=e.insert(`g`).attr(`class`,b(t)).attr(`id`,t.domId??t.id),{cssStyles:l}=t,u=Math.max(70,t?.width??0),d=Math.max(10,t?.height??0);(n===`LR`||n===`RL`)&&(u=Math.max(10,t?.width??0),d=Math.max(70,t?.height??0));let f=-1*u/2,p=-1*d/2,m=c.t.svg(s),h=o.a(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.rectangle(f,p,u,d,h),_=s.insert(()=>g,`:first-child`);l&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,l),a&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,a),y(t,_);let v=r?.padding??0;return t.width&&t.height&&(t.width+=v/2||0,t.height+=v/2||0),t.intersect=function(e){return I.rect(t,e)},s}e.n(Be,`forkJoin`);async function Ve(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.labelStyle=r;let a=n.look===`neo`?16:n.padding??0,s=n.look===`neo`?12:n.padding??0;(n.width||n.height)&&(n.height=(n?.height??0)-s*2,n.height<10&&(n.height=10),n.width=(n?.width??0)-a*2,n.width<15&&(n.width=15));let{shapeSvg:l,bbox:u}=await _(e,n,b(n)),d=(n?.height?n?.height:Math.max(10,u.height))+s*2,f=d/2,p=f-Math.sqrt(Math.max(0,f**2-(u.height/2)**2)),m=(n?.width?n?.width:Math.max(15,u.width)+p*2)+a*2,{cssStyles:h}=n,g=c.t.svg(l),v=o.a(n,{});n.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let S=[{x:-m/2,y:-d/2},{x:m/2-f,y:-d/2},...C(-m/2+f,0,f,50,90,270),{x:m/2-f,y:d/2},{x:-m/2,y:d/2}],w=x(S),T=g.path(w,v),E=l.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container outer-path`),h&&n.look!==`handDrawn`&&E.selectChildren(`path`).attr(`style`,h),i&&n.look!==`handDrawn`&&E.selectChildren(`path`).attr(`style`,i),y(n,E),n.intersect=function(e){return t.m.info(`Pill intersect`,n,{radius:f,point:e}),I.polygon(n,S,e)},l}e.n(Ve,`halfRoundedRectangle`);var He=e.n((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function Ue(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,s=t.look===`neo`?70:a,l=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-l,t.height=(t.height??0)-s}let{shapeSvg:u,bbox:d}=await _(e,t,b(t)),f=(t?.height?t?.height:d.height)+s,p=f/i,m=(t?.width?t?.width:d.width)+2*p+l,h=[{x:p,y:0},{x:m-p,y:0},{x:m,y:-f/2},{x:m-p,y:-f},{x:p,y:-f},{x:0,y:-f/2}],g,{cssStyles:v}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=o.a(t,{}),r=He(0,0,m,f,p),i=e.path(r,n);g=u.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-m/2}, ${f/2})`),v&&g.attr(`style`,v)}else g=q(u,m,f,h);return r&&g.attr(`style`,r),t.width=m,t.height=f,y(t,g),t.intersect=function(e){return I.polygon(t,h,e)},u}e.n(Ue,`hexagon`);async function We(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.label=``,n.labelStyle=r;let{shapeSvg:a}=await _(e,n,b(n)),s=Math.max(30,n?.width??0),l=Math.max(30,n?.height??0),{cssStyles:u}=n,d=c.t.svg(a),f=o.a(n,{});n.look!==`handDrawn`&&(f.roughness=0,f.fillStyle=`solid`);let p=[{x:0,y:0},{x:s,y:0},{x:0,y:l},{x:s,y:l}],m=x(p),h=d.path(m,f),g=a.insert(()=>h,`:first-child`);return g.attr(`class`,`basic label-container outer-path`),u&&n.look!==`handDrawn`&&g.selectChildren(`path`).attr(`style`,u),i&&n.look!==`handDrawn`&&g.selectChildren(`path`).attr(`style`,i),g.attr(`transform`,`translate(${-s/2}, ${-l/2})`),y(n,g),n.intersect=function(e){return t.m.info(`Pill intersect`,n,{points:p}),I.polygon(n,p,e)},a}e.n(We,`hourglass`);async function Ge(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:s}=o.i(n);n.labelStyle=s;let l=n.assetHeight??48,u=n.assetWidth??48,d=Math.max(l,u),f=a?.wrappingWidth;n.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,label:h}=await _(e,n,`icon-shape default`),g=n.pos===`t`,v=d,b=d,{nodeBorder:x}=r,{stylesMap:S}=o.t(n),C=-b/2,w=-v/2,T=n.label?8:0,E=c.t.svg(p),D=o.a(n,{stroke:`none`,fill:`none`});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=E.rectangle(C,w,b,v,D),k=Math.max(b,m.width),A=v+m.height+T,j=E.rectangle(-k/2,-A/2,k,A,{...D,fill:`transparent`,stroke:`none`}),M=p.insert(()=>O,`:first-child`),N=p.insert(()=>j);if(n.icon){let e=p.append(`g`);e.html(`<g>${await i.t(n.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${g?m.height/2+T/2-a/2-s:-m.height/2-T/2-a/2-s})`),e.attr(`style`,`color: ${S.get(`stroke`)??x};`)}return h.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${g?-A/2:A/2-m.height})`),M.attr(`transform`,`translate(0,${g?m.height/2+T/2:-m.height/2-T/2})`),y(n,N),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=g?[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+T},{x:r+b/2,y:i-a/2+m.height+T},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+m.height+T},{x:r-m.width/2,y:i-a/2+m.height+T}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+v},{x:r+m.width/2,y:i-a/2+v},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+v},{x:r-b/2,y:i-a/2+v}],I.polygon(n,o,e)},p}e.n(Ge,`icon`);async function Ke(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:s}=o.i(n);n.labelStyle=s;let l=n.assetHeight??48,u=n.assetWidth??48,d=Math.max(l,u),f=a?.wrappingWidth;n.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,label:h}=await _(e,n,`icon-shape default`),g=n.label?8:0,v=n.pos===`t`,{nodeBorder:b,mainBkg:x}=r,{stylesMap:S}=o.t(n),C=c.t.svg(p),w=o.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=S.get(`fill`)??x;let T=p.append(`g`);n.icon&&T.html(`<g>${await i.t(n.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let E=T.node().getBBox(),D=E.width,O=E.height,k=E.x,A=E.y,j=Math.max(D,O)*Math.SQRT2+40,M=C.circle(0,0,j,w),N=Math.max(j,m.width),P=j+m.height+g,F=C.rectangle(-N/2,-P/2,N,P,{...w,fill:`transparent`,stroke:`none`}),L=p.insert(()=>M,`:first-child`),R=p.insert(()=>F);return T.attr(`transform`,`translate(${-D/2-k},${v?m.height/2+g/2-O/2-A:-m.height/2-g/2-O/2-A})`),T.attr(`style`,`color: ${S.get(`stroke`)??b};`),h.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${v?-P/2:P/2-m.height})`),L.attr(`transform`,`translate(0,${v?m.height/2+g/2:-m.height/2-g/2})`),y(n,R),n.intersect=function(e){return t.m.info(`iconSquare intersect`,n,e),I.rect(n,e)},p}e.n(Ke,`iconCircle`);async function qe(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:s}=o.i(n);n.labelStyle=s;let l=n.assetHeight??48,u=n.assetWidth??48,d=Math.max(l,u),f=a?.wrappingWidth;n.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,halfPadding:h,label:g}=await _(e,n,`icon-shape default`),v=n.pos===`t`,b=d+h*2,x=d+h*2,{nodeBorder:S,mainBkg:C}=r,{stylesMap:w}=o.t(n),T=-x/2,E=-b/2,D=n.label?8:0,O=c.t.svg(p),k=o.a(n,{});n.look!==`handDrawn`&&(k.roughness=0,k.fillStyle=`solid`),k.stroke=w.get(`fill`)??C;let A=O.path(L(T,E,x,b,5),k),j=Math.max(x,m.width),M=b+m.height+D,N=O.rectangle(-j/2,-M/2,j,M,{...k,fill:`transparent`,stroke:`none`}),P=p.insert(()=>A,`:first-child`).attr(`class`,`icon-shape2`),F=p.insert(()=>N);if(n.icon){let e=p.append(`g`);e.html(`<g>${await i.t(n.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${v?m.height/2+D/2-a/2-s:-m.height/2-D/2-a/2-s})`),e.attr(`style`,`color: ${w.get(`stroke`)??S};`)}return g.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${v?-M/2:M/2-m.height})`),P.attr(`transform`,`translate(0,${v?m.height/2+D/2:-m.height/2-D/2})`),y(n,F),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=v?[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+D},{x:r+x/2,y:i-a/2+m.height+D},{x:r+x/2,y:i+a/2},{x:r-x/2,y:i+a/2},{x:r-x/2,y:i-a/2+m.height+D},{x:r-m.width/2,y:i-a/2+m.height+D}]:[{x:r-x/2,y:i-a/2},{x:r+x/2,y:i-a/2},{x:r+x/2,y:i-a/2+b},{x:r+m.width/2,y:i-a/2+b},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+b},{x:r-x/2,y:i-a/2+b}],I.polygon(n,o,e)},p}e.n(qe,`iconRounded`);async function Je(e,n,{config:{themeVariables:r,flowchart:a}}){let{labelStyles:s}=o.i(n);n.labelStyle=s;let l=n.assetHeight??48,u=n.assetWidth??48,d=Math.max(l,u),f=a?.wrappingWidth;n.width=Math.max(d,f??0);let{shapeSvg:p,bbox:m,halfPadding:h,label:g}=await _(e,n,`icon-shape default`),v=n.pos===`t`,b=d+h*2,x=d+h*2,{nodeBorder:S,mainBkg:C}=r,{stylesMap:w}=o.t(n),T=-x/2,E=-b/2,D=n.label?8:0,O=c.t.svg(p),k=o.a(n,{});n.look!==`handDrawn`&&(k.roughness=0,k.fillStyle=`solid`),k.stroke=w.get(`fill`)??C;let A=O.path(L(T,E,x,b,.1),k),j=Math.max(x,m.width),M=b+m.height+D,N=O.rectangle(-j/2,-M/2,j,M,{...k,fill:`transparent`,stroke:`none`}),P=p.insert(()=>A,`:first-child`),F=p.insert(()=>N);if(n.icon){let e=p.append(`g`);e.html(`<g>${await i.t(n.icon,{height:d,width:d,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,a=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${v?m.height/2+D/2-a/2-s:-m.height/2-D/2-a/2-s})`),e.attr(`style`,`color: ${w.get(`stroke`)??S};`)}return g.attr(`transform`,`translate(${-m.width/2-(m.x-(m.left??0))},${v?-M/2:M/2-m.height})`),P.attr(`transform`,`translate(0,${v?m.height/2+D/2:-m.height/2-D/2})`),y(n,F),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=v?[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+D},{x:r+x/2,y:i-a/2+m.height+D},{x:r+x/2,y:i+a/2},{x:r-x/2,y:i+a/2},{x:r-x/2,y:i-a/2+m.height+D},{x:r-m.width/2,y:i-a/2+m.height+D}]:[{x:r-x/2,y:i-a/2},{x:r+x/2,y:i-a/2},{x:r+x/2,y:i-a/2+b},{x:r+m.width/2,y:i-a/2+b},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+b},{x:r-x/2,y:i-a/2+b}],I.polygon(n,o,e)},p}e.n(Je,`iconSquare`);async function Ye(e,n,{config:{flowchart:r}}){let i=new Image;i.src=n?.img??``,await i.decode();let a=Number(i.naturalWidth.toString().replace(`px`,``)),s=Number(i.naturalHeight.toString().replace(`px`,``));n.imageAspectRatio=a/s;let{labelStyles:l}=o.i(n);n.labelStyle=l;let u=r?.wrappingWidth;n.defaultWidth=r?.wrappingWidth;let d=Math.max(n.label?u??0:0,n?.assetWidth??a),f=n.constraint===`on`&&n?.assetHeight?n.assetHeight*n.imageAspectRatio:d,p=n.constraint===`on`?f/n.imageAspectRatio:n?.assetHeight??s;n.width=Math.max(f,u??0);let{shapeSvg:m,bbox:h,label:g}=await _(e,n,`image-shape default`),v=n.pos===`t`,b=-f/2,x=-p/2,S=n.label?8:0,C=c.t.svg(m),w=o.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=C.rectangle(b,x,f,p,w),E=Math.max(f,h.width),D=p+h.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`none`,stroke:`none`}),k=m.insert(()=>T,`:first-child`),A=m.insert(()=>O);if(n.img){let e=m.append(`image`);e.attr(`href`,n.img),e.attr(`width`,f),e.attr(`height`,p),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-f/2},${v?D/2-p:-D/2})`)}return g.attr(`transform`,`translate(${-h.width/2-(h.x-(h.left??0))},${v?-p/2-h.height/2-S/2:p/2-h.height/2+S/2})`),k.attr(`transform`,`translate(0,${v?h.height/2+S/2:-h.height/2-S/2})`),y(n,A),n.intersect=function(e){if(t.m.info(`iconSquare intersect`,n,e),!n.label)return I.rect(n,e);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=v?[{x:r-h.width/2,y:i-a/2},{x:r+h.width/2,y:i-a/2},{x:r+h.width/2,y:i-a/2+h.height+S},{x:r+f/2,y:i-a/2+h.height+S},{x:r+f/2,y:i+a/2},{x:r-f/2,y:i+a/2},{x:r-f/2,y:i-a/2+h.height+S},{x:r-h.width/2,y:i-a/2+h.height+S}]:[{x:r-f/2,y:i-a/2},{x:r+f/2,y:i-a/2},{x:r+f/2,y:i-a/2+p},{x:r+h.width/2,y:i-a/2+p},{x:r+h.width/2/2,y:i+a/2},{x:r-h.width/2,y:i+a/2},{x:r-h.width/2,y:i-a/2+p},{x:r-f/2,y:i-a/2+p}],I.polygon(n,o,e)},m}e.n(Ye,`imageSquare`);async function Xe(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=i,s=t.look===`neo`?i*2:i,{shapeSvg:l,bbox:u}=await _(e,t,b(t)),d=Math.max(u.height+a*2,t.height??0),f=Math.max(u.width+s*2,(t.width??0)-d),p=[{x:0,y:0},{x:f,y:0},{x:f+3*d/6,y:-d},{x:-3*d/6,y:-d}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=c.t.svg(l),n=o.a(t,{}),r=x(p),i=e.path(r,n);m=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),h&&m.attr(`style`,h)}else m=q(l,f,d,p);return r&&m.attr(`style`,r),t.width=f,t.height=d,y(t,m),t.intersect=function(e){return I.polygon(t,p,e)},l}e.n(Xe,`inv_trapezoid`);async function Ze(e,t){let{shapeSvg:n,bbox:r,label:i}=await _(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),y(t,a),t.intersect=function(e){return I.rect(t,e)},n}e.n(Ze,`labelRect`);async function Qe(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=i,s=t.look===`neo`?i*2:i,{shapeSvg:l,bbox:u}=await _(e,t,b(t)),d=Math.max(u.height+a,t.height??0),f=Math.max(u.width+s,(t.width??0)-d),p=[{x:0,y:0},{x:f+3*d/6,y:0},{x:f,y:-d},{x:-(3*d)/6,y:-d}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=c.t.svg(l),n=o.a(t,{}),r=x(p),i=e.path(r,n);m=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),h&&m.attr(`style`,h)}else m=q(l,f,d,p);return r&&m.attr(`style`,r),t.width=f,t.height=d,y(t,m),t.intersect=function(e){return I.polygon(t,p,e)},l}e.n(Qe,`lean_left`);async function $e(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=i,s=t.look===`neo`?i*2:i,{shapeSvg:l,bbox:u}=await _(e,t,b(t)),d=Math.max(u.height+a,t.height??0),f=Math.max(u.width+s,(t.width??0)-d),p=[{x:-3*d/6,y:0},{x:f,y:0},{x:f+3*d/6,y:-d},{x:0,y:-d}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=c.t.svg(l),n=o.a(t,{}),r=x(p),i=e.path(r,n);m=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),h&&m.attr(`style`,h)}else m=q(l,f,d,p);return r&&m.attr(`style`,r),t.width=f,t.height=d,y(t,m),t.intersect=function(e){return I.polygon(t,p,e)},l}e.n($e,`lean_right`);function et(e,n){let{labelStyles:r,nodeStyles:i}=o.i(n);n.label=``,n.labelStyle=r;let a=e.insert(`g`).attr(`class`,b(n)).attr(`id`,n.domId??n.id),{cssStyles:s}=n,l=Math.max(35,n?.width??0),u=Math.max(35,n?.height??0),d=[{x:l,y:0},{x:0,y:u+7/2},{x:l-14,y:u+7/2},{x:0,y:2*u},{x:l,y:u-7/2},{x:14,y:u-7/2}],f=c.t.svg(a),p=o.a(n,{});n.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=x(d),h=f.path(m,p),g=a.insert(()=>h,`:first-child`);return g.attr(`class`,`outer-path`),s&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,s),i&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,i),g.attr(`transform`,`translate(-${l/2},${-u})`),y(n,g),n.intersect=function(e){return t.m.info(`lightningBolt intersect`,n,e),I.polygon(n,d,e)},a}e.n(et,`lightningBolt`);var tt=e.n((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),nt=e.n((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),rt=e.n((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),it=10,at=10;async function ot(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t.padding??0,s=t.look===`neo`?16:a,l=t.look===`neo`?24:a;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-s,t.width<at&&(t.width=at);let n=e/2/(2.5+e/50);t.height=(t.height??0)-l-n*3,t.height<it&&(t.height=it)}let{shapeSvg:u,bbox:d,label:f}=await _(e,t,b(t)),p=(t?.width?t?.width:d.width)+s*2,m=p/2,h=m/(2.5+p/50),g=(t?.height?t?.height:d.height)+h+l*2,v=g*.1,x,{cssStyles:S}=t;if(t.look===`handDrawn`){let e=c.t.svg(u),n=nt(0,0,p,g,m,h,v),r=rt(0,h,p,g,m,h),i=o.a(t,{}),a=e.path(n,i),s=e.path(r,i);u.insert(()=>s,`:first-child`).attr(`class`,`line`),x=u.insert(()=>a,`:first-child`),x.attr(`class`,`basic label-container`),S&&x.attr(`style`,S)}else{let e=tt(0,0,p,g,m,h,v);x=u.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,r.d(S)).attr(`style`,i)}return x.attr(`label-offset-y`,h),x.attr(`transform`,`translate(${-p/2}, ${-(g/2+h)})`),y(t,x),f.attr(`transform`,`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+h-(d.y-(d.top??0))})`),t.intersect=function(e){let n=I.rect(t,e),r=n.x-(t.x??0);if(m!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-h)){let i=h*h*(1-r*r/(m*m));i>0&&(i=Math.sqrt(i)),i=h-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},u}e.n(ot,`linedCylinder`);async function st(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,s=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-s*2,t.height<10&&(t.height=10));let{shapeSvg:l,bbox:u,label:d}=await _(e,t,b(t)),f=(t?.width?t?.width:u.width)+(a??0)*2,p=(t?.height?t?.height:u.height)+(s??0)*2,m=t.look===`neo`?p/4:p/8,h=p+m,{cssStyles:g}=t,v=c.t.svg(l),x=o.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let C=[{x:-f/2-f/2*.1,y:-h/2},{x:-f/2-f/2*.1,y:h/2},...S(-f/2-f/2*.1,h/2,f/2+f/2*.1,h/2,m,.8),{x:f/2+f/2*.1,y:-h/2},{x:-f/2-f/2*.1,y:-h/2},{x:-f/2,y:-h/2},{x:-f/2,y:h/2*1.1},{x:-f/2,y:-h/2}],w=v.polygon(C.map(e=>[e.x,e.y]),x),T=l.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-m/2})`),d.attr(`transform`,`translate(${-f/2+(t.padding??0)+f/2*.1/2-(u.x-(u.left??0))},${-p/2+(t.padding??0)-m-(u.y-(u.top??0))})`),y(t,T),t.intersect=function(e){return I.polygon(t,C,e)},l}e.n(st,`linedWaveEdgedRect`);var ct=56,lt=72,ut=8,dt=2,ft=8,pt={normal:`usecase-actor-shape usecase-actor-normal`,hollow:`usecase-actor-hollow`,awesome:`usecase-actor-awesome`,icon:`usecase-actor-icon`},mt=Math.PI/3,ht=.6,gt=e.n((e,t)=>{let n=t*ht,r=t*Math.sqrt(1-ht**2),i=Math.cos(mt),a=-Math.sin(mt),o=n*-a,s=e+n*i,c=r*i,l=r*a;return`M ${o-c} ${s-l} L ${o+c} ${s+l}`},`businessMarkerPathForCircle`),_t={normal:gt(-24,12),hollow:gt(-23,9),awesome:gt(-21,13),icon:`M 12 -8 L 26 -26`},vt=e.n((e,t,n)=>{let r=(t.x??0)-(t.left??0),i=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${-t.width/2-r},${n-t.height/2-i})`)},`positionLabel`),yt=e.n((e,t,n,r,i=!1)=>{if(t.look===`handDrawn`){let a=c.t.svg(e).path(n,o.a(t,i?{fill:`none`}:{}));return e.insert(()=>a,`:first-child`).attr(`class`,r)}let a=e.append(`path`).attr(`class`,r).attr(`d`,n);return i&&a.attr(`fill`,`none`),a},`appendActorPath`),bt=e.n((e,t,n,r,i,a,s=!1)=>{if(t.look===`handDrawn`){let l=c.t.svg(e).circle(n,r,i*2,o.a(t,s?{fill:`none`}:{}));return e.insert(()=>l,`:first-child`).attr(`class`,a)}let l=e.append(`circle`).attr(`class`,a).attr(`cx`,n).attr(`cy`,r).attr(`r`,i);return s&&l.attr(`fill`,`none`),l},`appendActorCircle`),xt=e.n((e,t,n)=>{t.business&&e.append(`path`).attr(`class`,`usecase-business-marker usecase-actor-business-marker`).attr(`d`,_t[n]).attr(`fill`,`none`).attr(`style`,`stroke: inherit !important; stroke-width: inherit !important`)},`appendBusinessActorMarker`);async function St(e,t,r,i){let{labelStyles:a,nodeStyles:c}=o.i(t);t.labelStyle=a;let{shapeSvg:l,bbox:u,label:d}=await _(e,r===`icon`||t.stereotype!==void 0?{...t,icon:r===`icon`?void 0:t.icon,stereotype:void 0}:t,b(t,`usecase-actor-variant usecase-actor-${r}`)),f=t.accessibleName??t.label;f&&l.attr(`role`,`img`).attr(`aria-label`,f),d.attr(`class`,`label actor-label usecase-actor-label`);let{theme:p,themeVariables:m}=n.b();s.s(l,t.colorIndex,p,m.borderColorArray);let h,g;if(t.stereotype){let e=await v(l,`\xAB${t.stereotype}\xBB`,{labelStyle:a,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});h=e.label.attr(`class`,`label usecase-stereotype`),g=e.bbox}let x=l.append(`g`).attr(`class`,`usecase-actor-glyph ${pt[r]}`).attr(`style`,c||null);await i(x,t),xt(x,t,r);let S=t.padding??ft,C=g?.height??0,w=lt+ut+u.height+(g?C+dt:0),T=Math.max(ct,u.width,g?.width??0)+S*2,E=w+S*2,D=-w/2;x.attr(`transform`,`translate(0,${D+lt/2})`);let O=D+lt+ut;return h&&g&&(O+=C/2,vt(h,g,O),O+=C/2+dt),vt(d,u,O+u.height/2),y(t,l.insert(`rect`,`:first-child`).attr(`class`,`usecase-actor-outline`).attr(`x`,-T/2).attr(`y`,-E/2).attr(`width`,T).attr(`height`,E).attr(`opacity`,0).attr(`aria-hidden`,`true`)),t.intersect=e=>I.rect(t,e),l}e.n(St,`renderUsecaseActor`);var Ct=[`M 0 -12`,`C 6.627 -12 12 -17.373 12 -24`,`C 12 -30.627 6.627 -36 0 -36`,`C -6.627 -36 -12 -30.627 -12 -24`,`C -12 -17.373 -6.627 -12 0 -12 Z`,`M 0 -12 V 8`,`M -17 -5 H 17`,`M 0 8 L -15 28`,`M 0 8 L 15 28`].join(` `);async function wt(e,t){return St(e,t,`normal`,(e,t)=>{yt(e,t,Ct,`usecase-actor-stick`)})}e.n(wt,`usecaseActor`);var Tt=[`M 0 -34`,`C 7.18 -34 13 -28.18 13 -21`,`C 13 -13.82 7.18 -8 0 -8`,`C -7.18 -8 -13 -13.82 -13 -21`,`C -13 -28.18 -7.18 -34 0 -34 Z`,`M -24 25`,`C -24 7 -14 -3 0 -3`,`C 14 -3 24 7 24 25`,`C 24 28 21 30 18 30`,`H -18`,`C -21 30 -24 28 -24 25 Z`].join(` `);async function Et(e,t){return St(e,t,`awesome`,(e,t)=>{yt(e,t,Tt,`usecase-actor-awesome-silhouette`)})}e.n(Et,`usecaseActorAwesome`);var Dt=[`M -22 -10`,`H 22`,`V 0`,`H 6`,`L 22 17`,`L 13 28`,`L 0 13`,`L -13 28`,`L -22 17`,`L -6 0`,`H -22`,`Z`].join(` `);async function Ot(e,t){return St(e,t,`hollow`,(e,t)=>{bt(e,t,0,-23,9,`usecase-actor-hollow-head`,!0),yt(e,t,Dt,`usecase-actor-hollow-body`,!0)})}e.n(Ot,`usecaseActorHollow`);var kt=52,At=42,jt=-2,Mt=e.n(async(e,t)=>{let n=-kt/2,r=jt-kt/2;if(t.look===`handDrawn`){let i=c.t.svg(e).rectangle(n,r,kt,kt,o.a(t,{}));e.insert(()=>i,`:first-child`).attr(`class`,`usecase-actor-icon-frame`)}else e.append(`rect`).attr(`class`,`usecase-actor-icon-frame`).attr(`x`,n).attr(`y`,r).attr(`width`,kt).attr(`height`,kt).attr(`rx`,4).attr(`ry`,4);let a=t.icon??``,s=await i.n(a.includes(`:`)?a:`fa:${a}`),l=await i.t(a,{height:At,width:At,fallbackPrefix:`fa`}),u=e.append(`g`).attr(`class`,`usecase-actor-icon-symbol${s?``:` usecase-actor-icon-fallback`}`).attr(`aria-hidden`,`true`).html(`<g>${l}</g>`),d=u.node()?.getBBox();d&&u.attr(`transform`,`translate(${-d.width/2-d.x},${jt-d.height/2-d.y})`)},`drawIconActor`);async function Nt(e,t){return St(e,t,`icon`,Mt)}e.n(Nt,`usecaseActorIcon`);var Pt=e.n((e,t,n)=>{let r=(t.x??0)-(t.left??0),i=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${-t.width/2-r},${n-t.height/2-i})`)},`positionLabel`);async function Ft(e,t){let r=t,{labelStyles:i,nodeStyles:a}=o.i(t);t.labelStyle=i;let{shapeSvg:l,bbox:u,halfPadding:d,label:f}=await _(e,r.stereotype?{...t,stereotype:void 0}:t,b(t,`usecase-business-shape`));f.attr(`class`,`label usecase-label`);let{theme:p,themeVariables:m}=n.b();s.s(l,t.colorIndex,p,m.borderColorArray);let h,g;if(r.stereotype){let e=await v(l,`\xAB${r.stereotype}\xBB`,{labelStyle:i,useHtmlLabels:t.useHtmlLabels,padding:0,centerLabel:!0,width:t.wrappingWidth});h=e.label.attr(`class`,`label usecase-stereotype`),g=e.bbox}let x=g?2:0,S=u.height+(g?.height??0)+x,C=Math.max(u.width,g?.width??0),w=d??10,T=C/2+w*2,E=S/2+w*2,D=Math.min(Math.max(w/5,1),w/2),O=C/2+D,k=T-D,A=O/T,j=k/T,M=E*Math.sqrt(Math.max(0,1-A*A)),N=-E*Math.sqrt(Math.max(0,1-j*j));h&&g&&Pt(h,g,-S/2+g.height/2),Pt(f,u,S/2-u.height/2);let P;if(t.look===`handDrawn`){let e=c.t.svg(l).ellipse(0,0,T*2,E*2,o.a(t,{}));P=l.insert(()=>e,`:first-child`).attr(`class`,`basic label-container usecase-business-ellipse`)}else P=l.insert(`ellipse`,`:first-child`).attr(`class`,`basic label-container usecase-business-ellipse`).attr(`style`,a).attr(`rx`,T).attr(`ry`,E).attr(`cx`,0).attr(`cy`,0);l.append(`path`).attr(`class`,`usecase-business-marker`).attr(`d`,`M ${O} ${M} L ${k} ${N}`).attr(`fill`,`none`).attr(`style`,a||null);let F=r.accessibleName??r.label;return F&&l.attr(`role`,`img`).attr(`aria-label`,F),y(t,P),t.calcIntersect=(e,t)=>I.ellipse(e,e.width/2,e.height/2,t),t.intersect=e=>I.ellipse(t,T,E,e),l}e.n(Ft,`usecaseBusiness`);var It=8,Lt=4,Rt=1,zt=e.n((e,t,n,r)=>{let i=(t.x??0)-(t.left??0),a=(t.y??0)-(t.top??0);e.attr(`transform`,`translate(${n-t.width/2-i},${r-t.height/2-a})`)},`positionLabel`),Bt=e.n(e=>{let t=Number.parseFloat(e??``);return Number.isFinite(t)&&t>=0?t:Rt},`numericStrokeWidth`);async function Vt(t,n){let r=n,{labelStyles:i,nodeStyles:a}=o.i(n),{stylesMap:s}=o.t(n);n.labelStyle=i;let{shapeSvg:l,bbox:u,label:d}=await _(t,n,b(n,`usecase-json-table`));l.attr(`role`,`img`),r.accessibleName&&l.attr(`aria-label`,r.accessibleName),d.attr(`class`,`label usecase-json-title`);let f=l.append(`g`).attr(`class`,`usecase-json-table-grid`),p=[];for(let e of r.jsonRows??[]){let t=await v(f,e.key,{labelStyle:i,useHtmlLabels:n.useHtmlLabels,padding:0,centerLabel:!0}),r=await v(f,e.value,{labelStyle:i,useHtmlLabels:n.useHtmlLabels,padding:0,centerLabel:!0});p.push({key:{label:t.label.attr(`class`,`label usecase-json-key`),bbox:t.bbox},value:{label:r.label.attr(`class`,`label usecase-json-value`),bbox:r.bbox}})}let m=Math.max(0,...p.map(({key:e})=>e.bbox.width))+It*2,h=Math.max(0,...p.map(({value:e})=>e.bbox.width))+It*2,g=u.width+It*2,x=Math.max(g,m+h),S=h+Math.max(0,x-m-h),C=u.height+Lt*2,w=p.map(({key:e,value:t})=>Math.max(e.bbox.height,t.bbox.height)+Lt*2),T=C+w.reduce((e,t)=>e+t,0),E=Bt(s.get(`stroke-width`)),D=x+E*2,O=T+E*2,k=-x/2,A=-T/2,j=n.look===`handDrawn`?c.t.svg(l):void 0,M=j?o.a(n,{}):void 0,N=e.n((e,t,n,r,i,o)=>{if(j&&M){let a=j.rectangle(n,r,i,o,M);return e.insert(()=>a,`:first-child`).attr(`class`,t)}return e.insert(`rect`,`:first-child`).attr(`class`,t).attr(`x`,n).attr(`y`,r).attr(`width`,i).attr(`height`,o).attr(`style`,a)},`insertCell`),P=N(l,`label-container usecase-json-border`,-D/2,-O/2,D,O);N(f,`usecase-json-cell usecase-json-title-cell`,k,A,x,C),f.node()?.append(d.node()),zt(d,u,0,A+C/2);let F=A+C;return p.forEach(({key:e,value:t},n)=>{let r=w[n],i=f.append(`g`).attr(`class`,`usecase-json-row`).attr(`data-row-index`,n).attr(`transform`,`translate(0,${F})`);N(i,`usecase-json-cell usecase-json-key-cell`,k,0,m,r),N(i,`usecase-json-cell usecase-json-value-cell`,k+m,0,S,r),i.node()?.append(e.label.node(),t.label.node()),zt(e.label,e.bbox,k+m/2,r/2),zt(t.label,t.bbox,k+m+S/2,r/2),F+=r}),y(n,P),n.intersect=e=>I.rect(n,e),l}e.n(Vt,`usecaseJsonTable`);async function Ht(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,s=t.look===`neo`?12:i,l=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*l,10),t.height=Math.max((t?.height??0)-s*2-2*l,10));let{shapeSvg:u,bbox:d,label:f}=await _(e,t,b(t)),p=(t?.width?t?.width:d.width)+a*2+2*l,m=(t?.height?t?.height:d.height)+s*2+2*l,h=p-2*l,g=m-2*l,v=-h/2,S=-g/2,{cssStyles:C}=t,T=c.t.svg(u),E=o.a(t,{}),D=[{x:v-l,y:S+l},{x:v-l,y:S+g+l},{x:v+h-l,y:S+g+l},{x:v+h-l,y:S+g},{x:v+h,y:S+g},{x:v+h,y:S+g-l},{x:v+h+l,y:S+g-l},{x:v+h+l,y:S-l},{x:v+l,y:S-l},{x:v+l,y:S},{x:v,y:S},{x:v,y:S+l}],O=[{x:v,y:S+l},{x:v+h-l,y:S+l},{x:v+h-l,y:S+g},{x:v+h,y:S+g},{x:v+h,y:S},{x:v,y:S}];t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let k=x(D),A=T.path(k,E),j=x(O),M=T.path(j,E);t.look!==`handDrawn`&&(A=w(A),M=w(M));let N=u.insert(`g`,`:first-child`);return N.insert(()=>A),N.insert(()=>M),N.attr(`class`,`basic label-container outer-path`),C&&t.look!==`handDrawn`&&N.selectAll(`path`).attr(`style`,C),r&&t.look!==`handDrawn`&&N.selectAll(`path`).attr(`style`,r),f.attr(`transform`,`translate(${-(d.width/2)-l-(d.x-(d.left??0))}, ${-(d.height/2)+l-(d.y-(d.top??0))})`),y(t,N),t.intersect=function(e){return I.polygon(t,D,e)},u}e.n(Ht,`multiRect`);async function Ut(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:s}=await _(e,t,b(t)),l=t.padding??0,u=t.look===`neo`?16:l,d=t.look===`neo`?12:l,f=!0;(t.width||t.height)&&(f=!1,t.width=(t?.width??0)-u*2,t.height=(t?.height??0)-d*3);let p=Math.max(a.width,t?.width??0)+u*2,m=Math.max(a.height,t?.height??0)+d*3,h=t.look===`neo`?m/4:m/8,g=m+(f?h/2:-h/2),v=-p/2,C=-g/2,{cssStyles:w}=t,T=S(v-10,C+g+10,v+p-10,C+g+10,h,.8),E=T?.[T.length-1],D=[{x:v-10,y:C+10},{x:v-10,y:C+g+10},...T,{x:v+p-10,y:E.y-10},{x:v+p,y:E.y-10},{x:v+p,y:E.y-20},{x:v+p+10,y:E.y-20},{x:v+p+10,y:C-10},{x:v+10,y:C-10},{x:v+10,y:C},{x:v,y:C},{x:v,y:C+10}],O=[{x:v,y:C+10},{x:v+p-10,y:C+10},{x:v+p-10,y:E.y-10},{x:v+p,y:E.y-10},{x:v+p,y:C},{x:v,y:C}],k=c.t.svg(i),A=o.a(t,{});t.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`);let j=x(D),M=k.path(j,A),N=x(O),P=k.path(N,A),F=i.insert(()=>M,`:first-child`);return F.insert(()=>P),F.attr(`class`,`basic label-container outer-path`),w&&t.look!==`handDrawn`&&F.selectAll(`path`).attr(`style`,w),r&&t.look!==`handDrawn`&&F.selectAll(`path`).attr(`style`,r),F.attr(`transform`,`translate(0,${-h/2})`),s.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-h-(a.y-(a.top??0))})`),y(t,F),t.intersect=function(e){return I.polygon(t,D,e)},i}e.n(Ut,`multiWaveEdgedRectangle`);async function Wt(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=o.i(t);t.labelStyle=i,t.useHtmlLabels||n.w(n.y())||(t.centerLabel=!0);let{shapeSvg:s,bbox:l,label:u}=await _(e,t,b(t)),d=Math.max(l.width+(t.padding??0)*2,t?.width??0),f=Math.max(l.height+(t.padding??0)*2,t?.height??0),p=-d/2,m=-f/2,{cssStyles:h}=t,g=c.t.svg(s),v=o.a(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let x=g.rectangle(p,m,d,f,v),S=s.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container outer-path`),u.attr(`class`,`label noteLabel`),h&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,h),a&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,a),u.attr(`transform`,`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),y(t,S),t.intersect=function(e){return I.rect(t,e)},s}e.n(Wt,`note`);var Gt=e.n((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function Kt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await _(e,t,b(t)),s=a.width+(t.padding??0)+(a.height+(t.padding??0)),l=.5,u=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],d,{cssStyles:f}=t;if(t.look===`handDrawn`){let e=c.t.svg(i),n=o.a(t,{}),r=Gt(0,0,s),a=e.path(r,n);d=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-s/2+l}, ${s/2})`),f&&d.attr(`style`,f)}else d=q(i,s,s,u),d.attr(`transform`,`translate(${-s/2+l}, ${s/2})`);return r&&d.attr(`style`,r),y(t,d),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];return I.polygon(e,r,t)},t.intersect=function(e){return this.calcIntersect(t,e)},i}e.n(Kt,`question`);async function qt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,s=t.look===`neo`?12:i??0,{shapeSvg:l,bbox:u,label:d}=await _(e,t,b(t)),f=u.width+(t.look===`neo`?a*2:a),p=Math.max(u.height+(t.look===`neo`?s*2:s),t.height??0),m=p/4,h=-Math.max(f,(t.width??0)-m)/2,g=-p/2,v=g/2,S=[{x:h+v,y:g},{x:h,y:0},{x:h+v,y:-g},{x:-h,y:-g},{x:-h,y:g}],{cssStyles:C}=t,w=c.t.svg(l),T=o.a(t,{});t.look!==`handDrawn`&&(T.roughness=0,T.fillStyle=`solid`);let E=x(S),D=w.path(E,T),O=l.insert(()=>D,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),C&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,C),r&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,r),O.attr(`transform`,`translate(${-v/2},0)`),d.attr(`transform`,`translate(${-v/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),y(t,O),t.intersect=function(e){return I.polygon(t,S,e)},l}e.n(qt,`rect_left_inv_arrow`);async function Jt(e,r){let{labelStyles:i,nodeStyles:a}=o.i(r);r.labelStyle=i;let s;s=r.cssClasses?`node `+r.cssClasses:`node default`;let l=e.insert(`g`).attr(`class`,s).attr(`id`,r.domId||r.id),u=l.insert(`g`),d=l.insert(`g`).attr(`class`,`label`).attr(`style`,a),f=r.description,p=r.label,m=await R(d,p,r.labelStyle,!0,!0),h={width:0,height:0};if(n.w(n.b())){let e=m.children[0],n=t.p(m);h=e.getBoundingClientRect(),n.attr(`width`,h.width),n.attr(`height`,h.height)}t.m.info(`Text 2`,f);let g=f||[],_=m.getBBox(),v=await R(d,Array.isArray(g)?g.join(`<br/>`):g,r.labelStyle,!0,!0),b=v.children[0],x=t.p(v);h=b.getBoundingClientRect(),x.attr(`width`,h.width),x.attr(`height`,h.height);let S=(r.padding||0)/2;t.p(v).attr(`transform`,`translate( `+(h.width>_.width?0:(_.width-h.width)/2)+`, `+(_.height+S+5)+`)`),t.p(m).attr(`transform`,`translate( `+(h.width<_.width?0:-(_.width-h.width)/2)+`, 0)`),h=d.node().getBBox(),d.attr(`transform`,`translate(`+-h.width/2+`, `+(-h.height/2-S+3)+`)`);let C=h.width+(r.padding||0),w=h.height+(r.padding||0),T=-h.width/2-S,E=-h.height/2-S,D,O;if(r.look===`handDrawn`){let e=c.t.svg(l),n=o.a(r,{}),i=e.path(L(T,E,C,w,r.rx||0),n),a=e.line(-h.width/2-S,-h.height/2-S+_.height+S,h.width/2+S,-h.height/2-S+_.height+S,n);O=l.insert(()=>(t.m.debug(`Rough node insert CXC`,i),a),`:first-child`),D=l.insert(()=>(t.m.debug(`Rough node insert CXC`,i),i),`:first-child`)}else D=u.insert(`rect`,`:first-child`),O=u.insert(`line`),D.attr(`class`,`outer title-state`).attr(`style`,a).attr(`x`,-h.width/2-S).attr(`y`,-h.height/2-S).attr(`width`,h.width+(r.padding||0)).attr(`height`,h.height+(r.padding||0)),O.attr(`class`,`divider`).attr(`x1`,-h.width/2-S).attr(`x2`,h.width/2+S).attr(`y1`,-h.height/2-S+_.height+S).attr(`y2`,-h.height/2-S+_.height+S);return y(r,D),r.intersect=function(e){return I.rect(r,e)},l}e.n(Jt,`rectWithTitle`);async function Yt(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return Ae(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}e.n(Yt,`roundedRect`);var Z=8;async function Xt(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t.look===`neo`?16:t.padding??0,s=t.look===`neo`?12:t.padding??0,{shapeSvg:l,bbox:u,label:d}=await _(e,t,b(t)),f=(t?.width??u.width)+a*2+(t.look===`neo`?Z:Z*2),p=(t?.height??u.height)+s*2,m=f-Z,h=p,g=Z-f/2,v=-p/2,{cssStyles:x}=t,S=c.t.svg(l),C=o.a(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=[{x:g,y:v},{x:g+m,y:v},{x:g+m,y:v+h},{x:g-Z,y:v+h},{x:g-Z,y:v},{x:g,y:v},{x:g,y:v+h}],T=S.polygon(w.map(e=>[e.x,e.y]),C),E=l.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container outer-path`).attr(`style`,r.d(x)),i&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,i),x&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,i),d.attr(`transform`,`translate(${Z/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),y(t,E),t.intersect=function(e){return I.rect(t,e)},l}e.n(Xt,`shadedProcess`);async function Zt(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,s=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-s*2,10));let{shapeSvg:l,bbox:u,label:d}=await _(e,t,b(t)),f=(t?.width?t?.width:u.width)+a*2,p=((t?.height?t?.height:u.height)+s*2)*1.5,m=f,h=p/1.5,g=-m/2,v=-h/2,{cssStyles:S}=t,C=c.t.svg(l),w=o.a(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=[{x:g,y:v},{x:g,y:v+h},{x:g+m,y:v+h},{x:g+m,y:v-h/2}],E=x(T),D=C.path(E,w),O=l.insert(()=>D,`:first-child`);return O.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&O.selectChildren(`path`).attr(`style`,r),O.attr(`transform`,`translate(0, ${h/4})`),d.attr(`transform`,`translate(${-m/2+(t.padding??0)-(u.x-(u.left??0))}, ${-h/4+(t.padding??0)-(u.y-(u.top??0))})`),y(t,O),t.intersect=function(e){return I.polygon(t,T,e)},l}e.n(Zt,`slopedRect`);async function Qt(e,t){let r=t.padding??0,i=t.look===`neo`?16:r*2,a=t.look===`neo`?12:r,o=await Ae(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??i,labelPaddingY:a});if(t.colorIndex!==void 0){let{theme:e,themeVariables:r}=n.b();s.s(o,t.colorIndex,e,r.borderColorArray)}return o}e.n(Qt,`squareRect`);var $t=50,en=e.n((e,t,n)=>{let r=e.height+n,i=r*Math.cos(Math.PI/(2*($t-1))),a=Math.sqrt(Math.max(0,i**2-e.height**2));return{w:Math.max(e.width+r/4+t,1.5*r+(r-i),e.width+t+r-a),h:r}},`stadiumDimensions`);async function tn(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?40:i,s=t.look===`neo`?24:i,{shapeSvg:l,bbox:u}=await _(e,t,b(t)),{w:d,h:f}=en(u,a,s),p=f/2,{cssStyles:m}=t,h=c.t.svg(l),g=o.a(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let v=[{x:-d/2+p,y:-f/2},{x:d/2-p,y:-f/2},...C(-d/2+p,0,p,$t,90,270),{x:d/2-p,y:f/2},...C(d/2-p,0,p,$t,270,450)],S=x(v),w=h.path(S,g),T=l.insert(()=>w,`:first-child`);return T.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,r),y(t,T),t.intersect=function(e){return I.polygon(t,v,e)},l}e.n(tn,`stadium`);async function nn(e,t){return Ae(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}e.n(nn,`state`);function rn(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=o.i(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:s,stateBorder:l,nodeBorder:u,nodeShadow:d}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let f=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),p=c.t.svg(f),m=o.a(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=p.circle(0,0,t.width,{...m,stroke:s,strokeWidth:2}),g=l??u,_=(t.width??0)*5/14,v=p.circle(0,0,_,{...m,fill:g,stroke:g,strokeWidth:2,fillStyle:`solid`}),b=f.insert(()=>h,`:first-child`);if(b.insert(()=>v),t.look!==`handDrawn`&&b.attr(`class`,`outer-path`),a&&b.selectAll(`path`).attr(`style`,a),i&&b.selectAll(`path`).attr(`style`,i),t.width<25&&d&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;b.attr(`style`,`filter:url(#${n})`)}return y(t,b),t.intersect=function(e){return I.circle(t,(t.width??0)/2,e)},f}e.n(rn,`stateEnd`);function an(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),s;if(t.look===`handDrawn`){let e=c.t.svg(a).circle(0,0,t.width,o.r(r));s=a.insert(()=>e),s.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else s=a.insert(`circle`,`:first-child`),s.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;s.attr(`style`,`filter:url(#${n})`)}return y(t,s),t.intersect=function(e){return I.circle(t,(t.width??7)/2,e)},a}e.n(an,`stateStart`);var on=8;async function sn(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t?.padding??8,s=t.look===`neo`?28:a,l=t.look===`neo`?12:a,{shapeSvg:u,bbox:d}=await _(e,t,b(t)),f=Math.max(d.width+2*on+s,t.width??0),p=Math.max(d.height+l,t.height??0),m=f-2*on,h=p,g=-f/2,v=-p/2,x=[{x:0,y:0},{x:m,y:0},{x:m,y:-h},{x:0,y:-h},{x:0,y:0},{x:-8,y:0},{x:m+8,y:0},{x:m+8,y:-h},{x:-8,y:-h},{x:-8,y:0}];if(t.look===`handDrawn`){let e=c.t.svg(u),n=o.a(t,{}),i=e.rectangle(g,v,m+16,h,n),a=e.line(g+on,v,g+on,v+h,n),s=e.line(g+on+m,v,g+on+m,v+h,n);u.insert(()=>a,`:first-child`),u.insert(()=>s,`:first-child`);let l=u.insert(()=>i,`:first-child`),{cssStyles:d}=t;l.attr(`class`,`basic label-container`).attr(`style`,r.d(d)),y(t,l)}else{let e=q(u,m,h,x);i&&e.attr(`style`,i),y(t,e)}return t.intersect=function(e){return I.polygon(t,x,e)},u}e.n(sn,`subroutine`);var cn=.2;async function ln(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,s=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-s*2,10),t.width=Math.max((t?.width??0)-a*2-cn*(t.height+s*2),10));let{shapeSvg:l,bbox:u}=await _(e,t,b(t)),d=(t?.height?t?.height:u.height)+s*2,f=cn*d,p=cn*d,m=(t?.width?t?.width:u.width)+a*2+f-f,h=d,g=-m/2,v=-h/2,{cssStyles:S}=t,C=c.t.svg(l),w=o.a(t,{}),T=[{x:g-f/2,y:v},{x:g+m+f/2,y:v},{x:g+m+f/2,y:v+h},{x:g-f/2,y:v+h}],E=[{x:g+m-f/2,y:v+h},{x:g+m+f/2,y:v+h},{x:g+m+f/2,y:v+h-p}];t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let D=x(T),O=C.path(D,w),k=x(E),A=C.path(k,{...w,fillStyle:`solid`}),j=l.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),S&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,S),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),y(t,j),t.intersect=function(e){return I.polygon(t,T,e)},l}e.n(ln,`taggedRect`);async function un(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:s}=await _(e,t,b(t)),l=Math.max(a.width+(t.padding??0)*2,t?.width??0),u=Math.max(a.height+(t.padding??0)*2,t?.height??0),d=u/8,f=.2*l,p=.2*u,m=u+d,{cssStyles:h}=t,g=c.t.svg(i),v=o.a(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let C=[{x:-l/2-l/2*.1,y:m/2},...S(-l/2-l/2*.1,m/2,l/2+l/2*.1,m/2,d,.8),{x:l/2+l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:-m/2}],w=-l/2+l/2*.1,T=-m/2-p*.4,E=[{x:w+l-f,y:(T+u)*1.3},{x:w+l,y:T+u-p},{x:w+l,y:(T+u)*.9},...S(w+l,(T+u)*1.25,w+l-f,(T+u)*1.3,-u*.02,.5)],D=x(C),O=g.path(D,v),k=x(E),A=g.path(k,{...v,fillStyle:`solid`}),j=i.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-d/2})`),s.attr(`transform`,`translate(${-l/2+(t.padding??0)-(a.x-(a.left??0))},${-u/2+(t.padding??0)-d/2-(a.y-(a.top??0))})`),y(t,j),t.intersect=function(e){return I.polygon(t,C,e)},i}e.n(un,`taggedWaveEdgedRectangle`);async function dn(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await _(e,t,b(t)),s=Math.max(a.width+(t.padding??0),t?.width||0),c=Math.max(a.height+(t.padding??0),t?.height||0),l=-s/2,u=-c/2,d=i.insert(`rect`,`:first-child`);return d.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,l).attr(`y`,u).attr(`width`,s).attr(`height`,c),y(t,d),t.intersect=function(e){return I.rect(t,e)},i}e.n(dn,`text`);var fn=e.n((e,t,n,r,i,a)=>`M${e},${t}
|
|
3
|
+
a${i},${a} 0,0,1 0,${-r}
|
|
4
|
+
l${n},0
|
|
5
|
+
a${i},${a} 0,0,1 0,${r}
|
|
6
|
+
M${n},${-r}
|
|
7
|
+
a${i},${a} 0,0,0 0,${r}
|
|
8
|
+
l${-n},0`,`createCylinderPathD`),pn=e.n((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),mn=e.n((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),hn=5,gn=10;async function _n(e,t){let{labelStyles:n,nodeStyles:i}=o.i(t);t.labelStyle=n;let a=t.padding??0,s=t.look===`neo`?12:a/2,l=t.height??0;if(t.height&&(t.height-=s,t.height<hn&&(t.height=hn)),t.width){let e=l/2/(2.5+l/50);t.width=t.width-s-e*3,t.width<gn&&(t.width=gn)}let{shapeSvg:u,bbox:d,label:f}=await _(e,t,b(t)),p=Math.max(t.height??0,d.height)+s,m=p/2,h=m/(2.5+p/50),g=Math.max(t.width??0,d.width)+h+s,{cssStyles:v}=t,x;if(t.look===`handDrawn`){let e=c.t.svg(u),n=pn(0,0,g,p,h,m),r=mn(0,0,g,p,h,m),i=e.path(n,o.a(t,{})),a=e.path(r,o.a(t,{fill:`none`}));x=u.insert(()=>a,`:first-child`),x=u.insert(()=>i,`:first-child`),x.attr(`class`,`basic label-container`),v&&x.attr(`style`,v)}else{let e=fn(0,0,g,p,h,m);x=u.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,r.d(v)).attr(`style`,i),x.attr(`class`,`basic label-container outer-path`),v&&x.selectAll(`path`).attr(`style`,v),i&&x.selectAll(`path`).attr(`style`,i)}return x.attr(`label-offset-x`,h),x.attr(`transform`,`translate(${-g/2}, ${p/2} )`),f.attr(`transform`,`translate(${-(d.width/2)-h-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),y(t,x),t.intersect=function(e){let n=I.rect(t,e),r=n.y-(t.y??0);if(m!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-h)){let i=h*h*(1-r*r/(m*m));i!=0&&(i=Math.sqrt(Math.abs(i))),i=h-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},u}e.n(_n,`tiltedCylinder`);async function vn(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=(t.look,i),s=t.look===`neo`?i*2:i,{shapeSvg:l,bbox:u}=await _(e,t,b(t)),d=Math.max(u.height+a,t.height??0),f=Math.max(u.width+s,(t.width??0)-d),p=[{x:-3*d/6,y:0},{x:f+3*d/6,y:0},{x:f,y:-d},{x:0,y:-d}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=c.t.svg(l),n=o.a(t,{}),r=x(p),i=e.path(r,n);m=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-f/2}, ${d/2})`),h&&m.attr(`style`,h)}else m=q(l,f,d,p);return r&&m.attr(`style`,r),t.width=f,t.height=d,y(t,m),t.intersect=function(e){return I.polygon(t,p,e)},l}e.n(vn,`trapezoid`);async function yn(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,s=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=(t.height??0)-s*2,t.height<5&&(t.height=5),t.width=(t.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:l,bbox:u}=await _(e,t,b(t)),d=(t?.width?t?.width:u.width)+a*2,f=(t?.height?t?.height:u.height)+s*2,{cssStyles:p}=t,m=c.t.svg(l),h=o.a(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-d/2*.8,y:-f/2},{x:d/2*.8,y:-f/2},{x:d/2,y:-f/2*.6},{x:d/2,y:f/2},{x:-d/2,y:f/2},{x:-d/2,y:-f/2*.6}],v=x(g),S=m.path(v,h),C=l.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),y(t,C),t.intersect=function(e){return I.polygon(t,g,e)},l}e.n(yn,`trapezoidalPentagon`);var bn=10,xn=10;async function Sn(e,r){let{labelStyles:i,nodeStyles:a}=o.i(r);r.labelStyle=i;let s=r.padding??0,l=r.look===`neo`?s*2:s;(r.width||r.height)&&(r.width=((r?.width??0)-l)/2,r.width<xn&&(r.width=xn),r.height=r?.height??0,r.height<bn&&(r.height=bn));let{shapeSvg:u,bbox:d,label:f}=await _(e,r,b(r)),p=n.g(n.b().flowchart?.htmlLabels),m=(r?.width?r?.width:d.width)+l,h=r?.height?r?.height:m+d.height,g=h,v=[{x:0,y:0},{x:g,y:0},{x:g/2,y:-h}],{cssStyles:S}=r,C=c.t.svg(u),w=o.a(r,{});r.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=x(v),E=C.path(T,w),D=u.insert(()=>E,`:first-child`).attr(`transform`,`translate(${-h/2}, ${h/2})`).attr(`class`,`outer-path`);return S&&r.look!==`handDrawn`&&D.selectChildren(`path`).attr(`style`,S),a&&r.look!==`handDrawn`&&D.selectChildren(`path`).attr(`style`,a),r.width=m,r.height=h,y(r,D),f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))}, ${h/2-(d.height+(r.padding??0)/(p?2:1)-(d.y-(d.top??0)))})`),r.intersect=function(e){return t.m.info(`Triangle intersect`,r,v,e),I.polygon(r,v,e)},u}e.n(Sn,`triangle`);async function Cn(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,s=t.look===`neo`?12:i,l=!0;(t.width||t.height)&&(l=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-s*2,t.height<10&&(t.height=10));let{shapeSvg:u,bbox:d,label:f}=await _(e,t,b(t)),p=(t?.width?t?.width:d.width)+(a??0)*2,m=(t?.height?t?.height:d.height)+(s??0)*2,h=t.look===`neo`?m/4:m/8,g=m+(l?h:-h),{cssStyles:v}=t,C=14-p,w=C>0?C/2:0,T=c.t.svg(u),E=o.a(t,{});t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let D=[{x:-p/2-w,y:g/2},...S(-p/2-w,g/2,p/2+w,g/2,h,.8),{x:p/2+w,y:-g/2},{x:-p/2-w,y:-g/2}],O=x(D),k=T.path(O,E),A=u.insert(()=>k,`:first-child`);return A.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&A.selectAll(`path`).attr(`style`,r),A.attr(`transform`,`translate(0,${-h/2})`),f.attr(`transform`,`translate(${-p/2+(t.padding??0)-(d.x-(d.left??0))},${-m/2+(t.padding??0)-h-(d.y-(d.top??0))})`),y(t,A),t.intersect=function(e){return I.polygon(t,D,e)},u}e.n(Cn,`waveEdgedRectangle`);async function wn(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,s=t.look===`neo`?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-s-20/9*e),t.width-=a*2}let{shapeSvg:l,bbox:u}=await _(e,t,b(t)),d=(t?.width?t?.width:u.width)+a*2,f=(t?.height?t?.height:u.height)+s,p=f/8,m=f+p*2,{cssStyles:h}=t,g=c.t.svg(l),v=o.a(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let C=[{x:-d/2,y:m/2},...S(-d/2,m/2,d/2,m/2,p,1),{x:d/2,y:-m/2},...S(d/2,-m/2,-d/2,-m/2,p,-1)],w=x(C),T=g.path(w,v),E=l.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container`),h&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),y(t,E),t.intersect=function(e){return I.polygon(t,C,e)},l}e.n(wn,`waveRectangle`);var Q=10;async function Tn(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-Q,10),t.height=Math.max((t?.height??0)-a*2-Q,10));let{shapeSvg:s,bbox:l,label:u}=await _(e,t,b(t)),d=(t?.width?t?.width:l.width)+i*2+Q,f=(t?.height?t?.height:l.height)+a*2+Q,p=d-Q,m=f-Q,h=-p/2,g=-m/2,{cssStyles:v}=t,x=c.t.svg(s),S=o.a(t,{}),C=[{x:h-Q,y:g-Q},{x:h-Q,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g-Q}],w=`M${h-Q},${g-Q} L${h+p},${g-Q} L${h+p},${g+m} L${h-Q},${g+m} L${h-Q},${g-Q}
|
|
9
|
+
M${h-Q},${g} L${h+p},${g}
|
|
10
|
+
M${h},${g-Q} L${h},${g+m}`;t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let T=x.path(w,S),E=s.insert(()=>T,`:first-child`);return E.attr(`transform`,`translate(${Q/2}, ${Q/2})`),E.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),u.attr(`transform`,`translate(${-(l.width/2)+Q/2-(l.x-(l.left??0))}, ${-(l.height/2)+Q/2-(l.y-(l.top??0))})`),y(t,E),t.intersect=function(e){return I.polygon(t,C,e)},s}e.n(Tn,`windowPane`);var En=new Set([`redux-color`,`redux-dark-color`]),Dn=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]);async function On(e,i){let a=i;a.alias&&(i.label=a.alias);let{theme:s,themeVariables:l}=n.y(),{rowEven:u,rowOdd:d,nodeBorder:f,borderColorArray:p}=l;if(i.look===`handDrawn`){let{themeVariables:t}=n.y(),{background:r}=t;await On(e,{...i,id:i.id+`-background`,domId:(i.domId||i.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${r}`]})}let m=n.y();i.useHtmlLabels=m.htmlLabels;let h=m.er?.diagramPadding??10,g=m.er?.entityPadding??6,{cssStyles:_}=i,{labelStyles:v,nodeStyles:x}=o.i(i);if(a.attributes.length===0&&i.label){let t={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5,classes:``};r.r(i.label,m)+t.labelPaddingX*2<m.er.minEntityWidth&&(i.width=m.er.minEntityWidth);let o=await Ae(e,i,t);if(s!=null&&En.has(s)){let e=a.colorIndex??0;o.attr(`data-color-id`,`color-${e%p.length}`)}if(!n.g(m.htmlLabels)){let e=o.select(`text`),t=e.node()?.getBBox();e.attr(`transform`,`translate(${-t.width/2}, 0)`)}return o}m.htmlLabels||(h*=1.25,g*=1.25);let S=b(i);S||=`node default`;let C=e.insert(`g`).attr(`class`,S).attr(`id`,i.domId||i.id),w=await kn(C,i.label??``,m,0,0,[`name`],v);w.height+=g;let T=0,E=[],D=[],O=0,k=0,A=0,j=0,M=!0,N=!0;for(let e of a.attributes){let t=await kn(C,e.type,m,0,T,[`attribute-type`],v);O=Math.max(O,t.width+h);let n=await kn(C,e.name,m,0,T,[`attribute-name`],v);k=Math.max(k,n.width+h);let r=await kn(C,e.keys.join(),m,0,T,[`attribute-keys`],v);A=Math.max(A,r.width+h);let i=await kn(C,e.comment,m,0,T,[`attribute-comment`],v);j=Math.max(j,i.width+h);let a=Math.max(t.height,n.height,r.height,i.height)+g;D.push({yOffset:T,rowHeight:a}),T+=a}let P=4;A<=h&&(M=!1,A=0,P--),j<=h&&(N=!1,j=0,P--);let F=C.node().getBBox();if(w.width+h*2-(O+k+A+j)>0){let e=w.width+h*2-(O+k+A+j);O+=e/P,k+=e/P,A>0&&(A+=e/P),j>0&&(j+=e/P)}let L=O+k+A+j,R=c.t.svg(C),z=o.a(i,{});i.look!==`handDrawn`&&(z.roughness=0,z.fillStyle=`solid`);let ee=0;D.length>0&&(ee=D.reduce((e,t)=>e+(t?.rowHeight??0),0));let B=Math.max(F.width+h*2,i?.width||0,L),V=Math.max((ee??0)+w.height,i?.height||0),H=-B/2,U=-V/2;if(C.selectAll(`g:not(:first-child)`).each((e,n,r)=>{let i=t.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]),i.attr(`class`).includes(`attribute-name`)?o+=O:i.attr(`class`).includes(`attribute-keys`)?o+=O+k:i.attr(`class`).includes(`attribute-comment`)&&(o+=O+k+A))}i.attr(`transform`,`translate(${H+h/2+o}, ${s+U+w.height+g/2})`)}),C.select(`.name`).attr(`transform`,`translate(`+-w.width/2+`, `+(U+g/2)+`)`),s!=null&&En.has(s)){let e=a.colorIndex??0;C.attr(`data-color-id`,`color-${e%p.length}`)}let te=R.rectangle(H,U,B,V,z),ne=C.insert(()=>te,`:first-child`).attr(`class`,`outer-path`).attr(`style`,_.join(``));E.push(0);for(let[e,t]of D.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=R.rectangle(H,w.height+U+t?.yOffset,B,t?.rowHeight,{...z,fill:n?u:d,stroke:f});C.insert(()=>r,`g.label`).attr(`style`,_.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let W=1e-4,G=An(H,w.height+U,B+H,w.height+U,W),K=R.polygon(G.map(e=>[e.x,e.y]),z);if(C.insert(()=>K).attr(`class`,`divider`),G=An(O+H,w.height+U,O+H,V+U,W),K=R.polygon(G.map(e=>[e.x,e.y]),z),C.insert(()=>K).attr(`class`,`divider`),M){let e=O+k+H;G=An(e,w.height+U,e,V+U,W),K=R.polygon(G.map(e=>[e.x,e.y]),z),C.insert(()=>K).attr(`class`,`divider`)}if(N){let e=O+k+A+H;G=An(e,w.height+U,e,V+U,W),K=R.polygon(G.map(e=>[e.x,e.y]),z),C.insert(()=>K).attr(`class`,`divider`)}for(let e of E){let t=w.height+U+e;G=An(H,t,B+H,t,W),K=R.polygon(G.map(e=>[e.x,e.y]),z),C.insert(()=>K).attr(`class`,`divider`)}if(y(i,ne),x&&i.look!==`handDrawn`){if(s!=null&&Dn.has(s))C.selectAll(`path`).attr(`style`,x);else{let e=x.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);C.selectAll(`path`).attr(`style`,e??``),C.selectAll(`.row-rect-even path`).attr(`style`,x)}}return i.intersect=function(e){return I.rect(i,e)},C}e.n(On,`erBox`);async function kn(e,i,o,s=0,c=0,l=[],u=``){let d=e.insert(`g`).attr(`class`,`label ${l.join(` `)}`).attr(`transform`,`translate(${s}, ${c})`).attr(`style`,u);i!==n.M(i)&&(i=n.M(i),i=i.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let f=d.node().appendChild(await a.n(d,i,{width:r.r(i,o)+100,style:u,useHtmlLabels:o.htmlLabels},o));if(i.includes(`<`)||i.includes(`>`)){let e=f.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let p=f.getBBox();if(n.g(o.htmlLabels)){let e=f.children[0];e.style.textAlign=`start`;let n=t.p(f);p=e.getBoundingClientRect(),n.attr(`width`,p.width),n.attr(`height`,p.height)}return p}e.n(kn,`addText`);function An(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}e.n(An,`lineToPolygon`);async function jn(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,b(t)).attr(`id`,t.domId||t.id),s=null,c=null,l=null,u=null,d=0,f=0,p=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await Mn(s,{text:`\xAB${e}\xBB`},0),d=s.node().getBBox().height}c=o.insert(`g`).attr(`class`,`label-group text`),await Mn(c,t,0,[`font-weight: bolder`]);let m=c.node().getBBox();f=m.height,l=o.insert(`g`).attr(`class`,`members-group text`);let h=0;for(let e of t.members){let t=await Mn(l,e,h,[e.parseClassifier()]);h+=t+a}p=l.node().getBBox().height,p<=0&&(p=i/2),u=o.insert(`g`).attr(`class`,`methods-group text`);let g=0;for(let e of t.methods){let t=await Mn(u,e,g,[e.parseClassifier()]);g+=t+a}let _=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return c.attr(`transform`,`translate(${-m.width/2}, ${d})`),_=o.node().getBBox(),l.attr(`transform`,`translate(0, ${d+f+i*2})`),_=o.node().getBBox(),u.attr(`transform`,`translate(0, ${d+f+(p?p+i*4:i*2)})`),_=o.node().getBBox(),{shapeSvg:o,bbox:_}}e.n(jn,`textHelper`);async function Mn(e,i,o,s=[]){let c=e.insert(`g`).attr(`class`,`label`).attr(`style`,s.join(`; `)),l=n.y(),u=`useHtmlLabels`in i?i.useHtmlLabels:n.g(l.htmlLabels)??!0,f=``;f=`text`in i?i.text:i.label,!u&&f.startsWith(`\\`)&&(f=f.substring(1)),n.k(f)&&(u=!0);let p=await a.n(c,n.B(r.a(f)),{width:r.r(f,l)+50,classes:`markdown-node-label`,useHtmlLabels:u},l),m,h=1;if(u){let e=p.children[0],n=t.p(p);h=e.innerHTML.split(`<br>`).length,e.innerHTML.includes(`</math>`)&&(h+=e.innerHTML.split(`<mrow>`).length-1),await d(e),m=e.getBoundingClientRect(),n.attr(`width`,m.width),n.attr(`height`,m.height)}else{s.includes(`font-weight: bolder`)&&t.p(p).selectAll(`tspan`).attr(`font-weight`,``),h=p.children.length;let e=p.children[0];(p.textContent===``||p.textContent.includes(`>`))&&(e.textContent=f[0]+f.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),f[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),m=p.getBBox()}return c.attr(`transform`,`translate(0,`+(-m.height/(2*h)+o)+`)`),m.height}e.n(Mn,`addText`);async function Nn(e,r){let i=n.b(),{theme:a,themeVariables:l}=i,{useGradient:u,borderColorArray:d}=l,f=i.class.padding??12,p=f,m=r.useHtmlLabels??n.g(i.htmlLabels)??!0,h=r;h.annotations=h.annotations??[],h.members=h.members??[],h.methods=h.methods??[];let{shapeSvg:g,bbox:_}=await jn(e,r,i,m,p);s.s(g,r.colorIndex,a,d);let{labelStyles:v,nodeStyles:b}=o.i(r);r.labelStyle=v,r.cssStyles=h.styles||``;let x=h.styles?.join(`;`)||b||``;r.cssStyles||=x.replaceAll(`!important`,``).split(`;`);let S=h.members.length===0&&h.methods.length===0&&!i.class?.hideEmptyMembersBox,C=c.t.svg(g),w=o.a(r,{});r.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=Math.max(r.width??0,_.width),E=Math.max(r.height??0,_.height),D=(r.height??0)>_.height;h.members.length===0&&h.methods.length===0?E+=p:h.members.length>0&&h.methods.length===0&&(E+=p*2);let O=-T/2,k=-E/2,A=S?f*2:h.members.length===0&&h.methods.length===0?-f:0;D&&(A=f*2);let j=C.rectangle(O-f,k-f-(S?f:h.members.length===0&&h.methods.length===0?-f/2:0),T+2*f,E+2*f+A,w),M=g.insert(()=>j,`:first-child`);M.attr(`class`,`basic label-container outer-path`);let N=M.node().getBBox(),P=g.select(`.annotation-group`).node().getBBox().height-(S?f/2:0)||0,F=g.select(`.label-group`).node().getBBox().height-(S?f/2:0)||0,L=g.select(`.members-group`).node().getBBox().height-(S?f/2:0)||0,R=(P+F+k+f-(k-f-(S?f:h.members.length===0&&h.methods.length===0?-f/2:0)))/2;if(g.selectAll(`.text`).each((e,n,r)=>{let a=t.p(r[n]),o=a.attr(`transform`),s=0;if(o){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);e&&(s=parseFloat(e[2]))}let c=s+k+f-(S?f:h.members.length===0&&h.methods.length===0?-f/2:0);if(a.attr(`class`).includes(`methods-group`)){let e=Math.max(L,p/2);c=D?Math.max(R,P+F+e+k+p*2+f)+p*2:P+F+e+k+p*4+f}h.members.length===0&&h.methods.length===0&&i.class?.hideEmptyMembersBox&&(c=h.annotations.length>0?s-p:s),m||(c-=4);let l=O;(a.attr(`class`).includes(`label-group`)||a.attr(`class`).includes(`annotation-group`))&&(l=-a.node()?.getBBox().width/2||0,g.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(l=0)})),a.attr(`transform`,`translate(${l}, ${c})`)}),h.members.length>0||h.methods.length>0||S){let e=P+F+k+f,t=C.line(N.x,e,N.x+N.width,e+.001,w);g.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!u?` neo-line`:``}`).attr(`style`,x)}if(S||h.members.length>0||h.methods.length>0){let e=P+F+L+k+p*2+f,t=C.line(N.x,D?Math.max(R,e):e,N.x+N.width,(D?Math.max(R,e):e)+.001,w);g.insert(()=>t).attr(`class`,`divider${r.look===`neo`&&!u?` neo-line`:``}`).attr(`style`,x)}if(h.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,x),M.select(`:nth-child(2)`).attr(`style`,x),g.selectAll(`.divider`).select(`path`).attr(`style`,x),r.labelStyle?g.selectAll(`span`).attr(`style`,r.labelStyle):g.selectAll(`span`).attr(`style`,x),!m){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(x);if(t){let e=t[0].replace(`color`,`fill`);g.selectAll(`tspan`).attr(`style`,e)}else if(v){let t=e.exec(v);if(t){let e=t[0].replace(`color`,`fill`);g.selectAll(`tspan`).attr(`style`,e)}}}return y(r,M),r.intersect=function(e){return I.rect(r,e)},g}e.n(Nn,`classBox`);async function Pn(e,r){let{labelStyles:i,nodeStyles:a}=o.i(r);r.labelStyle=i;let s=r,l=r,u=`verifyMethod`in r,d=b(r),f=n.b(),{themeVariables:p}=f,{borderColorArray:m,requirementEdgeLabelBackground:h}=p,g=f.layout===`elk`?`start`:`center`,_=e.insert(`g`).attr(`class`,d).attr(`id`,r.domId??r.id),v;v=u?await $(_,`<<${s.type}>>`,0,r.labelStyle):await $(_,`<<Element>>`,0,r.labelStyle);let x=v,S=await $(_,s.name,x,r.labelStyle+`; font-weight: bold;`);if(x+=S+20,u){let e=await $(_,`${s.requirementId?`ID: ${s.requirementId}`:``}`,x,r.labelStyle,g);x+=e;let t=await $(_,`${s.text?`Text: ${s.text}`:``}`,x,r.labelStyle,g);x+=t;let n=await $(_,`${s.risk?`Risk: ${s.risk}`:``}`,x,r.labelStyle,g);x+=n,await $(_,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:``}`,x,r.labelStyle,g)}else{let e=await $(_,`${l.type?`Type: ${l.type}`:``}`,x,r.labelStyle,g);x+=e,await $(_,`${l.docRef?`Doc Ref: ${l.docRef}`:``}`,x,r.labelStyle,g)}let C=(_.node()?.getBBox().width??200)+20,w=(_.node()?.getBBox().height??200)+20,T=-C/2,E=-w/2,D=c.t.svg(_),O=o.a(r,{});r.look!==`handDrawn`&&(O.roughness=0,O.fillStyle=`solid`);let k=D.rectangle(T,E,C,w,O),A=_.insert(()=>k,`:first-child`);if(A.attr(`class`,`basic label-container outer-path`).attr(`style`,a),m?.length){let e=r.colorIndex??0;_.attr(`data-color-id`,`color-${e%m.length}`)}if(_.selectAll(`.label`).each((e,n,r)=>{let i=t.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]))}let c=s-w/2,l=T+10;(n===0||n===1)&&(l=o),i.attr(`transform`,`translate(${l}, ${c+20})`)}),x>v+S+20){let e=E+v+S+20,t;if(r.look===`neo`){let n=.001,r=[[T,e],[T+C,e],[T+C,e+n],[T,e+n]];t=D.polygon(r,O)}else t=D.line(T,e,T+C,e,O);_.insert(()=>t).attr(`class`,`divider`)}return y(r,A),r.intersect=function(e){return I.rect(r,e)},a&&r.look!==`handDrawn`&&(h||m?.length)&&_.selectAll(`path`).attr(`style`,a),_}e.n(Pn,`requirementBox`);async function $(e,i,o,s=``,c=`center`){if(i===``)return 0;let l=e.insert(`g`).attr(`class`,`label`).attr(`style`,s),u=n.b(),d=u.htmlLabels??!0,f=await a.n(l,n.B(r.a(i)),{width:r.r(i,u)+50,classes:`markdown-node-label`,useHtmlLabels:d,style:s},u),p;if(d){let e=f.children[0],n=t.p(f);c===`start`&&t.p(e).style(`text-align`,`left`),p=e.getBoundingClientRect(),n.attr(`width`,p.width),n.attr(`height`,p.height)}else{let e=f.children[0];for(let t of e.children)s&&t.setAttribute(`style`,s);if(c===`start`){e.setAttribute(`text-anchor`,`start`);for(let t of e.children)t.setAttribute(`text-anchor`,`start`)}p=f.getBBox(),p.height+=6}return l.attr(`transform`,`translate(${-p.width/2},${-p.height/2+o})`),p.height}e.n($,`addText`);var Fn=e.n(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`);async function In(e,t,{config:n}){let{labelStyles:r,nodeStyles:i}=o.i(t);t.labelStyle=r||``;let a=t.width;t.width=(t.width??200)-10;let{shapeSvg:s,bbox:l,label:u}=await _(e,t,b(t)),d=t.padding||10,f=``,p;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(f=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),p=s.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,f).attr(`target`,`_blank`));let m={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},h,g;p?{label:h,bbox:g}=await v(p,`ticket`in t&&t.ticket||``,m):{label:h,bbox:g}=await v(s,`ticket`in t&&t.ticket||``,m);let{label:x,bbox:S}=await v(s,`assigned`in t&&t.assigned||``,m);t.width=a;let C=t?.width||0,w=Math.max(g.height,S.height)/2,T=Math.max(l.height+20,t?.height||0)+w,E=-C/2,D=-T/2;u.attr(`transform`,`translate(`+(d-C/2)+`, `+(-w-l.height/2)+`)`),h.attr(`transform`,`translate(`+(d-C/2)+`, `+(-w+l.height/2)+`)`),x.attr(`transform`,`translate(`+(d+C/2-S.width-20)+`, `+(-w+l.height/2)+`)`);let O,{rx:k,ry:A}=t,{cssStyles:j}=t;if(t.look===`handDrawn`){let e=c.t.svg(s),n=o.a(t,{}),r=k||A?e.path(L(E,D,C,T,k||0),n):e.rectangle(E,D,C,T,n);O=s.insert(()=>r,`:first-child`),O.attr(`class`,`basic label-container`).attr(`style`,j||null)}else{O=s.insert(`rect`,`:first-child`),O.attr(`class`,`basic label-container __APA__`).attr(`style`,i).attr(`rx`,k??5).attr(`ry`,A??5).attr(`x`,E).attr(`y`,D).attr(`width`,C).attr(`height`,T);let e=`priority`in t&&t.priority;if(e){let t=s.append(`line`),n=E+2,r=D+Math.floor((k??0)/2),i=D+T-Math.floor((k??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,Fn(e))}}return y(t,O),t.height=T,t.intersect=function(e){return I.rect(t,e)},s}e.n(In,`kanbanItem`);async function Ln(e,n){let{labelStyles:i,nodeStyles:a}=o.i(n);n.labelStyle=i;let{shapeSvg:s,bbox:l,halfPadding:u,label:d}=await _(e,n,b(n)),f=l.width+10*u,p=l.height+8*u,m=.15*f,{cssStyles:h}=n,g=l.width+20,v=l.height+20,x=Math.max(f,g),S=Math.max(p,v);d.attr(`transform`,`translate(${-l.width/2}, ${-l.height/2})`);let C,w=`M0 0
|
|
11
|
+
a${m},${m} 1 0,0 ${x*.25},${-1*S*.1}
|
|
12
|
+
a${m},${m} 1 0,0 ${x*.25},0
|
|
13
|
+
a${m},${m} 1 0,0 ${x*.25},0
|
|
14
|
+
a${m},${m} 1 0,0 ${x*.25},${S*.1}
|
|
15
|
+
|
|
16
|
+
a${m},${m} 1 0,0 ${x*.15},${S*.33}
|
|
17
|
+
a${m*.8},${m*.8} 1 0,0 0,${S*.34}
|
|
18
|
+
a${m},${m} 1 0,0 ${-1*x*.15},${S*.33}
|
|
19
|
+
|
|
20
|
+
a${m},${m} 1 0,0 ${-1*x*.25},${S*.15}
|
|
21
|
+
a${m},${m} 1 0,0 ${-1*x*.25},0
|
|
22
|
+
a${m},${m} 1 0,0 ${-1*x*.25},0
|
|
23
|
+
a${m},${m} 1 0,0 ${-1*x*.25},${-1*S*.15}
|
|
24
|
+
|
|
25
|
+
a${m},${m} 1 0,0 ${-1*x*.1},${-1*S*.33}
|
|
26
|
+
a${m*.8},${m*.8} 1 0,0 0,${-1*S*.34}
|
|
27
|
+
a${m},${m} 1 0,0 ${x*.1},${-1*S*.33}
|
|
28
|
+
H0 V0 Z`;if(n.look===`handDrawn`){let e=c.t.svg(s),t=o.a(n,{}),i=e.path(w,t);C=s.insert(()=>i,`:first-child`),C.attr(`class`,`basic label-container`).attr(`style`,r.d(h))}else C=s.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`d`,w);return C.attr(`transform`,`translate(${-x/2}, ${-S/2})`),y(n,C),n.calcIntersect=function(e,t){return I.rect(e,t)},n.intersect=function(e){return t.m.info(`Bang intersect`,n,e),I.rect(n,e)},s}e.n(Ln,`bang`);async function Rn(e,n){let{labelStyles:i,nodeStyles:a}=o.i(n);n.labelStyle=i;let{shapeSvg:s,bbox:l,halfPadding:u,label:d}=await _(e,n,b(n)),f=l.width+2*u,p=l.height+2*u,m=.15*f,h=.25*f,g=.35*f,v=.2*f,{cssStyles:x}=n,S,C=`M0 0
|
|
29
|
+
a${m},${m} 0 0,1 ${f*.25},${-1*f*.1}
|
|
30
|
+
a${g},${g} 1 0,1 ${f*.4},${-1*f*.1}
|
|
31
|
+
a${h},${h} 1 0,1 ${f*.35},${f*.2}
|
|
32
|
+
|
|
33
|
+
a${m},${m} 1 0,1 ${f*.15},${p*.35}
|
|
34
|
+
a${v},${v} 1 0,1 ${-1*f*.15},${p*.65}
|
|
35
|
+
|
|
36
|
+
a${h},${m} 1 0,1 ${-1*f*.25},${f*.15}
|
|
37
|
+
a${g},${g} 1 0,1 ${-1*f*.5},0
|
|
38
|
+
a${m},${m} 1 0,1 ${-1*f*.25},${-1*f*.15}
|
|
39
|
+
|
|
40
|
+
a${m},${m} 1 0,1 ${-1*f*.1},${-1*p*.35}
|
|
41
|
+
a${v},${v} 1 0,1 ${f*.1},${-1*p*.65}
|
|
42
|
+
H0 V0 Z`;if(n.look===`handDrawn`){let e=c.t.svg(s),t=o.a(n,{}),i=e.path(C,t);S=s.insert(()=>i,`:first-child`),S.attr(`class`,`basic label-container`).attr(`style`,r.d(x))}else S=s.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,a).attr(`d`,C);return d.attr(`transform`,`translate(${-l.width/2}, ${-l.height/2})`),S.attr(`transform`,`translate(${-f/2}, ${-p/2})`),y(n,S),n.calcIntersect=function(e,t){return I.rect(e,t)},n.intersect=function(e){return t.m.info(`Cloud intersect`,n,e),I.rect(n,e)},s}e.n(Rn,`cloud`);async function zn(e,t){let{labelStyles:n,nodeStyles:r}=o.i(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:s,label:c}=await _(e,t,b(t)),l=a.width+8*s,u=a.height+2*s,d=t.look===`neo`?`
|
|
43
|
+
M${-l/2} ${u/2-5}
|
|
44
|
+
v${-u+10}
|
|
45
|
+
q0,-5 5,-5
|
|
46
|
+
h${l-10}
|
|
47
|
+
q5,0 5,5
|
|
48
|
+
v${u-5}
|
|
49
|
+
H${-l/2}
|
|
50
|
+
Z
|
|
51
|
+
`:`
|
|
52
|
+
M${-l/2} ${u/2-5}
|
|
53
|
+
v${-u+10}
|
|
54
|
+
q0,-5 5,-5
|
|
55
|
+
h${l-10}
|
|
56
|
+
q5,0 5,5
|
|
57
|
+
v${u-10}
|
|
58
|
+
q0,5 -5,5
|
|
59
|
+
h${-(l-10)}
|
|
60
|
+
q-5,0 -5,-5
|
|
61
|
+
Z
|
|
62
|
+
`;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,d);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-l/2).attr(`y1`,u/2).attr(`x2`,l/2).attr(`y2`,u/2),c.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>c.node()),y(t,f),t.calcIntersect=function(e,t){return I.rect(e,t)},t.intersect=function(e){return I.rect(t,e)},i}e.n(zn,`defaultMindmapNode`);async function Bn(e,t){return me(e,t,{padding:t.padding??0})}e.n(Bn,`mindmapCircle`);var Vn=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:Qt},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:Yt},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:tn},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:sn},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:ke},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:je},{semanticName:`Folder`,name:`Folder`,shortName:`folder`,description:`Folder or directory`,aliases:[`directory`],handler:ze},{semanticName:`Bucket`,name:`Bucket`,shortName:`bucket`,description:`Object storage bucket`,handler:H},{semanticName:`Console`,name:`Console (terminal window)`,shortName:`console`,description:`Terminal or console window`,handler:ge},{semanticName:`Browser`,name:`Browser`,shortName:`browser`,description:`Browser window`,handler:ue},{semanticName:`Person`,name:`Person`,shortName:`person`,description:`Person (circular head above a rounded body)`,handler:Ce},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:me},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Ln},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:Rn},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:Kt},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:Ue},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:$e},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:Qe},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:vn},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:Xe},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:Ne},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:dn},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:fe},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:Xt},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:an},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:rn},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:Be},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:We},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:ye},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:be},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:xe},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:et},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:Cn},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:Ve},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:_n},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:ot},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:Se},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:Me},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:Sn},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:Tn},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:Fe},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:yn},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:Re},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:Zt},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:Ut},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:Ht},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:V},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:ve},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:un},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:ln},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:wn},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:qt},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:st}],Hn=e.n(()=>{let e=[...Object.entries({state:nn,choice:pe,note:Wt,composite:he,rectWithTitle:Jt,labelRect:Ze,block_arrow:le,collapsedGroup:K,iconSquare:Je,iconCircle:Ke,icon:Ge,iconRounded:qe,imageSquare:Ye,anchor:z,kanbanItem:In,mindmapCircle:Bn,defaultMindmapNode:zn,classBox:Nn,erBox:On,requirementBox:Pn,usecaseActor:wt,usecaseActorHollow:Ot,usecaseActorAwesome:Et,usecaseActorIcon:Nt,usecaseBusiness:Ft,usecaseEllipse:Pe,usecaseJsonTable:Vt}),...Vn.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function Un(e){return e in Hn}e.n(Un,`isValidShape`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Un}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return Hn}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return R}});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-Dkp7vqs8.js";
|
|
3
|
-
import { b as r, g as i, w as a } from "./chunk-
|
|
4
|
-
import { n as o } from "./chunk-
|
|
5
|
-
import { a as s, i as c, t as l } from "./chunk-
|
|
3
|
+
import { b as r, g as i, w as a } from "./chunk-DSNLSHJZ-Bicto10E.js";
|
|
4
|
+
import { n as o } from "./chunk-AQDTSKZB-CUCC855j.js";
|
|
5
|
+
import { a as s, i as c, t as l } from "./chunk-UHW7PFBP-NbzzxkEP.js";
|
|
6
6
|
import { s as u } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
|
|
7
7
|
import { t as d } from "./rough.esm-D2JJJ0Ot.js";
|
|
8
|
-
import { i as f, n as p, t as m } from "./chunk-
|
|
9
|
-
import { n as h } from "./chunk-
|
|
10
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
8
|
+
import { i as f, n as p, t as m } from "./chunk-HAGFOTED-BjDmRfgG.js";
|
|
9
|
+
import { n as h } from "./chunk-ZAUX2LTX-COHXRsvU.js";
|
|
10
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-HNE4Q36P.mjs
|
|
11
11
|
var g = /* @__PURE__ */ e(async (e, a) => {
|
|
12
|
-
let l = r(), { theme: p, themeVariables: m, handDrawnSeed: h } = l, { clusterBkg: g, clusterBorder: _, borderColorArray: v } = m, y = _, { labelStyles: b, nodeStyles: x, borderStyles: S, backgroundStyles: C } = c(a), w = e.insert("g").attr("class", "cluster swimlane " + (a.cssClasses || "")).attr("id", a.id).attr("data-id", a.id).attr("data-et", "cluster").attr("data-look", a.look);
|
|
12
|
+
let l = r(), { theme: p, themeVariables: m, handDrawnSeed: h } = l, { clusterBkg: g, clusterBorder: _, borderColorArray: v } = m, y = _, { labelStyles: b, nodeStyles: x, borderStyles: S, backgroundStyles: C } = c(a), w = e.insert("g").attr("class", "cluster swimlane " + (a.cssClasses || "")).attr("id", a.domId ?? a.id).attr("data-id", a.id).attr("data-et", "cluster").attr("data-look", a.look);
|
|
13
13
|
u(w, a.colorIndex, p, v);
|
|
14
14
|
let T = i(l.flowchart.htmlLabels), E = a.direction === "LR", D = w.insert("g").attr("class", "cluster-label swimlane-label"), O = await o(D, a.label, {
|
|
15
15
|
style: a.labelStyle,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-DSNLSHJZ-DZO9xahH.cjs"),r=require("./chunk-AQDTSKZB-DElrkKED.cjs"),i=require("./chunk-UHW7PFBP-SZ8KvGM0.cjs"),a=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs"),o=require("./rough.esm-ChRLLRha.cjs"),s=require("./chunk-HAGFOTED-Dykk1LyE.cjs"),c=require("./chunk-ZAUX2LTX-BwjEPfG0.cjs");var l=e.n(async(e,c)=>{let l=n.b(),{theme:u,themeVariables:d,handDrawnSeed:f}=l,{clusterBkg:p,clusterBorder:m,borderColorArray:h}=d,g=m,{labelStyles:_,nodeStyles:v,borderStyles:y,backgroundStyles:b}=i.i(c),x=e.insert(`g`).attr(`class`,`cluster swimlane `+(c.cssClasses||``)).attr(`id`,c.domId??c.id).attr(`data-id`,c.id).attr(`data-et`,`cluster`).attr(`data-look`,c.look);a.s(x,c.colorIndex,u,h);let S=n.g(l.flowchart.htmlLabels),C=c.direction===`LR`,w=x.insert(`g`).attr(`class`,`cluster-label swimlane-label`),T=await r.n(w,c.label,{style:c.labelStyle,useHtmlLabels:S,isNode:!0,width:c.width}),E=T.getBBox();if(S){let e=T.children[0],n=t.p(T);E=e.getBoundingClientRect(),n.attr(`width`,E.width),n.attr(`height`,E.height)}let D=c.padding??0,O=c.width<=E.width+D?E.width+D:c.width;c.diff=c.width<=E.width+D?(O-c.width)/2-D:-D;let k=c.height,A=c.y-k/2,j=c.y+k/2,M=c.x-O/2,N=c.swimlaneContentTop===void 0?A+k/3:c.swimlaneContentTop,P=C?4:0,F=E.height+2*P,I,L;if(C){let e=Math.max(F,E.height+2*P),t=M+e,n=Math.max(0,O-e);if(c.look===`handDrawn`){let r=o.t.svg(x),a=i.a(c,{roughness:.7,fill:p,stroke:g,seed:f}),s=i.a(c,{roughness:.7,fill:`none`,stroke:g,seed:f}),l=r.rectangle(M,A,e,k,a);I=x.insert(()=>l,`:first-child`).attr(`class`,`swimlane-title`);let u=r.rectangle(t,A,n,k,s);L=x.insert(()=>u,`:first-child`).attr(`class`,`swimlane-body`),I.select(`path:nth-child(2)`).attr(`style`,y.join(`;`)),I.select(`path`).attr(`style`,b.join(`;`).replace(`fill`,`stroke`))}else I=x.insert(`rect`,`:first-child`),L=x.insert(`rect`,`:first-child`),I.attr(`class`,`swimlane-title`).attr(`style`,v).attr(`x`,M).attr(`y`,A).attr(`width`,e).attr(`height`,k).attr(`fill`,p).attr(`stroke`,g),L.attr(`class`,`swimlane-body`).attr(`style`,v).attr(`x`,t).attr(`y`,A).attr(`width`,n).attr(`height`,k).attr(`fill`,`none`).attr(`stroke`,g);let r=M+e/2,a=c.y;w.attr(`transform`,`translate(${r}, ${a}) rotate(-90) translate(${-E.width/2}, ${-E.height/2})`)}else{let e=Math.max(0,N-A),t=Math.min(F,e),n=A+t,r=Math.max(0,j-n),a=c.x-O/2;if(c.look===`handDrawn`){let e=o.t.svg(x),s=i.a(c,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:f}),l=i.a(c,{roughness:.7,fill:`none`,stroke:g,seed:f}),u=e.rectangle(a,A,O,t,s);I=x.insert(()=>u,`:first-child`).attr(`class`,`swimlane-title`);let d=e.rectangle(a,n,O,r,l);L=x.insert(()=>d,`:first-child`).attr(`class`,`swimlane-body`),I.select(`path:nth-child(2)`).attr(`style`,y.join(`;`)),I.select(`path`).attr(`style`,b.join(`;`).replace(`fill`,`stroke`))}else I=x.insert(`rect`,`:first-child`),L=x.insert(`rect`,`:first-child`),I.attr(`class`,`swimlane-title`).attr(`style`,v).attr(`x`,a).attr(`y`,A).attr(`width`,O).attr(`height`,t).attr(`fill`,p).attr(`stroke`,g),L.attr(`class`,`swimlane-body`).attr(`style`,v).attr(`x`,a).attr(`y`,n).attr(`width`,O).attr(`height`,r).attr(`fill`,`none`).attr(`stroke`,g);let s=c.x-E.width/2,l=A+(t-E.height)/2;w.attr(`transform`,`translate(${s}, ${l})`)}if(t.m.trace(`Swimlane data `,c,JSON.stringify(c)),_){let e=w.select(`span`);e&&e.attr(`style`,_)}return c.offsetX=0,c.width=O,c.height=k,c.offsetY=E.height-D/2,c.intersect=function(e){return s.i(c,e)},{cluster:x,labelBBox:E}},`swimlane`),u=e.n(async(e,l)=>{t.m.info(`Creating subgraph rect for `,l.id,l);let u=n.b(),{theme:d,themeVariables:f,handDrawnSeed:p}=u,{clusterBkg:m,clusterBorder:h,borderColorArray:g}=f,{labelStyles:_,nodeStyles:v,borderStyles:y,backgroundStyles:b}=i.i(l),x=e.insert(`g`).attr(`class`,`cluster `+l.cssClasses).attr(`id`,l.domId).attr(`data-look`,l.look);a.s(x,l.colorIndex,d,g);let S=n.w(u),C=x.insert(`g`).attr(`class`,`cluster-label `),w;w=l.labelType===`markdown`?await r.n(C,l.label,{style:l.labelStyle,useHtmlLabels:S,isNode:!0,width:l.width}):await s.t(C,l.label,l.labelStyle||``,!1,!0);let T=w.getBBox();if(n.w(u)){let e=w.children[0],n=t.p(w);T=e.getBoundingClientRect(),n.attr(`width`,T.width),n.attr(`height`,T.height)}let E=l.width<=T.width+l.padding?T.width+l.padding:l.width;l.diff=l.width<=T.width+l.padding?(E-l.width)/2-l.padding:-l.padding;let D=l.height,O=l.x-E/2,k=l.y-D/2;t.m.trace(`Data `,l,JSON.stringify(l));let A;if(l.look===`handDrawn`){let e=o.t.svg(x),n=i.a(l,{roughness:.7,fill:m,stroke:h,fillWeight:3,seed:p}),r=e.path(s.n(O,k,E,D,0),n);A=x.insert(()=>(t.m.debug(`Rough node insert CXC`,r),r),`:first-child`),A.select(`path:nth-child(2)`).attr(`style`,y.join(`;`)),A.select(`path`).attr(`style`,b.join(`;`).replace(`fill`,`stroke`))}else A=x.insert(`rect`,`:first-child`),A.attr(`style`,v).attr(`rx`,l.rx).attr(`ry`,l.ry).attr(`x`,O).attr(`y`,k).attr(`width`,E).attr(`height`,D);let{subGraphTitleTopMargin:j}=c.n(u);if(C.attr(`transform`,`translate(${l.x-T.width/2}, ${l.y-l.height/2+j})`),_){let e=C.select(`span`);e&&e.attr(`style`,_)}let M=A.node().getBBox();return l.offsetX=0,l.width=M.width,l.height=M.height,l.offsetY=T.height-l.padding/2,l.intersect=function(e){return s.i(l,e)},{cluster:x,labelBBox:T}},`rect`),d=e.n((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return s.i(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),f=e.n(async(e,r)=>{let i=n.b(),{theme:c,themeVariables:l,handDrawnSeed:u}=i,{altBackground:d,borderColorArray:f,compositeBackground:p,compositeTitleBackground:m,nodeBorder:h}=l,g=e.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.domId).attr(`data-id`,r.id).attr(`data-look`,r.look);a.s(g,r.colorIndex,c,f);let _=g.insert(`g`,`:first-child`),v=g.insert(`g`).attr(`class`,`cluster-label`),y=g.append(`rect`),b=await s.t(v,r.label,r.labelStyle,void 0,!0),x=b.getBBox();if(n.w(i)){let e=b.children[0],n=t.p(b);x=e.getBoundingClientRect(),n.attr(`width`,x.width),n.attr(`height`,x.height)}let S=0*r.padding,C=S/2,w=(r.width<=x.width+r.padding?x.width+r.padding:r.width)+S;r.diff=r.width<=x.width+r.padding?(w-r.width)/2-r.padding:-r.padding;let T=r.height+S,E=r.height+S-x.height-6,D=r.x-w/2,O=r.y-T/2;r.width=w;let k=r.y-r.height/2-C+x.height+2,A;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=o.t.svg(g),n=r.rx||r.ry?t.path(s.n(D,O,w,T,10),{roughness:.7,fill:m,fillStyle:`solid`,stroke:h,seed:u}):t.rectangle(D,O,w,T,{seed:u});A=g.insert(()=>n,`:first-child`);let i=t.rectangle(D,k,w,E,{fill:e?d:p,fillStyle:e?`hachure`:`solid`,stroke:h,seed:u});A=g.insert(()=>n,`:first-child`),y=g.insert(()=>i),A.attr(`class`,`outer`),y.attr(`class`,`inner`)}else A=_.insert(`rect`,`:first-child`),A.attr(`class`,`outer`).attr(`x`,D).attr(`y`,O).attr(`width`,w).attr(`height`,T).attr(`data-look`,r.look),y.attr(`class`,`inner`).attr(`x`,D).attr(`y`,k).attr(`width`,w).attr(`height`,E);return v.attr(`transform`,`translate(${r.x-x.width/2}, ${O+1-(n.w(i)?0:3)})`),r.height=A.node().getBBox().height,r.offsetX=0,r.offsetY=x.height-r.padding/2,r.labelBBox=x,r.intersect=function(e){return s.i(r,e)},{cluster:g,labelBBox:x}},`roundedWithTitle`),p=e.n(async(e,a)=>{t.m.info(`Creating subgraph rect for `,a.id,a);let l=n.b(),{themeVariables:u,handDrawnSeed:d}=l,{clusterBkg:f,clusterBorder:p}=u,{labelStyles:m,nodeStyles:h,borderStyles:g,backgroundStyles:_}=i.i(a),v=e.insert(`g`).attr(`class`,`cluster `+a.cssClasses).attr(`id`,a.domId).attr(`data-look`,a.look),y=n.w(l),b=v.insert(`g`).attr(`class`,`cluster-label `),x=await r.n(b,a.label,{style:a.labelStyle,useHtmlLabels:y,isNode:!0,width:a.width}),S=x.getBBox();if(n.w(l)){let e=x.children[0],n=t.p(x);S=e.getBoundingClientRect(),n.attr(`width`,S.width),n.attr(`height`,S.height)}let C=a.width<=S.width+a.padding?S.width+a.padding:a.width;a.diff=a.width<=S.width+a.padding?(C-a.width)/2-a.padding:-a.padding;let w=a.height,T=a.x-C/2,E=a.y-w/2;t.m.trace(`Data `,a,JSON.stringify(a));let D;if(a.look===`handDrawn`){let e=o.t.svg(v),n=i.a(a,{roughness:.7,fill:f,stroke:p,fillWeight:4,seed:d}),r=e.path(s.n(T,E,C,w,a.rx),n);D=v.insert(()=>(t.m.debug(`Rough node insert CXC`,r),r),`:first-child`),D.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),D.select(`path`).attr(`style`,_.join(`;`).replace(`fill`,`stroke`))}else D=v.insert(`rect`,`:first-child`),D.attr(`style`,h).attr(`rx`,a.rx).attr(`ry`,a.ry).attr(`x`,T).attr(`y`,E).attr(`width`,C).attr(`height`,w);let{subGraphTitleTopMargin:O}=c.n(l);if(b.attr(`transform`,`translate(${a.x-S.width/2}, ${a.y-a.height/2+O})`),m){let e=b.select(`span`);e&&e.attr(`style`,m)}let k=D.node().getBBox();return a.offsetX=0,a.width=k.width,a.height=k.height,a.offsetY=S.height-a.padding/2,a.intersect=function(e){return s.i(a,e)},{cluster:v,labelBBox:S}},`kanbanSection`),m=e.n((e,t)=>{let{theme:r,themeVariables:i,handDrawnSeed:c}=n.b(),{altBackground:l,nodeBorder:u,borderColorArray:d}=i,f=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look);a.s(f,t.colorIndex,r,d);let p=f.insert(`g`,`:first-child`),m=0*t.padding,h=t.width+m;t.diff=-t.padding;let g=t.height+m,_=t.x-h/2,v=t.y-g/2;t.width=h;let y;if(t.look===`handDrawn`){let e=o.t.svg(f).rectangle(_,v,h,g,{fill:l??`#efefef`,fillStyle:`solid`,roughness:.5,strokeLineDash:[5],stroke:u,seed:c});y=f.insert(()=>e,`:first-child`).attr(`class`,`divider`)}else{y=p.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),y.attr(`class`,e).attr(`x`,_).attr(`y`,v).attr(`width`,h).attr(`height`,g).attr(`data-look`,t.look)}return t.height=y.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return s.i(t,e)},{cluster:f,labelBBox:{}}},`divider`),h=e.n(async(e,l,u)=>{t.m.info(`Creating ${u.cssClass} for `,l.id,l);let d=n.b(),{theme:f,themeVariables:p,handDrawnSeed:m}=d,{borderColorArray:h}=p,{labelStyles:g,borderStyles:_}=i.i(l),v=e.insert(`g`).attr(`class`,`cluster `+u.cssClass+` `+l.cssClasses).attr(`id`,l.domId??l.id).attr(`data-look`,l.look);a.s(v,l.colorIndex,f,h);let y=n.w(d),b=v.insert(`g`).attr(`class`,`cluster-label`),x={width:0,height:0},S=l.label?.trim();if(S){let e;if(e=l.labelType===`markdown`?await r.n(b,l.label,{style:l.labelStyle,useHtmlLabels:y,isNode:!0,width:l.width}):await s.t(b,l.label,l.labelStyle||``,!1,!0),x=e.getBBox(),y){let n=e.children[0],r=t.p(e);x=n.getBoundingClientRect(),r.attr(`width`,x.width),r.attr(`height`,x.height)}}let C=l.width<=x.width+l.padding?x.width+l.padding:l.width;l.diff=l.width<=x.width+l.padding?(C-l.width)/2-l.padding:-l.padding;let w=l.height,T=l.x-C/2,E=l.y-w/2,D;if(l.look===`handDrawn`){let e=o.t.svg(v),t=i.a(l,{roughness:u.roughness,fill:u.fill,stroke:u.stroke,strokeWidth:u.strokeWidth,seed:m,...u.fill===`none`?{fillWeight:0}:{fillStyle:`solid`},...u.strokeDash?{strokeLineDash:u.strokeDash}:{}}),n=e.path(s.n(T,E,C,w,u.rx),t);D=v.insert(()=>n,`:first-child`),D.select(`path:nth-child(2)`).attr(`style`,_.join(`;`))}else D=v.insert(`rect`,`:first-child`),D.attr(`rx`,u.rx).attr(`ry`,u.rx).attr(`x`,T).attr(`y`,E).attr(`width`,C).attr(`height`,w).attr(`fill`,u.fill).attr(`stroke`,u.stroke).attr(`stroke-width`,u.strokeWidth+`px`),u.strokeDash&&D.attr(`stroke-dasharray`,u.strokeDash.join(`, `));if(S){let{subGraphTitleTopMargin:e}=c.n(d);if(b.attr(`transform`,`translate(${l.x-x.width/2}, ${l.y-l.height/2+e})`),g){let e=b.select(`span`);e&&e.attr(`style`,g)}}let O=D.node().getBBox();return l.offsetX=0,l.width=O.width,l.height=O.height,l.offsetY=x.height-l.padding/2,l.intersect=function(e){return s.i(l,e)},{cluster:v,labelBBox:x}},`createContainerGroup`),g=e.n(async(e,t)=>{let{themeVariables:r}=n.b();return h(e,t,{cssClass:`flow-cluster`,rx:10,fill:`none`,stroke:r.flowContainerStroke||r.secondaryBorderColor,strokeWidth:.75,roughness:.7})},`flowGroup`),_=e.n((e,t)=>{let n=e.boundaryType||`rect`,r=n===`package`?20:e.padding,i=n===`package`?t.height+10:0,a=Math.max(e.width,t.width+r),o=n===`package`?Math.max(e.height,i+e.padding*2):e.height,s=e.x-a/2,c=e.y-o/2;return{boundaryType:n,width:a,height:o,x:s,y:c,bodyY:c+i,bodyHeight:o-i,tabHeight:i,tabWidth:n===`package`?Math.min(a,Math.max(80,t.width+20)):0}},`getUsecaseSystemBoundaryGeometry`),v={rect:u,squareRect:u,roundedWithTitle:f,noteGroup:d,divider:m,kanbanSection:p,flowGroup:g,usecaseSystemBoundary:e.n(async(e,l)=>{t.m.info(`Creating usecase system boundary for `,l.id,l);let u=n.b(),{theme:d,themeVariables:f,handDrawnSeed:p}=u,{clusterBkg:m,clusterBorder:h,borderColorArray:g}=f,{labelStyles:v,nodeStyles:y}=i.i(l),{stylesMap:b}=i.t(l),x=l.boundaryType||`rect`,S=e.insert(`g`).attr(`class`,`cluster usecase-system-boundary usecase-system-boundary-${x} ${l.cssClasses}`).attr(`id`,typeof l.domId==`string`?l.domId:l.id).attr(`data-boundary-type`,x).attr(`data-look`,l.look);a.s(S,l.colorIndex,d,g);let C=n.w(u),w=S.insert(`g`).attr(`class`,`cluster-label system-boundary-title`),T=await r.n(w,l.label,{style:v,useHtmlLabels:C,isNode:!0}),E=T.getBBox();if(C){let e=T.children[0],n=t.p(T);E=e.getBoundingClientRect(),n.attr(`width`,E.width),n.attr(`height`,E.height)}let{width:D,height:O,x:k,y:A,bodyY:j,bodyHeight:M,tabHeight:N,tabWidth:P}=_(l,E);l.diff=l.width<=E.width+l.padding?(D-l.width)/2-l.padding:-l.padding;let F=i.a(l,{fill:b.get(`fill`)||m,stroke:b.get(`stroke`)||h,strokeWidth:b.get(`stroke-width`)?.replace(`px`,``)||1,seed:p});if(l.look===`handDrawn`){let e=o.t.svg(S),t=e.rectangle(k,j,D,M,F);if(S.insert(()=>t,`:first-child`).attr(`class`,`boundary-body label-container`),x===`package`){let t=e.rectangle(k,A,P,N,F);S.insert(()=>t,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`)}}else S.insert(`rect`,`:first-child`).attr(`class`,`boundary-body label-container`).attr(`style`,y).attr(`x`,k).attr(`y`,j).attr(`width`,D).attr(`height`,M),x===`package`&&S.insert(`rect`,`:first-child`).attr(`class`,`boundary-tab system-boundary-package-tab label-container`).attr(`style`,y).attr(`x`,k).attr(`y`,A).attr(`width`,P).attr(`height`,N);let{subGraphTitleTopMargin:I}=c.n(u);return x===`package`?w.attr(`transform`,`translate(${k+(P-E.width)/2}, ${A+(N-E.height)/2})`):w.attr(`transform`,`translate(${l.x-E.width/2}, ${A+I})`),v&&(w.attr(`style`,v),w.select(`span`).attr(`style`,v)),l.offsetX=0,l.width=D,l.height=O,l.offsetY=E.height-l.padding/2,l.labelBBox=E,l.intersect=function(e){return s.i(l,e)},{cluster:S,labelBBox:E}},`usecaseSystemBoundary`),swimlane:l},y=new Set([`noteGroup`,`divider`]),b=e.n(e=>!y.has(e??`rect`),`clusterPaintsTitle`),x=new Map,S=e.n(async(e,t)=>{let n=await v[t.shape||`rect`](e,t);return x.set(t.id,n),n},`insertCluster`),C=e.n(()=>{x=new Map},`clear`);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return C}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-DSNLSHJZ-DZO9xahH.cjs"),r=require("./channel-BRczbI_M.cjs"),i=require("./chunk-7S6XSTFO-DJ37SdG5.cjs"),a=require("./chunk-5VM5RSS4-CwDmQ9T_.cjs"),o=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs"),s=require("./chunk-HAGFOTED-Dykk1LyE.cjs"),c=require("./chunk-55XCU76K-d9D4PS_7.cjs"),l=require("./chunk-XXDRQBXY-yMT3rT5Y.cjs"),u=require("./chunk-VQ5W62QI-CsW6i5Ev.cjs"),d=require("./mermaid.core-2PafqU96.cjs");var f=`flowchart-`,p=class{constructor(){this.vertexCounter=0,this.config=n.b(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=n.U,this.setAccDescription=n.H,this.setDiagramTitle=n.q,this.getAccTitle=n.v,this.getAccDescription=n._,this.getDiagramTitle=n.C,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{e.n(this,`FlowDB`)}sanitizeText(e){return n.s.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,i,a,o,c,l={},u){if(!e||e.trim().length===0)return;let p;if(u!==void 0){let e;e=u.includes(`
|
|
2
2
|
`)?u+`
|
|
3
3
|
`:`{
|
|
4
4
|
`+u+`
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-Dkp7vqs8.js";
|
|
3
|
-
import { C as r, G as i, H as a, U as o, _ as s, a as c, at as l, b as u, d, et as f, q as p, s as m, v as h } from "./chunk-
|
|
4
|
-
import { t as g } from "./channel-
|
|
5
|
-
import { _, c as v } from "./chunk-
|
|
3
|
+
import { C as r, G as i, H as a, U as o, _ as s, a as c, at as l, b as u, d, et as f, q as p, s as m, v as h } from "./chunk-DSNLSHJZ-Bicto10E.js";
|
|
4
|
+
import { t as g } from "./channel-B1lf-ehw.js";
|
|
5
|
+
import { _, c as v } from "./chunk-7S6XSTFO-DV8etStf.js";
|
|
6
6
|
import { t as ee } from "./chunk-5VM5RSS4-BMfgdMFU.js";
|
|
7
7
|
import { i as te, n as ne, o as y, r as b } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
|
|
8
|
-
import { a as x } from "./chunk-
|
|
9
|
-
import { t as S } from "./chunk-
|
|
8
|
+
import { a as x } from "./chunk-HAGFOTED-BjDmRfgG.js";
|
|
9
|
+
import { t as S } from "./chunk-55XCU76K-CADZXRVb.js";
|
|
10
10
|
import { t as C } from "./chunk-XXDRQBXY-IzhWXllg.js";
|
|
11
|
-
import { t as w } from "./chunk-
|
|
12
|
-
import { a as T, i as E, n as D, r as O } from "./mermaid.core-
|
|
13
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
11
|
+
import { t as w } from "./chunk-VQ5W62QI-D3c9tcDC.js";
|
|
12
|
+
import { a as T, i as E, n as D, r as O } from "./mermaid.core-BxQmR6RW.js";
|
|
13
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-NQOKRVIF.mjs
|
|
14
14
|
var re = "flowchart-", ie = class {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.vertexCounter = 0, this.config = u(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = o, this.setAccDescription = a, this.setDiagramTitle = p, this.getAccTitle = h, this.getAccDescription = s, this.getDiagramTitle = r, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = { firstGraph: this.firstGraph.bind(this) }, this.clear(), this.setGen("gen-2");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
-
import { b as t } from "./chunk-
|
|
3
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
2
|
+
import { b as t } from "./chunk-DSNLSHJZ-Bicto10E.js";
|
|
3
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-UHW7PFBP.mjs
|
|
4
4
|
var n = /* @__PURE__ */ e((e) => {
|
|
5
5
|
let { handDrawnSeed: n } = t();
|
|
6
6
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-DSNLSHJZ-DZO9xahH.cjs");var n=e.n(e=>{let{handDrawnSeed:n}=t.b();return{fill:e,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e.n(e=>Array.isArray(e)?e:e?e.split(`;`).map(e=>e.trim()).filter(Boolean):[],`normalizeStyleList`),i=e.n(e=>{let t=a([...e.cssCompiledStyles||[],...e.cssStyles||[],...r(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),a=e.n(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),o=e.n(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),s=e.n(e=>{let{stylesArray:t}=i(e),n=[],r=[],a=[],s=[];return t.forEach(e=>{let t=e[0];o(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&a.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:a,backgroundStyles:s}},`styles2String`),c=e.n((e,n)=>{let{themeVariables:r,handDrawnSeed:a}=t.b(),{nodeBorder:o,mainBkg:s}=r,{stylesMap:c}=i(e);return Object.assign({roughness:.7,fill:c.get(`fill`)||s,fillStyle:`hachure`,fillWeight:1.5,hachureGap:1.5,stroke:c.get(`stroke`)||o,seed:a,strokeWidth:c.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:l(c.get(`stroke-dasharray`))},n)},`userNodeOverrides`),l=e.n(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-DSNLSHJZ-DZO9xahH.cjs");var r=e.n((e,r,o,s)=>{e.attr(`class`,o);let{width:c,height:l,x:u,y:d}=i(e,r);n.c(e,l,c,s);let f=a(u,d,c,l,r);e.attr(`viewBox`,f),t.m.debug(`viewBox configured: ${f} with padding: ${r}`)},`setupViewPortForSVG`),i=e.n((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),a=e.n((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t } from "./src-Dkp7vqs8.js";
|
|
3
|
-
import { c as n } from "./chunk-
|
|
4
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
3
|
+
import { c as n } from "./chunk-DSNLSHJZ-Bicto10E.js";
|
|
4
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-VQ5W62QI.mjs
|
|
5
5
|
var r = /* @__PURE__ */ e((e, r, o, s) => {
|
|
6
6
|
e.attr("class", o);
|
|
7
7
|
let { width: c, height: l, x: u, y: d } = i(e, r);
|