dominds 1.19.2 → 1.19.3
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/cli/team-definition-audit.d.ts +2 -1
- package/dist/cli/team-definition-audit.js +20 -8
- package/dist/cli/validate-team-def.js +3 -3
- package/dist/docs/mcp-support.md +11 -0
- package/dist/docs/mcp-support.zh.md +7 -0
- package/dist/docs/team_mgmt-toolset.md +5 -2
- package/dist/docs/team_mgmt-toolset.zh.md +4 -2
- package/dist/docs/tool-availability-protocol.md +4 -2
- package/dist/mcp/config.d.ts +1 -0
- package/dist/mcp/config.js +16 -0
- package/dist/mcp/supervisor.d.ts +7 -1
- package/dist/mcp/supervisor.js +298 -16
- package/dist/minds/load.js +5 -0
- package/dist/minds/system-prompt.d.ts +1 -0
- package/dist/minds/system-prompt.js +14 -6
- package/dist/tools/builtins.js +2 -0
- package/dist/tools/env.js +10 -58
- package/dist/tools/manual/render.js +4 -0
- package/dist/tools/mcp.d.ts +1 -0
- package/dist/tools/mcp.js +55 -5
- package/dist/tools/prompts/mcp_admin/en/errors.md +0 -14
- package/dist/tools/prompts/mcp_admin/en/index.md +5 -3
- package/dist/tools/prompts/mcp_admin/en/principles.md +11 -5
- package/dist/tools/prompts/mcp_admin/en/scenarios.md +19 -3
- package/dist/tools/prompts/mcp_admin/en/tools.md +85 -21
- package/dist/tools/prompts/mcp_admin/zh/errors.md +0 -14
- package/dist/tools/prompts/mcp_admin/zh/index.md +5 -3
- package/dist/tools/prompts/mcp_admin/zh/principles.md +11 -5
- package/dist/tools/prompts/mcp_admin/zh/scenarios.md +19 -3
- package/dist/tools/prompts/mcp_admin/zh/tools.md +85 -21
- package/dist/tools/prompts/os/en/errors.md +0 -28
- package/dist/tools/prompts/os/en/scenarios.md +1 -1
- package/dist/tools/prompts/os/en/tools.md +8 -17
- package/dist/tools/prompts/os/zh/errors.md +0 -28
- package/dist/tools/prompts/os/zh/scenarios.md +1 -1
- package/dist/tools/prompts/os/zh/tools.md +8 -17
- package/dist/tools/registry.d.ts +5 -0
- package/dist/tools/team_mgmt-mcp-manual.d.ts +2 -2
- package/dist/tools/team_mgmt-mcp-manual.js +57 -16
- package/dist/tools/team_mgmt.js +4 -4
- package/package.json +3 -3
- package/webapp/dist/assets/{_basePickBy-B7M9Q0Fa.js → _basePickBy-Dnh413xT.js} +3 -3
- package/webapp/dist/assets/_basePickBy-Dnh413xT.js.map +1 -0
- package/webapp/dist/assets/{_baseUniq-DAeYoL6j.js → _baseUniq-DWzYqpN_.js} +2 -2
- package/webapp/dist/assets/_baseUniq-DWzYqpN_.js.map +1 -0
- package/webapp/dist/assets/{arc-Bh4nDbNR.js → arc-vfBkNCOx.js} +2 -2
- package/webapp/dist/assets/arc-vfBkNCOx.js.map +1 -0
- package/webapp/dist/assets/{architectureDiagram-2XIMDMQ5-CxqmdsIm.js → architectureDiagram-VXUJARFQ-DiUEBXOa.js} +8 -26
- package/webapp/dist/assets/architectureDiagram-VXUJARFQ-DiUEBXOa.js.map +1 -0
- package/webapp/dist/assets/{blockDiagram-WCTKOSBZ-CxIWLtpt.js → blockDiagram-VD42YOAC-BqK1KM2m.js} +170 -187
- package/webapp/dist/assets/blockDiagram-VD42YOAC-BqK1KM2m.js.map +1 -0
- package/webapp/dist/assets/{c4Diagram-IC4MRINW-1qErOIgG.js → c4Diagram-YG6GDRKO-ClHNu1Uo.js} +4 -4
- package/webapp/dist/assets/c4Diagram-YG6GDRKO-ClHNu1Uo.js.map +1 -0
- package/webapp/dist/assets/{channel-DkgZHNUe.js → channel-BbWLVc8W.js} +2 -2
- package/webapp/dist/assets/channel-BbWLVc8W.js.map +1 -0
- package/webapp/dist/assets/{chunk-4BX2VUAB-BmdMbU9v.js → chunk-4BX2VUAB-CItdSmZH.js} +2 -2
- package/webapp/dist/assets/chunk-4BX2VUAB-CItdSmZH.js.map +1 -0
- package/webapp/dist/assets/{chunk-55IACEB6-D6LDTDBy.js → chunk-55IACEB6-DSCX9WCf.js} +2 -2
- package/webapp/dist/assets/chunk-55IACEB6-DSCX9WCf.js.map +1 -0
- package/webapp/dist/assets/{chunk-WL4C6EOR-B-Pk44be.js → chunk-B4BG7PRW-5CRXFeD9.js} +121 -171
- package/webapp/dist/assets/chunk-B4BG7PRW-5CRXFeD9.js.map +1 -0
- package/webapp/dist/assets/{chunk-NQ4KR5QH-wlvxalE3.js → chunk-DI55MBZ5-CRMf6XZu.js} +7 -9
- package/webapp/dist/assets/chunk-DI55MBZ5-CRMf6XZu.js.map +1 -0
- package/webapp/dist/assets/{chunk-FMBD7UC4-C-BdCe4C.js → chunk-FMBD7UC4-BJ1vT2se.js} +2 -2
- package/webapp/dist/assets/chunk-FMBD7UC4-BJ1vT2se.js.map +1 -0
- package/webapp/dist/assets/{chunk-KX2RTZJC-CA7sDJO5.js → chunk-QN33PNHL-CGyezTSD.js} +2 -2
- package/webapp/dist/assets/chunk-QN33PNHL-CGyezTSD.js.map +1 -0
- package/webapp/dist/assets/{chunk-QZHKN3VN-Bo1VMcph.js → chunk-QZHKN3VN-9xs15j8C.js} +2 -2
- package/webapp/dist/assets/chunk-QZHKN3VN-9xs15j8C.js.map +1 -0
- package/webapp/dist/assets/{chunk-JSJVCQXG-WA_BLIm9.js → chunk-TZMSLE5B-D2g6Tj7Z.js} +6 -14
- package/webapp/dist/assets/chunk-TZMSLE5B-D2g6Tj7Z.js.map +1 -0
- package/webapp/dist/assets/{classDiagram-VBA2DB6C-BqKuyb49.js → classDiagram-2ON5EDUG-BQFGGJNm.js} +6 -7
- package/webapp/dist/assets/classDiagram-2ON5EDUG-BQFGGJNm.js.map +1 -0
- package/webapp/dist/assets/{classDiagram-v2-RAHNMMFH-BqKuyb49.js → classDiagram-v2-WZHVMYZB-BQFGGJNm.js} +6 -7
- package/webapp/dist/assets/classDiagram-v2-WZHVMYZB-BQFGGJNm.js.map +1 -0
- package/webapp/dist/assets/{clone-BX5z8WVZ.js → clone-DOfPd4cz.js} +2 -2
- package/webapp/dist/assets/clone-DOfPd4cz.js.map +1 -0
- package/webapp/dist/assets/{cose-bilkent-S5V4N54A-B-s11SgN.js → cose-bilkent-S5V4N54A-BYN-vqm8.js} +2 -2
- package/webapp/dist/assets/cose-bilkent-S5V4N54A-BYN-vqm8.js.map +1 -0
- package/webapp/dist/assets/cytoscape.esm-Bm8DJGmZ.js.map +1 -1
- package/webapp/dist/assets/{dagre-KLK3FWXG-DmQFV2qK.js → dagre-6UL2VRFP-ClEaFABE.js} +7 -7
- package/webapp/dist/assets/dagre-6UL2VRFP-ClEaFABE.js.map +1 -0
- package/webapp/dist/assets/defaultLocale-B2RvLBDe.js.map +1 -1
- package/webapp/dist/assets/{diagram-E7M64L7V-QRaBfST8.js → diagram-PSM6KHXK-CM4hLE_0.js} +10 -10
- package/webapp/dist/assets/diagram-PSM6KHXK-CM4hLE_0.js.map +1 -0
- package/webapp/dist/assets/{diagram-IFDJBPK2-lrWn1Obo.js → diagram-QEK2KX5R-BZjGFX-2.js} +8 -9
- package/webapp/dist/assets/diagram-QEK2KX5R-BZjGFX-2.js.map +1 -0
- package/webapp/dist/assets/{diagram-P4PSJMXO-sTU7Hh-Y.js → diagram-S2PKOQOG-Bvw01OOG.js} +8 -8
- package/webapp/dist/assets/diagram-S2PKOQOG-Bvw01OOG.js.map +1 -0
- package/webapp/dist/assets/{erDiagram-INFDFZHY-Cx6jc9Wq.js → erDiagram-Q2GNP2WA-ctHu5zQL.js} +75 -96
- package/webapp/dist/assets/erDiagram-Q2GNP2WA-ctHu5zQL.js.map +1 -0
- package/webapp/dist/assets/{flowDiagram-PKNHOUZH-DfGI49Dz.js → flowDiagram-NV44I4VS-m7ofIhri.js} +81 -98
- package/webapp/dist/assets/flowDiagram-NV44I4VS-m7ofIhri.js.map +1 -0
- package/webapp/dist/assets/{ganttDiagram-A5KZAMGK-nrcHWWaM.js → ganttDiagram-JELNMOA3-D9wS5Veb.js} +3 -28
- package/webapp/dist/assets/ganttDiagram-JELNMOA3-D9wS5Veb.js.map +1 -0
- package/webapp/dist/assets/{gitGraphDiagram-K3NZZRJ6-D8ivAqd6.js → gitGraphDiagram-V2S2FVAM-B86qqJx7.js} +46 -38
- package/webapp/dist/assets/gitGraphDiagram-V2S2FVAM-B86qqJx7.js.map +1 -0
- package/webapp/dist/assets/graph-u844GGQC.js +425 -0
- package/webapp/dist/assets/graph-u844GGQC.js.map +1 -0
- package/webapp/dist/assets/{index-DZFkLLVz.css → index-BGdI3lWA.css} +1 -1
- package/webapp/dist/assets/{index--fy89xGh.js → index-tinPEZoH.js} +1059 -1034
- package/webapp/dist/assets/{index--fy89xGh.js.map → index-tinPEZoH.js.map} +1 -1
- package/webapp/dist/assets/{infoDiagram-LFFYTUFH-PIoZHr7s.js → infoDiagram-HS3SLOUP-DwRPUctP.js} +7 -7
- package/webapp/dist/assets/infoDiagram-HS3SLOUP-DwRPUctP.js.map +1 -0
- package/webapp/dist/assets/init-ZxktEp_H.js.map +1 -1
- package/webapp/dist/assets/{journeyDiagram-4ABVD52K-C2qidjQ5.js → journeyDiagram-XKPGCS4Q-B91ZO-ec.js} +5 -5
- package/webapp/dist/assets/journeyDiagram-XKPGCS4Q-B91ZO-ec.js.map +1 -0
- package/webapp/dist/assets/{kanban-definition-K7BYSVSG-Du0TC8WS.js → kanban-definition-3W4ZIXB7-CoogrZ07.js} +3 -5
- package/webapp/dist/assets/kanban-definition-3W4ZIXB7-CoogrZ07.js.map +1 -0
- package/webapp/dist/assets/{layout-VmEo1OEB.js → layout-BrzQmqFJ.js} +5 -5
- package/webapp/dist/assets/layout-BrzQmqFJ.js.map +1 -0
- package/webapp/dist/assets/{linear-B662YHAc.js → linear-C6H7K9Zy.js} +2 -2
- package/webapp/dist/assets/linear-C6H7K9Zy.js.map +1 -0
- package/webapp/dist/assets/{mindmap-definition-YRQLILUH-D7arZj95.js → mindmap-definition-VGOIOE7T-UDHZQkNZ.js} +5 -7
- package/webapp/dist/assets/mindmap-definition-VGOIOE7T-UDHZQkNZ.js.map +1 -0
- package/webapp/dist/assets/ordinal-CxptdPJm.js.map +1 -1
- package/webapp/dist/assets/{pieDiagram-SKSYHLDU-DvjPP4PA.js → pieDiagram-ADFJNKIX-M81uyQ1J.js} +8 -8
- package/webapp/dist/assets/pieDiagram-ADFJNKIX-M81uyQ1J.js.map +1 -0
- package/webapp/dist/assets/{quadrantDiagram-337W2JSQ-B_JUGMj_.js → quadrantDiagram-AYHSOK5B-ClzIh9Gb.js} +3 -3
- package/webapp/dist/assets/quadrantDiagram-AYHSOK5B-ClzIh9Gb.js.map +1 -0
- package/webapp/dist/assets/{requirementDiagram-Z7DCOOCP-DF0mpvE3.js → requirementDiagram-UZGBJVZJ-DLK3A-pn.js} +6 -16
- package/webapp/dist/assets/requirementDiagram-UZGBJVZJ-DLK3A-pn.js.map +1 -0
- package/webapp/dist/assets/{sankeyDiagram-WA2Y5GQK-CoXlxv00.js → sankeyDiagram-TZEHDZUN-CYqju8I1.js} +2 -2
- package/webapp/dist/assets/sankeyDiagram-TZEHDZUN-CYqju8I1.js.map +1 -0
- package/webapp/dist/assets/{sequenceDiagram-2WXFIKYE-DYqT5Pg7.js → sequenceDiagram-WL72ISMW-2guv6eOd.js} +201 -601
- package/webapp/dist/assets/sequenceDiagram-WL72ISMW-2guv6eOd.js.map +1 -0
- package/webapp/dist/assets/{stateDiagram-RAJIS63D-D9b1mN8-.js → stateDiagram-FKZM4ZOC-iujqSp0X.js} +9 -9
- package/webapp/dist/assets/stateDiagram-FKZM4ZOC-iujqSp0X.js.map +1 -0
- package/webapp/dist/assets/{stateDiagram-v2-FVOUBMTO-DNzgudL_.js → stateDiagram-v2-4FDKWEC3-BxzY81ky.js} +5 -5
- package/webapp/dist/assets/stateDiagram-v2-4FDKWEC3-BxzY81ky.js.map +1 -0
- package/webapp/dist/assets/{timeline-definition-YZTLITO2-CkyKUY7A.js → timeline-definition-IT6M3QCI-DjCFSC8d.js} +3 -3
- package/webapp/dist/assets/timeline-definition-IT6M3QCI-DjCFSC8d.js.map +1 -0
- package/webapp/dist/assets/{treemap-KZPCXAKY-CZd09kF-.js → treemap-GDKQZRPO-iaBzDWCP.js} +24 -37
- package/webapp/dist/assets/treemap-GDKQZRPO-iaBzDWCP.js.map +1 -0
- package/webapp/dist/assets/{xychartDiagram-JWTSCODW-BRwRloPc.js → xychartDiagram-PRI3JC2R-R6Jl1c89.js} +4 -4
- package/webapp/dist/assets/xychartDiagram-PRI3JC2R-R6Jl1c89.js.map +1 -0
- package/webapp/dist/index.html +2 -2
- package/webapp/dist/assets/_basePickBy-B7M9Q0Fa.js.map +0 -1
- package/webapp/dist/assets/_baseUniq-DAeYoL6j.js.map +0 -1
- package/webapp/dist/assets/arc-Bh4nDbNR.js.map +0 -1
- package/webapp/dist/assets/architectureDiagram-2XIMDMQ5-CxqmdsIm.js.map +0 -1
- package/webapp/dist/assets/blockDiagram-WCTKOSBZ-CxIWLtpt.js.map +0 -1
- package/webapp/dist/assets/c4Diagram-IC4MRINW-1qErOIgG.js.map +0 -1
- package/webapp/dist/assets/channel-DkgZHNUe.js.map +0 -1
- package/webapp/dist/assets/chunk-4BX2VUAB-BmdMbU9v.js.map +0 -1
- package/webapp/dist/assets/chunk-55IACEB6-D6LDTDBy.js.map +0 -1
- package/webapp/dist/assets/chunk-FMBD7UC4-C-BdCe4C.js.map +0 -1
- package/webapp/dist/assets/chunk-JSJVCQXG-WA_BLIm9.js.map +0 -1
- package/webapp/dist/assets/chunk-KX2RTZJC-CA7sDJO5.js.map +0 -1
- package/webapp/dist/assets/chunk-NQ4KR5QH-wlvxalE3.js.map +0 -1
- package/webapp/dist/assets/chunk-QZHKN3VN-Bo1VMcph.js.map +0 -1
- package/webapp/dist/assets/chunk-WL4C6EOR-B-Pk44be.js.map +0 -1
- package/webapp/dist/assets/classDiagram-VBA2DB6C-BqKuyb49.js.map +0 -1
- package/webapp/dist/assets/classDiagram-v2-RAHNMMFH-BqKuyb49.js.map +0 -1
- package/webapp/dist/assets/clone-BX5z8WVZ.js.map +0 -1
- package/webapp/dist/assets/cose-bilkent-S5V4N54A-B-s11SgN.js.map +0 -1
- package/webapp/dist/assets/dagre-KLK3FWXG-DmQFV2qK.js.map +0 -1
- package/webapp/dist/assets/diagram-E7M64L7V-QRaBfST8.js.map +0 -1
- package/webapp/dist/assets/diagram-IFDJBPK2-lrWn1Obo.js.map +0 -1
- package/webapp/dist/assets/diagram-P4PSJMXO-sTU7Hh-Y.js.map +0 -1
- package/webapp/dist/assets/erDiagram-INFDFZHY-Cx6jc9Wq.js.map +0 -1
- package/webapp/dist/assets/flowDiagram-PKNHOUZH-DfGI49Dz.js.map +0 -1
- package/webapp/dist/assets/ganttDiagram-A5KZAMGK-nrcHWWaM.js.map +0 -1
- package/webapp/dist/assets/gitGraphDiagram-K3NZZRJ6-D8ivAqd6.js.map +0 -1
- package/webapp/dist/assets/graph-R5G-y8tB.js +0 -782
- package/webapp/dist/assets/graph-R5G-y8tB.js.map +0 -1
- package/webapp/dist/assets/infoDiagram-LFFYTUFH-PIoZHr7s.js.map +0 -1
- package/webapp/dist/assets/ishikawaDiagram-PHBUUO56-oCM-LYk1.js +0 -966
- package/webapp/dist/assets/ishikawaDiagram-PHBUUO56-oCM-LYk1.js.map +0 -1
- package/webapp/dist/assets/journeyDiagram-4ABVD52K-C2qidjQ5.js.map +0 -1
- package/webapp/dist/assets/kanban-definition-K7BYSVSG-Du0TC8WS.js.map +0 -1
- package/webapp/dist/assets/layout-VmEo1OEB.js.map +0 -1
- package/webapp/dist/assets/linear-B662YHAc.js.map +0 -1
- package/webapp/dist/assets/mindmap-definition-YRQLILUH-D7arZj95.js.map +0 -1
- package/webapp/dist/assets/pieDiagram-SKSYHLDU-DvjPP4PA.js.map +0 -1
- package/webapp/dist/assets/quadrantDiagram-337W2JSQ-B_JUGMj_.js.map +0 -1
- package/webapp/dist/assets/requirementDiagram-Z7DCOOCP-DF0mpvE3.js.map +0 -1
- package/webapp/dist/assets/sankeyDiagram-WA2Y5GQK-CoXlxv00.js.map +0 -1
- package/webapp/dist/assets/sequenceDiagram-2WXFIKYE-DYqT5Pg7.js.map +0 -1
- package/webapp/dist/assets/stateDiagram-RAJIS63D-D9b1mN8-.js.map +0 -1
- package/webapp/dist/assets/stateDiagram-v2-FVOUBMTO-DNzgudL_.js.map +0 -1
- package/webapp/dist/assets/timeline-definition-YZTLITO2-CkyKUY7A.js.map +0 -1
- package/webapp/dist/assets/treemap-KZPCXAKY-CZd09kF-.js.map +0 -1
- package/webapp/dist/assets/vennDiagram-LZ73GAT5-BxVF5Olo.js +0 -2487
- package/webapp/dist/assets/vennDiagram-LZ73GAT5-BxVF5Olo.js.map +0 -1
- package/webapp/dist/assets/xychartDiagram-JWTSCODW-BRwRloPc.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-ClEaFABE.js","assets/graph-u844GGQC.js","assets/_baseUniq-DWzYqpN_.js","assets/layout-BrzQmqFJ.js","assets/_basePickBy-Dnh413xT.js","assets/clone-DOfPd4cz.js","assets/cose-bilkent-S5V4N54A-BYN-vqm8.js","assets/cytoscape.esm-Bm8DJGmZ.js","assets/c4Diagram-YG6GDRKO-ClHNu1Uo.js","assets/chunk-TZMSLE5B-D2g6Tj7Z.js","assets/flowDiagram-NV44I4VS-m7ofIhri.js","assets/chunk-FMBD7UC4-BJ1vT2se.js","assets/chunk-55IACEB6-DSCX9WCf.js","assets/chunk-QN33PNHL-CGyezTSD.js","assets/channel-BbWLVc8W.js","assets/erDiagram-Q2GNP2WA-ctHu5zQL.js","assets/gitGraphDiagram-V2S2FVAM-B86qqJx7.js","assets/chunk-4BX2VUAB-CItdSmZH.js","assets/chunk-QZHKN3VN-9xs15j8C.js","assets/treemap-GDKQZRPO-iaBzDWCP.js","assets/ganttDiagram-JELNMOA3-D9wS5Veb.js","assets/linear-C6H7K9Zy.js","assets/init-ZxktEp_H.js","assets/defaultLocale-B2RvLBDe.js","assets/infoDiagram-HS3SLOUP-DwRPUctP.js","assets/pieDiagram-ADFJNKIX-M81uyQ1J.js","assets/arc-vfBkNCOx.js","assets/ordinal-CxptdPJm.js","assets/quadrantDiagram-AYHSOK5B-ClzIh9Gb.js","assets/xychartDiagram-PRI3JC2R-R6Jl1c89.js","assets/requirementDiagram-UZGBJVZJ-DLK3A-pn.js","assets/sequenceDiagram-WL72ISMW-2guv6eOd.js","assets/classDiagram-2ON5EDUG-BQFGGJNm.js","assets/chunk-B4BG7PRW-5CRXFeD9.js","assets/classDiagram-v2-WZHVMYZB-BQFGGJNm.js","assets/stateDiagram-FKZM4ZOC-iujqSp0X.js","assets/chunk-DI55MBZ5-CRMf6XZu.js","assets/stateDiagram-v2-4FDKWEC3-BxzY81ky.js","assets/journeyDiagram-XKPGCS4Q-B91ZO-ec.js","assets/timeline-definition-IT6M3QCI-DjCFSC8d.js","assets/mindmap-definition-VGOIOE7T-UDHZQkNZ.js","assets/kanban-definition-3W4ZIXB7-CoogrZ07.js","assets/sankeyDiagram-TZEHDZUN-CYqju8I1.js","assets/diagram-S2PKOQOG-Bvw01OOG.js","assets/diagram-QEK2KX5R-BZjGFX-2.js","assets/blockDiagram-VD42YOAC-BqK1KM2m.js","assets/architectureDiagram-VXUJARFQ-DiUEBXOa.js","assets/diagram-PSM6KHXK-CM4hLE_0.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -5449,7 +5449,7 @@ const _createHooksMap = function _createHooksMap2() {
|
|
|
5449
5449
|
function createDOMPurify() {
|
|
5450
5450
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
5451
5451
|
const DOMPurify = (root2) => createDOMPurify(root2);
|
|
5452
|
-
DOMPurify.version = "3.3.
|
|
5452
|
+
DOMPurify.version = "3.3.2";
|
|
5453
5453
|
DOMPurify.removed = [];
|
|
5454
5454
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
5455
5455
|
DOMPurify.isSupported = false;
|
|
@@ -11385,9 +11385,9 @@ MarkdownIt.prototype.disable = function(list2, ignoreInvalid) {
|
|
|
11385
11385
|
}
|
|
11386
11386
|
return this;
|
|
11387
11387
|
};
|
|
11388
|
-
MarkdownIt.prototype.use = function(
|
|
11388
|
+
MarkdownIt.prototype.use = function(plugin22) {
|
|
11389
11389
|
const args = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
11390
|
-
|
|
11390
|
+
plugin22.apply(plugin22, args);
|
|
11391
11391
|
return this;
|
|
11392
11392
|
};
|
|
11393
11393
|
MarkdownIt.prototype.parse = function(src, env) {
|
|
@@ -12863,37 +12863,37 @@ function requireCore() {
|
|
|
12863
12863
|
const lang = getLanguage(name);
|
|
12864
12864
|
return lang && !lang.disableAutodetect;
|
|
12865
12865
|
}
|
|
12866
|
-
function upgradePluginAPI(
|
|
12867
|
-
if (
|
|
12868
|
-
|
|
12869
|
-
|
|
12866
|
+
function upgradePluginAPI(plugin22) {
|
|
12867
|
+
if (plugin22["before:highlightBlock"] && !plugin22["before:highlightElement"]) {
|
|
12868
|
+
plugin22["before:highlightElement"] = (data) => {
|
|
12869
|
+
plugin22["before:highlightBlock"](
|
|
12870
12870
|
Object.assign({ block: data.el }, data)
|
|
12871
12871
|
);
|
|
12872
12872
|
};
|
|
12873
12873
|
}
|
|
12874
|
-
if (
|
|
12875
|
-
|
|
12876
|
-
|
|
12874
|
+
if (plugin22["after:highlightBlock"] && !plugin22["after:highlightElement"]) {
|
|
12875
|
+
plugin22["after:highlightElement"] = (data) => {
|
|
12876
|
+
plugin22["after:highlightBlock"](
|
|
12877
12877
|
Object.assign({ block: data.el }, data)
|
|
12878
12878
|
);
|
|
12879
12879
|
};
|
|
12880
12880
|
}
|
|
12881
12881
|
}
|
|
12882
|
-
function addPlugin(
|
|
12883
|
-
upgradePluginAPI(
|
|
12884
|
-
plugins.push(
|
|
12882
|
+
function addPlugin(plugin22) {
|
|
12883
|
+
upgradePluginAPI(plugin22);
|
|
12884
|
+
plugins.push(plugin22);
|
|
12885
12885
|
}
|
|
12886
|
-
function removePlugin(
|
|
12887
|
-
const index = plugins.indexOf(
|
|
12886
|
+
function removePlugin(plugin22) {
|
|
12887
|
+
const index = plugins.indexOf(plugin22);
|
|
12888
12888
|
if (index !== -1) {
|
|
12889
12889
|
plugins.splice(index, 1);
|
|
12890
12890
|
}
|
|
12891
12891
|
}
|
|
12892
12892
|
function fire(event, args) {
|
|
12893
12893
|
const cb = event;
|
|
12894
|
-
plugins.forEach(function(
|
|
12895
|
-
if (
|
|
12896
|
-
|
|
12894
|
+
plugins.forEach(function(plugin22) {
|
|
12895
|
+
if (plugin22[cb]) {
|
|
12896
|
+
plugin22[cb](args);
|
|
12897
12897
|
}
|
|
12898
12898
|
});
|
|
12899
12899
|
}
|
|
@@ -64212,8 +64212,8 @@ class Settings {
|
|
|
64212
64212
|
}
|
|
64213
64213
|
}
|
|
64214
64214
|
class Style {
|
|
64215
|
-
constructor(
|
|
64216
|
-
this.id =
|
|
64215
|
+
constructor(id28, size, cramped) {
|
|
64216
|
+
this.id = id28;
|
|
64217
64217
|
this.size = size;
|
|
64218
64218
|
this.cramped = cramped;
|
|
64219
64219
|
}
|
|
@@ -64541,44 +64541,6 @@ var tallDelim = function tallDelim2(label, midHeight) {
|
|
|
64541
64541
|
throw new Error("Unknown stretchy delimiter.");
|
|
64542
64542
|
}
|
|
64543
64543
|
};
|
|
64544
|
-
class DocumentFragment {
|
|
64545
|
-
// Never used; needed for satisfying interface.
|
|
64546
|
-
constructor(children2) {
|
|
64547
|
-
this.children = children2;
|
|
64548
|
-
this.classes = [];
|
|
64549
|
-
this.height = 0;
|
|
64550
|
-
this.depth = 0;
|
|
64551
|
-
this.maxFontSize = 0;
|
|
64552
|
-
this.style = {};
|
|
64553
|
-
}
|
|
64554
|
-
hasClass(className) {
|
|
64555
|
-
return this.classes.includes(className);
|
|
64556
|
-
}
|
|
64557
|
-
/** Convert the fragment into a node. */
|
|
64558
|
-
toNode() {
|
|
64559
|
-
var frag = document.createDocumentFragment();
|
|
64560
|
-
for (var i2 = 0; i2 < this.children.length; i2++) {
|
|
64561
|
-
frag.appendChild(this.children[i2].toNode());
|
|
64562
|
-
}
|
|
64563
|
-
return frag;
|
|
64564
|
-
}
|
|
64565
|
-
/** Convert the fragment into HTML markup. */
|
|
64566
|
-
toMarkup() {
|
|
64567
|
-
var markup = "";
|
|
64568
|
-
for (var i2 = 0; i2 < this.children.length; i2++) {
|
|
64569
|
-
markup += this.children[i2].toMarkup();
|
|
64570
|
-
}
|
|
64571
|
-
return markup;
|
|
64572
|
-
}
|
|
64573
|
-
/**
|
|
64574
|
-
* Converts the math node into a string, similar to innerText. Applies to
|
|
64575
|
-
* MathDomNode's only.
|
|
64576
|
-
*/
|
|
64577
|
-
toText() {
|
|
64578
|
-
var toText = (child) => child.toText();
|
|
64579
|
-
return this.children.map(toText).join("");
|
|
64580
|
-
}
|
|
64581
|
-
}
|
|
64582
64544
|
var ptPerUnit = {
|
|
64583
64545
|
// https://en.wikibooks.org/wiki/LaTeX/Lengths and
|
|
64584
64546
|
// https://tex.stackexchange.com/a/8263
|
|
@@ -64962,7 +64924,6 @@ function assertSpan(group) {
|
|
|
64962
64924
|
throw new Error("Expected span<HtmlDomNode> but got " + String(group) + ".");
|
|
64963
64925
|
}
|
|
64964
64926
|
}
|
|
64965
|
-
var hasHtmlDomChildren = (node2) => node2 instanceof Span || node2 instanceof Anchor || node2 instanceof DocumentFragment;
|
|
64966
64927
|
var fontMetricsData = {
|
|
64967
64928
|
"AMS-Regular": {
|
|
64968
64929
|
"32": [0, 0, 0, 0, 0.25],
|
|
@@ -68070,6 +68031,44 @@ var wideCharacterFont = (wideChar2, mode) => {
|
|
|
68070
68031
|
throw new ParseError("Unsupported character: " + wideChar2);
|
|
68071
68032
|
}
|
|
68072
68033
|
};
|
|
68034
|
+
class DocumentFragment {
|
|
68035
|
+
// Never used; needed for satisfying interface.
|
|
68036
|
+
constructor(children2) {
|
|
68037
|
+
this.children = children2;
|
|
68038
|
+
this.classes = [];
|
|
68039
|
+
this.height = 0;
|
|
68040
|
+
this.depth = 0;
|
|
68041
|
+
this.maxFontSize = 0;
|
|
68042
|
+
this.style = {};
|
|
68043
|
+
}
|
|
68044
|
+
hasClass(className) {
|
|
68045
|
+
return this.classes.includes(className);
|
|
68046
|
+
}
|
|
68047
|
+
/** Convert the fragment into a node. */
|
|
68048
|
+
toNode() {
|
|
68049
|
+
var frag = document.createDocumentFragment();
|
|
68050
|
+
for (var i2 = 0; i2 < this.children.length; i2++) {
|
|
68051
|
+
frag.appendChild(this.children[i2].toNode());
|
|
68052
|
+
}
|
|
68053
|
+
return frag;
|
|
68054
|
+
}
|
|
68055
|
+
/** Convert the fragment into HTML markup. */
|
|
68056
|
+
toMarkup() {
|
|
68057
|
+
var markup = "";
|
|
68058
|
+
for (var i2 = 0; i2 < this.children.length; i2++) {
|
|
68059
|
+
markup += this.children[i2].toMarkup();
|
|
68060
|
+
}
|
|
68061
|
+
return markup;
|
|
68062
|
+
}
|
|
68063
|
+
/**
|
|
68064
|
+
* Converts the math node into a string, similar to innerText. Applies to
|
|
68065
|
+
* MathDomNode's only.
|
|
68066
|
+
*/
|
|
68067
|
+
toText() {
|
|
68068
|
+
var toText = (child) => child.toText();
|
|
68069
|
+
return this.children.map(toText).join("");
|
|
68070
|
+
}
|
|
68071
|
+
}
|
|
68073
68072
|
var lookupSymbol = function lookupSymbol2(value, fontName, mode) {
|
|
68074
68073
|
if (symbols[mode][value]) {
|
|
68075
68074
|
var replacement = symbols[mode][value].replace;
|
|
@@ -69770,14 +69769,6 @@ function checkSymbolNodeType(node2) {
|
|
|
69770
69769
|
}
|
|
69771
69770
|
return null;
|
|
69772
69771
|
}
|
|
69773
|
-
var getBaseSymbol = (group) => {
|
|
69774
|
-
if (group instanceof SymbolNode) {
|
|
69775
|
-
return group;
|
|
69776
|
-
}
|
|
69777
|
-
if (hasHtmlDomChildren(group) && group.children.length === 1) {
|
|
69778
|
-
return getBaseSymbol(group.children[0]);
|
|
69779
|
-
}
|
|
69780
|
-
};
|
|
69781
69772
|
var htmlBuilder$a = (grp, options) => {
|
|
69782
69773
|
var base2;
|
|
69783
69774
|
var group;
|
|
@@ -69796,8 +69787,9 @@ var htmlBuilder$a = (grp, options) => {
|
|
|
69796
69787
|
var mustShift = group.isShifty && isCharacterBox(base2);
|
|
69797
69788
|
var skew2 = 0;
|
|
69798
69789
|
if (mustShift) {
|
|
69799
|
-
var
|
|
69800
|
-
|
|
69790
|
+
var baseChar = getBaseElem(base2);
|
|
69791
|
+
var baseGroup = buildGroup$1(baseChar, options.havingCrampedStyle());
|
|
69792
|
+
skew2 = assertSymbolDomNode(baseGroup).skew;
|
|
69801
69793
|
}
|
|
69802
69794
|
var accentBelow = group.label === "\\c";
|
|
69803
69795
|
var clearance = accentBelow ? body.height + body.depth : Math.min(body.height, options.fontMetrics().xHeight);
|
|
@@ -78094,7 +78086,7 @@ var renderToHTMLTree = function renderToHTMLTree2(expression, options) {
|
|
|
78094
78086
|
return renderError(error2, expression, settings);
|
|
78095
78087
|
}
|
|
78096
78088
|
};
|
|
78097
|
-
var version = "0.16.
|
|
78089
|
+
var version = "0.16.37";
|
|
78098
78090
|
var __domTree = {
|
|
78099
78091
|
Span,
|
|
78100
78092
|
Anchor,
|
|
@@ -78324,6 +78316,147 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
78324
78316
|
return baseModule().catch(handlePreloadError);
|
|
78325
78317
|
});
|
|
78326
78318
|
};
|
|
78319
|
+
var package_default = {
|
|
78320
|
+
name: "mermaid",
|
|
78321
|
+
version: "11.12.3",
|
|
78322
|
+
description: "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",
|
|
78323
|
+
type: "module",
|
|
78324
|
+
module: "./dist/mermaid.core.mjs",
|
|
78325
|
+
types: "./dist/mermaid.d.ts",
|
|
78326
|
+
exports: {
|
|
78327
|
+
".": {
|
|
78328
|
+
types: "./dist/mermaid.d.ts",
|
|
78329
|
+
import: "./dist/mermaid.core.mjs",
|
|
78330
|
+
default: "./dist/mermaid.core.mjs"
|
|
78331
|
+
},
|
|
78332
|
+
"./*": "./*"
|
|
78333
|
+
},
|
|
78334
|
+
keywords: [
|
|
78335
|
+
"diagram",
|
|
78336
|
+
"markdown",
|
|
78337
|
+
"flowchart",
|
|
78338
|
+
"sequence diagram",
|
|
78339
|
+
"gantt",
|
|
78340
|
+
"class diagram",
|
|
78341
|
+
"git graph",
|
|
78342
|
+
"mindmap",
|
|
78343
|
+
"packet diagram",
|
|
78344
|
+
"c4 diagram",
|
|
78345
|
+
"er diagram",
|
|
78346
|
+
"pie chart",
|
|
78347
|
+
"pie diagram",
|
|
78348
|
+
"quadrant chart",
|
|
78349
|
+
"requirement diagram",
|
|
78350
|
+
"graph"
|
|
78351
|
+
],
|
|
78352
|
+
scripts: {
|
|
78353
|
+
clean: "rimraf dist",
|
|
78354
|
+
dev: "pnpm -w dev",
|
|
78355
|
+
"docs:code": "typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup",
|
|
78356
|
+
"docs:build": "rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts",
|
|
78357
|
+
"docs:verify": "pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify",
|
|
78358
|
+
"docs:pre:vitepress": "pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts",
|
|
78359
|
+
"docs:build:vitepress": "pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing",
|
|
78360
|
+
"docs:dev": 'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',
|
|
78361
|
+
"docs:dev:docker": 'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',
|
|
78362
|
+
"docs:serve": "pnpm docs:build:vitepress && vitepress serve src/vitepress",
|
|
78363
|
+
"docs:spellcheck": 'cspell "src/docs/**/*.md"',
|
|
78364
|
+
"docs:release-version": "tsx scripts/update-release-version.mts",
|
|
78365
|
+
"docs:verify-version": "tsx scripts/update-release-version.mts --verify",
|
|
78366
|
+
"types:build-config": "tsx scripts/create-types-from-json-schema.mts",
|
|
78367
|
+
"types:verify-config": "tsx scripts/create-types-from-json-schema.mts --verify",
|
|
78368
|
+
checkCircle: "npx madge --circular ./src",
|
|
78369
|
+
prepublishOnly: "pnpm docs:verify-version"
|
|
78370
|
+
},
|
|
78371
|
+
repository: {
|
|
78372
|
+
type: "git",
|
|
78373
|
+
url: "https://github.com/mermaid-js/mermaid"
|
|
78374
|
+
},
|
|
78375
|
+
author: "Knut Sveidqvist",
|
|
78376
|
+
license: "MIT",
|
|
78377
|
+
standard: {
|
|
78378
|
+
ignore: [
|
|
78379
|
+
"**/parser/*.js",
|
|
78380
|
+
"dist/**/*.js",
|
|
78381
|
+
"cypress/**/*.js"
|
|
78382
|
+
],
|
|
78383
|
+
globals: [
|
|
78384
|
+
"page"
|
|
78385
|
+
]
|
|
78386
|
+
},
|
|
78387
|
+
dependencies: {
|
|
78388
|
+
"@braintree/sanitize-url": "^7.1.1",
|
|
78389
|
+
"@iconify/utils": "^3.0.1",
|
|
78390
|
+
"@mermaid-js/parser": "workspace:^",
|
|
78391
|
+
"@types/d3": "^7.4.3",
|
|
78392
|
+
cytoscape: "^3.29.3",
|
|
78393
|
+
"cytoscape-cose-bilkent": "^4.1.0",
|
|
78394
|
+
"cytoscape-fcose": "^2.2.0",
|
|
78395
|
+
d3: "^7.9.0",
|
|
78396
|
+
"d3-sankey": "^0.12.3",
|
|
78397
|
+
"dagre-d3-es": "7.0.13",
|
|
78398
|
+
dayjs: "^1.11.18",
|
|
78399
|
+
dompurify: "^3.2.5",
|
|
78400
|
+
katex: "^0.16.22",
|
|
78401
|
+
khroma: "^2.1.0",
|
|
78402
|
+
"lodash-es": "^4.17.23",
|
|
78403
|
+
marked: "^16.2.1",
|
|
78404
|
+
roughjs: "^4.6.6",
|
|
78405
|
+
stylis: "^4.3.6",
|
|
78406
|
+
"ts-dedent": "^2.2.0",
|
|
78407
|
+
uuid: "^11.1.0"
|
|
78408
|
+
},
|
|
78409
|
+
devDependencies: {
|
|
78410
|
+
"@adobe/jsonschema2md": "^8.0.5",
|
|
78411
|
+
"@iconify/types": "^2.0.0",
|
|
78412
|
+
"@types/cytoscape": "^3.21.9",
|
|
78413
|
+
"@types/cytoscape-fcose": "^2.2.4",
|
|
78414
|
+
"@types/d3-sankey": "^0.12.4",
|
|
78415
|
+
"@types/d3-scale": "^4.0.9",
|
|
78416
|
+
"@types/d3-scale-chromatic": "^3.1.0",
|
|
78417
|
+
"@types/d3-selection": "^3.0.11",
|
|
78418
|
+
"@types/d3-shape": "^3.1.7",
|
|
78419
|
+
"@types/jsdom": "^21.1.7",
|
|
78420
|
+
"@types/katex": "^0.16.7",
|
|
78421
|
+
"@types/lodash-es": "^4.17.12",
|
|
78422
|
+
"@types/micromatch": "^4.0.9",
|
|
78423
|
+
"@types/stylis": "^4.2.7",
|
|
78424
|
+
"@types/uuid": "^10.0.0",
|
|
78425
|
+
ajv: "^8.17.1",
|
|
78426
|
+
canvas: "^3.1.2",
|
|
78427
|
+
chokidar: "3.6.0",
|
|
78428
|
+
concurrently: "^9.1.2",
|
|
78429
|
+
"csstree-validator": "^4.0.1",
|
|
78430
|
+
globby: "^14.1.0",
|
|
78431
|
+
jison: "^0.4.18",
|
|
78432
|
+
"js-base64": "^3.7.8",
|
|
78433
|
+
jsdom: "^26.1.0",
|
|
78434
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
78435
|
+
micromatch: "^4.0.8",
|
|
78436
|
+
"path-browserify": "^1.0.1",
|
|
78437
|
+
prettier: "^3.5.3",
|
|
78438
|
+
remark: "^15.0.1",
|
|
78439
|
+
"remark-frontmatter": "^5.0.0",
|
|
78440
|
+
"remark-gfm": "^4.0.1",
|
|
78441
|
+
rimraf: "^6.0.1",
|
|
78442
|
+
"start-server-and-test": "^2.0.13",
|
|
78443
|
+
"type-fest": "^4.35.0",
|
|
78444
|
+
typedoc: "^0.28.12",
|
|
78445
|
+
"typedoc-plugin-markdown": "^4.8.1",
|
|
78446
|
+
typescript: "~5.7.3",
|
|
78447
|
+
"unist-util-flatmap": "^1.0.0",
|
|
78448
|
+
"unist-util-visit": "^5.0.0",
|
|
78449
|
+
vitepress: "^1.6.4",
|
|
78450
|
+
"vitepress-plugin-search": "1.0.4-alpha.22"
|
|
78451
|
+
},
|
|
78452
|
+
files: [
|
|
78453
|
+
"dist/",
|
|
78454
|
+
"README.md"
|
|
78455
|
+
],
|
|
78456
|
+
publishConfig: {
|
|
78457
|
+
access: "public"
|
|
78458
|
+
}
|
|
78459
|
+
};
|
|
78327
78460
|
var dayjs_min$1 = { exports: {} };
|
|
78328
78461
|
var dayjs_min = dayjs_min$1.exports;
|
|
78329
78462
|
var hasRequiredDayjs_min;
|
|
@@ -79344,8 +79477,8 @@ var UnknownDiagramError = (_a2 = class extends Error {
|
|
|
79344
79477
|
var detectors = {};
|
|
79345
79478
|
var detectType$1 = /* @__PURE__ */ __name(function(text2, config2) {
|
|
79346
79479
|
text2 = text2.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
|
|
79347
|
-
for (const [key, { detector:
|
|
79348
|
-
const diagram2 =
|
|
79480
|
+
for (const [key, { detector: detector28 }] of Object.entries(detectors)) {
|
|
79481
|
+
const diagram2 = detector28(text2, config2);
|
|
79349
79482
|
if (diagram2) {
|
|
79350
79483
|
return key;
|
|
79351
79484
|
}
|
|
@@ -79355,16 +79488,16 @@ var detectType$1 = /* @__PURE__ */ __name(function(text2, config2) {
|
|
|
79355
79488
|
);
|
|
79356
79489
|
}, "detectType");
|
|
79357
79490
|
var registerLazyLoadedDiagrams = /* @__PURE__ */ __name((...diagrams2) => {
|
|
79358
|
-
for (const { id:
|
|
79359
|
-
addDetector(
|
|
79491
|
+
for (const { id: id28, detector: detector28, loader: loader28 } of diagrams2) {
|
|
79492
|
+
addDetector(id28, detector28, loader28);
|
|
79360
79493
|
}
|
|
79361
79494
|
}, "registerLazyLoadedDiagrams");
|
|
79362
|
-
var addDetector = /* @__PURE__ */ __name((key,
|
|
79495
|
+
var addDetector = /* @__PURE__ */ __name((key, detector28, loader28) => {
|
|
79363
79496
|
if (detectors[key]) {
|
|
79364
79497
|
log.warn(`Detector with key ${key} already exists. Overwriting.`);
|
|
79365
79498
|
}
|
|
79366
|
-
detectors[key] = { detector:
|
|
79367
|
-
log.debug(`Detector with key ${key} added${
|
|
79499
|
+
detectors[key] = { detector: detector28, loader: loader28 };
|
|
79500
|
+
log.debug(`Detector with key ${key} added${loader28 ? " with loader" : ""}`);
|
|
79368
79501
|
}, "addDetector");
|
|
79369
79502
|
var getDiagramLoader = /* @__PURE__ */ __name((key) => {
|
|
79370
79503
|
return detectors[key].loader;
|
|
@@ -79391,7 +79524,7 @@ var assignWithDepth = /* @__PURE__ */ __name((dst, src, { depth = 2, clobber = f
|
|
|
79391
79524
|
}
|
|
79392
79525
|
if (src !== void 0 && typeof dst === "object" && typeof src === "object") {
|
|
79393
79526
|
Object.keys(src).forEach((key) => {
|
|
79394
|
-
if (typeof src[key] === "object" &&
|
|
79527
|
+
if (typeof src[key] === "object" && (dst[key] === void 0 || typeof dst[key] === "object")) {
|
|
79395
79528
|
if (dst[key] === void 0) {
|
|
79396
79529
|
dst[key] = Array.isArray(src[key]) ? [] : {};
|
|
79397
79530
|
}
|
|
@@ -79572,16 +79705,6 @@ var Theme = (_b = class {
|
|
|
79572
79705
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
79573
79706
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
79574
79707
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
79575
|
-
this.venn1 = this.venn1 ?? adjust(this.primaryColor, { l: -30 });
|
|
79576
|
-
this.venn2 = this.venn2 ?? adjust(this.secondaryColor, { l: -30 });
|
|
79577
|
-
this.venn3 = this.venn3 ?? adjust(this.tertiaryColor, { l: -30 });
|
|
79578
|
-
this.venn4 = this.venn4 ?? adjust(this.primaryColor, { h: 60, l: -30 });
|
|
79579
|
-
this.venn5 = this.venn5 ?? adjust(this.primaryColor, { h: -60, l: -30 });
|
|
79580
|
-
this.venn6 = this.venn6 ?? adjust(this.secondaryColor, { h: 60, l: -30 });
|
|
79581
|
-
this.venn7 = this.venn7 ?? adjust(this.primaryColor, { h: 120, l: -30 });
|
|
79582
|
-
this.venn8 = this.venn8 ?? adjust(this.secondaryColor, { h: 120, l: -30 });
|
|
79583
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
79584
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
79585
79708
|
this.radar = {
|
|
79586
79709
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
79587
79710
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
@@ -79823,7 +79946,7 @@ var Theme2 = (_c = class {
|
|
|
79823
79946
|
this.taskTextOutsideColor = this.taskTextLightColor;
|
|
79824
79947
|
this.gridColor = this.mainContrastColor;
|
|
79825
79948
|
this.doneTaskBkgColor = this.mainContrastColor;
|
|
79826
|
-
this.taskTextDarkColor =
|
|
79949
|
+
this.taskTextDarkColor = this.darkTextColor;
|
|
79827
79950
|
this.archEdgeColor = this.lineColor;
|
|
79828
79951
|
this.archEdgeArrowColor = this.lineColor;
|
|
79829
79952
|
this.transitionColor = this.transitionColor || this.lineColor;
|
|
@@ -79889,21 +80012,16 @@ var Theme2 = (_c = class {
|
|
|
79889
80012
|
this["pie" + i2] = this["cScale" + i2];
|
|
79890
80013
|
}
|
|
79891
80014
|
this.pieTitleTextSize = this.pieTitleTextSize || "25px";
|
|
79892
|
-
this.pieTitleTextColor = this.pieTitleTextColor || this.
|
|
80015
|
+
this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor;
|
|
79893
80016
|
this.pieSectionTextSize = this.pieSectionTextSize || "17px";
|
|
79894
80017
|
this.pieSectionTextColor = this.pieSectionTextColor || this.textColor;
|
|
79895
80018
|
this.pieLegendTextSize = this.pieLegendTextSize || "17px";
|
|
79896
|
-
this.pieLegendTextColor = this.pieLegendTextColor || this.
|
|
80019
|
+
this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor;
|
|
79897
80020
|
this.pieStrokeColor = this.pieStrokeColor || "black";
|
|
79898
80021
|
this.pieStrokeWidth = this.pieStrokeWidth || "2px";
|
|
79899
80022
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
79900
80023
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
79901
80024
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
79902
|
-
for (let i2 = 0; i2 < 8; i2++) {
|
|
79903
|
-
this["venn" + (i2 + 1)] = this["venn" + (i2 + 1)] ?? lighten(this["cScale" + i2], 30);
|
|
79904
|
-
}
|
|
79905
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
79906
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
79907
80025
|
this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
|
|
79908
80026
|
this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
|
|
79909
80027
|
this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
|
|
@@ -80222,16 +80340,6 @@ var Theme3 = (_d = class {
|
|
|
80222
80340
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
80223
80341
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
80224
80342
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
80225
|
-
this.venn1 = this.venn1 ?? adjust(this.primaryColor, { l: -30 });
|
|
80226
|
-
this.venn2 = this.venn2 ?? adjust(this.secondaryColor, { l: -30 });
|
|
80227
|
-
this.venn3 = this.venn3 ?? adjust(this.tertiaryColor, { l: -40 });
|
|
80228
|
-
this.venn4 = this.venn4 ?? adjust(this.primaryColor, { h: 60, l: -30 });
|
|
80229
|
-
this.venn5 = this.venn5 ?? adjust(this.primaryColor, { h: -60, l: -30 });
|
|
80230
|
-
this.venn6 = this.venn6 ?? adjust(this.secondaryColor, { h: 60, l: -30 });
|
|
80231
|
-
this.venn7 = this.venn7 ?? adjust(this.primaryColor, { h: 120, l: -30 });
|
|
80232
|
-
this.venn8 = this.venn8 ?? adjust(this.secondaryColor, { h: 120, l: -30 });
|
|
80233
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
80234
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
80235
80343
|
this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
|
|
80236
80344
|
this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
|
|
80237
80345
|
this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
|
|
@@ -80533,16 +80641,6 @@ var Theme4 = (_e2 = class {
|
|
|
80533
80641
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
80534
80642
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
80535
80643
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
80536
|
-
this.venn1 = this.venn1 ?? adjust(this.primaryColor, { l: -30 });
|
|
80537
|
-
this.venn2 = this.venn2 ?? adjust(this.secondaryColor, { l: -30 });
|
|
80538
|
-
this.venn3 = this.venn3 ?? adjust(this.tertiaryColor, { l: -30 });
|
|
80539
|
-
this.venn4 = this.venn4 ?? adjust(this.primaryColor, { h: 60, l: -30 });
|
|
80540
|
-
this.venn5 = this.venn5 ?? adjust(this.primaryColor, { h: -60, l: -30 });
|
|
80541
|
-
this.venn6 = this.venn6 ?? adjust(this.secondaryColor, { h: 60, l: -30 });
|
|
80542
|
-
this.venn7 = this.venn7 ?? adjust(this.primaryColor, { h: 120, l: -30 });
|
|
80543
|
-
this.venn8 = this.venn8 ?? adjust(this.secondaryColor, { h: 120, l: -30 });
|
|
80544
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
80545
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
80546
80644
|
this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
|
|
80547
80645
|
this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
|
|
80548
80646
|
this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
|
|
@@ -80864,11 +80962,6 @@ var Theme5 = (_f = class {
|
|
|
80864
80962
|
this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px";
|
|
80865
80963
|
this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black";
|
|
80866
80964
|
this.pieOpacity = this.pieOpacity || "0.7";
|
|
80867
|
-
for (let i2 = 0; i2 < 8; i2++) {
|
|
80868
|
-
this["venn" + (i2 + 1)] = this["venn" + (i2 + 1)] ?? this["cScale" + i2];
|
|
80869
|
-
}
|
|
80870
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor;
|
|
80871
|
-
this.vennSetTextColor = this.vennSetTextColor ?? this.textColor;
|
|
80872
80965
|
this.quadrant1Fill = this.quadrant1Fill || this.primaryColor;
|
|
80873
80966
|
this.quadrant2Fill = this.quadrant2Fill || adjust(this.primaryColor, { r: 5, g: 5, b: 5 });
|
|
80874
80967
|
this.quadrant3Fill = this.quadrant3Fill || adjust(this.primaryColor, { r: 10, g: 10, b: 10 });
|
|
@@ -80997,7 +81090,7 @@ var config_schema_default = {
|
|
|
80997
81090
|
"bottom": 0
|
|
80998
81091
|
},
|
|
80999
81092
|
"diagramPadding": 8,
|
|
81000
|
-
"htmlLabels":
|
|
81093
|
+
"htmlLabels": true,
|
|
81001
81094
|
"nodeSpacing": 50,
|
|
81002
81095
|
"rankSpacing": 50,
|
|
81003
81096
|
"curve": "basis",
|
|
@@ -81228,10 +81321,6 @@ var config_schema_default = {
|
|
|
81228
81321
|
"maxNodeWidth": 200,
|
|
81229
81322
|
"layoutAlgorithm": "cose-bilkent"
|
|
81230
81323
|
},
|
|
81231
|
-
"ishikawa": {
|
|
81232
|
-
"useMaxWidth": true,
|
|
81233
|
-
"diagramPadding": 20
|
|
81234
|
-
},
|
|
81235
81324
|
"kanban": {
|
|
81236
81325
|
"useMaxWidth": true,
|
|
81237
81326
|
"padding": 8,
|
|
@@ -81459,13 +81548,6 @@ var config_schema_default = {
|
|
|
81459
81548
|
"axisLabelFactor": 1.05,
|
|
81460
81549
|
"curveTension": 0.17
|
|
81461
81550
|
},
|
|
81462
|
-
"venn": {
|
|
81463
|
-
"useMaxWidth": true,
|
|
81464
|
-
"width": 800,
|
|
81465
|
-
"height": 450,
|
|
81466
|
-
"padding": 8,
|
|
81467
|
-
"useDebugLayout": false
|
|
81468
|
-
},
|
|
81469
81551
|
"theme": "default",
|
|
81470
81552
|
"look": "classic",
|
|
81471
81553
|
"handDrawnSeed": 0,
|
|
@@ -81722,9 +81804,6 @@ var config = {
|
|
|
81722
81804
|
radar: {
|
|
81723
81805
|
...config_schema_default.radar
|
|
81724
81806
|
},
|
|
81725
|
-
ishikawa: {
|
|
81726
|
-
...config_schema_default.ishikawa
|
|
81727
|
-
},
|
|
81728
81807
|
treemap: {
|
|
81729
81808
|
useMaxWidth: true,
|
|
81730
81809
|
padding: 10,
|
|
@@ -81736,9 +81815,6 @@ var config = {
|
|
|
81736
81815
|
valueFontSize: 12,
|
|
81737
81816
|
labelFontSize: 14,
|
|
81738
81817
|
valueFormat: ","
|
|
81739
|
-
},
|
|
81740
|
-
venn: {
|
|
81741
|
-
...config_schema_default.venn
|
|
81742
81818
|
}
|
|
81743
81819
|
};
|
|
81744
81820
|
var keyify = /* @__PURE__ */ __name((obj, prefix = "") => Object.keys(obj).reduce((res, el) => {
|
|
@@ -81809,7 +81885,6 @@ var sanitizeCss = /* @__PURE__ */ __name((str2) => {
|
|
|
81809
81885
|
return str2;
|
|
81810
81886
|
}, "sanitizeCss");
|
|
81811
81887
|
var defaultConfig = Object.freeze(defaultConfig_default);
|
|
81812
|
-
var evaluate = /* @__PURE__ */ __name((val) => val === false || ["false", "null", "0"].includes(String(val).trim().toLowerCase()) ? false : true, "evaluate");
|
|
81813
81888
|
var siteConfig = assignWithDepth_default({}, defaultConfig);
|
|
81814
81889
|
var configFromInitialize;
|
|
81815
81890
|
var directives = [];
|
|
@@ -81904,8 +81979,7 @@ var reset = /* @__PURE__ */ __name((config2 = siteConfig) => {
|
|
|
81904
81979
|
updateCurrentConfig(config2, directives);
|
|
81905
81980
|
}, "reset");
|
|
81906
81981
|
var ConfigWarning = {
|
|
81907
|
-
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
|
|
81908
|
-
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
81982
|
+
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
|
|
81909
81983
|
};
|
|
81910
81984
|
var issuedWarnings = {};
|
|
81911
81985
|
var issueWarning = /* @__PURE__ */ __name((warning) => {
|
|
@@ -81933,12 +82007,6 @@ var getUserDefinedConfig = /* @__PURE__ */ __name(() => {
|
|
|
81933
82007
|
}
|
|
81934
82008
|
return userConfig;
|
|
81935
82009
|
}, "getUserDefinedConfig");
|
|
81936
|
-
var getEffectiveHtmlLabels = /* @__PURE__ */ __name((config2) => {
|
|
81937
|
-
if (config2.flowchart?.htmlLabels != void 0) {
|
|
81938
|
-
issueWarning("FLOWCHART_HTML_LABELS_DEPRECATED");
|
|
81939
|
-
}
|
|
81940
|
-
return evaluate(config2.htmlLabels ?? config2.flowchart?.htmlLabels ?? true);
|
|
81941
|
-
}, "getEffectiveHtmlLabels");
|
|
81942
82010
|
var lineBreakRegex = /<br\s*\/?>/gi;
|
|
81943
82011
|
var getRows = /* @__PURE__ */ __name((s2) => {
|
|
81944
82012
|
if (!s2) {
|
|
@@ -81980,9 +82048,9 @@ var removeScript = /* @__PURE__ */ __name((txt) => {
|
|
|
81980
82048
|
return sanitizedText;
|
|
81981
82049
|
}, "removeScript");
|
|
81982
82050
|
var sanitizeMore = /* @__PURE__ */ __name((text2, config2) => {
|
|
81983
|
-
if (
|
|
82051
|
+
if (config2.flowchart?.htmlLabels !== false) {
|
|
81984
82052
|
const level = config2.securityLevel;
|
|
81985
|
-
if (level === "antiscript" || level === "strict"
|
|
82053
|
+
if (level === "antiscript" || level === "strict") {
|
|
81986
82054
|
text2 = removeScript(text2);
|
|
81987
82055
|
} else if (level !== "loose") {
|
|
81988
82056
|
text2 = breakToPlaceholder(text2);
|
|
@@ -82032,6 +82100,7 @@ var getUrl = /* @__PURE__ */ __name((useAbsolute) => {
|
|
|
82032
82100
|
}
|
|
82033
82101
|
return url;
|
|
82034
82102
|
}, "getUrl");
|
|
82103
|
+
var evaluate = /* @__PURE__ */ __name((val) => val === false || ["false", "null", "0"].includes(String(val).trim().toLowerCase()) ? false : true, "evaluate");
|
|
82035
82104
|
var getMax = /* @__PURE__ */ __name(function(...values) {
|
|
82036
82105
|
const newValues = values.filter((value) => {
|
|
82037
82106
|
return !isNaN(value);
|
|
@@ -82320,15 +82389,15 @@ var getCommonDb = /* @__PURE__ */ __name(() => {
|
|
|
82320
82389
|
return commonDb_exports;
|
|
82321
82390
|
}, "getCommonDb");
|
|
82322
82391
|
var diagrams = {};
|
|
82323
|
-
var registerDiagram = /* @__PURE__ */ __name((
|
|
82324
|
-
if (diagrams[
|
|
82325
|
-
log2.warn(`Diagram with id ${
|
|
82392
|
+
var registerDiagram = /* @__PURE__ */ __name((id28, diagram2, detector28) => {
|
|
82393
|
+
if (diagrams[id28]) {
|
|
82394
|
+
log2.warn(`Diagram with id ${id28} already registered. Overwriting.`);
|
|
82326
82395
|
}
|
|
82327
|
-
diagrams[
|
|
82328
|
-
if (
|
|
82329
|
-
addDetector(
|
|
82396
|
+
diagrams[id28] = diagram2;
|
|
82397
|
+
if (detector28) {
|
|
82398
|
+
addDetector(id28, detector28);
|
|
82330
82399
|
}
|
|
82331
|
-
addStylesForDiagram(
|
|
82400
|
+
addStylesForDiagram(id28, diagram2.styles);
|
|
82332
82401
|
diagram2.injectUtils?.(
|
|
82333
82402
|
log2,
|
|
82334
82403
|
setLogLevel2,
|
|
@@ -83729,11 +83798,11 @@ var STARTED = 3;
|
|
|
83729
83798
|
var RUNNING = 4;
|
|
83730
83799
|
var ENDING = 5;
|
|
83731
83800
|
var ENDED = 6;
|
|
83732
|
-
function schedule(node2, name,
|
|
83801
|
+
function schedule(node2, name, id28, index, group, timing) {
|
|
83733
83802
|
var schedules = node2.__transition;
|
|
83734
83803
|
if (!schedules) node2.__transition = {};
|
|
83735
|
-
else if (
|
|
83736
|
-
create(node2,
|
|
83804
|
+
else if (id28 in schedules) return;
|
|
83805
|
+
create(node2, id28, {
|
|
83737
83806
|
name,
|
|
83738
83807
|
index,
|
|
83739
83808
|
// For context during callback.
|
|
@@ -83749,24 +83818,24 @@ function schedule(node2, name, id30, index, group, timing) {
|
|
|
83749
83818
|
state: CREATED
|
|
83750
83819
|
});
|
|
83751
83820
|
}
|
|
83752
|
-
function init$1(node2,
|
|
83753
|
-
var schedule2 = get(node2,
|
|
83821
|
+
function init$1(node2, id28) {
|
|
83822
|
+
var schedule2 = get(node2, id28);
|
|
83754
83823
|
if (schedule2.state > CREATED) throw new Error("too late; already scheduled");
|
|
83755
83824
|
return schedule2;
|
|
83756
83825
|
}
|
|
83757
|
-
function set$1(node2,
|
|
83758
|
-
var schedule2 = get(node2,
|
|
83826
|
+
function set$1(node2, id28) {
|
|
83827
|
+
var schedule2 = get(node2, id28);
|
|
83759
83828
|
if (schedule2.state > STARTED) throw new Error("too late; already running");
|
|
83760
83829
|
return schedule2;
|
|
83761
83830
|
}
|
|
83762
|
-
function get(node2,
|
|
83831
|
+
function get(node2, id28) {
|
|
83763
83832
|
var schedule2 = node2.__transition;
|
|
83764
|
-
if (!schedule2 || !(schedule2 = schedule2[
|
|
83833
|
+
if (!schedule2 || !(schedule2 = schedule2[id28])) throw new Error("transition not found");
|
|
83765
83834
|
return schedule2;
|
|
83766
83835
|
}
|
|
83767
|
-
function create(node2,
|
|
83836
|
+
function create(node2, id28, self2) {
|
|
83768
83837
|
var schedules = node2.__transition, tween;
|
|
83769
|
-
schedules[
|
|
83838
|
+
schedules[id28] = self2;
|
|
83770
83839
|
self2.timer = timer(schedule2, 0, self2.time);
|
|
83771
83840
|
function schedule2(elapsed) {
|
|
83772
83841
|
self2.state = SCHEDULED;
|
|
@@ -83785,7 +83854,7 @@ function create(node2, id30, self2) {
|
|
|
83785
83854
|
o2.timer.stop();
|
|
83786
83855
|
o2.on.call("interrupt", node2, node2.__data__, o2.index, o2.group);
|
|
83787
83856
|
delete schedules[i2];
|
|
83788
|
-
} else if (+i2 <
|
|
83857
|
+
} else if (+i2 < id28) {
|
|
83789
83858
|
o2.state = ENDED;
|
|
83790
83859
|
o2.timer.stop();
|
|
83791
83860
|
o2.on.call("cancel", node2, node2.__data__, o2.index, o2.group);
|
|
@@ -83824,7 +83893,7 @@ function create(node2, id30, self2) {
|
|
|
83824
83893
|
function stop() {
|
|
83825
83894
|
self2.state = ENDED;
|
|
83826
83895
|
self2.timer.stop();
|
|
83827
|
-
delete schedules[
|
|
83896
|
+
delete schedules[id28];
|
|
83828
83897
|
for (var i2 in schedules) return;
|
|
83829
83898
|
delete node2.__transition;
|
|
83830
83899
|
}
|
|
@@ -83851,10 +83920,10 @@ function selection_interrupt(name) {
|
|
|
83851
83920
|
interrupt(this, name);
|
|
83852
83921
|
});
|
|
83853
83922
|
}
|
|
83854
|
-
function tweenRemove(
|
|
83923
|
+
function tweenRemove(id28, name) {
|
|
83855
83924
|
var tween0, tween1;
|
|
83856
83925
|
return function() {
|
|
83857
|
-
var schedule2 = set$1(this,
|
|
83926
|
+
var schedule2 = set$1(this, id28), tween = schedule2.tween;
|
|
83858
83927
|
if (tween !== tween0) {
|
|
83859
83928
|
tween1 = tween0 = tween;
|
|
83860
83929
|
for (var i2 = 0, n2 = tween1.length; i2 < n2; ++i2) {
|
|
@@ -83868,11 +83937,11 @@ function tweenRemove(id30, name) {
|
|
|
83868
83937
|
schedule2.tween = tween1;
|
|
83869
83938
|
};
|
|
83870
83939
|
}
|
|
83871
|
-
function tweenFunction(
|
|
83940
|
+
function tweenFunction(id28, name, value) {
|
|
83872
83941
|
var tween0, tween1;
|
|
83873
83942
|
if (typeof value !== "function") throw new Error();
|
|
83874
83943
|
return function() {
|
|
83875
|
-
var schedule2 = set$1(this,
|
|
83944
|
+
var schedule2 = set$1(this, id28), tween = schedule2.tween;
|
|
83876
83945
|
if (tween !== tween0) {
|
|
83877
83946
|
tween1 = (tween0 = tween).slice();
|
|
83878
83947
|
for (var t2 = { name, value }, i2 = 0, n2 = tween1.length; i2 < n2; ++i2) {
|
|
@@ -83887,10 +83956,10 @@ function tweenFunction(id30, name, value) {
|
|
|
83887
83956
|
};
|
|
83888
83957
|
}
|
|
83889
83958
|
function transition_tween(name, value) {
|
|
83890
|
-
var
|
|
83959
|
+
var id28 = this._id;
|
|
83891
83960
|
name += "";
|
|
83892
83961
|
if (arguments.length < 2) {
|
|
83893
|
-
var tween = get(this.node(),
|
|
83962
|
+
var tween = get(this.node(), id28).tween;
|
|
83894
83963
|
for (var i2 = 0, n2 = tween.length, t2; i2 < n2; ++i2) {
|
|
83895
83964
|
if ((t2 = tween[i2]).name === name) {
|
|
83896
83965
|
return t2.value;
|
|
@@ -83898,16 +83967,16 @@ function transition_tween(name, value) {
|
|
|
83898
83967
|
}
|
|
83899
83968
|
return null;
|
|
83900
83969
|
}
|
|
83901
|
-
return this.each((value == null ? tweenRemove : tweenFunction)(
|
|
83970
|
+
return this.each((value == null ? tweenRemove : tweenFunction)(id28, name, value));
|
|
83902
83971
|
}
|
|
83903
83972
|
function tweenValue(transition, name, value) {
|
|
83904
|
-
var
|
|
83973
|
+
var id28 = transition._id;
|
|
83905
83974
|
transition.each(function() {
|
|
83906
|
-
var schedule2 = set$1(this,
|
|
83975
|
+
var schedule2 = set$1(this, id28);
|
|
83907
83976
|
(schedule2.value || (schedule2.value = {}))[name] = value.apply(this, arguments);
|
|
83908
83977
|
});
|
|
83909
83978
|
return function(node2) {
|
|
83910
|
-
return get(node2,
|
|
83979
|
+
return get(node2, id28).value[name];
|
|
83911
83980
|
};
|
|
83912
83981
|
}
|
|
83913
83982
|
function interpolate(a2, b2) {
|
|
@@ -84000,49 +84069,49 @@ function transition_attrTween(name, value) {
|
|
|
84000
84069
|
var fullname = namespace(name);
|
|
84001
84070
|
return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
|
|
84002
84071
|
}
|
|
84003
|
-
function delayFunction(
|
|
84072
|
+
function delayFunction(id28, value) {
|
|
84004
84073
|
return function() {
|
|
84005
|
-
init$1(this,
|
|
84074
|
+
init$1(this, id28).delay = +value.apply(this, arguments);
|
|
84006
84075
|
};
|
|
84007
84076
|
}
|
|
84008
|
-
function delayConstant(
|
|
84077
|
+
function delayConstant(id28, value) {
|
|
84009
84078
|
return value = +value, function() {
|
|
84010
|
-
init$1(this,
|
|
84079
|
+
init$1(this, id28).delay = value;
|
|
84011
84080
|
};
|
|
84012
84081
|
}
|
|
84013
84082
|
function transition_delay(value) {
|
|
84014
|
-
var
|
|
84015
|
-
return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(
|
|
84083
|
+
var id28 = this._id;
|
|
84084
|
+
return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(id28, value)) : get(this.node(), id28).delay;
|
|
84016
84085
|
}
|
|
84017
|
-
function durationFunction(
|
|
84086
|
+
function durationFunction(id28, value) {
|
|
84018
84087
|
return function() {
|
|
84019
|
-
set$1(this,
|
|
84088
|
+
set$1(this, id28).duration = +value.apply(this, arguments);
|
|
84020
84089
|
};
|
|
84021
84090
|
}
|
|
84022
|
-
function durationConstant(
|
|
84091
|
+
function durationConstant(id28, value) {
|
|
84023
84092
|
return value = +value, function() {
|
|
84024
|
-
set$1(this,
|
|
84093
|
+
set$1(this, id28).duration = value;
|
|
84025
84094
|
};
|
|
84026
84095
|
}
|
|
84027
84096
|
function transition_duration(value) {
|
|
84028
|
-
var
|
|
84029
|
-
return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(
|
|
84097
|
+
var id28 = this._id;
|
|
84098
|
+
return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id28, value)) : get(this.node(), id28).duration;
|
|
84030
84099
|
}
|
|
84031
|
-
function easeConstant(
|
|
84100
|
+
function easeConstant(id28, value) {
|
|
84032
84101
|
if (typeof value !== "function") throw new Error();
|
|
84033
84102
|
return function() {
|
|
84034
|
-
set$1(this,
|
|
84103
|
+
set$1(this, id28).ease = value;
|
|
84035
84104
|
};
|
|
84036
84105
|
}
|
|
84037
84106
|
function transition_ease(value) {
|
|
84038
|
-
var
|
|
84039
|
-
return arguments.length ? this.each(easeConstant(
|
|
84107
|
+
var id28 = this._id;
|
|
84108
|
+
return arguments.length ? this.each(easeConstant(id28, value)) : get(this.node(), id28).ease;
|
|
84040
84109
|
}
|
|
84041
|
-
function easeVarying(
|
|
84110
|
+
function easeVarying(id28, value) {
|
|
84042
84111
|
return function() {
|
|
84043
84112
|
var v2 = value.apply(this, arguments);
|
|
84044
84113
|
if (typeof v2 !== "function") throw new Error();
|
|
84045
|
-
set$1(this,
|
|
84114
|
+
set$1(this, id28).ease = v2;
|
|
84046
84115
|
};
|
|
84047
84116
|
}
|
|
84048
84117
|
function transition_easeVarying(value) {
|
|
@@ -84081,22 +84150,22 @@ function start(name) {
|
|
|
84081
84150
|
return !t2 || t2 === "start";
|
|
84082
84151
|
});
|
|
84083
84152
|
}
|
|
84084
|
-
function onFunction(
|
|
84153
|
+
function onFunction(id28, name, listener) {
|
|
84085
84154
|
var on0, on1, sit = start(name) ? init$1 : set$1;
|
|
84086
84155
|
return function() {
|
|
84087
|
-
var schedule2 = sit(this,
|
|
84156
|
+
var schedule2 = sit(this, id28), on = schedule2.on;
|
|
84088
84157
|
if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);
|
|
84089
84158
|
schedule2.on = on1;
|
|
84090
84159
|
};
|
|
84091
84160
|
}
|
|
84092
84161
|
function transition_on(name, listener) {
|
|
84093
|
-
var
|
|
84094
|
-
return arguments.length < 2 ? get(this.node(),
|
|
84162
|
+
var id28 = this._id;
|
|
84163
|
+
return arguments.length < 2 ? get(this.node(), id28).on.on(name) : this.each(onFunction(id28, name, listener));
|
|
84095
84164
|
}
|
|
84096
|
-
function removeFunction(
|
|
84165
|
+
function removeFunction(id28) {
|
|
84097
84166
|
return function() {
|
|
84098
84167
|
var parent = this.parentNode;
|
|
84099
|
-
for (var i2 in this.__transition) if (+i2 !==
|
|
84168
|
+
for (var i2 in this.__transition) if (+i2 !== id28) return;
|
|
84100
84169
|
if (parent) parent.removeChild(this);
|
|
84101
84170
|
};
|
|
84102
84171
|
}
|
|
@@ -84104,28 +84173,28 @@ function transition_remove() {
|
|
|
84104
84173
|
return this.on("end.remove", removeFunction(this._id));
|
|
84105
84174
|
}
|
|
84106
84175
|
function transition_select(select2) {
|
|
84107
|
-
var name = this._name,
|
|
84176
|
+
var name = this._name, id28 = this._id;
|
|
84108
84177
|
if (typeof select2 !== "function") select2 = selector(select2);
|
|
84109
84178
|
for (var groups = this._groups, m2 = groups.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
|
|
84110
84179
|
for (var group = groups[j2], n2 = group.length, subgroup = subgroups[j2] = new Array(n2), node2, subnode, i2 = 0; i2 < n2; ++i2) {
|
|
84111
84180
|
if ((node2 = group[i2]) && (subnode = select2.call(node2, node2.__data__, i2, group))) {
|
|
84112
84181
|
if ("__data__" in node2) subnode.__data__ = node2.__data__;
|
|
84113
84182
|
subgroup[i2] = subnode;
|
|
84114
|
-
schedule(subgroup[i2], name,
|
|
84183
|
+
schedule(subgroup[i2], name, id28, i2, subgroup, get(node2, id28));
|
|
84115
84184
|
}
|
|
84116
84185
|
}
|
|
84117
84186
|
}
|
|
84118
|
-
return new Transition(subgroups, this._parents, name,
|
|
84187
|
+
return new Transition(subgroups, this._parents, name, id28);
|
|
84119
84188
|
}
|
|
84120
84189
|
function transition_selectAll(select2) {
|
|
84121
|
-
var name = this._name,
|
|
84190
|
+
var name = this._name, id28 = this._id;
|
|
84122
84191
|
if (typeof select2 !== "function") select2 = selectorAll(select2);
|
|
84123
84192
|
for (var groups = this._groups, m2 = groups.length, subgroups = [], parents = [], j2 = 0; j2 < m2; ++j2) {
|
|
84124
84193
|
for (var group = groups[j2], n2 = group.length, node2, i2 = 0; i2 < n2; ++i2) {
|
|
84125
84194
|
if (node2 = group[i2]) {
|
|
84126
|
-
for (var children2 = select2.call(node2, node2.__data__, i2, group), child, inherit2 = get(node2,
|
|
84195
|
+
for (var children2 = select2.call(node2, node2.__data__, i2, group), child, inherit2 = get(node2, id28), k2 = 0, l4 = children2.length; k2 < l4; ++k2) {
|
|
84127
84196
|
if (child = children2[k2]) {
|
|
84128
|
-
schedule(child, name,
|
|
84197
|
+
schedule(child, name, id28, k2, children2, inherit2);
|
|
84129
84198
|
}
|
|
84130
84199
|
}
|
|
84131
84200
|
subgroups.push(children2);
|
|
@@ -84133,7 +84202,7 @@ function transition_selectAll(select2) {
|
|
|
84133
84202
|
}
|
|
84134
84203
|
}
|
|
84135
84204
|
}
|
|
84136
|
-
return new Transition(subgroups, parents, name,
|
|
84205
|
+
return new Transition(subgroups, parents, name, id28);
|
|
84137
84206
|
}
|
|
84138
84207
|
var Selection = selection.prototype.constructor;
|
|
84139
84208
|
function transition_selection() {
|
|
@@ -84166,10 +84235,10 @@ function styleFunction(name, interpolate2, value) {
|
|
|
84166
84235
|
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate2(string00 = string0, value1));
|
|
84167
84236
|
};
|
|
84168
84237
|
}
|
|
84169
|
-
function styleMaybeRemove(
|
|
84238
|
+
function styleMaybeRemove(id28, name) {
|
|
84170
84239
|
var on0, on1, listener0, key = "style." + name, event = "end." + key, remove2;
|
|
84171
84240
|
return function() {
|
|
84172
|
-
var schedule2 = set$1(this,
|
|
84241
|
+
var schedule2 = set$1(this, id28), on = schedule2.on, listener = schedule2.value[key] == null ? remove2 || (remove2 = styleRemove(name)) : void 0;
|
|
84173
84242
|
if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);
|
|
84174
84243
|
schedule2.on = on1;
|
|
84175
84244
|
};
|
|
@@ -84254,13 +84323,13 @@ function transition_transition() {
|
|
|
84254
84323
|
return new Transition(groups, this._parents, name, id1);
|
|
84255
84324
|
}
|
|
84256
84325
|
function transition_end() {
|
|
84257
|
-
var on0, on1, that = this,
|
|
84326
|
+
var on0, on1, that = this, id28 = that._id, size = that.size();
|
|
84258
84327
|
return new Promise(function(resolve, reject) {
|
|
84259
84328
|
var cancel = { value: reject }, end = { value: function() {
|
|
84260
84329
|
if (--size === 0) resolve();
|
|
84261
84330
|
} };
|
|
84262
84331
|
that.each(function() {
|
|
84263
|
-
var schedule2 = set$1(this,
|
|
84332
|
+
var schedule2 = set$1(this, id28), on = schedule2.on;
|
|
84264
84333
|
if (on !== on0) {
|
|
84265
84334
|
on1 = (on0 = on).copy();
|
|
84266
84335
|
on1._.cancel.push(cancel);
|
|
@@ -84273,11 +84342,11 @@ function transition_end() {
|
|
|
84273
84342
|
});
|
|
84274
84343
|
}
|
|
84275
84344
|
var id$2 = 0;
|
|
84276
|
-
function Transition(groups, parents, name,
|
|
84345
|
+
function Transition(groups, parents, name, id28) {
|
|
84277
84346
|
this._groups = groups;
|
|
84278
84347
|
this._parents = parents;
|
|
84279
84348
|
this._name = name;
|
|
84280
|
-
this._id =
|
|
84349
|
+
this._id = id28;
|
|
84281
84350
|
}
|
|
84282
84351
|
function newId() {
|
|
84283
84352
|
return ++id$2;
|
|
@@ -84325,30 +84394,30 @@ var defaultTiming = {
|
|
|
84325
84394
|
duration: 250,
|
|
84326
84395
|
ease: cubicInOut
|
|
84327
84396
|
};
|
|
84328
|
-
function inherit(node2,
|
|
84397
|
+
function inherit(node2, id28) {
|
|
84329
84398
|
var timing;
|
|
84330
|
-
while (!(timing = node2.__transition) || !(timing = timing[
|
|
84399
|
+
while (!(timing = node2.__transition) || !(timing = timing[id28])) {
|
|
84331
84400
|
if (!(node2 = node2.parentNode)) {
|
|
84332
|
-
throw new Error(`transition ${
|
|
84401
|
+
throw new Error(`transition ${id28} not found`);
|
|
84333
84402
|
}
|
|
84334
84403
|
}
|
|
84335
84404
|
return timing;
|
|
84336
84405
|
}
|
|
84337
84406
|
function selection_transition(name) {
|
|
84338
|
-
var
|
|
84407
|
+
var id28, timing;
|
|
84339
84408
|
if (name instanceof Transition) {
|
|
84340
|
-
|
|
84409
|
+
id28 = name._id, name = name._name;
|
|
84341
84410
|
} else {
|
|
84342
|
-
|
|
84411
|
+
id28 = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + "";
|
|
84343
84412
|
}
|
|
84344
84413
|
for (var groups = this._groups, m2 = groups.length, j2 = 0; j2 < m2; ++j2) {
|
|
84345
84414
|
for (var group = groups[j2], n2 = group.length, node2, i2 = 0; i2 < n2; ++i2) {
|
|
84346
84415
|
if (node2 = group[i2]) {
|
|
84347
|
-
schedule(node2, name,
|
|
84416
|
+
schedule(node2, name, id28, i2, group, timing || inherit(node2, id28));
|
|
84348
84417
|
}
|
|
84349
84418
|
}
|
|
84350
84419
|
}
|
|
84351
|
-
return new Transition(groups, this._parents, name,
|
|
84420
|
+
return new Transition(groups, this._parents, name, id28);
|
|
84352
84421
|
}
|
|
84353
84422
|
selection.prototype.interrupt = selection_interrupt;
|
|
84354
84423
|
selection.prototype.transition = selection_transition;
|
|
@@ -85453,15 +85522,15 @@ Transform.prototype = {
|
|
|
85453
85522
|
}
|
|
85454
85523
|
};
|
|
85455
85524
|
Transform.prototype;
|
|
85456
|
-
var selectSvgElement = /* @__PURE__ */ __name((
|
|
85525
|
+
var selectSvgElement = /* @__PURE__ */ __name((id28) => {
|
|
85457
85526
|
const { securityLevel } = getConfig2();
|
|
85458
85527
|
let root2 = select("body");
|
|
85459
85528
|
if (securityLevel === "sandbox") {
|
|
85460
|
-
const sandboxElement = select(`#i${
|
|
85529
|
+
const sandboxElement = select(`#i${id28}`);
|
|
85461
85530
|
const doc = sandboxElement.node()?.contentDocument ?? document;
|
|
85462
85531
|
root2 = select(doc.body);
|
|
85463
85532
|
}
|
|
85464
|
-
const svg2 = root2.select(`#${
|
|
85533
|
+
const svg2 = root2.select(`#${id28}`);
|
|
85465
85534
|
return svg2;
|
|
85466
85535
|
}, "selectSvgElement");
|
|
85467
85536
|
function isNothing(subject) {
|
|
@@ -86384,19 +86453,6 @@ function charFromCodepoint(c2) {
|
|
|
86384
86453
|
);
|
|
86385
86454
|
}
|
|
86386
86455
|
__name(charFromCodepoint, "charFromCodepoint");
|
|
86387
|
-
function setProperty(object, key, value) {
|
|
86388
|
-
if (key === "__proto__") {
|
|
86389
|
-
Object.defineProperty(object, key, {
|
|
86390
|
-
configurable: true,
|
|
86391
|
-
enumerable: true,
|
|
86392
|
-
writable: true,
|
|
86393
|
-
value
|
|
86394
|
-
});
|
|
86395
|
-
} else {
|
|
86396
|
-
object[key] = value;
|
|
86397
|
-
}
|
|
86398
|
-
}
|
|
86399
|
-
__name(setProperty, "setProperty");
|
|
86400
86456
|
var simpleEscapeCheck = new Array(256);
|
|
86401
86457
|
var simpleEscapeMap = new Array(256);
|
|
86402
86458
|
for (i$1 = 0; i$1 < 256; i$1++) {
|
|
@@ -86521,7 +86577,7 @@ function mergeMappings(state2, destination, source, overridableKeys) {
|
|
|
86521
86577
|
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
86522
86578
|
key = sourceKeys[index];
|
|
86523
86579
|
if (!_hasOwnProperty$1.call(destination, key)) {
|
|
86524
|
-
|
|
86580
|
+
destination[key] = source[key];
|
|
86525
86581
|
overridableKeys[key] = true;
|
|
86526
86582
|
}
|
|
86527
86583
|
}
|
|
@@ -86562,7 +86618,16 @@ function storeMappingPair(state2, _result, overridableKeys, keyTag, keyNode, val
|
|
|
86562
86618
|
state2.position = startPos || state2.position;
|
|
86563
86619
|
throwError(state2, "duplicated mapping key");
|
|
86564
86620
|
}
|
|
86565
|
-
|
|
86621
|
+
if (keyNode === "__proto__") {
|
|
86622
|
+
Object.defineProperty(_result, keyNode, {
|
|
86623
|
+
configurable: true,
|
|
86624
|
+
enumerable: true,
|
|
86625
|
+
writable: true,
|
|
86626
|
+
value: valueNode
|
|
86627
|
+
});
|
|
86628
|
+
} else {
|
|
86629
|
+
_result[keyNode] = valueNode;
|
|
86630
|
+
}
|
|
86566
86631
|
delete overridableKeys[keyNode];
|
|
86567
86632
|
}
|
|
86568
86633
|
return _result;
|
|
@@ -88154,14 +88219,6 @@ function renamed(from2, to) {
|
|
|
88154
88219
|
__name(renamed, "renamed");
|
|
88155
88220
|
var JSON_SCHEMA = json;
|
|
88156
88221
|
var load = loader$1.load;
|
|
88157
|
-
var computeLabelTransform = /* @__PURE__ */ __name((bbox, useHtmlLabels) => {
|
|
88158
|
-
if (useHtmlLabels) {
|
|
88159
|
-
return "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")";
|
|
88160
|
-
}
|
|
88161
|
-
const x2 = bbox.x ?? 0;
|
|
88162
|
-
const y3 = bbox.y ?? 0;
|
|
88163
|
-
return "translate(" + -(x2 + bbox.width / 2) + ", " + -(y3 + bbox.height / 2) + ")";
|
|
88164
|
-
}, "computeLabelTransform");
|
|
88165
88222
|
var markerOffsets = {
|
|
88166
88223
|
aggregation: 17.25,
|
|
88167
88224
|
extension: 17.25,
|
|
@@ -88271,6 +88328,113 @@ var getLineFunctionsWithOffset = /* @__PURE__ */ __name((edge) => {
|
|
|
88271
88328
|
}, "y")
|
|
88272
88329
|
};
|
|
88273
88330
|
}, "getLineFunctionsWithOffset");
|
|
88331
|
+
var getSubGraphTitleMargins = /* @__PURE__ */ __name(({
|
|
88332
|
+
flowchart
|
|
88333
|
+
}) => {
|
|
88334
|
+
const subGraphTitleTopMargin = flowchart?.subGraphTitleMargin?.top ?? 0;
|
|
88335
|
+
const subGraphTitleBottomMargin = flowchart?.subGraphTitleMargin?.bottom ?? 0;
|
|
88336
|
+
const subGraphTitleTotalMargin = subGraphTitleTopMargin + subGraphTitleBottomMargin;
|
|
88337
|
+
return {
|
|
88338
|
+
subGraphTitleTopMargin,
|
|
88339
|
+
subGraphTitleBottomMargin,
|
|
88340
|
+
subGraphTitleTotalMargin
|
|
88341
|
+
};
|
|
88342
|
+
}, "getSubGraphTitleMargins");
|
|
88343
|
+
var solidStateFill = /* @__PURE__ */ __name((color2) => {
|
|
88344
|
+
const { handDrawnSeed } = getConfig2();
|
|
88345
|
+
return {
|
|
88346
|
+
fill: color2,
|
|
88347
|
+
hachureAngle: 120,
|
|
88348
|
+
// angle of hachure,
|
|
88349
|
+
hachureGap: 4,
|
|
88350
|
+
fillWeight: 2,
|
|
88351
|
+
roughness: 0.7,
|
|
88352
|
+
stroke: color2,
|
|
88353
|
+
seed: handDrawnSeed
|
|
88354
|
+
};
|
|
88355
|
+
}, "solidStateFill");
|
|
88356
|
+
var compileStyles = /* @__PURE__ */ __name((node2) => {
|
|
88357
|
+
const stylesMap = styles2Map([
|
|
88358
|
+
...node2.cssCompiledStyles || [],
|
|
88359
|
+
...node2.cssStyles || [],
|
|
88360
|
+
...node2.labelStyle || []
|
|
88361
|
+
]);
|
|
88362
|
+
return { stylesMap, stylesArray: [...stylesMap] };
|
|
88363
|
+
}, "compileStyles");
|
|
88364
|
+
var styles2Map = /* @__PURE__ */ __name((styles2) => {
|
|
88365
|
+
const styleMap2 = /* @__PURE__ */ new Map();
|
|
88366
|
+
styles2.forEach((style2) => {
|
|
88367
|
+
const [key, value] = style2.split(":");
|
|
88368
|
+
styleMap2.set(key.trim(), value?.trim());
|
|
88369
|
+
});
|
|
88370
|
+
return styleMap2;
|
|
88371
|
+
}, "styles2Map");
|
|
88372
|
+
var isLabelStyle = /* @__PURE__ */ __name((key) => {
|
|
88373
|
+
return key === "color" || key === "font-size" || key === "font-family" || key === "font-weight" || key === "font-style" || key === "text-decoration" || key === "text-align" || key === "text-transform" || key === "line-height" || key === "letter-spacing" || key === "word-spacing" || key === "text-shadow" || key === "text-overflow" || key === "white-space" || key === "word-wrap" || key === "word-break" || key === "overflow-wrap" || key === "hyphens";
|
|
88374
|
+
}, "isLabelStyle");
|
|
88375
|
+
var styles2String = /* @__PURE__ */ __name((node2) => {
|
|
88376
|
+
const { stylesArray } = compileStyles(node2);
|
|
88377
|
+
const labelStyles = [];
|
|
88378
|
+
const nodeStyles = [];
|
|
88379
|
+
const borderStyles = [];
|
|
88380
|
+
const backgroundStyles = [];
|
|
88381
|
+
stylesArray.forEach((style2) => {
|
|
88382
|
+
const key = style2[0];
|
|
88383
|
+
if (isLabelStyle(key)) {
|
|
88384
|
+
labelStyles.push(style2.join(":") + " !important");
|
|
88385
|
+
} else {
|
|
88386
|
+
nodeStyles.push(style2.join(":") + " !important");
|
|
88387
|
+
if (key.includes("stroke")) {
|
|
88388
|
+
borderStyles.push(style2.join(":") + " !important");
|
|
88389
|
+
}
|
|
88390
|
+
if (key === "fill") {
|
|
88391
|
+
backgroundStyles.push(style2.join(":") + " !important");
|
|
88392
|
+
}
|
|
88393
|
+
}
|
|
88394
|
+
});
|
|
88395
|
+
return {
|
|
88396
|
+
labelStyles: labelStyles.join(";"),
|
|
88397
|
+
nodeStyles: nodeStyles.join(";"),
|
|
88398
|
+
stylesArray,
|
|
88399
|
+
borderStyles,
|
|
88400
|
+
backgroundStyles
|
|
88401
|
+
};
|
|
88402
|
+
}, "styles2String");
|
|
88403
|
+
var userNodeOverrides = /* @__PURE__ */ __name((node2, options) => {
|
|
88404
|
+
const { themeVariables, handDrawnSeed } = getConfig2();
|
|
88405
|
+
const { nodeBorder, mainBkg } = themeVariables;
|
|
88406
|
+
const { stylesMap } = compileStyles(node2);
|
|
88407
|
+
const result = Object.assign(
|
|
88408
|
+
{
|
|
88409
|
+
roughness: 0.7,
|
|
88410
|
+
fill: stylesMap.get("fill") || mainBkg,
|
|
88411
|
+
fillStyle: "hachure",
|
|
88412
|
+
// solid fill
|
|
88413
|
+
fillWeight: 4,
|
|
88414
|
+
hachureGap: 5.2,
|
|
88415
|
+
stroke: stylesMap.get("stroke") || nodeBorder,
|
|
88416
|
+
seed: handDrawnSeed,
|
|
88417
|
+
strokeWidth: stylesMap.get("stroke-width")?.replace("px", "") || 1.3,
|
|
88418
|
+
fillLineDash: [0, 0],
|
|
88419
|
+
strokeLineDash: getStrokeDashArray(stylesMap.get("stroke-dasharray"))
|
|
88420
|
+
},
|
|
88421
|
+
options
|
|
88422
|
+
);
|
|
88423
|
+
return result;
|
|
88424
|
+
}, "userNodeOverrides");
|
|
88425
|
+
var getStrokeDashArray = /* @__PURE__ */ __name((strokeDasharrayStyle) => {
|
|
88426
|
+
if (!strokeDasharrayStyle) {
|
|
88427
|
+
return [0, 0];
|
|
88428
|
+
}
|
|
88429
|
+
const dashArray = strokeDasharrayStyle.trim().split(/\s+/).map(Number);
|
|
88430
|
+
if (dashArray.length === 1) {
|
|
88431
|
+
const val = isNaN(dashArray[0]) ? 0 : dashArray[0];
|
|
88432
|
+
return [val, val];
|
|
88433
|
+
}
|
|
88434
|
+
const first = isNaN(dashArray[0]) ? 0 : dashArray[0];
|
|
88435
|
+
const second = isNaN(dashArray[1]) ? 0 : dashArray[1];
|
|
88436
|
+
return [first, second];
|
|
88437
|
+
}, "getStrokeDashArray");
|
|
88274
88438
|
var dist$1 = {};
|
|
88275
88439
|
var constants = {};
|
|
88276
88440
|
var hasRequiredConstants;
|
|
@@ -89602,9 +89766,9 @@ var getEdgeId = /* @__PURE__ */ __name((from2, to, {
|
|
|
89602
89766
|
counter = 0,
|
|
89603
89767
|
prefix,
|
|
89604
89768
|
suffix
|
|
89605
|
-
},
|
|
89606
|
-
if (
|
|
89607
|
-
return
|
|
89769
|
+
}, id28) => {
|
|
89770
|
+
if (id28) {
|
|
89771
|
+
return id28;
|
|
89608
89772
|
}
|
|
89609
89773
|
return `${prefix ? `${prefix}_` : ""}${from2}_${to}_${counter}${suffix ? `_${suffix}` : ""}`;
|
|
89610
89774
|
}, "getEdgeId");
|
|
@@ -89622,150 +89786,6 @@ function isLabelCoordinateInPath(point2, dAttr) {
|
|
|
89622
89786
|
return sanitizedD.includes(roundedX.toString()) || sanitizedD.includes(roundedY.toString());
|
|
89623
89787
|
}
|
|
89624
89788
|
__name(isLabelCoordinateInPath, "isLabelCoordinateInPath");
|
|
89625
|
-
var getSubGraphTitleMargins = /* @__PURE__ */ __name(({
|
|
89626
|
-
flowchart
|
|
89627
|
-
}) => {
|
|
89628
|
-
const subGraphTitleTopMargin = flowchart?.subGraphTitleMargin?.top ?? 0;
|
|
89629
|
-
const subGraphTitleBottomMargin = flowchart?.subGraphTitleMargin?.bottom ?? 0;
|
|
89630
|
-
const subGraphTitleTotalMargin = subGraphTitleTopMargin + subGraphTitleBottomMargin;
|
|
89631
|
-
return {
|
|
89632
|
-
subGraphTitleTopMargin,
|
|
89633
|
-
subGraphTitleBottomMargin,
|
|
89634
|
-
subGraphTitleTotalMargin
|
|
89635
|
-
};
|
|
89636
|
-
}, "getSubGraphTitleMargins");
|
|
89637
|
-
async function configureLabelImages(container, labelText) {
|
|
89638
|
-
const images = container.getElementsByTagName("img");
|
|
89639
|
-
if (!images || images.length === 0) {
|
|
89640
|
-
return;
|
|
89641
|
-
}
|
|
89642
|
-
const noImgText = labelText.replace(/<img[^>]*>/g, "").trim() === "";
|
|
89643
|
-
await Promise.all(
|
|
89644
|
-
[...images].map(
|
|
89645
|
-
(img) => new Promise((res) => {
|
|
89646
|
-
function setupImage() {
|
|
89647
|
-
img.style.display = "flex";
|
|
89648
|
-
img.style.flexDirection = "column";
|
|
89649
|
-
if (noImgText) {
|
|
89650
|
-
const bodyFontSize = getConfig2().fontSize ? getConfig2().fontSize : window.getComputedStyle(document.body).fontSize;
|
|
89651
|
-
const enlargingFactor = 5;
|
|
89652
|
-
const [parsedBodyFontSize = defaultConfig_default.fontSize] = parseFontSize(bodyFontSize);
|
|
89653
|
-
const width = parsedBodyFontSize * enlargingFactor + "px";
|
|
89654
|
-
img.style.minWidth = width;
|
|
89655
|
-
img.style.maxWidth = width;
|
|
89656
|
-
} else {
|
|
89657
|
-
img.style.width = "100%";
|
|
89658
|
-
}
|
|
89659
|
-
res(img);
|
|
89660
|
-
}
|
|
89661
|
-
__name(setupImage, "setupImage");
|
|
89662
|
-
setTimeout(() => {
|
|
89663
|
-
if (img.complete) {
|
|
89664
|
-
setupImage();
|
|
89665
|
-
}
|
|
89666
|
-
});
|
|
89667
|
-
img.addEventListener("error", setupImage);
|
|
89668
|
-
img.addEventListener("load", setupImage);
|
|
89669
|
-
})
|
|
89670
|
-
)
|
|
89671
|
-
);
|
|
89672
|
-
}
|
|
89673
|
-
__name(configureLabelImages, "configureLabelImages");
|
|
89674
|
-
var solidStateFill = /* @__PURE__ */ __name((color2) => {
|
|
89675
|
-
const { handDrawnSeed } = getConfig2();
|
|
89676
|
-
return {
|
|
89677
|
-
fill: color2,
|
|
89678
|
-
hachureAngle: 120,
|
|
89679
|
-
// angle of hachure,
|
|
89680
|
-
hachureGap: 4,
|
|
89681
|
-
fillWeight: 2,
|
|
89682
|
-
roughness: 0.7,
|
|
89683
|
-
stroke: color2,
|
|
89684
|
-
seed: handDrawnSeed
|
|
89685
|
-
};
|
|
89686
|
-
}, "solidStateFill");
|
|
89687
|
-
var compileStyles = /* @__PURE__ */ __name((node2) => {
|
|
89688
|
-
const stylesMap = styles2Map([
|
|
89689
|
-
...node2.cssCompiledStyles || [],
|
|
89690
|
-
...node2.cssStyles || [],
|
|
89691
|
-
...node2.labelStyle || []
|
|
89692
|
-
]);
|
|
89693
|
-
return { stylesMap, stylesArray: [...stylesMap] };
|
|
89694
|
-
}, "compileStyles");
|
|
89695
|
-
var styles2Map = /* @__PURE__ */ __name((styles2) => {
|
|
89696
|
-
const styleMap2 = /* @__PURE__ */ new Map();
|
|
89697
|
-
styles2.forEach((style2) => {
|
|
89698
|
-
const [key, value] = style2.split(":");
|
|
89699
|
-
styleMap2.set(key.trim(), value?.trim());
|
|
89700
|
-
});
|
|
89701
|
-
return styleMap2;
|
|
89702
|
-
}, "styles2Map");
|
|
89703
|
-
var isLabelStyle = /* @__PURE__ */ __name((key) => {
|
|
89704
|
-
return key === "color" || key === "font-size" || key === "font-family" || key === "font-weight" || key === "font-style" || key === "text-decoration" || key === "text-align" || key === "text-transform" || key === "line-height" || key === "letter-spacing" || key === "word-spacing" || key === "text-shadow" || key === "text-overflow" || key === "white-space" || key === "word-wrap" || key === "word-break" || key === "overflow-wrap" || key === "hyphens";
|
|
89705
|
-
}, "isLabelStyle");
|
|
89706
|
-
var styles2String = /* @__PURE__ */ __name((node2) => {
|
|
89707
|
-
const { stylesArray } = compileStyles(node2);
|
|
89708
|
-
const labelStyles = [];
|
|
89709
|
-
const nodeStyles = [];
|
|
89710
|
-
const borderStyles = [];
|
|
89711
|
-
const backgroundStyles = [];
|
|
89712
|
-
stylesArray.forEach((style2) => {
|
|
89713
|
-
const key = style2[0];
|
|
89714
|
-
if (isLabelStyle(key)) {
|
|
89715
|
-
labelStyles.push(style2.join(":") + " !important");
|
|
89716
|
-
} else {
|
|
89717
|
-
nodeStyles.push(style2.join(":") + " !important");
|
|
89718
|
-
if (key.includes("stroke")) {
|
|
89719
|
-
borderStyles.push(style2.join(":") + " !important");
|
|
89720
|
-
}
|
|
89721
|
-
if (key === "fill") {
|
|
89722
|
-
backgroundStyles.push(style2.join(":") + " !important");
|
|
89723
|
-
}
|
|
89724
|
-
}
|
|
89725
|
-
});
|
|
89726
|
-
return {
|
|
89727
|
-
labelStyles: labelStyles.join(";"),
|
|
89728
|
-
nodeStyles: nodeStyles.join(";"),
|
|
89729
|
-
stylesArray,
|
|
89730
|
-
borderStyles,
|
|
89731
|
-
backgroundStyles
|
|
89732
|
-
};
|
|
89733
|
-
}, "styles2String");
|
|
89734
|
-
var userNodeOverrides = /* @__PURE__ */ __name((node2, options) => {
|
|
89735
|
-
const { themeVariables, handDrawnSeed } = getConfig2();
|
|
89736
|
-
const { nodeBorder, mainBkg } = themeVariables;
|
|
89737
|
-
const { stylesMap } = compileStyles(node2);
|
|
89738
|
-
const result = Object.assign(
|
|
89739
|
-
{
|
|
89740
|
-
roughness: 0.7,
|
|
89741
|
-
fill: stylesMap.get("fill") || mainBkg,
|
|
89742
|
-
fillStyle: "hachure",
|
|
89743
|
-
// solid fill
|
|
89744
|
-
fillWeight: 4,
|
|
89745
|
-
hachureGap: 5.2,
|
|
89746
|
-
stroke: stylesMap.get("stroke") || nodeBorder,
|
|
89747
|
-
seed: handDrawnSeed,
|
|
89748
|
-
strokeWidth: stylesMap.get("stroke-width")?.replace("px", "") || 1.3,
|
|
89749
|
-
fillLineDash: [0, 0],
|
|
89750
|
-
strokeLineDash: getStrokeDashArray(stylesMap.get("stroke-dasharray"))
|
|
89751
|
-
},
|
|
89752
|
-
options
|
|
89753
|
-
);
|
|
89754
|
-
return result;
|
|
89755
|
-
}, "userNodeOverrides");
|
|
89756
|
-
var getStrokeDashArray = /* @__PURE__ */ __name((strokeDasharrayStyle) => {
|
|
89757
|
-
if (!strokeDasharrayStyle) {
|
|
89758
|
-
return [0, 0];
|
|
89759
|
-
}
|
|
89760
|
-
const dashArray = strokeDasharrayStyle.trim().split(/\s+/).map(Number);
|
|
89761
|
-
if (dashArray.length === 1) {
|
|
89762
|
-
const val = isNaN(dashArray[0]) ? 0 : dashArray[0];
|
|
89763
|
-
return [val, val];
|
|
89764
|
-
}
|
|
89765
|
-
const first = isNaN(dashArray[0]) ? 0 : dashArray[0];
|
|
89766
|
-
const second = isNaN(dashArray[1]) ? 0 : dashArray[1];
|
|
89767
|
-
return [first, second];
|
|
89768
|
-
}, "getStrokeDashArray");
|
|
89769
89789
|
const defaultIconDimensions = Object.freeze({
|
|
89770
89790
|
left: 0,
|
|
89771
89791
|
top: 0,
|
|
@@ -90028,11 +90048,11 @@ function iconToSVG(icon2, customisations) {
|
|
|
90028
90048
|
}
|
|
90029
90049
|
const regex = /\sid="(\S+)"/g;
|
|
90030
90050
|
const counters = /* @__PURE__ */ new Map();
|
|
90031
|
-
function nextID(
|
|
90032
|
-
|
|
90033
|
-
const count = counters.get(
|
|
90034
|
-
counters.set(
|
|
90035
|
-
return count ? `${
|
|
90051
|
+
function nextID(id28) {
|
|
90052
|
+
id28 = id28.replace(/[0-9]+$/, "") || "a";
|
|
90053
|
+
const count = counters.get(id28) || 0;
|
|
90054
|
+
counters.set(id28, count + 1);
|
|
90055
|
+
return count ? `${id28}${count}` : id28;
|
|
90036
90056
|
}
|
|
90037
90057
|
function replaceIDs(body) {
|
|
90038
90058
|
const ids = [];
|
|
@@ -90040,9 +90060,9 @@ function replaceIDs(body) {
|
|
|
90040
90060
|
while (match2 = regex.exec(body)) ids.push(match2[1]);
|
|
90041
90061
|
if (!ids.length) return body;
|
|
90042
90062
|
const suffix = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
90043
|
-
ids.forEach((
|
|
90044
|
-
const newID = nextID(
|
|
90045
|
-
const escapedID =
|
|
90063
|
+
ids.forEach((id28) => {
|
|
90064
|
+
const newID = nextID(id28);
|
|
90065
|
+
const escapedID = id28.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
90046
90066
|
body = body.replace(new RegExp('([#;"])(' + escapedID + ')([")]|\\.[a-z])', "g"), "$1" + newID + suffix + "$3");
|
|
90047
90067
|
});
|
|
90048
90068
|
body = body.replace(new RegExp(suffix, "g"), "");
|
|
@@ -91219,12 +91239,12 @@ var getRegisteredIconData = /* @__PURE__ */ __name(async (iconName, fallbackPref
|
|
|
91219
91239
|
}
|
|
91220
91240
|
let icons = iconsStore.get(prefix);
|
|
91221
91241
|
if (!icons) {
|
|
91222
|
-
const
|
|
91223
|
-
if (!
|
|
91242
|
+
const loader28 = loaderStore.get(prefix);
|
|
91243
|
+
if (!loader28) {
|
|
91224
91244
|
throw new Error(`Icon set not found: ${data.prefix}`);
|
|
91225
91245
|
}
|
|
91226
91246
|
try {
|
|
91227
|
-
const loaded = await
|
|
91247
|
+
const loaded = await loader28();
|
|
91228
91248
|
icons = { ...loaded, prefix };
|
|
91229
91249
|
iconsStore.set(prefix, icons);
|
|
91230
91250
|
} catch (e2) {
|
|
@@ -91265,15 +91285,12 @@ function preprocessMarkdown(markdown, { markdownAutoWrap }) {
|
|
|
91265
91285
|
const withoutBR = markdown.replace(/<br\/>/g, "\n");
|
|
91266
91286
|
const withoutMultipleNewlines = withoutBR.replace(/\n{2,}/g, "\n");
|
|
91267
91287
|
const withoutExtraSpaces = dedent(withoutMultipleNewlines);
|
|
91288
|
+
if (markdownAutoWrap === false) {
|
|
91289
|
+
return withoutExtraSpaces.replace(/ /g, " ");
|
|
91290
|
+
}
|
|
91268
91291
|
return withoutExtraSpaces;
|
|
91269
91292
|
}
|
|
91270
91293
|
__name(preprocessMarkdown, "preprocessMarkdown");
|
|
91271
|
-
function nonMarkdownToLines(nonMarkdownText) {
|
|
91272
|
-
return nonMarkdownText.split(/\\n|\n|<br\s*\/?>/gi).map(
|
|
91273
|
-
(line2) => line2.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((word) => ({ content: word, type: "normal" })) ?? []
|
|
91274
|
-
);
|
|
91275
|
-
}
|
|
91276
|
-
__name(nonMarkdownToLines, "nonMarkdownToLines");
|
|
91277
91294
|
function markdownToLines(markdown, config2 = {}) {
|
|
91278
91295
|
const preprocessedMarkdown = preprocessMarkdown(markdown, config2);
|
|
91279
91296
|
const nodes = k$1.lexer(preprocessedMarkdown);
|
|
@@ -91317,18 +91334,6 @@ function markdownToLines(markdown, config2 = {}) {
|
|
|
91317
91334
|
return lines;
|
|
91318
91335
|
}
|
|
91319
91336
|
__name(markdownToLines, "markdownToLines");
|
|
91320
|
-
function nonMarkdownToHTML(text2) {
|
|
91321
|
-
if (!text2) {
|
|
91322
|
-
return "";
|
|
91323
|
-
}
|
|
91324
|
-
return `<p>${/**
|
|
91325
|
-
* Replace new lines with <br /> tags.
|
|
91326
|
-
*
|
|
91327
|
-
* Unlike in markdown text, `\n` sequences are treated as line breaks here.
|
|
91328
|
-
*/
|
|
91329
|
-
text2.replace(/\\n|\n/g, "<br />")}</p>`;
|
|
91330
|
-
}
|
|
91331
|
-
__name(nonMarkdownToHTML, "nonMarkdownToHTML");
|
|
91332
91337
|
function markdownToHTML(markdown, { markdownAutoWrap } = {}) {
|
|
91333
91338
|
const nodes = k$1.lexer(markdown);
|
|
91334
91339
|
function output(node2) {
|
|
@@ -91432,32 +91437,29 @@ function splitLineToFitWidthRecursion(words, checkFit, lines = [], newLine = [])
|
|
|
91432
91437
|
return splitLineToFitWidthRecursion(words, checkFit, lines);
|
|
91433
91438
|
}
|
|
91434
91439
|
__name(splitLineToFitWidthRecursion, "splitLineToFitWidthRecursion");
|
|
91435
|
-
function applyStyle(dom, styleFn) {
|
|
91440
|
+
function applyStyle$1(dom, styleFn) {
|
|
91436
91441
|
if (styleFn) {
|
|
91437
91442
|
dom.attr("style", styleFn);
|
|
91438
91443
|
}
|
|
91439
91444
|
}
|
|
91440
|
-
__name(applyStyle, "applyStyle");
|
|
91441
|
-
var maxSafeSizeForWidth = 16384;
|
|
91445
|
+
__name(applyStyle$1, "applyStyle");
|
|
91442
91446
|
async function addHtmlSpan(element, node2, width, classes, addBackground = false, config2 = getConfig()) {
|
|
91443
91447
|
const fo = element.append("foreignObject");
|
|
91444
|
-
fo.attr("width", `${
|
|
91445
|
-
fo.attr("height", `${
|
|
91448
|
+
fo.attr("width", `${10 * width}px`);
|
|
91449
|
+
fo.attr("height", `${10 * width}px`);
|
|
91446
91450
|
const div = fo.append("xhtml:div");
|
|
91447
91451
|
const sanitizedLabel = hasKatex(node2.label) ? await renderKatexSanitized(node2.label.replace(common_default.lineBreakRegex, "\n"), config2) : sanitizeText(node2.label, config2);
|
|
91448
91452
|
const labelClass = node2.isNode ? "nodeLabel" : "edgeLabel";
|
|
91449
91453
|
const span = div.append("span");
|
|
91450
91454
|
span.html(sanitizedLabel);
|
|
91451
|
-
applyStyle(span, node2.labelStyle);
|
|
91455
|
+
applyStyle$1(span, node2.labelStyle);
|
|
91452
91456
|
span.attr("class", `${labelClass} ${classes}`);
|
|
91453
|
-
applyStyle(div, node2.labelStyle);
|
|
91457
|
+
applyStyle$1(div, node2.labelStyle);
|
|
91454
91458
|
div.style("display", "table-cell");
|
|
91455
91459
|
div.style("white-space", "nowrap");
|
|
91456
91460
|
div.style("line-height", "1.5");
|
|
91457
|
-
|
|
91458
|
-
|
|
91459
|
-
div.style("text-align", "center");
|
|
91460
|
-
}
|
|
91461
|
+
div.style("max-width", width + "px");
|
|
91462
|
+
div.style("text-align", "center");
|
|
91461
91463
|
div.attr("xmlns", "http://www.w3.org/1999/xhtml");
|
|
91462
91464
|
if (addBackground) {
|
|
91463
91465
|
div.attr("class", "labelBkg");
|
|
@@ -91472,12 +91474,8 @@ async function addHtmlSpan(element, node2, width, classes, addBackground = false
|
|
|
91472
91474
|
return fo.node();
|
|
91473
91475
|
}
|
|
91474
91476
|
__name(addHtmlSpan, "addHtmlSpan");
|
|
91475
|
-
function createTspan(textElement, lineIndex, lineHeight
|
|
91476
|
-
|
|
91477
|
-
if (centerText) {
|
|
91478
|
-
tspan.attr("text-anchor", "middle");
|
|
91479
|
-
}
|
|
91480
|
-
return tspan;
|
|
91477
|
+
function createTspan(textElement, lineIndex, lineHeight) {
|
|
91478
|
+
return textElement.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", lineIndex * lineHeight - 0.1 + "em").attr("dy", lineHeight + "em");
|
|
91481
91479
|
}
|
|
91482
91480
|
__name(createTspan, "createTspan");
|
|
91483
91481
|
function computeWidthOfText(parentNode, lineHeight, line2) {
|
|
@@ -91500,20 +91498,17 @@ function computeDimensionOfText(parentNode, lineHeight, text2) {
|
|
|
91500
91498
|
return textDimension;
|
|
91501
91499
|
}
|
|
91502
91500
|
__name(computeDimensionOfText, "computeDimensionOfText");
|
|
91503
|
-
function createFormattedText(width, g2, structuredText, addBackground = false
|
|
91501
|
+
function createFormattedText(width, g2, structuredText, addBackground = false) {
|
|
91504
91502
|
const lineHeight = 1.1;
|
|
91505
91503
|
const labelGroup = g2.append("g");
|
|
91506
91504
|
const bkg = labelGroup.insert("rect").attr("class", "background").attr("style", "stroke: none");
|
|
91507
91505
|
const textElement = labelGroup.append("text").attr("y", "-10.1");
|
|
91508
|
-
if (centerText) {
|
|
91509
|
-
textElement.attr("text-anchor", "middle");
|
|
91510
|
-
}
|
|
91511
91506
|
let lineIndex = 0;
|
|
91512
91507
|
for (const line2 of structuredText) {
|
|
91513
91508
|
const checkWidth = /* @__PURE__ */ __name((line22) => computeWidthOfText(labelGroup, lineHeight, line22) <= width, "checkWidth");
|
|
91514
91509
|
const linesUnderWidth = checkWidth(line2) ? [line2] : splitLineToFitWidth(line2, checkWidth);
|
|
91515
91510
|
for (const preparedLine of linesUnderWidth) {
|
|
91516
|
-
const tspan = createTspan(textElement, lineIndex, lineHeight
|
|
91511
|
+
const tspan = createTspan(textElement, lineIndex, lineHeight);
|
|
91517
91512
|
updateTextContentAndStyles(tspan, preparedLine);
|
|
91518
91513
|
lineIndex++;
|
|
91519
91514
|
}
|
|
@@ -91564,11 +91559,7 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
|
|
|
91564
91559
|
isTitle = false,
|
|
91565
91560
|
classes = "",
|
|
91566
91561
|
useHtmlLabels = true,
|
|
91567
|
-
markdown = true,
|
|
91568
91562
|
isNode = true,
|
|
91569
|
-
/**
|
|
91570
|
-
* The width to wrap the text within. Set to `Number.POSITIVE_INFINITY` for no wrapping.
|
|
91571
|
-
*/
|
|
91572
91563
|
width = 200,
|
|
91573
91564
|
addSvgBackground = false
|
|
91574
91565
|
} = {}, config2) => {
|
|
@@ -91584,7 +91575,7 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
|
|
|
91584
91575
|
addSvgBackground
|
|
91585
91576
|
);
|
|
91586
91577
|
if (useHtmlLabels) {
|
|
91587
|
-
const htmlText =
|
|
91578
|
+
const htmlText = markdownToHTML(text2, config2);
|
|
91588
91579
|
const decodedReplacedText = await replaceIconSubstring(decodeEntities(htmlText), config2);
|
|
91589
91580
|
const inputForKatex = text2.replace(/\\\\/g, "\\");
|
|
91590
91581
|
const node2 = {
|
|
@@ -91596,13 +91587,12 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
|
|
|
91596
91587
|
return vertexNode;
|
|
91597
91588
|
} else {
|
|
91598
91589
|
const sanitizeBR = text2.replace(/<br\s*\/?>/g, "<br/>");
|
|
91599
|
-
const structuredText =
|
|
91590
|
+
const structuredText = markdownToLines(sanitizeBR.replace("<br>", "<br/>"), config2);
|
|
91600
91591
|
const svgLabel = createFormattedText(
|
|
91601
91592
|
width,
|
|
91602
91593
|
el,
|
|
91603
91594
|
structuredText,
|
|
91604
|
-
text2 ? addSvgBackground : false
|
|
91605
|
-
!isNode
|
|
91595
|
+
text2 ? addSvgBackground : false
|
|
91606
91596
|
);
|
|
91607
91597
|
if (isNode) {
|
|
91608
91598
|
if (/stroke:/.exec(style2)) {
|
|
@@ -91616,11 +91606,6 @@ var createText = /* @__PURE__ */ __name(async (el, text2 = "", {
|
|
|
91616
91606
|
const edgeLabelTextStyle = style2.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
91617
91607
|
select(svgLabel).select("text").attr("style", edgeLabelTextStyle);
|
|
91618
91608
|
}
|
|
91619
|
-
if (isTitle) {
|
|
91620
|
-
select(svgLabel).selectAll("tspan.text-outer-tspan").classed("title-row", true);
|
|
91621
|
-
} else {
|
|
91622
|
-
select(svgLabel).selectAll("tspan.text-outer-tspan").classed("row", true);
|
|
91623
|
-
}
|
|
91624
91609
|
return svgLabel;
|
|
91625
91610
|
}
|
|
91626
91611
|
}, "createText");
|
|
@@ -92638,28 +92623,52 @@ var labelHelper = /* @__PURE__ */ __name(async (parent, node2, _classes) => {
|
|
|
92638
92623
|
} else {
|
|
92639
92624
|
label = typeof node2.label === "string" ? node2.label : node2.label[0];
|
|
92640
92625
|
}
|
|
92641
|
-
const
|
|
92642
|
-
|
|
92643
|
-
|
|
92644
|
-
|
|
92645
|
-
|
|
92646
|
-
|
|
92647
|
-
|
|
92648
|
-
|
|
92649
|
-
// @ts-expect-error -- This is currently not used. Should this be `classes` instead?
|
|
92650
|
-
cssClasses: isMarkdown ? "markdown-node-label" : void 0,
|
|
92651
|
-
style: node2.labelStyle,
|
|
92652
|
-
addSvgBackground: addBackground,
|
|
92653
|
-
markdown: isMarkdown
|
|
92654
|
-
},
|
|
92655
|
-
getConfig2()
|
|
92656
|
-
);
|
|
92626
|
+
const text2 = await createText(labelEl, sanitizeText(decodeEntities(label), getConfig2()), {
|
|
92627
|
+
useHtmlLabels,
|
|
92628
|
+
width: node2.width || getConfig2().flowchart?.wrappingWidth,
|
|
92629
|
+
// @ts-expect-error -- This is currently not used. Should this be `classes` instead?
|
|
92630
|
+
cssClasses: "markdown-node-label",
|
|
92631
|
+
style: node2.labelStyle,
|
|
92632
|
+
addSvgBackground: !!node2.icon || !!node2.img
|
|
92633
|
+
});
|
|
92657
92634
|
let bbox = text2.getBBox();
|
|
92658
92635
|
const halfPadding = (node2?.padding ?? 0) / 2;
|
|
92659
92636
|
if (useHtmlLabels) {
|
|
92660
92637
|
const div = text2.children[0];
|
|
92661
92638
|
const dv = select(text2);
|
|
92662
|
-
|
|
92639
|
+
const images = div.getElementsByTagName("img");
|
|
92640
|
+
if (images) {
|
|
92641
|
+
const noImgText = label.replace(/<img[^>]*>/g, "").trim() === "";
|
|
92642
|
+
await Promise.all(
|
|
92643
|
+
[...images].map(
|
|
92644
|
+
(img) => new Promise((res) => {
|
|
92645
|
+
function setupImage() {
|
|
92646
|
+
img.style.display = "flex";
|
|
92647
|
+
img.style.flexDirection = "column";
|
|
92648
|
+
if (noImgText) {
|
|
92649
|
+
const bodyFontSize = getConfig2().fontSize ? getConfig2().fontSize : window.getComputedStyle(document.body).fontSize;
|
|
92650
|
+
const enlargingFactor = 5;
|
|
92651
|
+
const [parsedBodyFontSize = defaultConfig_default.fontSize] = parseFontSize(bodyFontSize);
|
|
92652
|
+
const width = parsedBodyFontSize * enlargingFactor + "px";
|
|
92653
|
+
img.style.minWidth = width;
|
|
92654
|
+
img.style.maxWidth = width;
|
|
92655
|
+
} else {
|
|
92656
|
+
img.style.width = "100%";
|
|
92657
|
+
}
|
|
92658
|
+
res(img);
|
|
92659
|
+
}
|
|
92660
|
+
__name(setupImage, "setupImage");
|
|
92661
|
+
setTimeout(() => {
|
|
92662
|
+
if (img.complete) {
|
|
92663
|
+
setupImage();
|
|
92664
|
+
}
|
|
92665
|
+
});
|
|
92666
|
+
img.addEventListener("error", setupImage);
|
|
92667
|
+
img.addEventListener("load", setupImage);
|
|
92668
|
+
})
|
|
92669
|
+
)
|
|
92670
|
+
);
|
|
92671
|
+
}
|
|
92663
92672
|
bbox = div.getBoundingClientRect();
|
|
92664
92673
|
dv.attr("width", bbox.width);
|
|
92665
92674
|
dv.attr("height", bbox.height);
|
|
@@ -92676,7 +92685,7 @@ var labelHelper = /* @__PURE__ */ __name(async (parent, node2, _classes) => {
|
|
|
92676
92685
|
return { shapeSvg, bbox, halfPadding, label: labelEl };
|
|
92677
92686
|
}, "labelHelper");
|
|
92678
92687
|
var insertLabel = /* @__PURE__ */ __name(async (parent, label, options) => {
|
|
92679
|
-
const useHtmlLabels = options.useHtmlLabels
|
|
92688
|
+
const useHtmlLabels = options.useHtmlLabels || evaluate(getConfig2()?.flowchart?.htmlLabels);
|
|
92680
92689
|
const labelEl = parent.insert("g").attr("class", "label").attr("style", options.labelStyle || "");
|
|
92681
92690
|
const text2 = await createText(labelEl, sanitizeText(decodeEntities(label), getConfig2()), {
|
|
92682
92691
|
useHtmlLabels,
|
|
@@ -92686,7 +92695,7 @@ var insertLabel = /* @__PURE__ */ __name(async (parent, label, options) => {
|
|
|
92686
92695
|
});
|
|
92687
92696
|
let bbox = text2.getBBox();
|
|
92688
92697
|
const halfPadding = options.padding / 2;
|
|
92689
|
-
if (
|
|
92698
|
+
if (evaluate(getConfig2()?.flowchart?.htmlLabels)) {
|
|
92690
92699
|
const div = text2.children[0];
|
|
92691
92700
|
const dv = select(text2);
|
|
92692
92701
|
bbox = div.getBoundingClientRect();
|
|
@@ -92772,26 +92781,76 @@ var intersectRect = /* @__PURE__ */ __name((node2, point2) => {
|
|
|
92772
92781
|
return { x: x2 + sx, y: y3 + sy };
|
|
92773
92782
|
}, "intersectRect");
|
|
92774
92783
|
var intersect_rect_default = intersectRect;
|
|
92775
|
-
|
|
92784
|
+
function applyStyle(dom, styleFn) {
|
|
92785
|
+
if (styleFn) {
|
|
92786
|
+
dom.attr("style", styleFn);
|
|
92787
|
+
}
|
|
92788
|
+
}
|
|
92789
|
+
__name(applyStyle, "applyStyle");
|
|
92790
|
+
async function addHtmlLabel(node2) {
|
|
92791
|
+
const fo = select(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject"));
|
|
92792
|
+
const div = fo.append("xhtml:div");
|
|
92793
|
+
const config2 = getConfig2();
|
|
92794
|
+
let label = node2.label;
|
|
92795
|
+
if (node2.label && hasKatex(node2.label)) {
|
|
92796
|
+
label = await renderKatexSanitized(node2.label.replace(common_default.lineBreakRegex, "\n"), config2);
|
|
92797
|
+
}
|
|
92798
|
+
const labelClass = node2.isNode ? "nodeLabel" : "edgeLabel";
|
|
92799
|
+
const labelSpan = '<span class="' + labelClass + '" ' + (node2.labelStyle ? 'style="' + node2.labelStyle + '"' : "") + // codeql [js/html-constructed-from-input] : false positive
|
|
92800
|
+
">" + label + "</span>";
|
|
92801
|
+
div.html(sanitizeText(labelSpan, config2));
|
|
92802
|
+
applyStyle(div, node2.labelStyle);
|
|
92803
|
+
div.style("display", "inline-block");
|
|
92804
|
+
div.style("padding-right", "1px");
|
|
92805
|
+
div.style("white-space", "nowrap");
|
|
92806
|
+
div.attr("xmlns", "http://www.w3.org/1999/xhtml");
|
|
92807
|
+
return fo.node();
|
|
92808
|
+
}
|
|
92809
|
+
__name(addHtmlLabel, "addHtmlLabel");
|
|
92810
|
+
var createLabel = /* @__PURE__ */ __name(async (_vertexText, style2, isTitle, isNode) => {
|
|
92776
92811
|
let vertexText = _vertexText || "";
|
|
92777
92812
|
if (typeof vertexText === "object") {
|
|
92778
92813
|
vertexText = vertexText[0];
|
|
92779
92814
|
}
|
|
92780
|
-
|
|
92781
|
-
|
|
92782
|
-
|
|
92783
|
-
|
|
92784
|
-
vertexText,
|
|
92785
|
-
{
|
|
92786
|
-
style: style2,
|
|
92787
|
-
isTitle,
|
|
92788
|
-
useHtmlLabels,
|
|
92789
|
-
markdown: false,
|
|
92815
|
+
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
92816
|
+
vertexText = vertexText.replace(/\\n|\n/g, "<br />");
|
|
92817
|
+
log.info("vertexText" + vertexText);
|
|
92818
|
+
const node2 = {
|
|
92790
92819
|
isNode,
|
|
92791
|
-
|
|
92792
|
-
|
|
92793
|
-
|
|
92794
|
-
|
|
92820
|
+
label: decodeEntities(vertexText).replace(
|
|
92821
|
+
/fa[blrs]?:fa-[\w-]+/g,
|
|
92822
|
+
(s2) => `<i class='${s2.replace(":", " ")}'></i>`
|
|
92823
|
+
),
|
|
92824
|
+
labelStyle: style2 ? style2.replace("fill:", "color:") : style2
|
|
92825
|
+
};
|
|
92826
|
+
let vertexNode = await addHtmlLabel(node2);
|
|
92827
|
+
return vertexNode;
|
|
92828
|
+
} else {
|
|
92829
|
+
const svgLabel = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
92830
|
+
svgLabel.setAttribute("style", style2.replace("color:", "fill:"));
|
|
92831
|
+
let rows = [];
|
|
92832
|
+
if (typeof vertexText === "string") {
|
|
92833
|
+
rows = vertexText.split(/\\n|\n|<br\s*\/?>/gi);
|
|
92834
|
+
} else if (Array.isArray(vertexText)) {
|
|
92835
|
+
rows = vertexText;
|
|
92836
|
+
} else {
|
|
92837
|
+
rows = [];
|
|
92838
|
+
}
|
|
92839
|
+
for (const row of rows) {
|
|
92840
|
+
const tspan = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
92841
|
+
tspan.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
92842
|
+
tspan.setAttribute("dy", "1em");
|
|
92843
|
+
tspan.setAttribute("x", "0");
|
|
92844
|
+
if (isTitle) {
|
|
92845
|
+
tspan.setAttribute("class", "title-row");
|
|
92846
|
+
} else {
|
|
92847
|
+
tspan.setAttribute("class", "row");
|
|
92848
|
+
}
|
|
92849
|
+
tspan.textContent = row.trim();
|
|
92850
|
+
svgLabel.appendChild(tspan);
|
|
92851
|
+
}
|
|
92852
|
+
return svgLabel;
|
|
92853
|
+
}
|
|
92795
92854
|
}, "createLabel");
|
|
92796
92855
|
var createLabel_default = createLabel;
|
|
92797
92856
|
var createRoundedRectPathD = /* @__PURE__ */ __name((x2, y3, totalWidth, totalHeight, radius) => [
|
|
@@ -92857,21 +92916,15 @@ var rect = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
92857
92916
|
const { clusterBkg, clusterBorder } = themeVariables;
|
|
92858
92917
|
const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = styles2String(node2);
|
|
92859
92918
|
const shapeSvg = parent.insert("g").attr("class", "cluster " + node2.cssClasses).attr("id", node2.id).attr("data-look", node2.look);
|
|
92860
|
-
const useHtmlLabels =
|
|
92919
|
+
const useHtmlLabels = evaluate(siteConfig2.flowchart.htmlLabels);
|
|
92861
92920
|
const labelEl = shapeSvg.insert("g").attr("class", "cluster-label ");
|
|
92862
|
-
|
|
92863
|
-
|
|
92864
|
-
|
|
92865
|
-
|
|
92866
|
-
|
|
92867
|
-
isNode: true,
|
|
92868
|
-
width: node2.width
|
|
92869
|
-
});
|
|
92870
|
-
} else {
|
|
92871
|
-
text2 = await createLabel_default(labelEl, node2.label, node2.labelStyle || "", false, true);
|
|
92872
|
-
}
|
|
92921
|
+
const text2 = await createText(labelEl, node2.label, {
|
|
92922
|
+
style: node2.labelStyle,
|
|
92923
|
+
useHtmlLabels,
|
|
92924
|
+
isNode: true
|
|
92925
|
+
});
|
|
92873
92926
|
let bbox = text2.getBBox();
|
|
92874
|
-
if (
|
|
92927
|
+
if (evaluate(siteConfig2.flowchart.htmlLabels)) {
|
|
92875
92928
|
const div = text2.children[0];
|
|
92876
92929
|
const dv = select(text2);
|
|
92877
92930
|
bbox = div.getBoundingClientRect();
|
|
@@ -92954,9 +93007,9 @@ var roundedWithTitle = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
92954
93007
|
const outerRectG = shapeSvg.insert("g", ":first-child");
|
|
92955
93008
|
const label = shapeSvg.insert("g").attr("class", "cluster-label");
|
|
92956
93009
|
let innerRect = shapeSvg.append("rect");
|
|
92957
|
-
const text2 = await createLabel_default(
|
|
93010
|
+
const text2 = label.node().appendChild(await createLabel_default(node2.label, node2.labelStyle, void 0, true));
|
|
92958
93011
|
let bbox = text2.getBBox();
|
|
92959
|
-
if (
|
|
93012
|
+
if (evaluate(siteConfig2.flowchart.htmlLabels)) {
|
|
92960
93013
|
const div = text2.children[0];
|
|
92961
93014
|
const dv = select(text2);
|
|
92962
93015
|
bbox = div.getBoundingClientRect();
|
|
@@ -93005,7 +93058,7 @@ var roundedWithTitle = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
93005
93058
|
}
|
|
93006
93059
|
label.attr(
|
|
93007
93060
|
"transform",
|
|
93008
|
-
`translate(${node2.x - bbox.width / 2}, ${y3 + 1 - (
|
|
93061
|
+
`translate(${node2.x - bbox.width / 2}, ${y3 + 1 - (evaluate(siteConfig2.flowchart.htmlLabels) ? 0 : 3)})`
|
|
93009
93062
|
);
|
|
93010
93063
|
const rectBox = rect2.node().getBBox();
|
|
93011
93064
|
node2.height = rectBox.height;
|
|
@@ -93024,7 +93077,7 @@ var kanbanSection = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
93024
93077
|
const { clusterBkg, clusterBorder } = themeVariables;
|
|
93025
93078
|
const { labelStyles, nodeStyles, borderStyles, backgroundStyles } = styles2String(node2);
|
|
93026
93079
|
const shapeSvg = parent.insert("g").attr("class", "cluster " + node2.cssClasses).attr("id", node2.id).attr("data-look", node2.look);
|
|
93027
|
-
const useHtmlLabels =
|
|
93080
|
+
const useHtmlLabels = evaluate(siteConfig2.flowchart.htmlLabels);
|
|
93028
93081
|
const labelEl = shapeSvg.insert("g").attr("class", "cluster-label ");
|
|
93029
93082
|
const text2 = await createText(labelEl, node2.label, {
|
|
93030
93083
|
style: node2.labelStyle,
|
|
@@ -93033,7 +93086,7 @@ var kanbanSection = /* @__PURE__ */ __name(async (parent, node2) => {
|
|
|
93033
93086
|
width: node2.width
|
|
93034
93087
|
});
|
|
93035
93088
|
let bbox = text2.getBBox();
|
|
93036
|
-
if (
|
|
93089
|
+
if (evaluate(siteConfig2.flowchart.htmlLabels)) {
|
|
93037
93090
|
const div = text2.children[0];
|
|
93038
93091
|
const dv = select(text2);
|
|
93039
93092
|
bbox = div.getBoundingClientRect();
|
|
@@ -94145,49 +94198,44 @@ async function halfRoundedRectangle(parent, node2) {
|
|
|
94145
94198
|
return shapeSvg;
|
|
94146
94199
|
}
|
|
94147
94200
|
__name(halfRoundedRectangle, "halfRoundedRectangle");
|
|
94148
|
-
var createHexagonPathD = /* @__PURE__ */ __name((x2, y3, width, height, m2) => {
|
|
94149
|
-
return [
|
|
94150
|
-
`M${x2 + m2},${y3}`,
|
|
94151
|
-
`L${x2 + width - m2},${y3}`,
|
|
94152
|
-
`L${x2 + width},${y3 - height / 2}`,
|
|
94153
|
-
`L${x2 + width - m2},${y3 - height}`,
|
|
94154
|
-
`L${x2 + m2},${y3 - height}`,
|
|
94155
|
-
`L${x2},${y3 - height / 2}`,
|
|
94156
|
-
"Z"
|
|
94157
|
-
].join(" ");
|
|
94158
|
-
}, "createHexagonPathD");
|
|
94159
94201
|
async function hexagon(parent, node2) {
|
|
94160
94202
|
const { labelStyles, nodeStyles } = styles2String(node2);
|
|
94161
94203
|
node2.labelStyle = labelStyles;
|
|
94162
94204
|
const { shapeSvg, bbox } = await labelHelper(parent, node2, getNodeClasses(node2));
|
|
94163
|
-
const
|
|
94164
|
-
const
|
|
94165
|
-
const
|
|
94166
|
-
const
|
|
94205
|
+
const h2 = bbox.height + (node2.padding ?? 0);
|
|
94206
|
+
const w2 = bbox.width + (node2.padding ?? 0) * 2.5;
|
|
94207
|
+
const { cssStyles } = node2;
|
|
94208
|
+
const rc = at.svg(shapeSvg);
|
|
94209
|
+
const options = userNodeOverrides(node2, {});
|
|
94210
|
+
if (node2.look !== "handDrawn") {
|
|
94211
|
+
options.roughness = 0;
|
|
94212
|
+
options.fillStyle = "solid";
|
|
94213
|
+
}
|
|
94214
|
+
let halfWidth = w2 / 2;
|
|
94215
|
+
const m2 = halfWidth / 6;
|
|
94216
|
+
halfWidth = halfWidth + m2;
|
|
94217
|
+
const halfHeight = h2 / 2;
|
|
94218
|
+
const fixedLength = halfHeight / 2;
|
|
94219
|
+
const deducedWidth = halfWidth - fixedLength;
|
|
94167
94220
|
const points = [
|
|
94168
|
-
{ x:
|
|
94169
|
-
{ x:
|
|
94170
|
-
{ x:
|
|
94171
|
-
{ x:
|
|
94172
|
-
{ x:
|
|
94173
|
-
{ x: 0, y:
|
|
94221
|
+
{ x: -deducedWidth, y: -halfHeight },
|
|
94222
|
+
{ x: 0, y: -halfHeight },
|
|
94223
|
+
{ x: deducedWidth, y: -halfHeight },
|
|
94224
|
+
{ x: halfWidth, y: 0 },
|
|
94225
|
+
{ x: deducedWidth, y: halfHeight },
|
|
94226
|
+
{ x: 0, y: halfHeight },
|
|
94227
|
+
{ x: -deducedWidth, y: halfHeight },
|
|
94228
|
+
{ x: -halfWidth, y: 0 }
|
|
94174
94229
|
];
|
|
94175
|
-
|
|
94176
|
-
const
|
|
94177
|
-
|
|
94178
|
-
|
|
94179
|
-
|
|
94180
|
-
|
|
94181
|
-
const roughNode = rc.path(pathData, options);
|
|
94182
|
-
polygon = shapeSvg.insert(() => roughNode, ":first-child").attr("transform", `translate(${-w2 / 2}, ${h2 / 2})`);
|
|
94183
|
-
if (cssStyles) {
|
|
94184
|
-
polygon.attr("style", cssStyles);
|
|
94185
|
-
}
|
|
94186
|
-
} else {
|
|
94187
|
-
polygon = insertPolygonShape(shapeSvg, w2, h2, points);
|
|
94230
|
+
const pathData = createPathFromPoints(points);
|
|
94231
|
+
const shapeNode = rc.path(pathData, options);
|
|
94232
|
+
const polygon = shapeSvg.insert(() => shapeNode, ":first-child");
|
|
94233
|
+
polygon.attr("class", "basic label-container");
|
|
94234
|
+
if (cssStyles && node2.look !== "handDrawn") {
|
|
94235
|
+
polygon.selectChildren("path").attr("style", cssStyles);
|
|
94188
94236
|
}
|
|
94189
|
-
if (nodeStyles) {
|
|
94190
|
-
polygon.attr("style", nodeStyles);
|
|
94237
|
+
if (nodeStyles && node2.look !== "handDrawn") {
|
|
94238
|
+
polygon.selectChildren("path").attr("style", nodeStyles);
|
|
94191
94239
|
}
|
|
94192
94240
|
node2.width = w2;
|
|
94193
94241
|
node2.height = h2;
|
|
@@ -95206,7 +95254,7 @@ __name(multiWaveEdgedRectangle, "multiWaveEdgedRectangle");
|
|
|
95206
95254
|
async function note(parent, node2, { config: { themeVariables } }) {
|
|
95207
95255
|
const { labelStyles, nodeStyles } = styles2String(node2);
|
|
95208
95256
|
node2.labelStyle = labelStyles;
|
|
95209
|
-
const useHtmlLabels = node2.useHtmlLabels ||
|
|
95257
|
+
const useHtmlLabels = node2.useHtmlLabels || getConfig().flowchart?.htmlLabels !== false;
|
|
95210
95258
|
if (!useHtmlLabels) {
|
|
95211
95259
|
node2.centerLabel = true;
|
|
95212
95260
|
}
|
|
@@ -95363,9 +95411,9 @@ async function rectWithTitle(parent, node2) {
|
|
|
95363
95411
|
const label = shapeSvg.insert("g").attr("class", "label").attr("style", nodeStyles);
|
|
95364
95412
|
const description = node2.description;
|
|
95365
95413
|
const title = node2.label;
|
|
95366
|
-
const text2 = await createLabel_default(
|
|
95414
|
+
const text2 = label.node().appendChild(await createLabel_default(title, node2.labelStyle, true, true));
|
|
95367
95415
|
let bbox = { width: 0, height: 0 };
|
|
95368
|
-
if (
|
|
95416
|
+
if (evaluate(getConfig2()?.flowchart?.htmlLabels)) {
|
|
95369
95417
|
const div2 = text2.children[0];
|
|
95370
95418
|
const dv2 = select(text2);
|
|
95371
95419
|
bbox = div2.getBoundingClientRect();
|
|
@@ -95375,12 +95423,13 @@ async function rectWithTitle(parent, node2) {
|
|
|
95375
95423
|
log.info("Text 2", description);
|
|
95376
95424
|
const textRows = description || [];
|
|
95377
95425
|
const titleBox = text2.getBBox();
|
|
95378
|
-
const descr =
|
|
95379
|
-
|
|
95380
|
-
|
|
95381
|
-
|
|
95382
|
-
|
|
95383
|
-
|
|
95426
|
+
const descr = label.node().appendChild(
|
|
95427
|
+
await createLabel_default(
|
|
95428
|
+
textRows.join ? textRows.join("<br/>") : textRows,
|
|
95429
|
+
node2.labelStyle,
|
|
95430
|
+
true,
|
|
95431
|
+
true
|
|
95432
|
+
)
|
|
95384
95433
|
);
|
|
95385
95434
|
const div = descr.children[0];
|
|
95386
95435
|
const dv = select(descr);
|
|
@@ -95442,14 +95491,108 @@ async function rectWithTitle(parent, node2) {
|
|
|
95442
95491
|
return shapeSvg;
|
|
95443
95492
|
}
|
|
95444
95493
|
__name(rectWithTitle, "rectWithTitle");
|
|
95494
|
+
function generateArcPoints2(x1, y1, x2, y22, rx, ry, clockwise) {
|
|
95495
|
+
const numPoints = 20;
|
|
95496
|
+
const midX = (x1 + x2) / 2;
|
|
95497
|
+
const midY = (y1 + y22) / 2;
|
|
95498
|
+
const angle = Math.atan2(y22 - y1, x2 - x1);
|
|
95499
|
+
const dx = (x2 - x1) / 2;
|
|
95500
|
+
const dy = (y22 - y1) / 2;
|
|
95501
|
+
const transformedX = dx / rx;
|
|
95502
|
+
const transformedY = dy / ry;
|
|
95503
|
+
const distance2 = Math.sqrt(transformedX ** 2 + transformedY ** 2);
|
|
95504
|
+
if (distance2 > 1) {
|
|
95505
|
+
throw new Error("The given radii are too small to create an arc between the points.");
|
|
95506
|
+
}
|
|
95507
|
+
const scaledCenterDistance = Math.sqrt(1 - distance2 ** 2);
|
|
95508
|
+
const centerX = midX + scaledCenterDistance * ry * Math.sin(angle) * (clockwise ? -1 : 1);
|
|
95509
|
+
const centerY = midY - scaledCenterDistance * rx * Math.cos(angle) * (clockwise ? -1 : 1);
|
|
95510
|
+
const startAngle = Math.atan2((y1 - centerY) / ry, (x1 - centerX) / rx);
|
|
95511
|
+
const endAngle = Math.atan2((y22 - centerY) / ry, (x2 - centerX) / rx);
|
|
95512
|
+
let angleRange = endAngle - startAngle;
|
|
95513
|
+
if (clockwise && angleRange < 0) {
|
|
95514
|
+
angleRange += 2 * Math.PI;
|
|
95515
|
+
}
|
|
95516
|
+
if (!clockwise && angleRange > 0) {
|
|
95517
|
+
angleRange -= 2 * Math.PI;
|
|
95518
|
+
}
|
|
95519
|
+
const points = [];
|
|
95520
|
+
for (let i2 = 0; i2 < numPoints; i2++) {
|
|
95521
|
+
const t2 = i2 / (numPoints - 1);
|
|
95522
|
+
const angle2 = startAngle + t2 * angleRange;
|
|
95523
|
+
const x3 = centerX + rx * Math.cos(angle2);
|
|
95524
|
+
const y3 = centerY + ry * Math.sin(angle2);
|
|
95525
|
+
points.push({ x: x3, y: y3 });
|
|
95526
|
+
}
|
|
95527
|
+
return points;
|
|
95528
|
+
}
|
|
95529
|
+
__name(generateArcPoints2, "generateArcPoints");
|
|
95445
95530
|
async function roundedRect(parent, node2) {
|
|
95446
|
-
const
|
|
95447
|
-
|
|
95448
|
-
|
|
95449
|
-
|
|
95450
|
-
|
|
95531
|
+
const { labelStyles, nodeStyles } = styles2String(node2);
|
|
95532
|
+
node2.labelStyle = labelStyles;
|
|
95533
|
+
const { shapeSvg, bbox } = await labelHelper(parent, node2, getNodeClasses(node2));
|
|
95534
|
+
const labelPaddingX = node2?.padding ?? 0;
|
|
95535
|
+
const labelPaddingY = node2?.padding ?? 0;
|
|
95536
|
+
const w2 = (node2?.width ? node2?.width : bbox.width) + labelPaddingX * 2;
|
|
95537
|
+
const h2 = (node2?.height ? node2?.height : bbox.height) + labelPaddingY * 2;
|
|
95538
|
+
const radius = node2.radius || 5;
|
|
95539
|
+
const taper = node2.taper || 5;
|
|
95540
|
+
const { cssStyles } = node2;
|
|
95541
|
+
const rc = at.svg(shapeSvg);
|
|
95542
|
+
const options = userNodeOverrides(node2, {});
|
|
95543
|
+
if (node2.stroke) {
|
|
95544
|
+
options.stroke = node2.stroke;
|
|
95545
|
+
}
|
|
95546
|
+
if (node2.look !== "handDrawn") {
|
|
95547
|
+
options.roughness = 0;
|
|
95548
|
+
options.fillStyle = "solid";
|
|
95549
|
+
}
|
|
95550
|
+
const points = [
|
|
95551
|
+
// Top edge (left to right)
|
|
95552
|
+
{ x: -w2 / 2 + taper, y: -h2 / 2 },
|
|
95553
|
+
// Top-left corner start (1)
|
|
95554
|
+
{ x: w2 / 2 - taper, y: -h2 / 2 },
|
|
95555
|
+
// Top-right corner start (2)
|
|
95556
|
+
...generateArcPoints2(w2 / 2 - taper, -h2 / 2, w2 / 2, -h2 / 2 + taper, radius, radius, true),
|
|
95557
|
+
// Top-left arc (2 to 3)
|
|
95558
|
+
// Right edge (top to bottom)
|
|
95559
|
+
{ x: w2 / 2, y: -h2 / 2 + taper },
|
|
95560
|
+
// Top-right taper point (3)
|
|
95561
|
+
{ x: w2 / 2, y: h2 / 2 - taper },
|
|
95562
|
+
// Bottom-right taper point (4)
|
|
95563
|
+
...generateArcPoints2(w2 / 2, h2 / 2 - taper, w2 / 2 - taper, h2 / 2, radius, radius, true),
|
|
95564
|
+
// Top-left arc (4 to 5)
|
|
95565
|
+
// Bottom edge (right to left)
|
|
95566
|
+
{ x: w2 / 2 - taper, y: h2 / 2 },
|
|
95567
|
+
// Bottom-right corner start (5)
|
|
95568
|
+
{ x: -w2 / 2 + taper, y: h2 / 2 },
|
|
95569
|
+
// Bottom-left corner start (6)
|
|
95570
|
+
...generateArcPoints2(-w2 / 2 + taper, h2 / 2, -w2 / 2, h2 / 2 - taper, radius, radius, true),
|
|
95571
|
+
// Top-left arc (4 to 5)
|
|
95572
|
+
// Left edge (bottom to top)
|
|
95573
|
+
{ x: -w2 / 2, y: h2 / 2 - taper },
|
|
95574
|
+
// Bottom-left taper point (7)
|
|
95575
|
+
{ x: -w2 / 2, y: -h2 / 2 + taper },
|
|
95576
|
+
// Top-left taper point (8)
|
|
95577
|
+
...generateArcPoints2(-w2 / 2, -h2 / 2 + taper, -w2 / 2 + taper, -h2 / 2, radius, radius, true)
|
|
95578
|
+
// Top-left arc (4 to 5)
|
|
95579
|
+
];
|
|
95580
|
+
const pathData = createPathFromPoints(points);
|
|
95581
|
+
const shapeNode = rc.path(pathData, options);
|
|
95582
|
+
const polygon = shapeSvg.insert(() => shapeNode, ":first-child");
|
|
95583
|
+
polygon.attr("class", "basic label-container outer-path");
|
|
95584
|
+
if (cssStyles && node2.look !== "handDrawn") {
|
|
95585
|
+
polygon.selectChildren("path").attr("style", cssStyles);
|
|
95586
|
+
}
|
|
95587
|
+
if (nodeStyles && node2.look !== "handDrawn") {
|
|
95588
|
+
polygon.selectChildren("path").attr("style", nodeStyles);
|
|
95589
|
+
}
|
|
95590
|
+
updateNodeBounds(node2, polygon);
|
|
95591
|
+
node2.intersect = function(point2) {
|
|
95592
|
+
const pos = intersect_default.polygon(node2, points, point2);
|
|
95593
|
+
return pos;
|
|
95451
95594
|
};
|
|
95452
|
-
return
|
|
95595
|
+
return shapeSvg;
|
|
95453
95596
|
}
|
|
95454
95597
|
__name(roundedRect, "roundedRect");
|
|
95455
95598
|
async function shadedProcess(parent, node2) {
|
|
@@ -96015,7 +96158,7 @@ async function triangle(parent, node2) {
|
|
|
96015
96158
|
const { labelStyles, nodeStyles } = styles2String(node2);
|
|
96016
96159
|
node2.labelStyle = labelStyles;
|
|
96017
96160
|
const { shapeSvg, bbox, label } = await labelHelper(parent, node2, getNodeClasses(node2));
|
|
96018
|
-
const useHtmlLabels =
|
|
96161
|
+
const useHtmlLabels = evaluate(getConfig2().flowchart?.htmlLabels);
|
|
96019
96162
|
const w2 = bbox.width + (node2.padding ?? 0);
|
|
96020
96163
|
const h2 = w2 + bbox.height;
|
|
96021
96164
|
const tw = w2 + bbox.height;
|
|
@@ -97673,12 +97816,12 @@ var positionNode = /* @__PURE__ */ __name((node2) => {
|
|
|
97673
97816
|
}
|
|
97674
97817
|
return diff;
|
|
97675
97818
|
}, "positionNode");
|
|
97676
|
-
var addEdgeMarkers = /* @__PURE__ */ __name((svgPath, edge, url,
|
|
97819
|
+
var addEdgeMarkers = /* @__PURE__ */ __name((svgPath, edge, url, id28, diagramType, strokeColor) => {
|
|
97677
97820
|
if (edge.arrowTypeStart) {
|
|
97678
|
-
addEdgeMarker(svgPath, "start", edge.arrowTypeStart, url,
|
|
97821
|
+
addEdgeMarker(svgPath, "start", edge.arrowTypeStart, url, id28, diagramType, strokeColor);
|
|
97679
97822
|
}
|
|
97680
97823
|
if (edge.arrowTypeEnd) {
|
|
97681
|
-
addEdgeMarker(svgPath, "end", edge.arrowTypeEnd, url,
|
|
97824
|
+
addEdgeMarker(svgPath, "end", edge.arrowTypeEnd, url, id28, diagramType, strokeColor);
|
|
97682
97825
|
}
|
|
97683
97826
|
}, "addEdgeMarkers");
|
|
97684
97827
|
var arrowTypesMap = {
|
|
@@ -97698,7 +97841,7 @@ var arrowTypesMap = {
|
|
|
97698
97841
|
requirement_arrow: { type: "requirement_arrow", fill: false },
|
|
97699
97842
|
requirement_contains: { type: "requirement_contains", fill: false }
|
|
97700
97843
|
};
|
|
97701
|
-
var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url,
|
|
97844
|
+
var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url, id28, diagramType, strokeColor) => {
|
|
97702
97845
|
const arrowTypeInfo = arrowTypesMap[arrowType];
|
|
97703
97846
|
if (!arrowTypeInfo) {
|
|
97704
97847
|
log.warn(`Unknown arrow type: ${arrowType}`);
|
|
@@ -97706,7 +97849,7 @@ var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url,
|
|
|
97706
97849
|
}
|
|
97707
97850
|
const endMarkerType = arrowTypeInfo.type;
|
|
97708
97851
|
const suffix = position2 === "start" ? "Start" : "End";
|
|
97709
|
-
const originalMarkerId = `${
|
|
97852
|
+
const originalMarkerId = `${id28}_${diagramType}-${endMarkerType}${suffix}`;
|
|
97710
97853
|
if (strokeColor && strokeColor.trim() !== "") {
|
|
97711
97854
|
const colorId = strokeColor.replace(/[^\dA-Za-z]/g, "_");
|
|
97712
97855
|
const coloredMarkerId = `${originalMarkerId}_${colorId}`;
|
|
@@ -97730,9 +97873,6 @@ var addEdgeMarker = /* @__PURE__ */ __name((svgPath, position2, arrowType, url,
|
|
|
97730
97873
|
svgPath.attr(`marker-${position2}`, `url(${url}#${originalMarkerId})`);
|
|
97731
97874
|
}
|
|
97732
97875
|
}, "addEdgeMarker");
|
|
97733
|
-
var resolveEdgeCurveType = /* @__PURE__ */ __name((edgeCurve) => {
|
|
97734
|
-
return typeof edgeCurve === "string" ? edgeCurve : getConfig2()?.flowchart?.curve;
|
|
97735
|
-
}, "resolveEdgeCurveType");
|
|
97736
97876
|
var edgeLabels = /* @__PURE__ */ new Map();
|
|
97737
97877
|
var terminalLabels = /* @__PURE__ */ new Map();
|
|
97738
97878
|
var clear = /* @__PURE__ */ __name(() => {
|
|
@@ -97740,79 +97880,46 @@ var clear = /* @__PURE__ */ __name(() => {
|
|
|
97740
97880
|
terminalLabels.clear();
|
|
97741
97881
|
}, "clear");
|
|
97742
97882
|
var getLabelStyles = /* @__PURE__ */ __name((styleArray) => {
|
|
97743
|
-
|
|
97744
|
-
|
|
97745
|
-
}
|
|
97746
|
-
if (typeof styleArray === "string") {
|
|
97747
|
-
return styleArray;
|
|
97748
|
-
}
|
|
97749
|
-
return styleArray.reduce((acc, style2) => acc + ";" + style2, "");
|
|
97883
|
+
let styles2 = styleArray ? styleArray.reduce((acc, style2) => acc + ";" + style2, "") : "";
|
|
97884
|
+
return styles2;
|
|
97750
97885
|
}, "getLabelStyles");
|
|
97751
97886
|
var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
97752
|
-
|
|
97753
|
-
let useHtmlLabels = getEffectiveHtmlLabels(config2);
|
|
97887
|
+
let useHtmlLabels = evaluate(getConfig2().flowchart.htmlLabels);
|
|
97754
97888
|
const { labelStyles } = styles2String(edge);
|
|
97755
97889
|
edge.labelStyle = labelStyles;
|
|
97890
|
+
const labelElement = await createText(elem, edge.label, {
|
|
97891
|
+
style: edge.labelStyle,
|
|
97892
|
+
useHtmlLabels,
|
|
97893
|
+
addSvgBackground: true,
|
|
97894
|
+
isNode: false
|
|
97895
|
+
});
|
|
97896
|
+
log.info("abc82", edge, edge.labelType);
|
|
97756
97897
|
const edgeLabel = elem.insert("g").attr("class", "edgeLabel");
|
|
97757
97898
|
const label = edgeLabel.insert("g").attr("class", "label").attr("data-id", edge.id);
|
|
97758
|
-
const isMarkdown = edge.labelType === "markdown";
|
|
97759
|
-
const markdownWidth = void 0;
|
|
97760
|
-
const labelElement = await createText(
|
|
97761
|
-
elem,
|
|
97762
|
-
edge.label,
|
|
97763
|
-
{
|
|
97764
|
-
style: getLabelStyles(edge.labelStyle),
|
|
97765
|
-
useHtmlLabels,
|
|
97766
|
-
addSvgBackground: true,
|
|
97767
|
-
isNode: false,
|
|
97768
|
-
markdown: isMarkdown,
|
|
97769
|
-
// Plain text edge labels should auto-wrap, markdown edge labels respect markdownAutoWrap config
|
|
97770
|
-
width: isMarkdown ? markdownWidth : void 0
|
|
97771
|
-
},
|
|
97772
|
-
config2
|
|
97773
|
-
);
|
|
97774
97899
|
label.node().appendChild(labelElement);
|
|
97775
|
-
log.info("abc82", edge, edge.labelType);
|
|
97776
97900
|
let bbox = labelElement.getBBox();
|
|
97777
|
-
let transformBbox = bbox;
|
|
97778
97901
|
if (useHtmlLabels) {
|
|
97779
97902
|
const div = labelElement.children[0];
|
|
97780
97903
|
const dv = select(labelElement);
|
|
97781
97904
|
bbox = div.getBoundingClientRect();
|
|
97782
|
-
transformBbox = bbox;
|
|
97783
97905
|
dv.attr("width", bbox.width);
|
|
97784
97906
|
dv.attr("height", bbox.height);
|
|
97785
|
-
} else {
|
|
97786
|
-
const textEl = select(labelElement).select("text").node();
|
|
97787
|
-
if (textEl && typeof textEl.getBBox === "function") {
|
|
97788
|
-
transformBbox = textEl.getBBox();
|
|
97789
|
-
}
|
|
97790
97907
|
}
|
|
97791
|
-
label.attr("transform",
|
|
97908
|
+
label.attr("transform", "translate(" + -bbox.width / 2 + ", " + -bbox.height / 2 + ")");
|
|
97792
97909
|
edgeLabels.set(edge.id, edgeLabel);
|
|
97793
97910
|
edge.width = bbox.width;
|
|
97794
97911
|
edge.height = bbox.height;
|
|
97795
97912
|
let fo;
|
|
97796
97913
|
if (edge.startLabelLeft) {
|
|
97797
|
-
const startEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
|
|
97798
|
-
const inner2 = startEdgeLabelLeft.insert("g").attr("class", "inner");
|
|
97799
97914
|
const startLabelElement = await createLabel_default(
|
|
97800
|
-
inner2,
|
|
97801
97915
|
edge.startLabelLeft,
|
|
97802
|
-
getLabelStyles(edge.labelStyle)
|
|
97803
|
-
false,
|
|
97804
|
-
false
|
|
97916
|
+
getLabelStyles(edge.labelStyle)
|
|
97805
97917
|
);
|
|
97806
|
-
|
|
97807
|
-
|
|
97808
|
-
|
|
97809
|
-
|
|
97810
|
-
|
|
97811
|
-
slBox = div.getBoundingClientRect();
|
|
97812
|
-
dv.attr("width", slBox.width);
|
|
97813
|
-
dv.attr("height", slBox.height);
|
|
97814
|
-
}
|
|
97815
|
-
inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
|
|
97918
|
+
const startEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
|
|
97919
|
+
const inner2 = startEdgeLabelLeft.insert("g").attr("class", "inner");
|
|
97920
|
+
fo = inner2.node().appendChild(startLabelElement);
|
|
97921
|
+
const slBox = startLabelElement.getBBox();
|
|
97922
|
+
inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
|
|
97816
97923
|
if (!terminalLabels.get(edge.id)) {
|
|
97817
97924
|
terminalLabels.set(edge.id, {});
|
|
97818
97925
|
}
|
|
@@ -97820,26 +97927,16 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
|
97820
97927
|
setTerminalWidth(fo, edge.startLabelLeft);
|
|
97821
97928
|
}
|
|
97822
97929
|
if (edge.startLabelRight) {
|
|
97823
|
-
const startEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
|
|
97824
|
-
const inner2 = startEdgeLabelRight.insert("g").attr("class", "inner");
|
|
97825
97930
|
const startLabelElement = await createLabel_default(
|
|
97826
|
-
inner2,
|
|
97827
97931
|
edge.startLabelRight,
|
|
97828
|
-
getLabelStyles(edge.labelStyle)
|
|
97829
|
-
false,
|
|
97830
|
-
false
|
|
97932
|
+
getLabelStyles(edge.labelStyle)
|
|
97831
97933
|
);
|
|
97832
|
-
|
|
97934
|
+
const startEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
|
|
97935
|
+
const inner2 = startEdgeLabelRight.insert("g").attr("class", "inner");
|
|
97936
|
+
fo = startEdgeLabelRight.node().appendChild(startLabelElement);
|
|
97833
97937
|
inner2.node().appendChild(startLabelElement);
|
|
97834
|
-
|
|
97835
|
-
|
|
97836
|
-
const div = startLabelElement.children[0];
|
|
97837
|
-
const dv = select(startLabelElement);
|
|
97838
|
-
slBox = div.getBoundingClientRect();
|
|
97839
|
-
dv.attr("width", slBox.width);
|
|
97840
|
-
dv.attr("height", slBox.height);
|
|
97841
|
-
}
|
|
97842
|
-
inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
|
|
97938
|
+
const slBox = startLabelElement.getBBox();
|
|
97939
|
+
inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
|
|
97843
97940
|
if (!terminalLabels.get(edge.id)) {
|
|
97844
97941
|
terminalLabels.set(edge.id, {});
|
|
97845
97942
|
}
|
|
@@ -97847,25 +97944,12 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
|
97847
97944
|
setTerminalWidth(fo, edge.startLabelRight);
|
|
97848
97945
|
}
|
|
97849
97946
|
if (edge.endLabelLeft) {
|
|
97947
|
+
const endLabelElement = await createLabel_default(edge.endLabelLeft, getLabelStyles(edge.labelStyle));
|
|
97850
97948
|
const endEdgeLabelLeft = elem.insert("g").attr("class", "edgeTerminals");
|
|
97851
97949
|
const inner2 = endEdgeLabelLeft.insert("g").attr("class", "inner");
|
|
97852
|
-
|
|
97853
|
-
|
|
97854
|
-
|
|
97855
|
-
getLabelStyles(edge.labelStyle) || "",
|
|
97856
|
-
false,
|
|
97857
|
-
false
|
|
97858
|
-
);
|
|
97859
|
-
fo = endLabelElement;
|
|
97860
|
-
let slBox = endLabelElement.getBBox();
|
|
97861
|
-
if (useHtmlLabels) {
|
|
97862
|
-
const div = endLabelElement.children[0];
|
|
97863
|
-
const dv = select(endLabelElement);
|
|
97864
|
-
slBox = div.getBoundingClientRect();
|
|
97865
|
-
dv.attr("width", slBox.width);
|
|
97866
|
-
dv.attr("height", slBox.height);
|
|
97867
|
-
}
|
|
97868
|
-
inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
|
|
97950
|
+
fo = inner2.node().appendChild(endLabelElement);
|
|
97951
|
+
const slBox = endLabelElement.getBBox();
|
|
97952
|
+
inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
|
|
97869
97953
|
endEdgeLabelLeft.node().appendChild(endLabelElement);
|
|
97870
97954
|
if (!terminalLabels.get(edge.id)) {
|
|
97871
97955
|
terminalLabels.set(edge.id, {});
|
|
@@ -97874,25 +97958,12 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
|
97874
97958
|
setTerminalWidth(fo, edge.endLabelLeft);
|
|
97875
97959
|
}
|
|
97876
97960
|
if (edge.endLabelRight) {
|
|
97961
|
+
const endLabelElement = await createLabel_default(edge.endLabelRight, getLabelStyles(edge.labelStyle));
|
|
97877
97962
|
const endEdgeLabelRight = elem.insert("g").attr("class", "edgeTerminals");
|
|
97878
97963
|
const inner2 = endEdgeLabelRight.insert("g").attr("class", "inner");
|
|
97879
|
-
|
|
97880
|
-
|
|
97881
|
-
|
|
97882
|
-
getLabelStyles(edge.labelStyle) || "",
|
|
97883
|
-
false,
|
|
97884
|
-
false
|
|
97885
|
-
);
|
|
97886
|
-
fo = endLabelElement;
|
|
97887
|
-
let slBox = endLabelElement.getBBox();
|
|
97888
|
-
if (useHtmlLabels) {
|
|
97889
|
-
const div = endLabelElement.children[0];
|
|
97890
|
-
const dv = select(endLabelElement);
|
|
97891
|
-
slBox = div.getBoundingClientRect();
|
|
97892
|
-
dv.attr("width", slBox.width);
|
|
97893
|
-
dv.attr("height", slBox.height);
|
|
97894
|
-
}
|
|
97895
|
-
inner2.attr("transform", computeLabelTransform(slBox, useHtmlLabels));
|
|
97964
|
+
fo = inner2.node().appendChild(endLabelElement);
|
|
97965
|
+
const slBox = endLabelElement.getBBox();
|
|
97966
|
+
inner2.attr("transform", "translate(" + -slBox.width / 2 + ", " + -slBox.height / 2 + ")");
|
|
97896
97967
|
endEdgeLabelRight.node().appendChild(endLabelElement);
|
|
97897
97968
|
if (!terminalLabels.get(edge.id)) {
|
|
97898
97969
|
terminalLabels.set(edge.id, {});
|
|
@@ -97903,7 +97974,7 @@ var insertEdgeLabel = /* @__PURE__ */ __name(async (elem, edge) => {
|
|
|
97903
97974
|
return labelElement;
|
|
97904
97975
|
}, "insertEdgeLabel");
|
|
97905
97976
|
function setTerminalWidth(fo, value) {
|
|
97906
|
-
if (
|
|
97977
|
+
if (getConfig2().flowchart.htmlLabels && fo) {
|
|
97907
97978
|
fo.style.width = value.length * 9 + "px";
|
|
97908
97979
|
fo.style.height = "12px";
|
|
97909
97980
|
}
|
|
@@ -98165,7 +98236,7 @@ var generateDashArray = /* @__PURE__ */ __name((len, oValueS, oValueE) => {
|
|
|
98165
98236
|
const dashArray = `0 ${oValueS} ${middlePattern} ${oValueE}`;
|
|
98166
98237
|
return dashArray;
|
|
98167
98238
|
}, "generateDashArray");
|
|
98168
|
-
var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramType, startNode, endNode,
|
|
98239
|
+
var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramType, startNode, endNode, id28, skipIntersect = false) {
|
|
98169
98240
|
const { handDrawnSeed } = getConfig2();
|
|
98170
98241
|
let points = edge.points;
|
|
98171
98242
|
let pointsHasChanged = false;
|
|
@@ -98209,12 +98280,10 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98209
98280
|
pointsHasChanged = true;
|
|
98210
98281
|
}
|
|
98211
98282
|
let lineData = points.filter((p2) => !Number.isNaN(p2.y));
|
|
98212
|
-
|
|
98213
|
-
|
|
98214
|
-
|
|
98215
|
-
|
|
98216
|
-
let curve = curveLinear;
|
|
98217
|
-
switch (edgeCurveType) {
|
|
98283
|
+
lineData = fixCorners(lineData);
|
|
98284
|
+
let curve = curveBasis;
|
|
98285
|
+
curve = curveLinear;
|
|
98286
|
+
switch (edge.curve) {
|
|
98218
98287
|
case "linear":
|
|
98219
98288
|
curve = curveLinear;
|
|
98220
98289
|
break;
|
|
@@ -98251,9 +98320,6 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98251
98320
|
case "stepBefore":
|
|
98252
98321
|
curve = stepBefore;
|
|
98253
98322
|
break;
|
|
98254
|
-
case "rounded":
|
|
98255
|
-
curve = curveLinear;
|
|
98256
|
-
break;
|
|
98257
98323
|
default:
|
|
98258
98324
|
curve = curveBasis;
|
|
98259
98325
|
}
|
|
@@ -98287,16 +98353,9 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98287
98353
|
strokeClasses += " edge-pattern-solid";
|
|
98288
98354
|
}
|
|
98289
98355
|
let svgPath;
|
|
98290
|
-
let linePath =
|
|
98356
|
+
let linePath = edge.curve === "rounded" ? generateRoundedPath(applyMarkerOffsetsToPoints(lineData, edge), 5) : lineFunction(lineData);
|
|
98291
98357
|
const edgeStyles = Array.isArray(edge.style) ? edge.style : [edge.style];
|
|
98292
98358
|
let strokeColor = edgeStyles.find((style2) => style2?.startsWith("stroke:"));
|
|
98293
|
-
let animationClass = "";
|
|
98294
|
-
if (edge.animate) {
|
|
98295
|
-
animationClass = "edge-animation-fast";
|
|
98296
|
-
}
|
|
98297
|
-
if (edge.animation) {
|
|
98298
|
-
animationClass = "edge-animation-" + edge.animation;
|
|
98299
|
-
}
|
|
98300
98359
|
let animatedEdge = false;
|
|
98301
98360
|
if (edge.look === "handDrawn") {
|
|
98302
98361
|
const rc = at.svg(elem);
|
|
@@ -98306,20 +98365,24 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98306
98365
|
seed: handDrawnSeed
|
|
98307
98366
|
});
|
|
98308
98367
|
strokeClasses += " transition";
|
|
98309
|
-
svgPath = select(svgPathNode).select("path").attr("id", edge.id).attr(
|
|
98310
|
-
"class",
|
|
98311
|
-
" " + strokeClasses + (edge.classes ? " " + edge.classes : "") + (animationClass ? " " + animationClass : "")
|
|
98312
|
-
).attr("style", edgeStyles ? edgeStyles.reduce((acc, style2) => acc + ";" + style2, "") : "");
|
|
98368
|
+
svgPath = select(svgPathNode).select("path").attr("id", edge.id).attr("class", " " + strokeClasses + (edge.classes ? " " + edge.classes : "")).attr("style", edgeStyles ? edgeStyles.reduce((acc, style2) => acc + ";" + style2, "") : "");
|
|
98313
98369
|
let d2 = svgPath.attr("d");
|
|
98314
98370
|
svgPath.attr("d", d2);
|
|
98315
98371
|
elem.node().appendChild(svgPath.node());
|
|
98316
98372
|
} else {
|
|
98317
98373
|
const stylesFromClasses = edgeClassStyles.join(";");
|
|
98318
98374
|
const styles2 = edgeStyles ? edgeStyles.reduce((acc, style2) => acc + style2 + ";", "") : "";
|
|
98375
|
+
let animationClass = "";
|
|
98376
|
+
if (edge.animate) {
|
|
98377
|
+
animationClass = " edge-animation-fast";
|
|
98378
|
+
}
|
|
98379
|
+
if (edge.animation) {
|
|
98380
|
+
animationClass = " edge-animation-" + edge.animation;
|
|
98381
|
+
}
|
|
98319
98382
|
const pathStyle = (stylesFromClasses ? stylesFromClasses + ";" + styles2 + ";" : styles2) + ";" + (edgeStyles ? edgeStyles.reduce((acc, style2) => acc + ";" + style2, "") : "");
|
|
98320
98383
|
svgPath = elem.append("path").attr("d", linePath).attr("id", edge.id).attr(
|
|
98321
98384
|
"class",
|
|
98322
|
-
" " + strokeClasses + (edge.classes ? " " + edge.classes : "") + (animationClass
|
|
98385
|
+
" " + strokeClasses + (edge.classes ? " " + edge.classes : "") + (animationClass ?? "")
|
|
98323
98386
|
).attr("style", pathStyle);
|
|
98324
98387
|
strokeColor = pathStyle.match(/stroke:([^;]+)/)?.[1];
|
|
98325
98388
|
animatedEdge = edge.animate === true || !!edge.animation || stylesFromClasses.includes("animation");
|
|
@@ -98349,7 +98412,7 @@ var insertEdge = /* @__PURE__ */ __name(function(elem, edge, clusterDb, diagramT
|
|
|
98349
98412
|
}
|
|
98350
98413
|
log.info("arrowTypeStart", edge.arrowTypeStart);
|
|
98351
98414
|
log.info("arrowTypeEnd", edge.arrowTypeEnd);
|
|
98352
|
-
addEdgeMarkers(svgPath, edge, url,
|
|
98415
|
+
addEdgeMarkers(svgPath, edge, url, id28, diagramType, strokeColor);
|
|
98353
98416
|
const midIndex = Math.floor(points.length / 2);
|
|
98354
98417
|
const point2 = points[midIndex];
|
|
98355
98418
|
if (!utils_default.isLabelCoordinateInPath(point2, svgPath.attr("d"))) {
|
|
@@ -98447,73 +98510,73 @@ function applyMarkerOffsetsToPoints(points, edge) {
|
|
|
98447
98510
|
return newPoints;
|
|
98448
98511
|
}
|
|
98449
98512
|
__name(applyMarkerOffsetsToPoints, "applyMarkerOffsetsToPoints");
|
|
98450
|
-
var insertMarkers = /* @__PURE__ */ __name((elem, markerArray, type2,
|
|
98513
|
+
var insertMarkers = /* @__PURE__ */ __name((elem, markerArray, type2, id28) => {
|
|
98451
98514
|
markerArray.forEach((markerName) => {
|
|
98452
|
-
markers[markerName](elem, type2,
|
|
98515
|
+
markers[markerName](elem, type2, id28);
|
|
98453
98516
|
});
|
|
98454
98517
|
}, "insertMarkers");
|
|
98455
|
-
var extension = /* @__PURE__ */ __name((elem, type2,
|
|
98456
|
-
log.trace("Making markers for ",
|
|
98457
|
-
elem.append("defs").append("marker").attr("id",
|
|
98458
|
-
elem.append("defs").append("marker").attr("id",
|
|
98518
|
+
var extension = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98519
|
+
log.trace("Making markers for ", id28);
|
|
98520
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-extensionStart").attr("class", "marker extension " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z");
|
|
98521
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-extensionEnd").attr("class", "marker extension " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
|
|
98459
98522
|
}, "extension");
|
|
98460
|
-
var composition = /* @__PURE__ */ __name((elem, type2,
|
|
98461
|
-
elem.append("defs").append("marker").attr("id",
|
|
98462
|
-
elem.append("defs").append("marker").attr("id",
|
|
98523
|
+
var composition = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98524
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-compositionStart").attr("class", "marker composition " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
98525
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-compositionEnd").attr("class", "marker composition " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
98463
98526
|
}, "composition");
|
|
98464
|
-
var aggregation = /* @__PURE__ */ __name((elem, type2,
|
|
98465
|
-
elem.append("defs").append("marker").attr("id",
|
|
98466
|
-
elem.append("defs").append("marker").attr("id",
|
|
98527
|
+
var aggregation = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98528
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-aggregationStart").attr("class", "marker aggregation " + type2).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
98529
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-aggregationEnd").attr("class", "marker aggregation " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
98467
98530
|
}, "aggregation");
|
|
98468
|
-
var dependency = /* @__PURE__ */ __name((elem, type2,
|
|
98469
|
-
elem.append("defs").append("marker").attr("id",
|
|
98470
|
-
elem.append("defs").append("marker").attr("id",
|
|
98531
|
+
var dependency = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98532
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-dependencyStart").attr("class", "marker dependency " + type2).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z");
|
|
98533
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-dependencyEnd").attr("class", "marker dependency " + type2).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
98471
98534
|
}, "dependency");
|
|
98472
|
-
var lollipop = /* @__PURE__ */ __name((elem, type2,
|
|
98473
|
-
elem.append("defs").append("marker").attr("id",
|
|
98474
|
-
elem.append("defs").append("marker").attr("id",
|
|
98535
|
+
var lollipop = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98536
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-lollipopStart").attr("class", "marker lollipop " + type2).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
|
|
98537
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-lollipopEnd").attr("class", "marker lollipop " + type2).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
|
|
98475
98538
|
}, "lollipop");
|
|
98476
|
-
var point = /* @__PURE__ */ __name((elem, type2,
|
|
98477
|
-
elem.append("marker").attr("id",
|
|
98478
|
-
elem.append("marker").attr("id",
|
|
98539
|
+
var point = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98540
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-pointEnd").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
98541
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-pointStart").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
98479
98542
|
}, "point");
|
|
98480
|
-
var circle = /* @__PURE__ */ __name((elem, type2,
|
|
98481
|
-
elem.append("marker").attr("id",
|
|
98482
|
-
elem.append("marker").attr("id",
|
|
98543
|
+
var circle = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98544
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-circleEnd").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
98545
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-circleStart").attr("class", "marker " + type2).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
98483
98546
|
}, "circle");
|
|
98484
|
-
var cross = /* @__PURE__ */ __name((elem, type2,
|
|
98485
|
-
elem.append("marker").attr("id",
|
|
98486
|
-
elem.append("marker").attr("id",
|
|
98547
|
+
var cross = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98548
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-crossEnd").attr("class", "marker cross " + type2).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
|
|
98549
|
+
elem.append("marker").attr("id", id28 + "_" + type2 + "-crossStart").attr("class", "marker cross " + type2).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
|
|
98487
98550
|
}, "cross");
|
|
98488
|
-
var barb = /* @__PURE__ */ __name((elem, type2,
|
|
98489
|
-
elem.append("defs").append("marker").attr("id",
|
|
98551
|
+
var barb = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98552
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
98490
98553
|
}, "barb");
|
|
98491
|
-
var only_one = /* @__PURE__ */ __name((elem, type2,
|
|
98492
|
-
elem.append("defs").append("marker").attr("id",
|
|
98493
|
-
elem.append("defs").append("marker").attr("id",
|
|
98554
|
+
var only_one = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98555
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-onlyOneStart").attr("class", "marker onlyOne " + type2).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18");
|
|
98556
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-onlyOneEnd").attr("class", "marker onlyOne " + type2).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
|
|
98494
98557
|
}, "only_one");
|
|
98495
|
-
var zero_or_one = /* @__PURE__ */ __name((elem, type2,
|
|
98496
|
-
const startMarker = elem.append("defs").append("marker").attr("id",
|
|
98558
|
+
var zero_or_one = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98559
|
+
const startMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + type2).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
98497
98560
|
startMarker.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6);
|
|
98498
98561
|
startMarker.append("path").attr("d", "M9,0 L9,18");
|
|
98499
|
-
const endMarker = elem.append("defs").append("marker").attr("id",
|
|
98562
|
+
const endMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + type2).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
98500
98563
|
endMarker.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6);
|
|
98501
98564
|
endMarker.append("path").attr("d", "M21,0 L21,18");
|
|
98502
98565
|
}, "zero_or_one");
|
|
98503
|
-
var one_or_more = /* @__PURE__ */ __name((elem, type2,
|
|
98504
|
-
elem.append("defs").append("marker").attr("id",
|
|
98505
|
-
elem.append("defs").append("marker").attr("id",
|
|
98566
|
+
var one_or_more = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98567
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-oneOrMoreStart").attr("class", "marker oneOrMore " + type2).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27");
|
|
98568
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + type2).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
|
|
98506
98569
|
}, "one_or_more");
|
|
98507
|
-
var zero_or_more = /* @__PURE__ */ __name((elem, type2,
|
|
98508
|
-
const startMarker = elem.append("defs").append("marker").attr("id",
|
|
98570
|
+
var zero_or_more = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98571
|
+
const startMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + type2).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
98509
98572
|
startMarker.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6);
|
|
98510
98573
|
startMarker.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
|
|
98511
|
-
const endMarker = elem.append("defs").append("marker").attr("id",
|
|
98574
|
+
const endMarker = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + type2).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
98512
98575
|
endMarker.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6);
|
|
98513
98576
|
endMarker.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
|
|
98514
98577
|
}, "zero_or_more");
|
|
98515
|
-
var requirement_arrow = /* @__PURE__ */ __name((elem, type2,
|
|
98516
|
-
elem.append("defs").append("marker").attr("id",
|
|
98578
|
+
var requirement_arrow = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98579
|
+
elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr(
|
|
98517
98580
|
"d",
|
|
98518
98581
|
`M0,0
|
|
98519
98582
|
L20,10
|
|
@@ -98521,8 +98584,8 @@ var requirement_arrow = /* @__PURE__ */ __name((elem, type2, id30) => {
|
|
|
98521
98584
|
L0,20`
|
|
98522
98585
|
);
|
|
98523
98586
|
}, "requirement_arrow");
|
|
98524
|
-
var requirement_contains = /* @__PURE__ */ __name((elem, type2,
|
|
98525
|
-
const containsNode = elem.append("defs").append("marker").attr("id",
|
|
98587
|
+
var requirement_contains = /* @__PURE__ */ __name((elem, type2, id28) => {
|
|
98588
|
+
const containsNode = elem.append("defs").append("marker").attr("id", id28 + "_" + type2 + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
|
|
98526
98589
|
containsNode.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none");
|
|
98527
98590
|
containsNode.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10);
|
|
98528
98591
|
containsNode.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
|
|
@@ -98560,20 +98623,20 @@ var internalHelpers = {
|
|
|
98560
98623
|
};
|
|
98561
98624
|
var layoutAlgorithms = {};
|
|
98562
98625
|
var registerLayoutLoaders = /* @__PURE__ */ __name((loaders) => {
|
|
98563
|
-
for (const
|
|
98564
|
-
layoutAlgorithms[
|
|
98626
|
+
for (const loader28 of loaders) {
|
|
98627
|
+
layoutAlgorithms[loader28.name] = loader28;
|
|
98565
98628
|
}
|
|
98566
98629
|
}, "registerLayoutLoaders");
|
|
98567
98630
|
var registerDefaultLayoutLoaders = /* @__PURE__ */ __name(() => {
|
|
98568
98631
|
registerLayoutLoaders([
|
|
98569
98632
|
{
|
|
98570
98633
|
name: "dagre",
|
|
98571
|
-
loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./dagre-
|
|
98634
|
+
loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./dagre-6UL2VRFP-ClEaFABE.js"), true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0), "loader")
|
|
98572
98635
|
},
|
|
98573
98636
|
...[
|
|
98574
98637
|
{
|
|
98575
98638
|
name: "cose-bilkent",
|
|
98576
|
-
loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./cose-bilkent-S5V4N54A-
|
|
98639
|
+
loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./cose-bilkent-S5V4N54A-BYN-vqm8.js"), true ? __vite__mapDeps([6,7]) : void 0), "loader")
|
|
98577
98640
|
}
|
|
98578
98641
|
]
|
|
98579
98642
|
]);
|
|
@@ -99013,7 +99076,7 @@ var detector = /* @__PURE__ */ __name((txt) => {
|
|
|
99013
99076
|
}, "detector");
|
|
99014
99077
|
var loader = /* @__PURE__ */ __name(async () => {
|
|
99015
99078
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99016
|
-
const { diagram: diagram22 } = await import("./c4Diagram-
|
|
99079
|
+
const { diagram: diagram22 } = await import("./c4Diagram-YG6GDRKO-ClHNu1Uo.js");
|
|
99017
99080
|
return { diagram: diagram22 };
|
|
99018
99081
|
}, true ? __vite__mapDeps([8,9]) : void 0);
|
|
99019
99082
|
return { id: id$1, diagram: diagram2 };
|
|
@@ -99033,9 +99096,9 @@ var detector2 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99033
99096
|
}, "detector");
|
|
99034
99097
|
var loader2 = /* @__PURE__ */ __name(async () => {
|
|
99035
99098
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99036
|
-
const { diagram: diagram22 } = await import("./flowDiagram-
|
|
99099
|
+
const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-m7ofIhri.js");
|
|
99037
99100
|
return { diagram: diagram22 };
|
|
99038
|
-
}, true ? __vite__mapDeps([10,11,
|
|
99101
|
+
}, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
|
|
99039
99102
|
return { id: id2, diagram: diagram2 };
|
|
99040
99103
|
}, "loader");
|
|
99041
99104
|
var plugin2 = {
|
|
@@ -99059,9 +99122,9 @@ var detector3 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99059
99122
|
}, "detector");
|
|
99060
99123
|
var loader3 = /* @__PURE__ */ __name(async () => {
|
|
99061
99124
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99062
|
-
const { diagram: diagram22 } = await import("./flowDiagram-
|
|
99125
|
+
const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-m7ofIhri.js");
|
|
99063
99126
|
return { diagram: diagram22 };
|
|
99064
|
-
}, true ? __vite__mapDeps([10,11,
|
|
99127
|
+
}, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
|
|
99065
99128
|
return { id: id3, diagram: diagram2 };
|
|
99066
99129
|
}, "loader");
|
|
99067
99130
|
var plugin3 = {
|
|
@@ -99076,7 +99139,7 @@ var detector4 = /* @__PURE__ */ __name((txt) => {
|
|
|
99076
99139
|
}, "detector");
|
|
99077
99140
|
var loader4 = /* @__PURE__ */ __name(async () => {
|
|
99078
99141
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99079
|
-
const { diagram: diagram22 } = await import("./erDiagram-
|
|
99142
|
+
const { diagram: diagram22 } = await import("./erDiagram-Q2GNP2WA-ctHu5zQL.js");
|
|
99080
99143
|
return { diagram: diagram22 };
|
|
99081
99144
|
}, true ? __vite__mapDeps([15,12,13,14]) : void 0);
|
|
99082
99145
|
return { id: id4, diagram: diagram2 };
|
|
@@ -99093,7 +99156,7 @@ var detector5 = /* @__PURE__ */ __name((txt) => {
|
|
|
99093
99156
|
}, "detector");
|
|
99094
99157
|
var loader5 = /* @__PURE__ */ __name(async () => {
|
|
99095
99158
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99096
|
-
const { diagram: diagram22 } = await import("./gitGraphDiagram-
|
|
99159
|
+
const { diagram: diagram22 } = await import("./gitGraphDiagram-V2S2FVAM-B86qqJx7.js");
|
|
99097
99160
|
return { diagram: diagram22 };
|
|
99098
99161
|
}, true ? __vite__mapDeps([16,17,18,19,2,4,5]) : void 0);
|
|
99099
99162
|
return { id: id5, diagram: diagram2 };
|
|
@@ -99110,7 +99173,7 @@ var detector6 = /* @__PURE__ */ __name((txt) => {
|
|
|
99110
99173
|
}, "detector");
|
|
99111
99174
|
var loader6 = /* @__PURE__ */ __name(async () => {
|
|
99112
99175
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99113
|
-
const { diagram: diagram22 } = await import("./ganttDiagram-
|
|
99176
|
+
const { diagram: diagram22 } = await import("./ganttDiagram-JELNMOA3-D9wS5Veb.js");
|
|
99114
99177
|
return { diagram: diagram22 };
|
|
99115
99178
|
}, true ? __vite__mapDeps([20,21,22,23]) : void 0);
|
|
99116
99179
|
return { id: id6, diagram: diagram2 };
|
|
@@ -99127,7 +99190,7 @@ var detector7 = /* @__PURE__ */ __name((txt) => {
|
|
|
99127
99190
|
}, "detector");
|
|
99128
99191
|
var loader7 = /* @__PURE__ */ __name(async () => {
|
|
99129
99192
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99130
|
-
const { diagram: diagram22 } = await import("./infoDiagram-
|
|
99193
|
+
const { diagram: diagram22 } = await import("./infoDiagram-HS3SLOUP-DwRPUctP.js");
|
|
99131
99194
|
return { diagram: diagram22 };
|
|
99132
99195
|
}, true ? __vite__mapDeps([24,19,2,4,5]) : void 0);
|
|
99133
99196
|
return { id: id7, diagram: diagram2 };
|
|
@@ -99143,7 +99206,7 @@ var detector8 = /* @__PURE__ */ __name((txt) => {
|
|
|
99143
99206
|
}, "detector");
|
|
99144
99207
|
var loader8 = /* @__PURE__ */ __name(async () => {
|
|
99145
99208
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99146
|
-
const { diagram: diagram22 } = await import("./pieDiagram-
|
|
99209
|
+
const { diagram: diagram22 } = await import("./pieDiagram-ADFJNKIX-M81uyQ1J.js");
|
|
99147
99210
|
return { diagram: diagram22 };
|
|
99148
99211
|
}, true ? __vite__mapDeps([25,17,19,2,4,5,26,27,22]) : void 0);
|
|
99149
99212
|
return { id: id8, diagram: diagram2 };
|
|
@@ -99159,7 +99222,7 @@ var detector9 = /* @__PURE__ */ __name((txt) => {
|
|
|
99159
99222
|
}, "detector");
|
|
99160
99223
|
var loader9 = /* @__PURE__ */ __name(async () => {
|
|
99161
99224
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99162
|
-
const { diagram: diagram22 } = await import("./quadrantDiagram-
|
|
99225
|
+
const { diagram: diagram22 } = await import("./quadrantDiagram-AYHSOK5B-ClzIh9Gb.js");
|
|
99163
99226
|
return { diagram: diagram22 };
|
|
99164
99227
|
}, true ? __vite__mapDeps([28,21,22,23]) : void 0);
|
|
99165
99228
|
return { id: id9, diagram: diagram2 };
|
|
@@ -99176,7 +99239,7 @@ var detector10 = /* @__PURE__ */ __name((txt) => {
|
|
|
99176
99239
|
}, "detector");
|
|
99177
99240
|
var loader10 = /* @__PURE__ */ __name(async () => {
|
|
99178
99241
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99179
|
-
const { diagram: diagram22 } = await import("./xychartDiagram-
|
|
99242
|
+
const { diagram: diagram22 } = await import("./xychartDiagram-PRI3JC2R-R6Jl1c89.js");
|
|
99180
99243
|
return { diagram: diagram22 };
|
|
99181
99244
|
}, true ? __vite__mapDeps([29,22,27,21,23]) : void 0);
|
|
99182
99245
|
return { id: id10, diagram: diagram2 };
|
|
@@ -99193,7 +99256,7 @@ var detector11 = /* @__PURE__ */ __name((txt) => {
|
|
|
99193
99256
|
}, "detector");
|
|
99194
99257
|
var loader11 = /* @__PURE__ */ __name(async () => {
|
|
99195
99258
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99196
|
-
const { diagram: diagram22 } = await import("./requirementDiagram-
|
|
99259
|
+
const { diagram: diagram22 } = await import("./requirementDiagram-UZGBJVZJ-DLK3A-pn.js");
|
|
99197
99260
|
return { diagram: diagram22 };
|
|
99198
99261
|
}, true ? __vite__mapDeps([30,12,13]) : void 0);
|
|
99199
99262
|
return { id: id11, diagram: diagram2 };
|
|
@@ -99210,7 +99273,7 @@ var detector12 = /* @__PURE__ */ __name((txt) => {
|
|
|
99210
99273
|
}, "detector");
|
|
99211
99274
|
var loader12 = /* @__PURE__ */ __name(async () => {
|
|
99212
99275
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99213
|
-
const { diagram: diagram22 } = await import("./sequenceDiagram-
|
|
99276
|
+
const { diagram: diagram22 } = await import("./sequenceDiagram-WL72ISMW-2guv6eOd.js");
|
|
99214
99277
|
return { diagram: diagram22 };
|
|
99215
99278
|
}, true ? __vite__mapDeps([31,9,18]) : void 0);
|
|
99216
99279
|
return { id: id12, diagram: diagram2 };
|
|
@@ -99230,9 +99293,9 @@ var detector13 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99230
99293
|
}, "detector");
|
|
99231
99294
|
var loader13 = /* @__PURE__ */ __name(async () => {
|
|
99232
99295
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99233
|
-
const { diagram: diagram22 } = await import("./classDiagram-
|
|
99296
|
+
const { diagram: diagram22 } = await import("./classDiagram-2ON5EDUG-BQFGGJNm.js");
|
|
99234
99297
|
return { diagram: diagram22 };
|
|
99235
|
-
}, true ? __vite__mapDeps([32,33,11,
|
|
99298
|
+
}, true ? __vite__mapDeps([32,33,11,12,13]) : void 0);
|
|
99236
99299
|
return { id: id13, diagram: diagram2 };
|
|
99237
99300
|
}, "loader");
|
|
99238
99301
|
var plugin11 = {
|
|
@@ -99250,9 +99313,9 @@ var detector14 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99250
99313
|
}, "detector");
|
|
99251
99314
|
var loader14 = /* @__PURE__ */ __name(async () => {
|
|
99252
99315
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99253
|
-
const { diagram: diagram22 } = await import("./classDiagram-v2-
|
|
99316
|
+
const { diagram: diagram22 } = await import("./classDiagram-v2-WZHVMYZB-BQFGGJNm.js");
|
|
99254
99317
|
return { diagram: diagram22 };
|
|
99255
|
-
}, true ? __vite__mapDeps([34,33,11,
|
|
99318
|
+
}, true ? __vite__mapDeps([34,33,11,12,13]) : void 0);
|
|
99256
99319
|
return { id: id14, diagram: diagram2 };
|
|
99257
99320
|
}, "loader");
|
|
99258
99321
|
var plugin12 = {
|
|
@@ -99270,7 +99333,7 @@ var detector15 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99270
99333
|
}, "detector");
|
|
99271
99334
|
var loader15 = /* @__PURE__ */ __name(async () => {
|
|
99272
99335
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99273
|
-
const { diagram: diagram22 } = await import("./stateDiagram-
|
|
99336
|
+
const { diagram: diagram22 } = await import("./stateDiagram-FKZM4ZOC-iujqSp0X.js");
|
|
99274
99337
|
return { diagram: diagram22 };
|
|
99275
99338
|
}, true ? __vite__mapDeps([35,36,12,13,1,2,3,4]) : void 0);
|
|
99276
99339
|
return { id: id15, diagram: diagram2 };
|
|
@@ -99293,7 +99356,7 @@ var detector16 = /* @__PURE__ */ __name((txt, config2) => {
|
|
|
99293
99356
|
}, "detector");
|
|
99294
99357
|
var loader16 = /* @__PURE__ */ __name(async () => {
|
|
99295
99358
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99296
|
-
const { diagram: diagram22 } = await import("./stateDiagram-v2-
|
|
99359
|
+
const { diagram: diagram22 } = await import("./stateDiagram-v2-4FDKWEC3-BxzY81ky.js");
|
|
99297
99360
|
return { diagram: diagram22 };
|
|
99298
99361
|
}, true ? __vite__mapDeps([37,36,12,13]) : void 0);
|
|
99299
99362
|
return { id: id16, diagram: diagram2 };
|
|
@@ -99310,9 +99373,9 @@ var detector17 = /* @__PURE__ */ __name((txt) => {
|
|
|
99310
99373
|
}, "detector");
|
|
99311
99374
|
var loader17 = /* @__PURE__ */ __name(async () => {
|
|
99312
99375
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99313
|
-
const { diagram: diagram22 } = await import("./journeyDiagram-
|
|
99376
|
+
const { diagram: diagram22 } = await import("./journeyDiagram-XKPGCS4Q-B91ZO-ec.js");
|
|
99314
99377
|
return { diagram: diagram22 };
|
|
99315
|
-
}, true ? __vite__mapDeps([38,11,
|
|
99378
|
+
}, true ? __vite__mapDeps([38,9,11,26]) : void 0);
|
|
99316
99379
|
return { id: id17, diagram: diagram2 };
|
|
99317
99380
|
}, "loader");
|
|
99318
99381
|
var plugin15 = {
|
|
@@ -99321,9 +99384,9 @@ var plugin15 = {
|
|
|
99321
99384
|
loader: loader17
|
|
99322
99385
|
};
|
|
99323
99386
|
var journeyDetector_default = plugin15;
|
|
99324
|
-
var draw = /* @__PURE__ */ __name((_text,
|
|
99387
|
+
var draw = /* @__PURE__ */ __name((_text, id28, version2) => {
|
|
99325
99388
|
log.debug("rendering svg for syntax error\n");
|
|
99326
|
-
const svg2 = selectSvgElement(
|
|
99389
|
+
const svg2 = selectSvgElement(id28);
|
|
99327
99390
|
const g2 = svg2.append("g");
|
|
99328
99391
|
svg2.attr("viewBox", "0 0 2412 512");
|
|
99329
99392
|
configureSvgSize(svg2, 100, 512, true);
|
|
@@ -99380,9 +99443,9 @@ var detector18 = /* @__PURE__ */ __name((txt, config2 = {}) => {
|
|
|
99380
99443
|
}, "detector");
|
|
99381
99444
|
var loader18 = /* @__PURE__ */ __name(async () => {
|
|
99382
99445
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99383
|
-
const { diagram: diagram22 } = await import("./flowDiagram-
|
|
99446
|
+
const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-m7ofIhri.js");
|
|
99384
99447
|
return { diagram: diagram22 };
|
|
99385
|
-
}, true ? __vite__mapDeps([10,11,
|
|
99448
|
+
}, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
|
|
99386
99449
|
return { id: id18, diagram: diagram2 };
|
|
99387
99450
|
}, "loader");
|
|
99388
99451
|
var plugin16 = {
|
|
@@ -99397,7 +99460,7 @@ var detector19 = /* @__PURE__ */ __name((txt) => {
|
|
|
99397
99460
|
}, "detector");
|
|
99398
99461
|
var loader19 = /* @__PURE__ */ __name(async () => {
|
|
99399
99462
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99400
|
-
const { diagram: diagram22 } = await import("./timeline-definition-
|
|
99463
|
+
const { diagram: diagram22 } = await import("./timeline-definition-IT6M3QCI-DjCFSC8d.js");
|
|
99401
99464
|
return { diagram: diagram22 };
|
|
99402
99465
|
}, true ? __vite__mapDeps([39,26]) : void 0);
|
|
99403
99466
|
return { id: id19, diagram: diagram2 };
|
|
@@ -99414,7 +99477,7 @@ var detector20 = /* @__PURE__ */ __name((txt) => {
|
|
|
99414
99477
|
}, "detector");
|
|
99415
99478
|
var loader20 = /* @__PURE__ */ __name(async () => {
|
|
99416
99479
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99417
|
-
const { diagram: diagram22 } = await import("./mindmap-definition-
|
|
99480
|
+
const { diagram: diagram22 } = await import("./mindmap-definition-VGOIOE7T-UDHZQkNZ.js");
|
|
99418
99481
|
return { diagram: diagram22 };
|
|
99419
99482
|
}, true ? __vite__mapDeps([40,12,13]) : void 0);
|
|
99420
99483
|
return { id: id20, diagram: diagram2 };
|
|
@@ -99431,7 +99494,7 @@ var detector21 = /* @__PURE__ */ __name((txt) => {
|
|
|
99431
99494
|
}, "detector");
|
|
99432
99495
|
var loader21 = /* @__PURE__ */ __name(async () => {
|
|
99433
99496
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99434
|
-
const { diagram: diagram22 } = await import("./kanban-definition-
|
|
99497
|
+
const { diagram: diagram22 } = await import("./kanban-definition-3W4ZIXB7-CoogrZ07.js");
|
|
99435
99498
|
return { diagram: diagram22 };
|
|
99436
99499
|
}, true ? __vite__mapDeps([41,11]) : void 0);
|
|
99437
99500
|
return { id: id21, diagram: diagram2 };
|
|
@@ -99448,7 +99511,7 @@ var detector22 = /* @__PURE__ */ __name((txt) => {
|
|
|
99448
99511
|
}, "detector");
|
|
99449
99512
|
var loader22 = /* @__PURE__ */ __name(async () => {
|
|
99450
99513
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99451
|
-
const { diagram: diagram22 } = await import("./sankeyDiagram-
|
|
99514
|
+
const { diagram: diagram22 } = await import("./sankeyDiagram-TZEHDZUN-CYqju8I1.js");
|
|
99452
99515
|
return { diagram: diagram22 };
|
|
99453
99516
|
}, true ? __vite__mapDeps([42,27,22]) : void 0);
|
|
99454
99517
|
return { id: id22, diagram: diagram2 };
|
|
@@ -99465,7 +99528,7 @@ var detector23 = /* @__PURE__ */ __name((txt) => {
|
|
|
99465
99528
|
}, "detector");
|
|
99466
99529
|
var loader23 = /* @__PURE__ */ __name(async () => {
|
|
99467
99530
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99468
|
-
const { diagram: diagram22 } = await import("./diagram-
|
|
99531
|
+
const { diagram: diagram22 } = await import("./diagram-S2PKOQOG-Bvw01OOG.js");
|
|
99469
99532
|
return { diagram: diagram22 };
|
|
99470
99533
|
}, true ? __vite__mapDeps([43,17,19,2,4,5]) : void 0);
|
|
99471
99534
|
return { id: id23, diagram: diagram2 };
|
|
@@ -99481,7 +99544,7 @@ var detector24 = /* @__PURE__ */ __name((txt) => {
|
|
|
99481
99544
|
}, "detector");
|
|
99482
99545
|
var loader24 = /* @__PURE__ */ __name(async () => {
|
|
99483
99546
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99484
|
-
const { diagram: diagram22 } = await import("./diagram-
|
|
99547
|
+
const { diagram: diagram22 } = await import("./diagram-QEK2KX5R-BZjGFX-2.js");
|
|
99485
99548
|
return { diagram: diagram22 };
|
|
99486
99549
|
}, true ? __vite__mapDeps([44,17,19,2,4,5]) : void 0);
|
|
99487
99550
|
return { id: id24, diagram: diagram2 };
|
|
@@ -99497,7 +99560,7 @@ var detector25 = /* @__PURE__ */ __name((txt) => {
|
|
|
99497
99560
|
}, "detector");
|
|
99498
99561
|
var loader25 = /* @__PURE__ */ __name(async () => {
|
|
99499
99562
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99500
|
-
const { diagram: diagram22 } = await import("./blockDiagram-
|
|
99563
|
+
const { diagram: diagram22 } = await import("./blockDiagram-VD42YOAC-BqK1KM2m.js");
|
|
99501
99564
|
return { diagram: diagram22 };
|
|
99502
99565
|
}, true ? __vite__mapDeps([45,11,5,2,1,14]) : void 0);
|
|
99503
99566
|
return { id: id25, diagram: diagram2 };
|
|
@@ -99514,7 +99577,7 @@ var detector26 = /* @__PURE__ */ __name((txt) => {
|
|
|
99514
99577
|
}, "detector");
|
|
99515
99578
|
var loader26 = /* @__PURE__ */ __name(async () => {
|
|
99516
99579
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99517
|
-
const { diagram: diagram22 } = await import("./architectureDiagram-
|
|
99580
|
+
const { diagram: diagram22 } = await import("./architectureDiagram-VXUJARFQ-DiUEBXOa.js");
|
|
99518
99581
|
return { diagram: diagram22 };
|
|
99519
99582
|
}, true ? __vite__mapDeps([46,17,19,2,4,5,7]) : void 0);
|
|
99520
99583
|
return { id: id26, diagram: diagram2 };
|
|
@@ -99525,55 +99588,22 @@ var architecture = {
|
|
|
99525
99588
|
loader: loader26
|
|
99526
99589
|
};
|
|
99527
99590
|
var architectureDetector_default = architecture;
|
|
99528
|
-
var id27 = "
|
|
99591
|
+
var id27 = "treemap";
|
|
99529
99592
|
var detector27 = /* @__PURE__ */ __name((txt) => {
|
|
99530
|
-
return /^\s*
|
|
99593
|
+
return /^\s*treemap/.test(txt);
|
|
99531
99594
|
}, "detector");
|
|
99532
99595
|
var loader27 = /* @__PURE__ */ __name(async () => {
|
|
99533
99596
|
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99534
|
-
const { diagram: diagram22 } = await import("./
|
|
99597
|
+
const { diagram: diagram22 } = await import("./diagram-PSM6KHXK-CM4hLE_0.js");
|
|
99535
99598
|
return { diagram: diagram22 };
|
|
99536
|
-
}, true ? [] : void 0);
|
|
99599
|
+
}, true ? __vite__mapDeps([47,13,17,19,2,4,5,23,27,22]) : void 0);
|
|
99537
99600
|
return { id: id27, diagram: diagram2 };
|
|
99538
99601
|
}, "loader");
|
|
99539
|
-
var
|
|
99602
|
+
var treemap = {
|
|
99540
99603
|
id: id27,
|
|
99541
99604
|
detector: detector27,
|
|
99542
99605
|
loader: loader27
|
|
99543
99606
|
};
|
|
99544
|
-
var id28 = "venn";
|
|
99545
|
-
var detector28 = /* @__PURE__ */ __name((txt) => {
|
|
99546
|
-
return /^\s*venn-beta/.test(txt);
|
|
99547
|
-
}, "detector");
|
|
99548
|
-
var loader28 = /* @__PURE__ */ __name(async () => {
|
|
99549
|
-
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99550
|
-
const { diagram: diagram22 } = await import("./vennDiagram-LZ73GAT5-BxVF5Olo.js");
|
|
99551
|
-
return { diagram: diagram22 };
|
|
99552
|
-
}, true ? [] : void 0);
|
|
99553
|
-
return { id: id28, diagram: diagram2 };
|
|
99554
|
-
}, "loader");
|
|
99555
|
-
var plugin22 = {
|
|
99556
|
-
id: id28,
|
|
99557
|
-
detector: detector28,
|
|
99558
|
-
loader: loader28
|
|
99559
|
-
};
|
|
99560
|
-
var vennDetector_default = plugin22;
|
|
99561
|
-
var id29 = "treemap";
|
|
99562
|
-
var detector29 = /* @__PURE__ */ __name((txt) => {
|
|
99563
|
-
return /^\s*treemap/.test(txt);
|
|
99564
|
-
}, "detector");
|
|
99565
|
-
var loader29 = /* @__PURE__ */ __name(async () => {
|
|
99566
|
-
const { diagram: diagram2 } = await __vitePreload(async () => {
|
|
99567
|
-
const { diagram: diagram22 } = await import("./diagram-E7M64L7V-QRaBfST8.js");
|
|
99568
|
-
return { diagram: diagram22 };
|
|
99569
|
-
}, true ? __vite__mapDeps([47,13,17,19,2,4,5,23,27,22]) : void 0);
|
|
99570
|
-
return { id: id29, diagram: diagram2 };
|
|
99571
|
-
}, "loader");
|
|
99572
|
-
var treemap = {
|
|
99573
|
-
id: id29,
|
|
99574
|
-
detector: detector29,
|
|
99575
|
-
loader: loader29
|
|
99576
|
-
};
|
|
99577
99607
|
var hasLoadedDiagrams = false;
|
|
99578
99608
|
var addDiagrams = /* @__PURE__ */ __name(() => {
|
|
99579
99609
|
if (hasLoadedDiagrams) {
|
|
@@ -99638,24 +99668,22 @@ var addDiagrams = /* @__PURE__ */ __name(() => {
|
|
|
99638
99668
|
xychartDetector_default,
|
|
99639
99669
|
blockDetector_default,
|
|
99640
99670
|
radar,
|
|
99641
|
-
|
|
99642
|
-
treemap,
|
|
99643
|
-
vennDetector_default
|
|
99671
|
+
treemap
|
|
99644
99672
|
);
|
|
99645
99673
|
}, "addDiagrams");
|
|
99646
99674
|
var loadRegisteredDiagrams = /* @__PURE__ */ __name(async () => {
|
|
99647
99675
|
log.debug(`Loading registered diagrams`);
|
|
99648
99676
|
const results = await Promise.allSettled(
|
|
99649
|
-
Object.entries(detectors).map(async ([key, { detector:
|
|
99650
|
-
if (!
|
|
99677
|
+
Object.entries(detectors).map(async ([key, { detector: detector28, loader: loader28 }]) => {
|
|
99678
|
+
if (!loader28) {
|
|
99651
99679
|
return;
|
|
99652
99680
|
}
|
|
99653
99681
|
try {
|
|
99654
99682
|
getDiagram(key);
|
|
99655
99683
|
} catch {
|
|
99656
99684
|
try {
|
|
99657
|
-
const { diagram: diagram2, id:
|
|
99658
|
-
registerDiagram(
|
|
99685
|
+
const { diagram: diagram2, id: id28 } = await loader28();
|
|
99686
|
+
registerDiagram(id28, diagram2, detector28);
|
|
99659
99687
|
} catch (err) {
|
|
99660
99688
|
log.error(`Failed to load external diagram with key ${key}. Removing from detectors.`);
|
|
99661
99689
|
delete detectors[key];
|
|
@@ -99712,12 +99740,12 @@ var Diagram = (_j = class {
|
|
|
99712
99740
|
try {
|
|
99713
99741
|
getDiagram(type2);
|
|
99714
99742
|
} catch {
|
|
99715
|
-
const
|
|
99716
|
-
if (!
|
|
99743
|
+
const loader28 = getDiagramLoader(type2);
|
|
99744
|
+
if (!loader28) {
|
|
99717
99745
|
throw new UnknownDiagramError(`Diagram ${type2} not found.`);
|
|
99718
99746
|
}
|
|
99719
|
-
const { id:
|
|
99720
|
-
registerDiagram(
|
|
99747
|
+
const { id: id28, diagram: diagram2 } = await loader28();
|
|
99748
|
+
registerDiagram(id28, diagram2);
|
|
99721
99749
|
}
|
|
99722
99750
|
const { db, parser, renderer: renderer2, init: init2 } = getDiagram(type2);
|
|
99723
99751
|
if (parser.parser) {
|
|
@@ -99731,8 +99759,8 @@ var Diagram = (_j = class {
|
|
|
99731
99759
|
await parser.parse(text2);
|
|
99732
99760
|
return new _j(type2, text2, db, parser, renderer2);
|
|
99733
99761
|
}
|
|
99734
|
-
async render(
|
|
99735
|
-
await this.renderer.draw(this.text,
|
|
99762
|
+
async render(id28, version2) {
|
|
99763
|
+
await this.renderer.draw(this.text, id28, version2, this);
|
|
99736
99764
|
}
|
|
99737
99765
|
getParser() {
|
|
99738
99766
|
return this.parser;
|
|
@@ -99885,7 +99913,7 @@ ${config2.themeCSS}`;
|
|
|
99885
99913
|
:root { --mermaid-alt-font-family: ${config2.altFontFamily}}`;
|
|
99886
99914
|
}
|
|
99887
99915
|
if (classDefs instanceof Map) {
|
|
99888
|
-
const htmlLabels =
|
|
99916
|
+
const htmlLabels = config2.htmlLabels ?? config2.flowchart?.htmlLabels;
|
|
99889
99917
|
const cssHtmlElements = ["> *", "span"];
|
|
99890
99918
|
const cssShapeElements = ["rect", "polygon", "ellipse", "circle", "path"];
|
|
99891
99919
|
const cssElements = htmlLabels ? cssHtmlElements : cssShapeElements;
|
|
@@ -99930,13 +99958,13 @@ var putIntoIFrame = /* @__PURE__ */ __name((svgCode = "", svgElement) => {
|
|
|
99930
99958
|
${IFRAME_NOT_SUPPORTED_MSG}
|
|
99931
99959
|
</iframe>`;
|
|
99932
99960
|
}, "putIntoIFrame");
|
|
99933
|
-
var appendDivSvgG = /* @__PURE__ */ __name((parentRoot,
|
|
99961
|
+
var appendDivSvgG = /* @__PURE__ */ __name((parentRoot, id28, enclosingDivId, divStyle, svgXlink) => {
|
|
99934
99962
|
const enclosingDiv = parentRoot.append("div");
|
|
99935
99963
|
enclosingDiv.attr("id", enclosingDivId);
|
|
99936
99964
|
if (divStyle) {
|
|
99937
99965
|
enclosingDiv.attr("style", divStyle);
|
|
99938
99966
|
}
|
|
99939
|
-
const svgNode2 = enclosingDiv.append("svg").attr("id",
|
|
99967
|
+
const svgNode2 = enclosingDiv.append("svg").attr("id", id28).attr("width", "100%").attr("xmlns", XMLNS_SVG_STD);
|
|
99940
99968
|
if (svgXlink) {
|
|
99941
99969
|
svgNode2.attr("xmlns:xlink", svgXlink);
|
|
99942
99970
|
}
|
|
@@ -99947,12 +99975,12 @@ function sandboxedIframe(parentNode, iFrameId) {
|
|
|
99947
99975
|
return parentNode.append("iframe").attr("id", iFrameId).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
99948
99976
|
}
|
|
99949
99977
|
__name(sandboxedIframe, "sandboxedIframe");
|
|
99950
|
-
var removeExistingElements = /* @__PURE__ */ __name((doc,
|
|
99951
|
-
doc.getElementById(
|
|
99978
|
+
var removeExistingElements = /* @__PURE__ */ __name((doc, id28, divId, iFrameId) => {
|
|
99979
|
+
doc.getElementById(id28)?.remove();
|
|
99952
99980
|
doc.getElementById(divId)?.remove();
|
|
99953
99981
|
doc.getElementById(iFrameId)?.remove();
|
|
99954
99982
|
}, "removeExistingElements");
|
|
99955
|
-
var render2 = /* @__PURE__ */ __name(async function(
|
|
99983
|
+
var render2 = /* @__PURE__ */ __name(async function(id28, text2, svgContainingElement) {
|
|
99956
99984
|
addDiagrams();
|
|
99957
99985
|
const processed = processAndSetConfigs(text2);
|
|
99958
99986
|
text2 = processed.code;
|
|
@@ -99961,10 +99989,10 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
99961
99989
|
if (text2.length > (config2?.maxTextSize ?? MAX_TEXTLENGTH)) {
|
|
99962
99990
|
text2 = MAX_TEXTLENGTH_EXCEEDED_MSG;
|
|
99963
99991
|
}
|
|
99964
|
-
const idSelector = "#" +
|
|
99965
|
-
const iFrameID = "i" +
|
|
99992
|
+
const idSelector = "#" + id28;
|
|
99993
|
+
const iFrameID = "i" + id28;
|
|
99966
99994
|
const iFrameID_selector = "#" + iFrameID;
|
|
99967
|
-
const enclosingDivID = "d" +
|
|
99995
|
+
const enclosingDivID = "d" + id28;
|
|
99968
99996
|
const enclosingDivID_selector = "#" + enclosingDivID;
|
|
99969
99997
|
const removeTempElements = /* @__PURE__ */ __name(() => {
|
|
99970
99998
|
const tmpElementSelector = isSandboxed ? iFrameID_selector : enclosingDivID_selector;
|
|
@@ -99988,9 +100016,9 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
99988
100016
|
} else {
|
|
99989
100017
|
root2 = select(svgContainingElement);
|
|
99990
100018
|
}
|
|
99991
|
-
appendDivSvgG(root2,
|
|
100019
|
+
appendDivSvgG(root2, id28, enclosingDivID, `font-family: ${fontFamily}`, XMLNS_XLINK_STD);
|
|
99992
100020
|
} else {
|
|
99993
|
-
removeExistingElements(document,
|
|
100021
|
+
removeExistingElements(document, id28, enclosingDivID, iFrameID);
|
|
99994
100022
|
if (isSandboxed) {
|
|
99995
100023
|
const iframe = sandboxedIframe(select("body"), iFrameID);
|
|
99996
100024
|
root2 = select(iframe.nodes()[0].contentDocument.body);
|
|
@@ -99998,7 +100026,7 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
99998
100026
|
} else {
|
|
99999
100027
|
root2 = select("body");
|
|
100000
100028
|
}
|
|
100001
|
-
appendDivSvgG(root2,
|
|
100029
|
+
appendDivSvgG(root2, id28, enclosingDivID);
|
|
100002
100030
|
}
|
|
100003
100031
|
let diag;
|
|
100004
100032
|
let parseEncounteredException;
|
|
@@ -100022,12 +100050,12 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
100022
100050
|
style1.innerHTML = rules;
|
|
100023
100051
|
svg2.insertBefore(style1, firstChild);
|
|
100024
100052
|
try {
|
|
100025
|
-
await diag.renderer.draw(text2,
|
|
100053
|
+
await diag.renderer.draw(text2, id28, package_default.version, diag);
|
|
100026
100054
|
} catch (e2) {
|
|
100027
100055
|
if (config2.suppressErrorRendering) {
|
|
100028
100056
|
removeTempElements();
|
|
100029
100057
|
} else {
|
|
100030
|
-
errorRenderer_default.draw(text2,
|
|
100058
|
+
errorRenderer_default.draw(text2, id28, package_default.version);
|
|
100031
100059
|
}
|
|
100032
100060
|
throw e2;
|
|
100033
100061
|
}
|
|
@@ -100035,7 +100063,7 @@ var render2 = /* @__PURE__ */ __name(async function(id30, text2, svgContainingEl
|
|
|
100035
100063
|
const a11yTitle = diag.db.getAccTitle?.();
|
|
100036
100064
|
const a11yDescr = diag.db.getAccDescription?.();
|
|
100037
100065
|
addA11yInfo(diagramType, svgNode2, a11yTitle, a11yDescr);
|
|
100038
|
-
root2.select(`[id="${
|
|
100066
|
+
root2.select(`[id="${id28}"]`).selectAll("foreignobject > *").attr("xmlns", XMLNS_XHTML_STD);
|
|
100039
100067
|
let svgCode = root2.select(enclosingDivID_selector).node().innerHTML;
|
|
100040
100068
|
log.debug("config.arrowMarkerAbsolute", config2.arrowMarkerAbsolute);
|
|
100041
100069
|
svgCode = cleanUpSvgCode(svgCode, isSandboxed, evaluate(config2.arrowMarkerAbsolute));
|
|
@@ -100175,7 +100203,7 @@ var runThrowsErrors = /* @__PURE__ */ __name(async function({ postRenderCallback
|
|
|
100175
100203
|
continue;
|
|
100176
100204
|
}
|
|
100177
100205
|
element.setAttribute("data-processed", "true");
|
|
100178
|
-
const
|
|
100206
|
+
const id28 = `mermaid-${idGenerator.next()}`;
|
|
100179
100207
|
txt = element.innerHTML;
|
|
100180
100208
|
txt = dedent(utils_default.entityDecode(txt)).trim().replace(/<br\s*\/?>/gi, "<br/>");
|
|
100181
100209
|
const init2 = utils_default.detectInit(txt);
|
|
@@ -100183,10 +100211,10 @@ var runThrowsErrors = /* @__PURE__ */ __name(async function({ postRenderCallback
|
|
|
100183
100211
|
log.debug("Detected early reinit: ", init2);
|
|
100184
100212
|
}
|
|
100185
100213
|
try {
|
|
100186
|
-
const { svg: svg2, bindFunctions } = await render22(
|
|
100214
|
+
const { svg: svg2, bindFunctions } = await render22(id28, txt, element);
|
|
100187
100215
|
element.innerHTML = svg2;
|
|
100188
100216
|
if (postRenderCallback) {
|
|
100189
|
-
await postRenderCallback(
|
|
100217
|
+
await postRenderCallback(id28);
|
|
100190
100218
|
}
|
|
100191
100219
|
if (bindFunctions) {
|
|
100192
100220
|
bindFunctions(element);
|
|
@@ -100281,10 +100309,10 @@ var parse2 = /* @__PURE__ */ __name(async (text2, parseOptions) => {
|
|
|
100281
100309
|
executeQueue().catch(reject);
|
|
100282
100310
|
});
|
|
100283
100311
|
}, "parse");
|
|
100284
|
-
var render22 = /* @__PURE__ */ __name((
|
|
100312
|
+
var render22 = /* @__PURE__ */ __name((id28, text2, container) => {
|
|
100285
100313
|
return new Promise((resolve, reject) => {
|
|
100286
100314
|
const performCall = /* @__PURE__ */ __name(() => new Promise((res, rej) => {
|
|
100287
|
-
mermaidAPI.render(
|
|
100315
|
+
mermaidAPI.render(id28, text2, container).then(
|
|
100288
100316
|
(r2) => {
|
|
100289
100317
|
res(r2);
|
|
100290
100318
|
resolve(r2);
|
|
@@ -100302,8 +100330,8 @@ var render22 = /* @__PURE__ */ __name((id30, text2, container) => {
|
|
|
100302
100330
|
});
|
|
100303
100331
|
}, "render");
|
|
100304
100332
|
var getRegisteredDiagramsMetadata = /* @__PURE__ */ __name(() => {
|
|
100305
|
-
return Object.keys(detectors).map((
|
|
100306
|
-
id:
|
|
100333
|
+
return Object.keys(detectors).map((id28) => ({
|
|
100334
|
+
id: id28
|
|
100307
100335
|
}));
|
|
100308
100336
|
}, "getRegisteredDiagramsMetadata");
|
|
100309
100337
|
var mermaid = {
|
|
@@ -100336,13 +100364,13 @@ class DomindsMermaidBlock extends HTMLElement {
|
|
|
100336
100364
|
return normalizedNewlines.replace(
|
|
100337
100365
|
/(\b[\w-]+)\[([^\]\n]*?)\]/g,
|
|
100338
100366
|
(_full, rawId, rawLabel) => {
|
|
100339
|
-
const
|
|
100367
|
+
const id28 = String(rawId);
|
|
100340
100368
|
const label = String(rawLabel).trim();
|
|
100341
|
-
if (!label) return `${
|
|
100342
|
-
if (label.startsWith('"') || label.startsWith("'")) return `${
|
|
100343
|
-
if (!/[<>()|]/.test(label)) return `${
|
|
100369
|
+
if (!label) return `${id28}[]`;
|
|
100370
|
+
if (label.startsWith('"') || label.startsWith("'")) return `${id28}[${label}]`;
|
|
100371
|
+
if (!/[<>()|]/.test(label)) return `${id28}[${label}]`;
|
|
100344
100372
|
const escaped = label.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
100345
|
-
return `${
|
|
100373
|
+
return `${id28}["${escaped}"]`;
|
|
100346
100374
|
}
|
|
100347
100375
|
);
|
|
100348
100376
|
}
|
|
@@ -100787,14 +100815,14 @@ md.core.ruler.push("dominds_heading_ids", (state2) => {
|
|
|
100787
100815
|
const rawText = inline2.content;
|
|
100788
100816
|
const base2 = slugifyHeadingId(rawText);
|
|
100789
100817
|
if (!base2) continue;
|
|
100790
|
-
let
|
|
100818
|
+
let id28 = base2;
|
|
100791
100819
|
let attempt = 2;
|
|
100792
|
-
while (used.has(
|
|
100793
|
-
|
|
100820
|
+
while (used.has(id28)) {
|
|
100821
|
+
id28 = `${base2}-${attempt}`;
|
|
100794
100822
|
attempt += 1;
|
|
100795
100823
|
}
|
|
100796
|
-
used.add(
|
|
100797
|
-
token2.attrSet("id",
|
|
100824
|
+
used.add(id28);
|
|
100825
|
+
token2.attrSet("id", id28);
|
|
100798
100826
|
}
|
|
100799
100827
|
});
|
|
100800
100828
|
installDomindsMathBlockRule(md);
|
|
@@ -101911,7 +101939,7 @@ class DomindsDialogContainer extends HTMLElement {
|
|
|
101911
101939
|
this.teamConfiguration = {
|
|
101912
101940
|
memberDefaults: { icon: cfg.memberDefaults.icon, name: cfg.memberDefaults.name },
|
|
101913
101941
|
members: Object.fromEntries(
|
|
101914
|
-
Object.entries(cfg.members).map(([
|
|
101942
|
+
Object.entries(cfg.members).map(([id28, m2]) => [id28, { icon: m2.icon, name: m2.name }])
|
|
101915
101943
|
)
|
|
101916
101944
|
};
|
|
101917
101945
|
} catch (error2) {
|
|
@@ -103280,9 +103308,9 @@ itemId: ${itemId}` : ""}` : `itemId: ${itemId}`;
|
|
|
103280
103308
|
const seen2 = /* @__PURE__ */ new Set();
|
|
103281
103309
|
const out = [];
|
|
103282
103310
|
for (const match2 of headline.matchAll(re2)) {
|
|
103283
|
-
const
|
|
103284
|
-
if (
|
|
103285
|
-
const mention = `@${
|
|
103311
|
+
const id28 = (match2[1] ?? "").trim();
|
|
103312
|
+
if (id28 === "") continue;
|
|
103313
|
+
const mention = `@${id28}`;
|
|
103286
103314
|
if (seen2.has(mention)) continue;
|
|
103287
103315
|
seen2.add(mention);
|
|
103288
103316
|
out.push(mention);
|
|
@@ -105159,19 +105187,19 @@ ${event.content}`;
|
|
|
105159
105187
|
// User messages are now handled by 'end_of_user_saying_evt' event - see handleDialogEvent()
|
|
105160
105188
|
getAuthorLabel(role, responderId) {
|
|
105161
105189
|
if (role === "user") return "Human";
|
|
105162
|
-
const
|
|
105163
|
-
if (!
|
|
105164
|
-
if (this.teamConfiguration?.members?.[
|
|
105165
|
-
const member = this.teamConfiguration.members[
|
|
105190
|
+
const id28 = responderId || this.currentDialog?.agentId || "";
|
|
105191
|
+
if (!id28) return "🤖 Assistant";
|
|
105192
|
+
if (this.teamConfiguration?.members?.[id28]) {
|
|
105193
|
+
const member = this.teamConfiguration.members[id28];
|
|
105166
105194
|
const icon2 = member.icon || this.teamConfiguration.memberDefaults?.icon || "🤖";
|
|
105167
|
-
const name = member.name || `@${
|
|
105195
|
+
const name = member.name || `@${id28}`;
|
|
105168
105196
|
return `${icon2} ${name}`;
|
|
105169
105197
|
}
|
|
105170
105198
|
if (this.teamConfiguration?.memberDefaults) {
|
|
105171
105199
|
const icon2 = this.teamConfiguration.memberDefaults.icon || "🤖";
|
|
105172
|
-
return `${icon2} @${
|
|
105200
|
+
return `${icon2} @${id28}`;
|
|
105173
105201
|
}
|
|
105174
|
-
return `🤖 @${
|
|
105202
|
+
return `🤖 @${id28}`;
|
|
105175
105203
|
}
|
|
105176
105204
|
escapeHtml(text2) {
|
|
105177
105205
|
return text2.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
@@ -106943,16 +106971,16 @@ class DomindsDocsPanel extends HTMLElement {
|
|
|
106943
106971
|
}
|
|
106944
106972
|
scrollToPendingAnchorIfAny() {
|
|
106945
106973
|
if (!this.pendingScrollAnchorId) return;
|
|
106946
|
-
const
|
|
106974
|
+
const id28 = this.pendingScrollAnchorId;
|
|
106947
106975
|
this.pendingScrollAnchorId = null;
|
|
106948
|
-
this.scrollToAnchorId(
|
|
106976
|
+
this.scrollToAnchorId(id28);
|
|
106949
106977
|
}
|
|
106950
|
-
scrollToAnchorId(
|
|
106978
|
+
scrollToAnchorId(id28) {
|
|
106951
106979
|
const root2 = this.shadowRoot;
|
|
106952
106980
|
if (!root2) return;
|
|
106953
106981
|
const body = root2.querySelector(".docs-body");
|
|
106954
106982
|
if (!(body instanceof HTMLElement)) return;
|
|
106955
|
-
const anchor2 = body.querySelector(`#${CSS.escape(
|
|
106983
|
+
const anchor2 = body.querySelector(`#${CSS.escape(id28)}`);
|
|
106956
106984
|
if (!(anchor2 instanceof HTMLElement)) return;
|
|
106957
106985
|
anchor2.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
106958
106986
|
}
|
|
@@ -107003,13 +107031,13 @@ class DomindsDocsPanel extends HTMLElement {
|
|
|
107003
107031
|
if (href.startsWith("#")) {
|
|
107004
107032
|
const idRaw = href.slice(1);
|
|
107005
107033
|
if (!idRaw) return;
|
|
107006
|
-
let
|
|
107034
|
+
let id28 = idRaw;
|
|
107007
107035
|
try {
|
|
107008
|
-
|
|
107036
|
+
id28 = decodeURIComponent(idRaw);
|
|
107009
107037
|
} catch {
|
|
107010
107038
|
}
|
|
107011
|
-
if (!
|
|
107012
|
-
this.scrollToAnchorId(
|
|
107039
|
+
if (!id28) return;
|
|
107040
|
+
this.scrollToAnchorId(id28);
|
|
107013
107041
|
return;
|
|
107014
107042
|
}
|
|
107015
107043
|
if (href.startsWith("/f/") || href === "/f" || href === "/workspace" || href.startsWith("/workspace/") || href === "/rtws" || href.startsWith("/rtws/")) {
|
|
@@ -107461,13 +107489,13 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
|
|
|
107461
107489
|
this.showError(error2 instanceof Error ? error2.message : t2.readFailed);
|
|
107462
107490
|
});
|
|
107463
107491
|
}
|
|
107464
|
-
removeImageAttachment(
|
|
107465
|
-
const existing = this.imageAttachments.find((attachment) => attachment.id ===
|
|
107492
|
+
removeImageAttachment(id28) {
|
|
107493
|
+
const existing = this.imageAttachments.find((attachment) => attachment.id === id28);
|
|
107466
107494
|
if (existing) {
|
|
107467
107495
|
URL.revokeObjectURL(existing.objectUrl);
|
|
107468
107496
|
}
|
|
107469
|
-
this.imageAttachments = this.imageAttachments.filter((attachment) => attachment.id !==
|
|
107470
|
-
if (this.openImageAttachmentId ===
|
|
107497
|
+
this.imageAttachments = this.imageAttachments.filter((attachment) => attachment.id !== id28);
|
|
107498
|
+
if (this.openImageAttachmentId === id28) {
|
|
107471
107499
|
this.openImageAttachmentId = null;
|
|
107472
107500
|
}
|
|
107473
107501
|
this.safeRender();
|
|
@@ -108043,9 +108071,9 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
|
|
|
108043
108071
|
}
|
|
108044
108072
|
this.shadowRoot.querySelectorAll(".attachment-thumb").forEach((button) => {
|
|
108045
108073
|
button.addEventListener("click", () => {
|
|
108046
|
-
const
|
|
108047
|
-
if (typeof
|
|
108048
|
-
this.openImageAttachmentId =
|
|
108074
|
+
const id28 = button.dataset.attachmentId;
|
|
108075
|
+
if (typeof id28 !== "string") return;
|
|
108076
|
+
this.openImageAttachmentId = id28;
|
|
108049
108077
|
this.safeRender();
|
|
108050
108078
|
});
|
|
108051
108079
|
});
|
|
@@ -108053,9 +108081,9 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
|
|
|
108053
108081
|
button.addEventListener("click", (event) => {
|
|
108054
108082
|
event.preventDefault();
|
|
108055
108083
|
event.stopPropagation();
|
|
108056
|
-
const
|
|
108057
|
-
if (typeof
|
|
108058
|
-
this.removeImageAttachment(
|
|
108084
|
+
const id28 = button.dataset.attachmentId;
|
|
108085
|
+
if (typeof id28 !== "string") return;
|
|
108086
|
+
this.removeImageAttachment(id28);
|
|
108059
108087
|
});
|
|
108060
108088
|
});
|
|
108061
108089
|
const modalCloseTargets = this.shadowRoot.querySelectorAll(
|
|
@@ -108318,17 +108346,17 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
|
|
|
108318
108346
|
if (this.imageAttachments.length === 0) return "";
|
|
108319
108347
|
const t2 = IMAGE_ATTACHMENT_I18N[this.uiLanguage];
|
|
108320
108348
|
const items = this.imageAttachments.map((attachment) => {
|
|
108321
|
-
const
|
|
108349
|
+
const id28 = _DomindsQ4HInput.escapeHtml(attachment.id);
|
|
108322
108350
|
const name = _DomindsQ4HInput.escapeHtml(attachment.name);
|
|
108323
108351
|
const src = _DomindsQ4HInput.escapeHtml(attachment.objectUrl);
|
|
108324
108352
|
return `
|
|
108325
108353
|
<div class="attachment-item">
|
|
108326
|
-
<button class="attachment-thumb" type="button" data-attachment-id="${
|
|
108354
|
+
<button class="attachment-thumb" type="button" data-attachment-id="${id28}" title="${_DomindsQ4HInput.escapeHtml(
|
|
108327
108355
|
t2.preview
|
|
108328
108356
|
)}" aria-label="${_DomindsQ4HInput.escapeHtml(t2.preview)}">
|
|
108329
108357
|
<img src="${src}" alt="${name}">
|
|
108330
108358
|
</button>
|
|
108331
|
-
<button class="attachment-remove" type="button" data-attachment-id="${
|
|
108359
|
+
<button class="attachment-remove" type="button" data-attachment-id="${id28}" title="${_DomindsQ4HInput.escapeHtml(
|
|
108332
108360
|
t2.remove
|
|
108333
108361
|
)}" aria-label="${_DomindsQ4HInput.escapeHtml(t2.remove)}">
|
|
108334
108362
|
<span class="icon-mask attachment-remove-icon" aria-hidden="true"></span>
|
|
@@ -108953,8 +108981,8 @@ class DomindsQ4HPanel extends HTMLElement {
|
|
|
108953
108981
|
if (!root2) return;
|
|
108954
108982
|
const selectedId = this.selectedQuestionId;
|
|
108955
108983
|
root2.querySelectorAll(".q4h-question-card").forEach((card2) => {
|
|
108956
|
-
const
|
|
108957
|
-
const selected = selectedId !== null &&
|
|
108984
|
+
const id28 = card2.getAttribute("data-question-id");
|
|
108985
|
+
const selected = selectedId !== null && id28 === selectedId;
|
|
108958
108986
|
card2.classList.toggle("selected", selected);
|
|
108959
108987
|
});
|
|
108960
108988
|
if (selectedId !== null) {
|
|
@@ -110111,20 +110139,20 @@ class DomindsSnippetsPanel extends HTMLElement {
|
|
|
110111
110139
|
const target = e2.target;
|
|
110112
110140
|
if (target instanceof Element && target.closest("button")) return;
|
|
110113
110141
|
if (this.state.kind !== "ready") return;
|
|
110114
|
-
const
|
|
110115
|
-
if (typeof
|
|
110142
|
+
const id28 = card2.getAttribute("data-id");
|
|
110143
|
+
if (typeof id28 !== "string" || id28 === "") return;
|
|
110116
110144
|
const all = this.state.groups.flatMap((g2) => g2.templates);
|
|
110117
|
-
const snippet2 = all.find((x2) => x2.id ===
|
|
110145
|
+
const snippet2 = all.find((x2) => x2.id === id28);
|
|
110118
110146
|
this.selectSnippet(snippet2 ?? null);
|
|
110119
110147
|
});
|
|
110120
110148
|
card2.addEventListener("keydown", (e2) => {
|
|
110121
110149
|
if (e2.key !== "Enter" && e2.key !== " ") return;
|
|
110122
110150
|
e2.preventDefault();
|
|
110123
110151
|
if (this.state.kind !== "ready") return;
|
|
110124
|
-
const
|
|
110125
|
-
if (typeof
|
|
110152
|
+
const id28 = card2.getAttribute("data-id");
|
|
110153
|
+
if (typeof id28 !== "string" || id28 === "") return;
|
|
110126
110154
|
const all = this.state.groups.flatMap((g2) => g2.templates);
|
|
110127
|
-
const snippet2 = all.find((x2) => x2.id ===
|
|
110155
|
+
const snippet2 = all.find((x2) => x2.id === id28);
|
|
110128
110156
|
this.selectSnippet(snippet2 ?? null);
|
|
110129
110157
|
});
|
|
110130
110158
|
});
|
|
@@ -110345,8 +110373,8 @@ function requireAppJson() {
|
|
|
110345
110373
|
function parseToolsetJson(v2, at2) {
|
|
110346
110374
|
if (!isRecord(v2))
|
|
110347
110375
|
return { ok: false, errorText: `Invalid ${at2}: expected object` };
|
|
110348
|
-
const
|
|
110349
|
-
if (!
|
|
110376
|
+
const id28 = asString(v2["id"]);
|
|
110377
|
+
if (!id28 || id28.trim() === "")
|
|
110350
110378
|
return { ok: false, errorText: `Invalid ${at2}.id: required` };
|
|
110351
110379
|
const descriptionI18n = v2["descriptionI18n"];
|
|
110352
110380
|
if (descriptionI18n !== void 0 && !isI18nText(descriptionI18n)) {
|
|
@@ -110365,7 +110393,7 @@ function requireAppJson() {
|
|
|
110365
110393
|
return {
|
|
110366
110394
|
ok: true,
|
|
110367
110395
|
toolset: {
|
|
110368
|
-
id:
|
|
110396
|
+
id: id28,
|
|
110369
110397
|
descriptionI18n,
|
|
110370
110398
|
tools
|
|
110371
110399
|
}
|
|
@@ -110374,8 +110402,8 @@ function requireAppJson() {
|
|
|
110374
110402
|
function parseDialogRunControlJson(v2, at2) {
|
|
110375
110403
|
if (!isRecord(v2))
|
|
110376
110404
|
return { ok: false, errorText: `Invalid ${at2}: expected object` };
|
|
110377
|
-
const
|
|
110378
|
-
if (!
|
|
110405
|
+
const id28 = asString(v2["id"]);
|
|
110406
|
+
if (!id28 || id28.trim() === "")
|
|
110379
110407
|
return { ok: false, errorText: `Invalid ${at2}.id: required` };
|
|
110380
110408
|
const descriptionI18n = v2["descriptionI18n"];
|
|
110381
110409
|
if (descriptionI18n !== void 0 && !isI18nText(descriptionI18n)) {
|
|
@@ -110384,7 +110412,7 @@ function requireAppJson() {
|
|
|
110384
110412
|
return {
|
|
110385
110413
|
ok: true,
|
|
110386
110414
|
control: {
|
|
110387
|
-
id:
|
|
110415
|
+
id: id28,
|
|
110388
110416
|
descriptionI18n
|
|
110389
110417
|
}
|
|
110390
110418
|
};
|
|
@@ -110898,16 +110926,16 @@ class DomindsTeamManualPanel extends HTMLElement {
|
|
|
110898
110926
|
const href = link2.getAttribute("href");
|
|
110899
110927
|
if (typeof href !== "string") return;
|
|
110900
110928
|
if (!href.startsWith("#")) return;
|
|
110901
|
-
let
|
|
110929
|
+
let id28 = href.slice(1);
|
|
110902
110930
|
try {
|
|
110903
|
-
|
|
110931
|
+
id28 = decodeURIComponent(id28);
|
|
110904
110932
|
} catch {
|
|
110905
110933
|
}
|
|
110906
|
-
if (!
|
|
110934
|
+
if (!id28) {
|
|
110907
110935
|
e2.preventDefault();
|
|
110908
110936
|
return;
|
|
110909
110937
|
}
|
|
110910
|
-
const anchor2 = body.querySelector(`#${CSS.escape(
|
|
110938
|
+
const anchor2 = body.querySelector(`#${CSS.escape(id28)}`);
|
|
110911
110939
|
e2.preventDefault();
|
|
110912
110940
|
if (!(anchor2 instanceof HTMLElement)) return;
|
|
110913
110941
|
anchor2.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
@@ -124112,13 +124140,13 @@ ${content}`;
|
|
|
124112
124140
|
for (const item of value) {
|
|
124113
124141
|
if (typeof item !== "object" || item === null) continue;
|
|
124114
124142
|
const rec = item;
|
|
124115
|
-
const
|
|
124143
|
+
const id28 = typeof rec["id"] === "string" ? rec["id"] : "";
|
|
124116
124144
|
const timestamp2 = typeof rec["timestamp"] === "string" ? rec["timestamp"].trim() : "";
|
|
124117
124145
|
const kind = rec["kind"];
|
|
124118
124146
|
const message = typeof rec["message"] === "string" ? rec["message"] : "";
|
|
124119
|
-
if (!
|
|
124147
|
+
if (!id28 || !_DomindsApp.UNIFIED_TIMESTAMP_PATTERN.test(timestamp2) || !message) continue;
|
|
124120
124148
|
if (kind !== "error" && kind !== "warning" && kind !== "info") continue;
|
|
124121
|
-
next2.push({ id:
|
|
124149
|
+
next2.push({ id: id28, timestamp: timestamp2, kind, message });
|
|
124122
124150
|
}
|
|
124123
124151
|
return next2;
|
|
124124
124152
|
}
|
|
@@ -124135,11 +124163,11 @@ ${content}`;
|
|
|
124135
124163
|
pushToastHistoryEntry(entry) {
|
|
124136
124164
|
this.loadToastHistoryFromStorage();
|
|
124137
124165
|
const now2 = /* @__PURE__ */ new Date();
|
|
124138
|
-
const
|
|
124166
|
+
const id28 = `${String(now2.getTime())}-${String(this.toastHistorySeq += 1)}`;
|
|
124139
124167
|
const trimmed = entry.message.trim();
|
|
124140
124168
|
if (trimmed === "") return;
|
|
124141
124169
|
const next2 = {
|
|
124142
|
-
id:
|
|
124170
|
+
id: id28,
|
|
124143
124171
|
timestamp: timeExports.formatUnifiedTimestamp(now2),
|
|
124144
124172
|
kind: entry.kind,
|
|
124145
124173
|
message: trimmed
|
|
@@ -125751,28 +125779,28 @@ ${content}`;
|
|
|
125751
125779
|
const next2 = [];
|
|
125752
125780
|
const seenIds = /* @__PURE__ */ new Set();
|
|
125753
125781
|
for (const existing of this.q4hQuestions) {
|
|
125754
|
-
const
|
|
125755
|
-
if (!
|
|
125782
|
+
const id28 = typeof existing.id === "string" ? existing.id : "";
|
|
125783
|
+
if (!id28) {
|
|
125756
125784
|
throw new Error("Q4H client cache violation: existing question has invalid id");
|
|
125757
125785
|
}
|
|
125758
|
-
if (seenIds.has(
|
|
125759
|
-
throw new Error(`Q4H client cache violation: duplicate cached question id (${
|
|
125786
|
+
if (seenIds.has(id28)) {
|
|
125787
|
+
throw new Error(`Q4H client cache violation: duplicate cached question id (${id28})`);
|
|
125760
125788
|
}
|
|
125761
|
-
seenIds.add(
|
|
125789
|
+
seenIds.add(id28);
|
|
125762
125790
|
const existingWithDialog = existing;
|
|
125763
125791
|
const selfId = typeof existingWithDialog.selfId === "string" ? existingWithDialog.selfId : null;
|
|
125764
125792
|
if (!selfId) {
|
|
125765
|
-
const incoming2 = incomingById.get(
|
|
125793
|
+
const incoming2 = incomingById.get(id28);
|
|
125766
125794
|
next2.push(incoming2 ?? existing);
|
|
125767
|
-
if (incoming2) incomingById.delete(
|
|
125795
|
+
if (incoming2) incomingById.delete(id28);
|
|
125768
125796
|
continue;
|
|
125769
125797
|
}
|
|
125770
125798
|
const rootId = typeof existingWithDialog.rootId === "string" && existingWithDialog.rootId ? existingWithDialog.rootId : selfId;
|
|
125771
125799
|
const status = this.lookupVisibleDialogStatusByIds(rootId, selfId);
|
|
125772
|
-
const incoming = incomingById.get(
|
|
125800
|
+
const incoming = incomingById.get(id28);
|
|
125773
125801
|
if (incoming) {
|
|
125774
125802
|
next2.push(incoming);
|
|
125775
|
-
incomingById.delete(
|
|
125803
|
+
incomingById.delete(id28);
|
|
125776
125804
|
continue;
|
|
125777
125805
|
}
|
|
125778
125806
|
if (status === "running") {
|
|
@@ -125780,11 +125808,11 @@ ${content}`;
|
|
|
125780
125808
|
}
|
|
125781
125809
|
next2.push(existing);
|
|
125782
125810
|
}
|
|
125783
|
-
for (const [
|
|
125784
|
-
if (seenIds.has(
|
|
125785
|
-
throw new Error(`Q4H state merge violation: duplicate id during merge (${
|
|
125811
|
+
for (const [id28, q2] of incomingById.entries()) {
|
|
125812
|
+
if (seenIds.has(id28)) {
|
|
125813
|
+
throw new Error(`Q4H state merge violation: duplicate id during merge (${id28})`);
|
|
125786
125814
|
}
|
|
125787
|
-
seenIds.add(
|
|
125815
|
+
seenIds.add(id28);
|
|
125788
125816
|
next2.push(q2);
|
|
125789
125817
|
}
|
|
125790
125818
|
this.q4hQuestions = next2;
|
|
@@ -127817,15 +127845,15 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
127817
127845
|
});
|
|
127818
127846
|
export {
|
|
127819
127847
|
commonDb_exports as $,
|
|
127820
|
-
|
|
127821
|
-
|
|
127822
|
-
|
|
127823
|
-
|
|
127824
|
-
|
|
127825
|
-
|
|
127826
|
-
|
|
127827
|
-
|
|
127828
|
-
|
|
127848
|
+
rgba$1 as A,
|
|
127849
|
+
__export as B,
|
|
127850
|
+
setupGraphViewbox2 as C,
|
|
127851
|
+
cleanAndMerge as D,
|
|
127852
|
+
defaultConfig_default as E,
|
|
127853
|
+
getConfig as F,
|
|
127854
|
+
random as G,
|
|
127855
|
+
selectSvgElement as H,
|
|
127856
|
+
package_default as I,
|
|
127829
127857
|
JSON_SCHEMA as J,
|
|
127830
127858
|
getThemeVariables3 as K,
|
|
127831
127859
|
hasKatex as L,
|
|
@@ -127845,7 +127873,7 @@ export {
|
|
|
127845
127873
|
ZERO_WIDTH_SPACE as Z,
|
|
127846
127874
|
__name as _,
|
|
127847
127875
|
getAccTitle as a,
|
|
127848
|
-
|
|
127876
|
+
isLabelStyle as a$,
|
|
127849
127877
|
withPath as a0,
|
|
127850
127878
|
halfPi as a1,
|
|
127851
127879
|
epsilon as a2,
|
|
@@ -127856,33 +127884,33 @@ export {
|
|
|
127856
127884
|
abs$1 as a7,
|
|
127857
127885
|
pi as a8,
|
|
127858
127886
|
sqrt as a9,
|
|
127859
|
-
|
|
127860
|
-
|
|
127861
|
-
|
|
127862
|
-
|
|
127863
|
-
|
|
127864
|
-
|
|
127865
|
-
|
|
127866
|
-
|
|
127867
|
-
|
|
127868
|
-
|
|
127869
|
-
|
|
127870
|
-
|
|
127871
|
-
|
|
127872
|
-
|
|
127873
|
-
|
|
127874
|
-
|
|
127875
|
-
|
|
127876
|
-
|
|
127877
|
-
|
|
127878
|
-
|
|
127879
|
-
|
|
127880
|
-
|
|
127881
|
-
|
|
127882
|
-
|
|
127883
|
-
|
|
127884
|
-
|
|
127885
|
-
|
|
127887
|
+
baseRest as aA,
|
|
127888
|
+
isArrayLikeObject as aB,
|
|
127889
|
+
constant as aC,
|
|
127890
|
+
isFunction as aD,
|
|
127891
|
+
isEmpty2 as aE,
|
|
127892
|
+
computeDimensionOfText as aF,
|
|
127893
|
+
array as aG,
|
|
127894
|
+
getUserDefinedConfig as aH,
|
|
127895
|
+
getDefaultExportFromCjs as aI,
|
|
127896
|
+
getIconSVG as aJ,
|
|
127897
|
+
registerIconPacks as aK,
|
|
127898
|
+
unknownIcon as aL,
|
|
127899
|
+
constant$2 as aM,
|
|
127900
|
+
interpolateNumber as aN,
|
|
127901
|
+
color as aO,
|
|
127902
|
+
interpolateRgb as aP,
|
|
127903
|
+
interpolateString as aQ,
|
|
127904
|
+
isObject as aR,
|
|
127905
|
+
isIterateeCall as aS,
|
|
127906
|
+
keysIn as aT,
|
|
127907
|
+
eq as aU,
|
|
127908
|
+
isArrayLike as aV,
|
|
127909
|
+
isArray as aW,
|
|
127910
|
+
identity as aX,
|
|
127911
|
+
isIndex as aY,
|
|
127912
|
+
assignValue as aZ,
|
|
127913
|
+
styles2String as a_,
|
|
127886
127914
|
atan2 as aa,
|
|
127887
127915
|
constant$1 as ab,
|
|
127888
127916
|
asin as ac,
|
|
@@ -127892,68 +127920,65 @@ export {
|
|
|
127892
127920
|
insertNode as ag,
|
|
127893
127921
|
positionNode as ah,
|
|
127894
127922
|
getLineFunctionsWithOffset as ai,
|
|
127895
|
-
|
|
127923
|
+
evaluate as aj,
|
|
127896
127924
|
createText as ak,
|
|
127897
|
-
|
|
127898
|
-
|
|
127899
|
-
|
|
127900
|
-
|
|
127901
|
-
|
|
127902
|
-
|
|
127903
|
-
|
|
127904
|
-
|
|
127905
|
-
|
|
127906
|
-
|
|
127907
|
-
|
|
127908
|
-
|
|
127909
|
-
|
|
127910
|
-
|
|
127911
|
-
|
|
127925
|
+
getSubGraphTitleMargins as al,
|
|
127926
|
+
replaceIconSubstring as am,
|
|
127927
|
+
decodeEntities as an,
|
|
127928
|
+
getStylesFromArray as ao,
|
|
127929
|
+
Utils as ap,
|
|
127930
|
+
Color$1 as aq,
|
|
127931
|
+
markers_default as ar,
|
|
127932
|
+
clear2 as as,
|
|
127933
|
+
clear as at,
|
|
127934
|
+
clear$1 as au,
|
|
127935
|
+
updateNodeBounds as av,
|
|
127936
|
+
setNodeElem as aw,
|
|
127937
|
+
insertEdge as ax,
|
|
127938
|
+
positionEdgeLabel as ay,
|
|
127939
|
+
insertEdgeLabel as az,
|
|
127912
127940
|
setAccTitle as b,
|
|
127913
|
-
|
|
127914
|
-
|
|
127915
|
-
|
|
127916
|
-
|
|
127917
|
-
|
|
127918
|
-
|
|
127919
|
-
|
|
127920
|
-
|
|
127921
|
-
|
|
127922
|
-
|
|
127923
|
-
|
|
127924
|
-
|
|
127925
|
-
|
|
127926
|
-
|
|
127927
|
-
|
|
127928
|
-
|
|
127929
|
-
|
|
127930
|
-
|
|
127931
|
-
|
|
127932
|
-
|
|
127933
|
-
|
|
127934
|
-
|
|
127935
|
-
|
|
127936
|
-
|
|
127937
|
-
|
|
127938
|
-
|
|
127939
|
-
|
|
127940
|
-
|
|
127941
|
-
|
|
127942
|
-
|
|
127943
|
-
|
|
127944
|
-
|
|
127945
|
-
|
|
127946
|
-
|
|
127947
|
-
|
|
127948
|
-
|
|
127949
|
-
|
|
127950
|
-
|
|
127951
|
-
|
|
127952
|
-
|
|
127953
|
-
|
|
127954
|
-
initCloneObject as bx,
|
|
127955
|
-
Stack as by,
|
|
127956
|
-
MapCache as bz,
|
|
127941
|
+
Rgb as b0,
|
|
127942
|
+
rgbConvert as b1,
|
|
127943
|
+
define as b2,
|
|
127944
|
+
extend$1 as b3,
|
|
127945
|
+
Color as b4,
|
|
127946
|
+
nogamma as b5,
|
|
127947
|
+
hue as b6,
|
|
127948
|
+
dayjs2 as b7,
|
|
127949
|
+
setToString as b8,
|
|
127950
|
+
overRest as b9,
|
|
127951
|
+
Set$1 as bA,
|
|
127952
|
+
createAssigner as bB,
|
|
127953
|
+
isPrototype as bC,
|
|
127954
|
+
getAugmentedNamespace as bD,
|
|
127955
|
+
__vitePreload as bE,
|
|
127956
|
+
baseFor as ba,
|
|
127957
|
+
baseAssignValue as bb,
|
|
127958
|
+
baseUnary as bc,
|
|
127959
|
+
merge as bd,
|
|
127960
|
+
isObjectLike as be,
|
|
127961
|
+
baseGetTag as bf,
|
|
127962
|
+
Symbol$1 as bg,
|
|
127963
|
+
arrayLikeKeys as bh,
|
|
127964
|
+
baseKeys as bi,
|
|
127965
|
+
memoize as bj,
|
|
127966
|
+
isArguments as bk,
|
|
127967
|
+
copyObject as bl,
|
|
127968
|
+
getPrototype as bm,
|
|
127969
|
+
cloneArrayBuffer as bn,
|
|
127970
|
+
cloneTypedArray as bo,
|
|
127971
|
+
getTag as bp,
|
|
127972
|
+
nodeUtil as bq,
|
|
127973
|
+
copyArray as br,
|
|
127974
|
+
isBuffer as bs,
|
|
127975
|
+
cloneBuffer as bt,
|
|
127976
|
+
initCloneObject as bu,
|
|
127977
|
+
Stack as bv,
|
|
127978
|
+
MapCache as bw,
|
|
127979
|
+
Uint8Array$1 as bx,
|
|
127980
|
+
isTypedArray as by,
|
|
127981
|
+
isLength as bz,
|
|
127957
127982
|
getConfig2 as c,
|
|
127958
127983
|
select as d,
|
|
127959
127984
|
configureSvgSize as e,
|
|
@@ -127976,7 +128001,7 @@ export {
|
|
|
127976
128001
|
isValidShape as v,
|
|
127977
128002
|
wrapLabel as w,
|
|
127978
128003
|
getEdgeId as x,
|
|
127979
|
-
|
|
127980
|
-
|
|
128004
|
+
clear$2 as y,
|
|
128005
|
+
defaultConfig2 as z
|
|
127981
128006
|
};
|
|
127982
|
-
//# sourceMappingURL=index
|
|
128007
|
+
//# sourceMappingURL=index-tinPEZoH.js.map
|