@smarter.sh/ui-chat 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/embed/mermaid/{abnfDiagram-VCTEODGH-1SbERmPs.js → abnfDiagram-VCTEODGH-CGtrctwA.js} +8 -8
- package/dist/embed/mermaid/{arc-VicTtbbz.js → arc-DlzgcAgU.js} +3 -3
- package/dist/embed/mermaid/architecture-7GRP2DOG-D66ObL4C.js +3 -0
- package/dist/embed/mermaid/{architectureDiagram-5GKGNRK7-CQABdiy9.js → architectureDiagram-5GKGNRK7-CgMNWdVn.js} +50 -40
- package/dist/embed/mermaid/{blockDiagram-I7D4REHJ-CtjOz0Jt.js → blockDiagram-I7D4REHJ-Q2YOF2Nl.js} +44 -33
- package/dist/embed/mermaid/{c4Diagram-7LVT6UL2-_qBudB6C.js → c4Diagram-7LVT6UL2-DI7_cX7n.js} +10 -10
- package/dist/embed/mermaid/channel-CxRe6Ync.js +5 -0
- package/dist/embed/mermaid/{chunk-2E4U76K2-CBll2dEU.js → chunk-2E4U76K2-DPc-jkQd.js} +83 -81
- package/dist/embed/mermaid/{chunk-2Q5K7J3B-kzxEEeTu.js → chunk-2Q5K7J3B-C1pX24ft.js} +2 -2
- package/dist/embed/mermaid/{chunk-4HAMMTFA-Dhz0SVnN.js → chunk-4HAMMTFA-DY_JmJA2.js} +9 -9
- package/dist/embed/mermaid/{chunk-5VM5RSS4-Cr17nBXp.js → chunk-5VM5RSS4-BFskf6Qk.js} +2 -2
- package/dist/embed/mermaid/{chunk-75Z2AOVW-BsWtLgfj.js → chunk-75Z2AOVW-BugNeXEB.js} +57 -57
- package/dist/embed/mermaid/{chunk-CLGD4ZFX-Bkjwlxy9.js → chunk-CLGD4ZFX-BOKCMNQY.js} +4 -4
- package/dist/embed/mermaid/{chunk-DU6HZSFF-1zIarP1Q.js → chunk-DU6HZSFF-C09wkxIu.js} +580 -583
- package/dist/embed/mermaid/{chunk-F27PBJKO-CiOL12VY.js → chunk-F27PBJKO-C69L38at.js} +5 -5
- package/dist/embed/mermaid/{chunk-FOHPRMQF-DS9zEyR5.js → chunk-FOHPRMQF-CLLDWcGe.js} +50 -39
- package/dist/embed/mermaid/{chunk-GMAD6QVW-Dc0gE_3Q.js → chunk-GMAD6QVW-NxqJJwNT.js} +76 -17
- package/dist/embed/mermaid/{chunk-GVQU2GXP-CWFtOgtb.js → chunk-GVQU2GXP-D4WoQcNg.js} +5 -5
- package/dist/embed/mermaid/{chunk-IMKFNOWR-CLyTlLwx.js → chunk-IMKFNOWR-DE94S7XC.js} +9 -9
- package/dist/embed/mermaid/{chunk-JWPE2WC7-Ccb0QaC8.js → chunk-JWPE2WC7-BGVSGRTC.js} +2 -2
- package/dist/embed/mermaid/{chunk-L3NEJ4N5-DnkSrVO8.js → chunk-L3NEJ4N5-CqdtyK-9.js} +9 -9
- package/dist/embed/mermaid/{chunk-LNGE3PJU-ByFTjlja.js → chunk-LNGE3PJU-DqC_0r8u.js} +20 -16
- package/dist/embed/mermaid/{chunk-OSK3NFVY-B57tZZIG.js → chunk-OSK3NFVY-B1KjtHOy.js} +11 -11
- package/dist/embed/mermaid/{chunk-P2QGCYS3-BUVAOFF-.js → chunk-P2QGCYS3-CP_jp-eQ.js} +3 -3
- package/dist/embed/mermaid/{chunk-POPQ4Y6H-BsUdeJ_J.js → chunk-POPQ4Y6H-CSwFrYKY.js} +4 -4
- package/dist/embed/mermaid/{chunk-PWAF6VOD-Cb-w19aO.js → chunk-PWAF6VOD-qhXJD1mO.js} +14 -14
- package/dist/embed/mermaid/{chunk-SHT3W25Y-znBBpcIu.js → chunk-SHT3W25Y-a5ik03bR.js} +13 -13
- package/dist/embed/mermaid/{chunk-SVP7TREG-DrHUM-6R.js → chunk-SVP7TREG-67QXjHHx.js} +5 -5
- package/dist/embed/mermaid/{chunk-TICWLB2K-xlGqZZYJ.js → chunk-TICWLB2K-DHg0COuy.js} +10 -10
- package/dist/embed/mermaid/{chunk-TLUHSLCS-COwDpXBa.js → chunk-TLUHSLCS-BwEhuf5d.js} +12 -12
- package/dist/embed/mermaid/{chunk-XXDRQBXY-pOp8MAr9.js → chunk-XXDRQBXY-BJjzBm4h.js} +3 -3
- package/dist/embed/mermaid/{chunk-Y2CYZVJY-i11wjrBe.js → chunk-Y2CYZVJY-BAad7w_K.js} +1 -1
- package/dist/embed/mermaid/classDiagram-ZZMXUADV-BlIPVBOk.js +30 -0
- package/dist/embed/mermaid/classDiagram-v2-VYDZK3BY-BavoJkSK.js +30 -0
- package/dist/embed/mermaid/{cose-bilkent-JH36ORCC-DFvJxZ7v.js → cose-bilkent-JH36ORCC-Cx3-7Rca.js} +58 -50
- package/dist/embed/mermaid/cynefin-OW5HDTMX-Cfa1-YuM.js +3 -0
- package/dist/embed/mermaid/{cynefinDiagram-5FMLGOSQ-CCm5IQBE.js → cynefinDiagram-5FMLGOSQ-CsV1I6A_.js} +8 -8
- package/dist/embed/mermaid/{cytoscape.esm-BstmGtAB.js → cytoscape.esm-CLcfvFJ6.js} +484 -386
- package/dist/embed/mermaid/{dagre-BwzzJJA_.js → dagre-COnXXJRS.js} +137 -135
- package/dist/embed/mermaid/{dagre-GXQ25YYZ-B3d3iNF-.js → dagre-GXQ25YYZ-BzZWpDkI.js} +18 -16
- package/dist/embed/mermaid/{defaultLocale-N-0uLSyg.js → defaultLocale-CQ4Nl88y.js} +12 -12
- package/dist/embed/mermaid/{diagram-S7CK7UJ4-BeA5UJrt.js → diagram-S7CK7UJ4-CShsH_ul.js} +19 -11
- package/dist/embed/mermaid/{diagram-UQ7AKVKN-DK0uHb-2.js → diagram-UQ7AKVKN-Bb0mFpt2.js} +8 -8
- package/dist/embed/mermaid/{diagram-VSXAHHWV-D5JXip1B.js → diagram-VSXAHHWV-DUq5PKM1.js} +8 -8
- package/dist/embed/mermaid/{diagram-VX7I27RA-B1VysvG9.js → diagram-VX7I27RA-Co2uyrw2.js} +33 -33
- package/dist/embed/mermaid/{diagram-Z3DM3KII-ZGUJaFq-.js → diagram-Z3DM3KII-CTdPPkZs.js} +8 -8
- package/dist/embed/mermaid/{dist-DRRwZ4Yi.js → dist-CjR2JtV-.js} +3 -3
- package/dist/embed/mermaid/{ebnfDiagram-PWID7BFC-BOahZhWx.js → ebnfDiagram-PWID7BFC-CAQNT7Vt.js} +8 -8
- package/dist/embed/mermaid/{erDiagram-RLTQ6QDP-7cGpGRQo.js → erDiagram-RLTQ6QDP-DluYOFtk.js} +16 -16
- package/dist/embed/mermaid/eventmodeling-NTZA5JFV-DFSPvGS4.js +3 -0
- package/dist/embed/mermaid/flowDiagram-HODETNUW-BKXSV8xL.js +17 -0
- package/dist/embed/mermaid/{ganttDiagram-EL5Y4UJY-s6Kx4KlU.js → ganttDiagram-EL5Y4UJY-D2BBzcpY.js} +36 -36
- package/dist/embed/mermaid/gitGraph-4MIJSDKK-BTHPY7Tg.js +3 -0
- package/dist/embed/mermaid/{gitGraphDiagram-WWUBYQGX-Blwdy0b7.js → gitGraphDiagram-WWUBYQGX-BzZ3sE3s.js} +8 -8
- package/dist/embed/mermaid/{graphlib-XW-Jr8pF.js → graphlib-D8JS7ydf.js} +135 -135
- package/dist/embed/mermaid/info-A6RAGUB7-4Mm0OyB8.js +3 -0
- package/dist/embed/mermaid/{infoDiagram-27XIBGKW-CstzbQPb.js → infoDiagram-27XIBGKW-DcbKIVvy.js} +6 -6
- package/dist/embed/mermaid/{init-CsQUQz36.js → init-CFNf60QB.js} +1 -1
- package/dist/embed/mermaid/{ishikawaDiagram-5VMMS53U-C6y_w0kd.js → ishikawaDiagram-5VMMS53U-B6q3rvke.js} +10 -8
- package/dist/embed/mermaid/{journeyDiagram-3NMN7TZE-BHVux_z1.js → journeyDiagram-3NMN7TZE-CDDY2Xma.js} +7 -7
- package/dist/embed/mermaid/{kanban-definition-UXKFOSKX-Cgj-7IHi.js → kanban-definition-UXKFOSKX-w7v22sq3.js} +14 -14
- package/dist/embed/mermaid/{katex-DmPOayaq.js → katex-BqirFtOb.js} +21 -12
- package/dist/embed/mermaid/{line-brkWVSn0.js → line-DoUHpRzu.js} +4 -4
- package/dist/embed/mermaid/{linear-CiZWLcTr.js → linear-CLS335Sc.js} +23 -23
- package/dist/embed/mermaid/{mermaid-parser.core-BjLg_By9.js → mermaid-parser.core-BoI6HFCg.js} +41 -35
- package/dist/embed/mermaid/mermaid.js +61 -61
- package/dist/embed/mermaid/{mindmap-definition-YA3MSWOX-DRc-FzI_.js → mindmap-definition-YA3MSWOX-1bs_tKMD.js} +18 -18
- package/dist/embed/mermaid/{ordinal-BubEveRk.js → ordinal-Da0rnhxr.js} +3 -3
- package/dist/embed/mermaid/packet-AYTQ26CC-BAodtDR3.js +3 -0
- package/dist/embed/mermaid/{path-CnWkkRiY.js → path-hN9ktzbr.js} +3 -3
- package/dist/embed/mermaid/{pegDiagram-XKGWAZYB-Cw-aYwaF.js → pegDiagram-XKGWAZYB-DsrQs7Qo.js} +8 -8
- package/dist/embed/mermaid/pie-WAS4IAKB-Yw-9-2EN.js +3 -0
- package/dist/embed/mermaid/{pieDiagram-E7YTZNPT-DoguGyzq.js → pieDiagram-E7YTZNPT-BvkRs6Xl.js} +15 -15
- package/dist/embed/mermaid/{quadrantDiagram-AXDQQJYC-Cu4dMFZL.js → quadrantDiagram-AXDQQJYC-DDSDkbcq.js} +5 -5
- package/dist/embed/mermaid/radar-RG4KPBEZ-BtjjaEPe.js +3 -0
- package/dist/embed/mermaid/railroad-74A4TZTK-Du7TjeaO.js +3 -0
- package/dist/embed/mermaid/railroad-abnf-HS5TGJTU-D3flpty6.js +3 -0
- package/dist/embed/mermaid/railroad-ebnf-LZEXJU2U-DWpeYHWC.js +3 -0
- package/dist/embed/mermaid/railroad-peg-WCYAUIDC-DKiyz9fh.js +3 -0
- package/dist/embed/mermaid/{railroadDiagram-O6MQD6OU-DDX-9GRQ.js → railroadDiagram-O6MQD6OU-T__Cw3ez.js} +8 -8
- package/dist/embed/mermaid/{requirementDiagram-BXWQKSXE-z8PPo06M.js → requirementDiagram-BXWQKSXE-ADir8pgL.js} +15 -15
- package/dist/embed/mermaid/{rough.esm-DXYGHN3m.js → rough.esm-XhrPyaQA.js} +1 -1
- package/dist/embed/mermaid/{sankeyDiagram-P5KCCOFB-CeD0II3M.js → sankeyDiagram-P5KCCOFB-YTgoqhmd.js} +19 -19
- package/dist/embed/mermaid/{sequenceDiagram-WJ2MYXX4-Cs-Wxyvw.js → sequenceDiagram-WJ2MYXX4-Dpn6ph0n.js} +9 -9
- package/dist/embed/mermaid/{sizeCapture-INFHLROL-DujrpAYz.js → sizeCapture-INFHLROL-C2wlw8KF.js} +2 -2
- package/dist/embed/mermaid/{src-DbyMbLVK.js → src-CH4XuqUv.js} +104 -98
- package/dist/embed/mermaid/{stateDiagram-D77RDMKH-CqWtgHSc.js → stateDiagram-D77RDMKH-V_8TbftV.js} +20 -20
- package/dist/embed/mermaid/stateDiagram-v2-MP3YSRHH-us7SNDcU.js +30 -0
- package/dist/embed/mermaid/{swimlanes-42K2YHIH-MutR4uV4.js → swimlanes-42K2YHIH-wzihXC1V.js} +46 -24
- package/dist/embed/mermaid/swimlanesDiagram-VR7AAH4N-BML-4Vp0.js +31 -0
- package/dist/embed/mermaid/{timeline-definition-24CTP7MA-rZfNRFiT.js → timeline-definition-24CTP7MA-C3BzP6RA.js} +7 -7
- package/dist/embed/mermaid/treeView-Q6P3EWNA-Ba1dLcIR.js +3 -0
- package/dist/embed/mermaid/treemap-WGGIJYW6-D9G3ZsOW.js +3 -0
- package/dist/embed/mermaid/{vennDiagram-4TSXK5OY-KwMHebDQ.js → vennDiagram-4TSXK5OY-Cq1JumSe.js} +8 -8
- package/dist/embed/mermaid/wardley-WFR3VGLG-gAtip5-G.js +3 -0
- package/dist/embed/mermaid/{wardleyDiagram-VM6X3IG4-C-Fm7GGB.js → wardleyDiagram-VM6X3IG4-HtzestuU.js} +8 -8
- package/dist/embed/mermaid/{xychartDiagram-S5SC5T6Z-DZX43ay9.js → xychartDiagram-S5SC5T6Z-BE-W0B_D.js} +14 -14
- package/dist/embed.js +59 -59
- package/dist/embed.js.map +1 -1
- package/dist/smarter-chat-library.es.js +2732 -2640
- package/dist/smarter-chat-library.es.js.map +1 -1
- package/dist/smarter-chat-library.umd.js +56 -56
- package/dist/smarter-chat-library.umd.js.map +1 -1
- package/dist/types/src/contract.gen.d.ts +41 -26
- package/dist/ui-chat.css +1 -1
- package/package.json +1 -1
- package/dist/embed/mermaid/architecture-7GRP2DOG-D0nnNZ3B.js +0 -2
- package/dist/embed/mermaid/channel-BXMcYHk2.js +0 -5
- package/dist/embed/mermaid/classDiagram-ZZMXUADV-C8BeuQnA.js +0 -30
- package/dist/embed/mermaid/classDiagram-v2-VYDZK3BY-B3jylZLr.js +0 -30
- package/dist/embed/mermaid/cynefin-OW5HDTMX-B6YJOAMM.js +0 -2
- package/dist/embed/mermaid/eventmodeling-NTZA5JFV-C3kU50Cz.js +0 -2
- package/dist/embed/mermaid/flowDiagram-HODETNUW-D-eJN2AO.js +0 -16
- package/dist/embed/mermaid/gitGraph-4MIJSDKK-CqdlGRFk.js +0 -2
- package/dist/embed/mermaid/info-A6RAGUB7-2pwra5F3.js +0 -2
- package/dist/embed/mermaid/packet-AYTQ26CC-C3h9OoFk.js +0 -2
- package/dist/embed/mermaid/pie-WAS4IAKB-CaECYpHT.js +0 -2
- package/dist/embed/mermaid/radar-RG4KPBEZ-CoS7pnd_.js +0 -2
- package/dist/embed/mermaid/railroad-74A4TZTK-BjHa6MAk.js +0 -2
- package/dist/embed/mermaid/railroad-abnf-HS5TGJTU-Bm2YWqjG.js +0 -2
- package/dist/embed/mermaid/railroad-ebnf-LZEXJU2U-C7mPpgM3.js +0 -2
- package/dist/embed/mermaid/railroad-peg-WCYAUIDC-Cyp07M5x.js +0 -2
- package/dist/embed/mermaid/stateDiagram-v2-MP3YSRHH-CPideWIU.js +0 -30
- package/dist/embed/mermaid/swimlanesDiagram-VR7AAH4N-BC_o7pti.js +0 -31
- package/dist/embed/mermaid/treeView-Q6P3EWNA-C94eS7gV.js +0 -2
- package/dist/embed/mermaid/treemap-WGGIJYW6-DnrVJ1h3.js +0 -2
- package/dist/embed/mermaid/wardley-WFR3VGLG-DRDACyIN.js +0 -2
package/README.md
CHANGED
|
@@ -54,13 +54,13 @@ The `SmarterChat` component has a single required prop, `apiUrl`, which is the u
|
|
|
54
54
|
else comes from the LLMClient's manifest, so you change the chat by applying a new manifest, not by redeploying your
|
|
55
55
|
website:
|
|
56
56
|
|
|
57
|
-
| You want to change
|
|
58
|
-
|
|
|
59
|
-
| What the chatbot says and does: its LLM, model, system prompt, name, welcome message and examples
|
|
60
|
-
| Its tools and safety: [Plugins](https://docs.smarter.sh/smarter-resources/smarter-
|
|
61
|
-
| How it looks: its logo, avatars, background image, font and colors
|
|
62
|
-
| Where it appears on your page and its size, plus any extra CSS
|
|
63
|
-
| The data exchanged between browser and server
|
|
57
|
+
| You want to change | Where it's set |
|
|
58
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
59
|
+
| What the chatbot says and does: its LLM, model, system prompt, name, welcome message and examples | The manifest's [`spec.config.prompt`](#behavior-specconfigprompt) |
|
|
60
|
+
| Its tools and safety: [Plugins](https://docs.smarter.sh/smarter-resources/smarter-llmtool.html), Functions, [Guardrails](https://docs.smarter.sh/smarter-resources/smarter-guardrail.html) | The manifest's `spec.plugins`, `spec.functions` and `spec.guardrails` |
|
|
61
|
+
| How it looks: its logo, avatars, background image, font and colors | The manifest's [`spec.config.styles`](#styling-specconfigstyles) |
|
|
62
|
+
| Where it appears on your page and its size, plus any extra CSS | Your page: the component's [props](#props) and your [stylesheet](#your-own-css) |
|
|
63
|
+
| The data exchanged between browser and server | [The api contract](#the-api-contract), generated from Smarter's Pydantic models. You don't change it yourself |
|
|
64
64
|
|
|
65
65
|
```yaml
|
|
66
66
|
apiVersion: smarter.sh/v1
|
package/dist/embed/mermaid/{abnfDiagram-VCTEODGH-1SbERmPs.js → abnfDiagram-VCTEODGH-CGtrctwA.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as e } from "./src-
|
|
2
|
-
import { n as t } from "./chunk-Y2CYZVJY-
|
|
3
|
-
import "./chunk-DU6HZSFF-
|
|
4
|
-
import "./chunk-CLGD4ZFX-
|
|
5
|
-
import { m as n, t as r } from "./mermaid-parser.core-
|
|
6
|
-
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-
|
|
7
|
-
import { t as s } from "./chunk-JWPE2WC7-
|
|
8
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VCTEODGH.mjs
|
|
1
|
+
import { m as e } from "./src-CH4XuqUv.js";
|
|
2
|
+
import { n as t } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
3
|
+
import "./chunk-DU6HZSFF-C09wkxIu.js";
|
|
4
|
+
import "./chunk-CLGD4ZFX-BOKCMNQY.js";
|
|
5
|
+
import { m as n, t as r } from "./mermaid-parser.core-BoI6HFCg.js";
|
|
6
|
+
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-67QXjHHx.js";
|
|
7
|
+
import { t as s } from "./chunk-JWPE2WC7-BGVSGRTC.js";
|
|
8
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VCTEODGH.mjs
|
|
9
9
|
var c = n().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
|
|
10
10
|
let t = e.alternatives.map(u);
|
|
11
11
|
return t.length === 1 ? t[0] : {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, t } from "./path-
|
|
2
|
-
import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, u as p } from "./dist-
|
|
3
|
-
//#region node_modules/d3-shape/src/arc.js
|
|
1
|
+
import { n as e, t } from "./path-hN9ktzbr.js";
|
|
2
|
+
import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, u as p } from "./dist-CjR2JtV-.js";
|
|
3
|
+
//#region ../../node_modules/d3-shape/src/arc.js
|
|
4
4
|
function m(e) {
|
|
5
5
|
return e.innerRadius;
|
|
6
6
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { _ as e, m as t, p as n, v as r } from "./src-
|
|
2
|
-
import { n as i } from "./chunk-Y2CYZVJY-
|
|
3
|
-
import { H as a, J as o, K as s, U as c, a as l, b as u, f as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-DU6HZSFF-
|
|
4
|
-
import { c as _, i as v } from "./chunk-75Z2AOVW-
|
|
5
|
-
import { t as y } from "./chunk-CLGD4ZFX-
|
|
6
|
-
import { i as b, r as x, t as S } from "./chunk-PWAF6VOD-
|
|
7
|
-
import { n as C } from "./chunk-GMAD6QVW-
|
|
8
|
-
import { n as w } from "./mermaid-parser.core-
|
|
9
|
-
import { t as T } from "./chunk-JWPE2WC7-
|
|
10
|
-
import { t as E } from "./cytoscape.esm-
|
|
11
|
-
//#region node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js
|
|
12
|
-
var D = /* @__PURE__ */ e(((e, t
|
|
1
|
+
import { _ as e, m as t, p as n, v as r } from "./src-CH4XuqUv.js";
|
|
2
|
+
import { n as i } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
3
|
+
import { H as a, J as o, K as s, U as c, a as l, b as u, f as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-DU6HZSFF-C09wkxIu.js";
|
|
4
|
+
import { c as _, i as v } from "./chunk-75Z2AOVW-BugNeXEB.js";
|
|
5
|
+
import { t as y } from "./chunk-CLGD4ZFX-BOKCMNQY.js";
|
|
6
|
+
import { i as b, r as x, t as S } from "./chunk-PWAF6VOD-qhXJD1mO.js";
|
|
7
|
+
import { n as C } from "./chunk-GMAD6QVW-NxqJJwNT.js";
|
|
8
|
+
import { n as w } from "./mermaid-parser.core-BoI6HFCg.js";
|
|
9
|
+
import { t as T } from "./chunk-JWPE2WC7-BGVSGRTC.js";
|
|
10
|
+
import { t as E } from "./cytoscape.esm-CLcfvFJ6.js";
|
|
11
|
+
//#region ../../node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js
|
|
12
|
+
var D = /* @__PURE__ */ e(((e, t) => {
|
|
13
13
|
(function(n, r) {
|
|
14
14
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.layoutBase = r() : n.layoutBase = r();
|
|
15
|
-
})(
|
|
15
|
+
})(e, function() {
|
|
16
16
|
return (function(e) {
|
|
17
17
|
var t = {};
|
|
18
18
|
function n(r) {
|
|
@@ -332,23 +332,24 @@ var D = /* @__PURE__ */ e(((e, t, n) => {
|
|
|
332
332
|
return this.estimatedSize = e == 0 ? a.EMPTY_COMPOUND_NODE_SIZE : e / Math.sqrt(this.nodes.length), this.estimatedSize;
|
|
333
333
|
}, f.prototype.updateConnected = function() {
|
|
334
334
|
var e = this;
|
|
335
|
-
if (this.nodes.length == 0)
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
if (this.nodes.length == 0) {
|
|
336
|
+
this.isConnected = !0;
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
var t = new d(), n = /* @__PURE__ */ new Set(), r = this.nodes[0], i, a;
|
|
340
|
+
for (r.withChildren().forEach(function(e) {
|
|
341
|
+
t.push(e), n.add(e);
|
|
342
|
+
}); t.length !== 0;) {
|
|
343
|
+
r = t.shift(), i = r.getEdges();
|
|
344
|
+
for (var o = i.length, s = 0; s < o; s++) a = i[s].getOtherEndInGraph(r, this), a != null && !n.has(a) && a.withChildren().forEach(function(e) {
|
|
339
345
|
t.push(e), n.add(e);
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
var c = 0;
|
|
348
|
-
n.forEach(function(t) {
|
|
349
|
-
t.owner == e && c++;
|
|
350
|
-
}), c == this.nodes.length && (this.isConnected = !0);
|
|
351
|
-
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
if (this.isConnected = !1, n.size >= this.nodes.length) {
|
|
349
|
+
var c = 0;
|
|
350
|
+
n.forEach(function(t) {
|
|
351
|
+
t.owner == e && c++;
|
|
352
|
+
}), c == this.nodes.length && (this.isConnected = !0);
|
|
352
353
|
}
|
|
353
354
|
}, e.exports = f;
|
|
354
355
|
}),
|
|
@@ -458,8 +459,11 @@ var D = /* @__PURE__ */ e(((e, t, n) => {
|
|
|
458
459
|
} while (1);
|
|
459
460
|
return !1;
|
|
460
461
|
}, a.prototype.calcLowestCommonAncestors = function() {
|
|
461
|
-
for (var e, t, n, r, i, a = this.getAllEdges(), o = a.length, s = 0; s < o; s++)
|
|
462
|
-
|
|
462
|
+
for (var e, t, n, r, i, a = this.getAllEdges(), o = a.length, s = 0; s < o; s++) {
|
|
463
|
+
if (e = a[s], t = e.source, n = e.target, e.lca = null, e.sourceInLca = t, e.targetInLca = n, t == n) {
|
|
464
|
+
e.lca = t.getOwner();
|
|
465
|
+
continue;
|
|
466
|
+
}
|
|
463
467
|
for (r = t.getOwner(); e.lca == null;) {
|
|
464
468
|
for (e.targetInLca = n, i = n.getOwner(); e.lca == null;) {
|
|
465
469
|
if (i == r) {
|
|
@@ -793,7 +797,7 @@ var D = /* @__PURE__ */ e(((e, t, n) => {
|
|
|
793
797
|
};
|
|
794
798
|
function i() {}
|
|
795
799
|
i.lastID = 0, i.createID = function(e) {
|
|
796
|
-
return i.isPrimitive(e) ? e :
|
|
800
|
+
return i.isPrimitive(e) ? e : e.uniqueID == null ? (e.uniqueID = i.getString(), i.lastID++, e.uniqueID) : e.uniqueID;
|
|
797
801
|
}, i.getString = function(e) {
|
|
798
802
|
return e ??= i.lastID, "Object#" + e;
|
|
799
803
|
}, i.isPrimitive = function(e) {
|
|
@@ -1633,10 +1637,10 @@ var D = /* @__PURE__ */ e(((e, t, n) => {
|
|
|
1633
1637
|
})
|
|
1634
1638
|
]);
|
|
1635
1639
|
});
|
|
1636
|
-
})), O = /* @__PURE__ */ e(((e, t
|
|
1640
|
+
})), O = /* @__PURE__ */ e(((e, t) => {
|
|
1637
1641
|
(function(n, r) {
|
|
1638
1642
|
typeof e == "object" && typeof t == "object" ? t.exports = r(D()) : typeof define == "function" && define.amd ? define(["layout-base"], r) : typeof e == "object" ? e.coseBase = r(D()) : n.coseBase = r(n.layoutBase);
|
|
1639
|
-
})(
|
|
1643
|
+
})(e, function(e) {
|
|
1640
1644
|
return (() => {
|
|
1641
1645
|
var t = {
|
|
1642
1646
|
45: ((e, t, n) => {
|
|
@@ -2077,8 +2081,11 @@ var D = /* @__PURE__ */ e(((e, t, n) => {
|
|
|
2077
2081
|
for (var r = n.getNodes(), i = 0; i < r.length; i++) {
|
|
2078
2082
|
var a = r[i];
|
|
2079
2083
|
if (this.getNodeDegree(a) > 0) return this.toBeTiled[t] = !1, !1;
|
|
2080
|
-
if (a.getChild() == null)
|
|
2081
|
-
|
|
2084
|
+
if (a.getChild() == null) {
|
|
2085
|
+
this.toBeTiled[a.id] = !1;
|
|
2086
|
+
continue;
|
|
2087
|
+
}
|
|
2088
|
+
if (!this.getToBeTiled(a)) return this.toBeTiled[t] = !1, !1;
|
|
2082
2089
|
}
|
|
2083
2090
|
return this.toBeTiled[t] = !0, !0;
|
|
2084
2091
|
}, x.prototype.getNodeDegree = function(e) {
|
|
@@ -2770,10 +2777,10 @@ var D = /* @__PURE__ */ e(((e, t, n) => {
|
|
|
2770
2777
|
return r(45);
|
|
2771
2778
|
})();
|
|
2772
2779
|
});
|
|
2773
|
-
})), k = /* @__PURE__ */ r((/* @__PURE__ */ e(((e, t
|
|
2780
|
+
})), k = /* @__PURE__ */ r((/* @__PURE__ */ e(((e, t) => {
|
|
2774
2781
|
(function(n, r) {
|
|
2775
2782
|
typeof e == "object" && typeof t == "object" ? t.exports = r(O()) : typeof define == "function" && define.amd ? define(["cose-base"], r) : typeof e == "object" ? e.cytoscapeFcose = r(O()) : n.cytoscapeFcose = r(n.coseBase);
|
|
2776
|
-
})(
|
|
2783
|
+
})(e, function(e) {
|
|
2777
2784
|
return (() => {
|
|
2778
2785
|
var t = {
|
|
2779
2786
|
658: ((e) => {
|
|
@@ -3882,8 +3889,11 @@ function me(e, t, n, r = []) {
|
|
|
3882
3889
|
let r = /* @__PURE__ */ new Map();
|
|
3883
3890
|
for (let [i, a] of e.entries()) {
|
|
3884
3891
|
let e = `${i}`, o = 0, s = [...a.entries()];
|
|
3885
|
-
if (s.length === 1)
|
|
3886
|
-
|
|
3892
|
+
if (s.length === 1) {
|
|
3893
|
+
r.set(e, s[0][1]);
|
|
3894
|
+
continue;
|
|
3895
|
+
}
|
|
3896
|
+
for (let i = 0; i < s.length - 1; i++) for (let a = i + 1; a < s.length; a++) {
|
|
3887
3897
|
let [c, l] = s[i], [u, d] = s[a];
|
|
3888
3898
|
if (n.get(re(c, u)) === t) r.set(e, [
|
|
3889
3899
|
...r.get(e) ?? [],
|
package/dist/embed/mermaid/{blockDiagram-I7D4REHJ-CtjOz0Jt.js → blockDiagram-I7D4REHJ-Q2YOF2Nl.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { m as e, p as t } from "./src-
|
|
2
|
-
import { n } from "./chunk-Y2CYZVJY-
|
|
3
|
-
import { a as r, b as i, c as a, it as o, s, x as c } from "./chunk-DU6HZSFF-
|
|
4
|
-
import { t as l } from "./channel-
|
|
5
|
-
import { A as u, B as d, C as f, D as p, E as m, F as h, G as g, H as _, I as v, L as y, M as b, N as x, O as S, P as C, R as w, T, U as E, V as D, W as O, b as k, j as A, k as j, l as M, v as ee, w as te, z as ne } from "./chunk-75Z2AOVW-
|
|
6
|
-
import "./chunk-P2QGCYS3-
|
|
7
|
-
import "./chunk-PWAF6VOD-
|
|
8
|
-
import "./chunk-GMAD6QVW-
|
|
9
|
-
import "./chunk-4HAMMTFA-
|
|
10
|
-
import { i as re, r as N } from "./chunk-GVQU2GXP-
|
|
11
|
-
import { a as ie, c as ae, i as oe, s as se } from "./chunk-OSK3NFVY-
|
|
12
|
-
import { t as ce } from "./graphlib-
|
|
13
|
-
import { t as le } from "./chunk-5VM5RSS4-
|
|
14
|
-
//#region node_modules/es-toolkit/dist/compat/predicate/isArray.mjs
|
|
1
|
+
import { m as e, p as t } from "./src-CH4XuqUv.js";
|
|
2
|
+
import { n } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
3
|
+
import { a as r, b as i, c as a, it as o, s, x as c } from "./chunk-DU6HZSFF-C09wkxIu.js";
|
|
4
|
+
import { t as l } from "./channel-CxRe6Ync.js";
|
|
5
|
+
import { A as u, B as d, C as f, D as p, E as m, F as h, G as g, H as _, I as v, L as y, M as b, N as x, O as S, P as C, R as w, T, U as E, V as D, W as O, b as k, j as A, k as j, l as M, v as ee, w as te, z as ne } from "./chunk-75Z2AOVW-BugNeXEB.js";
|
|
6
|
+
import "./chunk-P2QGCYS3-CP_jp-eQ.js";
|
|
7
|
+
import "./chunk-PWAF6VOD-qhXJD1mO.js";
|
|
8
|
+
import "./chunk-GMAD6QVW-NxqJJwNT.js";
|
|
9
|
+
import "./chunk-4HAMMTFA-DY_JmJA2.js";
|
|
10
|
+
import { i as re, r as N } from "./chunk-GVQU2GXP-D4WoQcNg.js";
|
|
11
|
+
import { a as ie, c as ae, i as oe, s as se } from "./chunk-OSK3NFVY-B1KjtHOy.js";
|
|
12
|
+
import { t as ce } from "./graphlib-D8JS7ydf.js";
|
|
13
|
+
import { t as le } from "./chunk-5VM5RSS4-BFskf6Qk.js";
|
|
14
|
+
//#region ../../node_modules/es-toolkit/dist/compat/predicate/isArray.mjs
|
|
15
15
|
function ue(e) {
|
|
16
16
|
return Array.isArray(e);
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region node_modules/es-toolkit/dist/compat/object/clone.mjs
|
|
19
|
+
//#region ../../node_modules/es-toolkit/dist/compat/object/clone.mjs
|
|
20
20
|
function de(e) {
|
|
21
21
|
if (k(e)) return e;
|
|
22
22
|
let t = g(e);
|
|
@@ -109,7 +109,7 @@ function he(e, t) {
|
|
|
109
109
|
n !== null && typeof t.constructor == "function" && Object.setPrototypeOf(e, n);
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-I7D4REHJ.mjs
|
|
112
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-I7D4REHJ.mjs
|
|
113
113
|
var F = (function() {
|
|
114
114
|
var e = /* @__PURE__ */ n(function(e, t, n, r) {
|
|
115
115
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
@@ -1281,23 +1281,34 @@ var ge = F, I = /* @__PURE__ */ new Map(), L = [], R = /* @__PURE__ */ new Map()
|
|
|
1281
1281
|
});
|
|
1282
1282
|
}, "setCssClass"), we = /* @__PURE__ */ n((t, n) => {
|
|
1283
1283
|
let r = t.flat(), i = [], a = r.find((e) => e?.type === "column-setting")?.columns ?? -1;
|
|
1284
|
-
for (let t of r)
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1284
|
+
for (let t of r) {
|
|
1285
|
+
if (typeof a == "number" && a > 0 && t.type !== "column-setting" && typeof t.widthInColumns == "number" && t.widthInColumns > a && e.warn(`Block ${t.id} width ${t.widthInColumns} exceeds configured column width ${a}`), t.label &&= be(t.label), t.type === "classDef") {
|
|
1286
|
+
xe(t.id, t.css);
|
|
1287
|
+
continue;
|
|
1288
|
+
}
|
|
1289
|
+
if (t.type === "applyClass") {
|
|
1290
|
+
Ce(t.id, t?.styleClass ?? "");
|
|
1291
|
+
continue;
|
|
1292
|
+
}
|
|
1293
|
+
if (t.type === "applyStyles") {
|
|
1294
|
+
t?.stylesStr && Se(t.id, t?.stylesStr);
|
|
1295
|
+
continue;
|
|
1296
|
+
}
|
|
1297
|
+
if (t.type === "column-setting") n.columns = t.columns ?? -1;
|
|
1298
|
+
else if (t.type === "edge") {
|
|
1299
|
+
let e = (R.get(t.id) ?? 0) + 1;
|
|
1300
|
+
R.set(t.id, e), t.id = e + "-" + t.id, L.push(t);
|
|
1301
|
+
} else {
|
|
1302
|
+
t.label ||= t.type === "composite" ? "" : t.id;
|
|
1303
|
+
let e = I.get(t.id);
|
|
1304
|
+
if (e === void 0 ? I.set(t.id, t) : (t.type !== "na" && (e.type = t.type), t.label !== t.id && (e.label = t.label)), t.children && we(t.children, t), t.type === "space") {
|
|
1305
|
+
let e = t.width ?? 1;
|
|
1306
|
+
for (let n = 0; n < e; n++) {
|
|
1307
|
+
let e = de(t);
|
|
1308
|
+
e.id = e.id + "-" + n, I.set(e.id, e), i.push(e);
|
|
1309
|
+
}
|
|
1310
|
+
} else e === void 0 && i.push(t);
|
|
1311
|
+
}
|
|
1301
1312
|
}
|
|
1302
1313
|
n.children = i;
|
|
1303
1314
|
}, "populateBlockDatabase"), H = [], U = {
|
package/dist/embed/mermaid/{c4Diagram-7LVT6UL2-_qBudB6C.js → c4Diagram-7LVT6UL2-DI7_cX7n.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m as e, p as t } from "./src-
|
|
2
|
-
import { n } from "./chunk-Y2CYZVJY-
|
|
3
|
-
import { H as r, U as i, c as a, r as o, s, v as l, x as u, y as d, z as f } from "./chunk-DU6HZSFF-
|
|
4
|
-
import { _ as p, n as m, r as h } from "./chunk-75Z2AOVW-
|
|
5
|
-
import "./chunk-P2QGCYS3-
|
|
6
|
-
import "./chunk-PWAF6VOD-
|
|
7
|
-
import "./chunk-GMAD6QVW-
|
|
8
|
-
import { o as g } from "./chunk-4HAMMTFA-
|
|
9
|
-
import { a as _ } from "./chunk-F27PBJKO-
|
|
10
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-7LVT6UL2.mjs
|
|
1
|
+
import { m as e, p as t } from "./src-CH4XuqUv.js";
|
|
2
|
+
import { n } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
3
|
+
import { H as r, U as i, c as a, r as o, s, v as l, x as u, y as d, z as f } from "./chunk-DU6HZSFF-C09wkxIu.js";
|
|
4
|
+
import { _ as p, n as m, r as h } from "./chunk-75Z2AOVW-BugNeXEB.js";
|
|
5
|
+
import "./chunk-P2QGCYS3-CP_jp-eQ.js";
|
|
6
|
+
import "./chunk-PWAF6VOD-qhXJD1mO.js";
|
|
7
|
+
import "./chunk-GMAD6QVW-NxqJJwNT.js";
|
|
8
|
+
import { o as g } from "./chunk-4HAMMTFA-DY_JmJA2.js";
|
|
9
|
+
import { a as _ } from "./chunk-F27PBJKO-C69L38at.js";
|
|
10
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-7LVT6UL2.mjs
|
|
11
11
|
var v = (function() {
|
|
12
12
|
var e = /* @__PURE__ */ n(function(e, t, n, r) {
|
|
13
13
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m as e } from "./src-
|
|
2
|
-
import { n as t } from "./chunk-Y2CYZVJY-
|
|
3
|
-
import { b as n, x as r } from "./chunk-DU6HZSFF-
|
|
4
|
-
import { g as i } from "./chunk-75Z2AOVW-
|
|
5
|
-
import { a } from "./chunk-4HAMMTFA-
|
|
6
|
-
import { i as o, n as s, r as c, t as l } from "./chunk-GVQU2GXP-
|
|
7
|
-
import { n as u, t as d } from "./chunk-L3NEJ4N5-
|
|
8
|
-
import { a as f, i as p, l as m, n as h, r as g, s as _, t as v } from "./chunk-OSK3NFVY-
|
|
9
|
-
import { t as y } from "./graphlib-
|
|
10
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-2E4U76K2.mjs
|
|
1
|
+
import { m as e } from "./src-CH4XuqUv.js";
|
|
2
|
+
import { n as t } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
3
|
+
import { b as n, x as r } from "./chunk-DU6HZSFF-C09wkxIu.js";
|
|
4
|
+
import { g as i } from "./chunk-75Z2AOVW-BugNeXEB.js";
|
|
5
|
+
import { a } from "./chunk-4HAMMTFA-DY_JmJA2.js";
|
|
6
|
+
import { i as o, n as s, r as c, t as l } from "./chunk-GVQU2GXP-D4WoQcNg.js";
|
|
7
|
+
import { n as u, t as d } from "./chunk-L3NEJ4N5-CqdtyK-9.js";
|
|
8
|
+
import { a as f, i as p, l as m, n as h, r as g, s as _, t as v } from "./chunk-OSK3NFVY-B1KjtHOy.js";
|
|
9
|
+
import { t as y } from "./graphlib-D8JS7ydf.js";
|
|
10
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-2E4U76K2.mjs
|
|
11
11
|
function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
|
|
12
12
|
let n = e.insert("g").attr("class", "root");
|
|
13
13
|
return {
|
|
@@ -60,7 +60,7 @@ async function C(e, t) {
|
|
|
60
60
|
}));
|
|
61
61
|
for (let e of i) u && g(e) && await f(s, e), n.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
|
|
62
62
|
if (globalThis.mermaidCaptureSizes) {
|
|
63
|
-
let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-
|
|
63
|
+
let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-C2wlw8KF.js");
|
|
64
64
|
n(e, t);
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
@@ -126,45 +126,46 @@ var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE
|
|
|
126
126
|
}
|
|
127
127
|
return a;
|
|
128
128
|
}, "findNonClusterChild"), P = /* @__PURE__ */ t((e) => !w.has(e) || !w.get(e).externalConnections ? e : w.has(e) ? w.get(e).id : e, "getAnchorId"), F = /* @__PURE__ */ t((t, n) => {
|
|
129
|
-
if (!t || n > 10)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
129
|
+
if (!t || n > 10) {
|
|
130
|
+
e.debug("Opting out, no graph ");
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
e.debug("Opting in, graph "), t.nodes().forEach(function(n) {
|
|
134
|
+
t.children(n).length > 0 && (e.debug("Cluster identified", n, " Replacement id in edges: ", N(n, t, n)), T.set(n, j(n, t)), w.set(n, {
|
|
135
|
+
id: N(n, t, n),
|
|
136
|
+
clusterData: t.node(n)
|
|
137
|
+
}));
|
|
138
|
+
}), t.nodes().forEach(function(n) {
|
|
139
|
+
let r = t.children(n), i = t.edges();
|
|
140
|
+
r.length > 0 ? (e.debug("Cluster identified", n, T), i.forEach((t) => {
|
|
141
|
+
O(t.v, n) ^ O(t.w, n) && (e.debug("Edge: ", t, " leaves cluster ", n), e.debug("Descendants of XXX ", n, ": ", T.get(n)), w.get(n).externalConnections = !0);
|
|
142
|
+
})) : e.debug("Not a cluster ", n, T);
|
|
143
|
+
});
|
|
144
|
+
for (let e of w.keys()) {
|
|
145
|
+
let n = w.get(e).id, r = t.parent(n);
|
|
146
|
+
r !== e && w.has(r) && !w.get(r).externalConnections && (w.get(e).id = r);
|
|
147
|
+
let i = t.edges().some((t) => t.v === e);
|
|
148
|
+
if (n && w.get(e)?.externalConnections && i && z(t, n, e)) {
|
|
149
|
+
let r = B(t, e, t.parent(n));
|
|
150
|
+
r && (w.get(e).id = r);
|
|
150
151
|
}
|
|
151
|
-
t.edges().forEach(function(n) {
|
|
152
|
-
let r = t.edge(n);
|
|
153
|
-
e.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), e.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(t.edge(n)));
|
|
154
|
-
let i = n.v, a = n.w;
|
|
155
|
-
if (e.debug("Fix XXX", w, "ids:", n.v, n.w, "Translating: ", w.get(n.v), " --- ", w.get(n.w)), w.get(n.v) || w.get(n.w)) {
|
|
156
|
-
if (e.debug("Fixing and trying - removing XXX", n.v, n.w, n.name), i = P(n.v), a = P(n.w), t.removeEdge(n.v, n.w, n.name), i !== n.v) {
|
|
157
|
-
let e = t.parent(i);
|
|
158
|
-
w.get(e).externalConnections = !0, r.fromCluster = n.v;
|
|
159
|
-
}
|
|
160
|
-
if (a !== n.w) {
|
|
161
|
-
let e = t.parent(a);
|
|
162
|
-
w.get(e).externalConnections = !0, r.toCluster = n.w;
|
|
163
|
-
}
|
|
164
|
-
e.debug("Fix Replacing with XXX", i, a, n.name), t.setEdge(i, a, r, n.name);
|
|
165
|
-
}
|
|
166
|
-
}), I(t, 0), e.trace(w);
|
|
167
152
|
}
|
|
153
|
+
t.edges().forEach(function(n) {
|
|
154
|
+
let r = t.edge(n);
|
|
155
|
+
e.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), e.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(t.edge(n)));
|
|
156
|
+
let i = n.v, a = n.w;
|
|
157
|
+
if (e.debug("Fix XXX", w, "ids:", n.v, n.w, "Translating: ", w.get(n.v), " --- ", w.get(n.w)), w.get(n.v) || w.get(n.w)) {
|
|
158
|
+
if (e.debug("Fixing and trying - removing XXX", n.v, n.w, n.name), i = P(n.v), a = P(n.w), t.removeEdge(n.v, n.w, n.name), i !== n.v) {
|
|
159
|
+
let e = t.parent(i);
|
|
160
|
+
w.get(e).externalConnections = !0, r.fromCluster = n.v;
|
|
161
|
+
}
|
|
162
|
+
if (a !== n.w) {
|
|
163
|
+
let e = t.parent(a);
|
|
164
|
+
w.get(e).externalConnections = !0, r.toCluster = n.w;
|
|
165
|
+
}
|
|
166
|
+
e.debug("Fix Replacing with XXX", i, a, n.name), t.setEdge(i, a, r, n.name);
|
|
167
|
+
}
|
|
168
|
+
}), I(t, 0), e.trace(w);
|
|
168
169
|
}, "adjustClustersAndEdges"), I = /* @__PURE__ */ t((t, n) => {
|
|
169
170
|
if (n > 10) {
|
|
170
171
|
e.error("Bailing out");
|
|
@@ -175,39 +176,40 @@ var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE
|
|
|
175
176
|
let n = t.children(e);
|
|
176
177
|
i ||= n.length > 0;
|
|
177
178
|
}
|
|
178
|
-
if (!i)
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
179
|
+
if (!i) {
|
|
180
|
+
e.debug("Done, no node has children", t.nodes());
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
e.debug("Nodes = ", r, n);
|
|
184
|
+
for (let i of r) if (e.debug("Extracting node", i, w, w.has(i) && !w.get(i).externalConnections, !t.parent(i), t.node(i), t.children("D"), " Depth ", n), !w.has(i)) e.debug("Not a cluster", i, n);
|
|
185
|
+
else if (!w.get(i).externalConnections && t.children(i) && t.children(i).length > 0) {
|
|
186
|
+
e.debug("Cluster without external connections, without a parent and with children", i, n);
|
|
187
|
+
let r = t.graph().rankdir === "TB" ? "LR" : "TB";
|
|
188
|
+
w.get(i)?.clusterData?.dir && (r = w.get(i).clusterData.dir, e.debug("Fixing dir", w.get(i).clusterData.dir, r));
|
|
189
|
+
let a = new y({
|
|
190
|
+
multigraph: !0,
|
|
191
|
+
compound: !0
|
|
192
|
+
}).setGraph({
|
|
193
|
+
rankdir: r,
|
|
194
|
+
nodesep: 50,
|
|
195
|
+
ranksep: 50,
|
|
196
|
+
marginx: 8,
|
|
197
|
+
marginy: 8
|
|
198
|
+
}).setDefaultEdgeLabel(function() {
|
|
199
|
+
return {};
|
|
200
|
+
});
|
|
201
|
+
A(i, t, a, i), t.setNode(i, {
|
|
202
|
+
clusterNode: !0,
|
|
203
|
+
id: i,
|
|
204
|
+
clusterData: w.get(i).clusterData,
|
|
205
|
+
label: w.get(i).label,
|
|
206
|
+
graph: a
|
|
207
|
+
});
|
|
208
|
+
} else e.debug("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !w.get(i).externalConnections, " no parent: ", !t.parent(i), " children ", t.children(i) && t.children(i).length > 0, t.children("D"), n), e.debug(w);
|
|
209
|
+
r = t.nodes(), e.debug("New list of nodes", r);
|
|
210
|
+
for (let i of r) {
|
|
211
|
+
let r = t.node(i);
|
|
212
|
+
e.debug(" Now next level", i, r), r?.clusterNode && I(r.graph, n + 1);
|
|
211
213
|
}
|
|
212
214
|
}, "extractor"), L = /* @__PURE__ */ t((e, t) => {
|
|
213
215
|
if (t.length === 0) return [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./chunk-Y2CYZVJY-
|
|
2
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-2Q5K7J3B.mjs
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
2
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-2Q5K7J3B.mjs
|
|
3
3
|
var t = class {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
this.init = e, this.records = this.init();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { m as e, p as t } from "./src-
|
|
2
|
-
import { n } from "./chunk-Y2CYZVJY-
|
|
3
|
-
import { A as r, B as i, M as a, T as o, b as s, f as c, g as l, x as u, z as d } from "./chunk-DU6HZSFF-
|
|
4
|
-
import { a as f, p, r as m, u as h } from "./chunk-75Z2AOVW-
|
|
5
|
-
import { a as g, i as _, r as v, t as y } from "./chunk-P2QGCYS3-
|
|
6
|
-
import { t as b } from "./chunk-PWAF6VOD-
|
|
7
|
-
import { n as x, r as S } from "./chunk-GMAD6QVW-
|
|
8
|
-
import { t as C } from "./rough.esm-
|
|
9
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-4HAMMTFA.mjs
|
|
1
|
+
import { m as e, p as t } from "./src-CH4XuqUv.js";
|
|
2
|
+
import { n } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
3
|
+
import { A as r, B as i, M as a, T as o, b as s, f as c, g as l, x as u, z as d } from "./chunk-DU6HZSFF-C09wkxIu.js";
|
|
4
|
+
import { a as f, p, r as m, u as h } from "./chunk-75Z2AOVW-BugNeXEB.js";
|
|
5
|
+
import { a as g, i as _, r as v, t as y } from "./chunk-P2QGCYS3-CP_jp-eQ.js";
|
|
6
|
+
import { t as b } from "./chunk-PWAF6VOD-qhXJD1mO.js";
|
|
7
|
+
import { n as x, r as S } from "./chunk-GMAD6QVW-NxqJJwNT.js";
|
|
8
|
+
import { t as C } from "./rough.esm-XhrPyaQA.js";
|
|
9
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-4HAMMTFA.mjs
|
|
10
10
|
var w = 1, T = 3;
|
|
11
11
|
async function E(e) {
|
|
12
12
|
let t = e.getElementsByTagName("img");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./chunk-Y2CYZVJY-
|
|
2
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-5VM5RSS4.mjs
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
2
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-5VM5RSS4.mjs
|
|
3
3
|
var t = /* @__PURE__ */ e(() => "\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n", "getIconStyles");
|
|
4
4
|
//#endregion
|
|
5
5
|
export { t };
|