@pb33f/cowboy-components 0.13.1 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_baseUniq-CL3reOBl.js → _baseUniq-CcG8uZM_.js} +74 -74
- package/dist/{_baseUniq-CacIA2LC.cjs → _baseUniq-Co8RB71y.cjs} +1 -1
- package/dist/arc-CZ9OyfV-.js +84 -0
- package/dist/arc-D5LG9aVl.cjs +1 -0
- package/dist/{architecture-YZFGNWBL-_gv9FazX.cjs → architecture-YZFGNWBL-CuyaOcgJ.cjs} +1 -1
- package/dist/{architecture-YZFGNWBL-fFrwoJ4k.js → architecture-YZFGNWBL-ne59NWt0.js} +1 -1
- package/dist/{architectureDiagram-Q4EWVU46-DtZlfd53.cjs → architectureDiagram-Q4EWVU46-CxErVIKm.cjs} +1 -1
- package/dist/{architectureDiagram-Q4EWVU46-B3fgqlMK.js → architectureDiagram-Q4EWVU46-ibaXfmmT.js} +4 -4
- package/dist/{blockDiagram-DXYQGD6D-CX0JRAKx.js → blockDiagram-DXYQGD6D-D5vqojm8.js} +18 -17
- package/dist/blockDiagram-DXYQGD6D-iFIpSW7Y.cjs +132 -0
- package/dist/{c4Diagram-AHTNJAMY-DLeN9ZAF.cjs → c4Diagram-AHTNJAMY-Av_INk2v.cjs} +1 -1
- package/dist/{c4Diagram-AHTNJAMY-BfMyY6ox.js → c4Diagram-AHTNJAMY-B7t5p6jA.js} +2 -2
- package/dist/change-list-item-4xBSo3-U.cjs +4586 -0
- package/dist/change-list-item-Bu_mPv-k.js +19108 -0
- package/dist/channel-BvR-WhLo.js +5 -0
- package/dist/{channel-IzC5TEAD.cjs → channel-DO31wbvk.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-CeMFPKaY.cjs → chunk-4BX2VUAB-DHdTrTTD.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-Bn2rH23T.js → chunk-4BX2VUAB-DQ4rU_AZ.js} +1 -1
- package/dist/{chunk-4TB4RGXK-C5Pdp8au.js → chunk-4TB4RGXK-BK_uuzSP.js} +5 -5
- package/dist/{chunk-4TB4RGXK-BbYCdNI3.cjs → chunk-4TB4RGXK-BlskfrH8.cjs} +1 -1
- package/dist/{chunk-55IACEB6-DdI_-Q_K.js → chunk-55IACEB6-BauZDeFH.js} +1 -1
- package/dist/{chunk-55IACEB6-DX9DtTQS.cjs → chunk-55IACEB6-CRJ5yCrP.cjs} +1 -1
- package/dist/{chunk-EDXVE4YY-nccXma-D.cjs → chunk-EDXVE4YY-BrlRuHp3.cjs} +1 -1
- package/dist/{chunk-EDXVE4YY-CCku7m5j.js → chunk-EDXVE4YY-DPpXfrr8.js} +1 -1
- package/dist/{chunk-FMBD7UC4-Bt5qtKsR.cjs → chunk-FMBD7UC4-0x38b8wg.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-BG1WV71B.js → chunk-FMBD7UC4-CtyzUnzx.js} +1 -1
- package/dist/{chunk-OYMX7WX6-DTbRX5BF.cjs → chunk-OYMX7WX6-DU4Zqa7r.cjs} +1 -1
- package/dist/{chunk-OYMX7WX6-Dj8r6q8i.js → chunk-OYMX7WX6-U53KZXxw.js} +35 -35
- package/dist/{chunk-QZHKN3VN-LZahlHwm.js → chunk-QZHKN3VN-BhntY1rB.js} +1 -1
- package/dist/{chunk-QZHKN3VN-v9FRBMwC.cjs → chunk-QZHKN3VN-Dyhr8mWm.cjs} +1 -1
- package/dist/{chunk-YZCP3GAM-BfcbLjwl.js → chunk-YZCP3GAM--UtgfYoK.js} +1 -1
- package/dist/{chunk-YZCP3GAM-DJNk9cax.cjs → chunk-YZCP3GAM-B_2rYHHe.cjs} +1 -1
- package/dist/{classDiagram-v2-HSJHXN6E-BHEetvl6.js → classDiagram-6PBFFD2Q-DX5nDbg5.js} +2 -2
- package/dist/{classDiagram-6PBFFD2Q-DnanA8bA.cjs → classDiagram-6PBFFD2Q-w916JDya.cjs} +1 -1
- package/dist/{classDiagram-6PBFFD2Q-BHEetvl6.js → classDiagram-v2-HSJHXN6E-DX5nDbg5.js} +2 -2
- package/dist/{classDiagram-v2-HSJHXN6E-DnanA8bA.cjs → classDiagram-v2-HSJHXN6E-w916JDya.cjs} +1 -1
- package/dist/{clone-C3LRmiE8.js → clone-DFz4YXr3.js} +1 -1
- package/dist/clone-D_c-FYGd.cjs +1 -0
- package/dist/components/diff-viewer/diff-viewer.js +5 -36
- package/dist/components/diff-viewer/line-renderer.d.ts +15 -0
- package/dist/components/diff-viewer/line-renderer.js +49 -0
- package/dist/components/footer/footer.d.ts +3 -0
- package/dist/components/footer/footer.js +10 -4
- package/dist/components/logo-wall/logos/apache.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/apache.svg.js +100 -0
- package/dist/components/logo-wall/logos/apideck.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/apideck.svg.js +14 -0
- package/dist/components/logo-wall/logos/apigee.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/apigee.svg.js +16 -0
- package/dist/components/logo-wall/logos/bump.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/bump.svg.js +14 -0
- package/dist/components/logo-wall/logos/bytebase.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/bytebase.svg.js +11 -0
- package/dist/components/logo-wall/logos/chainlink.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/chainlink.svg.js +18 -0
- package/dist/components/logo-wall/logos/cisco.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/cisco.svg.js +14 -0
- package/dist/components/logo-wall/logos/elastic.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/elastic.svg.js +14 -0
- package/dist/components/logo-wall/logos/google.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/google.svg.js +12 -0
- package/dist/components/logo-wall/logos/grafana.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/grafana.svg.js +14 -0
- package/dist/components/logo-wall/logos/hashicorp.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/hashicorp.svg.js +18 -0
- package/dist/components/logo-wall/logos/hasura.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/hasura.svg.js +14 -0
- package/dist/components/logo-wall/logos/jpmorgan.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/jpmorgan.svg.js +22 -0
- package/dist/components/logo-wall/logos/kong.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/kong.svg.js +13 -0
- package/dist/components/logo-wall/logos/mongodb.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/mongodb.svg.js +17 -0
- package/dist/components/logo-wall/logos/nhost.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/nhost.svg.js +9 -0
- package/dist/components/logo-wall/logos/okta.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/okta.svg.js +8 -0
- package/dist/components/logo-wall/logos/opentelemetry.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/opentelemetry.svg.js +8 -0
- package/dist/components/logo-wall/logos/prometheus.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/prometheus.svg.js +8 -0
- package/dist/components/logo-wall/logos/pulumi.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/pulumi.svg.js +10 -0
- package/dist/components/logo-wall/logos/redhat.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/redhat.svg.js +8 -0
- package/dist/components/logo-wall/logos/scalar.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/scalar.svg.js +19 -0
- package/dist/components/logo-wall/logos/splunk.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/splunk.svg.js +8 -0
- package/dist/components/logo-wall/logos/unkey.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/unkey.svg.js +15 -0
- package/dist/components/logo-wall/logowall.d.ts +2 -24
- package/dist/components/logo-wall/logowall.js +58 -373
- package/dist/components/model-renderer/rendered-node.css.js +10 -0
- package/dist/components/model-renderer/rendered-node.d.ts +2 -0
- package/dist/components/model-renderer/rendered-node.js +16 -4
- package/dist/components/premium-gate/premium-gate.css.js +18 -1
- package/dist/components/premium-gate/premium-gate.js +2 -2
- package/dist/components/problem-list/problem-item.js +3 -2
- package/dist/components/problem-list/problem-list.d.ts +2 -0
- package/dist/components/problem-list/problem-list.js +26 -7
- package/dist/components/problems-overview/problem-overview-group.js +2 -1
- package/dist/components/visualizer/edge.d.ts +6 -2
- package/dist/components/visualizer/edge.js +26 -4
- package/dist/components/visualizer/equalizer.css.js +11 -2
- package/dist/components/visualizer/explorer.d.ts +3 -1
- package/dist/components/visualizer/explorer.js +51 -59
- package/dist/components/visualizer/nodes/change-view-node.d.ts +2 -2
- package/dist/components/visualizer/nodes/change-view-node.js +10 -6
- package/dist/components/visualizer/nodes/graph-node.d.ts +12 -8
- package/dist/components/visualizer/nodes/graph-node.js +47 -25
- package/dist/components/visualizer/nodes/schema.d.ts +7 -0
- package/dist/components/visualizer/nodes/schema.js +81 -59
- package/dist/components/visualizer/shared.css.js +48 -10
- package/dist/components/visualizer/viewport-position.d.ts +28 -0
- package/dist/components/visualizer/viewport-position.js +38 -0
- package/dist/components/workspaces/workspace-view.js +10 -7
- package/dist/components/yaml-viewer/yaml-viewer.css.d.ts +2 -0
- package/dist/components/yaml-viewer/yaml-viewer.css.js +45 -0
- package/dist/components/yaml-viewer/yaml-viewer.d.ts +22 -0
- package/dist/components/yaml-viewer/yaml-viewer.js +86 -0
- package/dist/controllers/diagramatron-controller.d.ts +2 -6
- package/dist/controllers/diagramatron-controller.js +4 -1
- package/dist/controllers/problem-controller.d.ts +1 -0
- package/dist/controllers/problem-controller.js +40 -24
- package/dist/{cose-bilkent-S5V4N54A-CdEgH7NU.cjs → cose-bilkent-S5V4N54A-CKHB3cR8.cjs} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-FFskauHi.js → cose-bilkent-S5V4N54A-DcUKlxlF.js} +2 -2
- package/dist/{cowboy-components-DlcOqYuh.cjs → cowboy-components-CjgqXqkM.cjs} +1148 -1063
- package/dist/{cowboy-components-_6157Gms.js → cowboy-components-CxawaKWM.js} +8784 -8910
- package/dist/{dagre-KV5264BT-BBKAH5Vs.cjs → dagre-KV5264BT-B2JWO01l.cjs} +1 -1
- package/dist/{dagre-KV5264BT-BnGcCOZB.js → dagre-KV5264BT-Nl_VfI8a.js} +29 -29
- package/dist/{diagram-5BDNPKRD-Caf5-T5J.cjs → diagram-5BDNPKRD-BKI_3vWy.cjs} +1 -1
- package/dist/{diagram-5BDNPKRD-C9cE16Nq.js → diagram-5BDNPKRD-TI1X3fNz.js} +4 -4
- package/dist/{diagram-G4DWMVQ6-eVnE9je7.js → diagram-G4DWMVQ6-CFqOAmuK.js} +4 -4
- package/dist/{diagram-G4DWMVQ6-B_Z6cYPf.cjs → diagram-G4DWMVQ6-DFBdN4sf.cjs} +1 -1
- package/dist/{diagram-MMDJMWI5-CAOLJUQB.js → diagram-MMDJMWI5-BSsV2xaN.js} +3 -3
- package/dist/{diagram-MMDJMWI5-Btfr_jTp.cjs → diagram-MMDJMWI5-CFuTCrVQ.cjs} +1 -1
- package/dist/{diagram-TYMM5635-B5eh2zfi.js → diagram-TYMM5635-BP1f-EB_.js} +3 -3
- package/dist/{diagram-TYMM5635-pKdjOMF8.cjs → diagram-TYMM5635-CrgW2ZZO.cjs} +1 -1
- package/dist/{erDiagram-SMLLAGMA-DIG0NSaA.cjs → erDiagram-SMLLAGMA-C3caLNRz.cjs} +1 -1
- package/dist/{erDiagram-SMLLAGMA-B2OnES7y.js → erDiagram-SMLLAGMA-rVfyZdO4.js} +4 -4
- package/dist/events/doctor.d.ts +3 -1
- package/dist/factories/explorer-component-factory.d.ts +2 -1
- package/dist/factories/explorer-component-factory.js +1 -0
- package/dist/{flowDiagram-DWJPFMVM-2zskCMow.cjs → flowDiagram-DWJPFMVM-Ce_HVRt5.cjs} +1 -1
- package/dist/{flowDiagram-DWJPFMVM-CXPAxHvt.js → flowDiagram-DWJPFMVM-DqFXC8zL.js} +6 -6
- package/dist/{ganttDiagram-T4ZO3ILL-D6Frz-JF.js → ganttDiagram-T4ZO3ILL-BmNOX7yf.js} +3 -3
- package/dist/{ganttDiagram-T4ZO3ILL-BeVChtO1.cjs → ganttDiagram-T4ZO3ILL-HHFgf8w4.cjs} +1 -1
- package/dist/{gitGraph-7Q5UKJZL-BJ6cbAq9.cjs → gitGraph-7Q5UKJZL-DgndfdDH.cjs} +1 -1
- package/dist/{gitGraph-7Q5UKJZL-ZUTHDSj9.js → gitGraph-7Q5UKJZL-kCDkIMWc.js} +1 -1
- package/dist/{gitGraphDiagram-UUTBAWPF--sskoNSw.js → gitGraphDiagram-UUTBAWPF-C-Ahhj_h.js} +4 -4
- package/dist/{gitGraphDiagram-UUTBAWPF-Bk5mBktt.cjs → gitGraphDiagram-UUTBAWPF-DaVjvjth.cjs} +1 -1
- package/dist/{graph-n3mQ-eMa.js → graph-Dfys1tzR.js} +43 -43
- package/dist/{graph-CitLzybf.cjs → graph-DyZUkQBU.cjs} +1 -1
- package/dist/{info-OMHHGYJF-Drd77e1G.cjs → info-OMHHGYJF-Cb_sFFZS.cjs} +1 -1
- package/dist/info-OMHHGYJF-KL9K6Ofp.js +5 -0
- package/dist/{infoDiagram-42DDH7IO-BYCSBry1.js → infoDiagram-42DDH7IO-BP_YOQpC.js} +2 -2
- package/dist/{infoDiagram-42DDH7IO-Drbr569o.cjs → infoDiagram-42DDH7IO-C09CiT2v.cjs} +1 -1
- package/dist/{ishikawaDiagram-UXIWVN3A-DTTtSjta.cjs → ishikawaDiagram-UXIWVN3A-CjAoGU0v.cjs} +1 -1
- package/dist/{ishikawaDiagram-UXIWVN3A-DtA8KbKf.js → ishikawaDiagram-UXIWVN3A-DwW6fn0e.js} +1 -1
- package/dist/{journeyDiagram-VCZTEJTY-NGtPMfE0.js → journeyDiagram-VCZTEJTY-Bk7z4VA2.js} +4 -4
- package/dist/{journeyDiagram-VCZTEJTY-B2Mj0NKu.cjs → journeyDiagram-VCZTEJTY-CZnSwt6p.cjs} +1 -1
- package/dist/{kanban-definition-6JOO6SKY-BH9sPBGO.js → kanban-definition-6JOO6SKY-BiN4nM1i.js} +22 -22
- package/dist/{kanban-definition-6JOO6SKY-BBqZKCyL.cjs → kanban-definition-6JOO6SKY-DZF8xgYV.cjs} +1 -1
- package/dist/{layout-Dxl_HlKH.js → layout-BDanDonD.js} +89 -89
- package/dist/{layout-BXXLjgVz.cjs → layout-rTQtAIwn.cjs} +1 -1
- package/dist/linear-CuHSYSeN.cjs +1 -0
- package/dist/{linear-CZplgftO.js → linear-DFB2dCGq.js} +26 -26
- package/dist/{mermaid-parser.core-DsLOyQb-.js → mermaid-parser.core-CCHvxUQl.js} +13 -13
- package/dist/{mermaid-parser.core-By3g6lf1.cjs → mermaid-parser.core-fjh_cn2l.cjs} +2 -2
- package/dist/{min-sstTPxgN.cjs → min-h6fs1hPk.cjs} +1 -1
- package/dist/{min-CqEuxX5S.js → min-rDRC9KDF.js} +8 -8
- package/dist/{mindmap-definition-QFDTVHPH-B3Oxj65X.cjs → mindmap-definition-QFDTVHPH-BbUJ3LHd.cjs} +1 -1
- package/dist/{mindmap-definition-QFDTVHPH-BNYDl_JS.js → mindmap-definition-QFDTVHPH-CZMHHnKO.js} +11 -11
- package/dist/{packet-4T2RLAQJ-E5BuU-_N.cjs → packet-4T2RLAQJ-BRTuQgpj.cjs} +1 -1
- package/dist/{packet-4T2RLAQJ-Dz7awUWB.js → packet-4T2RLAQJ-Bl5gBk4Q.js} +1 -1
- package/dist/{pie-ZZUOXDRM-Dy70KTXz.cjs → pie-ZZUOXDRM-BbZyrtOg.cjs} +1 -1
- package/dist/pie-ZZUOXDRM-CpENjo0C.js +5 -0
- package/dist/{pieDiagram-DEJITSTG-N6CuTO5d.js → pieDiagram-DEJITSTG-BNTE6R98.js} +43 -42
- package/dist/pieDiagram-DEJITSTG-BpiMiYGL.cjs +30 -0
- package/dist/{quadrantDiagram-34T5L4WZ-BFmWaVMB.cjs → quadrantDiagram-34T5L4WZ-DODOOGae.cjs} +1 -1
- package/dist/{quadrantDiagram-34T5L4WZ-aciP1QIx.js → quadrantDiagram-34T5L4WZ-JjtOrhxB.js} +2 -2
- package/dist/radar-PYXPWWZC-BiAwm-jb.js +5 -0
- package/dist/{radar-PYXPWWZC-BF0Fb1TH.cjs → radar-PYXPWWZC-CSH1N71W.cjs} +1 -1
- package/dist/{requirementDiagram-MS252O5E-DkopqGtb.cjs → requirementDiagram-MS252O5E-CjMpy00l.cjs} +1 -1
- package/dist/{requirementDiagram-MS252O5E-BKe1ubad.js → requirementDiagram-MS252O5E-CwV2UGNb.js} +3 -3
- package/dist/{sankeyDiagram-XADWPNL6-DrZ6paqw.cjs → sankeyDiagram-XADWPNL6-BzayPzy0.cjs} +1 -1
- package/dist/{sankeyDiagram-XADWPNL6-CXWxDxz9.js → sankeyDiagram-XADWPNL6-rri4GWAM.js} +1 -1
- package/dist/{sequenceDiagram-FGHM5R23-DeT0Ej2-.js → sequenceDiagram-FGHM5R23-BwBriXF1.js} +3 -3
- package/dist/{sequenceDiagram-FGHM5R23-AgywoQ1Q.cjs → sequenceDiagram-FGHM5R23-D-YegsL-.cjs} +1 -1
- package/dist/services/workspace-service.js +3 -3
- package/dist/stateDiagram-FHFEXIEX-Cq2H2XQO.cjs +1 -0
- package/dist/{stateDiagram-FHFEXIEX-7A28ex_-.js → stateDiagram-FHFEXIEX-jfwjGp1O.js} +44 -43
- package/dist/{stateDiagram-v2-QKLJ7IA2-DKdmAkPd.js → stateDiagram-v2-QKLJ7IA2-Bw4Xgr7w.js} +2 -2
- package/dist/{stateDiagram-v2-QKLJ7IA2-COHQmika.cjs → stateDiagram-v2-QKLJ7IA2-DKL73VEs.cjs} +1 -1
- package/dist/{timeline-definition-GMOUNBTQ-a3VL8qvl.js → timeline-definition-GMOUNBTQ-CpABxKM5.js} +23 -23
- package/dist/{timeline-definition-GMOUNBTQ-CLIWGUDx.cjs → timeline-definition-GMOUNBTQ-DP1yCayj.cjs} +1 -1
- package/dist/{treeView-SZITEDCU-DhzhM13M.cjs → treeView-SZITEDCU-BizNBkAv.cjs} +1 -1
- package/dist/{treeView-SZITEDCU-BI7UKP6V.js → treeView-SZITEDCU-BtaLEQ3S.js} +1 -1
- package/dist/{treemap-W4RFUUIX-D27UX2aI.cjs → treemap-W4RFUUIX-Cbbx2tbB.cjs} +1 -1
- package/dist/{treemap-W4RFUUIX-DBHIrtnC.js → treemap-W4RFUUIX-CmVVUeZj.js} +1 -1
- package/dist/{vennDiagram-DHZGUBPP-BA4bv3TJ.js → vennDiagram-DHZGUBPP-C0edoxsg.js} +59 -59
- package/dist/{vennDiagram-DHZGUBPP-u9RE2cv7.cjs → vennDiagram-DHZGUBPP-Dv3ZX8SJ.cjs} +1 -1
- package/dist/{wardley-RL74JXVD-CAZiB4K3.cjs → wardley-RL74JXVD-BndLe7vL.cjs} +1 -1
- package/dist/{wardley-RL74JXVD-9hft70S_.js → wardley-RL74JXVD-DdQvN9q5.js} +1 -1
- package/dist/{wardleyDiagram-NUSXRM2D-DBsr2UYG.js → wardleyDiagram-NUSXRM2D-DCChf1Y2.js} +3 -3
- package/dist/{wardleyDiagram-NUSXRM2D-CKCVdEN3.cjs → wardleyDiagram-NUSXRM2D-DpluOG7a.cjs} +1 -1
- package/dist/workers/elk-fake-worker.generated.d.ts +3 -0
- package/dist/workers/elk-fake-worker.generated.js +50224 -0
- package/dist/workers/elk-layout-blob.generated.js +16 -18
- package/dist/workers/elk-layout.worker.js +5 -2
- package/dist/{xychartDiagram-5P7HB3ND-BfkKtA74.cjs → xychartDiagram-5P7HB3ND-B7y6-7BP.cjs} +4 -4
- package/dist/{xychartDiagram-5P7HB3ND-CIeY2sBx.js → xychartDiagram-5P7HB3ND-BWvz1AY8.js} +8 -7
- package/package.json +11 -2
- package/dist/arc-2E-fJnok.js +0 -83
- package/dist/arc-Cah-EtVa.cjs +0 -1
- package/dist/blockDiagram-DXYQGD6D-CUmPhtkh.cjs +0 -132
- package/dist/change-list-item-CrZn84tY.cjs +0 -4535
- package/dist/change-list-item-DMLMmZ6U.js +0 -18744
- package/dist/channel-CMrLSZsY.js +0 -5
- package/dist/clone-Bqh1gJUP.cjs +0 -1
- package/dist/info-OMHHGYJF-D5oOa7Mo.js +0 -5
- package/dist/linear-DpB2Zi1A.cjs +0 -1
- package/dist/pie-ZZUOXDRM-DjXev5ml.js +0 -5
- package/dist/pieDiagram-DEJITSTG-HFspfzyv.cjs +0 -30
- package/dist/radar-PYXPWWZC-atHOjpus.js +0 -5
- package/dist/stateDiagram-FHFEXIEX-CKm2mS6U.cjs +0 -1
package/dist/{timeline-definition-GMOUNBTQ-a3VL8qvl.js → timeline-definition-GMOUNBTQ-CpABxKM5.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o, D as pt,
|
|
2
|
-
import { d as ot } from "./arc-
|
|
1
|
+
import { _ as o, D as pt, T as Ct, U as Rt, V as Wt, c as gt, l as E, I as Pt, N as Bt, W as ft, d as K, C as Vt, X as Ft, z as zt } from "./cowboy-components-CxawaKWM.js";
|
|
2
|
+
import { d as ot } from "./arc-CZ9OyfV-.js";
|
|
3
3
|
var tt = (function() {
|
|
4
4
|
var e = /* @__PURE__ */ o(function(k, s, d, l) {
|
|
5
5
|
for (d = d || {}, l = k.length; l--; d[k[l]] = s) ;
|
|
@@ -74,7 +74,7 @@ var tt = (function() {
|
|
|
74
74
|
w.setInput(s, H.yy), H.yy.lexer = w, H.yy.parser = this, typeof w.yylloc > "u" && (w.yylloc = {});
|
|
75
75
|
var F = w.yylloc;
|
|
76
76
|
u.push(F);
|
|
77
|
-
var
|
|
77
|
+
var X = w.options && w.options.ranges;
|
|
78
78
|
typeof H.yy.parseError == "function" ? this.parseError = H.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
79
79
|
function N(A) {
|
|
80
80
|
l.length = l.length - 2 * A, x.length = x.length - A, u.length = u.length - A;
|
|
@@ -113,7 +113,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "
|
|
|
113
113
|
last_line: u[u.length - 1].last_line,
|
|
114
114
|
first_column: u[u.length - (B || 1)].first_column,
|
|
115
115
|
last_column: u[u.length - 1].last_column
|
|
116
|
-
},
|
|
116
|
+
}, X && (R._$.range = [
|
|
117
117
|
u[u.length - (B || 1)].range[0],
|
|
118
118
|
u[u.length - 1].range[1]
|
|
119
119
|
]), P = this.performAction.apply(R, [
|
|
@@ -378,8 +378,8 @@ Vt(yt, {
|
|
|
378
378
|
getTasks: () => St,
|
|
379
379
|
setDirection: () => vt
|
|
380
380
|
});
|
|
381
|
-
var D = "", mt = 0, nt = "LR", rt = [], q = [],
|
|
382
|
-
rt.length = 0, q.length = 0, D = "",
|
|
381
|
+
var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o(() => Ft, "getCommonDb"), kt = /* @__PURE__ */ o(function() {
|
|
382
|
+
rt.length = 0, q.length = 0, D = "", U.length = 0, nt = "LR", zt();
|
|
383
383
|
}, "clear"), vt = /* @__PURE__ */ o(function(e) {
|
|
384
384
|
nt = e;
|
|
385
385
|
}, "setDirection"), bt = /* @__PURE__ */ o(function() {
|
|
@@ -394,7 +394,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o((
|
|
|
394
394
|
let n = 0;
|
|
395
395
|
for (; !e && n < t; )
|
|
396
396
|
e = ct(), n++;
|
|
397
|
-
return q.push(...
|
|
397
|
+
return q.push(...U), q;
|
|
398
398
|
}, "getTasks"), Et = /* @__PURE__ */ o(function(e, t, n) {
|
|
399
399
|
const i = {
|
|
400
400
|
id: mt++,
|
|
@@ -405,9 +405,9 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o((
|
|
|
405
405
|
//if event is defined, then add it the events array
|
|
406
406
|
events: n ? [n] : []
|
|
407
407
|
};
|
|
408
|
-
|
|
408
|
+
U.push(i);
|
|
409
409
|
}, "addTask"), Tt = /* @__PURE__ */ o(function(e) {
|
|
410
|
-
|
|
410
|
+
U.find((n) => n.id === mt - 1).events.push(e);
|
|
411
411
|
}, "addEvent"), $t = /* @__PURE__ */ o(function(e) {
|
|
412
412
|
const t = {
|
|
413
413
|
section: D,
|
|
@@ -419,10 +419,10 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o((
|
|
|
419
419
|
q.push(t);
|
|
420
420
|
}, "addTaskOrg"), ct = /* @__PURE__ */ o(function() {
|
|
421
421
|
const e = /* @__PURE__ */ o(function(n) {
|
|
422
|
-
return
|
|
422
|
+
return U[n].processed;
|
|
423
423
|
}, "compileTask");
|
|
424
424
|
let t = !0;
|
|
425
|
-
for (const [n, i] of
|
|
425
|
+
for (const [n, i] of U.entries())
|
|
426
426
|
e(n), t = t && i.processed;
|
|
427
427
|
return t;
|
|
428
428
|
}, "compileTasks"), Gt = {
|
|
@@ -456,7 +456,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o((
|
|
|
456
456
|
f.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
457
457
|
}
|
|
458
458
|
return o(a, "ambivalent"), t.score > 3 ? h(r) : t.score < 3 ? c(r) : a(r), i;
|
|
459
|
-
}, "drawFace"),
|
|
459
|
+
}, "drawFace"), Ut = /* @__PURE__ */ o(function(e, t) {
|
|
460
460
|
const n = e.append("circle");
|
|
461
461
|
return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
|
|
462
462
|
}, "drawCircle"), It = /* @__PURE__ */ o(function(e, t) {
|
|
@@ -464,14 +464,14 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o((
|
|
|
464
464
|
i.attr("x", t.x), i.attr("y", t.y), i.attr("class", "legend"), i.style("text-anchor", t.anchor), t.class !== void 0 && i.attr("class", t.class);
|
|
465
465
|
const r = i.append("tspan");
|
|
466
466
|
return r.attr("x", t.x + t.textMargin * 2), r.text(n), i;
|
|
467
|
-
}, "drawText"),
|
|
467
|
+
}, "drawText"), Xt = /* @__PURE__ */ o(function(e, t) {
|
|
468
468
|
function n(r, h, c, a, f) {
|
|
469
469
|
return r + "," + h + " " + (r + c) + "," + h + " " + (r + c) + "," + (h + a - f) + " " + (r + c - f * 1.2) + "," + (h + a) + " " + r + "," + (h + a);
|
|
470
470
|
}
|
|
471
471
|
o(n, "genPoints");
|
|
472
472
|
const i = e.append("polygon");
|
|
473
473
|
i.attr("points", n(t.x, t.y, 50, 20, 7)), i.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, It(e, t);
|
|
474
|
-
}, "drawLabel"),
|
|
474
|
+
}, "drawLabel"), Kt = /* @__PURE__ */ o(function(e, t, n) {
|
|
475
475
|
const i = e.append("g"), r = st();
|
|
476
476
|
r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = n.width, r.height = n.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, J(i, r), Ht(n)(
|
|
477
477
|
t.text,
|
|
@@ -565,7 +565,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], X = [], xt = /* @__PURE__ */ o((
|
|
|
565
565
|
}, "initGraphics");
|
|
566
566
|
function it(e, t) {
|
|
567
567
|
e.each(function() {
|
|
568
|
-
var n =
|
|
568
|
+
var n = K(this), i = n.text().split(/(\s+|<br>)/).reverse(), r, h = [], c = 1.1, a = n.attr("y"), f = parseFloat(n.attr("dy")), g = n.text(null).append("tspan").attr("x", 0).attr("y", a).attr("dy", f + "em");
|
|
569
569
|
for (let m = 0; m < i.length; m++)
|
|
570
570
|
r = i[i.length - 1 - m], h.push(r), g.text(h.join(" ").trim()), (g.node().getComputedTextLength() > t || r === "<br>") && (h.pop(), g.text(h.join(" ").trim()), r === "<br>" ? h = [""] : h = [r], g = n.append("tspan").attr("x", 0).attr("y", a).attr("dy", c + "em").text(r));
|
|
571
571
|
});
|
|
@@ -582,7 +582,7 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
582
582
|
"transform",
|
|
583
583
|
`translate(${t.width / 2}, ${h ? t.padding / 2 + 3 : t.padding})`
|
|
584
584
|
), te(k, t, m, r, i), a === "neo" && (y.attr("data-look", "neo"), f)) {
|
|
585
|
-
const x = c.includes("dark"), u = e.node()?.ownerSVGElement ?? e.node(), S =
|
|
585
|
+
const x = c.includes("dark"), u = e.node()?.ownerSVGElement ?? e.node(), S = K(u), v = S.attr("id") ?? "", I = v ? `${v}-drop-shadow` : "drop-shadow";
|
|
586
586
|
if (S.select(`#${I}`).empty()) {
|
|
587
587
|
const C = S.select("defs");
|
|
588
588
|
(C.empty() ? S.append("defs") : C).append("filter").attr("id", I).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", x ? "0.2" : "0.06").attr("flood-color", x ? "#FFFFFF" : "#000000");
|
|
@@ -597,10 +597,10 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
597
597
|
e.append("path").attr("id", i + "-node-" + Nt++).attr("class", "node-bkg node-" + t.type).attr("d", f), h?.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
598
598
|
}, "defaultBkg"), M = {
|
|
599
599
|
drawRect: J,
|
|
600
|
-
drawCircle:
|
|
601
|
-
drawSection:
|
|
600
|
+
drawCircle: Ut,
|
|
601
|
+
drawSection: Kt,
|
|
602
602
|
drawText: It,
|
|
603
|
-
drawLabel:
|
|
603
|
+
drawLabel: Xt,
|
|
604
604
|
drawTask: Zt,
|
|
605
605
|
drawBackgroundRect: jt,
|
|
606
606
|
getTextObj: qt,
|
|
@@ -613,8 +613,8 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
613
613
|
E.debug("timeline", i.db);
|
|
614
614
|
const k = r.securityLevel;
|
|
615
615
|
let s;
|
|
616
|
-
k === "sandbox" && (s =
|
|
617
|
-
const l = (k === "sandbox" ?
|
|
616
|
+
k === "sandbox" && (s = K("#i" + t));
|
|
617
|
+
const l = (k === "sandbox" ? K(s.nodes()[0].contentDocument.body) : K("body")).select("#" + t);
|
|
618
618
|
l.append("g");
|
|
619
619
|
const p = i.db.getTasks(), x = i.db.getCommonDb().getDiagramTitle();
|
|
620
620
|
E.debug("task", p), M.initGraphics(l, t);
|
|
@@ -853,8 +853,8 @@ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
853
853
|
throw new Error("bbox not found");
|
|
854
854
|
E.debug("bounds after title", w);
|
|
855
855
|
}
|
|
856
|
-
const [H] = Bt(r.fontSize), V = (H ?? 16) * 2, F = (H ?? 16) * 0.5 + 20,
|
|
857
|
-
|
|
856
|
+
const [H] = Bt(r.fontSize), V = (H ?? 16) * 2, F = (H ?? 16) * 0.5 + 20, X = c.append("g").attr("class", "lineWrapper");
|
|
857
|
+
X.append("line").attr("x1", I).attr("y1", d - V).attr("x2", I).attr("y2", w.y + w.height + F).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), X.lower(), ft(
|
|
858
858
|
void 0,
|
|
859
859
|
c,
|
|
860
860
|
r.timeline?.padding ?? 50,
|
package/dist/{timeline-definition-GMOUNBTQ-CLIWGUDx.cjs → timeline-definition-GMOUNBTQ-DP1yCayj.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./cowboy-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./cowboy-components-CjgqXqkM.cjs"),st=require("./arc-D5LG9aVl.cjs");var Q=(function(){var e=r.__name(function(x,s,d,c){for(d=d||{},c=x.length;c--;d[x[c]]=s);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],a=[1,14],h=[1,15],l=[1,16],o=[1,19],f=[1,20],p={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:r.__name(function(s,d,c,g,y,u,S){var k=u.length-1;switch(y){case 1:return u[k-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[k-1].push(u[k]),this.$=u[k-1];break;case 7:case 8:this.$=u[k];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[k].substr(6)),this.$=u[k].substr(6);break;case 12:this.$=u[k].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[k].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[k].substr(8)),this.$=u[k].substr(8);break;case 18:g.addTask(u[k],0,""),this.$=u[k];break;case 19:g.addEvent(u[k].substr(2)),this.$=u[k];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:a,19:h,20:l,21:17,22:18,23:o,24:f},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:a,19:h,20:l,21:17,22:18,23:o,24:f},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:r.__name(function(s,d){if(d.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=d,c}},"parseError"),parse:r.__name(function(s){var d=this,c=[0],g=[],y=[null],u=[],S=this.table,k="",N=0,A=0,R=2,O=1,H=u.slice.call(arguments,1),w=Object.create(this.lexer),I={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(I.yy[B]=this.yy[B]);w.setInput(s,I.yy),I.yy.lexer=w,I.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var V=w.yylloc;u.push(V);var q=w.options&&w.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $(M){c.length=c.length-2*M,y.length=y.length-M,u.length=u.length-M}r.__name($,"popStack");function v(){var M;return M=g.pop()||w.lex()||O,typeof M!="number"&&(M instanceof Array&&(g=M,M=g.pop()),M=d.symbols_[M]||M),M}r.__name(v,"lex");for(var b,T,E,W,C={},z,P,j,K;;){if(T=c[c.length-1],this.defaultActions[T]?E=this.defaultActions[T]:((b===null||typeof b>"u")&&(b=v()),E=S[T]&&S[T][b]),typeof E>"u"||!E.length||!E[0]){var J="";K=[];for(z in S[T])this.terminals_[z]&&z>R&&K.push("'"+this.terminals_[z]+"'");w.showPosition?J="Parse error on line "+(N+1)+`:
|
|
2
2
|
`+w.showPosition()+`
|
|
3
3
|
Expecting `+K.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(N+1)+": Unexpected "+(b==O?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:w.match,token:this.terminals_[b]||b,line:w.yylineno,loc:V,expected:K})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+b);switch(E[0]){case 1:c.push(b),y.push(w.yytext),u.push(w.yylloc),c.push(E[1]),b=null,A=w.yyleng,k=w.yytext,N=w.yylineno,V=w.yylloc;break;case 2:if(P=this.productions_[E[1]][1],C.$=y[y.length-P],C._$={first_line:u[u.length-(P||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(P||1)].first_column,last_column:u[u.length-1].last_column},q&&(C._$.range=[u[u.length-(P||1)].range[0],u[u.length-1].range[1]]),W=this.performAction.apply(C,[k,A,N,I.yy,E[1],y,u].concat(H)),typeof W<"u")return W;P&&(c=c.slice(0,-1*P*2),y=y.slice(0,-1*P),u=u.slice(0,-1*P)),c.push(this.productions_[E[1]][0]),y.push(C.$),u.push(C._$),j=S[c[c.length-2]][c[c.length-1]],c.push(j);break;case 3:return!0}}return!0},"parse")},_=(function(){var x={EOF:1,parseError:r.__name(function(d,c){if(this.yy.parser)this.yy.parser.parseError(d,c);else throw new Error(d)},"parseError"),setInput:r.__name(function(s,d){return this.yy=d||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:r.__name(function(s){var d=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===g.length?this.yylloc.first_column:0)+g[g.length-c.length].length-c[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:r.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-fjh_cn2l.cjs");exports.TreeViewModule=e.TreeViewModule;exports.createTreeViewServices=e.createTreeViewServices;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-fjh_cn2l.cjs");exports.TreemapModule=e.TreemapModule;exports.createTreemapServices=e.createTreemapServices;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { az as Gt, _ as w, s as Wt, g as Kt, q as Ht, p as Yt, a as Xt, b as Zt, D as wt, I as Jt, d as ot, ao as Qt, T as $t, U as te, V as ee, e as ne, z as se, F as ie, G as oe } from "./cowboy-components-CxawaKWM.js";
|
|
2
2
|
const kt = (t, n) => Gt(t, "a", -n), _t = 1e-10;
|
|
3
3
|
function st(t, n) {
|
|
4
4
|
const s = ae(t), e = s.filter((c) => re(c, t));
|
|
@@ -273,9 +273,9 @@ function At(t, n = {}) {
|
|
|
273
273
|
}
|
|
274
274
|
return o;
|
|
275
275
|
}
|
|
276
|
-
const
|
|
276
|
+
const Rt = 1e-10;
|
|
277
277
|
function ht(t, n, s) {
|
|
278
|
-
return Math.min(t, n) * Math.min(t, n) * Math.PI <= s +
|
|
278
|
+
return Math.min(t, n) * Math.min(t, n) * Math.PI <= s + Rt ? Math.abs(t - n) : le((e) => xt(t, n, e) - s, 0, t + n);
|
|
279
279
|
}
|
|
280
280
|
function fe(t, n = {}) {
|
|
281
281
|
const s = n.distinct, e = t.map((c) => Object.assign({}, c));
|
|
@@ -389,7 +389,7 @@ function ye(t, n) {
|
|
|
389
389
|
for (const y of t) {
|
|
390
390
|
let d = y.weight != null ? y.weight : 1;
|
|
391
391
|
const b = y.sets[0], x = y.sets[1];
|
|
392
|
-
y.size +
|
|
392
|
+
y.size + Rt >= Math.min(e[b].size, e[x].size) && (d = 0), i[b].push({ set: x, size: y.size, weight: d }), i[x].push({ set: b, size: y.size, weight: d });
|
|
393
393
|
}
|
|
394
394
|
const o = [];
|
|
395
395
|
Object.keys(i).forEach((y) => {
|
|
@@ -452,7 +452,7 @@ function tt(t, n) {
|
|
|
452
452
|
}
|
|
453
453
|
return s;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Dt(t, n) {
|
|
456
456
|
let s = 0;
|
|
457
457
|
for (const e of n) {
|
|
458
458
|
if (e.sets.length === 1)
|
|
@@ -622,10 +622,10 @@ function be(t = {}) {
|
|
|
622
622
|
f.forEach((k) => {
|
|
623
623
|
k.size == 0 && k.sets.length == 1 && N.add(k.sets[0]);
|
|
624
624
|
}), f = f.filter((k) => !k.sets.some((F) => N.has(F)));
|
|
625
|
-
let I = {},
|
|
625
|
+
let I = {}, D = {};
|
|
626
626
|
if (f.length > 0) {
|
|
627
627
|
let k = m(f, { lossFunction: v, distinct: b });
|
|
628
|
-
c && (k = Ct(k, a, d)), I = Nt(k, s, e, i, h),
|
|
628
|
+
c && (k = Ct(k, a, d)), I = Nt(k, s, e, i, h), D = jt(I, f, M);
|
|
629
629
|
}
|
|
630
630
|
const U = {};
|
|
631
631
|
f.forEach((k) => {
|
|
@@ -640,20 +640,20 @@ function be(t = {}) {
|
|
|
640
640
|
p.selectAll("svg").data([I]).enter().append("svg");
|
|
641
641
|
const E = p.select("svg");
|
|
642
642
|
n ? E.attr("viewBox", `0 0 ${s} ${e}`) : E.attr("width", s).attr("height", e);
|
|
643
|
-
const
|
|
643
|
+
const R = {};
|
|
644
644
|
let _ = !1;
|
|
645
645
|
E.selectAll(".venn-area path").each(function(k) {
|
|
646
646
|
const F = this.getAttribute("d");
|
|
647
|
-
k.sets.length == 1 && F && !b && (_ = !0,
|
|
647
|
+
k.sets.length == 1 && F && !b && (_ = !0, R[k.sets[0]] = ke(F));
|
|
648
648
|
});
|
|
649
649
|
function P(k) {
|
|
650
650
|
return (F) => {
|
|
651
651
|
const H = k.sets.map((et) => {
|
|
652
|
-
let
|
|
653
|
-
return
|
|
654
|
-
x:
|
|
655
|
-
y:
|
|
656
|
-
radius:
|
|
652
|
+
let Y = R[et], Z = I[et];
|
|
653
|
+
return Y || (Y = { x: s / 2, y: e / 2, radius: 1 }), Z || (Z = { x: s / 2, y: e / 2, radius: 1 }), {
|
|
654
|
+
x: Y.x * (1 - F) + Z.x * F,
|
|
655
|
+
y: Y.y * (1 - F) + Z.y * F,
|
|
656
|
+
radius: Y.radius * (1 - F) + Z.radius * F
|
|
657
657
|
};
|
|
658
658
|
});
|
|
659
659
|
return St(H, x);
|
|
@@ -669,12 +669,12 @@ function be(t = {}) {
|
|
|
669
669
|
}
|
|
670
670
|
let z = p;
|
|
671
671
|
_ && typeof z.transition == "function" ? (z = K(p), z.selectAll("path").attrTween("d", P)) : z.selectAll("path").attr("d", (k) => St(k.sets.map((F) => I[F])), x);
|
|
672
|
-
const L = z.selectAll("text").filter((k) => k.sets in
|
|
672
|
+
const L = z.selectAll("text").filter((k) => k.sets in D).text((k) => j(k)).attr("x", (k) => Math.floor(D[k.sets].x)).attr("y", (k) => Math.floor(D[k.sets].y));
|
|
673
673
|
u && (_ ? "on" in L ? L.on("end", rt(I, j)) : L.each("end", rt(I, j)) : L.each(rt(I, j)));
|
|
674
674
|
const C = K(V.exit()).remove();
|
|
675
675
|
typeof V.transition == "function" && C.selectAll("path").attrTween("d", P);
|
|
676
|
-
const
|
|
677
|
-
return y !== null && (W.style("font-size", "0px"), L.style("font-size", y),
|
|
676
|
+
const X = C.selectAll("text").attr("x", s / 2).attr("y", e / 2);
|
|
677
|
+
return y !== null && (W.style("font-size", "0px"), L.style("font-size", y), X.style("font-size", "0px")), { circles: I, textCentres: D, nodes: V, enter: O, update: z, exit: C };
|
|
678
678
|
}
|
|
679
679
|
return l.wrap = function(p) {
|
|
680
680
|
return arguments.length ? (u = p, l) : u;
|
|
@@ -711,7 +711,7 @@ function be(t = {}) {
|
|
|
711
711
|
}, l.orientationOrder = function(p) {
|
|
712
712
|
return arguments.length ? (d = p, l) : d;
|
|
713
713
|
}, l.lossFunction = function(p) {
|
|
714
|
-
return arguments.length ? (v = p === "default" ? tt : p === "logRatio" ?
|
|
714
|
+
return arguments.length ? (v = p === "default" ? tt : p === "logRatio" ? Dt : p, l) : v;
|
|
715
715
|
}, l;
|
|
716
716
|
}
|
|
717
717
|
function rt(t, n) {
|
|
@@ -866,7 +866,7 @@ function Me(t, n = {}) {
|
|
|
866
866
|
round: b = 2
|
|
867
867
|
} = n;
|
|
868
868
|
let x = e(t, {
|
|
869
|
-
lossFunction: s === "default" || !s ? tt : s === "logRatio" ?
|
|
869
|
+
lossFunction: s === "default" || !s ? tt : s === "logRatio" ? Dt : s,
|
|
870
870
|
distinct: d
|
|
871
871
|
});
|
|
872
872
|
i && (x = Ct(x, o, a));
|
|
@@ -986,15 +986,15 @@ var gt = (function() {
|
|
|
986
986
|
case 24:
|
|
987
987
|
case 25:
|
|
988
988
|
case 26:
|
|
989
|
-
var
|
|
990
|
-
if (!
|
|
991
|
-
l.addTextData(
|
|
989
|
+
var D = l.getCurrentSets();
|
|
990
|
+
if (!D) throw new Error("text requires set");
|
|
991
|
+
l.addTextData(D, f[I], void 0);
|
|
992
992
|
break;
|
|
993
993
|
case 27:
|
|
994
994
|
case 28:
|
|
995
|
-
var
|
|
996
|
-
if (!
|
|
997
|
-
l.addTextData(
|
|
995
|
+
var D = l.getCurrentSets();
|
|
996
|
+
if (!D) throw new Error("text requires set");
|
|
997
|
+
l.addTextData(D, f[I - 1], f[I]);
|
|
998
998
|
break;
|
|
999
999
|
case 29:
|
|
1000
1000
|
case 41:
|
|
@@ -1033,7 +1033,7 @@ var gt = (function() {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}, "parseError"),
|
|
1035
1035
|
parse: /* @__PURE__ */ w(function(g) {
|
|
1036
|
-
var m = this, v = [0], l = [], p = [null], f = [], N = this.table, I = "",
|
|
1036
|
+
var m = this, v = [0], l = [], p = [null], f = [], N = this.table, I = "", D = 0, U = 0, j = 2, E = 1, R = f.slice.call(arguments, 1), _ = Object.create(this.lexer), P = { yy: {} };
|
|
1037
1037
|
for (var V in this.yy)
|
|
1038
1038
|
Object.prototype.hasOwnProperty.call(this.yy, V) && (P.yy[V] = this.yy[V]);
|
|
1039
1039
|
_.setInput(g, P.yy), P.yy.lexer = _, P.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
@@ -1050,27 +1050,27 @@ var gt = (function() {
|
|
|
1050
1050
|
return G = l.pop() || _.lex() || E, typeof G != "number" && (G instanceof Array && (l = G, G = l.pop()), G = m.symbols_[G] || G), G;
|
|
1051
1051
|
}
|
|
1052
1052
|
w(K, "lex");
|
|
1053
|
-
for (var z, L, C,
|
|
1053
|
+
for (var z, L, C, X, k = {}, F, H, et, Y; ; ) {
|
|
1054
1054
|
if (L = v[v.length - 1], this.defaultActions[L] ? C = this.defaultActions[L] : ((z === null || typeof z > "u") && (z = K()), C = N[L] && N[L][z]), typeof C > "u" || !C.length || !C[0]) {
|
|
1055
1055
|
var Z = "";
|
|
1056
|
-
|
|
1056
|
+
Y = [];
|
|
1057
1057
|
for (F in N[L])
|
|
1058
|
-
this.terminals_[F] && F > j &&
|
|
1059
|
-
_.showPosition ? Z = "Parse error on line " + (
|
|
1058
|
+
this.terminals_[F] && F > j && Y.push("'" + this.terminals_[F] + "'");
|
|
1059
|
+
_.showPosition ? Z = "Parse error on line " + (D + 1) + `:
|
|
1060
1060
|
` + _.showPosition() + `
|
|
1061
|
-
Expecting ` +
|
|
1061
|
+
Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = "Parse error on line " + (D + 1) + ": Unexpected " + (z == E ? "end of input" : "'" + (this.terminals_[z] || z) + "'"), this.parseError(Z, {
|
|
1062
1062
|
text: _.match,
|
|
1063
1063
|
token: this.terminals_[z] || z,
|
|
1064
1064
|
line: _.yylineno,
|
|
1065
1065
|
loc: O,
|
|
1066
|
-
expected:
|
|
1066
|
+
expected: Y
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
1069
|
if (C[0] instanceof Array && C.length > 1)
|
|
1070
1070
|
throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + z);
|
|
1071
1071
|
switch (C[0]) {
|
|
1072
1072
|
case 1:
|
|
1073
|
-
v.push(z), p.push(_.yytext), f.push(_.yylloc), v.push(C[1]), z = null, U = _.yyleng, I = _.yytext,
|
|
1073
|
+
v.push(z), p.push(_.yytext), f.push(_.yylloc), v.push(C[1]), z = null, U = _.yyleng, I = _.yytext, D = _.yylineno, O = _.yylloc;
|
|
1074
1074
|
break;
|
|
1075
1075
|
case 2:
|
|
1076
1076
|
if (H = this.productions_[C[1]][1], k.$ = p[p.length - H], k._$ = {
|
|
@@ -1081,16 +1081,16 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[z] || z) + "'" : Z = "
|
|
|
1081
1081
|
}, B && (k._$.range = [
|
|
1082
1082
|
f[f.length - (H || 1)].range[0],
|
|
1083
1083
|
f[f.length - 1].range[1]
|
|
1084
|
-
]),
|
|
1084
|
+
]), X = this.performAction.apply(k, [
|
|
1085
1085
|
I,
|
|
1086
1086
|
U,
|
|
1087
|
-
|
|
1087
|
+
D,
|
|
1088
1088
|
P.yy,
|
|
1089
1089
|
C[1],
|
|
1090
1090
|
p,
|
|
1091
1091
|
f
|
|
1092
|
-
].concat(
|
|
1093
|
-
return
|
|
1092
|
+
].concat(R)), typeof X < "u")
|
|
1093
|
+
return X;
|
|
1094
1094
|
H && (v = v.slice(0, -1 * H * 2), p = p.slice(0, -1 * H), f = f.slice(0, -1 * H)), v.push(this.productions_[C[1]][0]), p.push(k.$), f.push(k._$), et = N[v[v.length - 2]][v[v.length - 1]], v.push(et);
|
|
1095
1095
|
break;
|
|
1096
1096
|
case 3:
|
|
@@ -1366,11 +1366,11 @@ var Se = gt, yt = [], pt = [], mt = [], bt = /* @__PURE__ */ new Set(), vt, It =
|
|
|
1366
1366
|
for (const [i, o] of n)
|
|
1367
1367
|
e[i] = Te(o) ?? o;
|
|
1368
1368
|
mt.push({ targets: s, styles: e });
|
|
1369
|
-
}, "addStyleData"), Ae = /* @__PURE__ */ w(() => mt, "getStyleData"), it = /* @__PURE__ */ w((t) => t.map((n) => nt(n)), "normalizeIdentifierList"),
|
|
1369
|
+
}, "addStyleData"), Ae = /* @__PURE__ */ w(() => mt, "getStyleData"), it = /* @__PURE__ */ w((t) => t.map((n) => nt(n)), "normalizeIdentifierList"), Re = /* @__PURE__ */ w((t) => {
|
|
1370
1370
|
const s = it(t).filter((e) => !bt.has(e));
|
|
1371
1371
|
if (s.length > 0)
|
|
1372
1372
|
throw new Error(`unknown set identifier: ${s.join(", ")}`);
|
|
1373
|
-
}, "validateUnionIdentifiers"),
|
|
1373
|
+
}, "validateUnionIdentifiers"), De = /* @__PURE__ */ w(() => pt, "getTextData"), Ce = /* @__PURE__ */ w(() => vt, "getCurrentSets"), Ne = /* @__PURE__ */ w(() => It, "getIndentMode"), Oe = /* @__PURE__ */ w((t) => {
|
|
1374
1374
|
It = t;
|
|
1375
1375
|
}, "setIndentMode"), Fe = oe.venn;
|
|
1376
1376
|
function Bt() {
|
|
@@ -1383,8 +1383,8 @@ var Le = /* @__PURE__ */ w(() => {
|
|
|
1383
1383
|
getConfig: Bt,
|
|
1384
1384
|
clear: Le,
|
|
1385
1385
|
setAccTitle: Zt,
|
|
1386
|
-
getAccTitle:
|
|
1387
|
-
setDiagramTitle:
|
|
1386
|
+
getAccTitle: Xt,
|
|
1387
|
+
setDiagramTitle: Yt,
|
|
1388
1388
|
getDiagramTitle: Ht,
|
|
1389
1389
|
getAccDescription: Kt,
|
|
1390
1390
|
setAccDescription: Wt,
|
|
@@ -1392,8 +1392,8 @@ var Le = /* @__PURE__ */ w(() => {
|
|
|
1392
1392
|
getSubsetData: _e,
|
|
1393
1393
|
addTextData: Ee,
|
|
1394
1394
|
addStyleData: ze,
|
|
1395
|
-
validateUnionIdentifiers:
|
|
1396
|
-
getTextData:
|
|
1395
|
+
validateUnionIdentifiers: Re,
|
|
1396
|
+
getTextData: De,
|
|
1397
1397
|
getStyleData: Ae,
|
|
1398
1398
|
getCurrentSets: Ce,
|
|
1399
1399
|
getIndentMode: Ne,
|
|
@@ -1450,26 +1450,26 @@ var Be = /* @__PURE__ */ w((t, n, s, e) => {
|
|
|
1450
1450
|
padding: o?.padding ?? 15
|
|
1451
1451
|
}), I = /* @__PURE__ */ new Map();
|
|
1452
1452
|
for (const E of N) {
|
|
1453
|
-
const
|
|
1454
|
-
I.set(
|
|
1453
|
+
const R = Q([...E.data.sets].sort());
|
|
1454
|
+
I.set(R, E);
|
|
1455
1455
|
}
|
|
1456
1456
|
b.length > 0 && Ut(o, I, l, b, S, x);
|
|
1457
|
-
const
|
|
1458
|
-
l.selectAll(".venn-circle").each(function(E,
|
|
1459
|
-
const _ = ot(this), V = Q([...E.sets].sort()), O = x.get(V), B = O?.fill || r[
|
|
1460
|
-
_.classed(`venn-set-${
|
|
1457
|
+
const D = $t(a.background || "#f4f4f4");
|
|
1458
|
+
l.selectAll(".venn-circle").each(function(E, R) {
|
|
1459
|
+
const _ = ot(this), V = Q([...E.sets].sort()), O = x.get(V), B = O?.fill || r[R % r.length] || a.primaryColor;
|
|
1460
|
+
_.classed(`venn-set-${R % 8}`, !0);
|
|
1461
1461
|
const W = O?.["fill-opacity"] ?? 0.1, K = O?.stroke || B, z = O?.["stroke-width"] || `${5 * S}`;
|
|
1462
1462
|
if (u && f) {
|
|
1463
1463
|
const C = I.get(V);
|
|
1464
1464
|
if (C && C.circles.length > 0) {
|
|
1465
|
-
const
|
|
1465
|
+
const X = C.circles[0], k = f.circle(X.x, X.y, X.radius * 2, {
|
|
1466
1466
|
roughness: 0.7,
|
|
1467
1467
|
seed: h,
|
|
1468
1468
|
fill: kt(B, 0.7),
|
|
1469
1469
|
fillStyle: "hachure",
|
|
1470
1470
|
fillWeight: 2,
|
|
1471
1471
|
hachureGap: 8,
|
|
1472
|
-
hachureAngle: -41 +
|
|
1472
|
+
hachureAngle: -41 + R * 60,
|
|
1473
1473
|
stroke: K,
|
|
1474
1474
|
strokeWidth: parseFloat(String(z))
|
|
1475
1475
|
});
|
|
@@ -1477,12 +1477,12 @@ var Be = /* @__PURE__ */ w((t, n, s, e) => {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
} else
|
|
1479
1479
|
_.select("path").style("fill", B).style("fill-opacity", W).style("stroke", K).style("stroke-width", z).style("stroke-opacity", 0.95);
|
|
1480
|
-
const L = O?.color || (
|
|
1480
|
+
const L = O?.color || (D ? te(B, 30) : ee(B, 30));
|
|
1481
1481
|
_.select("text").style("font-size", `${48 * S}px`).style("fill", L);
|
|
1482
1482
|
}), u && f ? l.selectAll(".venn-intersection").each(function(E) {
|
|
1483
|
-
const
|
|
1483
|
+
const R = ot(this), P = Q([...E.sets].sort()), V = x.get(P), O = V?.fill;
|
|
1484
1484
|
if (O) {
|
|
1485
|
-
const B =
|
|
1485
|
+
const B = R.select("path"), W = B.attr("d");
|
|
1486
1486
|
if (W) {
|
|
1487
1487
|
const K = f.path(W, {
|
|
1488
1488
|
roughness: 0.7,
|
|
@@ -1497,8 +1497,8 @@ var Be = /* @__PURE__ */ w((t, n, s, e) => {
|
|
|
1497
1497
|
z?.parentNode?.insertBefore(K, z), B.remove();
|
|
1498
1498
|
}
|
|
1499
1499
|
} else
|
|
1500
|
-
|
|
1501
|
-
|
|
1500
|
+
R.select("path").style("fill-opacity", 0);
|
|
1501
|
+
R.select("text").style("font-size", `${48 * S}px`).style("fill", V?.color ?? a.vennSetTextColor ?? m);
|
|
1502
1502
|
}) : (l.selectAll(".venn-intersection text").style("font-size", `${48 * S}px`).style("fill", (E) => {
|
|
1503
1503
|
const _ = Q([...E.sets].sort());
|
|
1504
1504
|
return x.get(_)?.color ?? a.vennSetTextColor ?? m;
|
|
@@ -1536,11 +1536,11 @@ function Ut(t, n, s, e, i, o) {
|
|
|
1536
1536
|
T === 0 && Number.isFinite(M) && (T = M * 0.6);
|
|
1537
1537
|
const S = h.append("g").attr("class", "venn-text-area").attr("font-size", `${40 * i}px`);
|
|
1538
1538
|
a && S.append("circle").attr("class", "venn-text-debug-circle").attr("cx", b).attr("cy", x).attr("r", T).attr("fill", "none").attr("stroke", "purple").attr("stroke-width", 1.5 * i).attr("stroke-dasharray", `${6 * i} ${4 * i}`);
|
|
1539
|
-
const g = Math.max(80 * i, T * 2 * 0.95), m = Math.max(60 * i, T * 2 * 0.95), p = (d.data.label && d.data.label.length > 0 ? Math.min(32 * i, T * 0.25) : 0) + (y.length <= 2 ? 30 * i : 0), f = b - g / 2, N = x - m / 2 + p, I = Math.max(1, Math.ceil(Math.sqrt(y.length))),
|
|
1540
|
-
for (const [E,
|
|
1539
|
+
const g = Math.max(80 * i, T * 2 * 0.95), m = Math.max(60 * i, T * 2 * 0.95), p = (d.data.label && d.data.label.length > 0 ? Math.min(32 * i, T * 0.25) : 0) + (y.length <= 2 ? 30 * i : 0), f = b - g / 2, N = x - m / 2 + p, I = Math.max(1, Math.ceil(Math.sqrt(y.length))), D = Math.max(1, Math.ceil(y.length / I)), U = g / I, j = m / D;
|
|
1540
|
+
for (const [E, R] of y.entries()) {
|
|
1541
1541
|
const _ = E % I, P = Math.floor(E / I), V = f + U * (_ + 0.5), O = N + j * (P + 0.5);
|
|
1542
1542
|
a && S.append("rect").attr("class", "venn-text-debug-cell").attr("x", f + U * _).attr("y", N + j * P).attr("width", U).attr("height", j).attr("fill", "none").attr("stroke", "teal").attr("stroke-width", 1 * i).attr("stroke-dasharray", `${4 * i} ${3 * i}`);
|
|
1543
|
-
const B = U * 0.9, W = j * 0.9, K = S.append("foreignObject").attr("class", "venn-text-node-fo").attr("width", B).attr("height", W).attr("x", V - B / 2).attr("y", O - W / 2).attr("overflow", "visible"), z = o.get(
|
|
1543
|
+
const B = U * 0.9, W = j * 0.9, K = S.append("foreignObject").attr("class", "venn-text-node-fo").attr("width", B).attr("height", W).attr("x", V - B / 2).attr("y", O - W / 2).attr("overflow", "visible"), z = o.get(R.id)?.color, L = K.append("xhtml:span").attr("class", "venn-text-node").style("display", "flex").style("width", "100%").style("height", "100%").style("white-space", "normal").style("align-items", "center").style("justify-content", "center").style("text-align", "center").style("overflow-wrap", "normal").style("word-break", "normal").text(R.label ?? R.id);
|
|
1544
1544
|
z && L.style("color", z);
|
|
1545
1545
|
}
|
|
1546
1546
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./cowboy-components-DlcOqYuh.cjs"),vt=(t,n)=>k.adjustChannel(t,"a",-n),Mt=1e-10;function st(t,n){const s=Ut(t),e=s.filter(c=>qt(c,t));let i=0,o=0;const a=[];if(e.length>1){const c=wt(e);for(let u=0;u<e.length;++u){const r=e[u];r.angle=Math.atan2(r.x-c.x,r.y-c.y)}e.sort((u,r)=>r.angle-u.angle);let h=e[e.length-1];for(let u=0;u<e.length;++u){const r=e[u];o+=(h.x+r.x)*(r.y-h.y);const x={x:(r.x+h.x)/2,y:(r.y+h.y)/2};let d=null;for(let b=0;b<r.parentIndex.length;++b)if(h.parentIndex.includes(r.parentIndex[b])){const y=t[r.parentIndex[b]],M=Math.atan2(r.x-y.x,r.y-y.y),A=Math.atan2(h.x-y.x,h.y-y.y);let T=A-M;T<0&&(T+=2*Math.PI);const S=A-T/2;let g=q(x,{x:y.x+y.radius*Math.sin(S),y:y.y+y.radius*Math.cos(S)});g>y.radius*2&&(g=y.radius*2),(d==null||d.width>g)&&(d={circle:y,width:g,p1:r,p2:h,large:g>y.radius,sweep:!0})}d!=null&&(a.push(d),i+=at(d.circle.radius,d.width),h=r)}}else{let c=t[0];for(let u=1;u<t.length;++u)t[u].radius<c.radius&&(c=t[u]);let h=!1;for(let u=0;u<t.length;++u)if(q(t[u],c)>Math.abs(c.radius-t[u].radius)){h=!0;break}h?i=o=0:(i=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-Mt,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=a,n.innerPoints=e,n.intersectionPoints=s),i+o}function qt(t,n){return n.every(s=>q(t,s)<s.radius+Mt)}function Ut(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=St(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function at(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function gt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return at(t,e)+at(n,i)}function St(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),a=Math.sqrt(e*e-o*o),c=t.x+o*(n.x-t.x)/s,h=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(a/s),r=-(n.x-t.x)*(a/s);return[{x:c+u,y:h-r},{x:c-u,y:h+r}]}function wt(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function Gt(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,a=t(n),c=t(s);let h=s-n;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return n;if(c===0)return s;for(let u=0;u<i;++u){h/=2;const r=n+h,x=t(r);if(x*a>=0&&(n=r),Math.abs(h)<o||x===0)return r}return n+h}function lt(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function It(t,n){return lt(t).map(()=>lt(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ct(t){return Math.sqrt($(t,t))}function ut(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function J(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function Tt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,a=s.minErrorDelta||1e-6,c=s.minErrorDelta||1e-5,h=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,r=s.psi!==void 0?s.psi:-.5,x=s.sigma!==void 0?s.sigma:.5;let d;const b=n.length,y=new Array(b+1);y[0]=n,y[0].fx=t(n),y[0].id=0;for(let _=0;_<b;++_){const l=n.slice();l[_]=l[_]?l[_]*i:o,y[_+1]=l,y[_+1].fx=t(l),y[_+1].id=_+1}function M(_){for(let l=0;l<_.length;l++)y[b][l]=_[l];y[b].fx=_.fx}const A=(_,l)=>_.fx-l.fx,T=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let _=0;_<e;++_){if(y.sort(A),s.history){const p=y.map(f=>{const O=f.slice();return O.fx=f.fx,O.id=f.id,O});p.sort((f,O)=>f.id-O.id),s.history.push({x:y[0].slice(),fx:y[0].fx,simplex:p})}d=0;for(let p=0;p<b;++p)d=Math.max(d,Math.abs(y[0][p]-y[1][p]));if(Math.abs(y[0].fx-y[b].fx)<a&&d<c)break;for(let p=0;p<b;++p){T[p]=0;for(let f=0;f<b;++f)T[p]+=y[f][p];T[p]/=b}const l=y[b];if(J(S,1+h,T,-h,l),S.fx=t(S),S.fx<y[0].fx)J(m,1+u,T,-u,l),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=y[b-1].fx){let p=!1;if(S.fx>l.fx?(J(g,1+r,T,-r,l),g.fx=t(g),g.fx<l.fx?M(g):p=!0):(J(g,1-r*h,T,r*h,l),g.fx=t(g),g.fx<S.fx?M(g):p=!0),p){if(x>=1)break;for(let f=1;f<y.length;++f)J(y[f],1-x,y[0],x,y[f]),y[f].fx=t(y[f])}}else M(S)}return y.sort(A),{fx:y[0].fx,x:y[0]}}function Wt(t,n,s,e,i,o,a){const c=s.fx,h=$(s.fxprime,n);let u=c,r=c,x=h,d=0;i=i||1,o=o||1e-6,a=a||.1;function b(y,M,A){for(let T=0;T<16;++T)if(i=(y+M)/2,J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),x=$(e.fxprime,n),u>c+o*i*h||u>=A)M=i;else{if(Math.abs(x)<=-a*h)return i;x*(M-y)>=0&&(M=y),y=i,A=u}return 0}for(let y=0;y<10;++y){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),x=$(e.fxprime,n),u>c+o*i*h||y&&u>=r)return b(d,i,r);if(Math.abs(x)<=-a*h)return i;if(x>=0)return b(i,d,u);r=u,d=i,i*=2}return i}function Kt(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let a,c,h=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),a=e.fxprime.slice(),ut(a,e.fxprime,-1);for(let r=0;r<u;++r){if(h=Wt(t,a,e,i,h),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:h}),!h)ut(a,e.fxprime,-1);else{J(o,1,i.fxprime,-1,e.fxprime);const x=$(e.fxprime,e.fxprime),d=Math.max(0,$(o,i.fxprime)/x);J(a,d,a,-1,i.fxprime),c=e,e=i,i=c}if(ct(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:h}),e}function Et(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||Zt,e=n.lossFunction||tt,i=Ht(t,n),o=s(i,n),a=Object.keys(o),c=[];for(const r of a)c.push(o[r].x),c.push(o[r].y);const u=Tt(r=>{const x={};for(let d=0;d<a.length;++d){const b=a[d];x[b]={x:r[2*d],y:r[2*d+1],radius:o[b].radius}}return e(x,i)},c,n).x;for(let r=0;r<a.length;++r){const x=a[r];o[x].x=u[2*r],o[x].y=u[2*r+1]}return o}const zt=1e-10;function ft(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+zt?Math.abs(t-n):Gt(e=>gt(t,n,e)-s,0,t+n)}function Ht(t,n={}){const s=n.distinct,e=t.map(c=>Object.assign({},c));function i(c){return c.join(";")}if(s){const c=new Map;for(const h of e)for(let u=0;u<h.sets.length;u++){const r=String(h.sets[u]);c.set(r,h.size+(c.get(r)||0));for(let x=u+1;x<h.sets.length;x++){const d=String(h.sets[x]),b=`${r};${d}`,y=`${d};${r}`;c.set(b,h.size+(c.get(b)||0)),c.set(y,h.size+(c.get(y)||0))}}for(const h of e)h.sets.length<3&&(h.size=c.get(i(h.sets)))}const o=[],a=new Set;for(const c of e)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){const h=c.sets[0],u=c.sets[1];a.add(i(c.sets)),a.add(i([u,h]))}o.sort((c,h)=>c===h?0:c<h?-1:1);for(let c=0;c<o.length;++c){const h=o[c];for(let u=c+1;u<o.length;++u){const r=o[u];a.has(i([h,r]))||e.push({sets:[h,r],size:0})}}return e}function Yt(t,n,s){const e=It(n.length,n.length),i=It(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const a=s[o.sets[0]],c=s[o.sets[1]],h=Math.sqrt(n[a].size/Math.PI),u=Math.sqrt(n[c].size/Math.PI),r=ft(h,u,o.size);e[a][c]=e[c][a]=r;let x=0;o.size+1e-10>=Math.min(n[a].size,n[c].size)?x=1:o.size<=1e-10&&(x=-1),i[a][c]=i[c][a]=x}),{distances:e,constraints:i}}function Xt(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const a=t[2*o],c=t[2*o+1];for(let h=o+1;h<s.length;++h){const u=t[2*h],r=t[2*h+1],x=s[o][h],d=e[o][h],b=(u-a)*(u-a)+(r-c)*(r-c),y=Math.sqrt(b),M=b-x*x;d>0&&y<=x||d<0&&y>=x||(i+=2*M*M,n[2*o]+=4*M*(a-u),n[2*o+1]+=4*M*(c-r),n[2*h]+=4*M*(u-a),n[2*h+1]+=4*M*(r-c))}}return i}function Zt(t,n={}){let s=Qt(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=Jt(t,n),o=e(i,t),a=e(s,t);o+1e-8<a&&(s=i)}return s}function Jt(t,n={}){const s=n.restarts||10,e=[],i={};for(const d of t)d.sets.length===1&&(i[d.sets[0]]=e.length,e.push(d));let{distances:o,constraints:a}=Yt(t,e,i);const c=ct(o.map(ct))/o.length;o=o.map(d=>d.map(b=>b/c));const h=(d,b)=>Xt(d,b,o,a);let u=null;for(let d=0;d<s;++d){const b=lt(o.length*2).map(Math.random),y=Kt(h,b,n);(!u||y.fx<u.fx)&&(u=y)}const r=u.x,x={};for(let d=0;d<e.length;++d){const b=e[d];x[b.sets[0]]={x:r[2*d]*c,y:r[2*d+1]*c,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const d of n.history)ut(d.x,c);return x}function Qt(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const x of t)if(x.sets.length===1){const d=x.sets[0];e[d]={x:1e10,y:1e10,rowid:e.length,size:x.size,radius:Math.sqrt(x.size/Math.PI)},i[d]=[]}t=t.filter(x=>x.sets.length===2);for(const x of t){let d=x.weight!=null?x.weight:1;const b=x.sets[0],y=x.sets[1];x.size+zt>=Math.min(e[b].size,e[y].size)&&(d=0),i[b].push({set:y,size:x.size,weight:d}),i[y].push({set:b,size:x.size,weight:d})}const o=[];Object.keys(i).forEach(x=>{let d=0;for(let b=0;b<i[x].length;++b)d+=i[x][b].size*i[x][b].weight;o.push({set:x,size:d})});function a(x,d){return d.size-x.size}o.sort(a);const c={};function h(x){return x.set in c}function u(x,d){e[d].x=x.x,e[d].y=x.y,c[d]=!0}u({x:0,y:0},o[0].set);for(let x=1;x<o.length;++x){const d=o[x].set,b=i[d].filter(h),y=e[d];if(b.sort(a),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var r=0;r<b.length;++r){const S=e[b[r].set],g=ft(y.radius,S.radius,b[r].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=r+1;m<b.length;++m){const _=e[b[m].set],l=ft(y.radius,_.radius,b[m].size),p=St({x:S.x,y:S.y,radius:g},{x:_.x,y:_.y,radius:l});M.push(...p)}}let A=1e50,T=M[0];for(const S of M){e[d].x=S.x,e[d].y=S.y;const g=s(e,t);g<A&&(A=g,T=S)}u(T,d)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const a=t[e.sets[0]],c=t[e.sets[1]];i=gt(a.radius,c.radius,q(a,c))}else i=st(e.sets.map(a=>t[a]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function At(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const c=t[e.sets[0]],h=t[e.sets[1]];i=gt(c.radius,h.radius,q(c,h))}else i=st(e.sets.map(c=>t[c]));const o=e.weight!=null?e.weight:1,a=Math.log((i+1)/(e.size+1));s+=o*a*a}return s}function $t(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const a of t)a.x-=i,a.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),a=Math.sin(i);for(const c of t){const h=c.x,u=c.y;c.x=o*h-a*u,c.y=a*h+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const a of t){var e=(a.x+o*a.y)/(1+o*o);a.x=2*e-a.x,a.y=2*e*o-a.y}}}}function te(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const a=n(i),c=n(o);a.parent=c}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const a=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<a&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function ht(t){const n=s=>{const e=t.reduce((o,a)=>Math.max(o,a[s]+a.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,a)=>Math.min(o,a[s]-a.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ot(t).map(u=>Object.assign({},u));const i=te(e);for(const u of i){$t(u,n,s);const r=ht(u);u.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),u.bounds=r}i.sort((u,r)=>r.size-u.size),e=i[0];let o=e.bounds;const a=(o.xRange.max-o.xRange.min)/50;function c(u,r,x){if(!u)return;const d=u.bounds;let b,y;if(r)b=o.xRange.max-d.xRange.min+a;else{b=o.xRange.max-d.xRange.max;const M=(d.xRange.max-d.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(x)y=o.yRange.max-d.yRange.min+a;else{y=o.yRange.max-d.yRange.max;const M=(d.yRange.max-d.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(y+=M)}for(const M of u)M.x+=b,M.y+=y,e.push(M)}let h=1;for(;h<i.length;)c(i[h],!0,!1),c(i[h+1],!1,!0),c(i[h+2],!0,!0),h+=3,o=ht(e);return Rt(e)}function Ct(t,n,s,e,i){const o=Ot(t);n-=2*e,s-=2*e;const{xRange:a,yRange:c}=ht(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),t;let h,u;if(i){const b=Math.sqrt(i/Math.PI)*2;h=n/b,u=s/b}else h=n/(a.max-a.min),u=s/(c.max-c.min);const r=Math.min(u,h),x=(n-(a.max-a.min)*r)/2,d=(s-(c.max-c.min)*r)/2;return Rt(o.map(b=>({radius:r*b.radius,x:e+x+(b.x-a.min)*r,y:e+d+(b.y-c.min)*r,setid:b.setid})))}function Rt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ot(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ee(t={}){let n=!1,s=600,e=350,i=15,o=1e3,a=Math.PI/2,c=!0,h=null,u=!0,r=!0,x=null,d=null,b=!1,y=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,A={},T=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(p){if(p in A)return A[p];var f=A[p]=T[S];return S+=1,S>=T.length&&(S=0),f},m=Et,_=tt;function l(p){let f=p.datum();const O=new Set;f.forEach(I=>{I.size==0&&I.sets.length==1&&O.add(I.sets[0])}),f=f.filter(I=>!I.sets.some(F=>O.has(F)));let v={},C={};if(f.length>0){let I=m(f,{lossFunction:_,distinct:b});c&&(I=Dt(I,a,d)),v=Ct(I,s,e,i,h),C=Ft(v,f,M)}const U={};f.forEach(I=>{I.label&&(U[I.sets]=I.label)});function j(I){if(I.sets in U)return U[I.sets];if(I.sets.length==1)return""+I.sets[0]}p.selectAll("svg").data([v]).enter().append("svg");const E=p.select("svg");n?E.attr("viewBox",`0 0 ${s} ${e}`):E.attr("width",s).attr("height",e);const D={};let w=!1;E.selectAll(".venn-area path").each(function(I){const F=this.getAttribute("d");I.sets.length==1&&F&&!b&&(w=!0,D[I.sets[0]]=ie(F))});function P(I){return F=>{const H=I.sets.map(et=>{let Y=D[et],Z=v[et];return Y||(Y={x:s/2,y:e/2,radius:1}),Z||(Z={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-F)+Z.x*F,y:Y.y*(1-F)+Z.y*F,radius:Y.radius*(1-F)+Z.radius*F}});return kt(H,y)}}const V=E.selectAll(".venn-area").data(f,I=>I.sets),N=V.enter().append("g").attr("class",I=>`venn-area venn-${I.sets.length==1?"circle":"intersection"}${I.colour||I.color?" venn-coloured":""}`).attr("data-venn-sets",I=>I.sets.join("_")),B=N.append("path"),W=N.append("text").attr("class","label").text(I=>j(I)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);r&&(B.style("fill-opacity","0").filter(I=>I.sets.length==1).style("fill",I=>I.colour?I.colour:I.color?I.color:g(I.sets)).style("fill-opacity",".25"),W.style("fill",I=>I.colour||I.color?"#FFF":t.textFill?t.textFill:I.sets.length==1?g(I.sets):"#444"));function K(I){return typeof I.transition=="function"?I.transition("venn").duration(o):I}let z=p;w&&typeof z.transition=="function"?(z=K(p),z.selectAll("path").attrTween("d",P)):z.selectAll("path").attr("d",I=>kt(I.sets.map(F=>v[F])),y);const L=z.selectAll("text").filter(I=>I.sets in C).text(I=>j(I)).attr("x",I=>Math.floor(C[I.sets].x)).attr("y",I=>Math.floor(C[I.sets].y));u&&(w?"on"in L?L.on("end",ot(v,j)):L.each("end",ot(v,j)):L.each(ot(v,j)));const R=K(V.exit()).remove();typeof V.transition=="function"&&R.selectAll("path").attrTween("d",P);const X=R.selectAll("text").attr("x",s/2).attr("y",e/2);return x!==null&&(W.style("font-size","0px"),L.style("font-size",x),X.style("font-size","0px")),{circles:v,textCentres:C,nodes:V,enter:N,update:z,exit:R}}return l.wrap=function(p){return arguments.length?(u=p,l):u},l.useViewBox=function(){return n=!0,l},l.width=function(p){return arguments.length?(s=p,l):s},l.height=function(p){return arguments.length?(e=p,l):e},l.padding=function(p){return arguments.length?(i=p,l):i},l.distinct=function(p){return arguments.length?(b=p,l):b},l.colours=function(p){return arguments.length?(g=p,l):g},l.colors=function(p){return arguments.length?(g=p,l):g},l.fontSize=function(p){return arguments.length?(x=p,l):x},l.round=function(p){return arguments.length?(y=p,l):y},l.duration=function(p){return arguments.length?(o=p,l):o},l.layoutFunction=function(p){return arguments.length?(m=p,l):m},l.normalize=function(p){return arguments.length?(c=p,l):c},l.scaleToFit=function(p){return arguments.length?(h=p,l):h},l.styled=function(p){return arguments.length?(r=p,l):r},l.orientation=function(p){return arguments.length?(a=p,l):a},l.orientationOrder=function(p){return arguments.length?(d=p,l):d},l.lossFunction=function(p){return arguments.length?(_=p==="default"?tt:p==="logRatio"?At:p,l):_},l}function ot(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",a=o.split(/\s+/).reverse(),h=(o.length+a.length)/3;let u=a.pop(),r=[u],x=0;const d=1.1;e.textContent=null;const b=[];function y(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=y(u);for(;u=a.pop(),!!u;){r.push(u);const g=r.join(" ");M.textContent=g,g.length>h&&M.getComputedTextLength()>i&&(r.pop(),M.textContent=r.join(" "),r=[u],M=y(u),x++)}const A=.35-x*d/2,T=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",T),g.setAttribute("y",S),g.setAttribute("dy",`${A+m*d}em`)})}}function rt(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function Nt(t,n,s){const e=[];for(const r of t)e.push({x:r.x,y:r.y}),e.push({x:r.x+r.radius/2,y:r.y}),e.push({x:r.x-r.radius/2,y:r.y}),e.push({x:r.x,y:r.y+r.radius/2}),e.push({x:r.x,y:r.y-r.radius/2});let i=e[0],o=rt(e[0],t,n);for(let r=1;r<e.length;++r){const x=rt(e[r],t,n);x>=o&&(i=e[r],o=x)}const a=Tt(r=>-1*rt({x:r[0],y:r[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:s?0:a[0],y:a[1]};let h=!0;for(const r of t)if(q(c,r)>r.radius){h=!1;break}for(const r of n)if(q(c,r)<r.radius){h=!1;break}if(h)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?Nt(t,[]):wt(u.arcs.map(r=>r.p1))}function ne(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let a=e+1;a<s.length;++a){const c=s[a],h=t[c],u=q(o,h);u+h.radius<=o.radius+1e-10?n[c].push(i):u+o.radius<=h.radius+1e-10&&n[i].push(c)}}return n}function Ft(t,n,s){const e={},i=ne(t);for(let o=0;o<n.length;++o){const a=n[o].sets,c={},h={};for(let d=0;d<a.length;++d){c[a[d]]=!0;const b=i[a[d]];for(let y=0;y<b.length;++y)h[b[y]]=!0}const u=[],r=[];for(let d in t)d in c?u.push(t[d]):d in h||r.push(t[d]);const x=Nt(u,r,s);e[a]=x,x.disjoint&&n[o].size>0&&console.log("WARNING: area "+a+" not represented on screen")}return e}function se(t,n,s){const e=[];return e.push(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./cowboy-components-CjgqXqkM.cjs"),vt=(t,n)=>k.adjustChannel(t,"a",-n),Mt=1e-10;function st(t,n){const s=Ut(t),e=s.filter(c=>qt(c,t));let i=0,o=0;const a=[];if(e.length>1){const c=wt(e);for(let u=0;u<e.length;++u){const r=e[u];r.angle=Math.atan2(r.x-c.x,r.y-c.y)}e.sort((u,r)=>r.angle-u.angle);let h=e[e.length-1];for(let u=0;u<e.length;++u){const r=e[u];o+=(h.x+r.x)*(r.y-h.y);const x={x:(r.x+h.x)/2,y:(r.y+h.y)/2};let d=null;for(let b=0;b<r.parentIndex.length;++b)if(h.parentIndex.includes(r.parentIndex[b])){const y=t[r.parentIndex[b]],M=Math.atan2(r.x-y.x,r.y-y.y),A=Math.atan2(h.x-y.x,h.y-y.y);let T=A-M;T<0&&(T+=2*Math.PI);const S=A-T/2;let g=q(x,{x:y.x+y.radius*Math.sin(S),y:y.y+y.radius*Math.cos(S)});g>y.radius*2&&(g=y.radius*2),(d==null||d.width>g)&&(d={circle:y,width:g,p1:r,p2:h,large:g>y.radius,sweep:!0})}d!=null&&(a.push(d),i+=at(d.circle.radius,d.width),h=r)}}else{let c=t[0];for(let u=1;u<t.length;++u)t[u].radius<c.radius&&(c=t[u]);let h=!1;for(let u=0;u<t.length;++u)if(q(t[u],c)>Math.abs(c.radius-t[u].radius)){h=!0;break}h?i=o=0:(i=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-Mt,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=a,n.innerPoints=e,n.intersectionPoints=s),i+o}function qt(t,n){return n.every(s=>q(t,s)<s.radius+Mt)}function Ut(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=St(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function at(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function gt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return at(t,e)+at(n,i)}function St(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),a=Math.sqrt(e*e-o*o),c=t.x+o*(n.x-t.x)/s,h=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(a/s),r=-(n.x-t.x)*(a/s);return[{x:c+u,y:h-r},{x:c-u,y:h+r}]}function wt(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function Gt(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,a=t(n),c=t(s);let h=s-n;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return n;if(c===0)return s;for(let u=0;u<i;++u){h/=2;const r=n+h,x=t(r);if(x*a>=0&&(n=r),Math.abs(h)<o||x===0)return r}return n+h}function lt(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function It(t,n){return lt(t).map(()=>lt(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ct(t){return Math.sqrt($(t,t))}function ut(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function J(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function Tt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,a=s.minErrorDelta||1e-6,c=s.minErrorDelta||1e-5,h=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,r=s.psi!==void 0?s.psi:-.5,x=s.sigma!==void 0?s.sigma:.5;let d;const b=n.length,y=new Array(b+1);y[0]=n,y[0].fx=t(n),y[0].id=0;for(let _=0;_<b;++_){const l=n.slice();l[_]=l[_]?l[_]*i:o,y[_+1]=l,y[_+1].fx=t(l),y[_+1].id=_+1}function M(_){for(let l=0;l<_.length;l++)y[b][l]=_[l];y[b].fx=_.fx}const A=(_,l)=>_.fx-l.fx,T=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let _=0;_<e;++_){if(y.sort(A),s.history){const p=y.map(f=>{const O=f.slice();return O.fx=f.fx,O.id=f.id,O});p.sort((f,O)=>f.id-O.id),s.history.push({x:y[0].slice(),fx:y[0].fx,simplex:p})}d=0;for(let p=0;p<b;++p)d=Math.max(d,Math.abs(y[0][p]-y[1][p]));if(Math.abs(y[0].fx-y[b].fx)<a&&d<c)break;for(let p=0;p<b;++p){T[p]=0;for(let f=0;f<b;++f)T[p]+=y[f][p];T[p]/=b}const l=y[b];if(J(S,1+h,T,-h,l),S.fx=t(S),S.fx<y[0].fx)J(m,1+u,T,-u,l),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=y[b-1].fx){let p=!1;if(S.fx>l.fx?(J(g,1+r,T,-r,l),g.fx=t(g),g.fx<l.fx?M(g):p=!0):(J(g,1-r*h,T,r*h,l),g.fx=t(g),g.fx<S.fx?M(g):p=!0),p){if(x>=1)break;for(let f=1;f<y.length;++f)J(y[f],1-x,y[0],x,y[f]),y[f].fx=t(y[f])}}else M(S)}return y.sort(A),{fx:y[0].fx,x:y[0]}}function Wt(t,n,s,e,i,o,a){const c=s.fx,h=$(s.fxprime,n);let u=c,r=c,x=h,d=0;i=i||1,o=o||1e-6,a=a||.1;function b(y,M,A){for(let T=0;T<16;++T)if(i=(y+M)/2,J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),x=$(e.fxprime,n),u>c+o*i*h||u>=A)M=i;else{if(Math.abs(x)<=-a*h)return i;x*(M-y)>=0&&(M=y),y=i,A=u}return 0}for(let y=0;y<10;++y){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),x=$(e.fxprime,n),u>c+o*i*h||y&&u>=r)return b(d,i,r);if(Math.abs(x)<=-a*h)return i;if(x>=0)return b(i,d,u);r=u,d=i,i*=2}return i}function Kt(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let a,c,h=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),a=e.fxprime.slice(),ut(a,e.fxprime,-1);for(let r=0;r<u;++r){if(h=Wt(t,a,e,i,h),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:h}),!h)ut(a,e.fxprime,-1);else{J(o,1,i.fxprime,-1,e.fxprime);const x=$(e.fxprime,e.fxprime),d=Math.max(0,$(o,i.fxprime)/x);J(a,d,a,-1,i.fxprime),c=e,e=i,i=c}if(ct(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:h}),e}function Et(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||Zt,e=n.lossFunction||tt,i=Ht(t,n),o=s(i,n),a=Object.keys(o),c=[];for(const r of a)c.push(o[r].x),c.push(o[r].y);const u=Tt(r=>{const x={};for(let d=0;d<a.length;++d){const b=a[d];x[b]={x:r[2*d],y:r[2*d+1],radius:o[b].radius}}return e(x,i)},c,n).x;for(let r=0;r<a.length;++r){const x=a[r];o[x].x=u[2*r],o[x].y=u[2*r+1]}return o}const zt=1e-10;function ft(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+zt?Math.abs(t-n):Gt(e=>gt(t,n,e)-s,0,t+n)}function Ht(t,n={}){const s=n.distinct,e=t.map(c=>Object.assign({},c));function i(c){return c.join(";")}if(s){const c=new Map;for(const h of e)for(let u=0;u<h.sets.length;u++){const r=String(h.sets[u]);c.set(r,h.size+(c.get(r)||0));for(let x=u+1;x<h.sets.length;x++){const d=String(h.sets[x]),b=`${r};${d}`,y=`${d};${r}`;c.set(b,h.size+(c.get(b)||0)),c.set(y,h.size+(c.get(y)||0))}}for(const h of e)h.sets.length<3&&(h.size=c.get(i(h.sets)))}const o=[],a=new Set;for(const c of e)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){const h=c.sets[0],u=c.sets[1];a.add(i(c.sets)),a.add(i([u,h]))}o.sort((c,h)=>c===h?0:c<h?-1:1);for(let c=0;c<o.length;++c){const h=o[c];for(let u=c+1;u<o.length;++u){const r=o[u];a.has(i([h,r]))||e.push({sets:[h,r],size:0})}}return e}function Yt(t,n,s){const e=It(n.length,n.length),i=It(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const a=s[o.sets[0]],c=s[o.sets[1]],h=Math.sqrt(n[a].size/Math.PI),u=Math.sqrt(n[c].size/Math.PI),r=ft(h,u,o.size);e[a][c]=e[c][a]=r;let x=0;o.size+1e-10>=Math.min(n[a].size,n[c].size)?x=1:o.size<=1e-10&&(x=-1),i[a][c]=i[c][a]=x}),{distances:e,constraints:i}}function Xt(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const a=t[2*o],c=t[2*o+1];for(let h=o+1;h<s.length;++h){const u=t[2*h],r=t[2*h+1],x=s[o][h],d=e[o][h],b=(u-a)*(u-a)+(r-c)*(r-c),y=Math.sqrt(b),M=b-x*x;d>0&&y<=x||d<0&&y>=x||(i+=2*M*M,n[2*o]+=4*M*(a-u),n[2*o+1]+=4*M*(c-r),n[2*h]+=4*M*(u-a),n[2*h+1]+=4*M*(r-c))}}return i}function Zt(t,n={}){let s=Qt(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=Jt(t,n),o=e(i,t),a=e(s,t);o+1e-8<a&&(s=i)}return s}function Jt(t,n={}){const s=n.restarts||10,e=[],i={};for(const d of t)d.sets.length===1&&(i[d.sets[0]]=e.length,e.push(d));let{distances:o,constraints:a}=Yt(t,e,i);const c=ct(o.map(ct))/o.length;o=o.map(d=>d.map(b=>b/c));const h=(d,b)=>Xt(d,b,o,a);let u=null;for(let d=0;d<s;++d){const b=lt(o.length*2).map(Math.random),y=Kt(h,b,n);(!u||y.fx<u.fx)&&(u=y)}const r=u.x,x={};for(let d=0;d<e.length;++d){const b=e[d];x[b.sets[0]]={x:r[2*d]*c,y:r[2*d+1]*c,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const d of n.history)ut(d.x,c);return x}function Qt(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const x of t)if(x.sets.length===1){const d=x.sets[0];e[d]={x:1e10,y:1e10,rowid:e.length,size:x.size,radius:Math.sqrt(x.size/Math.PI)},i[d]=[]}t=t.filter(x=>x.sets.length===2);for(const x of t){let d=x.weight!=null?x.weight:1;const b=x.sets[0],y=x.sets[1];x.size+zt>=Math.min(e[b].size,e[y].size)&&(d=0),i[b].push({set:y,size:x.size,weight:d}),i[y].push({set:b,size:x.size,weight:d})}const o=[];Object.keys(i).forEach(x=>{let d=0;for(let b=0;b<i[x].length;++b)d+=i[x][b].size*i[x][b].weight;o.push({set:x,size:d})});function a(x,d){return d.size-x.size}o.sort(a);const c={};function h(x){return x.set in c}function u(x,d){e[d].x=x.x,e[d].y=x.y,c[d]=!0}u({x:0,y:0},o[0].set);for(let x=1;x<o.length;++x){const d=o[x].set,b=i[d].filter(h),y=e[d];if(b.sort(a),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var r=0;r<b.length;++r){const S=e[b[r].set],g=ft(y.radius,S.radius,b[r].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=r+1;m<b.length;++m){const _=e[b[m].set],l=ft(y.radius,_.radius,b[m].size),p=St({x:S.x,y:S.y,radius:g},{x:_.x,y:_.y,radius:l});M.push(...p)}}let A=1e50,T=M[0];for(const S of M){e[d].x=S.x,e[d].y=S.y;const g=s(e,t);g<A&&(A=g,T=S)}u(T,d)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const a=t[e.sets[0]],c=t[e.sets[1]];i=gt(a.radius,c.radius,q(a,c))}else i=st(e.sets.map(a=>t[a]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function At(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const c=t[e.sets[0]],h=t[e.sets[1]];i=gt(c.radius,h.radius,q(c,h))}else i=st(e.sets.map(c=>t[c]));const o=e.weight!=null?e.weight:1,a=Math.log((i+1)/(e.size+1));s+=o*a*a}return s}function $t(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const a of t)a.x-=i,a.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),a=Math.sin(i);for(const c of t){const h=c.x,u=c.y;c.x=o*h-a*u,c.y=a*h+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const a of t){var e=(a.x+o*a.y)/(1+o*o);a.x=2*e-a.x,a.y=2*e*o-a.y}}}}function te(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const a=n(i),c=n(o);a.parent=c}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const a=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<a&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function ht(t){const n=s=>{const e=t.reduce((o,a)=>Math.max(o,a[s]+a.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,a)=>Math.min(o,a[s]-a.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ot(t).map(u=>Object.assign({},u));const i=te(e);for(const u of i){$t(u,n,s);const r=ht(u);u.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),u.bounds=r}i.sort((u,r)=>r.size-u.size),e=i[0];let o=e.bounds;const a=(o.xRange.max-o.xRange.min)/50;function c(u,r,x){if(!u)return;const d=u.bounds;let b,y;if(r)b=o.xRange.max-d.xRange.min+a;else{b=o.xRange.max-d.xRange.max;const M=(d.xRange.max-d.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(x)y=o.yRange.max-d.yRange.min+a;else{y=o.yRange.max-d.yRange.max;const M=(d.yRange.max-d.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(y+=M)}for(const M of u)M.x+=b,M.y+=y,e.push(M)}let h=1;for(;h<i.length;)c(i[h],!0,!1),c(i[h+1],!1,!0),c(i[h+2],!0,!0),h+=3,o=ht(e);return Rt(e)}function Ct(t,n,s,e,i){const o=Ot(t);n-=2*e,s-=2*e;const{xRange:a,yRange:c}=ht(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),t;let h,u;if(i){const b=Math.sqrt(i/Math.PI)*2;h=n/b,u=s/b}else h=n/(a.max-a.min),u=s/(c.max-c.min);const r=Math.min(u,h),x=(n-(a.max-a.min)*r)/2,d=(s-(c.max-c.min)*r)/2;return Rt(o.map(b=>({radius:r*b.radius,x:e+x+(b.x-a.min)*r,y:e+d+(b.y-c.min)*r,setid:b.setid})))}function Rt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ot(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ee(t={}){let n=!1,s=600,e=350,i=15,o=1e3,a=Math.PI/2,c=!0,h=null,u=!0,r=!0,x=null,d=null,b=!1,y=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,A={},T=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(p){if(p in A)return A[p];var f=A[p]=T[S];return S+=1,S>=T.length&&(S=0),f},m=Et,_=tt;function l(p){let f=p.datum();const O=new Set;f.forEach(I=>{I.size==0&&I.sets.length==1&&O.add(I.sets[0])}),f=f.filter(I=>!I.sets.some(F=>O.has(F)));let v={},C={};if(f.length>0){let I=m(f,{lossFunction:_,distinct:b});c&&(I=Dt(I,a,d)),v=Ct(I,s,e,i,h),C=Ft(v,f,M)}const U={};f.forEach(I=>{I.label&&(U[I.sets]=I.label)});function j(I){if(I.sets in U)return U[I.sets];if(I.sets.length==1)return""+I.sets[0]}p.selectAll("svg").data([v]).enter().append("svg");const E=p.select("svg");n?E.attr("viewBox",`0 0 ${s} ${e}`):E.attr("width",s).attr("height",e);const D={};let w=!1;E.selectAll(".venn-area path").each(function(I){const F=this.getAttribute("d");I.sets.length==1&&F&&!b&&(w=!0,D[I.sets[0]]=ie(F))});function P(I){return F=>{const H=I.sets.map(et=>{let Y=D[et],Z=v[et];return Y||(Y={x:s/2,y:e/2,radius:1}),Z||(Z={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-F)+Z.x*F,y:Y.y*(1-F)+Z.y*F,radius:Y.radius*(1-F)+Z.radius*F}});return kt(H,y)}}const V=E.selectAll(".venn-area").data(f,I=>I.sets),N=V.enter().append("g").attr("class",I=>`venn-area venn-${I.sets.length==1?"circle":"intersection"}${I.colour||I.color?" venn-coloured":""}`).attr("data-venn-sets",I=>I.sets.join("_")),B=N.append("path"),W=N.append("text").attr("class","label").text(I=>j(I)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);r&&(B.style("fill-opacity","0").filter(I=>I.sets.length==1).style("fill",I=>I.colour?I.colour:I.color?I.color:g(I.sets)).style("fill-opacity",".25"),W.style("fill",I=>I.colour||I.color?"#FFF":t.textFill?t.textFill:I.sets.length==1?g(I.sets):"#444"));function K(I){return typeof I.transition=="function"?I.transition("venn").duration(o):I}let z=p;w&&typeof z.transition=="function"?(z=K(p),z.selectAll("path").attrTween("d",P)):z.selectAll("path").attr("d",I=>kt(I.sets.map(F=>v[F])),y);const L=z.selectAll("text").filter(I=>I.sets in C).text(I=>j(I)).attr("x",I=>Math.floor(C[I.sets].x)).attr("y",I=>Math.floor(C[I.sets].y));u&&(w?"on"in L?L.on("end",ot(v,j)):L.each("end",ot(v,j)):L.each(ot(v,j)));const R=K(V.exit()).remove();typeof V.transition=="function"&&R.selectAll("path").attrTween("d",P);const X=R.selectAll("text").attr("x",s/2).attr("y",e/2);return x!==null&&(W.style("font-size","0px"),L.style("font-size",x),X.style("font-size","0px")),{circles:v,textCentres:C,nodes:V,enter:N,update:z,exit:R}}return l.wrap=function(p){return arguments.length?(u=p,l):u},l.useViewBox=function(){return n=!0,l},l.width=function(p){return arguments.length?(s=p,l):s},l.height=function(p){return arguments.length?(e=p,l):e},l.padding=function(p){return arguments.length?(i=p,l):i},l.distinct=function(p){return arguments.length?(b=p,l):b},l.colours=function(p){return arguments.length?(g=p,l):g},l.colors=function(p){return arguments.length?(g=p,l):g},l.fontSize=function(p){return arguments.length?(x=p,l):x},l.round=function(p){return arguments.length?(y=p,l):y},l.duration=function(p){return arguments.length?(o=p,l):o},l.layoutFunction=function(p){return arguments.length?(m=p,l):m},l.normalize=function(p){return arguments.length?(c=p,l):c},l.scaleToFit=function(p){return arguments.length?(h=p,l):h},l.styled=function(p){return arguments.length?(r=p,l):r},l.orientation=function(p){return arguments.length?(a=p,l):a},l.orientationOrder=function(p){return arguments.length?(d=p,l):d},l.lossFunction=function(p){return arguments.length?(_=p==="default"?tt:p==="logRatio"?At:p,l):_},l}function ot(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",a=o.split(/\s+/).reverse(),h=(o.length+a.length)/3;let u=a.pop(),r=[u],x=0;const d=1.1;e.textContent=null;const b=[];function y(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=y(u);for(;u=a.pop(),!!u;){r.push(u);const g=r.join(" ");M.textContent=g,g.length>h&&M.getComputedTextLength()>i&&(r.pop(),M.textContent=r.join(" "),r=[u],M=y(u),x++)}const A=.35-x*d/2,T=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",T),g.setAttribute("y",S),g.setAttribute("dy",`${A+m*d}em`)})}}function rt(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function Nt(t,n,s){const e=[];for(const r of t)e.push({x:r.x,y:r.y}),e.push({x:r.x+r.radius/2,y:r.y}),e.push({x:r.x-r.radius/2,y:r.y}),e.push({x:r.x,y:r.y+r.radius/2}),e.push({x:r.x,y:r.y-r.radius/2});let i=e[0],o=rt(e[0],t,n);for(let r=1;r<e.length;++r){const x=rt(e[r],t,n);x>=o&&(i=e[r],o=x)}const a=Tt(r=>-1*rt({x:r[0],y:r[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:s?0:a[0],y:a[1]};let h=!0;for(const r of t)if(q(c,r)>r.radius){h=!1;break}for(const r of n)if(q(c,r)<r.radius){h=!1;break}if(h)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?Nt(t,[]):wt(u.arcs.map(r=>r.p1))}function ne(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let a=e+1;a<s.length;++a){const c=s[a],h=t[c],u=q(o,h);u+h.radius<=o.radius+1e-10?n[c].push(i):u+o.radius<=h.radius+1e-10&&n[i].push(c)}}return n}function Ft(t,n,s){const e={},i=ne(t);for(let o=0;o<n.length;++o){const a=n[o].sets,c={},h={};for(let d=0;d<a.length;++d){c[a[d]]=!0;const b=i[a[d]];for(let y=0;y<b.length;++y)h[b[y]]=!0}const u=[],r=[];for(let d in t)d in c?u.push(t[d]):d in h||r.push(t[d]);const x=Nt(u,r,s);e[a]=x,x.disjoint&&n[o].size>0&&console.log("WARNING: area "+a+" not represented on screen")}return e}function se(t,n,s){const e=[];return e.push(`
|
|
2
2
|
M`,t,n),e.push(`
|
|
3
3
|
m`,-s,0),e.push(`
|
|
4
4
|
a`,s,s,0,1,0,s*2,0),e.push(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-fjh_cn2l.cjs");exports.WardleyModule=e.WardleyModule;exports.createWardleyServices=e.createWardleyServices;
|