@pi-outpost/embed 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
- package/dist/arc-BBnpgwVQ.js +80 -0
- package/dist/arc-DcUn9_NX.cjs +1 -0
- package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
- package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/bash-BLBHkRa_.js +169 -0
- package/dist/bash-DHJu-DNv.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
- package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
- package/dist/c-4QgYfi8K.cjs +1 -0
- package/dist/c-Cw4FsAeJ.js +176 -0
- package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
- package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
- package/dist/channel-DV0ST12Z.js +5 -0
- package/dist/channel-DkMGzfUR.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
- package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
- package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
- package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
- package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
- package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
- package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
- package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
- package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
- package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
- package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
- package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
- package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
- package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
- package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
- package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
- package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
- package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
- package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
- package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
- package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
- package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
- package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
- package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
- package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
- package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
- package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
- package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
- package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
- package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
- package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
- package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
- package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
- package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
- package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
- package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
- package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
- package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
- package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
- package/dist/core-2nR1zkKb.cjs +3 -0
- package/dist/core-BO2hTFeF.js +845 -0
- package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
- package/dist/cpp-BUtp-HE2.cjs +1 -0
- package/dist/cpp-CeyO6lBG.js +225 -0
- package/dist/csharp-BJu4kEpt.cjs +1 -0
- package/dist/csharp-Ck6Fet_o.js +260 -0
- package/dist/css-ClSGJRju.js +140 -0
- package/dist/css-DeFr0lev.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
- package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
- package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
- package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
- package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
- package/dist/dagre-BBlCxSvR.cjs +1 -0
- package/dist/dagre-BpqwxFKp.js +1701 -0
- package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
- package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
- package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
- package/dist/defaultLocale-up9-vqhM.js +201 -0
- package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
- package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
- package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
- package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
- package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
- package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
- package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
- package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
- package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
- package/dist/dist-D6LMt8nW.js +59 -0
- package/dist/dist-DNGlMOWd.cjs +1 -0
- package/dist/dockerfile-O4rAswfG.js +34 -0
- package/dist/dockerfile-YBgAWga3.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
- package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
- package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
- package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
- package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
- package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
- package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
- package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
- package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
- package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
- package/dist/go-D-pz-dmd.cjs +1 -0
- package/dist/go-rg7jg1mu.js +140 -0
- package/dist/graphlib-B0GbLif1.js +1267 -0
- package/dist/graphlib-CkkG5MuS.cjs +1 -0
- package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
- package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
- package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
- package/dist/ini-C1q3_1-Q.js +88 -0
- package/dist/ini-nVcUEghj.cjs +1 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-CirqLVcp.js +15 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
- package/dist/java-CUN_usaq.cjs +1 -0
- package/dist/java-HguKEfA2.js +169 -0
- package/dist/javascript-C8NCH8DE.js +436 -0
- package/dist/javascript-UZXSyUuu.cjs +1 -0
- package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
- package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
- package/dist/json-Cp01TR_B.js +36 -0
- package/dist/json-usH_MUzR.cjs +1 -0
- package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
- package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
- package/dist/line-Ca8dE_lT.cjs +1 -0
- package/dist/line-O2xx2vVQ.js +34 -0
- package/dist/linear-CVhyaVzf.js +289 -0
- package/dist/linear-Cl2-QuPP.cjs +1 -0
- package/dist/map-CwPlMWPw.cjs +1 -0
- package/dist/map-DU12fF3s.js +241 -0
- package/dist/markdown-CzgRofaE.js +181 -0
- package/dist/markdown-qeo95R0i.cjs +1 -0
- package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
- package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
- package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
- package/dist/mermaid.core-DQrbAA--.cjs +10 -0
- package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
- package/dist/mount.d.ts +31 -0
- package/dist/ordinal-CCTD6_le.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
- package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/path-mKa7UESy.js +85 -0
- package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
- package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
- package/dist/php-C9FOMGEA.js +294 -0
- package/dist/php-j6EhDZDE.cjs +2 -0
- package/dist/pi-outpost-embed.cjs +305 -0
- package/dist/pi-outpost-embed.js +40942 -0
- package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
- package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
- package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
- package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
- package/dist/plaintext-BYYAHR3Z.js +10 -0
- package/dist/plaintext-DmnjizxG.cjs +1 -0
- package/dist/python-BYJzTRkK.cjs +1 -0
- package/dist/python-DKAazMIE.js +238 -0
- package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
- package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
- package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
- package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
- package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
- package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
- package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
- package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
- package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
- package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
- package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
- package/dist/rough.esm-C5XyeDCN.js +1352 -0
- package/dist/rough.esm-r0QOSzHM.cjs +1 -0
- package/dist/ruby-BAUeZQKZ.js +262 -0
- package/dist/ruby-ClR4zp-1.cjs +1 -0
- package/dist/rust-DiTjMjP5.js +169 -0
- package/dist/rust-ghVvEWhm.cjs +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
- package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
- package/dist/scss-CKxh5HRg.cjs +1 -0
- package/dist/scss-CckAvQOx.js +150 -0
- package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
- package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
- package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
- package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
- package/dist/sql-B-Rnc2C3.js +118 -0
- package/dist/sql-B7syKcd8.cjs +1 -0
- package/dist/src-CR--T_NF.cjs +1 -0
- package/dist/src-DJ4x3y2O.js +2142 -0
- package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
- package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
- package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
- package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
- package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
- package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
- package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
- package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
- package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
- package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
- package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
- package/dist/typescript-clWeqIBY.cjs +1 -0
- package/dist/typescript-mdYq8uqf.js +521 -0
- package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
- package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
- package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
- package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
- package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
- package/dist/xml-BamqaQOf.cjs +1 -0
- package/dist/xml-DVYfB8uY.js +166 -0
- package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
- package/dist/yaml-_1BORZTQ.js +144 -0
- package/dist/yaml-bAgWofBg.cjs +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,1366 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
+
import { m as t, p as n } from "./src-DJ4x3y2O.js";
|
|
3
|
+
import { R as r, h as i, p as a, r as o, s } from "./chunk-WYO6CB5R-Y9HJHB3Q.js";
|
|
4
|
+
import { t as c } from "./dist-D6LMt8nW.js";
|
|
5
|
+
//#region ../node_modules/d3-shape/src/curve/linear.js
|
|
6
|
+
function l(e) {
|
|
7
|
+
this._context = e;
|
|
8
|
+
}
|
|
9
|
+
l.prototype = {
|
|
10
|
+
areaStart: function() {
|
|
11
|
+
this._line = 0;
|
|
12
|
+
},
|
|
13
|
+
areaEnd: function() {
|
|
14
|
+
this._line = NaN;
|
|
15
|
+
},
|
|
16
|
+
lineStart: function() {
|
|
17
|
+
this._point = 0;
|
|
18
|
+
},
|
|
19
|
+
lineEnd: function() {
|
|
20
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
21
|
+
},
|
|
22
|
+
point: function(e, t) {
|
|
23
|
+
switch (e = +e, t = +t, this._point) {
|
|
24
|
+
case 0:
|
|
25
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
26
|
+
break;
|
|
27
|
+
case 1: this._point = 2;
|
|
28
|
+
default:
|
|
29
|
+
this._context.lineTo(e, t);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
function u(e) {
|
|
35
|
+
return new l(e);
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../node_modules/d3-shape/src/curve/bump.js
|
|
39
|
+
var d = class {
|
|
40
|
+
constructor(e, t) {
|
|
41
|
+
this._context = e, this._x = t;
|
|
42
|
+
}
|
|
43
|
+
areaStart() {
|
|
44
|
+
this._line = 0;
|
|
45
|
+
}
|
|
46
|
+
areaEnd() {
|
|
47
|
+
this._line = NaN;
|
|
48
|
+
}
|
|
49
|
+
lineStart() {
|
|
50
|
+
this._point = 0;
|
|
51
|
+
}
|
|
52
|
+
lineEnd() {
|
|
53
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
54
|
+
}
|
|
55
|
+
point(e, t) {
|
|
56
|
+
switch (e = +e, t = +t, this._point) {
|
|
57
|
+
case 0:
|
|
58
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
59
|
+
break;
|
|
60
|
+
case 1: this._point = 2;
|
|
61
|
+
default:
|
|
62
|
+
this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
this._x0 = e, this._y0 = t;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
function f(e) {
|
|
69
|
+
return new d(e, !0);
|
|
70
|
+
}
|
|
71
|
+
function ee(e) {
|
|
72
|
+
return new d(e, !1);
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region ../node_modules/d3-shape/src/noop.js
|
|
76
|
+
function p() {}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region ../node_modules/d3-shape/src/curve/basis.js
|
|
79
|
+
function m(e, t, n) {
|
|
80
|
+
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
|
|
81
|
+
}
|
|
82
|
+
function h(e) {
|
|
83
|
+
this._context = e;
|
|
84
|
+
}
|
|
85
|
+
h.prototype = {
|
|
86
|
+
areaStart: function() {
|
|
87
|
+
this._line = 0;
|
|
88
|
+
},
|
|
89
|
+
areaEnd: function() {
|
|
90
|
+
this._line = NaN;
|
|
91
|
+
},
|
|
92
|
+
lineStart: function() {
|
|
93
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
94
|
+
},
|
|
95
|
+
lineEnd: function() {
|
|
96
|
+
switch (this._point) {
|
|
97
|
+
case 3: m(this, this._x1, this._y1);
|
|
98
|
+
case 2:
|
|
99
|
+
this._context.lineTo(this._x1, this._y1);
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
103
|
+
},
|
|
104
|
+
point: function(e, t) {
|
|
105
|
+
switch (e = +e, t = +t, this._point) {
|
|
106
|
+
case 0:
|
|
107
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
108
|
+
break;
|
|
109
|
+
case 1:
|
|
110
|
+
this._point = 2;
|
|
111
|
+
break;
|
|
112
|
+
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
113
|
+
default:
|
|
114
|
+
m(this, e, t);
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
function te(e) {
|
|
121
|
+
return new h(e);
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region ../node_modules/d3-shape/src/curve/basisClosed.js
|
|
125
|
+
function ne(e) {
|
|
126
|
+
this._context = e;
|
|
127
|
+
}
|
|
128
|
+
ne.prototype = {
|
|
129
|
+
areaStart: p,
|
|
130
|
+
areaEnd: p,
|
|
131
|
+
lineStart: function() {
|
|
132
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
133
|
+
},
|
|
134
|
+
lineEnd: function() {
|
|
135
|
+
switch (this._point) {
|
|
136
|
+
case 1:
|
|
137
|
+
this._context.moveTo(this._x2, this._y2), this._context.closePath();
|
|
138
|
+
break;
|
|
139
|
+
case 2:
|
|
140
|
+
this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
|
|
141
|
+
break;
|
|
142
|
+
case 3:
|
|
143
|
+
this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
point: function(e, t) {
|
|
148
|
+
switch (e = +e, t = +t, this._point) {
|
|
149
|
+
case 0:
|
|
150
|
+
this._point = 1, this._x2 = e, this._y2 = t;
|
|
151
|
+
break;
|
|
152
|
+
case 1:
|
|
153
|
+
this._point = 2, this._x3 = e, this._y3 = t;
|
|
154
|
+
break;
|
|
155
|
+
case 2:
|
|
156
|
+
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
|
|
157
|
+
break;
|
|
158
|
+
default:
|
|
159
|
+
m(this, e, t);
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
function re(e) {
|
|
166
|
+
return new ne(e);
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region ../node_modules/d3-shape/src/curve/basisOpen.js
|
|
170
|
+
function ie(e) {
|
|
171
|
+
this._context = e;
|
|
172
|
+
}
|
|
173
|
+
ie.prototype = {
|
|
174
|
+
areaStart: function() {
|
|
175
|
+
this._line = 0;
|
|
176
|
+
},
|
|
177
|
+
areaEnd: function() {
|
|
178
|
+
this._line = NaN;
|
|
179
|
+
},
|
|
180
|
+
lineStart: function() {
|
|
181
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
182
|
+
},
|
|
183
|
+
lineEnd: function() {
|
|
184
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
185
|
+
},
|
|
186
|
+
point: function(e, t) {
|
|
187
|
+
switch (e = +e, t = +t, this._point) {
|
|
188
|
+
case 0:
|
|
189
|
+
this._point = 1;
|
|
190
|
+
break;
|
|
191
|
+
case 1:
|
|
192
|
+
this._point = 2;
|
|
193
|
+
break;
|
|
194
|
+
case 2:
|
|
195
|
+
this._point = 3;
|
|
196
|
+
var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
|
|
197
|
+
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
|
|
198
|
+
break;
|
|
199
|
+
case 3: this._point = 4;
|
|
200
|
+
default:
|
|
201
|
+
m(this, e, t);
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
function ae(e) {
|
|
208
|
+
return new ie(e);
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region ../node_modules/d3-shape/src/curve/bundle.js
|
|
212
|
+
function oe(e, t) {
|
|
213
|
+
this._basis = new h(e), this._beta = t;
|
|
214
|
+
}
|
|
215
|
+
oe.prototype = {
|
|
216
|
+
lineStart: function() {
|
|
217
|
+
this._x = [], this._y = [], this._basis.lineStart();
|
|
218
|
+
},
|
|
219
|
+
lineEnd: function() {
|
|
220
|
+
var e = this._x, t = this._y, n = e.length - 1;
|
|
221
|
+
if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
|
|
222
|
+
this._x = this._y = null, this._basis.lineEnd();
|
|
223
|
+
},
|
|
224
|
+
point: function(e, t) {
|
|
225
|
+
this._x.push(+e), this._y.push(+t);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
var se = (function e(t) {
|
|
229
|
+
function n(e) {
|
|
230
|
+
return t === 1 ? new h(e) : new oe(e, t);
|
|
231
|
+
}
|
|
232
|
+
return n.beta = function(t) {
|
|
233
|
+
return e(+t);
|
|
234
|
+
}, n;
|
|
235
|
+
})(.85);
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region ../node_modules/d3-shape/src/curve/cardinal.js
|
|
238
|
+
function g(e, t, n) {
|
|
239
|
+
e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
|
|
240
|
+
}
|
|
241
|
+
function _(e, t) {
|
|
242
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
243
|
+
}
|
|
244
|
+
_.prototype = {
|
|
245
|
+
areaStart: function() {
|
|
246
|
+
this._line = 0;
|
|
247
|
+
},
|
|
248
|
+
areaEnd: function() {
|
|
249
|
+
this._line = NaN;
|
|
250
|
+
},
|
|
251
|
+
lineStart: function() {
|
|
252
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
253
|
+
},
|
|
254
|
+
lineEnd: function() {
|
|
255
|
+
switch (this._point) {
|
|
256
|
+
case 2:
|
|
257
|
+
this._context.lineTo(this._x2, this._y2);
|
|
258
|
+
break;
|
|
259
|
+
case 3:
|
|
260
|
+
g(this, this._x1, this._y1);
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
264
|
+
},
|
|
265
|
+
point: function(e, t) {
|
|
266
|
+
switch (e = +e, t = +t, this._point) {
|
|
267
|
+
case 0:
|
|
268
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
269
|
+
break;
|
|
270
|
+
case 1:
|
|
271
|
+
this._point = 2, this._x1 = e, this._y1 = t;
|
|
272
|
+
break;
|
|
273
|
+
case 2: this._point = 3;
|
|
274
|
+
default:
|
|
275
|
+
g(this, e, t);
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
var ce = (function e(t) {
|
|
282
|
+
function n(e) {
|
|
283
|
+
return new _(e, t);
|
|
284
|
+
}
|
|
285
|
+
return n.tension = function(t) {
|
|
286
|
+
return e(+t);
|
|
287
|
+
}, n;
|
|
288
|
+
})(0);
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region ../node_modules/d3-shape/src/curve/cardinalClosed.js
|
|
291
|
+
function v(e, t) {
|
|
292
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
293
|
+
}
|
|
294
|
+
v.prototype = {
|
|
295
|
+
areaStart: p,
|
|
296
|
+
areaEnd: p,
|
|
297
|
+
lineStart: function() {
|
|
298
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
|
|
299
|
+
},
|
|
300
|
+
lineEnd: function() {
|
|
301
|
+
switch (this._point) {
|
|
302
|
+
case 1:
|
|
303
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
304
|
+
break;
|
|
305
|
+
case 2:
|
|
306
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
307
|
+
break;
|
|
308
|
+
case 3:
|
|
309
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
point: function(e, t) {
|
|
314
|
+
switch (e = +e, t = +t, this._point) {
|
|
315
|
+
case 0:
|
|
316
|
+
this._point = 1, this._x3 = e, this._y3 = t;
|
|
317
|
+
break;
|
|
318
|
+
case 1:
|
|
319
|
+
this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
|
|
320
|
+
break;
|
|
321
|
+
case 2:
|
|
322
|
+
this._point = 3, this._x5 = e, this._y5 = t;
|
|
323
|
+
break;
|
|
324
|
+
default:
|
|
325
|
+
g(this, e, t);
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
var le = (function e(t) {
|
|
332
|
+
function n(e) {
|
|
333
|
+
return new v(e, t);
|
|
334
|
+
}
|
|
335
|
+
return n.tension = function(t) {
|
|
336
|
+
return e(+t);
|
|
337
|
+
}, n;
|
|
338
|
+
})(0);
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region ../node_modules/d3-shape/src/curve/cardinalOpen.js
|
|
341
|
+
function y(e, t) {
|
|
342
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
343
|
+
}
|
|
344
|
+
y.prototype = {
|
|
345
|
+
areaStart: function() {
|
|
346
|
+
this._line = 0;
|
|
347
|
+
},
|
|
348
|
+
areaEnd: function() {
|
|
349
|
+
this._line = NaN;
|
|
350
|
+
},
|
|
351
|
+
lineStart: function() {
|
|
352
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
353
|
+
},
|
|
354
|
+
lineEnd: function() {
|
|
355
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
356
|
+
},
|
|
357
|
+
point: function(e, t) {
|
|
358
|
+
switch (e = +e, t = +t, this._point) {
|
|
359
|
+
case 0:
|
|
360
|
+
this._point = 1;
|
|
361
|
+
break;
|
|
362
|
+
case 1:
|
|
363
|
+
this._point = 2;
|
|
364
|
+
break;
|
|
365
|
+
case 2:
|
|
366
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
367
|
+
break;
|
|
368
|
+
case 3: this._point = 4;
|
|
369
|
+
default:
|
|
370
|
+
g(this, e, t);
|
|
371
|
+
break;
|
|
372
|
+
}
|
|
373
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
var ue = (function e(t) {
|
|
377
|
+
function n(e) {
|
|
378
|
+
return new y(e, t);
|
|
379
|
+
}
|
|
380
|
+
return n.tension = function(t) {
|
|
381
|
+
return e(+t);
|
|
382
|
+
}, n;
|
|
383
|
+
})(0);
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region ../node_modules/d3-shape/src/curve/catmullRom.js
|
|
386
|
+
function b(e, t, n) {
|
|
387
|
+
var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
|
|
388
|
+
if (e._l01_a > 1e-12) {
|
|
389
|
+
var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
|
|
390
|
+
r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
|
|
391
|
+
}
|
|
392
|
+
if (e._l23_a > 1e-12) {
|
|
393
|
+
var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
|
|
394
|
+
a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
|
|
395
|
+
}
|
|
396
|
+
e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
|
|
397
|
+
}
|
|
398
|
+
function de(e, t) {
|
|
399
|
+
this._context = e, this._alpha = t;
|
|
400
|
+
}
|
|
401
|
+
de.prototype = {
|
|
402
|
+
areaStart: function() {
|
|
403
|
+
this._line = 0;
|
|
404
|
+
},
|
|
405
|
+
areaEnd: function() {
|
|
406
|
+
this._line = NaN;
|
|
407
|
+
},
|
|
408
|
+
lineStart: function() {
|
|
409
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
410
|
+
},
|
|
411
|
+
lineEnd: function() {
|
|
412
|
+
switch (this._point) {
|
|
413
|
+
case 2:
|
|
414
|
+
this._context.lineTo(this._x2, this._y2);
|
|
415
|
+
break;
|
|
416
|
+
case 3:
|
|
417
|
+
this.point(this._x2, this._y2);
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
421
|
+
},
|
|
422
|
+
point: function(e, t) {
|
|
423
|
+
if (e = +e, t = +t, this._point) {
|
|
424
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
425
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
426
|
+
}
|
|
427
|
+
switch (this._point) {
|
|
428
|
+
case 0:
|
|
429
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
430
|
+
break;
|
|
431
|
+
case 1:
|
|
432
|
+
this._point = 2;
|
|
433
|
+
break;
|
|
434
|
+
case 2: this._point = 3;
|
|
435
|
+
default:
|
|
436
|
+
b(this, e, t);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
var fe = (function e(t) {
|
|
443
|
+
function n(e) {
|
|
444
|
+
return t ? new de(e, t) : new _(e, 0);
|
|
445
|
+
}
|
|
446
|
+
return n.alpha = function(t) {
|
|
447
|
+
return e(+t);
|
|
448
|
+
}, n;
|
|
449
|
+
})(.5);
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region ../node_modules/d3-shape/src/curve/catmullRomClosed.js
|
|
452
|
+
function pe(e, t) {
|
|
453
|
+
this._context = e, this._alpha = t;
|
|
454
|
+
}
|
|
455
|
+
pe.prototype = {
|
|
456
|
+
areaStart: p,
|
|
457
|
+
areaEnd: p,
|
|
458
|
+
lineStart: function() {
|
|
459
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
460
|
+
},
|
|
461
|
+
lineEnd: function() {
|
|
462
|
+
switch (this._point) {
|
|
463
|
+
case 1:
|
|
464
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
465
|
+
break;
|
|
466
|
+
case 2:
|
|
467
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
468
|
+
break;
|
|
469
|
+
case 3:
|
|
470
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
point: function(e, t) {
|
|
475
|
+
if (e = +e, t = +t, this._point) {
|
|
476
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
477
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
478
|
+
}
|
|
479
|
+
switch (this._point) {
|
|
480
|
+
case 0:
|
|
481
|
+
this._point = 1, this._x3 = e, this._y3 = t;
|
|
482
|
+
break;
|
|
483
|
+
case 1:
|
|
484
|
+
this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
|
|
485
|
+
break;
|
|
486
|
+
case 2:
|
|
487
|
+
this._point = 3, this._x5 = e, this._y5 = t;
|
|
488
|
+
break;
|
|
489
|
+
default:
|
|
490
|
+
b(this, e, t);
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
var me = (function e(t) {
|
|
497
|
+
function n(e) {
|
|
498
|
+
return t ? new pe(e, t) : new v(e, 0);
|
|
499
|
+
}
|
|
500
|
+
return n.alpha = function(t) {
|
|
501
|
+
return e(+t);
|
|
502
|
+
}, n;
|
|
503
|
+
})(.5);
|
|
504
|
+
//#endregion
|
|
505
|
+
//#region ../node_modules/d3-shape/src/curve/catmullRomOpen.js
|
|
506
|
+
function he(e, t) {
|
|
507
|
+
this._context = e, this._alpha = t;
|
|
508
|
+
}
|
|
509
|
+
he.prototype = {
|
|
510
|
+
areaStart: function() {
|
|
511
|
+
this._line = 0;
|
|
512
|
+
},
|
|
513
|
+
areaEnd: function() {
|
|
514
|
+
this._line = NaN;
|
|
515
|
+
},
|
|
516
|
+
lineStart: function() {
|
|
517
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
518
|
+
},
|
|
519
|
+
lineEnd: function() {
|
|
520
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
521
|
+
},
|
|
522
|
+
point: function(e, t) {
|
|
523
|
+
if (e = +e, t = +t, this._point) {
|
|
524
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
525
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
526
|
+
}
|
|
527
|
+
switch (this._point) {
|
|
528
|
+
case 0:
|
|
529
|
+
this._point = 1;
|
|
530
|
+
break;
|
|
531
|
+
case 1:
|
|
532
|
+
this._point = 2;
|
|
533
|
+
break;
|
|
534
|
+
case 2:
|
|
535
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
536
|
+
break;
|
|
537
|
+
case 3: this._point = 4;
|
|
538
|
+
default:
|
|
539
|
+
b(this, e, t);
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
var ge = (function e(t) {
|
|
546
|
+
function n(e) {
|
|
547
|
+
return t ? new he(e, t) : new y(e, 0);
|
|
548
|
+
}
|
|
549
|
+
return n.alpha = function(t) {
|
|
550
|
+
return e(+t);
|
|
551
|
+
}, n;
|
|
552
|
+
})(.5);
|
|
553
|
+
//#endregion
|
|
554
|
+
//#region ../node_modules/d3-shape/src/curve/linearClosed.js
|
|
555
|
+
function _e(e) {
|
|
556
|
+
this._context = e;
|
|
557
|
+
}
|
|
558
|
+
_e.prototype = {
|
|
559
|
+
areaStart: p,
|
|
560
|
+
areaEnd: p,
|
|
561
|
+
lineStart: function() {
|
|
562
|
+
this._point = 0;
|
|
563
|
+
},
|
|
564
|
+
lineEnd: function() {
|
|
565
|
+
this._point && this._context.closePath();
|
|
566
|
+
},
|
|
567
|
+
point: function(e, t) {
|
|
568
|
+
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
function ve(e) {
|
|
572
|
+
return new _e(e);
|
|
573
|
+
}
|
|
574
|
+
//#endregion
|
|
575
|
+
//#region ../node_modules/d3-shape/src/curve/monotone.js
|
|
576
|
+
function ye(e) {
|
|
577
|
+
return e < 0 ? -1 : 1;
|
|
578
|
+
}
|
|
579
|
+
function be(e, t, n) {
|
|
580
|
+
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
|
|
581
|
+
return (ye(a) + ye(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
|
|
582
|
+
}
|
|
583
|
+
function xe(e, t) {
|
|
584
|
+
var n = e._x1 - e._x0;
|
|
585
|
+
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
|
|
586
|
+
}
|
|
587
|
+
function x(e, t, n) {
|
|
588
|
+
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
|
|
589
|
+
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
|
|
590
|
+
}
|
|
591
|
+
function S(e) {
|
|
592
|
+
this._context = e;
|
|
593
|
+
}
|
|
594
|
+
S.prototype = {
|
|
595
|
+
areaStart: function() {
|
|
596
|
+
this._line = 0;
|
|
597
|
+
},
|
|
598
|
+
areaEnd: function() {
|
|
599
|
+
this._line = NaN;
|
|
600
|
+
},
|
|
601
|
+
lineStart: function() {
|
|
602
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
603
|
+
},
|
|
604
|
+
lineEnd: function() {
|
|
605
|
+
switch (this._point) {
|
|
606
|
+
case 2:
|
|
607
|
+
this._context.lineTo(this._x1, this._y1);
|
|
608
|
+
break;
|
|
609
|
+
case 3:
|
|
610
|
+
x(this, this._t0, xe(this, this._t0));
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
614
|
+
},
|
|
615
|
+
point: function(e, t) {
|
|
616
|
+
var n = NaN;
|
|
617
|
+
if (e = +e, t = +t, !(e === this._x1 && t === this._y1)) {
|
|
618
|
+
switch (this._point) {
|
|
619
|
+
case 0:
|
|
620
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
621
|
+
break;
|
|
622
|
+
case 1:
|
|
623
|
+
this._point = 2;
|
|
624
|
+
break;
|
|
625
|
+
case 2:
|
|
626
|
+
this._point = 3, x(this, xe(this, n = be(this, e, t)), n);
|
|
627
|
+
break;
|
|
628
|
+
default:
|
|
629
|
+
x(this, this._t0, n = be(this, e, t));
|
|
630
|
+
break;
|
|
631
|
+
}
|
|
632
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
function Se(e) {
|
|
637
|
+
this._context = new Ce(e);
|
|
638
|
+
}
|
|
639
|
+
(Se.prototype = Object.create(S.prototype)).point = function(e, t) {
|
|
640
|
+
S.prototype.point.call(this, t, e);
|
|
641
|
+
};
|
|
642
|
+
function Ce(e) {
|
|
643
|
+
this._context = e;
|
|
644
|
+
}
|
|
645
|
+
Ce.prototype = {
|
|
646
|
+
moveTo: function(e, t) {
|
|
647
|
+
this._context.moveTo(t, e);
|
|
648
|
+
},
|
|
649
|
+
closePath: function() {
|
|
650
|
+
this._context.closePath();
|
|
651
|
+
},
|
|
652
|
+
lineTo: function(e, t) {
|
|
653
|
+
this._context.lineTo(t, e);
|
|
654
|
+
},
|
|
655
|
+
bezierCurveTo: function(e, t, n, r, i, a) {
|
|
656
|
+
this._context.bezierCurveTo(t, e, r, n, a, i);
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
function we(e) {
|
|
660
|
+
return new S(e);
|
|
661
|
+
}
|
|
662
|
+
function Te(e) {
|
|
663
|
+
return new Se(e);
|
|
664
|
+
}
|
|
665
|
+
//#endregion
|
|
666
|
+
//#region ../node_modules/d3-shape/src/curve/natural.js
|
|
667
|
+
function Ee(e) {
|
|
668
|
+
this._context = e;
|
|
669
|
+
}
|
|
670
|
+
Ee.prototype = {
|
|
671
|
+
areaStart: function() {
|
|
672
|
+
this._line = 0;
|
|
673
|
+
},
|
|
674
|
+
areaEnd: function() {
|
|
675
|
+
this._line = NaN;
|
|
676
|
+
},
|
|
677
|
+
lineStart: function() {
|
|
678
|
+
this._x = [], this._y = [];
|
|
679
|
+
},
|
|
680
|
+
lineEnd: function() {
|
|
681
|
+
var e = this._x, t = this._y, n = e.length;
|
|
682
|
+
if (n) if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
|
|
683
|
+
else for (var r = De(e), i = De(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
|
|
684
|
+
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
685
|
+
},
|
|
686
|
+
point: function(e, t) {
|
|
687
|
+
this._x.push(+e), this._y.push(+t);
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
function De(e) {
|
|
691
|
+
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
|
|
692
|
+
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
|
|
693
|
+
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
|
|
694
|
+
for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
|
|
695
|
+
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
|
|
696
|
+
return [i, a];
|
|
697
|
+
}
|
|
698
|
+
function Oe(e) {
|
|
699
|
+
return new Ee(e);
|
|
700
|
+
}
|
|
701
|
+
//#endregion
|
|
702
|
+
//#region ../node_modules/d3-shape/src/curve/step.js
|
|
703
|
+
function C(e, t) {
|
|
704
|
+
this._context = e, this._t = t;
|
|
705
|
+
}
|
|
706
|
+
C.prototype = {
|
|
707
|
+
areaStart: function() {
|
|
708
|
+
this._line = 0;
|
|
709
|
+
},
|
|
710
|
+
areaEnd: function() {
|
|
711
|
+
this._line = NaN;
|
|
712
|
+
},
|
|
713
|
+
lineStart: function() {
|
|
714
|
+
this._x = this._y = NaN, this._point = 0;
|
|
715
|
+
},
|
|
716
|
+
lineEnd: function() {
|
|
717
|
+
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
|
|
718
|
+
},
|
|
719
|
+
point: function(e, t) {
|
|
720
|
+
switch (e = +e, t = +t, this._point) {
|
|
721
|
+
case 0:
|
|
722
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
723
|
+
break;
|
|
724
|
+
case 1: this._point = 2;
|
|
725
|
+
default:
|
|
726
|
+
if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
|
|
727
|
+
else {
|
|
728
|
+
var n = this._x * (1 - this._t) + e * this._t;
|
|
729
|
+
this._context.lineTo(n, this._y), this._context.lineTo(n, t);
|
|
730
|
+
}
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
this._x = e, this._y = t;
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
function w(e) {
|
|
737
|
+
return new C(e, .5);
|
|
738
|
+
}
|
|
739
|
+
function T(e) {
|
|
740
|
+
return new C(e, 0);
|
|
741
|
+
}
|
|
742
|
+
function ke(e) {
|
|
743
|
+
return new C(e, 1);
|
|
744
|
+
}
|
|
745
|
+
//#endregion
|
|
746
|
+
//#region ../node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
|
|
747
|
+
function E(e) {
|
|
748
|
+
if (typeof e != "object" || !e) return !1;
|
|
749
|
+
if (Object.getPrototypeOf(e) === null) return !0;
|
|
750
|
+
if (Object.prototype.toString.call(e) !== "[object Object]") {
|
|
751
|
+
let t = e[Symbol.toStringTag];
|
|
752
|
+
return t == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${t}]`;
|
|
753
|
+
}
|
|
754
|
+
let t = e;
|
|
755
|
+
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
|
|
756
|
+
return Object.getPrototypeOf(e) === t;
|
|
757
|
+
}
|
|
758
|
+
//#endregion
|
|
759
|
+
//#region ../node_modules/es-toolkit/dist/function/noop.mjs
|
|
760
|
+
function Ae() {}
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
763
|
+
function je(e) {
|
|
764
|
+
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
765
|
+
}
|
|
766
|
+
//#endregion
|
|
767
|
+
//#region ../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
768
|
+
function D(e) {
|
|
769
|
+
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
770
|
+
}
|
|
771
|
+
//#endregion
|
|
772
|
+
//#region ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
773
|
+
var Me = "[object RegExp]", O = "[object String]", k = "[object Number]", A = "[object Boolean]", j = "[object Arguments]", Ne = "[object Symbol]", Pe = "[object Date]", Fe = "[object Map]", Ie = "[object Set]", Le = "[object Array]", Re = "[object ArrayBuffer]", ze = "[object Object]", M = "[object DataView]", Be = "[object Uint8Array]", Ve = "[object Uint8ClampedArray]", He = "[object Uint16Array]", Ue = "[object Uint32Array]", We = "[object Int8Array]", Ge = "[object Int16Array]", Ke = "[object Int32Array]", qe = "[object Float32Array]", Je = "[object Float64Array]", Ye = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
|
|
774
|
+
return this;
|
|
775
|
+
})();
|
|
776
|
+
//#endregion
|
|
777
|
+
//#region ../node_modules/es-toolkit/dist/predicate/isBuffer.mjs
|
|
778
|
+
function N(e) {
|
|
779
|
+
return Ye.Buffer !== void 0 && Ye.Buffer.isBuffer(e);
|
|
780
|
+
}
|
|
781
|
+
//#endregion
|
|
782
|
+
//#region ../node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
783
|
+
function Xe(e) {
|
|
784
|
+
return Number.isSafeInteger(e) && e >= 0;
|
|
785
|
+
}
|
|
786
|
+
//#endregion
|
|
787
|
+
//#region ../node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
|
|
788
|
+
function Ze(e) {
|
|
789
|
+
return e != null && typeof e != "function" && Xe(e.length);
|
|
790
|
+
}
|
|
791
|
+
//#endregion
|
|
792
|
+
//#region ../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
793
|
+
function Qe(e) {
|
|
794
|
+
return e === "__proto__";
|
|
795
|
+
}
|
|
796
|
+
//#endregion
|
|
797
|
+
//#region ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
798
|
+
function P(e) {
|
|
799
|
+
return e == null || typeof e != "object" && typeof e != "function";
|
|
800
|
+
}
|
|
801
|
+
//#endregion
|
|
802
|
+
//#region ../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
|
|
803
|
+
function F(e) {
|
|
804
|
+
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
805
|
+
}
|
|
806
|
+
//#endregion
|
|
807
|
+
//#region ../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
|
|
808
|
+
function $e(e, t) {
|
|
809
|
+
return I(e, void 0, e, /* @__PURE__ */ new Map(), t);
|
|
810
|
+
}
|
|
811
|
+
function I(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
812
|
+
let a = i?.(e, t, n, r);
|
|
813
|
+
if (a !== void 0) return a;
|
|
814
|
+
if (P(e)) return e;
|
|
815
|
+
if (r.has(e)) return r.get(e);
|
|
816
|
+
if (Array.isArray(e)) {
|
|
817
|
+
let t = Array(e.length);
|
|
818
|
+
r.set(e, t);
|
|
819
|
+
for (let a = 0; a < e.length; a++) t[a] = I(e[a], a, n, r, i);
|
|
820
|
+
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
|
|
821
|
+
}
|
|
822
|
+
if (e instanceof Date) return new Date(e.getTime());
|
|
823
|
+
if (e instanceof RegExp) {
|
|
824
|
+
let t = new RegExp(e.source, e.flags);
|
|
825
|
+
return t.lastIndex = e.lastIndex, t;
|
|
826
|
+
}
|
|
827
|
+
if (e instanceof Map) {
|
|
828
|
+
let t = /* @__PURE__ */ new Map();
|
|
829
|
+
r.set(e, t);
|
|
830
|
+
for (let [a, o] of e) t.set(a, I(o, a, n, r, i));
|
|
831
|
+
return t;
|
|
832
|
+
}
|
|
833
|
+
if (e instanceof Set) {
|
|
834
|
+
let t = /* @__PURE__ */ new Set();
|
|
835
|
+
r.set(e, t);
|
|
836
|
+
for (let a of e) t.add(I(a, void 0, n, r, i));
|
|
837
|
+
return t;
|
|
838
|
+
}
|
|
839
|
+
if (N(e)) return e.subarray();
|
|
840
|
+
if (F(e)) {
|
|
841
|
+
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
|
|
842
|
+
r.set(e, t);
|
|
843
|
+
for (let a = 0; a < e.length; a++) t[a] = I(e[a], a, n, r, i);
|
|
844
|
+
return t;
|
|
845
|
+
}
|
|
846
|
+
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
847
|
+
if (e instanceof DataView) {
|
|
848
|
+
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
|
|
849
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
850
|
+
}
|
|
851
|
+
if (typeof File < "u" && e instanceof File) {
|
|
852
|
+
let t = new File([e], e.name, { type: e.type });
|
|
853
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
854
|
+
}
|
|
855
|
+
if (typeof Blob < "u" && e instanceof Blob) {
|
|
856
|
+
let t = new Blob([e], { type: e.type });
|
|
857
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
858
|
+
}
|
|
859
|
+
if (e instanceof Error) {
|
|
860
|
+
let t = structuredClone(e);
|
|
861
|
+
return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, L(t, e, n, r, i), t;
|
|
862
|
+
}
|
|
863
|
+
if (e instanceof Boolean) {
|
|
864
|
+
let t = new Boolean(e.valueOf());
|
|
865
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
866
|
+
}
|
|
867
|
+
if (e instanceof Number) {
|
|
868
|
+
let t = new Number(e.valueOf());
|
|
869
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
870
|
+
}
|
|
871
|
+
if (e instanceof String) {
|
|
872
|
+
let t = new String(e.valueOf());
|
|
873
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
874
|
+
}
|
|
875
|
+
if (typeof e == "object" && et(e)) {
|
|
876
|
+
let t = Object.create(Object.getPrototypeOf(e));
|
|
877
|
+
return r.set(e, t), L(t, e, n, r, i), t;
|
|
878
|
+
}
|
|
879
|
+
return e;
|
|
880
|
+
}
|
|
881
|
+
function L(e, t, n = e, r, i) {
|
|
882
|
+
let a = [...Object.keys(t), ...je(t)];
|
|
883
|
+
for (let o = 0; o < a.length; o++) {
|
|
884
|
+
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
|
|
885
|
+
(c == null || c.writable) && (e[s] = I(t[s], s, n, r, i));
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
function et(e) {
|
|
889
|
+
switch (D(e)) {
|
|
890
|
+
case j:
|
|
891
|
+
case Le:
|
|
892
|
+
case Re:
|
|
893
|
+
case M:
|
|
894
|
+
case A:
|
|
895
|
+
case Pe:
|
|
896
|
+
case qe:
|
|
897
|
+
case Je:
|
|
898
|
+
case We:
|
|
899
|
+
case Ge:
|
|
900
|
+
case Ke:
|
|
901
|
+
case Fe:
|
|
902
|
+
case k:
|
|
903
|
+
case ze:
|
|
904
|
+
case Me:
|
|
905
|
+
case Ie:
|
|
906
|
+
case O:
|
|
907
|
+
case Ne:
|
|
908
|
+
case Be:
|
|
909
|
+
case Ve:
|
|
910
|
+
case He:
|
|
911
|
+
case Ue: return !0;
|
|
912
|
+
default: return !1;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
//#endregion
|
|
916
|
+
//#region ../node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
|
|
917
|
+
function tt(e, t) {
|
|
918
|
+
return $e(e, (n, r, i, a) => {
|
|
919
|
+
let o = t?.(n, r, i, a);
|
|
920
|
+
if (o !== void 0) return o;
|
|
921
|
+
if (typeof e == "object") {
|
|
922
|
+
if (D(e) === "[object Object]" && typeof e.constructor != "function") {
|
|
923
|
+
let t = {};
|
|
924
|
+
return a.set(e, t), L(t, e, i, a), t;
|
|
925
|
+
}
|
|
926
|
+
switch (Object.prototype.toString.call(e)) {
|
|
927
|
+
case k:
|
|
928
|
+
case O:
|
|
929
|
+
case A: {
|
|
930
|
+
let t = new e.constructor(e?.valueOf());
|
|
931
|
+
return L(t, e), t;
|
|
932
|
+
}
|
|
933
|
+
case j: {
|
|
934
|
+
let t = {};
|
|
935
|
+
return L(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
|
|
936
|
+
}
|
|
937
|
+
default: return;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
//#endregion
|
|
943
|
+
//#region ../node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
|
|
944
|
+
function nt(e) {
|
|
945
|
+
return tt(e);
|
|
946
|
+
}
|
|
947
|
+
//#endregion
|
|
948
|
+
//#region ../node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
|
|
949
|
+
function R(e) {
|
|
950
|
+
return typeof e == "object" && !!e && D(e) === "[object Arguments]";
|
|
951
|
+
}
|
|
952
|
+
//#endregion
|
|
953
|
+
//#region ../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
|
|
954
|
+
function z(e) {
|
|
955
|
+
return typeof e == "object" && !!e;
|
|
956
|
+
}
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region ../node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
|
|
959
|
+
function rt(e) {
|
|
960
|
+
return z(e) && Ze(e);
|
|
961
|
+
}
|
|
962
|
+
//#endregion
|
|
963
|
+
//#region ../node_modules/es-toolkit/dist/compat/function/memoize.mjs
|
|
964
|
+
function B(e, t) {
|
|
965
|
+
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError("Expected a function");
|
|
966
|
+
let n = function(...r) {
|
|
967
|
+
let i = t ? t.apply(this, r) : r[0], a = n.cache;
|
|
968
|
+
if (a.has(i)) return a.get(i);
|
|
969
|
+
let o = e.apply(this, r);
|
|
970
|
+
return n.cache = a.set(i, o) || a, o;
|
|
971
|
+
};
|
|
972
|
+
return n.cache = new (B.Cache || Map)(), n;
|
|
973
|
+
}
|
|
974
|
+
B.Cache = Map;
|
|
975
|
+
//#endregion
|
|
976
|
+
//#region ../node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
|
|
977
|
+
function V(e) {
|
|
978
|
+
return F(e);
|
|
979
|
+
}
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region ../node_modules/es-toolkit/dist/object/clone.mjs
|
|
982
|
+
function it(e) {
|
|
983
|
+
if (P(e)) return e;
|
|
984
|
+
if (Array.isArray(e) || F(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
985
|
+
let t = Object.getPrototypeOf(e);
|
|
986
|
+
if (t == null) return Object.assign(Object.create(t), e);
|
|
987
|
+
let n = t.constructor;
|
|
988
|
+
if (e instanceof Date || e instanceof Map || e instanceof Set) return new n(e);
|
|
989
|
+
if (e instanceof RegExp) {
|
|
990
|
+
let t = new n(e);
|
|
991
|
+
return t.lastIndex = e.lastIndex, t;
|
|
992
|
+
}
|
|
993
|
+
if (e instanceof DataView) return new n(e.buffer.slice(0));
|
|
994
|
+
if (e instanceof Error) {
|
|
995
|
+
let t;
|
|
996
|
+
return t = e instanceof AggregateError ? new n(e.errors, e.message, { cause: e.cause }) : new n(e.message, { cause: e.cause }), t.stack = e.stack, Object.assign(t, e), t;
|
|
997
|
+
}
|
|
998
|
+
return typeof File < "u" && e instanceof File ? new n([e], e.name, {
|
|
999
|
+
type: e.type,
|
|
1000
|
+
lastModified: e.lastModified
|
|
1001
|
+
}) : typeof e == "object" ? Object.assign(Object.create(t), e) : e;
|
|
1002
|
+
}
|
|
1003
|
+
//#endregion
|
|
1004
|
+
//#region ../node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
|
|
1005
|
+
function at(e, ...t) {
|
|
1006
|
+
let n = t.slice(0, -1), r = t[t.length - 1], i = e;
|
|
1007
|
+
for (let e = 0; e < n.length; e++) {
|
|
1008
|
+
let t = n[e];
|
|
1009
|
+
i = H(i, t, r, /* @__PURE__ */ new Map());
|
|
1010
|
+
}
|
|
1011
|
+
return i;
|
|
1012
|
+
}
|
|
1013
|
+
function H(e, t, n, r) {
|
|
1014
|
+
if (P(e) && (e = Object(e)), typeof t != "object" || !t) return e;
|
|
1015
|
+
if (r.has(t)) return it(r.get(t));
|
|
1016
|
+
if (r.set(t, e), Array.isArray(t)) {
|
|
1017
|
+
t = t.slice();
|
|
1018
|
+
for (let e = 0; e < t.length; e++) t[e] = t[e] ?? void 0;
|
|
1019
|
+
}
|
|
1020
|
+
let i = [...Object.keys(t), ...je(t)];
|
|
1021
|
+
for (let a = 0; a < i.length; a++) {
|
|
1022
|
+
let o = i[a];
|
|
1023
|
+
if (Qe(o)) continue;
|
|
1024
|
+
let s = t[o], c = e[o];
|
|
1025
|
+
if (R(s) && (s = { ...s }), R(c) && (c = { ...c }), N(s) && (s = nt(s)), Array.isArray(s)) if (Array.isArray(c)) {
|
|
1026
|
+
let e = [], t = Reflect.ownKeys(c);
|
|
1027
|
+
for (let n = 0; n < t.length; n++) {
|
|
1028
|
+
let r = t[n];
|
|
1029
|
+
e[r] = c[r];
|
|
1030
|
+
}
|
|
1031
|
+
c = e;
|
|
1032
|
+
} else if (rt(c)) {
|
|
1033
|
+
let e = [];
|
|
1034
|
+
for (let t = 0; t < c.length; t++) e[t] = c[t];
|
|
1035
|
+
c = e;
|
|
1036
|
+
} else c = [];
|
|
1037
|
+
let l = n(c, s, o, e, t, r);
|
|
1038
|
+
l === void 0 ? Array.isArray(s) || z(c) && z(s) && (E(c) || E(s) || V(c) || V(s)) ? e[o] = H(c, s, n, r) : c == null && E(s) ? e[o] = H({}, s, n, r) : c == null && V(s) ? e[o] = nt(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
|
|
1039
|
+
}
|
|
1040
|
+
return e;
|
|
1041
|
+
}
|
|
1042
|
+
//#endregion
|
|
1043
|
+
//#region ../node_modules/es-toolkit/dist/compat/object/merge.mjs
|
|
1044
|
+
function ot(e, ...t) {
|
|
1045
|
+
return at(e, ...t, Ae);
|
|
1046
|
+
}
|
|
1047
|
+
//#endregion
|
|
1048
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICXQ74PX.mjs
|
|
1049
|
+
var st = c(), ct = {
|
|
1050
|
+
curveBasis: te,
|
|
1051
|
+
curveBasisClosed: re,
|
|
1052
|
+
curveBasisOpen: ae,
|
|
1053
|
+
curveBumpX: f,
|
|
1054
|
+
curveBumpY: ee,
|
|
1055
|
+
curveBundle: se,
|
|
1056
|
+
curveCardinalClosed: le,
|
|
1057
|
+
curveCardinalOpen: ue,
|
|
1058
|
+
curveCardinal: ce,
|
|
1059
|
+
curveCatmullRomClosed: me,
|
|
1060
|
+
curveCatmullRomOpen: ge,
|
|
1061
|
+
curveCatmullRom: fe,
|
|
1062
|
+
curveLinear: u,
|
|
1063
|
+
curveLinearClosed: ve,
|
|
1064
|
+
curveMonotoneX: we,
|
|
1065
|
+
curveMonotoneY: Te,
|
|
1066
|
+
curveNatural: Oe,
|
|
1067
|
+
curveStep: w,
|
|
1068
|
+
curveStepAfter: ke,
|
|
1069
|
+
curveStepBefore: T
|
|
1070
|
+
}, lt = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ut = /* @__PURE__ */ e(function(e, t) {
|
|
1071
|
+
let n = dt(e, /(?:init\b)|(?:initialize\b)/), i = {};
|
|
1072
|
+
if (Array.isArray(n)) {
|
|
1073
|
+
let e = n.map((e) => e.args);
|
|
1074
|
+
r(e), i = o(i, [...e]);
|
|
1075
|
+
} else i = n.args;
|
|
1076
|
+
if (!i) return;
|
|
1077
|
+
let s = a(e, t), c = "config";
|
|
1078
|
+
return i[c] !== void 0 && (s === "flowchart-v2" && (s = "flowchart"), i[s] = i[c], delete i[c]), i;
|
|
1079
|
+
}, "detectInit"), dt = /* @__PURE__ */ e(function(e, n = null) {
|
|
1080
|
+
try {
|
|
1081
|
+
let r = RegExp(`[%]{2}(?![{]${lt.source})(?=[}][%]{2}).*
|
|
1082
|
+
`, "ig");
|
|
1083
|
+
e = e.trim().replace(r, "").replace(/'/gm, "\""), t.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${e}`);
|
|
1084
|
+
let a, o = [];
|
|
1085
|
+
for (; (a = i.exec(e)) !== null;) if (a.index === i.lastIndex && i.lastIndex++, a && !n || n && a[1]?.match(n) || n && a[2]?.match(n)) {
|
|
1086
|
+
let e = a[1] ? a[1] : a[2], t = a[3] ? a[3].trim() : a[4] ? JSON.parse(a[4].trim()) : null;
|
|
1087
|
+
o.push({
|
|
1088
|
+
type: e,
|
|
1089
|
+
args: t
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
return o.length === 0 ? {
|
|
1093
|
+
type: e,
|
|
1094
|
+
args: null
|
|
1095
|
+
} : o.length === 1 ? o[0] : o;
|
|
1096
|
+
} catch (r) {
|
|
1097
|
+
return t.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${e}'`), {
|
|
1098
|
+
type: void 0,
|
|
1099
|
+
args: null
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
}, "detectDirective"), ft = /* @__PURE__ */ e(function(e) {
|
|
1103
|
+
return e.replace(i, "");
|
|
1104
|
+
}, "removeDirectives"), pt = /* @__PURE__ */ e(function(e, t) {
|
|
1105
|
+
for (let [n, r] of t.entries()) if (r.match(e)) return n;
|
|
1106
|
+
return -1;
|
|
1107
|
+
}, "isSubstringInArray");
|
|
1108
|
+
function U(e, t) {
|
|
1109
|
+
return e ? ct[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
|
|
1110
|
+
}
|
|
1111
|
+
e(U, "interpolateToCurve");
|
|
1112
|
+
function mt(e, t) {
|
|
1113
|
+
let n = e.trim();
|
|
1114
|
+
if (n) return t.securityLevel === "loose" ? n : (0, st.sanitizeUrl)(n);
|
|
1115
|
+
}
|
|
1116
|
+
e(mt, "formatUrl");
|
|
1117
|
+
var ht = /* @__PURE__ */ e((e, ...n) => {
|
|
1118
|
+
let r = e.split("."), i = r.length - 1, a = r[i], o = window;
|
|
1119
|
+
for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
|
|
1120
|
+
t.error(`Function name: ${e} not found in window`);
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
o[a](...n);
|
|
1124
|
+
}, "runFunc");
|
|
1125
|
+
function W(e, t) {
|
|
1126
|
+
return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
|
|
1127
|
+
}
|
|
1128
|
+
e(W, "distance");
|
|
1129
|
+
function gt(e) {
|
|
1130
|
+
let t, n = 0;
|
|
1131
|
+
return e.forEach((e) => {
|
|
1132
|
+
n += W(e, t), t = e;
|
|
1133
|
+
}), G(e, n / 2);
|
|
1134
|
+
}
|
|
1135
|
+
e(gt, "traverseEdge");
|
|
1136
|
+
function _t(e) {
|
|
1137
|
+
return e.length === 1 ? e[0] : gt(e);
|
|
1138
|
+
}
|
|
1139
|
+
e(_t, "calcLabelPosition");
|
|
1140
|
+
var vt = /* @__PURE__ */ e((e, t = 2) => {
|
|
1141
|
+
let n = 10 ** t;
|
|
1142
|
+
return Math.round(e * n) / n;
|
|
1143
|
+
}, "roundNumber"), G = /* @__PURE__ */ e((e, t) => {
|
|
1144
|
+
let n, r = t;
|
|
1145
|
+
for (let t of e) {
|
|
1146
|
+
if (n) {
|
|
1147
|
+
let e = W(t, n);
|
|
1148
|
+
if (e === 0) return n;
|
|
1149
|
+
if (e < r) r -= e;
|
|
1150
|
+
else {
|
|
1151
|
+
let i = r / e;
|
|
1152
|
+
if (i <= 0) return n;
|
|
1153
|
+
if (i >= 1) return {
|
|
1154
|
+
x: t.x,
|
|
1155
|
+
y: t.y
|
|
1156
|
+
};
|
|
1157
|
+
if (i > 0 && i < 1) return {
|
|
1158
|
+
x: vt((1 - i) * n.x + i * t.x, 5),
|
|
1159
|
+
y: vt((1 - i) * n.y + i * t.y, 5)
|
|
1160
|
+
};
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
n = t;
|
|
1164
|
+
}
|
|
1165
|
+
throw Error("Could not find a suitable point for the given distance");
|
|
1166
|
+
}, "calculatePoint"), yt = /* @__PURE__ */ e((e, n, r) => {
|
|
1167
|
+
t.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
|
|
1168
|
+
let i = G(n, 25), a = e ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
|
|
1169
|
+
x: 0,
|
|
1170
|
+
y: 0
|
|
1171
|
+
};
|
|
1172
|
+
return s.x = Math.sin(o) * a + (n[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (n[0].y + i.y) / 2, s;
|
|
1173
|
+
}, "calcCardinalityPosition");
|
|
1174
|
+
function bt(e, n, r) {
|
|
1175
|
+
let i = structuredClone(r);
|
|
1176
|
+
t.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
|
|
1177
|
+
let a = G(i, 25 + e), o = 10 + e * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
|
|
1178
|
+
x: 0,
|
|
1179
|
+
y: 0
|
|
1180
|
+
};
|
|
1181
|
+
return n === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (i[0].y + a.y) / 2) : n === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2 - 5) : n === "end_left" ? (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2 - 5) : (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2), c;
|
|
1182
|
+
}
|
|
1183
|
+
e(bt, "calcTerminalLabelPosition");
|
|
1184
|
+
function K(e) {
|
|
1185
|
+
let t = "", n = "";
|
|
1186
|
+
for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
|
|
1187
|
+
return {
|
|
1188
|
+
style: t,
|
|
1189
|
+
labelStyle: n
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
e(K, "getStylesFromArray");
|
|
1193
|
+
var xt = 0, St = /* @__PURE__ */ e(() => (xt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + xt), "generateId");
|
|
1194
|
+
function Ct(e) {
|
|
1195
|
+
let t = "";
|
|
1196
|
+
for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
|
|
1197
|
+
return t;
|
|
1198
|
+
}
|
|
1199
|
+
e(Ct, "makeRandomHex");
|
|
1200
|
+
var wt = /* @__PURE__ */ e((e) => Ct(e.length), "random"), Tt = /* @__PURE__ */ e(function() {
|
|
1201
|
+
return {
|
|
1202
|
+
x: 0,
|
|
1203
|
+
y: 0,
|
|
1204
|
+
fill: void 0,
|
|
1205
|
+
anchor: "start",
|
|
1206
|
+
style: "#666",
|
|
1207
|
+
width: 100,
|
|
1208
|
+
height: 100,
|
|
1209
|
+
textMargin: 0,
|
|
1210
|
+
rx: 0,
|
|
1211
|
+
ry: 0,
|
|
1212
|
+
valign: void 0,
|
|
1213
|
+
text: ""
|
|
1214
|
+
};
|
|
1215
|
+
}, "getTextObj"), Et = /* @__PURE__ */ e(function(e, t) {
|
|
1216
|
+
let n = t.text.replace(s.lineBreakRegex, " "), [, r] = Z(t.fontSize), i = e.append("text");
|
|
1217
|
+
i.attr("x", t.x), i.attr("y", t.y), i.style("text-anchor", t.anchor), i.style("font-family", t.fontFamily), i.style("font-size", r), i.style("font-weight", t.fontWeight), i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class);
|
|
1218
|
+
let a = i.append("tspan");
|
|
1219
|
+
return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
|
|
1220
|
+
}, "drawSimpleText"), Dt = B((e, t, n) => {
|
|
1221
|
+
if (!e || (n = Object.assign({
|
|
1222
|
+
fontSize: 12,
|
|
1223
|
+
fontWeight: 400,
|
|
1224
|
+
fontFamily: "Arial",
|
|
1225
|
+
joinWith: "<br/>"
|
|
1226
|
+
}, n), s.lineBreakRegex.test(e))) return e;
|
|
1227
|
+
let r = e.split(" ").filter(Boolean), i = [], a = "";
|
|
1228
|
+
return r.forEach((e, o) => {
|
|
1229
|
+
let s = J(`${e} `, n), c = J(a, n);
|
|
1230
|
+
if (s > t) {
|
|
1231
|
+
let { hyphenatedStrings: r, remainingWord: o } = Ot(e, t, "-", n);
|
|
1232
|
+
i.push(a, ...r), a = o;
|
|
1233
|
+
} else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
|
|
1234
|
+
o + 1 === r.length && i.push(a);
|
|
1235
|
+
}), i.filter((e) => e !== "").join(n.joinWith);
|
|
1236
|
+
}, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), Ot = B((e, t, n = "-", r) => {
|
|
1237
|
+
r = Object.assign({
|
|
1238
|
+
fontSize: 12,
|
|
1239
|
+
fontWeight: 400,
|
|
1240
|
+
fontFamily: "Arial",
|
|
1241
|
+
margin: 0
|
|
1242
|
+
}, r);
|
|
1243
|
+
let i = [...e], a = [], o = "";
|
|
1244
|
+
return i.forEach((e, s) => {
|
|
1245
|
+
let c = `${o}${e}`;
|
|
1246
|
+
if (J(c, r) >= t) {
|
|
1247
|
+
let e = s + 1, t = i.length === e, r = `${c}${n}`;
|
|
1248
|
+
a.push(t ? c : r), o = "";
|
|
1249
|
+
} else o = c;
|
|
1250
|
+
}), {
|
|
1251
|
+
hyphenatedStrings: a,
|
|
1252
|
+
remainingWord: o
|
|
1253
|
+
};
|
|
1254
|
+
}, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
|
|
1255
|
+
function q(e, t) {
|
|
1256
|
+
return Y(e, t).height;
|
|
1257
|
+
}
|
|
1258
|
+
e(q, "calculateTextHeight");
|
|
1259
|
+
function J(e, t) {
|
|
1260
|
+
return Y(e, t).width;
|
|
1261
|
+
}
|
|
1262
|
+
e(J, "calculateTextWidth");
|
|
1263
|
+
var Y = B((e, t) => {
|
|
1264
|
+
let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = t;
|
|
1265
|
+
if (!e) return {
|
|
1266
|
+
width: 0,
|
|
1267
|
+
height: 0
|
|
1268
|
+
};
|
|
1269
|
+
let [, o] = Z(r), c = ["sans-serif", i], l = e.split(s.lineBreakRegex), u = [], d = n("body");
|
|
1270
|
+
if (!d.remove) return {
|
|
1271
|
+
width: 0,
|
|
1272
|
+
height: 0,
|
|
1273
|
+
lineHeight: 0
|
|
1274
|
+
};
|
|
1275
|
+
let f = d.append("svg");
|
|
1276
|
+
for (let e of c) {
|
|
1277
|
+
let t = 0, n = {
|
|
1278
|
+
width: 0,
|
|
1279
|
+
height: 0,
|
|
1280
|
+
lineHeight: 0
|
|
1281
|
+
};
|
|
1282
|
+
for (let r of l) {
|
|
1283
|
+
let i = Tt();
|
|
1284
|
+
i.text = r || "";
|
|
1285
|
+
let s = Et(f, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
|
|
1286
|
+
if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
|
|
1287
|
+
n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
|
|
1288
|
+
}
|
|
1289
|
+
u.push(n);
|
|
1290
|
+
}
|
|
1291
|
+
return f.remove(), u[isNaN(u[1].height) || isNaN(u[1].width) || isNaN(u[1].lineHeight) || u[0].height > u[1].height && u[0].width > u[1].width && u[0].lineHeight > u[1].lineHeight ? 0 : 1];
|
|
1292
|
+
}, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), kt = class {
|
|
1293
|
+
constructor(e = !1, t) {
|
|
1294
|
+
this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
|
|
1295
|
+
}
|
|
1296
|
+
static {
|
|
1297
|
+
e(this, "InitIDGenerator");
|
|
1298
|
+
}
|
|
1299
|
+
}, X, At = /* @__PURE__ */ e(function(e) {
|
|
1300
|
+
return X ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), X.innerHTML = e, unescape(X.textContent);
|
|
1301
|
+
}, "entityDecode");
|
|
1302
|
+
function jt(e) {
|
|
1303
|
+
return "str" in e;
|
|
1304
|
+
}
|
|
1305
|
+
e(jt, "isDetailedError");
|
|
1306
|
+
var Mt = /* @__PURE__ */ e((e, t, n, r) => {
|
|
1307
|
+
if (!r) return;
|
|
1308
|
+
let i = e.node()?.getBBox();
|
|
1309
|
+
i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
|
|
1310
|
+
}, "insertTitle"), Z = /* @__PURE__ */ e((e) => {
|
|
1311
|
+
if (typeof e == "number") return [e, e + "px"];
|
|
1312
|
+
let t = parseInt(e ?? "", 10);
|
|
1313
|
+
return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
|
|
1314
|
+
}, "parseFontSize");
|
|
1315
|
+
function Q(e, t) {
|
|
1316
|
+
return ot({}, e, t);
|
|
1317
|
+
}
|
|
1318
|
+
e(Q, "cleanAndMerge");
|
|
1319
|
+
var Nt = {
|
|
1320
|
+
assignWithDepth: o,
|
|
1321
|
+
wrapLabel: Dt,
|
|
1322
|
+
calculateTextHeight: q,
|
|
1323
|
+
calculateTextWidth: J,
|
|
1324
|
+
calculateTextDimensions: Y,
|
|
1325
|
+
cleanAndMerge: Q,
|
|
1326
|
+
detectInit: ut,
|
|
1327
|
+
detectDirective: dt,
|
|
1328
|
+
isSubstringInArray: pt,
|
|
1329
|
+
interpolateToCurve: U,
|
|
1330
|
+
calcLabelPosition: _t,
|
|
1331
|
+
calcCardinalityPosition: yt,
|
|
1332
|
+
calcTerminalLabelPosition: bt,
|
|
1333
|
+
formatUrl: mt,
|
|
1334
|
+
getStylesFromArray: K,
|
|
1335
|
+
generateId: St,
|
|
1336
|
+
random: wt,
|
|
1337
|
+
runFunc: ht,
|
|
1338
|
+
entityDecode: At,
|
|
1339
|
+
insertTitle: Mt,
|
|
1340
|
+
isLabelCoordinateInPath: $,
|
|
1341
|
+
parseFontSize: Z,
|
|
1342
|
+
InitIDGenerator: kt
|
|
1343
|
+
}, Pt = /* @__PURE__ */ e(function(e) {
|
|
1344
|
+
let t = e;
|
|
1345
|
+
return t = t.replace(/style.*:\S*#.*;/g, function(e) {
|
|
1346
|
+
return e.substring(0, e.length - 1);
|
|
1347
|
+
}), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
|
|
1348
|
+
return e.substring(0, e.length - 1);
|
|
1349
|
+
}), t = t.replace(/#\w+;/g, function(e) {
|
|
1350
|
+
let t = e.substring(1, e.length - 1);
|
|
1351
|
+
return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
|
|
1352
|
+
}), t;
|
|
1353
|
+
}, "encodeEntities"), Ft = /* @__PURE__ */ e(function(e) {
|
|
1354
|
+
return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
|
|
1355
|
+
}, "decodeEntities"), It = /* @__PURE__ */ e((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
|
|
1356
|
+
function Lt(e) {
|
|
1357
|
+
return e ?? null;
|
|
1358
|
+
}
|
|
1359
|
+
e(Lt, "handleUndefinedAttr");
|
|
1360
|
+
function $(e, t) {
|
|
1361
|
+
let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
|
|
1362
|
+
return i.includes(n.toString()) || i.includes(r.toString());
|
|
1363
|
+
}
|
|
1364
|
+
e($, "isLabelCoordinateInPath");
|
|
1365
|
+
//#endregion
|
|
1366
|
+
export { ce as $, Je as A, Ne as B, j as C, M as D, A as E, k as F, D as G, Ue as H, ze as I, w as J, ke as K, Me as L, Ke as M, We as N, Pe as O, Fe as P, fe as Q, Ie as R, N as S, Le as T, Be as U, He as V, Ve as W, we as X, Oe as Y, Te as Z, Dt as _, Ft as a, P as b, It as c, U as d, te as et, jt as f, Nt as g, ft as h, Q as i, Ge as j, qe as k, K as l, wt as m, q as n, ee as nt, Pt as o, Z as p, T as q, J as r, u as rt, St as s, Y as t, f as tt, Lt as u, V as v, Re as w, Ze as x, R as y, O as z };
|