@weng-lab/visualization 1.0.6 → 1.0.7
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/src/components/BarPlot/barplot.d.ts.map +1 -1
- package/dist/src/components/BarPlot/legend.d.ts.map +1 -1
- package/dist/src/components/BarPlot/types.d.ts +1 -0
- package/dist/src/components/BarPlot/types.d.ts.map +1 -1
- package/dist/visualization.es.js +625 -610
- package/dist/visualization.es.js.map +1 -1
- package/package.json +1 -1
package/dist/visualization.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as pe from "react";
|
|
2
2
|
import ke, { useRef as wr, useState as ot, useCallback as Ve, createContext as fU, useMemo as Tt, useLayoutEffect as dU, useEffect as pn, isValidElement as Dl, cloneElement as Ol, Children as hU } from "react";
|
|
3
3
|
import { Stack as Pv, Tooltip as na, IconButton as aa, Box as $m, Typography as za, CircularProgress as vU } from "@mui/material";
|
|
4
4
|
import { PanTool as pU, Edit as gU, ZoomIn as mU, ZoomOut as yU, SettingsBackupRestore as BU, Download as HE, HighlightAlt as wU } from "@mui/icons-material";
|
|
@@ -1152,7 +1152,7 @@ function hn(t) {
|
|
|
1152
1152
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
1153
1153
|
}
|
|
1154
1154
|
function GE(t) {
|
|
1155
|
-
if (/* @__PURE__ */
|
|
1155
|
+
if (/* @__PURE__ */ pe.isValidElement(t) || Au.isValidElementType(t) || !hn(t))
|
|
1156
1156
|
return t;
|
|
1157
1157
|
const e = {};
|
|
1158
1158
|
return Object.keys(t).forEach((r) => {
|
|
@@ -1166,7 +1166,7 @@ function cr(t, e, r = {
|
|
|
1166
1166
|
...t
|
|
1167
1167
|
} : t;
|
|
1168
1168
|
return hn(t) && hn(e) && Object.keys(e).forEach((a) => {
|
|
1169
|
-
/* @__PURE__ */
|
|
1169
|
+
/* @__PURE__ */ pe.isValidElement(e[a]) || Au.isValidElementType(e[a]) ? n[a] = e[a] : hn(e[a]) && // Avoid prototype pollution
|
|
1170
1170
|
Object.prototype.hasOwnProperty.call(t, a) && hn(t[a]) ? n[a] = cr(t[a], e[a], r) : r.clone ? n[a] = hn(e[a]) ? GE(e[a]) : e[a] : n[a] = e[a];
|
|
1171
1171
|
}), n;
|
|
1172
1172
|
}
|
|
@@ -2308,7 +2308,7 @@ function $S(t) {
|
|
|
2308
2308
|
return Object.keys(t).length === 0;
|
|
2309
2309
|
}
|
|
2310
2310
|
function YS(t = null) {
|
|
2311
|
-
const e =
|
|
2311
|
+
const e = pe.useContext(CU);
|
|
2312
2312
|
return !e || $S(e) ? t : e;
|
|
2313
2313
|
}
|
|
2314
2314
|
const XS = uc();
|
|
@@ -2592,7 +2592,7 @@ function oI({
|
|
|
2592
2592
|
props: t
|
|
2593
2593
|
});
|
|
2594
2594
|
}
|
|
2595
|
-
const Mo = typeof window < "u" ?
|
|
2595
|
+
const Mo = typeof window < "u" ? pe.useLayoutEffect : pe.useEffect;
|
|
2596
2596
|
function sI(t, e = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
2597
2597
|
return Math.max(e, Math.min(t, r));
|
|
2598
2598
|
}
|
|
@@ -2731,9 +2731,9 @@ function dI(t) {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
};
|
|
2733
2733
|
}
|
|
2734
|
-
const hI = /* @__PURE__ */
|
|
2734
|
+
const hI = /* @__PURE__ */ pe.createContext();
|
|
2735
2735
|
process.env.NODE_ENV !== "production" && (S.node, S.bool);
|
|
2736
|
-
const n1 = () =>
|
|
2736
|
+
const n1 = () => pe.useContext(hI) ?? !1, vI = /* @__PURE__ */ pe.createContext(void 0);
|
|
2737
2737
|
process.env.NODE_ENV !== "production" && (S.node, S.object);
|
|
2738
2738
|
function pI(t) {
|
|
2739
2739
|
const {
|
|
@@ -2750,7 +2750,7 @@ function gI({
|
|
|
2750
2750
|
props: t,
|
|
2751
2751
|
name: e
|
|
2752
2752
|
}) {
|
|
2753
|
-
const r =
|
|
2753
|
+
const r = pe.useContext(vI);
|
|
2754
2754
|
return pI({
|
|
2755
2755
|
props: t,
|
|
2756
2756
|
name: e,
|
|
@@ -2761,13 +2761,13 @@ function gI({
|
|
|
2761
2761
|
}
|
|
2762
2762
|
let my = 0;
|
|
2763
2763
|
function mI(t) {
|
|
2764
|
-
const [e, r] =
|
|
2765
|
-
return
|
|
2764
|
+
const [e, r] = pe.useState(t), n = t || e;
|
|
2765
|
+
return pe.useEffect(() => {
|
|
2766
2766
|
e == null && (my += 1, r(`mui-${my}`));
|
|
2767
2767
|
}, [e]), n;
|
|
2768
2768
|
}
|
|
2769
2769
|
const yI = {
|
|
2770
|
-
...
|
|
2770
|
+
...pe
|
|
2771
2771
|
}, yy = yI.useId;
|
|
2772
2772
|
function a1(t) {
|
|
2773
2773
|
if (yy !== void 0) {
|
|
@@ -2960,8 +2960,8 @@ function QI(t) {
|
|
|
2960
2960
|
});
|
|
2961
2961
|
}
|
|
2962
2962
|
function UI(t, e) {
|
|
2963
|
-
const r =
|
|
2964
|
-
return r.reduce((n, a, A) => (n.push(a), A < r.length - 1 && n.push(/* @__PURE__ */
|
|
2963
|
+
const r = pe.Children.toArray(t).filter(Boolean);
|
|
2964
|
+
return r.reduce((n, a, A) => (n.push(a), A < r.length - 1 && n.push(/* @__PURE__ */ pe.cloneElement(e, {
|
|
2965
2965
|
key: `separator-${A}`
|
|
2966
2966
|
})), n), []);
|
|
2967
2967
|
}
|
|
@@ -3024,7 +3024,7 @@ function DI(t = {}) {
|
|
|
3024
3024
|
componentName: n = "MuiStack"
|
|
3025
3025
|
} = t, a = () => tn({
|
|
3026
3026
|
root: ["root"]
|
|
3027
|
-
}, (s) => Sr(n, s), {}), A = e(II), i = /* @__PURE__ */
|
|
3027
|
+
}, (s) => Sr(n, s), {}), A = e(II), i = /* @__PURE__ */ pe.forwardRef(function(s, l) {
|
|
3028
3028
|
const u = r(s), c = XE(u), {
|
|
3029
3029
|
component: f = "div",
|
|
3030
3030
|
direction: d = "column",
|
|
@@ -3899,7 +3899,7 @@ function uD(t = {}, ...e) {
|
|
|
3899
3899
|
const u1 = uD(), c1 = "$$material";
|
|
3900
3900
|
function Ig() {
|
|
3901
3901
|
const t = jE(u1);
|
|
3902
|
-
return process.env.NODE_ENV !== "production" &&
|
|
3902
|
+
return process.env.NODE_ENV !== "production" && pe.useDebugValue(t), t[c1] || t;
|
|
3903
3903
|
}
|
|
3904
3904
|
function cD(t) {
|
|
3905
3905
|
return t !== "ownerState" && t !== "theme" && t !== "sx" && t !== "as";
|
|
@@ -4054,7 +4054,7 @@ const Jn = 44, Kv = ls`
|
|
|
4054
4054
|
animation: `${Vv} 1.4s ease-in-out infinite`
|
|
4055
4055
|
}
|
|
4056
4056
|
}]
|
|
4057
|
-
}))), Dg = /* @__PURE__ */
|
|
4057
|
+
}))), Dg = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
4058
4058
|
const n = nn({
|
|
4059
4059
|
props: e,
|
|
4060
4060
|
name: "MuiCircularProgress"
|
|
@@ -5649,35 +5649,35 @@ var $O = {
|
|
|
5649
5649
|
};
|
|
5650
5650
|
};
|
|
5651
5651
|
function E1(t) {
|
|
5652
|
-
var e = t.scaleXMin, r = e === void 0 ? 0 : e, n = t.scaleXMax, a = n === void 0 ? 1 / 0 : n, A = t.scaleYMin, i = A === void 0 ? 0 : A, o = t.scaleYMax, s = o === void 0 ? 1 / 0 : o, l = t.initialTransformMatrix, u = l === void 0 ? $O : l, c = t.wheelDelta, f = c === void 0 ? YO : c, d = t.pinchDelta, h = d === void 0 ? XO : d, v = t.width, p = t.height, g = t.constrain, B = t.children, m = wr(null), y = wr(u), C = ot(u), F = C[0], w = C[1], x = ot(!1), E = x[0], b = x[1], T = ot(void 0), U = T[0], Q = T[1], I = ot(void 0), O = I[0], L = I[1], R = Ve(function(ue,
|
|
5653
|
-
if (g) return g(ue,
|
|
5654
|
-
var
|
|
5655
|
-
return fe || j ?
|
|
5652
|
+
var e = t.scaleXMin, r = e === void 0 ? 0 : e, n = t.scaleXMax, a = n === void 0 ? 1 / 0 : n, A = t.scaleYMin, i = A === void 0 ? 0 : A, o = t.scaleYMax, s = o === void 0 ? 1 / 0 : o, l = t.initialTransformMatrix, u = l === void 0 ? $O : l, c = t.wheelDelta, f = c === void 0 ? YO : c, d = t.pinchDelta, h = d === void 0 ? XO : d, v = t.width, p = t.height, g = t.constrain, B = t.children, m = wr(null), y = wr(u), C = ot(u), F = C[0], w = C[1], x = ot(!1), E = x[0], b = x[1], T = ot(void 0), U = T[0], Q = T[1], I = ot(void 0), O = I[0], L = I[1], R = Ve(function(ue, Ae) {
|
|
5653
|
+
if (g) return g(ue, Ae);
|
|
5654
|
+
var se = ue.scaleX, he = ue.scaleY, fe = se > a || se < r, j = he > s || he < i;
|
|
5655
|
+
return fe || j ? Ae : ue;
|
|
5656
5656
|
}, [g, r, a, i, s]), P = Ve(function(ue) {
|
|
5657
|
-
w(function(
|
|
5658
|
-
var
|
|
5659
|
-
return y.current =
|
|
5657
|
+
w(function(Ae) {
|
|
5658
|
+
var se = R(ue, Ae);
|
|
5659
|
+
return y.current = se, se;
|
|
5660
5660
|
});
|
|
5661
5661
|
}, [R]), N = Ve(function(ue) {
|
|
5662
|
-
var
|
|
5662
|
+
var Ae = ue.x, se = ue.y;
|
|
5663
5663
|
return C1(F, {
|
|
5664
|
-
x:
|
|
5665
|
-
y:
|
|
5664
|
+
x: Ae,
|
|
5665
|
+
y: se
|
|
5666
5666
|
});
|
|
5667
5667
|
}, [F]), D = Ve(function(ue) {
|
|
5668
|
-
var
|
|
5668
|
+
var Ae = ue.x, se = ue.y;
|
|
5669
5669
|
return mf(F, {
|
|
5670
|
-
x:
|
|
5671
|
-
y:
|
|
5670
|
+
x: Ae,
|
|
5671
|
+
y: se
|
|
5672
5672
|
});
|
|
5673
5673
|
}, [F]), M = Ve(function() {
|
|
5674
5674
|
P(u);
|
|
5675
5675
|
}, [u, P]), _ = Ve(function(ue) {
|
|
5676
|
-
var
|
|
5676
|
+
var Ae = ue.scaleX, se = ue.scaleY, he = ue.point, fe = se || Ae, j = he || {
|
|
5677
5677
|
x: v / 2,
|
|
5678
5678
|
y: p / 2
|
|
5679
|
-
},
|
|
5680
|
-
if (P(
|
|
5679
|
+
}, le = mf(y.current, j), ve = Yv(y.current, yf(le.x, le.y), GO(Ae, fe), yf(-le.x, -le.y));
|
|
5680
|
+
if (P(ve), E) {
|
|
5681
5681
|
var me = y.current, be = me.translateX, Re = me.translateY;
|
|
5682
5682
|
L(he), Q({
|
|
5683
5683
|
translateX: be,
|
|
@@ -5685,18 +5685,18 @@ function E1(t) {
|
|
|
5685
5685
|
});
|
|
5686
5686
|
}
|
|
5687
5687
|
}, [p, v, E, P]), V = Ve(function(ue) {
|
|
5688
|
-
var
|
|
5688
|
+
var Ae = ue.translateX, se = ue.translateY, he = Yv(F, yf(Ae, se));
|
|
5689
5689
|
P(he);
|
|
5690
5690
|
}, [P, F]), X = Ve(function(ue) {
|
|
5691
|
-
var
|
|
5692
|
-
translateX:
|
|
5693
|
-
translateY:
|
|
5691
|
+
var Ae = ue.translateX, se = ue.translateY, he = Xv({}, F, {
|
|
5692
|
+
translateX: Ae,
|
|
5693
|
+
translateY: se
|
|
5694
5694
|
});
|
|
5695
5695
|
P(he);
|
|
5696
5696
|
}, [P, F]), k = Ve(function(ue) {
|
|
5697
|
-
var
|
|
5698
|
-
x:
|
|
5699
|
-
y:
|
|
5697
|
+
var Ae = ue.x, se = ue.y, he = mf(F, {
|
|
5698
|
+
x: Ae,
|
|
5699
|
+
y: se
|
|
5700
5700
|
});
|
|
5701
5701
|
X({
|
|
5702
5702
|
translateX: he.x,
|
|
@@ -5705,22 +5705,22 @@ function E1(t) {
|
|
|
5705
5705
|
}, [X, F]), G = Ve(function() {
|
|
5706
5706
|
return b1(F);
|
|
5707
5707
|
}, [F]), q = Ve(function() {
|
|
5708
|
-
var ue = G(),
|
|
5709
|
-
return "matrix(" + he + ", " +
|
|
5708
|
+
var ue = G(), Ae = ue.translateX, se = ue.translateY, he = ue.scaleX, fe = ue.scaleY, j = ue.skewX, le = ue.skewY;
|
|
5709
|
+
return "matrix(" + he + ", " + le + ", " + j + ", " + fe + ", " + Ae + ", " + se + ")";
|
|
5710
5710
|
}, [G]), ee = Ve(function(ue) {
|
|
5711
|
-
var
|
|
5711
|
+
var Ae = F.translateX, se = F.translateY;
|
|
5712
5712
|
L(AA(ue) || void 0), Q({
|
|
5713
|
-
translateX:
|
|
5714
|
-
translateY:
|
|
5713
|
+
translateX: Ae,
|
|
5714
|
+
translateY: se
|
|
5715
5715
|
}), b(!0);
|
|
5716
|
-
}, [F]), Z = Ve(function(ue,
|
|
5717
|
-
var
|
|
5716
|
+
}, [F]), Z = Ve(function(ue, Ae) {
|
|
5717
|
+
var se, he;
|
|
5718
5718
|
if (!(!E || !O || !U)) {
|
|
5719
|
-
var fe = AA(ue), j = fe ? -(O.x - fe.x) : -O.x,
|
|
5720
|
-
|
|
5721
|
-
var me = U.translateY +
|
|
5722
|
-
|
|
5723
|
-
translateX:
|
|
5719
|
+
var fe = AA(ue), j = fe ? -(O.x - fe.x) : -O.x, le = fe ? -(O.y - fe.y) : -O.y, ve = U.translateX + j;
|
|
5720
|
+
Ae != null && Ae.offsetX && (ve += (se = Ae?.offsetX) != null ? se : 0);
|
|
5721
|
+
var me = U.translateY + le;
|
|
5722
|
+
Ae != null && Ae.offsetY && (me += (he = Ae?.offsetY) != null ? he : 0), X({
|
|
5723
|
+
translateX: ve,
|
|
5724
5724
|
translateY: me
|
|
5725
5725
|
});
|
|
5726
5726
|
}
|
|
@@ -5728,16 +5728,16 @@ function E1(t) {
|
|
|
5728
5728
|
L(void 0), Q(void 0), b(!1);
|
|
5729
5729
|
}, []), J = Ve(function(ue) {
|
|
5730
5730
|
ue.preventDefault();
|
|
5731
|
-
var
|
|
5731
|
+
var Ae = AA(ue) || void 0, se = f(ue), he = se.scaleX, fe = se.scaleY;
|
|
5732
5732
|
_({
|
|
5733
5733
|
scaleX: he,
|
|
5734
5734
|
scaleY: fe,
|
|
5735
|
-
point:
|
|
5735
|
+
point: Ae
|
|
5736
5736
|
});
|
|
5737
5737
|
}, [_, f]), Y = Ve(function(ue) {
|
|
5738
|
-
var
|
|
5738
|
+
var Ae = ue.origin, se = Ae[0], he = Ae[1], fe = ue.memo, j = fe;
|
|
5739
5739
|
if (m.current) {
|
|
5740
|
-
var
|
|
5740
|
+
var le, ve = (le = j) != null ? le : m.current.getBoundingClientRect(), me = ve.top, be = ve.left;
|
|
5741
5741
|
j || (j = {
|
|
5742
5742
|
top: me,
|
|
5743
5743
|
left: be
|
|
@@ -5747,44 +5747,44 @@ function E1(t) {
|
|
|
5747
5747
|
scaleX: Le,
|
|
5748
5748
|
scaleY: Se,
|
|
5749
5749
|
point: {
|
|
5750
|
-
x:
|
|
5750
|
+
x: se - be,
|
|
5751
5751
|
y: he - me
|
|
5752
5752
|
}
|
|
5753
5753
|
});
|
|
5754
5754
|
}
|
|
5755
5755
|
return j;
|
|
5756
5756
|
}, [_, h]), W = Ve(function() {
|
|
5757
|
-
var ue = F.translateX,
|
|
5758
|
-
return "matrix(" +
|
|
5757
|
+
var ue = F.translateX, Ae = F.translateY, se = F.scaleX, he = F.scaleY, fe = F.skewX, j = F.skewY;
|
|
5758
|
+
return "matrix(" + se + ", " + j + ", " + fe + ", " + he + ", " + ue + ", " + Ae + ")";
|
|
5759
5759
|
}, [F]), oe = Ve(function() {
|
|
5760
5760
|
var ue = {
|
|
5761
5761
|
x: v / 2,
|
|
5762
5762
|
y: p / 2
|
|
5763
|
-
},
|
|
5763
|
+
}, Ae = D(ue);
|
|
5764
5764
|
V({
|
|
5765
|
-
translateX:
|
|
5766
|
-
translateY:
|
|
5765
|
+
translateX: Ae.x - ue.x,
|
|
5766
|
+
translateY: Ae.y - ue.y
|
|
5767
5767
|
});
|
|
5768
5768
|
}, [p, v, D, V]), ie = Ve(function() {
|
|
5769
5769
|
P(VO());
|
|
5770
5770
|
}, [P]);
|
|
5771
5771
|
KO({
|
|
5772
|
-
onDragStart: function(
|
|
5773
|
-
var
|
|
5774
|
-
|
|
5772
|
+
onDragStart: function(Ae) {
|
|
5773
|
+
var se = Ae.event;
|
|
5774
|
+
se instanceof KeyboardEvent || ee(se);
|
|
5775
5775
|
},
|
|
5776
|
-
onDrag: function(
|
|
5777
|
-
var
|
|
5778
|
-
he ? (fe(), z()) :
|
|
5776
|
+
onDrag: function(Ae) {
|
|
5777
|
+
var se = Ae.event, he = Ae.pinching, fe = Ae.cancel;
|
|
5778
|
+
he ? (fe(), z()) : se instanceof KeyboardEvent || Z(se);
|
|
5779
5779
|
},
|
|
5780
5780
|
onDragEnd: z,
|
|
5781
5781
|
onPinch: Y,
|
|
5782
|
-
onWheel: function(
|
|
5783
|
-
var
|
|
5782
|
+
onWheel: function(Ae) {
|
|
5783
|
+
var se = Ae.event, he = Ae.active, fe = Ae.pinching;
|
|
5784
5784
|
// Outside of Safari, the wheel event is fired together with the pinch event
|
|
5785
5785
|
fe || // currently onWheelEnd emits one final wheel event which causes 2x scale
|
|
5786
5786
|
// updates for the last tick. ensuring that the gesture is active avoids this
|
|
5787
|
-
!he || J(
|
|
5787
|
+
!he || J(se);
|
|
5788
5788
|
}
|
|
5789
5789
|
}, {
|
|
5790
5790
|
target: m,
|
|
@@ -10509,15 +10509,15 @@ const uP = {
|
|
|
10509
10509
|
IB(l.current, j);
|
|
10510
10510
|
});
|
|
10511
10511
|
}, [t, t.registerDownload]), pn(() => {
|
|
10512
|
-
const j = s.current,
|
|
10512
|
+
const j = s.current, le = (be) => {
|
|
10513
10513
|
be.preventDefault();
|
|
10514
|
-
},
|
|
10514
|
+
}, ve = (be) => {
|
|
10515
10515
|
be.preventDefault();
|
|
10516
10516
|
}, me = (be) => {
|
|
10517
10517
|
be.preventDefault();
|
|
10518
10518
|
};
|
|
10519
|
-
return j && (j.addEventListener("wheel",
|
|
10520
|
-
j && (j.removeEventListener("wheel",
|
|
10519
|
+
return j && (j.addEventListener("wheel", le, { passive: !1 }), j.addEventListener("touchstart", me, { passive: !1 }), j.addEventListener("touchmove", ve, { passive: !1 })), () => {
|
|
10520
|
+
j && (j.removeEventListener("wheel", le), j.removeEventListener("touchstart", me), j.removeEventListener("touchmove", ve));
|
|
10521
10521
|
};
|
|
10522
10522
|
}, [s]);
|
|
10523
10523
|
const L = (j) => {
|
|
@@ -10526,18 +10526,18 @@ const uP = {
|
|
|
10526
10526
|
m(!B);
|
|
10527
10527
|
}, P = Tt(() => {
|
|
10528
10528
|
const j = t.groupPointsAnchor;
|
|
10529
|
-
return j && U ? t.pointData.filter((
|
|
10530
|
-
}, [U, t.groupPointsAnchor, t.pointData]), N = (j,
|
|
10529
|
+
return j && U ? t.pointData.filter((le) => j in le ? le[j] === U[j] : le.metaData && U.metaData ? le.metaData[j] === U.metaData[j] : !1) : U ? [U] : [];
|
|
10530
|
+
}, [U, t.groupPointsAnchor, t.pointData]), N = (j, le, ve) => {
|
|
10531
10531
|
const me = j.range().map(
|
|
10532
10532
|
(be) => j.invert(
|
|
10533
|
-
(be -
|
|
10533
|
+
(be - le) / ve
|
|
10534
10534
|
)
|
|
10535
10535
|
);
|
|
10536
10536
|
return j.copy().domain(me);
|
|
10537
|
-
}, D = (j,
|
|
10537
|
+
}, D = (j, le, ve) => {
|
|
10538
10538
|
const me = j.range().map(
|
|
10539
10539
|
(be) => j.invert(
|
|
10540
|
-
(be -
|
|
10540
|
+
(be - le) / ve
|
|
10541
10541
|
)
|
|
10542
10542
|
);
|
|
10543
10543
|
return j.copy().domain(me);
|
|
@@ -10559,40 +10559,40 @@ const uP = {
|
|
|
10559
10559
|
}), [t.pointData, T]), V = Ve(
|
|
10560
10560
|
(j) => {
|
|
10561
10561
|
if (p === "select" && j?.x !== void 0 && j?.y !== void 0) {
|
|
10562
|
-
const
|
|
10563
|
-
v((me) => [...me, [{ x:
|
|
10562
|
+
const le = j.x - E.left, ve = j.y - E.top;
|
|
10563
|
+
v((me) => [...me, [{ x: le, y: ve }]]);
|
|
10564
10564
|
}
|
|
10565
10565
|
},
|
|
10566
10566
|
[p, E.left, E.top]
|
|
10567
10567
|
), X = Ve(
|
|
10568
10568
|
(j) => {
|
|
10569
10569
|
if (p === "select" && j?.x !== void 0 && j?.y !== void 0) {
|
|
10570
|
-
const
|
|
10570
|
+
const le = j.x - E.left, ve = j.y - E.top;
|
|
10571
10571
|
v((me) => {
|
|
10572
|
-
const be = [...me], Re = { x:
|
|
10572
|
+
const be = [...me], Re = { x: le + j.dx, y: ve + j.dy }, Le = be.length - 1;
|
|
10573
10573
|
return be[Le] = [...be[Le] || [], Re], be;
|
|
10574
10574
|
});
|
|
10575
10575
|
}
|
|
10576
10576
|
},
|
|
10577
10577
|
[p, E.left, E.top]
|
|
10578
|
-
), k = (j,
|
|
10579
|
-
let
|
|
10580
|
-
for (let me = 0, be =
|
|
10581
|
-
const Re =
|
|
10578
|
+
), k = (j, le) => {
|
|
10579
|
+
let ve = !1;
|
|
10580
|
+
for (let me = 0, be = le.length - 1; me < le.length; be = me++) {
|
|
10581
|
+
const Re = le[me].x, Le = le[me].y, Se = le[be].x, De = le[be].y;
|
|
10582
10582
|
Le > j.y != De > j.y && //does the ray intersect the line segment from the current to the previous vertex?
|
|
10583
|
-
j.x < (Se - Re) * (j.y - Le) / (De - Le) + Re && (
|
|
10583
|
+
j.x < (Se - Re) * (j.y - Le) / (De - Le) + Re && (ve = !ve);
|
|
10584
10584
|
}
|
|
10585
|
-
return
|
|
10585
|
+
return ve;
|
|
10586
10586
|
}, G = Ve(
|
|
10587
10587
|
(j) => {
|
|
10588
10588
|
if (p === "select") {
|
|
10589
10589
|
if (h.length === 0) return;
|
|
10590
|
-
const
|
|
10590
|
+
const le = h[h.length - 1], ve = N(M, j.transformMatrix.translateX, j.transformMatrix.scaleX), me = D(_, j.transformMatrix.translateY, j.transformMatrix.scaleY), be = t.pointData.filter((Re) => {
|
|
10591
10591
|
const Le = {
|
|
10592
|
-
x:
|
|
10592
|
+
x: ve(Re.x),
|
|
10593
10593
|
y: me(Re.y)
|
|
10594
10594
|
};
|
|
10595
|
-
return k(Le,
|
|
10595
|
+
return k(Le, le);
|
|
10596
10596
|
});
|
|
10597
10597
|
t.onSelectionChange && t.onSelectionChange(be), v([]);
|
|
10598
10598
|
} else
|
|
@@ -10613,17 +10613,17 @@ const uP = {
|
|
|
10613
10613
|
onDragMove: X,
|
|
10614
10614
|
resetOnStart: !0
|
|
10615
10615
|
}), ie = Ve(
|
|
10616
|
-
(j,
|
|
10617
|
-
if (J ||
|
|
10616
|
+
(j, le) => {
|
|
10617
|
+
if (J || le.isDragging) {
|
|
10618
10618
|
d(!1), c(null);
|
|
10619
10619
|
return;
|
|
10620
10620
|
}
|
|
10621
10621
|
C(j.pageX), w(j.pageY);
|
|
10622
|
-
const
|
|
10623
|
-
if (!
|
|
10624
|
-
const me =
|
|
10625
|
-
const
|
|
10626
|
-
return Math.abs(me -
|
|
10622
|
+
const ve = AA(j.currentTarget, j);
|
|
10623
|
+
if (!ve) return;
|
|
10624
|
+
const me = ve.x - E.left, be = ve.y - E.top, Re = N(M, le.transformMatrix.translateX, le.transformMatrix.scaleX), Le = D(_, le.transformMatrix.translateY, le.transformMatrix.scaleY), Se = 5, De = t.pointData.find((ye) => {
|
|
10625
|
+
const ne = Re(ye.x), H = Le(ye.y);
|
|
10626
|
+
return Math.abs(me - ne) < Se && Math.abs(be - H) < Se;
|
|
10627
10627
|
});
|
|
10628
10628
|
De ? (c(De), d(!0)) : (c(null), d(!1));
|
|
10629
10629
|
},
|
|
@@ -10632,26 +10632,26 @@ const uP = {
|
|
|
10632
10632
|
d(!1), c(null);
|
|
10633
10633
|
}, []), ue = () => {
|
|
10634
10634
|
!t.onPointClicked || !U || U && t.onPointClicked(U);
|
|
10635
|
-
},
|
|
10636
|
-
if (
|
|
10637
|
-
const me =
|
|
10635
|
+
}, Ae = Ve((j, le, ve) => {
|
|
10636
|
+
if (ve) {
|
|
10637
|
+
const me = ve.getContext("2d");
|
|
10638
10638
|
if (me) {
|
|
10639
10639
|
me.setTransform(2, 0, 0, 2, 0, 0), me.clearRect(0, 0, b, T);
|
|
10640
|
-
const be = new Set(P.map((
|
|
10641
|
-
(
|
|
10640
|
+
const be = new Set(P.map((ne) => `${ne.x},${ne.y}`)), Re = t.pointData.filter(
|
|
10641
|
+
(ne) => !be.has(`${ne.x},${ne.y}`)
|
|
10642
10642
|
), Le = t.pointData.filter(
|
|
10643
|
-
(
|
|
10644
|
-
), Se = [], De = (
|
|
10645
|
-
const K = j(
|
|
10646
|
-
re && (Se.push(
|
|
10643
|
+
(ne) => be.has(`${ne.x},${ne.y}`)
|
|
10644
|
+
), Se = [], De = (ne, H) => {
|
|
10645
|
+
const K = j(ne.x), te = le(ne.y), re = j(ne.x) >= 0 && j(ne.x) <= b && le(ne.y) >= 0 && le(ne.y) <= T, ae = (ne.r || 3) + (H ? 2 : 0);
|
|
10646
|
+
re && (Se.push(ne), me.beginPath(), !ne.shape || ne.shape === "circle" ? me.arc(K, te, ae, 0, Math.PI * 2) : ne.shape === "triangle" && (me.moveTo(K, te - ae), me.lineTo(K - ae, te + ae), me.lineTo(K + ae, te + ae), me.closePath()), me.fillStyle = ne.color ? ne.color : "black", me.globalAlpha = ne.opacity !== void 0 ? ne.opacity : 1, me.fill(), H && (me.lineWidth = 1, me.strokeStyle = "black", me.stroke()));
|
|
10647
10647
|
};
|
|
10648
|
-
Re.forEach((
|
|
10648
|
+
Re.forEach((ne) => De(ne, !1)), Le.forEach((ne) => De(ne, !0)), ((ne, H) => ne.length !== H.length ? !0 : !ne.every((K, te) => {
|
|
10649
10649
|
const re = H[te];
|
|
10650
10650
|
return K.x === re.x && K.y === re.y && K.r === re.r && K.shape === re.shape && K.color === re.color && K.opacity === re.opacity;
|
|
10651
10651
|
}))(Q, Se) && (t.onDisplayedPointsChange && t.onDisplayedPointsChange(Se), I(Se));
|
|
10652
10652
|
}
|
|
10653
10653
|
}
|
|
10654
|
-
}, [b, T, P, t, Q]),
|
|
10654
|
+
}, [b, T, P, t, Q]), se = () => {
|
|
10655
10655
|
IB(l.current);
|
|
10656
10656
|
}, he = /* @__PURE__ */ $.jsx(
|
|
10657
10657
|
wa,
|
|
@@ -10678,7 +10678,7 @@ const uP = {
|
|
|
10678
10678
|
}
|
|
10679
10679
|
);
|
|
10680
10680
|
return /* @__PURE__ */ $.jsx("div", { ref: a, style: { width: "100%", height: "100%", position: "relative" }, children: /* @__PURE__ */ $.jsx(e, { width: b, height: T, scaleXMin: 1 / 2, scaleXMax: 10, scaleYMin: 1 / 2, scaleYMax: 10, initialTransformMatrix: uP, children: (j) => {
|
|
10681
|
-
const
|
|
10681
|
+
const le = N(M, j.transformMatrix.translateX, j.transformMatrix.scaleX), ve = D(_, j.transformMatrix.translateY, j.transformMatrix.scaleY), me = U && le(U.x) >= 0 && le(U.x) <= b && ve(U.y) >= 0 && ve(U.y) <= T, be = () => {
|
|
10682
10682
|
j.scale({ scaleX: 1.2, scaleY: 1.2 });
|
|
10683
10683
|
}, Re = () => {
|
|
10684
10684
|
j.scale({ scaleX: 0.8, scaleY: 0.8 });
|
|
@@ -10712,7 +10712,7 @@ const uP = {
|
|
|
10712
10712
|
position: t.controlsPosition,
|
|
10713
10713
|
highlight: t.controlsHighlight,
|
|
10714
10714
|
downloadButton: O,
|
|
10715
|
-
downloadPlot:
|
|
10715
|
+
downloadPlot: se
|
|
10716
10716
|
}
|
|
10717
10717
|
)
|
|
10718
10718
|
}
|
|
@@ -10721,7 +10721,7 @@ const uP = {
|
|
|
10721
10721
|
aa,
|
|
10722
10722
|
{
|
|
10723
10723
|
"aria-label": "download",
|
|
10724
|
-
onClick: () =>
|
|
10724
|
+
onClick: () => se(),
|
|
10725
10725
|
sx: {
|
|
10726
10726
|
position: "absolute",
|
|
10727
10727
|
zIndex: 10,
|
|
@@ -10738,7 +10738,7 @@ const uP = {
|
|
|
10738
10738
|
"canvas",
|
|
10739
10739
|
{
|
|
10740
10740
|
ref: (Se) => {
|
|
10741
|
-
Se &&
|
|
10741
|
+
Se && Ae(le, ve, Se);
|
|
10742
10742
|
},
|
|
10743
10743
|
width: b * 2,
|
|
10744
10744
|
height: T * 2,
|
|
@@ -10844,7 +10844,7 @@ const uP = {
|
|
|
10844
10844
|
wp,
|
|
10845
10845
|
{
|
|
10846
10846
|
numTicks: 4,
|
|
10847
|
-
scale:
|
|
10847
|
+
scale: ve,
|
|
10848
10848
|
tickLabelProps: () => ({
|
|
10849
10849
|
fill: "#1c1917",
|
|
10850
10850
|
fontSize: 10,
|
|
@@ -10859,7 +10859,7 @@ const uP = {
|
|
|
10859
10859
|
{
|
|
10860
10860
|
numTicks: 4,
|
|
10861
10861
|
top: T,
|
|
10862
|
-
scale:
|
|
10862
|
+
scale: le,
|
|
10863
10863
|
tickLabelProps: () => ({
|
|
10864
10864
|
fill: "#1c1917",
|
|
10865
10865
|
fontSize: 11,
|
|
@@ -12272,30 +12272,30 @@ var fk = ck(), ws = /* @__PURE__ */ gs(fk), dk = er({
|
|
|
12272
12272
|
i = l.collection(i)[0], c.unmergeBy(function(ue) {
|
|
12273
12273
|
return ue.isLoop();
|
|
12274
12274
|
});
|
|
12275
|
-
for (var g = c.length, B = function(
|
|
12276
|
-
var
|
|
12277
|
-
return
|
|
12278
|
-
}, m = function(
|
|
12279
|
-
return (Oe(
|
|
12280
|
-
}, y = function(
|
|
12281
|
-
return B(m(
|
|
12282
|
-
}, C = function(
|
|
12283
|
-
for (var
|
|
12275
|
+
for (var g = c.length, B = function(Ae) {
|
|
12276
|
+
var se = h.get(Ae.id());
|
|
12277
|
+
return se || (se = {}, h.set(Ae.id(), se)), se;
|
|
12278
|
+
}, m = function(Ae) {
|
|
12279
|
+
return (Oe(Ae) ? l.$(Ae) : Ae)[0];
|
|
12280
|
+
}, y = function(Ae) {
|
|
12281
|
+
return B(m(Ae)).dist;
|
|
12282
|
+
}, C = function(Ae) {
|
|
12283
|
+
for (var se = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : i, he = m(Ae), fe = [], j = he; ; ) {
|
|
12284
12284
|
if (j == null)
|
|
12285
12285
|
return r.spawn();
|
|
12286
|
-
var
|
|
12287
|
-
if (fe.unshift(j[0]), j.same(
|
|
12286
|
+
var le = B(j), ve = le.edge, me = le.pred;
|
|
12287
|
+
if (fe.unshift(j[0]), j.same(se) && fe.length > 0)
|
|
12288
12288
|
break;
|
|
12289
|
-
|
|
12289
|
+
ve != null && fe.unshift(ve), j = me;
|
|
12290
12290
|
}
|
|
12291
12291
|
return s.spawn(fe);
|
|
12292
12292
|
}, F = 0; F < d; F++) {
|
|
12293
12293
|
var w = f[F], x = B(w);
|
|
12294
12294
|
w.same(i) ? x.dist = 0 : x.dist = 1 / 0, x.pred = null, x.edge = null;
|
|
12295
12295
|
}
|
|
12296
|
-
for (var E = !1, b = function(
|
|
12297
|
-
var
|
|
12298
|
-
|
|
12296
|
+
for (var E = !1, b = function(Ae, se, he, fe, j, le) {
|
|
12297
|
+
var ve = fe.dist + le;
|
|
12298
|
+
ve < j.dist && !he.same(fe.edge) && (j.dist = ve, j.pred = Ae, j.edge = he, E = !0);
|
|
12299
12299
|
}, T = 1; T < d; T++) {
|
|
12300
12300
|
E = !1;
|
|
12301
12301
|
for (var U = 0; U < g; U++) {
|
|
@@ -16457,10 +16457,10 @@ var Pr = function(e) {
|
|
|
16457
16457
|
break;
|
|
16458
16458
|
}
|
|
16459
16459
|
}
|
|
16460
|
-
var Z = function(ue,
|
|
16461
|
-
return ue = ue - q,
|
|
16462
|
-
x: ue * k -
|
|
16463
|
-
y: ue * G +
|
|
16460
|
+
var Z = function(ue, Ae) {
|
|
16461
|
+
return ue = ue - q, Ae = Ae - ee, {
|
|
16462
|
+
x: ue * k - Ae * G + q,
|
|
16463
|
+
y: ue * G + Ae * k + ee
|
|
16464
16464
|
};
|
|
16465
16465
|
}, z = Z(T, Q), J = Z(T, I), Y = Z(U, Q), W = Z(U, I);
|
|
16466
16466
|
T = Math.min(z.x, J.x, Y.x, W.x), U = Math.max(z.x, J.x, Y.x, W.x), Q = Math.min(z.y, J.y, Y.y, W.y), I = Math.max(z.y, J.y, Y.y, W.y);
|
|
@@ -21839,8 +21839,8 @@ function xF(t) {
|
|
|
21839
21839
|
this.options = Me({}, H4, N4, t);
|
|
21840
21840
|
}
|
|
21841
21841
|
xF.prototype.run = function() {
|
|
21842
|
-
var t = this.options, e = t.cy, r = t.eles, n = r.nodes().filter(function(
|
|
21843
|
-
return
|
|
21842
|
+
var t = this.options, e = t.cy, r = t.eles, n = r.nodes().filter(function(Ae) {
|
|
21843
|
+
return Ae.isChildless();
|
|
21844
21844
|
}), a = r, A = t.directed, i = t.acyclic || t.maximal || t.maximalAdjustments > 0, o = !!t.boundingBox, s = e.extent(), l = fr(o ? t.boundingBox : {
|
|
21845
21845
|
x1: s.x1,
|
|
21846
21846
|
y1: s.y1,
|
|
@@ -21863,76 +21863,76 @@ xF.prototype.run = function() {
|
|
|
21863
21863
|
var v = r.components();
|
|
21864
21864
|
u = e.collection();
|
|
21865
21865
|
for (var p = function() {
|
|
21866
|
-
var
|
|
21866
|
+
var se = v[g], he = se.maxDegree(!1), fe = se.filter(function(j) {
|
|
21867
21867
|
return j.degree(!1) === he;
|
|
21868
21868
|
});
|
|
21869
21869
|
u = u.add(fe);
|
|
21870
21870
|
}, g = 0; g < v.length; g++)
|
|
21871
21871
|
p();
|
|
21872
21872
|
}
|
|
21873
|
-
var B = [], m = {}, y = function(
|
|
21873
|
+
var B = [], m = {}, y = function(se, he) {
|
|
21874
21874
|
B[he] == null && (B[he] = []);
|
|
21875
21875
|
var fe = B[he].length;
|
|
21876
|
-
B[he].push(
|
|
21876
|
+
B[he].push(se), Ib(se, {
|
|
21877
21877
|
index: fe,
|
|
21878
21878
|
depth: he
|
|
21879
21879
|
});
|
|
21880
|
-
}, C = function(
|
|
21881
|
-
var fe = MA(
|
|
21882
|
-
B[j][
|
|
21880
|
+
}, C = function(se, he) {
|
|
21881
|
+
var fe = MA(se), j = fe.depth, le = fe.index;
|
|
21882
|
+
B[j][le] = null, se.isChildless() && y(se, he);
|
|
21883
21883
|
};
|
|
21884
21884
|
a.bfs({
|
|
21885
21885
|
roots: u,
|
|
21886
21886
|
directed: t.directed,
|
|
21887
|
-
visit: function(
|
|
21888
|
-
var
|
|
21889
|
-
|
|
21887
|
+
visit: function(se, he, fe, j, le) {
|
|
21888
|
+
var ve = se[0], me = ve.id();
|
|
21889
|
+
ve.isChildless() && y(ve, le), m[me] = !0;
|
|
21890
21890
|
}
|
|
21891
21891
|
});
|
|
21892
21892
|
for (var F = [], w = 0; w < n.length; w++) {
|
|
21893
21893
|
var x = n[w];
|
|
21894
21894
|
m[x.id()] || F.push(x);
|
|
21895
21895
|
}
|
|
21896
|
-
var E = function(
|
|
21897
|
-
for (var he = B[
|
|
21896
|
+
var E = function(se) {
|
|
21897
|
+
for (var he = B[se], fe = 0; fe < he.length; fe++) {
|
|
21898
21898
|
var j = he[fe];
|
|
21899
21899
|
if (j == null) {
|
|
21900
21900
|
he.splice(fe, 1), fe--;
|
|
21901
21901
|
continue;
|
|
21902
21902
|
}
|
|
21903
21903
|
Ib(j, {
|
|
21904
|
-
depth:
|
|
21904
|
+
depth: se,
|
|
21905
21905
|
index: fe
|
|
21906
21906
|
});
|
|
21907
21907
|
}
|
|
21908
|
-
}, b = function(
|
|
21909
|
-
for (var fe = MA(
|
|
21908
|
+
}, b = function(se, he) {
|
|
21909
|
+
for (var fe = MA(se), j = se.incomers().filter(function(Se) {
|
|
21910
21910
|
return Se.isNode() && r.has(Se);
|
|
21911
|
-
}),
|
|
21911
|
+
}), le = -1, ve = se.id(), me = 0; me < j.length; me++) {
|
|
21912
21912
|
var be = j[me], Re = MA(be);
|
|
21913
|
-
|
|
21913
|
+
le = Math.max(le, Re.depth);
|
|
21914
21914
|
}
|
|
21915
|
-
if (fe.depth <=
|
|
21916
|
-
if (!t.acyclic && he[
|
|
21915
|
+
if (fe.depth <= le) {
|
|
21916
|
+
if (!t.acyclic && he[ve])
|
|
21917
21917
|
return null;
|
|
21918
|
-
var Le =
|
|
21919
|
-
return C(
|
|
21918
|
+
var Le = le + 1;
|
|
21919
|
+
return C(se, Le), he[ve] = Le, !0;
|
|
21920
21920
|
}
|
|
21921
21921
|
return !1;
|
|
21922
21922
|
};
|
|
21923
21923
|
if (A && i) {
|
|
21924
|
-
var T = [], U = {}, Q = function(
|
|
21925
|
-
return T.push(
|
|
21924
|
+
var T = [], U = {}, Q = function(se) {
|
|
21925
|
+
return T.push(se);
|
|
21926
21926
|
}, I = function() {
|
|
21927
21927
|
return T.shift();
|
|
21928
21928
|
};
|
|
21929
|
-
for (n.forEach(function(
|
|
21930
|
-
return T.push(
|
|
21929
|
+
for (n.forEach(function(Ae) {
|
|
21930
|
+
return T.push(Ae);
|
|
21931
21931
|
}); T.length > 0; ) {
|
|
21932
21932
|
var O = I(), L = b(O, U);
|
|
21933
21933
|
if (L)
|
|
21934
|
-
O.outgoers().filter(function(
|
|
21935
|
-
return
|
|
21934
|
+
O.outgoers().filter(function(Ae) {
|
|
21935
|
+
return Ae.isNode() && r.has(Ae);
|
|
21936
21936
|
}).forEach(Q);
|
|
21937
21937
|
else if (L === null) {
|
|
21938
21938
|
Ze("Detected double maximal shift for node `" + O.id() + "`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");
|
|
@@ -21946,26 +21946,26 @@ xF.prototype.run = function() {
|
|
|
21946
21946
|
var N = n[P], D = N.layoutDimensions(t), M = D.w, _ = D.h;
|
|
21947
21947
|
R = Math.max(R, M, _);
|
|
21948
21948
|
}
|
|
21949
|
-
var V = {}, X = function(
|
|
21950
|
-
if (V[
|
|
21951
|
-
return V[
|
|
21952
|
-
for (var he = MA(
|
|
21953
|
-
var me = fe[
|
|
21949
|
+
var V = {}, X = function(se) {
|
|
21950
|
+
if (V[se.id()])
|
|
21951
|
+
return V[se.id()];
|
|
21952
|
+
for (var he = MA(se).depth, fe = se.neighborhood(), j = 0, le = 0, ve = 0; ve < fe.length; ve++) {
|
|
21953
|
+
var me = fe[ve];
|
|
21954
21954
|
if (!(me.isEdge() || me.isParent() || !n.has(me))) {
|
|
21955
21955
|
var be = MA(me);
|
|
21956
21956
|
if (be != null) {
|
|
21957
21957
|
var Re = be.index, Le = be.depth;
|
|
21958
21958
|
if (!(Re == null || Le == null)) {
|
|
21959
21959
|
var Se = B[Le].length;
|
|
21960
|
-
Le < he && (j += Re / Se,
|
|
21960
|
+
Le < he && (j += Re / Se, le++);
|
|
21961
21961
|
}
|
|
21962
21962
|
}
|
|
21963
21963
|
}
|
|
21964
21964
|
}
|
|
21965
|
-
return
|
|
21966
|
-
}, k = function(
|
|
21967
|
-
var fe = X(
|
|
21968
|
-
return
|
|
21965
|
+
return le = Math.max(1, le), j = j / le, le === 0 && (j = 0), V[se.id()] = j, j;
|
|
21966
|
+
}, k = function(se, he) {
|
|
21967
|
+
var fe = X(se), j = X(he), le = fe - j;
|
|
21968
|
+
return le === 0 ? Tx(se.id(), he.id()) : le;
|
|
21969
21969
|
};
|
|
21970
21970
|
t.depthSort !== void 0 && (k = t.depthSort);
|
|
21971
21971
|
for (var G = B.length, q = 0; q < G; q++)
|
|
@@ -21973,8 +21973,8 @@ xF.prototype.run = function() {
|
|
|
21973
21973
|
for (var ee = [], Z = 0; Z < F.length; Z++)
|
|
21974
21974
|
ee.push(F[Z]);
|
|
21975
21975
|
var z = function() {
|
|
21976
|
-
for (var
|
|
21977
|
-
E(
|
|
21976
|
+
for (var se = 0; se < G; se++)
|
|
21977
|
+
E(se);
|
|
21978
21978
|
};
|
|
21979
21979
|
ee.length && (B.unshift(ee), G = B.length, z());
|
|
21980
21980
|
for (var J = 0, Y = 0; Y < G; Y++)
|
|
@@ -21982,13 +21982,13 @@ xF.prototype.run = function() {
|
|
|
21982
21982
|
var W = {
|
|
21983
21983
|
x: l.x1 + l.w / 2,
|
|
21984
21984
|
y: l.y1 + l.h / 2
|
|
21985
|
-
}, oe = n.reduce(function(
|
|
21985
|
+
}, oe = n.reduce(function(Ae, se) {
|
|
21986
21986
|
return function(he) {
|
|
21987
21987
|
return {
|
|
21988
|
-
w:
|
|
21989
|
-
h:
|
|
21988
|
+
w: Ae.w === -1 ? he.w : (Ae.w + he.w) / 2,
|
|
21989
|
+
h: Ae.h === -1 ? he.h : (Ae.h + he.h) / 2
|
|
21990
21990
|
};
|
|
21991
|
-
}(
|
|
21991
|
+
}(se.boundingBox({
|
|
21992
21992
|
includeLabels: t.nodeDimensionsIncludeLabels
|
|
21993
21993
|
}));
|
|
21994
21994
|
}, {
|
|
@@ -22001,17 +22001,17 @@ xF.prototype.run = function() {
|
|
|
22001
22001
|
o ? (l.h - t.padding * 2 - oe.h) / (G - 1) : (l.h - t.padding * 2 - oe.h) / (G + 1)
|
|
22002
22002
|
),
|
|
22003
22003
|
R
|
|
22004
|
-
), Ue = B.reduce(function(
|
|
22005
|
-
return Math.max(
|
|
22006
|
-
}, 0), ue = function(
|
|
22007
|
-
var he = MA(
|
|
22004
|
+
), Ue = B.reduce(function(Ae, se) {
|
|
22005
|
+
return Math.max(Ae, se.length);
|
|
22006
|
+
}, 0), ue = function(se) {
|
|
22007
|
+
var he = MA(se), fe = he.depth, j = he.index;
|
|
22008
22008
|
if (t.circle) {
|
|
22009
|
-
var
|
|
22010
|
-
|
|
22011
|
-
var
|
|
22012
|
-
return fe === 0 && B[0].length === 1 && (
|
|
22013
|
-
x: W.x +
|
|
22014
|
-
y: W.y +
|
|
22009
|
+
var le = Math.min(l.w / 2 / G, l.h / 2 / G);
|
|
22010
|
+
le = Math.max(le, R);
|
|
22011
|
+
var ve = le * fe + le - (G > 0 && B[0].length <= 3 ? le / 2 : 0), me = 2 * Math.PI / B[fe].length * j;
|
|
22012
|
+
return fe === 0 && B[0].length === 1 && (ve = 1), {
|
|
22013
|
+
x: W.x + ve * Math.cos(me),
|
|
22014
|
+
y: W.y + ve * Math.sin(me)
|
|
22015
22015
|
};
|
|
22016
22016
|
} else {
|
|
22017
22017
|
var be = B[fe].length, Re = Math.max(
|
|
@@ -23529,17 +23529,17 @@ or.findTaxiPoints = function(t, e) {
|
|
|
23529
23529
|
} else {
|
|
23530
23530
|
var Ue = Math.abs(P) <= c / 2, ue = Math.abs(T) <= h / 2;
|
|
23531
23531
|
if (Ue) {
|
|
23532
|
-
var
|
|
23533
|
-
r.segpts = [
|
|
23532
|
+
var Ae = (u.y1 + u.y2) / 2, se = u.x1, he = u.x2;
|
|
23533
|
+
r.segpts = [se, Ae, he, Ae];
|
|
23534
23534
|
} else if (ue) {
|
|
23535
|
-
var fe = (u.x1 + u.x2) / 2, j = u.y1,
|
|
23536
|
-
r.segpts = [fe, j, fe,
|
|
23535
|
+
var fe = (u.x1 + u.x2) / 2, j = u.y1, le = u.y2;
|
|
23536
|
+
r.segpts = [fe, j, fe, le];
|
|
23537
23537
|
} else
|
|
23538
23538
|
r.segpts = [u.x2, u.y1];
|
|
23539
23539
|
}
|
|
23540
23540
|
else if (L) {
|
|
23541
|
-
var
|
|
23542
|
-
r.segpts = [me,
|
|
23541
|
+
var ve = u.y1 + M + (p ? f / 2 * N : 0), me = u.x1, be = u.x2;
|
|
23542
|
+
r.segpts = [me, ve, be, ve];
|
|
23543
23543
|
} else {
|
|
23544
23544
|
var Re = u.x1 + M + (p ? c / 2 * N : 0), Le = u.y1, Se = u.y2;
|
|
23545
23545
|
r.segpts = [Re, Le, Re, Se];
|
|
@@ -23692,8 +23692,8 @@ or.findEdgeControlPoints = function(t) {
|
|
|
23692
23692
|
});
|
|
23693
23693
|
tm(Q.eles), O.forEach(function(ye) {
|
|
23694
23694
|
return Q.eles.push(ye);
|
|
23695
|
-
}), Q.eles.sort(function(ye,
|
|
23696
|
-
return ye.poolIndex() -
|
|
23695
|
+
}), Q.eles.sort(function(ye, ne) {
|
|
23696
|
+
return ye.poolIndex() - ne.poolIndex();
|
|
23697
23697
|
});
|
|
23698
23698
|
}
|
|
23699
23699
|
var L = Q.eles[0], R = L.source(), P = L.target();
|
|
@@ -23716,21 +23716,21 @@ or.findEdgeControlPoints = function(t) {
|
|
|
23716
23716
|
var W = Q.eles[Y], oe = W[0]._private.rscratch, ie = W.pstyle("curve-style").value, Ue = ie === "unbundled-bezier" || la(ie, "segments") || la(ie, "taxi"), ue = !R.same(W.source());
|
|
23717
23717
|
if (!Q.calculatedIntersection && R !== P && (Q.hasBezier || Q.hasUnbundled)) {
|
|
23718
23718
|
Q.calculatedIntersection = !0;
|
|
23719
|
-
var
|
|
23720
|
-
x1:
|
|
23719
|
+
var Ae = G.intersectLine(D.x, D.y, _, V, M.x, M.y, 0, ee, J), se = Q.srcIntn = Ae, he = q.intersectLine(M.x, M.y, X, k, D.x, D.y, 0, Z, z), fe = Q.tgtIntn = he, j = Q.intersectionPts = {
|
|
23720
|
+
x1: Ae[0],
|
|
23721
23721
|
x2: he[0],
|
|
23722
|
-
y1:
|
|
23722
|
+
y1: Ae[1],
|
|
23723
23723
|
y2: he[1]
|
|
23724
|
-
},
|
|
23724
|
+
}, le = Q.posPts = {
|
|
23725
23725
|
x1: D.x,
|
|
23726
23726
|
x2: M.x,
|
|
23727
23727
|
y1: D.y,
|
|
23728
23728
|
y2: M.y
|
|
23729
|
-
},
|
|
23730
|
-
we(be) && be >= c_ || (be = Math.sqrt(Math.max(me * me, es) + Math.max(
|
|
23729
|
+
}, ve = he[1] - Ae[1], me = he[0] - Ae[0], be = Math.sqrt(me * me + ve * ve);
|
|
23730
|
+
we(be) && be >= c_ || (be = Math.sqrt(Math.max(me * me, es) + Math.max(ve * ve, es)));
|
|
23731
23731
|
var Re = Q.vector = {
|
|
23732
23732
|
x: me,
|
|
23733
|
-
y:
|
|
23733
|
+
y: ve
|
|
23734
23734
|
}, Le = Q.vectorNorm = {
|
|
23735
23735
|
x: Re.x / be,
|
|
23736
23736
|
y: Re.y / be
|
|
@@ -23738,7 +23738,7 @@ or.findEdgeControlPoints = function(t) {
|
|
|
23738
23738
|
x: -Le.y,
|
|
23739
23739
|
y: Le.x
|
|
23740
23740
|
};
|
|
23741
|
-
Q.nodesOverlap = !we(be) || q.checkPoint(
|
|
23741
|
+
Q.nodesOverlap = !we(be) || q.checkPoint(Ae[0], Ae[1], 0, X, k, M.x, M.y, Z, z) || G.checkPoint(he[0], he[1], 0, _, V, D.x, D.y, ee, J), Q.vectorNormInverse = Se, I = {
|
|
23742
23742
|
nodesOverlap: Q.nodesOverlap,
|
|
23743
23743
|
dirCounts: Q.dirCounts,
|
|
23744
23744
|
calculatedIntersection: !0,
|
|
@@ -23754,14 +23754,14 @@ or.findEdgeControlPoints = function(t) {
|
|
|
23754
23754
|
tgtW: _,
|
|
23755
23755
|
tgtH: V,
|
|
23756
23756
|
srcIntn: fe,
|
|
23757
|
-
tgtIntn:
|
|
23757
|
+
tgtIntn: se,
|
|
23758
23758
|
srcShape: q,
|
|
23759
23759
|
tgtShape: G,
|
|
23760
23760
|
posPts: {
|
|
23761
|
-
x1:
|
|
23762
|
-
y1:
|
|
23763
|
-
x2:
|
|
23764
|
-
y2:
|
|
23761
|
+
x1: le.x2,
|
|
23762
|
+
y1: le.y2,
|
|
23763
|
+
x2: le.x1,
|
|
23764
|
+
y2: le.y1
|
|
23765
23765
|
},
|
|
23766
23766
|
intersectionPts: {
|
|
23767
23767
|
x1: j.x2,
|
|
@@ -23862,9 +23862,9 @@ Es.findEndpoints = function(t) {
|
|
|
23862
23862
|
Ue === "left" ? J -= W : Ue === "right" && (J += W);
|
|
23863
23863
|
var ue = Wo(D[0], D[1], [J - W, Y - oe, J + W, Y - oe, J + W, Y + oe, J - W, Y + oe], u.x, u.y);
|
|
23864
23864
|
if (ue.length > 0) {
|
|
23865
|
-
var
|
|
23866
|
-
if (he <
|
|
23867
|
-
var j = Va(
|
|
23865
|
+
var Ae = l, se = Va(Ae, ni(i)), he = Va(Ae, ni(ue)), fe = se;
|
|
23866
|
+
if (he < se && (i = ue, fe = he), ue.length > 2) {
|
|
23867
|
+
var j = Va(Ae, {
|
|
23868
23868
|
x: ue[2],
|
|
23869
23869
|
y: ue[3]
|
|
23870
23870
|
});
|
|
@@ -23872,27 +23872,27 @@ Es.findEndpoints = function(t) {
|
|
|
23872
23872
|
}
|
|
23873
23873
|
}
|
|
23874
23874
|
}
|
|
23875
|
-
var
|
|
23876
|
-
if (B.endX =
|
|
23875
|
+
var le = Ws(i, P, A.arrowShapes[c].spacing(t) + d), ve = Ws(i, P, A.arrowShapes[c].gap(t) + d);
|
|
23876
|
+
if (B.endX = ve[0], B.endY = ve[1], B.arrowEndX = le[0], B.arrowEndY = le[1], Q === "inside-to-node")
|
|
23877
23877
|
i = [l.x, l.y];
|
|
23878
23878
|
else if (U.units)
|
|
23879
23879
|
i = this.manualEndptToPx(o, U);
|
|
23880
23880
|
else if (Q === "outside-to-line")
|
|
23881
23881
|
i = B.srcIntn;
|
|
23882
23882
|
else if (Q === "outside-to-node" || Q === "outside-to-node-or-label" ? M = N : (Q === "outside-to-line" || Q === "outside-to-line-or-label") && (M = [u.x, u.y]), i = A.nodeShapes[this.getNodeShape(o)].intersectLine(l.x, l.y, o.outerWidth(), o.outerHeight(), M[0], M[1], 0, I, v), Q === "outside-to-node-or-label" || Q === "outside-to-line-or-label") {
|
|
23883
|
-
var me = o._private.rscratch, be = me.labelWidth, Re = me.labelHeight, Le = me.labelX, Se = me.labelY, De = be / 2, ye = Re / 2,
|
|
23884
|
-
|
|
23883
|
+
var me = o._private.rscratch, be = me.labelWidth, Re = me.labelHeight, Le = me.labelX, Se = me.labelY, De = be / 2, ye = Re / 2, ne = o.pstyle("text-valign").value;
|
|
23884
|
+
ne === "top" ? Se -= ye : ne === "bottom" && (Se += ye);
|
|
23885
23885
|
var H = o.pstyle("text-halign").value;
|
|
23886
23886
|
H === "left" ? Le -= De : H === "right" && (Le += De);
|
|
23887
23887
|
var K = Wo(M[0], M[1], [Le - De, Se - ye, Le + De, Se - ye, Le + De, Se + ye, Le - De, Se + ye], l.x, l.y);
|
|
23888
23888
|
if (K.length > 0) {
|
|
23889
|
-
var te = u, re = Va(te, ni(i)),
|
|
23890
|
-
if (
|
|
23889
|
+
var te = u, re = Va(te, ni(i)), ae = Va(te, ni(K)), ge = re;
|
|
23890
|
+
if (ae < re && (i = [K[0], K[1]], ge = ae), K.length > 2) {
|
|
23891
23891
|
var de = Va(te, {
|
|
23892
23892
|
x: K[2],
|
|
23893
23893
|
y: K[3]
|
|
23894
23894
|
});
|
|
23895
|
-
de <
|
|
23895
|
+
de < ge && (i = [K[2], K[3]]);
|
|
23896
23896
|
}
|
|
23897
23897
|
}
|
|
23898
23898
|
}
|
|
@@ -24417,11 +24417,11 @@ Pi.load = function() {
|
|
|
24417
24417
|
return K;
|
|
24418
24418
|
}, a = function(H, K, te, re) {
|
|
24419
24419
|
H == null && (H = t.cy);
|
|
24420
|
-
for (var
|
|
24421
|
-
var
|
|
24420
|
+
for (var ae = 0; ae < K.length; ae++) {
|
|
24421
|
+
var ge = K[ae];
|
|
24422
24422
|
H.emit({
|
|
24423
24423
|
originalEvent: te,
|
|
24424
|
-
type:
|
|
24424
|
+
type: ge,
|
|
24425
24425
|
position: re
|
|
24426
24426
|
});
|
|
24427
24427
|
}
|
|
@@ -24478,22 +24478,22 @@ Pi.load = function() {
|
|
|
24478
24478
|
if (!(K.inDragLayer == null && K.addToList == null) && H.cy().hasCompoundNodes()) {
|
|
24479
24479
|
var te = H.ancestors().orphans();
|
|
24480
24480
|
if (!te.same(H)) {
|
|
24481
|
-
var re = te.descendants().spawnSelf().merge(te).unmerge(H).unmerge(H.descendants()),
|
|
24482
|
-
K.inDragLayer && (
|
|
24483
|
-
d(
|
|
24481
|
+
var re = te.descendants().spawnSelf().merge(te).unmerge(H).unmerge(H.descendants()), ae = re.connectedEdges();
|
|
24482
|
+
K.inDragLayer && (ae.forEach(l), re.forEach(l)), K.addToList && re.forEach(function(ge) {
|
|
24483
|
+
d(ge, K);
|
|
24484
24484
|
});
|
|
24485
24485
|
}
|
|
24486
24486
|
}
|
|
24487
24487
|
}, m = function() {
|
|
24488
24488
|
document.activeElement != null && document.activeElement.blur != null && document.activeElement.blur();
|
|
24489
24489
|
}, y = typeof MutationObserver < "u", C = typeof ResizeObserver < "u";
|
|
24490
|
-
y ? (t.removeObserver = new MutationObserver(function(
|
|
24491
|
-
for (var H = 0; H <
|
|
24492
|
-
var K =
|
|
24490
|
+
y ? (t.removeObserver = new MutationObserver(function(ne) {
|
|
24491
|
+
for (var H = 0; H < ne.length; H++) {
|
|
24492
|
+
var K = ne[H], te = K.removedNodes;
|
|
24493
24493
|
if (te)
|
|
24494
24494
|
for (var re = 0; re < te.length; re++) {
|
|
24495
|
-
var
|
|
24496
|
-
if (
|
|
24495
|
+
var ae = te[re];
|
|
24496
|
+
if (ae === t.container) {
|
|
24497
24497
|
t.destroy();
|
|
24498
24498
|
break;
|
|
24499
24499
|
}
|
|
@@ -24501,7 +24501,7 @@ Pi.load = function() {
|
|
|
24501
24501
|
}
|
|
24502
24502
|
}), t.container.parentNode && t.removeObserver.observe(t.container.parentNode, {
|
|
24503
24503
|
childList: !0
|
|
24504
|
-
})) : t.registerBinding(t.container, "DOMNodeRemoved", function(
|
|
24504
|
+
})) : t.registerBinding(t.container, "DOMNodeRemoved", function(ne) {
|
|
24505
24505
|
t.destroy();
|
|
24506
24506
|
});
|
|
24507
24507
|
var F = Bs(function() {
|
|
@@ -24516,17 +24516,17 @@ Pi.load = function() {
|
|
|
24516
24516
|
}, x = function() {
|
|
24517
24517
|
t.invalidateContainerClientCoordsCache();
|
|
24518
24518
|
};
|
|
24519
|
-
w(t.container, function(
|
|
24520
|
-
t.registerBinding(
|
|
24521
|
-
}), t.registerBinding(t.container, "contextmenu", function(
|
|
24522
|
-
|
|
24519
|
+
w(t.container, function(ne) {
|
|
24520
|
+
t.registerBinding(ne, "transitionend", x), t.registerBinding(ne, "animationend", x), t.registerBinding(ne, "scroll", x);
|
|
24521
|
+
}), t.registerBinding(t.container, "contextmenu", function(ne) {
|
|
24522
|
+
ne.preventDefault();
|
|
24523
24523
|
});
|
|
24524
24524
|
var E = function() {
|
|
24525
24525
|
return t.selection[4] !== 0;
|
|
24526
24526
|
}, b = function(H) {
|
|
24527
|
-
for (var K = t.findContainerClientCoords(), te = K[0], re = K[1],
|
|
24527
|
+
for (var K = t.findContainerClientCoords(), te = K[0], re = K[1], ae = K[2], ge = K[3], de = H.touches ? H.touches : [H], Ce = !1, Ee = 0; Ee < de.length; Ee++) {
|
|
24528
24528
|
var Ie = de[Ee];
|
|
24529
|
-
if (te <= Ie.clientX && Ie.clientX <= te +
|
|
24529
|
+
if (te <= Ie.clientX && Ie.clientX <= te + ae && re <= Ie.clientY && Ie.clientY <= re + ge) {
|
|
24530
24530
|
Ce = !0;
|
|
24531
24531
|
break;
|
|
24532
24532
|
}
|
|
@@ -24545,7 +24545,7 @@ Pi.load = function() {
|
|
|
24545
24545
|
t.registerBinding(t.container, "mousedown", function(H) {
|
|
24546
24546
|
if (b(H) && !(t.hoverData.which === 1 && H.which !== 1)) {
|
|
24547
24547
|
H.preventDefault(), m(), t.hoverData.capture = !0, t.hoverData.which = H.which;
|
|
24548
|
-
var K = t.cy, te = [H.clientX, H.clientY], re = t.projectIntoViewport(te[0], te[1]),
|
|
24548
|
+
var K = t.cy, te = [H.clientX, H.clientY], re = t.projectIntoViewport(te[0], te[1]), ae = t.selection, ge = t.findNearestElements(re[0], re[1], !0, !1), de = ge[0], Ce = t.dragData.possibleDragElements;
|
|
24549
24549
|
t.hoverData.mdownPos = re, t.hoverData.mdownGPos = te;
|
|
24550
24550
|
var Ee = function(Be) {
|
|
24551
24551
|
return {
|
|
@@ -24597,28 +24597,28 @@ Pi.load = function() {
|
|
|
24597
24597
|
}
|
|
24598
24598
|
t.redrawHint("eles", !0), t.redrawHint("drag", !0);
|
|
24599
24599
|
}
|
|
24600
|
-
t.hoverData.down = de, t.hoverData.downs =
|
|
24600
|
+
t.hoverData.down = de, t.hoverData.downs = ge, t.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime();
|
|
24601
24601
|
}
|
|
24602
24602
|
a(de, ["mousedown", "tapstart", "vmousedown"], H, {
|
|
24603
24603
|
x: re[0],
|
|
24604
24604
|
y: re[1]
|
|
24605
|
-
}), de == null ? (
|
|
24605
|
+
}), de == null ? (ae[4] = 1, t.data.bgActivePosistion = {
|
|
24606
24606
|
x: re[0],
|
|
24607
24607
|
y: re[1]
|
|
24608
|
-
}, t.redrawHint("select", !0), t.redraw()) : de.pannable() && (
|
|
24608
|
+
}, t.redrawHint("select", !0), t.redraw()) : de.pannable() && (ae[4] = 1), Ie();
|
|
24609
24609
|
}
|
|
24610
|
-
|
|
24610
|
+
ae[0] = ae[2] = re[0], ae[1] = ae[3] = re[1];
|
|
24611
24611
|
}
|
|
24612
24612
|
}, !1);
|
|
24613
24613
|
var T = n(t.container);
|
|
24614
24614
|
t.registerBinding([e, T], "mousemove", function(H) {
|
|
24615
24615
|
var K = t.hoverData.capture;
|
|
24616
24616
|
if (!(!K && !b(H))) {
|
|
24617
|
-
var te = !1, re = t.cy,
|
|
24617
|
+
var te = !1, re = t.cy, ae = re.zoom(), ge = [H.clientX, H.clientY], de = t.projectIntoViewport(ge[0], ge[1]), Ce = t.hoverData.mdownPos, Ee = t.hoverData.mdownGPos, Ie = t.selection, Pe = null;
|
|
24618
24618
|
!t.hoverData.draggingEles && !t.hoverData.dragging && !t.hoverData.selecting && (Pe = t.findNearestElement(de[0], de[1], !0, !1));
|
|
24619
24619
|
var He = t.hoverData.last, Te = t.hoverData.down, Ne = [de[0] - Ie[2], de[1] - Ie[3]], Be = t.dragData.possibleDragElements, Xe;
|
|
24620
24620
|
if (Ee) {
|
|
24621
|
-
var at =
|
|
24621
|
+
var at = ge[0] - Ee[0], sr = at * at, Ut = ge[1] - Ee[1], _t = Ut * Ut, Lt = sr + _t;
|
|
24622
24622
|
t.hoverData.isOverThresholdDrag = Xe = Lt >= t.desktopTapThreshold2;
|
|
24623
24623
|
}
|
|
24624
24624
|
var zt = A(H);
|
|
@@ -24654,13 +24654,13 @@ Pi.load = function() {
|
|
|
24654
24654
|
if (t.hoverData.justStartedPan) {
|
|
24655
24655
|
var Ds = t.hoverData.mdownPos;
|
|
24656
24656
|
EA = {
|
|
24657
|
-
x: (de[0] - Ds[0]) *
|
|
24658
|
-
y: (de[1] - Ds[1]) *
|
|
24657
|
+
x: (de[0] - Ds[0]) * ae,
|
|
24658
|
+
y: (de[1] - Ds[1]) * ae
|
|
24659
24659
|
}, t.hoverData.justStartedPan = !1;
|
|
24660
24660
|
} else
|
|
24661
24661
|
EA = {
|
|
24662
|
-
x: Ne[0] *
|
|
24663
|
-
y: Ne[1] *
|
|
24662
|
+
x: Ne[0] * ae,
|
|
24663
|
+
y: Ne[1] * ae
|
|
24664
24664
|
};
|
|
24665
24665
|
re.panBy(EA), re.emit(St("dragpan")), t.hoverData.dragged = !0;
|
|
24666
24666
|
}
|
|
@@ -24715,7 +24715,7 @@ Pi.load = function() {
|
|
|
24715
24715
|
var K = t.hoverData.capture;
|
|
24716
24716
|
if (K) {
|
|
24717
24717
|
t.hoverData.capture = !1;
|
|
24718
|
-
var te = t.cy, re = t.projectIntoViewport(H.clientX, H.clientY),
|
|
24718
|
+
var te = t.cy, re = t.projectIntoViewport(H.clientX, H.clientY), ae = t.selection, ge = t.findNearestElement(re[0], re[1], !0, !1), de = t.dragData.possibleDragElements, Ce = t.hoverData.down, Ee = A(H);
|
|
24719
24719
|
t.data.bgActivePosistion && (t.redrawHint("select", !0), t.redraw()), t.hoverData.tapholdCancelled = !0, t.data.bgActivePosistion = void 0, Ce && Ce.unactivate();
|
|
24720
24720
|
var Ie = function(at) {
|
|
24721
24721
|
return {
|
|
@@ -24735,7 +24735,7 @@ Pi.load = function() {
|
|
|
24735
24735
|
}
|
|
24736
24736
|
t.hoverData.cxtDragged = !1, t.hoverData.which = null;
|
|
24737
24737
|
} else if (t.hoverData.which === 1) {
|
|
24738
|
-
if (a(
|
|
24738
|
+
if (a(ge, ["mouseup", "tapend", "vmouseup"], H, {
|
|
24739
24739
|
x: re[0],
|
|
24740
24740
|
y: re[1]
|
|
24741
24741
|
}), !t.dragData.didDrag && // didn't move a node around
|
|
@@ -24752,21 +24752,21 @@ Pi.load = function() {
|
|
|
24752
24752
|
x: re[0],
|
|
24753
24753
|
y: re[1]
|
|
24754
24754
|
});
|
|
24755
|
-
}, te.multiClickDebounceTime()), I = H.timeStamp)), Ce == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !A(H) && (te.$(r).unselect(["tapunselect"]), de.length > 0 && t.redrawHint("eles", !0), t.dragData.possibleDragElements = de = te.collection()),
|
|
24756
|
-
var Te = te.collection(t.getAllInBox(
|
|
24755
|
+
}, te.multiClickDebounceTime()), I = H.timeStamp)), Ce == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !A(H) && (te.$(r).unselect(["tapunselect"]), de.length > 0 && t.redrawHint("eles", !0), t.dragData.possibleDragElements = de = te.collection()), ge == Ce && !t.dragData.didDrag && !t.hoverData.selecting && ge != null && ge._private.selectable && (t.hoverData.dragging || (te.selectionType() === "additive" || Ee ? ge.selected() ? ge.unselect(["tapunselect"]) : ge.select(["tapselect"]) : Ee || (te.$(r).unmerge(ge).unselect(["tapunselect"]), ge.select(["tapselect"]))), t.redrawHint("eles", !0)), t.hoverData.selecting) {
|
|
24756
|
+
var Te = te.collection(t.getAllInBox(ae[0], ae[1], ae[2], ae[3]));
|
|
24757
24757
|
t.redrawHint("select", !0), Te.length > 0 && t.redrawHint("eles", !0), te.emit(Ie("boxend"));
|
|
24758
24758
|
var Ne = function(at) {
|
|
24759
24759
|
return at.selectable() && !at.selected();
|
|
24760
24760
|
};
|
|
24761
24761
|
te.selectionType() === "additive" || Ee || te.$(r).unmerge(Te).unselect(), Te.emit(Ie("box")).stdFilter(Ne).select().emit(Ie("boxselect")), t.redraw();
|
|
24762
24762
|
}
|
|
24763
|
-
if (t.hoverData.dragging && (t.hoverData.dragging = !1, t.redrawHint("select", !0), t.redrawHint("eles", !0), t.redraw()), !
|
|
24763
|
+
if (t.hoverData.dragging && (t.hoverData.dragging = !1, t.redrawHint("select", !0), t.redrawHint("eles", !0), t.redraw()), !ae[4]) {
|
|
24764
24764
|
t.redrawHint("drag", !0), t.redrawHint("eles", !0);
|
|
24765
24765
|
var Be = Ce && Ce.grabbed();
|
|
24766
24766
|
g(de), Be && (Ce.emit(Ie("freeon")), de.emit(Ie("free")), t.dragData.didDrag && (Ce.emit(Ie("dragfreeon")), de.emit(Ie("dragfree"))));
|
|
24767
24767
|
}
|
|
24768
24768
|
}
|
|
24769
|
-
|
|
24769
|
+
ae[4] = 0, t.hoverData.down = null, t.hoverData.cxtStarted = !1, t.hoverData.draggingEles = !1, t.hoverData.selecting = !1, t.hoverData.isOverThresholdDrag = !1, t.dragData.didDrag = !1, t.hoverData.dragged = !1, t.hoverData.dragDelta = [], t.hoverData.mdownPos = null, t.hoverData.mdownGPos = null, t.hoverData.which = null;
|
|
24770
24770
|
}
|
|
24771
24771
|
}
|
|
24772
24772
|
}, !1);
|
|
@@ -24786,12 +24786,12 @@ Pi.load = function() {
|
|
|
24786
24786
|
if (O.length >= L) {
|
|
24787
24787
|
var re = O;
|
|
24788
24788
|
if (R = N(re, 5), !R) {
|
|
24789
|
-
var
|
|
24790
|
-
R = D(re) &&
|
|
24789
|
+
var ae = Math.abs(re[0]);
|
|
24790
|
+
R = D(re) && ae > 5;
|
|
24791
24791
|
}
|
|
24792
24792
|
if (R)
|
|
24793
|
-
for (var
|
|
24794
|
-
P = Math.min(Math.abs(re[
|
|
24793
|
+
for (var ge = 0; ge < re.length; ge++)
|
|
24794
|
+
P = Math.min(Math.abs(re[ge]), P);
|
|
24795
24795
|
} else
|
|
24796
24796
|
O.push(te), K = !0;
|
|
24797
24797
|
else R && (P = Math.min(Math.abs(te), P));
|
|
@@ -24833,8 +24833,8 @@ Pi.load = function() {
|
|
|
24833
24833
|
}, 250);
|
|
24834
24834
|
}, !0), t.registerBinding(t.container, "gesturestart", function(H) {
|
|
24835
24835
|
t.gestureStartZoom = t.cy.zoom(), t.hasTouchStarted || H.preventDefault();
|
|
24836
|
-
}, !0), t.registerBinding(t.container, "gesturechange", function(
|
|
24837
|
-
t.hasTouchStarted || M(
|
|
24836
|
+
}, !0), t.registerBinding(t.container, "gesturechange", function(ne) {
|
|
24837
|
+
t.hasTouchStarted || M(ne);
|
|
24838
24838
|
}, !0), t.registerBinding(t.container, "mouseout", function(H) {
|
|
24839
24839
|
var K = t.projectIntoViewport(H.clientX, H.clientY);
|
|
24840
24840
|
t.cy.emit({
|
|
@@ -24866,18 +24866,18 @@ Pi.load = function() {
|
|
|
24866
24866
|
m(), t.touchData.capture = !0, t.data.bgActivePosistion = void 0;
|
|
24867
24867
|
var K = t.cy, te = t.touchData.now, re = t.touchData.earlier;
|
|
24868
24868
|
if (H.touches[0]) {
|
|
24869
|
-
var
|
|
24870
|
-
te[0] =
|
|
24869
|
+
var ae = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
24870
|
+
te[0] = ae[0], te[1] = ae[1];
|
|
24871
24871
|
}
|
|
24872
24872
|
if (H.touches[1]) {
|
|
24873
|
-
var
|
|
24874
|
-
te[2] =
|
|
24873
|
+
var ae = t.projectIntoViewport(H.touches[1].clientX, H.touches[1].clientY);
|
|
24874
|
+
te[2] = ae[0], te[3] = ae[1];
|
|
24875
24875
|
}
|
|
24876
24876
|
if (H.touches[2]) {
|
|
24877
|
-
var
|
|
24878
|
-
te[4] =
|
|
24877
|
+
var ae = t.projectIntoViewport(H.touches[2].clientX, H.touches[2].clientY);
|
|
24878
|
+
te[4] = ae[0], te[5] = ae[1];
|
|
24879
24879
|
}
|
|
24880
|
-
var
|
|
24880
|
+
var ge = function(zt) {
|
|
24881
24881
|
return {
|
|
24882
24882
|
originalEvent: H,
|
|
24883
24883
|
type: zt,
|
|
@@ -24896,7 +24896,7 @@ Pi.load = function() {
|
|
|
24896
24896
|
var Ie = 200, Pe = Ie * Ie;
|
|
24897
24897
|
if (q < Pe && !H.touches[2]) {
|
|
24898
24898
|
var He = t.findNearestElement(te[0], te[1], !0, !0), Te = t.findNearestElement(te[2], te[3], !0, !0);
|
|
24899
|
-
He && He.isNode() ? (He.activate().emit(
|
|
24899
|
+
He && He.isNode() ? (He.activate().emit(ge("cxttapstart")), t.touchData.start = He) : Te && Te.isNode() ? (Te.activate().emit(ge("cxttapstart")), t.touchData.start = Te) : K.emit(ge("cxttapstart")), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !0, t.touchData.cxtDragged = !1, t.data.bgActivePosistion = void 0, t.redraw();
|
|
24900
24900
|
return;
|
|
24901
24901
|
}
|
|
24902
24902
|
}
|
|
@@ -24913,16 +24913,16 @@ Pi.load = function() {
|
|
|
24913
24913
|
addToList: Xe
|
|
24914
24914
|
})) : p(Be, {
|
|
24915
24915
|
addToList: Xe
|
|
24916
|
-
}), c(Be), Be.emit(
|
|
24917
|
-
Lt.emit(
|
|
24918
|
-
}) : Be.emit(
|
|
24916
|
+
}), c(Be), Be.emit(ge("grabon")), at ? at.forEach(function(Lt) {
|
|
24917
|
+
Lt.emit(ge("grab"));
|
|
24918
|
+
}) : Be.emit(ge("grab"));
|
|
24919
24919
|
}
|
|
24920
24920
|
a(Be, ["touchstart", "tapstart", "vmousedown"], H, {
|
|
24921
24921
|
x: te[0],
|
|
24922
24922
|
y: te[1]
|
|
24923
24923
|
}), Be == null && (t.data.bgActivePosistion = {
|
|
24924
|
-
x:
|
|
24925
|
-
y:
|
|
24924
|
+
x: ae[0],
|
|
24925
|
+
y: ae[1]
|
|
24926
24926
|
}, t.redrawHint("select", !0), t.redraw()), t.touchData.singleTouchMoved = !1, t.touchData.singleTouchStartTime = +/* @__PURE__ */ new Date(), clearTimeout(t.touchData.tapholdTimeout), t.touchData.tapholdTimeout = setTimeout(function() {
|
|
24927
24927
|
t.touchData.singleTouchMoved === !1 && !t.pinching && !t.touchData.selecting && a(t.touchData.start, ["taphold"], H, {
|
|
24928
24928
|
x: te[0],
|
|
@@ -24939,36 +24939,36 @@ Pi.load = function() {
|
|
|
24939
24939
|
}
|
|
24940
24940
|
}
|
|
24941
24941
|
}, !1);
|
|
24942
|
-
var
|
|
24943
|
-
t.registerBinding(e, "touchmove",
|
|
24942
|
+
var Ae;
|
|
24943
|
+
t.registerBinding(e, "touchmove", Ae = function(H) {
|
|
24944
24944
|
var K = t.touchData.capture;
|
|
24945
24945
|
if (!(!K && !b(H))) {
|
|
24946
|
-
var te = t.selection, re = t.cy,
|
|
24946
|
+
var te = t.selection, re = t.cy, ae = t.touchData.now, ge = t.touchData.earlier, de = re.zoom();
|
|
24947
24947
|
if (H.touches[0]) {
|
|
24948
24948
|
var Ce = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
24949
|
-
|
|
24949
|
+
ae[0] = Ce[0], ae[1] = Ce[1];
|
|
24950
24950
|
}
|
|
24951
24951
|
if (H.touches[1]) {
|
|
24952
24952
|
var Ce = t.projectIntoViewport(H.touches[1].clientX, H.touches[1].clientY);
|
|
24953
|
-
|
|
24953
|
+
ae[2] = Ce[0], ae[3] = Ce[1];
|
|
24954
24954
|
}
|
|
24955
24955
|
if (H.touches[2]) {
|
|
24956
24956
|
var Ce = t.projectIntoViewport(H.touches[2].clientX, H.touches[2].clientY);
|
|
24957
|
-
|
|
24957
|
+
ae[4] = Ce[0], ae[5] = Ce[1];
|
|
24958
24958
|
}
|
|
24959
24959
|
var Ee = function(cU) {
|
|
24960
24960
|
return {
|
|
24961
24961
|
originalEvent: H,
|
|
24962
24962
|
type: cU,
|
|
24963
24963
|
position: {
|
|
24964
|
-
x:
|
|
24965
|
-
y:
|
|
24964
|
+
x: ae[0],
|
|
24965
|
+
y: ae[1]
|
|
24966
24966
|
}
|
|
24967
24967
|
};
|
|
24968
24968
|
}, Ie = t.touchData.startGPosition, Pe;
|
|
24969
24969
|
if (K && H.touches[0] && Ie) {
|
|
24970
|
-
for (var He = [], Te = 0; Te <
|
|
24971
|
-
He[Te] =
|
|
24970
|
+
for (var He = [], Te = 0; Te < ae.length; Te++)
|
|
24971
|
+
He[Te] = ae[Te] - ge[Te];
|
|
24972
24972
|
var Ne = H.touches[0].clientX - Ie[0], Be = Ne * Ne, Xe = H.touches[0].clientY - Ie[1], at = Xe * Xe, sr = Be + at;
|
|
24973
24973
|
Pe = sr >= t.touchTapThreshold2;
|
|
24974
24974
|
}
|
|
@@ -24984,10 +24984,10 @@ Pi.load = function() {
|
|
|
24984
24984
|
if (K && t.touchData.cxt) {
|
|
24985
24985
|
var Pa = Ee("cxtdrag");
|
|
24986
24986
|
t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.touchData.start ? t.touchData.start.emit(Pa) : re.emit(Pa), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxtDragged = !0;
|
|
24987
|
-
var hr = t.findNearestElement(
|
|
24987
|
+
var hr = t.findNearestElement(ae[0], ae[1], !0, !0);
|
|
24988
24988
|
(!t.touchData.cxtOver || hr !== t.touchData.cxtOver) && (t.touchData.cxtOver && t.touchData.cxtOver.emit(Ee("cxtdragout")), t.touchData.cxtOver = hr, hr && hr.emit(Ee("cxtdragover")));
|
|
24989
24989
|
} else if (K && H.touches[2] && re.boxSelectionEnabled())
|
|
24990
|
-
H.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || re.emit(Ee("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, te[4] = 1, !te || te.length === 0 || te[0] === void 0 ? (te[0] = (
|
|
24990
|
+
H.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || re.emit(Ee("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, te[4] = 1, !te || te.length === 0 || te[0] === void 0 ? (te[0] = (ae[0] + ae[2] + ae[4]) / 3, te[1] = (ae[1] + ae[3] + ae[5]) / 3, te[2] = (ae[0] + ae[2] + ae[4]) / 3 + 1, te[3] = (ae[1] + ae[3] + ae[5]) / 3 + 1) : (te[2] = (ae[0] + ae[2] + ae[4]) / 3, te[3] = (ae[1] + ae[3] + ae[5]) / 3), t.redrawHint("select", !0), t.redraw();
|
|
24991
24991
|
else if (K && H.touches[1] && !t.touchData.didSelect && re.zoomingEnabled() && re.panningEnabled() && re.userZoomingEnabled() && re.userPanningEnabled()) {
|
|
24992
24992
|
H.preventDefault(), t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
|
|
24993
24993
|
var rr = t.dragData.touchDragEles;
|
|
@@ -25016,19 +25016,19 @@ Pi.load = function() {
|
|
|
25016
25016
|
}
|
|
25017
25017
|
if (H.touches[0]) {
|
|
25018
25018
|
var Ce = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
25019
|
-
|
|
25019
|
+
ae[0] = Ce[0], ae[1] = Ce[1];
|
|
25020
25020
|
}
|
|
25021
25021
|
if (H.touches[1]) {
|
|
25022
25022
|
var Ce = t.projectIntoViewport(H.touches[1].clientX, H.touches[1].clientY);
|
|
25023
|
-
|
|
25023
|
+
ae[2] = Ce[0], ae[3] = Ce[1];
|
|
25024
25024
|
}
|
|
25025
25025
|
if (H.touches[2]) {
|
|
25026
25026
|
var Ce = t.projectIntoViewport(H.touches[2].clientX, H.touches[2].clientY);
|
|
25027
|
-
|
|
25027
|
+
ae[4] = Ce[0], ae[5] = Ce[1];
|
|
25028
25028
|
}
|
|
25029
25029
|
} else if (H.touches[0] && !t.touchData.didSelect) {
|
|
25030
25030
|
var Xr = t.touchData.start, nf = t.touchData.last, hr;
|
|
25031
|
-
if (!t.hoverData.draggingEles && !t.swipePanning && (hr = t.findNearestElement(
|
|
25031
|
+
if (!t.hoverData.draggingEles && !t.swipePanning && (hr = t.findNearestElement(ae[0], ae[1], !0, !0)), K && Xr != null && H.preventDefault(), K && Xr != null && t.nodeIsDraggable(Xr))
|
|
25032
25032
|
if (Pe) {
|
|
25033
25033
|
var rr = t.dragData.touchDragEles, Gm = !t.dragData.didDrag;
|
|
25034
25034
|
Gm && v(rr, {
|
|
@@ -25043,17 +25043,17 @@ Pi.load = function() {
|
|
|
25043
25043
|
var zr = t.touchData.dragDelta;
|
|
25044
25044
|
zr && we(zr[0]) && we(zr[1]) && (Ki.x += zr[0], Ki.y += zr[1]);
|
|
25045
25045
|
}
|
|
25046
|
-
t.hoverData.draggingEles = !0, rr.silentShift(Ki).emit(Ee("position")).emit(Ee("drag")), t.redrawHint("drag", !0), t.touchData.startPosition[0] ==
|
|
25046
|
+
t.hoverData.draggingEles = !0, rr.silentShift(Ki).emit(Ee("position")).emit(Ee("drag")), t.redrawHint("drag", !0), t.touchData.startPosition[0] == ge[0] && t.touchData.startPosition[1] == ge[1] && t.redrawHint("eles", !0), t.redraw();
|
|
25047
25047
|
} else {
|
|
25048
25048
|
var zr = t.touchData.dragDelta = t.touchData.dragDelta || [];
|
|
25049
25049
|
zr.length === 0 ? (zr.push(He[0]), zr.push(He[1])) : (zr[0] += He[0], zr[1] += He[1]);
|
|
25050
25050
|
}
|
|
25051
25051
|
if (a(Xr || hr, ["touchmove", "tapdrag", "vmousemove"], H, {
|
|
25052
|
-
x:
|
|
25053
|
-
y:
|
|
25052
|
+
x: ae[0],
|
|
25053
|
+
y: ae[1]
|
|
25054
25054
|
}), (!Xr || !Xr.grabbed()) && hr != nf && (nf && nf.emit(Ee("tapdragout")), hr && hr.emit(Ee("tapdragover"))), t.touchData.last = hr, K)
|
|
25055
|
-
for (var vr = 0; vr <
|
|
25056
|
-
|
|
25055
|
+
for (var vr = 0; vr < ae.length; vr++)
|
|
25056
|
+
ae[vr] && t.touchData.startPosition[vr] && Pe && (t.touchData.singleTouchMoved = !0);
|
|
25057
25057
|
if (K && (Xr == null || Xr.pannable()) && re.panningEnabled() && re.userPanningEnabled()) {
|
|
25058
25058
|
var uU = i(Xr, t.touchData.starts);
|
|
25059
25059
|
uU && (H.preventDefault(), t.data.bgActivePosistion || (t.data.bgActivePosistion = ni(t.touchData.startPosition)), t.swipePanning ? (re.panBy({
|
|
@@ -25064,20 +25064,20 @@ Pi.load = function() {
|
|
|
25064
25064
|
y: Xe * de
|
|
25065
25065
|
}), re.emit(Ee("dragpan")), Xr && (Xr.unactivate(), t.redrawHint("select", !0), t.touchData.start = null)));
|
|
25066
25066
|
var Ce = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
25067
|
-
|
|
25067
|
+
ae[0] = Ce[0], ae[1] = Ce[1];
|
|
25068
25068
|
}
|
|
25069
25069
|
}
|
|
25070
|
-
for (var Te = 0; Te <
|
|
25071
|
-
|
|
25070
|
+
for (var Te = 0; Te < ae.length; Te++)
|
|
25071
|
+
ge[Te] = ae[Te];
|
|
25072
25072
|
K && H.touches.length > 0 && !t.hoverData.draggingEles && !t.swipePanning && t.data.bgActivePosistion != null && (t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.redraw());
|
|
25073
25073
|
}
|
|
25074
25074
|
}, !1);
|
|
25075
|
-
var
|
|
25076
|
-
t.registerBinding(e, "touchcancel",
|
|
25075
|
+
var se;
|
|
25076
|
+
t.registerBinding(e, "touchcancel", se = function(H) {
|
|
25077
25077
|
var K = t.touchData.start;
|
|
25078
25078
|
t.touchData.capture = !1, K && K.unactivate();
|
|
25079
25079
|
});
|
|
25080
|
-
var he, fe, j,
|
|
25080
|
+
var he, fe, j, le;
|
|
25081
25081
|
if (t.registerBinding(e, "touchend", he = function(H) {
|
|
25082
25082
|
var K = t.touchData.start, te = t.touchData.capture;
|
|
25083
25083
|
if (te)
|
|
@@ -25086,7 +25086,7 @@ Pi.load = function() {
|
|
|
25086
25086
|
return;
|
|
25087
25087
|
var re = t.selection;
|
|
25088
25088
|
t.swipePanning = !1, t.hoverData.draggingEles = !1;
|
|
25089
|
-
var
|
|
25089
|
+
var ae = t.cy, ge = ae.zoom(), de = t.touchData.now, Ce = t.touchData.earlier;
|
|
25090
25090
|
if (H.touches[0]) {
|
|
25091
25091
|
var Ee = t.projectIntoViewport(H.touches[0].clientX, H.touches[0].clientY);
|
|
25092
25092
|
de[0] = Ee[0], de[1] = Ee[1];
|
|
@@ -25112,17 +25112,17 @@ Pi.load = function() {
|
|
|
25112
25112
|
K && K.unactivate();
|
|
25113
25113
|
var Pe;
|
|
25114
25114
|
if (t.touchData.cxt) {
|
|
25115
|
-
if (Pe = Ie("cxttapend"), K ? K.emit(Pe) :
|
|
25115
|
+
if (Pe = Ie("cxttapend"), K ? K.emit(Pe) : ae.emit(Pe), !t.touchData.cxtDragged) {
|
|
25116
25116
|
var He = Ie("cxttap");
|
|
25117
|
-
K ? K.emit(He) :
|
|
25117
|
+
K ? K.emit(He) : ae.emit(He);
|
|
25118
25118
|
}
|
|
25119
25119
|
t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !1, t.touchData.start = null, t.redraw();
|
|
25120
25120
|
return;
|
|
25121
25121
|
}
|
|
25122
|
-
if (!H.touches[2] &&
|
|
25122
|
+
if (!H.touches[2] && ae.boxSelectionEnabled() && t.touchData.selecting) {
|
|
25123
25123
|
t.touchData.selecting = !1;
|
|
25124
|
-
var Te =
|
|
25125
|
-
re[0] = void 0, re[1] = void 0, re[2] = void 0, re[3] = void 0, re[4] = 0, t.redrawHint("select", !0),
|
|
25124
|
+
var Te = ae.collection(t.getAllInBox(re[0], re[1], re[2], re[3]));
|
|
25125
|
+
re[0] = void 0, re[1] = void 0, re[2] = void 0, re[3] = void 0, re[4] = 0, t.redrawHint("select", !0), ae.emit(Ie("boxend"));
|
|
25126
25126
|
var Ne = function(Un) {
|
|
25127
25127
|
return Un.selectable() && !Un.selected();
|
|
25128
25128
|
};
|
|
@@ -25148,11 +25148,11 @@ Pi.load = function() {
|
|
|
25148
25148
|
y: de[1]
|
|
25149
25149
|
});
|
|
25150
25150
|
}
|
|
25151
|
-
var sr = t.touchData.startPosition[0] - de[0], Ut = sr * sr, _t = t.touchData.startPosition[1] - de[1], Lt = _t * _t, zt = Ut + Lt, qn = zt *
|
|
25152
|
-
t.touchData.singleTouchMoved || (K ||
|
|
25151
|
+
var sr = t.touchData.startPosition[0] - de[0], Ut = sr * sr, _t = t.touchData.startPosition[1] - de[1], Lt = _t * _t, zt = Ut + Lt, qn = zt * ge * ge;
|
|
25152
|
+
t.touchData.singleTouchMoved || (K || ae.$(":selected").unselect(["tapunselect"]), a(K, ["tap", "vclick"], H, {
|
|
25153
25153
|
x: de[0],
|
|
25154
25154
|
y: de[1]
|
|
25155
|
-
}), fe = !1, H.timeStamp -
|
|
25155
|
+
}), fe = !1, H.timeStamp - le <= ae.multiClickDebounceTime() ? (j && clearTimeout(j), fe = !0, le = null, a(K, ["dbltap", "vdblclick"], H, {
|
|
25156
25156
|
x: de[0],
|
|
25157
25157
|
y: de[1]
|
|
25158
25158
|
})) : (j = setTimeout(function() {
|
|
@@ -25160,7 +25160,7 @@ Pi.load = function() {
|
|
|
25160
25160
|
x: de[0],
|
|
25161
25161
|
y: de[1]
|
|
25162
25162
|
});
|
|
25163
|
-
},
|
|
25163
|
+
}, ae.multiClickDebounceTime()), le = H.timeStamp)), K != null && !t.dragData.didDrag && K._private.selectable && qn < t.touchTapThreshold2 && !t.pinching && (ae.selectionType() === "single" ? (ae.$(r).unmerge(K).unselect(["tapunselect"]), K.select(["tapselect"])) : K.selected() ? K.unselect(["tapunselect"]) : K.select(["tapselect"]), t.redrawHint("eles", !0)), t.touchData.singleTouchMoved = !0;
|
|
25164
25164
|
}
|
|
25165
25165
|
}
|
|
25166
25166
|
}
|
|
@@ -25168,7 +25168,7 @@ Pi.load = function() {
|
|
|
25168
25168
|
Ce[St] = de[St];
|
|
25169
25169
|
t.dragData.didDrag = !1, H.touches.length === 0 && (t.touchData.dragDelta = [], t.touchData.startPosition = [null, null, null, null, null, null], t.touchData.startGPosition = null, t.touchData.didSelect = !1), H.touches.length < 2 && (H.touches.length === 1 && (t.touchData.startGPosition = [H.touches[0].clientX, H.touches[0].clientY]), t.pinching = !1, t.redrawHint("eles", !0), t.redraw());
|
|
25170
25170
|
}, !1), typeof TouchEvent > "u") {
|
|
25171
|
-
var
|
|
25171
|
+
var ve = [], me = function(H) {
|
|
25172
25172
|
return {
|
|
25173
25173
|
clientX: H.clientX,
|
|
25174
25174
|
clientY: H.clientY,
|
|
@@ -25188,35 +25188,35 @@ Pi.load = function() {
|
|
|
25188
25188
|
touch: me(H)
|
|
25189
25189
|
};
|
|
25190
25190
|
}, Re = function(H) {
|
|
25191
|
-
|
|
25191
|
+
ve.push(be(H));
|
|
25192
25192
|
}, Le = function(H) {
|
|
25193
|
-
for (var K = 0; K <
|
|
25194
|
-
var te =
|
|
25193
|
+
for (var K = 0; K < ve.length; K++) {
|
|
25194
|
+
var te = ve[K];
|
|
25195
25195
|
if (te.event.pointerId === H.pointerId) {
|
|
25196
|
-
|
|
25196
|
+
ve.splice(K, 1);
|
|
25197
25197
|
return;
|
|
25198
25198
|
}
|
|
25199
25199
|
}
|
|
25200
25200
|
}, Se = function(H) {
|
|
25201
|
-
var K =
|
|
25201
|
+
var K = ve.filter(function(te) {
|
|
25202
25202
|
return te.event.pointerId === H.pointerId;
|
|
25203
25203
|
})[0];
|
|
25204
25204
|
K.event = H, K.touch = me(H);
|
|
25205
25205
|
}, De = function(H) {
|
|
25206
|
-
H.touches =
|
|
25206
|
+
H.touches = ve.map(function(K) {
|
|
25207
25207
|
return K.touch;
|
|
25208
25208
|
});
|
|
25209
25209
|
}, ye = function(H) {
|
|
25210
25210
|
return H.pointerType === "mouse" || H.pointerType === 4;
|
|
25211
25211
|
};
|
|
25212
|
-
t.registerBinding(t.container, "pointerdown", function(
|
|
25213
|
-
ye(
|
|
25214
|
-
}), t.registerBinding(t.container, "pointerup", function(
|
|
25215
|
-
ye(
|
|
25216
|
-
}), t.registerBinding(t.container, "pointercancel", function(
|
|
25217
|
-
ye(
|
|
25218
|
-
}), t.registerBinding(t.container, "pointermove", function(
|
|
25219
|
-
ye(
|
|
25212
|
+
t.registerBinding(t.container, "pointerdown", function(ne) {
|
|
25213
|
+
ye(ne) || (ne.preventDefault(), Re(ne), De(ne), ue(ne));
|
|
25214
|
+
}), t.registerBinding(t.container, "pointerup", function(ne) {
|
|
25215
|
+
ye(ne) || (Le(ne), De(ne), he(ne));
|
|
25216
|
+
}), t.registerBinding(t.container, "pointercancel", function(ne) {
|
|
25217
|
+
ye(ne) || (Le(ne), De(ne), se(ne));
|
|
25218
|
+
}), t.registerBinding(t.container, "pointermove", function(ne) {
|
|
25219
|
+
ye(ne) || (ne.preventDefault(), Se(ne), De(ne), Ae(ne));
|
|
25220
25220
|
});
|
|
25221
25221
|
}
|
|
25222
25222
|
};
|
|
@@ -26693,10 +26693,10 @@ La.drawNode = function(t, e, r) {
|
|
|
26693
26693
|
}, z = function() {
|
|
26694
26694
|
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : k;
|
|
26695
26695
|
i.colorStrokeStyle(t, V[0], V[1], V[2], ye);
|
|
26696
|
-
}, J = function(ye,
|
|
26697
|
-
var te = i.nodePathCache = i.nodePathCache || [], re = Mx(H === "polygon" ? H + "," + K.join(",") : H, "" +
|
|
26698
|
-
return
|
|
26699
|
-
path:
|
|
26696
|
+
}, J = function(ye, ne, H, K) {
|
|
26697
|
+
var te = i.nodePathCache = i.nodePathCache || [], re = Mx(H === "polygon" ? H + "," + K.join(",") : H, "" + ne, "" + ye, "" + q), ae = te[re], ge, de = !1;
|
|
26698
|
+
return ae != null ? (ge = ae, de = !0, u.pathCache = ge) : (ge = new Path2D(), te[re] = u.pathCache = ge), {
|
|
26699
|
+
path: ge,
|
|
26700
26700
|
cacheHit: de
|
|
26701
26701
|
};
|
|
26702
26702
|
}, Y = e.pstyle("shape").strValue, W = e.pstyle("shape-polygon-points").pfValue;
|
|
@@ -26715,9 +26715,9 @@ La.drawNode = function(t, e, r) {
|
|
|
26715
26715
|
}
|
|
26716
26716
|
d ? t.fill(h) : t.fill();
|
|
26717
26717
|
}, Ue = function() {
|
|
26718
|
-
for (var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : f,
|
|
26718
|
+
for (var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : f, ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, H = l.backgrounding, K = 0, te = 0; te < C.length; te++) {
|
|
26719
26719
|
var re = e.cy().style().getIndexedStyle(e, "background-image-containment", "value", te);
|
|
26720
|
-
if (
|
|
26720
|
+
if (ne && re === "over" || !ne && re === "inside") {
|
|
26721
26721
|
K++;
|
|
26722
26722
|
continue;
|
|
26723
26723
|
}
|
|
@@ -26725,14 +26725,14 @@ La.drawNode = function(t, e, r) {
|
|
|
26725
26725
|
}
|
|
26726
26726
|
l.backgrounding = K !== F, H !== l.backgrounding && e.updateStyle(!1);
|
|
26727
26727
|
}, ue = function() {
|
|
26728
|
-
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1,
|
|
26729
|
-
i.hasPie(e) && (i.drawPie(t, e,
|
|
26730
|
-
},
|
|
26731
|
-
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1,
|
|
26732
|
-
i.hasStripe(e) && (t.save(), d ? t.clip(u.pathCache) : (i.nodeShapes[i.getNodeShape(e)].draw(t, c.x, c.y, o, s, q, u), t.clip()), i.drawStripe(t, e,
|
|
26733
|
-
},
|
|
26734
|
-
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : f,
|
|
26735
|
-
T !== 0 && (i.colorFillStyle(t, H, H, H,
|
|
26728
|
+
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
|
|
26729
|
+
i.hasPie(e) && (i.drawPie(t, e, ne), ye && (d || i.nodeShapes[i.getNodeShape(e)].draw(t, c.x, c.y, o, s, q, u)));
|
|
26730
|
+
}, Ae = function() {
|
|
26731
|
+
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
|
|
26732
|
+
i.hasStripe(e) && (t.save(), d ? t.clip(u.pathCache) : (i.nodeShapes[i.getNodeShape(e)].draw(t, c.x, c.y, o, s, q, u), t.clip()), i.drawStripe(t, e, ne), t.restore(), ye && (d || i.nodeShapes[i.getNodeShape(e)].draw(t, c.x, c.y, o, s, q, u)));
|
|
26733
|
+
}, se = function() {
|
|
26734
|
+
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : f, ne = (T > 0 ? T : -T) * ye, H = T > 0 ? 0 : 255;
|
|
26735
|
+
T !== 0 && (i.colorFillStyle(t, H, H, H, ne), d ? t.fill(h) : t.fill());
|
|
26736
26736
|
}, he = function() {
|
|
26737
26737
|
if (U > 0) {
|
|
26738
26738
|
if (t.lineWidth = U, t.lineCap = R, t.lineJoin = L, t.setLineDash)
|
|
@@ -26760,8 +26760,8 @@ La.drawNode = function(t, e, r) {
|
|
|
26760
26760
|
d ? t.stroke(h) : t.stroke();
|
|
26761
26761
|
if (O === "double") {
|
|
26762
26762
|
t.lineWidth = U / 3;
|
|
26763
|
-
var
|
|
26764
|
-
t.globalCompositeOperation = "destination-out", d ? t.stroke(h) : t.stroke(), t.globalCompositeOperation =
|
|
26763
|
+
var ne = t.globalCompositeOperation;
|
|
26764
|
+
t.globalCompositeOperation = "destination-out", d ? t.stroke(h) : t.stroke(), t.globalCompositeOperation = ne;
|
|
26765
26765
|
}
|
|
26766
26766
|
t.setLineDash && t.setLineDash([]);
|
|
26767
26767
|
}
|
|
@@ -26785,41 +26785,41 @@ La.drawNode = function(t, e, r) {
|
|
|
26785
26785
|
x: 0,
|
|
26786
26786
|
y: 0
|
|
26787
26787
|
});
|
|
26788
|
-
var
|
|
26788
|
+
var ne = i.getNodeShape(e), H = U;
|
|
26789
26789
|
P === "inside" && (H = 0), P === "outside" && (H *= 2);
|
|
26790
|
-
var K = (o + H + (_ + G)) / o, te = (s + H + (_ + G)) / s, re = o * K,
|
|
26790
|
+
var K = (o + H + (_ + G)) / o, te = (s + H + (_ + G)) / s, re = o * K, ae = s * te, ge = i.nodeShapes[ne].points, de;
|
|
26791
26791
|
if (d) {
|
|
26792
|
-
var Ce = J(re,
|
|
26792
|
+
var Ce = J(re, ae, ne, ge);
|
|
26793
26793
|
de = Ce.path;
|
|
26794
26794
|
}
|
|
26795
|
-
if (
|
|
26796
|
-
i.drawEllipsePath(de || t, ye.x, ye.y, re,
|
|
26797
|
-
else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(
|
|
26795
|
+
if (ne === "ellipse")
|
|
26796
|
+
i.drawEllipsePath(de || t, ye.x, ye.y, re, ae);
|
|
26797
|
+
else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(ne)) {
|
|
26798
26798
|
var Ee = 0, Ie = 0, Pe = 0;
|
|
26799
|
-
|
|
26800
|
-
for (var He = re / 2, Te =
|
|
26799
|
+
ne === "round-diamond" ? Ee = (H + G + _) * 1.4 : ne === "round-heptagon" ? (Ee = (H + G + _) * 1.075, Pe = -(H / 2 + G + _) / 35) : ne === "round-hexagon" ? Ee = (H + G + _) * 1.12 : ne === "round-pentagon" ? (Ee = (H + G + _) * 1.13, Pe = -(H / 2 + G + _) / 15) : ne === "round-tag" ? (Ee = (H + G + _) * 1.12, Ie = (H / 2 + _ + G) * 0.07) : ne === "round-triangle" && (Ee = (H + G + _) * (Math.PI / 2), Pe = -(H + G / 2 + _) / Math.PI), Ee !== 0 && (K = (o + Ee) / o, re = o * K, ["round-hexagon", "round-tag"].includes(ne) || (te = (s + Ee) / s, ae = s * te)), q = q === "auto" ? Gx(re, ae) : q;
|
|
26800
|
+
for (var He = re / 2, Te = ae / 2, Ne = q + (H + _ + G) / 2, Be = new Array(ge.length / 2), Xe = new Array(ge.length / 2), at = 0; at < ge.length / 2; at++)
|
|
26801
26801
|
Be[at] = {
|
|
26802
|
-
x: ye.x + Ie + He *
|
|
26803
|
-
y: ye.y + Pe + Te *
|
|
26802
|
+
x: ye.x + Ie + He * ge[at * 2],
|
|
26803
|
+
y: ye.y + Pe + Te * ge[at * 2 + 1]
|
|
26804
26804
|
};
|
|
26805
26805
|
var sr, Ut, _t, Lt, zt = Be.length;
|
|
26806
26806
|
for (Ut = Be[zt - 1], sr = 0; sr < zt; sr++)
|
|
26807
26807
|
_t = Be[sr % zt], Lt = Be[(sr + 1) % zt], Xe[sr] = pm(Ut, _t, Lt, Ne), Ut = _t, _t = Lt;
|
|
26808
|
-
i.drawRoundPolygonPath(de || t, ye.x + Ie, ye.y + Pe, o * K, s * te,
|
|
26809
|
-
} else if (["roundrectangle", "round-rectangle"].includes(
|
|
26810
|
-
q = q === "auto" ? Ea(re,
|
|
26811
|
-
else if (["cutrectangle", "cut-rectangle"].includes(
|
|
26812
|
-
q = q === "auto" ? Am() : q, i.drawCutRectanglePath(de || t, ye.x, ye.y, re,
|
|
26813
|
-
else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(
|
|
26814
|
-
q = q === "auto" ? Ea(re,
|
|
26815
|
-
else if (
|
|
26816
|
-
i.drawBarrelPath(de || t, ye.x, ye.y, re,
|
|
26817
|
-
else if (
|
|
26808
|
+
i.drawRoundPolygonPath(de || t, ye.x + Ie, ye.y + Pe, o * K, s * te, ge, Xe);
|
|
26809
|
+
} else if (["roundrectangle", "round-rectangle"].includes(ne))
|
|
26810
|
+
q = q === "auto" ? Ea(re, ae) : q, i.drawRoundRectanglePath(de || t, ye.x, ye.y, re, ae, q + (H + _ + G) / 2);
|
|
26811
|
+
else if (["cutrectangle", "cut-rectangle"].includes(ne))
|
|
26812
|
+
q = q === "auto" ? Am() : q, i.drawCutRectanglePath(de || t, ye.x, ye.y, re, ae, null, q + (H + _ + G) / 4);
|
|
26813
|
+
else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(ne))
|
|
26814
|
+
q = q === "auto" ? Ea(re, ae) : q, i.drawBottomRoundRectanglePath(de || t, ye.x, ye.y, re, ae, q + (H + _ + G) / 2);
|
|
26815
|
+
else if (ne === "barrel")
|
|
26816
|
+
i.drawBarrelPath(de || t, ye.x, ye.y, re, ae);
|
|
26817
|
+
else if (ne.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(ne)) {
|
|
26818
26818
|
var qn = (H + _ + G) / o;
|
|
26819
|
-
|
|
26819
|
+
ge = xu(Fu(ge, qn)), i.drawPolygonPath(de || t, ye.x, ye.y, o, s, ge);
|
|
26820
26820
|
} else {
|
|
26821
26821
|
var St = (H + _ + G) / o;
|
|
26822
|
-
|
|
26822
|
+
ge = xu(Fu(ge, -St)), i.drawPolygonPath(de || t, ye.x, ye.y, o, s, ge);
|
|
26823
26823
|
}
|
|
26824
26824
|
if (d ? t.stroke(de) : t.stroke(), X === "double") {
|
|
26825
26825
|
t.lineWidth = H / 3;
|
|
@@ -26830,16 +26830,16 @@ La.drawNode = function(t, e, r) {
|
|
|
26830
26830
|
}
|
|
26831
26831
|
}, j = function() {
|
|
26832
26832
|
a && i.drawNodeOverlay(t, e, c, o, s);
|
|
26833
|
-
},
|
|
26833
|
+
}, le = function() {
|
|
26834
26834
|
a && i.drawNodeUnderlay(t, e, c, o, s);
|
|
26835
|
-
},
|
|
26835
|
+
}, ve = function() {
|
|
26836
26836
|
i.drawElementText(t, e, null, n);
|
|
26837
26837
|
}, me = e.pstyle("ghost").value === "yes";
|
|
26838
26838
|
if (me) {
|
|
26839
26839
|
var be = e.pstyle("ghost-offset-x").pfValue, Re = e.pstyle("ghost-offset-y").pfValue, Le = e.pstyle("ghost-opacity").value, Se = Le * f;
|
|
26840
|
-
t.translate(be, Re), z(), fe(), ee(Le * Q), ie(), Ue(Se, !0), Z(Le * M), he(), ue(T !== 0 || U !== 0),
|
|
26840
|
+
t.translate(be, Re), z(), fe(), ee(Le * Q), ie(), Ue(Se, !0), Z(Le * M), he(), ue(T !== 0 || U !== 0), Ae(T !== 0 || U !== 0), Ue(Se, !1), se(Se), t.translate(-be, -Re);
|
|
26841
26841
|
}
|
|
26842
|
-
d && t.translate(-c.x, -c.y),
|
|
26842
|
+
d && t.translate(-c.x, -c.y), le(), d && t.translate(c.x, c.y), z(), fe(), ee(), ie(), Ue(f, !0), Z(), he(), ue(T !== 0 || U !== 0), Ae(T !== 0 || U !== 0), Ue(f, !1), se(), d && t.translate(-c.x, -c.y), ve(), j(), r && t.translate(g.x1, g.y1);
|
|
26843
26843
|
}
|
|
26844
26844
|
};
|
|
26845
26845
|
var jF = function(e) {
|
|
@@ -37724,7 +37724,7 @@ function BX(t) {
|
|
|
37724
37724
|
F[y] = Ue, U[y] = Ue - R;
|
|
37725
37725
|
}
|
|
37726
37726
|
if (o) {
|
|
37727
|
-
var ue,
|
|
37727
|
+
var ue, Ae = y === "x" ? br : Cr, se = y === "x" ? Gr : $r, he = F[C], fe = C === "y" ? "height" : "width", j = he + p[Ae], le = he - p[se], ve = [br, Cr].indexOf(g) !== -1, me = (ue = T?.[C]) != null ? ue : 0, be = ve ? j : he - w[fe] - x[fe] - me + b.altAxis, Re = ve ? he + w[fe] + x[fe] - me - b.altAxis : le, Le = d && ve ? GY(be, he, Re) : Io(d ? be : j, he, d ? Re : le);
|
|
37728
37728
|
F[C] = Le, U[C] = Le - he;
|
|
37729
37729
|
}
|
|
37730
37730
|
e.modifiersData[n] = U;
|
|
@@ -38319,9 +38319,9 @@ function Az(t, e) {
|
|
|
38319
38319
|
show: Se,
|
|
38320
38320
|
hide: De,
|
|
38321
38321
|
hideWithInteractivity: ye,
|
|
38322
|
-
enable:
|
|
38322
|
+
enable: ve,
|
|
38323
38323
|
disable: me,
|
|
38324
|
-
unmount:
|
|
38324
|
+
unmount: ne,
|
|
38325
38325
|
destroy: H
|
|
38326
38326
|
};
|
|
38327
38327
|
if (!r.render)
|
|
@@ -38364,24 +38364,24 @@ function Az(t, e) {
|
|
|
38364
38364
|
K === void 0 && (K = !1), F.style.pointerEvents = y.props.interactive && !K ? "" : "none", F.style.zIndex = "" + y.props.zIndex;
|
|
38365
38365
|
}
|
|
38366
38366
|
function P(K, te, re) {
|
|
38367
|
-
if (re === void 0 && (re = !0), x.forEach(function(
|
|
38368
|
-
|
|
38367
|
+
if (re === void 0 && (re = !0), x.forEach(function(ge) {
|
|
38368
|
+
ge[K] && ge[K].apply(ge, te);
|
|
38369
38369
|
}), re) {
|
|
38370
|
-
var
|
|
38371
|
-
(
|
|
38370
|
+
var ae;
|
|
38371
|
+
(ae = y.props)[K].apply(ae, te);
|
|
38372
38372
|
}
|
|
38373
38373
|
}
|
|
38374
38374
|
function N() {
|
|
38375
38375
|
var K = y.props.aria;
|
|
38376
38376
|
if (K.content) {
|
|
38377
|
-
var te = "aria-" + K.content, re = F.id,
|
|
38378
|
-
|
|
38379
|
-
var de =
|
|
38377
|
+
var te = "aria-" + K.content, re = F.id, ae = qA(y.props.triggerTarget || t);
|
|
38378
|
+
ae.forEach(function(ge) {
|
|
38379
|
+
var de = ge.getAttribute(te);
|
|
38380
38380
|
if (y.state.isVisible)
|
|
38381
|
-
|
|
38381
|
+
ge.setAttribute(te, de ? de + " " + re : re);
|
|
38382
38382
|
else {
|
|
38383
38383
|
var Ce = de && de.replace(re, "").trim();
|
|
38384
|
-
Ce ?
|
|
38384
|
+
Ce ? ge.setAttribute(te, Ce) : ge.removeAttribute(te);
|
|
38385
38385
|
}
|
|
38386
38386
|
});
|
|
38387
38387
|
}
|
|
@@ -38440,19 +38440,19 @@ function Az(t, e) {
|
|
|
38440
38440
|
}
|
|
38441
38441
|
function Z(K, te) {
|
|
38442
38442
|
var re = O().box;
|
|
38443
|
-
function
|
|
38444
|
-
|
|
38443
|
+
function ae(ge) {
|
|
38444
|
+
ge.target === re && (Ov(re, "remove", ae), te());
|
|
38445
38445
|
}
|
|
38446
38446
|
if (K === 0)
|
|
38447
38447
|
return te();
|
|
38448
|
-
Ov(re, "remove", c), Ov(re, "add",
|
|
38448
|
+
Ov(re, "remove", c), Ov(re, "add", ae), c = ae;
|
|
38449
38449
|
}
|
|
38450
38450
|
function z(K, te, re) {
|
|
38451
38451
|
re === void 0 && (re = !1);
|
|
38452
|
-
var
|
|
38453
|
-
|
|
38454
|
-
|
|
38455
|
-
node:
|
|
38452
|
+
var ae = qA(y.props.triggerTarget || t);
|
|
38453
|
+
ae.forEach(function(ge) {
|
|
38454
|
+
ge.addEventListener(K, te, re), d.push({
|
|
38455
|
+
node: ge,
|
|
38456
38456
|
eventType: K,
|
|
38457
38457
|
handler: te,
|
|
38458
38458
|
options: re
|
|
@@ -38481,31 +38481,31 @@ function Az(t, e) {
|
|
|
38481
38481
|
}
|
|
38482
38482
|
function Y() {
|
|
38483
38483
|
d.forEach(function(K) {
|
|
38484
|
-
var te = K.node, re = K.eventType,
|
|
38485
|
-
te.removeEventListener(re,
|
|
38484
|
+
var te = K.node, re = K.eventType, ae = K.handler, ge = K.options;
|
|
38485
|
+
te.removeEventListener(re, ae, ge);
|
|
38486
38486
|
}), d = [];
|
|
38487
38487
|
}
|
|
38488
38488
|
function W(K) {
|
|
38489
38489
|
var te, re = !1;
|
|
38490
38490
|
if (!(!y.state.isEnabled || ue(K) || o)) {
|
|
38491
|
-
var
|
|
38492
|
-
u = K, v = K.currentTarget, D(), !y.state.isVisible && NX(K) && Ul.forEach(function(
|
|
38493
|
-
return
|
|
38494
|
-
}), K.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || i) && y.props.hideOnClick !== !1 && y.state.isVisible ? re = !0 : j(K), K.type === "click" && (i = !re), re && !
|
|
38491
|
+
var ae = ((te = u) == null ? void 0 : te.type) === "focus";
|
|
38492
|
+
u = K, v = K.currentTarget, D(), !y.state.isVisible && NX(K) && Ul.forEach(function(ge) {
|
|
38493
|
+
return ge(K);
|
|
38494
|
+
}), K.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || i) && y.props.hideOnClick !== !1 && y.state.isVisible ? re = !0 : j(K), K.type === "click" && (i = !re), re && !ae && le(K);
|
|
38495
38495
|
}
|
|
38496
38496
|
}
|
|
38497
38497
|
function oe(K) {
|
|
38498
38498
|
var te = K.target, re = Q().contains(te) || F.contains(te);
|
|
38499
38499
|
if (!(K.type === "mousemove" && re)) {
|
|
38500
|
-
var
|
|
38501
|
-
var de, Ce =
|
|
38500
|
+
var ae = fe().concat(F).map(function(ge) {
|
|
38501
|
+
var de, Ce = ge._tippy, Ee = (de = Ce.popperInstance) == null ? void 0 : de.state;
|
|
38502
38502
|
return Ee ? {
|
|
38503
|
-
popperRect:
|
|
38503
|
+
popperRect: ge.getBoundingClientRect(),
|
|
38504
38504
|
popperState: Ee,
|
|
38505
38505
|
props: r
|
|
38506
38506
|
} : null;
|
|
38507
38507
|
}).filter(Boolean);
|
|
38508
|
-
GX(
|
|
38508
|
+
GX(ae, K) && (M(), le(K));
|
|
38509
38509
|
}
|
|
38510
38510
|
}
|
|
38511
38511
|
function ie(K) {
|
|
@@ -38515,20 +38515,20 @@ function Az(t, e) {
|
|
|
38515
38515
|
y.hideWithInteractivity(K);
|
|
38516
38516
|
return;
|
|
38517
38517
|
}
|
|
38518
|
-
|
|
38518
|
+
le(K);
|
|
38519
38519
|
}
|
|
38520
38520
|
}
|
|
38521
38521
|
function Ue(K) {
|
|
38522
|
-
y.props.trigger.indexOf("focusin") < 0 && K.target !== Q() || y.props.interactive && K.relatedTarget && F.contains(K.relatedTarget) ||
|
|
38522
|
+
y.props.trigger.indexOf("focusin") < 0 && K.target !== Q() || y.props.interactive && K.relatedTarget && F.contains(K.relatedTarget) || le(K);
|
|
38523
38523
|
}
|
|
38524
38524
|
function ue(K) {
|
|
38525
38525
|
return dn.isTouch ? T() !== K.type.indexOf("touch") >= 0 : !1;
|
|
38526
38526
|
}
|
|
38527
|
-
function
|
|
38528
|
-
|
|
38529
|
-
var K = y.props, te = K.popperOptions, re = K.placement,
|
|
38530
|
-
getBoundingClientRect:
|
|
38531
|
-
contextElement:
|
|
38527
|
+
function Ae() {
|
|
38528
|
+
se();
|
|
38529
|
+
var K = y.props, te = K.popperOptions, re = K.placement, ae = K.offset, ge = K.getReferenceClientRect, de = K.moveTransition, Ce = U() ? pg(F).arrow : null, Ee = ge ? {
|
|
38530
|
+
getBoundingClientRect: ge,
|
|
38531
|
+
contextElement: ge.contextElement || Q()
|
|
38532
38532
|
} : t, Ie = {
|
|
38533
38533
|
name: "$$tippy",
|
|
38534
38534
|
enabled: !0,
|
|
@@ -38546,7 +38546,7 @@ function Az(t, e) {
|
|
|
38546
38546
|
}, Pe = [{
|
|
38547
38547
|
name: "offset",
|
|
38548
38548
|
options: {
|
|
38549
|
-
offset:
|
|
38549
|
+
offset: ae
|
|
38550
38550
|
}
|
|
38551
38551
|
}, {
|
|
38552
38552
|
name: "preventOverflow",
|
|
@@ -38581,12 +38581,12 @@ function Az(t, e) {
|
|
|
38581
38581
|
modifiers: Pe
|
|
38582
38582
|
}));
|
|
38583
38583
|
}
|
|
38584
|
-
function
|
|
38584
|
+
function se() {
|
|
38585
38585
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
38586
38586
|
}
|
|
38587
38587
|
function he() {
|
|
38588
38588
|
var K = y.props.appendTo, te, re = Q();
|
|
38589
|
-
y.props.interactive && K === QQ || K === "parent" ? te = re.parentNode : te = UQ(K, [re]), te.contains(F) || te.appendChild(F), y.state.isMounted = !0,
|
|
38589
|
+
y.props.interactive && K === QQ || K === "parent" ? te = re.parentNode : te = UQ(K, [re]), te.contains(F) || te.appendChild(F), y.state.isMounted = !0, Ae(), process.env.NODE_ENV !== "production" && Mn(y.props.interactive && K === Fr.appendTo && re.nextElementSibling !== F, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
38590
38590
|
|
|
38591
38591
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
38592
38592
|
|
|
@@ -38599,12 +38599,12 @@ function Az(t, e) {
|
|
|
38599
38599
|
}
|
|
38600
38600
|
function j(K) {
|
|
38601
38601
|
y.clearDelayTimeouts(), K && P("onTrigger", [y, K]), k();
|
|
38602
|
-
var te = L(!0), re = b(),
|
|
38603
|
-
dn.isTouch &&
|
|
38602
|
+
var te = L(!0), re = b(), ae = re[0], ge = re[1];
|
|
38603
|
+
dn.isTouch && ae === "hold" && ge && (te = ge), te ? n = setTimeout(function() {
|
|
38604
38604
|
y.show();
|
|
38605
38605
|
}, te) : y.show();
|
|
38606
38606
|
}
|
|
38607
|
-
function
|
|
38607
|
+
function le(K) {
|
|
38608
38608
|
if (y.clearDelayTimeouts(), P("onUntrigger", [y, K]), !y.state.isVisible) {
|
|
38609
38609
|
G();
|
|
38610
38610
|
return;
|
|
@@ -38618,7 +38618,7 @@ function Az(t, e) {
|
|
|
38618
38618
|
});
|
|
38619
38619
|
}
|
|
38620
38620
|
}
|
|
38621
|
-
function
|
|
38621
|
+
function ve() {
|
|
38622
38622
|
y.state.isEnabled = !0;
|
|
38623
38623
|
}
|
|
38624
38624
|
function me() {
|
|
@@ -38633,10 +38633,10 @@ function Az(t, e) {
|
|
|
38633
38633
|
var te = y.props, re = xE(t, Object.assign({}, te, BE(K), {
|
|
38634
38634
|
ignoreAttributes: !0
|
|
38635
38635
|
}));
|
|
38636
|
-
y.props = re, J(), te.interactiveDebounce !== re.interactiveDebounce && (M(), h = mE(oe, re.interactiveDebounce)), te.triggerTarget && !re.triggerTarget ? qA(te.triggerTarget).forEach(function(
|
|
38637
|
-
|
|
38638
|
-
}) : re.triggerTarget && t.removeAttribute("aria-expanded"), D(), R(), w && w(te, re), y.popperInstance && (
|
|
38639
|
-
requestAnimationFrame(
|
|
38636
|
+
y.props = re, J(), te.interactiveDebounce !== re.interactiveDebounce && (M(), h = mE(oe, re.interactiveDebounce)), te.triggerTarget && !re.triggerTarget ? qA(te.triggerTarget).forEach(function(ae) {
|
|
38637
|
+
ae.removeAttribute("aria-expanded");
|
|
38638
|
+
}) : re.triggerTarget && t.removeAttribute("aria-expanded"), D(), R(), w && w(te, re), y.popperInstance && (Ae(), fe().forEach(function(ae) {
|
|
38639
|
+
requestAnimationFrame(ae._tippy.popperInstance.forceUpdate);
|
|
38640
38640
|
})), P("onAfterUpdate", [y, K]);
|
|
38641
38641
|
}
|
|
38642
38642
|
}
|
|
@@ -38647,8 +38647,8 @@ function Az(t, e) {
|
|
|
38647
38647
|
}
|
|
38648
38648
|
function Se() {
|
|
38649
38649
|
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("show"));
|
|
38650
|
-
var K = y.state.isVisible, te = y.state.isDestroyed, re = !y.state.isEnabled,
|
|
38651
|
-
if (!(K || te || re ||
|
|
38650
|
+
var K = y.state.isVisible, te = y.state.isDestroyed, re = !y.state.isEnabled, ae = dn.isTouch && !y.props.touch, ge = Iv(y.props.duration, 0, Fr.duration);
|
|
38651
|
+
if (!(K || te || re || ae) && !Q().hasAttribute("disabled") && (P("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
38652
38652
|
if (y.state.isVisible = !0, U() && (F.style.visibility = "visible"), R(), k(), y.state.isMounted || (F.style.transition = "none"), U()) {
|
|
38653
38653
|
var de = O(), Ce = de.box, Ee = de.content;
|
|
38654
38654
|
Dv([Ce, Ee], 0);
|
|
@@ -38658,9 +38658,9 @@ function Az(t, e) {
|
|
|
38658
38658
|
if (!(!y.state.isVisible || l)) {
|
|
38659
38659
|
if (l = !0, F.offsetHeight, F.style.transition = y.props.moveTransition, U() && y.props.animation) {
|
|
38660
38660
|
var He = O(), Te = He.box, Ne = He.content;
|
|
38661
|
-
Dv([Te, Ne],
|
|
38661
|
+
Dv([Te, Ne], ge), wE([Te, Ne], "visible");
|
|
38662
38662
|
}
|
|
38663
|
-
N(), D(), yE(Lv, y), (Pe = y.popperInstance) == null || Pe.forceUpdate(), P("onMount", [y]), y.props.animation && U() && ee(
|
|
38663
|
+
N(), D(), yE(Lv, y), (Pe = y.popperInstance) == null || Pe.forceUpdate(), P("onMount", [y]), y.props.animation && U() && ee(ge, function() {
|
|
38664
38664
|
y.state.isShown = !0, P("onShown", [y]);
|
|
38665
38665
|
});
|
|
38666
38666
|
}
|
|
@@ -38669,20 +38669,20 @@ function Az(t, e) {
|
|
|
38669
38669
|
}
|
|
38670
38670
|
function De() {
|
|
38671
38671
|
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("hide"));
|
|
38672
|
-
var K = !y.state.isVisible, te = y.state.isDestroyed, re = !y.state.isEnabled,
|
|
38672
|
+
var K = !y.state.isVisible, te = y.state.isDestroyed, re = !y.state.isEnabled, ae = Iv(y.props.duration, 1, Fr.duration);
|
|
38673
38673
|
if (!(K || te || re) && (P("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
38674
38674
|
if (y.state.isVisible = !1, y.state.isShown = !1, l = !1, i = !1, U() && (F.style.visibility = "hidden"), M(), G(), R(!0), U()) {
|
|
38675
|
-
var
|
|
38676
|
-
y.props.animation && (Dv([de, Ce],
|
|
38675
|
+
var ge = O(), de = ge.box, Ce = ge.content;
|
|
38676
|
+
y.props.animation && (Dv([de, Ce], ae), wE([de, Ce], "hidden"));
|
|
38677
38677
|
}
|
|
38678
|
-
N(), D(), y.props.animation ? U() && q(
|
|
38678
|
+
N(), D(), y.props.animation ? U() && q(ae, y.unmount) : y.unmount();
|
|
38679
38679
|
}
|
|
38680
38680
|
}
|
|
38681
38681
|
function ye(K) {
|
|
38682
38682
|
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("hideWithInteractivity")), I().addEventListener("mousemove", h), yE(Ul, h), h(K);
|
|
38683
38683
|
}
|
|
38684
|
-
function
|
|
38685
|
-
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (
|
|
38684
|
+
function ne() {
|
|
38685
|
+
process.env.NODE_ENV !== "production" && Mn(y.state.isDestroyed, YA("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (se(), fe().forEach(function(K) {
|
|
38686
38686
|
K._tippy.unmount();
|
|
38687
38687
|
}), F.parentNode && F.parentNode.removeChild(F), Lv = Lv.filter(function(K) {
|
|
38688
38688
|
return K !== y;
|
|
@@ -38845,7 +38845,7 @@ const oz = (t) => {
|
|
|
38845
38845
|
}
|
|
38846
38846
|
}
|
|
38847
38847
|
]
|
|
38848
|
-
}))), Xu = /* @__PURE__ */
|
|
38848
|
+
}))), Xu = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
38849
38849
|
const n = nn({
|
|
38850
38850
|
props: e,
|
|
38851
38851
|
name: "MuiSvgIcon"
|
|
@@ -38860,7 +38860,7 @@ const oz = (t) => {
|
|
|
38860
38860
|
titleAccess: c,
|
|
38861
38861
|
viewBox: f = "0 0 24 24",
|
|
38862
38862
|
...d
|
|
38863
|
-
} = n, h = /* @__PURE__ */
|
|
38863
|
+
} = n, h = /* @__PURE__ */ pe.isValidElement(a) && a.type === "svg", v = {
|
|
38864
38864
|
...n,
|
|
38865
38865
|
color: i,
|
|
38866
38866
|
component: o,
|
|
@@ -38971,7 +38971,7 @@ function An(t, e) {
|
|
|
38971
38971
|
children: t
|
|
38972
38972
|
});
|
|
38973
38973
|
}
|
|
38974
|
-
return process.env.NODE_ENV !== "production" && (r.displayName = `${e}Icon`), r.muiName = Xu.muiName, /* @__PURE__ */
|
|
38974
|
+
return process.env.NODE_ENV !== "production" && (r.displayName = `${e}Icon`), r.muiName = Xu.muiName, /* @__PURE__ */ pe.memo(/* @__PURE__ */ pe.forwardRef(r));
|
|
38975
38975
|
}
|
|
38976
38976
|
function QE(t) {
|
|
38977
38977
|
return t && t.ownerDocument || document;
|
|
@@ -38987,36 +38987,36 @@ function RQ(t) {
|
|
|
38987
38987
|
state: a = "value"
|
|
38988
38988
|
} = t, {
|
|
38989
38989
|
current: A
|
|
38990
|
-
} =
|
|
38990
|
+
} = pe.useRef(e !== void 0), [i, o] = pe.useState(r), s = A ? e : i;
|
|
38991
38991
|
if (process.env.NODE_ENV !== "production") {
|
|
38992
|
-
|
|
38992
|
+
pe.useEffect(() => {
|
|
38993
38993
|
A !== (e !== void 0) && console.error([`MUI: A component is changing the ${A ? "" : "un"}controlled ${a} state of ${n} to be ${A ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
38994
38994
|
`));
|
|
38995
38995
|
}, [a, n, e]);
|
|
38996
38996
|
const {
|
|
38997
38997
|
current: u
|
|
38998
|
-
} =
|
|
38999
|
-
|
|
38998
|
+
} = pe.useRef(r);
|
|
38999
|
+
pe.useEffect(() => {
|
|
39000
39000
|
!A && !Object.is(u, r) && console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
39001
39001
|
`));
|
|
39002
39002
|
}, [JSON.stringify(r)]);
|
|
39003
39003
|
}
|
|
39004
|
-
const l =
|
|
39004
|
+
const l = pe.useCallback((u) => {
|
|
39005
39005
|
A || o(u);
|
|
39006
39006
|
}, []);
|
|
39007
39007
|
return [s, l];
|
|
39008
39008
|
}
|
|
39009
39009
|
function gi(t) {
|
|
39010
|
-
const e =
|
|
39010
|
+
const e = pe.useRef(t);
|
|
39011
39011
|
return Mo(() => {
|
|
39012
39012
|
e.current = t;
|
|
39013
|
-
}),
|
|
39013
|
+
}), pe.useRef((...r) => (
|
|
39014
39014
|
// @ts-expect-error hide `this`
|
|
39015
39015
|
(0, e.current)(...r)
|
|
39016
39016
|
)).current;
|
|
39017
39017
|
}
|
|
39018
39018
|
function Yn(...t) {
|
|
39019
|
-
const e =
|
|
39019
|
+
const e = pe.useRef(void 0), r = pe.useCallback((n) => {
|
|
39020
39020
|
const a = t.map((A) => {
|
|
39021
39021
|
if (A == null)
|
|
39022
39022
|
return null;
|
|
@@ -39034,7 +39034,7 @@ function Yn(...t) {
|
|
|
39034
39034
|
a.forEach((A) => A?.());
|
|
39035
39035
|
};
|
|
39036
39036
|
}, t);
|
|
39037
|
-
return
|
|
39037
|
+
return pe.useMemo(() => t.every((n) => n == null) ? null : (n) => {
|
|
39038
39038
|
e.current && (e.current(), e.current = void 0), n != null && (e.current = r(n));
|
|
39039
39039
|
}, t);
|
|
39040
39040
|
}
|
|
@@ -39126,7 +39126,7 @@ function zu(t) {
|
|
|
39126
39126
|
}
|
|
39127
39127
|
const SE = {};
|
|
39128
39128
|
function PQ(t, e) {
|
|
39129
|
-
const r =
|
|
39129
|
+
const r = pe.useRef(SE);
|
|
39130
39130
|
return r.current === SE && (r.current = t(e)), r;
|
|
39131
39131
|
}
|
|
39132
39132
|
class Wu {
|
|
@@ -39139,8 +39139,8 @@ class Wu {
|
|
|
39139
39139
|
return new Wu();
|
|
39140
39140
|
}
|
|
39141
39141
|
static use() {
|
|
39142
|
-
const e = PQ(Wu.create).current, [r, n] =
|
|
39143
|
-
return e.shouldMount = r, e.setShouldMount = n,
|
|
39142
|
+
const e = PQ(Wu.create).current, [r, n] = pe.useState(!1);
|
|
39143
|
+
return e.shouldMount = r, e.setShouldMount = n, pe.useEffect(e.mountEffect, [r]), e;
|
|
39144
39144
|
}
|
|
39145
39145
|
constructor() {
|
|
39146
39146
|
this.ref = {
|
|
@@ -39724,7 +39724,7 @@ Rm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
39724
39724
|
Rm.defaultProps = Cz;
|
|
39725
39725
|
const Ez = [];
|
|
39726
39726
|
function xz(t) {
|
|
39727
|
-
|
|
39727
|
+
pe.useEffect(t, Ez);
|
|
39728
39728
|
}
|
|
39729
39729
|
class ef {
|
|
39730
39730
|
static create() {
|
|
@@ -39759,13 +39759,13 @@ function NQ(t) {
|
|
|
39759
39759
|
in: o,
|
|
39760
39760
|
onExited: s,
|
|
39761
39761
|
timeout: l
|
|
39762
|
-
} = t, [u, c] =
|
|
39762
|
+
} = t, [u, c] = pe.useState(!1), f = ft(e, r.ripple, r.rippleVisible, n && r.ripplePulsate), d = {
|
|
39763
39763
|
width: i,
|
|
39764
39764
|
height: i,
|
|
39765
39765
|
top: -(i / 2) + A,
|
|
39766
39766
|
left: -(i / 2) + a
|
|
39767
39767
|
}, h = ft(r.child, u && r.childLeaving, n && r.childPulsate);
|
|
39768
|
-
return !o && !u && c(!0),
|
|
39768
|
+
return !o && !u && c(!0), pe.useEffect(() => {
|
|
39769
39769
|
if (!o && s != null) {
|
|
39770
39770
|
const v = setTimeout(s, l);
|
|
39771
39771
|
return () => {
|
|
@@ -39912,7 +39912,7 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
39912
39912
|
animation-iteration-count: infinite;
|
|
39913
39913
|
animation-delay: 200ms;
|
|
39914
39914
|
}
|
|
39915
|
-
`, _Q = /* @__PURE__ */
|
|
39915
|
+
`, _Q = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
39916
39916
|
const n = nn({
|
|
39917
39917
|
props: e,
|
|
39918
39918
|
name: "MuiTouchRipple"
|
|
@@ -39921,11 +39921,11 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
39921
39921
|
classes: A = {},
|
|
39922
39922
|
className: i,
|
|
39923
39923
|
...o
|
|
39924
|
-
} = n, [s, l] =
|
|
39925
|
-
|
|
39924
|
+
} = n, [s, l] = pe.useState([]), u = pe.useRef(0), c = pe.useRef(null);
|
|
39925
|
+
pe.useEffect(() => {
|
|
39926
39926
|
c.current && (c.current(), c.current = null);
|
|
39927
39927
|
}, [s]);
|
|
39928
|
-
const f =
|
|
39928
|
+
const f = pe.useRef(!1), d = oi(), h = pe.useRef(null), v = pe.useRef(null), p = pe.useCallback((y) => {
|
|
39929
39929
|
const {
|
|
39930
39930
|
pulsate: C,
|
|
39931
39931
|
rippleX: F,
|
|
@@ -39948,7 +39948,7 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
39948
39948
|
rippleY: w,
|
|
39949
39949
|
rippleSize: x
|
|
39950
39950
|
}, u.current)]), u.current += 1, c.current = E;
|
|
39951
|
-
}, [A]), g =
|
|
39951
|
+
}, [A]), g = pe.useCallback((y = {}, C = {}, F = () => {
|
|
39952
39952
|
}) => {
|
|
39953
39953
|
const {
|
|
39954
39954
|
pulsate: w = !1,
|
|
@@ -40000,11 +40000,11 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
40000
40000
|
rippleSize: I,
|
|
40001
40001
|
cb: F
|
|
40002
40002
|
});
|
|
40003
|
-
}, [a, p, d]), B =
|
|
40003
|
+
}, [a, p, d]), B = pe.useCallback(() => {
|
|
40004
40004
|
g({}, {
|
|
40005
40005
|
pulsate: !0
|
|
40006
40006
|
});
|
|
40007
|
-
}, [g]), m =
|
|
40007
|
+
}, [g]), m = pe.useCallback((y, C) => {
|
|
40008
40008
|
if (d.clear(), y?.type === "touchend" && h.current) {
|
|
40009
40009
|
h.current(), h.current = null, d.start(0, () => {
|
|
40010
40010
|
m(y, C);
|
|
@@ -40013,7 +40013,7 @@ const Lr = rn("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
40013
40013
|
}
|
|
40014
40014
|
h.current = null, l((F) => F.length > 0 ? F.slice(1) : F), c.current = C;
|
|
40015
40015
|
}, [d]);
|
|
40016
|
-
return
|
|
40016
|
+
return pe.useImperativeHandle(r, () => ({
|
|
40017
40017
|
pulsate: B,
|
|
40018
40018
|
start: g,
|
|
40019
40019
|
stop: m
|
|
@@ -40098,7 +40098,7 @@ const Oz = rn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Lz = (t) =
|
|
|
40098
40098
|
"@media print": {
|
|
40099
40099
|
colorAdjust: "exact"
|
|
40100
40100
|
}
|
|
40101
|
-
}), Pm = /* @__PURE__ */
|
|
40101
|
+
}), Pm = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
40102
40102
|
const n = nn({
|
|
40103
40103
|
props: e,
|
|
40104
40104
|
name: "MuiButtonBase"
|
|
@@ -40133,14 +40133,14 @@ const Oz = rn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Lz = (t) =
|
|
|
40133
40133
|
touchRippleRef: O,
|
|
40134
40134
|
type: L,
|
|
40135
40135
|
...R
|
|
40136
|
-
} = n, P =
|
|
40137
|
-
l && M && _(!1),
|
|
40136
|
+
} = n, P = pe.useRef(null), N = hz(), D = Yn(N.ref, O), [M, _] = pe.useState(!1);
|
|
40137
|
+
l && M && _(!1), pe.useImperativeHandle(a, () => ({
|
|
40138
40138
|
focusVisible: () => {
|
|
40139
40139
|
_(!0), P.current.focus();
|
|
40140
40140
|
}
|
|
40141
40141
|
}), []);
|
|
40142
40142
|
const V = N.shouldMount && !u && !l;
|
|
40143
|
-
|
|
40143
|
+
pe.useEffect(() => {
|
|
40144
40144
|
M && f && !u && N.pulsate();
|
|
40145
40145
|
}, [u, f, M, N]);
|
|
40146
40146
|
const X = Ln(N, "start", w, c), k = Ln(N, "stop", g, c), G = Ln(N, "stop", B, c), q = Ln(N, "stop", E, c), ee = Ln(N, "stop", (j) => {
|
|
@@ -40163,9 +40163,9 @@ const Oz = rn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Lz = (t) =
|
|
|
40163
40163
|
});
|
|
40164
40164
|
let ue = s;
|
|
40165
40165
|
ue === "button" && (R.href || R.to) && (ue = h);
|
|
40166
|
-
const
|
|
40167
|
-
ue === "button" ? (
|
|
40168
|
-
const
|
|
40166
|
+
const Ae = {};
|
|
40167
|
+
ue === "button" ? (Ae.type = L === void 0 ? "button" : L, Ae.disabled = l) : (!R.href && !R.to && (Ae.role = "button"), l && (Ae["aria-disabled"] = l));
|
|
40168
|
+
const se = Yn(r, P), he = {
|
|
40169
40169
|
...n,
|
|
40170
40170
|
centerRipple: A,
|
|
40171
40171
|
component: s,
|
|
@@ -40193,10 +40193,10 @@ const Oz = rn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Lz = (t) =
|
|
|
40193
40193
|
onTouchEnd: z,
|
|
40194
40194
|
onTouchMove: J,
|
|
40195
40195
|
onTouchStart: Z,
|
|
40196
|
-
ref:
|
|
40196
|
+
ref: se,
|
|
40197
40197
|
tabIndex: l ? -1 : Q,
|
|
40198
40198
|
type: L,
|
|
40199
|
-
...
|
|
40199
|
+
...Ae,
|
|
40200
40200
|
...R,
|
|
40201
40201
|
children: [i, V ? /* @__PURE__ */ $.jsx(_Q, {
|
|
40202
40202
|
ref: D,
|
|
@@ -40369,9 +40369,9 @@ process.env.NODE_ENV !== "production" && (Pm.propTypes = {
|
|
|
40369
40369
|
function Rz(t) {
|
|
40370
40370
|
return Sr("MuiButton", t);
|
|
40371
40371
|
}
|
|
40372
|
-
const _a = rn("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), KQ = /* @__PURE__ */
|
|
40372
|
+
const _a = rn("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), KQ = /* @__PURE__ */ pe.createContext({});
|
|
40373
40373
|
process.env.NODE_ENV !== "production" && (KQ.displayName = "ButtonGroupContext");
|
|
40374
|
-
const VQ = /* @__PURE__ */
|
|
40374
|
+
const VQ = /* @__PURE__ */ pe.createContext(void 0);
|
|
40375
40375
|
process.env.NODE_ENV !== "production" && (VQ.displayName = "ButtonGroupButtonContext");
|
|
40376
40376
|
const Pz = (t) => {
|
|
40377
40377
|
const {
|
|
@@ -40813,8 +40813,8 @@ const Pz = (t) => {
|
|
|
40813
40813
|
display: "inline-block",
|
|
40814
40814
|
width: "1em",
|
|
40815
40815
|
height: "1em"
|
|
40816
|
-
}), ZA = /* @__PURE__ */
|
|
40817
|
-
const n =
|
|
40816
|
+
}), ZA = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
40817
|
+
const n = pe.useContext(KQ), a = pe.useContext(VQ), A = Lo(n, e), i = nn({
|
|
40818
40818
|
props: A,
|
|
40819
40819
|
name: "MuiButton"
|
|
40820
40820
|
}), {
|
|
@@ -41014,10 +41014,10 @@ process.env.NODE_ENV !== "production" && (ZA.propTypes = {
|
|
|
41014
41014
|
*/
|
|
41015
41015
|
variant: S.oneOfType([S.oneOf(["contained", "outlined", "text"]), S.string])
|
|
41016
41016
|
});
|
|
41017
|
-
const $Q = /* @__PURE__ */
|
|
41017
|
+
const $Q = /* @__PURE__ */ pe.createContext(void 0);
|
|
41018
41018
|
process.env.NODE_ENV !== "production" && ($Q.displayName = "FormControlContext");
|
|
41019
41019
|
function Kz() {
|
|
41020
|
-
return
|
|
41020
|
+
return pe.useContext($Q);
|
|
41021
41021
|
}
|
|
41022
41022
|
function Vz(t) {
|
|
41023
41023
|
return Sr("PrivateSwitchBase", t);
|
|
@@ -41202,7 +41202,7 @@ const Yz = (t) => {
|
|
|
41202
41202
|
margin: 0,
|
|
41203
41203
|
padding: 0,
|
|
41204
41204
|
zIndex: 1
|
|
41205
|
-
}), WQ = /* @__PURE__ */
|
|
41205
|
+
}), WQ = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
41206
41206
|
const {
|
|
41207
41207
|
autoFocus: n,
|
|
41208
41208
|
checked: a,
|
|
@@ -41521,7 +41521,7 @@ const Mv = rn("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
|
|
|
41521
41521
|
}
|
|
41522
41522
|
}
|
|
41523
41523
|
}]
|
|
41524
|
-
}))), tW = /* @__PURE__ */ $.jsx(jz, {}), rW = /* @__PURE__ */ $.jsx(Wz, {}), nW = /* @__PURE__ */ $.jsx(qz, {}), au = /* @__PURE__ */
|
|
41524
|
+
}))), tW = /* @__PURE__ */ $.jsx(jz, {}), rW = /* @__PURE__ */ $.jsx(Wz, {}), nW = /* @__PURE__ */ $.jsx(qz, {}), au = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
41525
41525
|
const n = nn({
|
|
41526
41526
|
props: e,
|
|
41527
41527
|
name: "MuiCheckbox"
|
|
@@ -41557,10 +41557,10 @@ const Mv = rn("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
|
|
|
41557
41557
|
ownerState: B,
|
|
41558
41558
|
additionalProps: {
|
|
41559
41559
|
type: "checkbox",
|
|
41560
|
-
icon: /* @__PURE__ */
|
|
41560
|
+
icon: /* @__PURE__ */ pe.cloneElement(p, {
|
|
41561
41561
|
fontSize: p.props.fontSize ?? u
|
|
41562
41562
|
}),
|
|
41563
|
-
checkedIcon: /* @__PURE__ */
|
|
41563
|
+
checkedIcon: /* @__PURE__ */ pe.cloneElement(g, {
|
|
41564
41564
|
fontSize: g.props.fontSize ?? u
|
|
41565
41565
|
}),
|
|
41566
41566
|
disableRipple: c,
|
|
@@ -41999,7 +41999,7 @@ const iW = {
|
|
|
41999
41999
|
body1: "p",
|
|
42000
42000
|
body2: "p",
|
|
42001
42001
|
inherit: "p"
|
|
42002
|
-
}, ei = /* @__PURE__ */
|
|
42002
|
+
}, ei = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
42003
42003
|
const {
|
|
42004
42004
|
color: n,
|
|
42005
42005
|
...a
|
|
@@ -42157,7 +42157,7 @@ function jQ(t, e, r, n, a) {
|
|
|
42157
42157
|
const km = Ii(S.element, jQ);
|
|
42158
42158
|
km.isRequired = Ii(S.element.isRequired, jQ);
|
|
42159
42159
|
function Hm(t) {
|
|
42160
|
-
return parseInt(
|
|
42160
|
+
return parseInt(pe.version, 10) >= 19 ? t?.props?.ref || null : t?.ref || null;
|
|
42161
42161
|
}
|
|
42162
42162
|
const fW = (t) => t.scrollTop;
|
|
42163
42163
|
function ME(t, e) {
|
|
@@ -42184,7 +42184,7 @@ const dW = {
|
|
|
42184
42184
|
opacity: 1,
|
|
42185
42185
|
transform: "none"
|
|
42186
42186
|
}
|
|
42187
|
-
}, Rv = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), qu = /* @__PURE__ */
|
|
42187
|
+
}, Rv = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), qu = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
42188
42188
|
const {
|
|
42189
42189
|
addEndListener: n,
|
|
42190
42190
|
appear: a = !0,
|
|
@@ -42202,7 +42202,7 @@ const dW = {
|
|
|
42202
42202
|
// eslint-disable-next-line react/prop-types
|
|
42203
42203
|
TransitionComponent: p = jn,
|
|
42204
42204
|
...g
|
|
42205
|
-
} = e, B = oi(), m =
|
|
42205
|
+
} = e, B = oi(), m = pe.useRef(), y = Ig(), C = pe.useRef(null), F = Yn(C, Hm(A), r), w = (O) => (L) => {
|
|
42206
42206
|
if (O) {
|
|
42207
42207
|
const R = C.current;
|
|
42208
42208
|
L === void 0 ? O(R) : O(R, L);
|
|
@@ -42269,7 +42269,7 @@ const dW = {
|
|
|
42269
42269
|
children: (O, {
|
|
42270
42270
|
ownerState: L,
|
|
42271
42271
|
...R
|
|
42272
|
-
}) => /* @__PURE__ */
|
|
42272
|
+
}) => /* @__PURE__ */ pe.cloneElement(A, {
|
|
42273
42273
|
style: {
|
|
42274
42274
|
opacity: 0,
|
|
42275
42275
|
transform: wg(0.75),
|
|
@@ -42386,12 +42386,12 @@ function hW(t) {
|
|
|
42386
42386
|
function vW(t) {
|
|
42387
42387
|
return typeof t == "function" ? t() : t;
|
|
42388
42388
|
}
|
|
42389
|
-
const Ju = /* @__PURE__ */
|
|
42389
|
+
const Ju = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
42390
42390
|
const {
|
|
42391
42391
|
children: n,
|
|
42392
42392
|
container: a,
|
|
42393
42393
|
disablePortal: A = !1
|
|
42394
|
-
} = e, [i, o] =
|
|
42394
|
+
} = e, [i, o] = pe.useState(null), s = Yn(/* @__PURE__ */ pe.isValidElement(n) ? Hm(n) : null, r);
|
|
42395
42395
|
if (Mo(() => {
|
|
42396
42396
|
A || o(vW(a) || document.body);
|
|
42397
42397
|
}, [a, A]), Mo(() => {
|
|
@@ -42400,11 +42400,11 @@ const Ju = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
42400
42400
|
UE(r, null);
|
|
42401
42401
|
};
|
|
42402
42402
|
}, [r, i, A]), A) {
|
|
42403
|
-
if (/* @__PURE__ */
|
|
42403
|
+
if (/* @__PURE__ */ pe.isValidElement(n)) {
|
|
42404
42404
|
const l = {
|
|
42405
42405
|
ref: s
|
|
42406
42406
|
};
|
|
42407
|
-
return /* @__PURE__ */
|
|
42407
|
+
return /* @__PURE__ */ pe.cloneElement(n, l);
|
|
42408
42408
|
}
|
|
42409
42409
|
return n;
|
|
42410
42410
|
}
|
|
@@ -42473,7 +42473,7 @@ const yW = (t) => {
|
|
|
42473
42473
|
return tn({
|
|
42474
42474
|
root: ["root"]
|
|
42475
42475
|
}, pW, e);
|
|
42476
|
-
}, BW = {}, wW = /* @__PURE__ */
|
|
42476
|
+
}, BW = {}, wW = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
42477
42477
|
const {
|
|
42478
42478
|
anchorEl: n,
|
|
42479
42479
|
children: a,
|
|
@@ -42491,14 +42491,14 @@ const yW = (t) => {
|
|
|
42491
42491
|
ownerState: v,
|
|
42492
42492
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
42493
42493
|
...p
|
|
42494
|
-
} = e, g =
|
|
42494
|
+
} = e, g = pe.useRef(null), B = Yn(g, r), m = pe.useRef(null), y = Yn(m, c), C = pe.useRef(y);
|
|
42495
42495
|
Mo(() => {
|
|
42496
42496
|
C.current = y;
|
|
42497
|
-
}, [y]),
|
|
42498
|
-
const F = gW(l, A), [w, x] =
|
|
42499
|
-
|
|
42497
|
+
}, [y]), pe.useImperativeHandle(c, () => m.current, []);
|
|
42498
|
+
const F = gW(l, A), [w, x] = pe.useState(F), [E, b] = pe.useState(Zu(n));
|
|
42499
|
+
pe.useEffect(() => {
|
|
42500
42500
|
m.current && m.current.forceUpdate();
|
|
42501
|
-
}),
|
|
42501
|
+
}), pe.useEffect(() => {
|
|
42502
42502
|
n && b(Zu(n));
|
|
42503
42503
|
}, [n]), Mo(() => {
|
|
42504
42504
|
if (!E || !s)
|
|
@@ -42560,7 +42560,7 @@ const yW = (t) => {
|
|
|
42560
42560
|
...I,
|
|
42561
42561
|
children: typeof a == "function" ? a(T) : a
|
|
42562
42562
|
});
|
|
42563
|
-
}), qQ = /* @__PURE__ */
|
|
42563
|
+
}), qQ = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
42564
42564
|
const {
|
|
42565
42565
|
anchorEl: n,
|
|
42566
42566
|
children: a,
|
|
@@ -42578,7 +42578,7 @@ const yW = (t) => {
|
|
|
42578
42578
|
slotProps: p = {},
|
|
42579
42579
|
slots: g = {},
|
|
42580
42580
|
...B
|
|
42581
|
-
} = e, [m, y] =
|
|
42581
|
+
} = e, [m, y] = pe.useState(!0), C = () => {
|
|
42582
42582
|
y(!1);
|
|
42583
42583
|
}, F = () => {
|
|
42584
42584
|
y(!0);
|
|
@@ -42751,7 +42751,7 @@ process.env.NODE_ENV !== "production" && (qQ.propTypes = {
|
|
|
42751
42751
|
const bW = Ct(qQ, {
|
|
42752
42752
|
name: "MuiPopper",
|
|
42753
42753
|
slot: "Root"
|
|
42754
|
-
})({}), Nm = /* @__PURE__ */
|
|
42754
|
+
})({}), Nm = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
42755
42755
|
const n = n1(), a = nn({
|
|
42756
42756
|
props: e,
|
|
42757
42757
|
name: "MuiPopper"
|
|
@@ -43204,7 +43204,7 @@ function Il(t, e) {
|
|
|
43204
43204
|
e && e(r, ...n), t(r, ...n);
|
|
43205
43205
|
};
|
|
43206
43206
|
}
|
|
43207
|
-
const si = /* @__PURE__ */
|
|
43207
|
+
const si = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
43208
43208
|
const n = nn({
|
|
43209
43209
|
props: e,
|
|
43210
43210
|
name: "MuiTooltip"
|
|
@@ -43238,9 +43238,9 @@ const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
43238
43238
|
TransitionComponent: I,
|
|
43239
43239
|
TransitionProps: O,
|
|
43240
43240
|
...L
|
|
43241
|
-
} = n, R = /* @__PURE__ */
|
|
43241
|
+
} = n, R = /* @__PURE__ */ pe.isValidElement(A) ? A : /* @__PURE__ */ $.jsx("span", {
|
|
43242
43242
|
children: A
|
|
43243
|
-
}), P = Ig(), N = n1(), [D, M] =
|
|
43243
|
+
}), P = Ig(), N = n1(), [D, M] = pe.useState(), [_, V] = pe.useState(null), X = pe.useRef(!1), k = f || g, G = oi(), q = oi(), ee = oi(), Z = oi(), [z, J] = RQ({
|
|
43244
43244
|
controlled: w,
|
|
43245
43245
|
default: !1,
|
|
43246
43246
|
name: "Tooltip",
|
|
@@ -43250,16 +43250,16 @@ const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
43250
43250
|
if (process.env.NODE_ENV !== "production") {
|
|
43251
43251
|
const {
|
|
43252
43252
|
current: Be
|
|
43253
|
-
} =
|
|
43254
|
-
|
|
43253
|
+
} = pe.useRef(w !== void 0);
|
|
43254
|
+
pe.useEffect(() => {
|
|
43255
43255
|
D && D.disabled && !Be && Q !== "" && D.tagName.toLowerCase() === "button" && console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
|
|
43256
43256
|
`));
|
|
43257
43257
|
}, [Q, D, Be]);
|
|
43258
43258
|
}
|
|
43259
|
-
const W = a1(B), oe =
|
|
43259
|
+
const W = a1(B), oe = pe.useRef(), ie = gi(() => {
|
|
43260
43260
|
oe.current !== void 0 && (document.body.style.WebkitUserSelect = oe.current, oe.current = void 0), Z.clear();
|
|
43261
43261
|
});
|
|
43262
|
-
|
|
43262
|
+
pe.useEffect(() => ie, [ie]);
|
|
43263
43263
|
const Ue = (Be) => {
|
|
43264
43264
|
RE.clear(), Sl = !0, J(!0), F && !Y && F(Be);
|
|
43265
43265
|
}, ue = gi(
|
|
@@ -43273,32 +43273,32 @@ const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
43273
43273
|
X.current = !1;
|
|
43274
43274
|
});
|
|
43275
43275
|
}
|
|
43276
|
-
),
|
|
43276
|
+
), Ae = (Be) => {
|
|
43277
43277
|
X.current && Be.type !== "touchstart" || (D && D.removeAttribute("title"), q.clear(), ee.clear(), h || Sl && v ? q.start(Sl ? v : h, () => {
|
|
43278
43278
|
Ue(Be);
|
|
43279
43279
|
}) : Ue(Be));
|
|
43280
|
-
},
|
|
43280
|
+
}, se = (Be) => {
|
|
43281
43281
|
q.clear(), ee.start(m, () => {
|
|
43282
43282
|
ue(Be);
|
|
43283
43283
|
});
|
|
43284
|
-
}, [, he] =
|
|
43285
|
-
zu(Be.target) || (he(!1),
|
|
43284
|
+
}, [, he] = pe.useState(!1), fe = (Be) => {
|
|
43285
|
+
zu(Be.target) || (he(!1), se(Be));
|
|
43286
43286
|
}, j = (Be) => {
|
|
43287
|
-
D || M(Be.currentTarget), zu(Be.target) && (he(!0),
|
|
43288
|
-
},
|
|
43287
|
+
D || M(Be.currentTarget), zu(Be.target) && (he(!0), Ae(Be));
|
|
43288
|
+
}, le = (Be) => {
|
|
43289
43289
|
X.current = !0;
|
|
43290
43290
|
const Xe = R.props;
|
|
43291
43291
|
Xe.onTouchStart && Xe.onTouchStart(Be);
|
|
43292
|
-
},
|
|
43293
|
-
|
|
43294
|
-
document.body.style.WebkitUserSelect = oe.current,
|
|
43292
|
+
}, ve = (Be) => {
|
|
43293
|
+
le(Be), ee.clear(), G.clear(), ie(), oe.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Z.start(p, () => {
|
|
43294
|
+
document.body.style.WebkitUserSelect = oe.current, Ae(Be);
|
|
43295
43295
|
});
|
|
43296
43296
|
}, me = (Be) => {
|
|
43297
43297
|
R.props.onTouchEnd && R.props.onTouchEnd(Be), ie(), ee.start(y, () => {
|
|
43298
43298
|
ue(Be);
|
|
43299
43299
|
});
|
|
43300
43300
|
};
|
|
43301
|
-
|
|
43301
|
+
pe.useEffect(() => {
|
|
43302
43302
|
if (!Y)
|
|
43303
43303
|
return;
|
|
43304
43304
|
function Be(Xe) {
|
|
@@ -43310,7 +43310,7 @@ const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
43310
43310
|
}, [ue, Y]);
|
|
43311
43311
|
const be = Yn(Hm(R), M, r);
|
|
43312
43312
|
!Q && Q !== 0 && (Y = !1);
|
|
43313
|
-
const Re =
|
|
43313
|
+
const Re = pe.useRef(), Le = (Be) => {
|
|
43314
43314
|
const Xe = R.props;
|
|
43315
43315
|
Xe.onMouseMove && Xe.onMouseMove(Be), ao = {
|
|
43316
43316
|
x: Be.clientX,
|
|
@@ -43323,18 +43323,18 @@ const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
43323
43323
|
...L,
|
|
43324
43324
|
...R.props,
|
|
43325
43325
|
className: ft(L.className, R.props.className),
|
|
43326
|
-
onTouchStart:
|
|
43326
|
+
onTouchStart: le,
|
|
43327
43327
|
ref: be,
|
|
43328
43328
|
...g ? {
|
|
43329
43329
|
onMouseMove: Le
|
|
43330
43330
|
} : {}
|
|
43331
43331
|
};
|
|
43332
|
-
process.env.NODE_ENV !== "production" && (ye["data-mui-internal-clone-element"] = !0,
|
|
43332
|
+
process.env.NODE_ENV !== "production" && (ye["data-mui-internal-clone-element"] = !0, pe.useEffect(() => {
|
|
43333
43333
|
D && !D.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
43334
43334
|
`));
|
|
43335
43335
|
}, [D]));
|
|
43336
|
-
const
|
|
43337
|
-
d || (ye.onTouchStart =
|
|
43336
|
+
const ne = {};
|
|
43337
|
+
d || (ye.onTouchStart = ve, ye.onTouchEnd = me), c || (ye.onMouseOver = Il(Ae, ye.onMouseOver), ye.onMouseLeave = Il(se, ye.onMouseLeave), k || (ne.onMouseOver = Ae, ne.onMouseLeave = se)), u || (ye.onFocus = Il(j, ye.onFocus), ye.onBlur = Il(fe, ye.onBlur), k || (ne.onFocus = j, ne.onBlur = fe)), process.env.NODE_ENV !== "production" && R.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${R.props.title}\` or the Tooltip component.`].join(`
|
|
43338
43338
|
`));
|
|
43339
43339
|
const H = {
|
|
43340
43340
|
...n,
|
|
@@ -43344,7 +43344,7 @@ const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
43344
43344
|
placement: x,
|
|
43345
43345
|
PopperComponentProp: E,
|
|
43346
43346
|
touch: X.current
|
|
43347
|
-
}, K = typeof T.popper == "function" ? T.popper(H) : T.popper, te =
|
|
43347
|
+
}, K = typeof T.popper == "function" ? T.popper(H) : T.popper, te = pe.useMemo(() => {
|
|
43348
43348
|
let Be = [{
|
|
43349
43349
|
name: "arrow",
|
|
43350
43350
|
enabled: !!_,
|
|
@@ -43358,7 +43358,7 @@ const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
43358
43358
|
...K?.popperOptions,
|
|
43359
43359
|
modifiers: Be
|
|
43360
43360
|
};
|
|
43361
|
-
}, [_, b.popperOptions, K?.popperOptions]), re = xW(H),
|
|
43361
|
+
}, [_, b.popperOptions, K?.popperOptions]), re = xW(H), ae = typeof T.transition == "function" ? T.transition(H) : T.transition, ge = {
|
|
43362
43362
|
slots: {
|
|
43363
43363
|
popper: o.Popper,
|
|
43364
43364
|
transition: o.Transition ?? I,
|
|
@@ -43376,32 +43376,32 @@ const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
43376
43376
|
tooltip: T.tooltip ?? s.tooltip,
|
|
43377
43377
|
transition: {
|
|
43378
43378
|
...O,
|
|
43379
|
-
...
|
|
43379
|
+
...ae ?? s.transition
|
|
43380
43380
|
}
|
|
43381
43381
|
}
|
|
43382
43382
|
}, [de, Ce] = nA("popper", {
|
|
43383
43383
|
elementType: FW,
|
|
43384
|
-
externalForwardedProps:
|
|
43384
|
+
externalForwardedProps: ge,
|
|
43385
43385
|
ownerState: H,
|
|
43386
43386
|
className: ft(re.popper, b?.className)
|
|
43387
43387
|
}), [Ee, Ie] = nA("transition", {
|
|
43388
43388
|
elementType: qu,
|
|
43389
|
-
externalForwardedProps:
|
|
43389
|
+
externalForwardedProps: ge,
|
|
43390
43390
|
ownerState: H
|
|
43391
43391
|
}), [Pe, He] = nA("tooltip", {
|
|
43392
43392
|
elementType: TW,
|
|
43393
43393
|
className: re.tooltip,
|
|
43394
|
-
externalForwardedProps:
|
|
43394
|
+
externalForwardedProps: ge,
|
|
43395
43395
|
ownerState: H
|
|
43396
43396
|
}), [Te, Ne] = nA("arrow", {
|
|
43397
43397
|
elementType: QW,
|
|
43398
43398
|
className: re.arrow,
|
|
43399
|
-
externalForwardedProps:
|
|
43399
|
+
externalForwardedProps: ge,
|
|
43400
43400
|
ownerState: H,
|
|
43401
43401
|
ref: V
|
|
43402
43402
|
});
|
|
43403
|
-
return /* @__PURE__ */ $.jsxs(
|
|
43404
|
-
children: [/* @__PURE__ */
|
|
43403
|
+
return /* @__PURE__ */ $.jsxs(pe.Fragment, {
|
|
43404
|
+
children: [/* @__PURE__ */ pe.cloneElement(R, ye), /* @__PURE__ */ $.jsx(de, {
|
|
43405
43405
|
as: E ?? Nm,
|
|
43406
43406
|
placement: x,
|
|
43407
43407
|
anchorEl: g ? {
|
|
@@ -43418,7 +43418,7 @@ const si = /* @__PURE__ */ ve.forwardRef(function(e, r) {
|
|
|
43418
43418
|
open: D ? Y : !1,
|
|
43419
43419
|
id: W,
|
|
43420
43420
|
transition: !0,
|
|
43421
|
-
...
|
|
43421
|
+
...ne,
|
|
43422
43422
|
...Ce,
|
|
43423
43423
|
popperOptions: te,
|
|
43424
43424
|
children: ({
|
|
@@ -43945,7 +43945,7 @@ const NW = (t) => {
|
|
|
43945
43945
|
backgroundImage: "var(--Paper-overlay)"
|
|
43946
43946
|
}
|
|
43947
43947
|
}]
|
|
43948
|
-
}))), eU = /* @__PURE__ */
|
|
43948
|
+
}))), eU = /* @__PURE__ */ pe.forwardRef(function(e, r) {
|
|
43949
43949
|
const n = nn({
|
|
43950
43950
|
props: e,
|
|
43951
43951
|
name: "MuiPaper"
|
|
@@ -44289,8 +44289,8 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44289
44289
|
for (let fe = 0; fe < m.length; fe++)
|
|
44290
44290
|
oe.push([]);
|
|
44291
44291
|
E.forEach((fe) => {
|
|
44292
|
-
const j = W.indexOf(fe.from),
|
|
44293
|
-
j !== -1 &&
|
|
44292
|
+
const j = W.indexOf(fe.from), le = W.indexOf(fe.to);
|
|
44293
|
+
j !== -1 && le !== -1 && oe[j].push(le);
|
|
44294
44294
|
});
|
|
44295
44295
|
const ie = Vn({
|
|
44296
44296
|
container: document.getElementById(X),
|
|
@@ -44315,8 +44315,8 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44315
44315
|
});
|
|
44316
44316
|
g.current = ie, ie.ready(() => {
|
|
44317
44317
|
ie.nodes().forEach((fe) => {
|
|
44318
|
-
const
|
|
44319
|
-
fe.css("width",
|
|
44318
|
+
const le = [30, 70, 110][Math.floor(Math.random() * 3)];
|
|
44319
|
+
fe.css("width", le), fe.css("height", le);
|
|
44320
44320
|
}), ie.layout({
|
|
44321
44321
|
name: "cose-bilkent",
|
|
44322
44322
|
animate: "end",
|
|
@@ -44329,9 +44329,9 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44329
44329
|
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
|
|
44330
44330
|
</svg>
|
|
44331
44331
|
`)}`;
|
|
44332
|
-
for (var
|
|
44333
|
-
Q[q[
|
|
44334
|
-
data: { id: Z(
|
|
44332
|
+
for (var Ae = 0; Ae < m.length; Ae++)
|
|
44333
|
+
Q[q[Ae]] !== !1 && (t?.centered && m[Ae].id === t.centered.id ? ie.add({
|
|
44334
|
+
data: { id: Z(Ae) },
|
|
44335
44335
|
// create name
|
|
44336
44336
|
position: {
|
|
44337
44337
|
// random position
|
|
@@ -44340,8 +44340,8 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44340
44340
|
},
|
|
44341
44341
|
style: {
|
|
44342
44342
|
// find color based on CRE
|
|
44343
|
-
"background-color": o ? o(m[
|
|
44344
|
-
label: T ? m[
|
|
44343
|
+
"background-color": o ? o(m[Ae]) : "grey",
|
|
44344
|
+
label: T ? m[Ae].id : "",
|
|
44345
44345
|
fontSize: "12px",
|
|
44346
44346
|
borderWidth: "2px",
|
|
44347
44347
|
borderColor: "black",
|
|
@@ -44351,7 +44351,7 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44351
44351
|
backgroundImage: `url(${ue})`
|
|
44352
44352
|
}
|
|
44353
44353
|
}) : ie.add({
|
|
44354
|
-
data: { id: Z(
|
|
44354
|
+
data: { id: Z(Ae) },
|
|
44355
44355
|
// create name
|
|
44356
44356
|
position: {
|
|
44357
44357
|
// random position
|
|
@@ -44360,42 +44360,42 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44360
44360
|
},
|
|
44361
44361
|
style: {
|
|
44362
44362
|
// find color based on CRE
|
|
44363
|
-
"background-color": o ? o(m[
|
|
44364
|
-
label: T ? i ? i(m[
|
|
44363
|
+
"background-color": o ? o(m[Ae]) : "grey",
|
|
44364
|
+
label: T ? i ? i(m[Ae]) : m[Ae].id : "",
|
|
44365
44365
|
fontSize: "12px",
|
|
44366
44366
|
fontFamily: f
|
|
44367
44367
|
}
|
|
44368
44368
|
}));
|
|
44369
|
-
let
|
|
44369
|
+
let se = 0;
|
|
44370
44370
|
for (var he = 0; he < m.length; he++)
|
|
44371
44371
|
if (Q[q[he]] !== !1) {
|
|
44372
44372
|
let fe = oe[he].length;
|
|
44373
44373
|
for (let j = 0; j < fe; j++) {
|
|
44374
|
-
const
|
|
44375
|
-
if (Q[q[oe[he][j]]] !== !1 && (!
|
|
44376
|
-
let
|
|
44374
|
+
const le = E[se]?.category;
|
|
44375
|
+
if (Q[q[oe[he][j]]] !== !1 && (!le || Q[w[se]] !== !1)) {
|
|
44376
|
+
let ve = t.edge.every((me) => me.category);
|
|
44377
44377
|
ie.add({
|
|
44378
44378
|
data: {
|
|
44379
|
-
id: "edge " +
|
|
44379
|
+
id: "edge " + se,
|
|
44380
44380
|
source: Z(he),
|
|
44381
44381
|
target: Z(oe[he][j]),
|
|
44382
|
-
category:
|
|
44382
|
+
category: ve ? E[se].category : "Edge"
|
|
44383
44383
|
},
|
|
44384
44384
|
style: {
|
|
44385
|
-
"line-color": o ? o(E[
|
|
44385
|
+
"line-color": o ? o(E[se]) : "grey",
|
|
44386
44386
|
"target-arrow-shape": v ? "triangle" : null,
|
|
44387
|
-
"target-arrow-color": o ? o(E[
|
|
44388
|
-
width: A(C[
|
|
44387
|
+
"target-arrow-color": o ? o(E[se]) : "grey",
|
|
44388
|
+
width: A(C[se])
|
|
44389
44389
|
}
|
|
44390
44390
|
});
|
|
44391
44391
|
}
|
|
44392
|
-
|
|
44392
|
+
se++;
|
|
44393
44393
|
}
|
|
44394
44394
|
}
|
|
44395
44395
|
return ie.nodes().forEach((fe, j) => {
|
|
44396
|
-
const
|
|
44397
|
-
t?.centered && W[j].toString() === t.centered.id ?
|
|
44398
|
-
const me = Eg(
|
|
44396
|
+
const le = fe.popperRef(), ve = document.createElement("div");
|
|
44397
|
+
t?.centered && W[j].toString() === t.centered.id ? ve.innerHTML = `ID: ${W[j]}<br>Type: ${s ? s(m[j]) : m[j].category}<br>Centered Node` : ve.innerHTML = `ID: ${W[j]}<br>Type: ${s ? s(m[j]) : m[j].category}`, ve.style.fontSize = "12px", ve.style.fontFamily = f;
|
|
44398
|
+
const me = Eg(le, ve, {});
|
|
44399
44399
|
fe.on("mouseover", () => {
|
|
44400
44400
|
me.show(), document.body.style.cursor = "pointer";
|
|
44401
44401
|
}), fe.on("click", () => {
|
|
@@ -44413,7 +44413,7 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44413
44413
|
me.hide(), document.body.style.cursor = "default";
|
|
44414
44414
|
});
|
|
44415
44415
|
}), ie.edges().forEach((fe) => {
|
|
44416
|
-
const j = fe.popperRef(),
|
|
44416
|
+
const j = fe.popperRef(), le = document.createElement("div");
|
|
44417
44417
|
if (t.edge.every((me) => me.category)) {
|
|
44418
44418
|
let me = "";
|
|
44419
44419
|
E.forEach((be) => {
|
|
@@ -44424,14 +44424,14 @@ const VW = (t, { name: e = "img", extension: r = "jpg" } = {}) => {
|
|
|
44424
44424
|
me = be.category;
|
|
44425
44425
|
return;
|
|
44426
44426
|
}
|
|
44427
|
-
}), me.length === 0 ?
|
|
44427
|
+
}), me.length === 0 ? le.innerHTML = "Edge" : le.innerHTML = `Edge Type: ${me}`;
|
|
44428
44428
|
} else
|
|
44429
|
-
|
|
44430
|
-
|
|
44431
|
-
const
|
|
44429
|
+
le.innerHTML = "Edge";
|
|
44430
|
+
le.style.fontSize = "12px", le.style.fontFamily = f;
|
|
44431
|
+
const ve = Eg(j, le, {});
|
|
44432
44432
|
fe.on("click", () => {
|
|
44433
|
-
h && h(),
|
|
44434
|
-
}), fe.on("mouseover", () =>
|
|
44433
|
+
h && h(), ve.hide(), document.body.style.cursor = "default";
|
|
44434
|
+
}), fe.on("mouseover", () => ve.show()), fe.on("mouseout", () => ve.hide());
|
|
44435
44435
|
}), J(), () => {
|
|
44436
44436
|
ie.destroy();
|
|
44437
44437
|
};
|
|
@@ -44773,7 +44773,7 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
44773
44773
|
fill: k.color ?? t.violinColor ?? "black",
|
|
44774
44774
|
opacity: k.opacity ?? t.opacity ?? 1,
|
|
44775
44775
|
pointerEvents: "all",
|
|
44776
|
-
onMouseMove: (
|
|
44776
|
+
onMouseMove: (Ae) => R(Ae, oe, k),
|
|
44777
44777
|
onClick: () => N(k)
|
|
44778
44778
|
},
|
|
44779
44779
|
`${e}-point-${G}`
|
|
@@ -45014,52 +45014,66 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45014
45014
|
width: n,
|
|
45015
45015
|
legendValues: a,
|
|
45016
45016
|
spaceForCategory: A,
|
|
45017
|
-
axisCenter: i
|
|
45017
|
+
axisCenter: i,
|
|
45018
|
+
loading: o
|
|
45018
45019
|
}) => {
|
|
45019
|
-
const
|
|
45020
|
-
return
|
|
45021
|
-
/* @__PURE__ */ $.jsx("rect", { height: r, width: n +
|
|
45022
|
-
|
|
45020
|
+
const l = wr(null), u = tU(t, 12, "Times"), c = a.map((v) => e(v) * 2 + 12), f = c.reduce((v, p) => v + p, 0) + 30 * (a.length - 1), d = 10, h = u + d * 2 + f;
|
|
45021
|
+
return /* @__PURE__ */ $.jsx("div", { style: { marginBottom: 10, opacity: o ? 0.3 : 1 }, children: /* @__PURE__ */ $.jsxs("svg", { height: r + 4, width: n + u + 4, id: "legend", transform: `translate(${A / 1.2 + i - n / 2}, 0)`, children: [
|
|
45022
|
+
/* @__PURE__ */ $.jsx("rect", { height: r, width: n + u, stroke: "black", fill: "none", transform: "translate(2, 2)" }),
|
|
45023
|
+
o ? /* @__PURE__ */ $.jsx(
|
|
45023
45024
|
"text",
|
|
45024
45025
|
{
|
|
45025
|
-
|
|
45026
|
-
|
|
45027
|
-
|
|
45028
|
-
|
|
45029
|
-
fill: "black",
|
|
45026
|
+
x: (n + u) / 2,
|
|
45027
|
+
y: r / 2,
|
|
45028
|
+
textAnchor: "middle",
|
|
45029
|
+
dominantBaseline: "middle",
|
|
45030
45030
|
fontSize: 12,
|
|
45031
|
-
|
|
45031
|
+
fill: "black",
|
|
45032
|
+
children: "Loading..."
|
|
45032
45033
|
}
|
|
45033
|
-
)
|
|
45034
|
-
|
|
45035
|
-
|
|
45036
|
-
"line",
|
|
45034
|
+
) : /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
45035
|
+
/* @__PURE__ */ $.jsx("g", { transform: `translate(${n / 2 - h / 2 + 2}, ${r / 2 + 2})`, children: /* @__PURE__ */ $.jsx(
|
|
45036
|
+
"text",
|
|
45037
45037
|
{
|
|
45038
|
-
|
|
45039
|
-
|
|
45040
|
-
|
|
45041
|
-
|
|
45042
|
-
|
|
45043
|
-
|
|
45038
|
+
ref: l,
|
|
45039
|
+
x: 0,
|
|
45040
|
+
y: 3,
|
|
45041
|
+
textAnchor: "start",
|
|
45042
|
+
fill: "black",
|
|
45043
|
+
fontSize: 12,
|
|
45044
|
+
children: t
|
|
45044
45045
|
}
|
|
45045
|
-
),
|
|
45046
|
-
/* @__PURE__ */ $.
|
|
45047
|
-
|
|
45048
|
-
|
|
45049
|
-
|
|
45050
|
-
|
|
45051
|
-
|
|
45052
|
-
|
|
45053
|
-
|
|
45054
|
-
|
|
45055
|
-
|
|
45056
|
-
|
|
45057
|
-
|
|
45058
|
-
|
|
45059
|
-
|
|
45060
|
-
)
|
|
45061
|
-
|
|
45062
|
-
|
|
45046
|
+
) }),
|
|
45047
|
+
/* @__PURE__ */ $.jsxs("g", { transform: `translate(${n / 2 - h / 2 + u + d + 2}, ${r / 2 + 2})`, children: [
|
|
45048
|
+
/* @__PURE__ */ $.jsx(
|
|
45049
|
+
"line",
|
|
45050
|
+
{
|
|
45051
|
+
x1: 0,
|
|
45052
|
+
y1: -r / 2,
|
|
45053
|
+
x2: 0,
|
|
45054
|
+
y2: r / 2,
|
|
45055
|
+
stroke: "black",
|
|
45056
|
+
strokeWidth: 1
|
|
45057
|
+
}
|
|
45058
|
+
),
|
|
45059
|
+
/* @__PURE__ */ $.jsx("g", { transform: `translate(${d + u / 2}, 0)`, children: a.map((v, p) => {
|
|
45060
|
+
const g = e(v), B = c.slice(0, p).reduce((m, y) => m + y, 0) + p * 30;
|
|
45061
|
+
return /* @__PURE__ */ $.jsxs("g", { transform: `translate(${B}, 0)`, children: [
|
|
45062
|
+
/* @__PURE__ */ $.jsx("circle", { r: g, cx: 0, cy: 0, fill: "black" }),
|
|
45063
|
+
/* @__PURE__ */ $.jsx(
|
|
45064
|
+
"text",
|
|
45065
|
+
{
|
|
45066
|
+
x: g + 12,
|
|
45067
|
+
y: 3,
|
|
45068
|
+
textAnchor: "start",
|
|
45069
|
+
fill: "black",
|
|
45070
|
+
fontSize: 10,
|
|
45071
|
+
children: v
|
|
45072
|
+
}
|
|
45073
|
+
)
|
|
45074
|
+
] }, `legend${p}`);
|
|
45075
|
+
}) })
|
|
45076
|
+
] })
|
|
45063
45077
|
] })
|
|
45064
45078
|
] }) });
|
|
45065
45079
|
}, kE = "Roboto,Helvetica,Arial,sans-serif", tU = (t, e, r) => {
|
|
@@ -45117,8 +45131,8 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45117
45131
|
domain: [
|
|
45118
45132
|
// If cutting off negative values, the lower bound is max(negativeCutoff, minValue).
|
|
45119
45133
|
i ? Math.min(0, Math.max(q, ee)) : Math.min(0, q - 0.07 * (0 - q)),
|
|
45120
|
-
// Make some room past the last tick (7% of the range of the data)
|
|
45121
|
-
Math.max(
|
|
45134
|
+
// Make some room past the last tick (7% of the range of the data) if the data isnt all negative
|
|
45135
|
+
Math.max(G, 0) + (G > 0 ? 0.07 * G : 0)
|
|
45122
45136
|
],
|
|
45123
45137
|
// always include 0 as anchor if values do not cross 0
|
|
45124
45138
|
range: [0, Math.max(I - X - f, 0)]
|
|
@@ -45127,11 +45141,11 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45127
45141
|
if (!I)
|
|
45128
45142
|
return;
|
|
45129
45143
|
let ie = 0, Ue = null;
|
|
45130
|
-
Z.forEach((ue,
|
|
45131
|
-
const
|
|
45132
|
-
if (
|
|
45133
|
-
const he =
|
|
45134
|
-
ie = Math.max(
|
|
45144
|
+
Z.forEach((ue, Ae) => {
|
|
45145
|
+
const se = document.getElementById(`label-${Ae}-${p}`);
|
|
45146
|
+
if (se) {
|
|
45147
|
+
const he = se.getBBox().width, fe = W(0), j = W(ue.value), ve = X + Math.max(fe, j) + k + he - I;
|
|
45148
|
+
ie = Math.max(ve, ie), ve < 0 && (Ue === null ? Ue = Math.abs(ve) : Ue = Math.min(Math.abs(ve), Ue));
|
|
45135
45149
|
}
|
|
45136
45150
|
}), ie > 0 ? (v(!1), d((ue) => ue + 25)) : Ue && Ue > 30 ? (v(!1), d((ue) => ue - 25)) : v(!0);
|
|
45137
45151
|
}, [t, W, f, h, e, I, r, p]);
|
|
@@ -45149,7 +45163,8 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45149
45163
|
width: 300,
|
|
45150
45164
|
legendValues: c,
|
|
45151
45165
|
spaceForCategory: X,
|
|
45152
|
-
axisCenter: oe
|
|
45166
|
+
axisCenter: oe,
|
|
45167
|
+
loading: !h || I < 0
|
|
45153
45168
|
}
|
|
45154
45169
|
),
|
|
45155
45170
|
t.length === 0 ? /* @__PURE__ */ $.jsx("p", { children: "No Data To Display" }) : /* @__PURE__ */ $.jsx(
|
|
@@ -45172,12 +45187,12 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45172
45187
|
numTicks: I < 700 ? 4 : void 0,
|
|
45173
45188
|
tickFormat: (ie, Ue) => {
|
|
45174
45189
|
const ue = typeof ie == "number" ? ie : ie.valueOf();
|
|
45175
|
-
return Ue === 0 && ue < 0 && i && t.some((
|
|
45190
|
+
return Ue === 0 && ue < 0 && i && t.some((Ae) => Ae.value <= ee) ? "Low Signal" : ue.toString();
|
|
45176
45191
|
}
|
|
45177
45192
|
}
|
|
45178
45193
|
),
|
|
45179
45194
|
Z.map((ie, Ue) => {
|
|
45180
|
-
const ue = ie.id === y?.id,
|
|
45195
|
+
const ue = ie.id === y?.id, Ae = i ? Math.max(ie.value, ee) : ie.value, se = Y(ie.id), he = ie.id.split("-")[0] === "spacer" ? s : o, fe = Ae > 0 ? W(0) : W(Ae), j = se ?? 0, le = Math.abs(W(Ae) - W(0)), ve = ie.id.split("-")[0] === "spacer" ? s : o, me = -k, be = (se ?? 0) + he / 2, Re = fe + le + k + (ie.lollipopValue && ie.value >= 0 ? N(ie.lollipopValue) : 0), Le = j + ve / 2;
|
|
45181
45196
|
return /* @__PURE__ */ $.jsxs(
|
|
45182
45197
|
gn,
|
|
45183
45198
|
{
|
|
@@ -45205,10 +45220,10 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45205
45220
|
{
|
|
45206
45221
|
x: fe,
|
|
45207
45222
|
y: j,
|
|
45208
|
-
width:
|
|
45209
|
-
height:
|
|
45223
|
+
width: le,
|
|
45224
|
+
height: ve,
|
|
45210
45225
|
fill: ie.color || "black",
|
|
45211
|
-
opacity: i &&
|
|
45226
|
+
opacity: i && Ae === ee ? 0.4 : 1,
|
|
45212
45227
|
rx: 3,
|
|
45213
45228
|
stroke: ue ? "black" : "none"
|
|
45214
45229
|
},
|
|
@@ -45219,8 +45234,8 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45219
45234
|
y0,
|
|
45220
45235
|
{
|
|
45221
45236
|
r: N(ie.lollipopValue) * 1.5,
|
|
45222
|
-
cx: ie.value < 0 ? fe : fe +
|
|
45223
|
-
cy: j +
|
|
45237
|
+
cx: ie.value < 0 ? fe : fe + le,
|
|
45238
|
+
cy: j + ve / 2,
|
|
45224
45239
|
fill: ie.color,
|
|
45225
45240
|
stroke: ue ? "black" : "none"
|
|
45226
45241
|
}
|
|
@@ -45229,8 +45244,8 @@ const qW = ({ crossProps: t, left: e, top: r, median: n, firstQuartile: a, third
|
|
|
45229
45244
|
y0,
|
|
45230
45245
|
{
|
|
45231
45246
|
r: N(ie.lollipopValue),
|
|
45232
|
-
cx: ie.value < 0 ? fe : fe +
|
|
45233
|
-
cy: j +
|
|
45247
|
+
cx: ie.value < 0 ? fe : fe + le,
|
|
45248
|
+
cy: j + ve / 2,
|
|
45234
45249
|
fill: "black"
|
|
45235
45250
|
}
|
|
45236
45251
|
)
|