hoodini-viz 0.2.2 → 0.2.4
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/{3Dmol--3ohBuYp.js → 3Dmol-BWURIyI9.js} +1 -1
- package/dist/{data-grid-overlay-editor-Dh2mDScX.js → data-grid-overlay-editor-BGJ8nj3b.js} +1 -1
- package/dist/hoodini-viz.js +1 -1
- package/dist/hoodini-viz.umd.js +9 -9
- package/dist/{index-DqedK8nv.js → index-7pW9RJyb.js} +223 -213
- package/dist/{number-overlay-editor-BOabzjpX.js → number-overlay-editor-8SOLFxTU.js} +1 -1
- package/package.json +1 -1
|
@@ -802,7 +802,7 @@ Error generating stack: ` + p.message + `
|
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
var zn = Math.random().toString(36).slice(2), qt = "__reactFiber$" + zn, kn = "__reactProps$" + zn, Vn = "__reactContainer$" + zn, Mi = "__reactEvents$" + zn, $i = "__reactListeners$" + zn, Zn = "__reactHandles$" + zn, Gr = "__reactResources$" + zn, mi = "__reactMarker$" + zn;
|
|
805
|
-
function
|
|
805
|
+
function Ji(l) {
|
|
806
806
|
delete l[qt], delete l[kn], delete l[Mi], delete l[$i], delete l[Zn];
|
|
807
807
|
}
|
|
808
808
|
function _i(l) {
|
|
@@ -842,10 +842,10 @@ Error generating stack: ` + p.message + `
|
|
|
842
842
|
l[mi] = !0;
|
|
843
843
|
}
|
|
844
844
|
var uo = /* @__PURE__ */ new Set(), Io = {};
|
|
845
|
-
function Ji(l, c) {
|
|
846
|
-
es(l, c), es(l + "Capture", c);
|
|
847
|
-
}
|
|
848
845
|
function es(l, c) {
|
|
846
|
+
ts(l, c), ts(l + "Capture", c);
|
|
847
|
+
}
|
|
848
|
+
function ts(l, c) {
|
|
849
849
|
for (Io[l] = c, l = 0; l < c.length; l++)
|
|
850
850
|
uo.add(c[l]);
|
|
851
851
|
}
|
|
@@ -1362,7 +1362,7 @@ Error generating stack: ` + p.message + `
|
|
|
1362
1362
|
clipboardData: function(l) {
|
|
1363
1363
|
return "clipboardData" in l ? l.clipboardData : window.clipboardData;
|
|
1364
1364
|
}
|
|
1365
|
-
}), _r = ut(Yn), xs = g({}, ne, { data: 0 }),
|
|
1365
|
+
}), _r = ut(Yn), xs = g({}, ne, { data: 0 }), ns = ut(xs), bi = {
|
|
1366
1366
|
Esc: "Escape",
|
|
1367
1367
|
Spacebar: " ",
|
|
1368
1368
|
Left: "ArrowLeft",
|
|
@@ -1462,7 +1462,7 @@ Error generating stack: ` + p.message + `
|
|
|
1462
1462
|
twist: 0,
|
|
1463
1463
|
pointerType: 0,
|
|
1464
1464
|
isPrimary: 0
|
|
1465
|
-
}), Fi = ut(jn),
|
|
1465
|
+
}), Fi = ut(jn), rs = g({}, fn, {
|
|
1466
1466
|
touches: 0,
|
|
1467
1467
|
targetTouches: 0,
|
|
1468
1468
|
changedTouches: 0,
|
|
@@ -1471,7 +1471,7 @@ Error generating stack: ` + p.message + `
|
|
|
1471
1471
|
ctrlKey: 0,
|
|
1472
1472
|
shiftKey: 0,
|
|
1473
1473
|
getModifierState: ji
|
|
1474
|
-
}), Jo = ut(
|
|
1474
|
+
}), Jo = ut(rs), Pr = g({}, ne, {
|
|
1475
1475
|
propertyName: 0,
|
|
1476
1476
|
elapsedTime: 0,
|
|
1477
1477
|
pseudoElement: 0
|
|
@@ -1586,8 +1586,8 @@ Error generating stack: ` + p.message + `
|
|
|
1586
1586
|
if (qi) {
|
|
1587
1587
|
var Wr = "oninput" in document;
|
|
1588
1588
|
if (!Wr) {
|
|
1589
|
-
var
|
|
1590
|
-
|
|
1589
|
+
var is = document.createElement("div");
|
|
1590
|
+
is.setAttribute("oninput", "return;"), Wr = typeof is.oninput == "function";
|
|
1591
1591
|
}
|
|
1592
1592
|
ya = Wr;
|
|
1593
1593
|
} else ya = !1;
|
|
@@ -1729,7 +1729,7 @@ Error generating stack: ` + p.message + `
|
|
|
1729
1729
|
);
|
|
1730
1730
|
Ye.push("scrollEnd");
|
|
1731
1731
|
function He(l, c) {
|
|
1732
|
-
Be.set(l, c),
|
|
1732
|
+
Be.set(l, c), es(c, [l]);
|
|
1733
1733
|
}
|
|
1734
1734
|
var Ze = typeof reportError == "function" ? reportError : function(l) {
|
|
1735
1735
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
@@ -1885,7 +1885,7 @@ Error generating stack: ` + p.message + `
|
|
|
1885
1885
|
}, c;
|
|
1886
1886
|
}
|
|
1887
1887
|
var Ws = /* @__PURE__ */ new WeakMap();
|
|
1888
|
-
function
|
|
1888
|
+
function ss(l, c) {
|
|
1889
1889
|
if (typeof l == "object" && l !== null) {
|
|
1890
1890
|
var f = Ws.get(l);
|
|
1891
1891
|
return f !== void 0 ? f : (c = {
|
|
@@ -1900,9 +1900,9 @@ Error generating stack: ` + p.message + `
|
|
|
1900
1900
|
stack: sn(c)
|
|
1901
1901
|
};
|
|
1902
1902
|
}
|
|
1903
|
-
var ro = [], Pi = 0,
|
|
1903
|
+
var ro = [], Pi = 0, Gi = null, ra = 0, qs = [], Fs = 0, Do = null, Bo = 1, So = "";
|
|
1904
1904
|
function Vo(l, c) {
|
|
1905
|
-
ro[Pi++] = ra, ro[Pi++] =
|
|
1905
|
+
ro[Pi++] = ra, ro[Pi++] = Gi, Gi = l, ra = c;
|
|
1906
1906
|
}
|
|
1907
1907
|
function Uc(l, c, f) {
|
|
1908
1908
|
qs[Fs++] = Bo, qs[Fs++] = So, qs[Fs++] = Do, Do = l;
|
|
@@ -1921,8 +1921,8 @@ Error generating stack: ` + p.message + `
|
|
|
1921
1921
|
l.return !== null && (Vo(l, 1), Uc(l, 1, 0));
|
|
1922
1922
|
}
|
|
1923
1923
|
function Te(l) {
|
|
1924
|
-
for (; l ===
|
|
1925
|
-
|
|
1924
|
+
for (; l === Gi; )
|
|
1925
|
+
Gi = ro[--Pi], ro[Pi] = null, ra = ro[--Pi], ro[Pi] = null;
|
|
1926
1926
|
for (; l === Do; )
|
|
1927
1927
|
Do = qs[--Fs], qs[Fs] = null, So = qs[--Fs], qs[Fs] = null, Bo = qs[--Fs], qs[Fs] = null;
|
|
1928
1928
|
}
|
|
@@ -1938,7 +1938,7 @@ Error generating stack: ` + p.message + `
|
|
|
1938
1938
|
""
|
|
1939
1939
|
)
|
|
1940
1940
|
);
|
|
1941
|
-
throw en(
|
|
1941
|
+
throw en(ss(c, l)), ue;
|
|
1942
1942
|
}
|
|
1943
1943
|
function De(l) {
|
|
1944
1944
|
var c = l.stateNode, f = l.type, p = l.memoizedProps;
|
|
@@ -2152,7 +2152,7 @@ Error generating stack: ` + p.message + `
|
|
|
2152
2152
|
return f();
|
|
2153
2153
|
});
|
|
2154
2154
|
};
|
|
2155
|
-
}, To = t.unstable_scheduleCallback,
|
|
2155
|
+
}, To = t.unstable_scheduleCallback, Ki = t.unstable_NormalPriority, qr = {
|
|
2156
2156
|
$$typeof: x,
|
|
2157
2157
|
Consumer: null,
|
|
2158
2158
|
Provider: null,
|
|
@@ -2168,7 +2168,7 @@ Error generating stack: ` + p.message + `
|
|
|
2168
2168
|
};
|
|
2169
2169
|
}
|
|
2170
2170
|
function hc(l) {
|
|
2171
|
-
l.refCount--, l.refCount === 0 && To(
|
|
2171
|
+
l.refCount--, l.refCount === 0 && To(Ki, function() {
|
|
2172
2172
|
l.controller.abort();
|
|
2173
2173
|
});
|
|
2174
2174
|
}
|
|
@@ -4019,18 +4019,18 @@ Error generating stack: ` + p.message + `
|
|
|
4019
4019
|
return I2(l, p, F), Dp(), !1;
|
|
4020
4020
|
}
|
|
4021
4021
|
if (V)
|
|
4022
|
-
return c = va.current, c !== null ? ((c.flags & 65536) === 0 && (c.flags |= 256), c.flags |= 65536, c.lanes = F, p !== ue && (l = Error(r(422), { cause: p }), en(
|
|
4022
|
+
return c = va.current, c !== null ? ((c.flags & 65536) === 0 && (c.flags |= 256), c.flags |= 65536, c.lanes = F, p !== ue && (l = Error(r(422), { cause: p }), en(ss(l, f)))) : (p !== ue && (c = Error(r(423), {
|
|
4023
4023
|
cause: p
|
|
4024
4024
|
}), en(
|
|
4025
|
-
|
|
4026
|
-
)), l = l.current.alternate, l.flags |= 65536, F &= -F, l.lanes |= F, p =
|
|
4025
|
+
ss(c, f)
|
|
4026
|
+
)), l = l.current.alternate, l.flags |= 65536, F &= -F, l.lanes |= F, p = ss(p, f), F = u2(
|
|
4027
4027
|
l.stateNode,
|
|
4028
4028
|
p,
|
|
4029
4029
|
F
|
|
4030
4030
|
), Oi(l, F), ys !== 4 && (ys = 2)), !1;
|
|
4031
4031
|
var v = Error(r(520), { cause: p });
|
|
4032
|
-
if (v =
|
|
4033
|
-
p =
|
|
4032
|
+
if (v = ss(v, f), mh === null ? mh = [v] : mh.push(v), ys !== 4 && (ys = 2), c === null) return !0;
|
|
4033
|
+
p = ss(p, f), f = c;
|
|
4034
4034
|
do {
|
|
4035
4035
|
switch (f.tag) {
|
|
4036
4036
|
case 3:
|
|
@@ -4747,7 +4747,7 @@ Error generating stack: ` + p.message + `
|
|
|
4747
4747
|
);
|
|
4748
4748
|
break e;
|
|
4749
4749
|
} else if (p !== F) {
|
|
4750
|
-
F =
|
|
4750
|
+
F = ss(
|
|
4751
4751
|
Error(r(424)),
|
|
4752
4752
|
c
|
|
4753
4753
|
), en(F), c = Y_(
|
|
@@ -5656,9 +5656,9 @@ Error generating stack: ` + p.message + `
|
|
|
5656
5656
|
}
|
|
5657
5657
|
function l4(l) {
|
|
5658
5658
|
var c = l.alternate;
|
|
5659
|
-
c !== null && (l.alternate = null, l4(c)), l.child = null, l.deletions = null, l.sibling = null, l.tag === 5 && (c = l.stateNode, c !== null &&
|
|
5659
|
+
c !== null && (l.alternate = null, l4(c)), l.child = null, l.deletions = null, l.sibling = null, l.tag === 5 && (c = l.stateNode, c !== null && Ji(c)), l.stateNode = null, l.return = null, l.dependencies = null, l.memoizedProps = null, l.memoizedState = null, l.pendingProps = null, l.stateNode = null, l.updateQueue = null;
|
|
5660
5660
|
}
|
|
5661
|
-
var
|
|
5661
|
+
var Zi = null, ia = !1;
|
|
5662
5662
|
function vc(l, c, f) {
|
|
5663
5663
|
for (f = f.child; f !== null; )
|
|
5664
5664
|
c4(l, c, f), f = f.sibling;
|
|
@@ -5679,24 +5679,24 @@ Error generating stack: ` + p.message + `
|
|
|
5679
5679
|
break;
|
|
5680
5680
|
case 27:
|
|
5681
5681
|
ks || Ol(f, c);
|
|
5682
|
-
var p =
|
|
5683
|
-
eu(f.type) && (
|
|
5682
|
+
var p = Zi, F = ia;
|
|
5683
|
+
eu(f.type) && (Zi = f.stateNode, ia = !1), vc(
|
|
5684
5684
|
l,
|
|
5685
5685
|
c,
|
|
5686
5686
|
f
|
|
5687
|
-
), Ah(f.stateNode),
|
|
5687
|
+
), Ah(f.stateNode), Zi = p, ia = F;
|
|
5688
5688
|
break;
|
|
5689
5689
|
case 5:
|
|
5690
5690
|
ks || Ol(f, c);
|
|
5691
5691
|
case 6:
|
|
5692
|
-
if (p =
|
|
5692
|
+
if (p = Zi, F = ia, Zi = null, vc(
|
|
5693
5693
|
l,
|
|
5694
5694
|
c,
|
|
5695
5695
|
f
|
|
5696
|
-
),
|
|
5696
|
+
), Zi = p, ia = F, Zi !== null)
|
|
5697
5697
|
if (ia)
|
|
5698
5698
|
try {
|
|
5699
|
-
(
|
|
5699
|
+
(Zi.nodeType === 9 ? Zi.body : Zi.nodeName === "HTML" ? Zi.ownerDocument.body : Zi).removeChild(f.stateNode);
|
|
5700
5700
|
} catch (v) {
|
|
5701
5701
|
ii(
|
|
5702
5702
|
f,
|
|
@@ -5706,7 +5706,7 @@ Error generating stack: ` + p.message + `
|
|
|
5706
5706
|
}
|
|
5707
5707
|
else
|
|
5708
5708
|
try {
|
|
5709
|
-
|
|
5709
|
+
Zi.removeChild(f.stateNode);
|
|
5710
5710
|
} catch (v) {
|
|
5711
5711
|
ii(
|
|
5712
5712
|
f,
|
|
@@ -5716,17 +5716,17 @@ Error generating stack: ` + p.message + `
|
|
|
5716
5716
|
}
|
|
5717
5717
|
break;
|
|
5718
5718
|
case 18:
|
|
5719
|
-
|
|
5719
|
+
Zi !== null && (ia ? (l = Zi, tw(
|
|
5720
5720
|
l.nodeType === 9 ? l.body : l.nodeName === "HTML" ? l.ownerDocument.body : l,
|
|
5721
5721
|
f.stateNode
|
|
5722
|
-
), Kd(l)) : tw(
|
|
5722
|
+
), Kd(l)) : tw(Zi, f.stateNode));
|
|
5723
5723
|
break;
|
|
5724
5724
|
case 4:
|
|
5725
|
-
p =
|
|
5725
|
+
p = Zi, F = ia, Zi = f.stateNode.containerInfo, ia = !0, vc(
|
|
5726
5726
|
l,
|
|
5727
5727
|
c,
|
|
5728
5728
|
f
|
|
5729
|
-
),
|
|
5729
|
+
), Zi = p, ia = F;
|
|
5730
5730
|
break;
|
|
5731
5731
|
case 0:
|
|
5732
5732
|
case 11:
|
|
@@ -5821,22 +5821,22 @@ Error generating stack: ` + p.message + `
|
|
|
5821
5821
|
switch (se.tag) {
|
|
5822
5822
|
case 27:
|
|
5823
5823
|
if (eu(se.type)) {
|
|
5824
|
-
|
|
5824
|
+
Zi = se.stateNode, ia = !1;
|
|
5825
5825
|
break e;
|
|
5826
5826
|
}
|
|
5827
5827
|
break;
|
|
5828
5828
|
case 5:
|
|
5829
|
-
|
|
5829
|
+
Zi = se.stateNode, ia = !1;
|
|
5830
5830
|
break e;
|
|
5831
5831
|
case 3:
|
|
5832
5832
|
case 4:
|
|
5833
|
-
|
|
5833
|
+
Zi = se.stateNode.containerInfo, ia = !0;
|
|
5834
5834
|
break e;
|
|
5835
5835
|
}
|
|
5836
5836
|
se = se.return;
|
|
5837
5837
|
}
|
|
5838
|
-
if (
|
|
5839
|
-
c4(v, z, F),
|
|
5838
|
+
if (Zi === null) throw Error(r(160));
|
|
5839
|
+
c4(v, z, F), Zi = null, ia = !1, v = F.alternate, v !== null && (v.return = null), F.return = null;
|
|
5840
5840
|
}
|
|
5841
5841
|
if (c.subtreeFlags & 13886)
|
|
5842
5842
|
for (c = c.child; c !== null; )
|
|
@@ -6881,7 +6881,7 @@ Error generating stack: ` + p.message + `
|
|
|
6881
6881
|
function _4(l, c) {
|
|
6882
6882
|
nr = null, R.H = lh, c === qo || c === Mu ? (c = rp(), ri = 3) : c === gc ? (c = rp(), ri = 4) : ri = c === d2 ? 8 : c !== null && typeof c == "object" && typeof c.then == "function" ? 6 : 1, _a = c, br === null && (ys = 1, pp(
|
|
6883
6883
|
l,
|
|
6884
|
-
|
|
6884
|
+
ss(c, l.current)
|
|
6885
6885
|
));
|
|
6886
6886
|
}
|
|
6887
6887
|
function w4() {
|
|
@@ -7071,7 +7071,7 @@ Error generating stack: ` + p.message + `
|
|
|
7071
7071
|
)) {
|
|
7072
7072
|
ys = 1, pp(
|
|
7073
7073
|
l,
|
|
7074
|
-
|
|
7074
|
+
ss(f, l.current)
|
|
7075
7075
|
), br = null;
|
|
7076
7076
|
return;
|
|
7077
7077
|
}
|
|
@@ -7079,7 +7079,7 @@ Error generating stack: ` + p.message + `
|
|
|
7079
7079
|
if (F !== null) throw br = F, v;
|
|
7080
7080
|
ys = 1, pp(
|
|
7081
7081
|
l,
|
|
7082
|
-
|
|
7082
|
+
ss(f, l.current)
|
|
7083
7083
|
), br = null;
|
|
7084
7084
|
return;
|
|
7085
7085
|
}
|
|
@@ -7301,7 +7301,7 @@ Error generating stack: ` + p.message + `
|
|
|
7301
7301
|
}
|
|
7302
7302
|
}
|
|
7303
7303
|
function O4(l, c, f) {
|
|
7304
|
-
c =
|
|
7304
|
+
c = ss(f, c), c = u2(l.stateNode, c, 2), l = pt(l, c, 2), l !== null && (En(l, 2), Ll(l));
|
|
7305
7305
|
}
|
|
7306
7306
|
function ii(l, c, f) {
|
|
7307
7307
|
if (l.tag === 3)
|
|
@@ -7318,7 +7318,7 @@ Error generating stack: ` + p.message + `
|
|
|
7318
7318
|
} else if (c.tag === 1) {
|
|
7319
7319
|
var p = c.stateNode;
|
|
7320
7320
|
if (typeof c.type.getDerivedStateFromError == "function" || typeof p.componentDidCatch == "function" && (Kc === null || !Kc.has(p))) {
|
|
7321
|
-
l =
|
|
7321
|
+
l = ss(f, l), f = L_(2), p = pt(c, f, 2), p !== null && (z_(
|
|
7322
7322
|
f,
|
|
7323
7323
|
p,
|
|
7324
7324
|
c,
|
|
@@ -7545,26 +7545,26 @@ Error generating stack: ` + p.message + `
|
|
|
7545
7545
|
"on" + bI
|
|
7546
7546
|
);
|
|
7547
7547
|
}
|
|
7548
|
-
He(K, "onAnimationEnd"), He(ae, "onAnimationIteration"), He(he, "onAnimationStart"), He("dblclick", "onDoubleClick"), He("focusin", "onFocus"), He("focusout", "onBlur"), He(me, "onTransitionRun"), He(ye, "onTransitionStart"), He(Me, "onTransitionCancel"), He(Ue, "onTransitionEnd"),
|
|
7548
|
+
He(K, "onAnimationEnd"), He(ae, "onAnimationIteration"), He(he, "onAnimationStart"), He("dblclick", "onDoubleClick"), He("focusin", "onFocus"), He("focusout", "onBlur"), He(me, "onTransitionRun"), He(ye, "onTransitionStart"), He(Me, "onTransitionCancel"), He(Ue, "onTransitionEnd"), ts("onMouseEnter", ["mouseout", "mouseover"]), ts("onMouseLeave", ["mouseout", "mouseover"]), ts("onPointerEnter", ["pointerout", "pointerover"]), ts("onPointerLeave", ["pointerout", "pointerover"]), es(
|
|
7549
7549
|
"onChange",
|
|
7550
7550
|
"change click focusin focusout input keydown keyup selectionchange".split(" ")
|
|
7551
|
-
),
|
|
7551
|
+
), es(
|
|
7552
7552
|
"onSelect",
|
|
7553
7553
|
"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(
|
|
7554
7554
|
" "
|
|
7555
7555
|
)
|
|
7556
|
-
),
|
|
7556
|
+
), es("onBeforeInput", [
|
|
7557
7557
|
"compositionend",
|
|
7558
7558
|
"keypress",
|
|
7559
7559
|
"textInput",
|
|
7560
7560
|
"paste"
|
|
7561
|
-
]),
|
|
7561
|
+
]), es(
|
|
7562
7562
|
"onCompositionEnd",
|
|
7563
7563
|
"compositionend focusout keydown keypress keyup mousedown".split(" ")
|
|
7564
|
-
),
|
|
7564
|
+
), es(
|
|
7565
7565
|
"onCompositionStart",
|
|
7566
7566
|
"compositionstart focusout keydown keypress keyup mousedown".split(" ")
|
|
7567
|
-
),
|
|
7567
|
+
), es(
|
|
7568
7568
|
"onCompositionUpdate",
|
|
7569
7569
|
"compositionupdate focusout keydown keypress keyup mousedown".split(" ")
|
|
7570
7570
|
);
|
|
@@ -7901,13 +7901,13 @@ Error generating stack: ` + p.message + `
|
|
|
7901
7901
|
}
|
|
7902
7902
|
else
|
|
7903
7903
|
ea ? ga(l, f) && (Er = "onCompositionEnd") : l === "keydown" && f.keyCode === 229 && (Er = "onCompositionStart");
|
|
7904
|
-
Er && (ha && f.locale !== "ko" && (ea || Er !== "onCompositionStart" ? Er === "onCompositionEnd" && ea && (ar = go()) : (qn = Ft, $s = "value" in qn ? qn.value : qn.textContent, ea = !0)), xn = Mp(et, Er), 0 < xn.length && (Er = new
|
|
7904
|
+
Er && (ha && f.locale !== "ko" && (ea || Er !== "onCompositionStart" ? Er === "onCompositionEnd" && ea && (ar = go()) : (qn = Ft, $s = "value" in qn ? qn.value : qn.textContent, ea = !0)), xn = Mp(et, Er), 0 < xn.length && (Er = new ns(
|
|
7905
7905
|
Er,
|
|
7906
7906
|
l,
|
|
7907
7907
|
null,
|
|
7908
7908
|
f,
|
|
7909
7909
|
Ft
|
|
7910
|
-
), Dt.push({ event: Er, listeners: xn }), ar ? Er.data = ar : (ar = cc(f), ar !== null && (Er.data = ar)))), (ar = Xi ? gs(l, f) : uc(l, f)) && (Er = Mp(et, "onBeforeInput"), 0 < Er.length && (xn = new
|
|
7910
|
+
), Dt.push({ event: Er, listeners: xn }), ar ? Er.data = ar : (ar = cc(f), ar !== null && (Er.data = ar)))), (ar = Xi ? gs(l, f) : uc(l, f)) && (Er = Mp(et, "onBeforeInput"), 0 < Er.length && (xn = new ns(
|
|
7911
7911
|
"onBeforeInput",
|
|
7912
7912
|
"beforeinput",
|
|
7913
7913
|
null,
|
|
@@ -8816,7 +8816,7 @@ Error generating stack: ` + p.message + `
|
|
|
8816
8816
|
case "HTML":
|
|
8817
8817
|
case "HEAD":
|
|
8818
8818
|
case "BODY":
|
|
8819
|
-
G2(f),
|
|
8819
|
+
G2(f), Ji(f);
|
|
8820
8820
|
continue;
|
|
8821
8821
|
case "SCRIPT":
|
|
8822
8822
|
case "STYLE":
|
|
@@ -8954,7 +8954,7 @@ Error generating stack: ` + p.message + `
|
|
|
8954
8954
|
function Ah(l) {
|
|
8955
8955
|
for (var c = l.attributes; c.length; )
|
|
8956
8956
|
l.removeAttributeNode(c[0]);
|
|
8957
|
-
|
|
8957
|
+
Ji(l);
|
|
8958
8958
|
}
|
|
8959
8959
|
var Ka = /* @__PURE__ */ new Map(), aw = /* @__PURE__ */ new Set();
|
|
8960
8960
|
function Ip(l) {
|
|
@@ -10671,17 +10671,28 @@ const zw = "hoodini_theme", p9 = d9(null), zc = () => {
|
|
|
10671
10671
|
a(m);
|
|
10672
10672
|
const y = document.documentElement;
|
|
10673
10673
|
m === "dark" ? (y.classList.add("dark"), y.classList.remove("light")) : (y.classList.remove("dark"), y.classList.add("light"));
|
|
10674
|
-
let C
|
|
10674
|
+
let C = null;
|
|
10675
|
+
try {
|
|
10676
|
+
C = new MutationObserver((w) => {
|
|
10677
|
+
for (const E of w)
|
|
10678
|
+
if (E.type === "attributes" && E.attributeName === "class") {
|
|
10679
|
+
const x = y.classList.contains("dark"), D = o;
|
|
10680
|
+
x && D !== "dark" ? (a("dark"), s("dark")) : !x && D !== "light" && (a("light"), s("light"));
|
|
10681
|
+
}
|
|
10682
|
+
}), C.observe(y, { attributes: !0, attributeFilter: ["class"] });
|
|
10683
|
+
} catch {
|
|
10684
|
+
}
|
|
10685
|
+
let b, _;
|
|
10675
10686
|
if (i === "system" && typeof window < "u" && window.matchMedia)
|
|
10676
10687
|
try {
|
|
10677
|
-
|
|
10678
|
-
const
|
|
10679
|
-
|
|
10680
|
-
},
|
|
10688
|
+
b = window.matchMedia("(prefers-color-scheme: dark)"), _ = (w) => {
|
|
10689
|
+
const E = w.matches ? "dark" : "light";
|
|
10690
|
+
E === "dark" ? (y.classList.add("dark"), y.classList.remove("light")) : (y.classList.remove("dark"), y.classList.add("light")), a(E);
|
|
10691
|
+
}, b.addEventListener ? b.addEventListener("change", _) : b.addListener && b.addListener(_);
|
|
10681
10692
|
} catch {
|
|
10682
10693
|
}
|
|
10683
10694
|
return () => {
|
|
10684
|
-
C && b && (
|
|
10695
|
+
C && C.disconnect(), b && _ && (b.removeEventListener ? b.removeEventListener("change", _) : b.removeListener && b.removeListener(_));
|
|
10685
10696
|
};
|
|
10686
10697
|
}, [i]), /* @__PURE__ */ B(p9.Provider, { value: {
|
|
10687
10698
|
theme: i,
|
|
@@ -16490,11 +16501,10 @@ function d$({ className: t, ...e }) {
|
|
|
16490
16501
|
{
|
|
16491
16502
|
"data-slot": "sidebar-inset",
|
|
16492
16503
|
className: si(
|
|
16493
|
-
"bg-background relative flex w-full flex-1 flex-col",
|
|
16504
|
+
"bg-background relative flex w-full flex-1 flex-col min-h-0 overflow-hidden",
|
|
16494
16505
|
"md:peer-data-[variant=inset]:my-2 md:peer-data-[variant=inset]:mr-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",
|
|
16495
16506
|
t
|
|
16496
16507
|
),
|
|
16497
|
-
style: { maxHeight: "100vh", overflow: "hidden", isolation: "isolate" },
|
|
16498
16508
|
...e
|
|
16499
16509
|
}
|
|
16500
16510
|
);
|
|
@@ -22139,7 +22149,7 @@ const NW = () => {
|
|
|
22139
22149
|
})(u.current);
|
|
22140
22150
|
let oe = window.$3Dmol;
|
|
22141
22151
|
if (!oe) {
|
|
22142
|
-
const Xe = await import("./3Dmol
|
|
22152
|
+
const Xe = await import("./3Dmol-BWURIyI9.js").then((ot) => ot._);
|
|
22143
22153
|
oe = Xe.default || Xe, window.$3Dmol = oe;
|
|
22144
22154
|
}
|
|
22145
22155
|
if (d) {
|
|
@@ -23110,7 +23120,7 @@ function rq({
|
|
|
23110
23120
|
scaleExportToFormat: Zn,
|
|
23111
23121
|
setScaleExportToFormat: Gr,
|
|
23112
23122
|
cropToGuides: mi,
|
|
23113
|
-
setCropToGuides:
|
|
23123
|
+
setCropToGuides: Ji,
|
|
23114
23124
|
scaleRulerWithCrop: _i,
|
|
23115
23125
|
setScaleRulerWithCrop: Kr,
|
|
23116
23126
|
// New visual settings props
|
|
@@ -23119,8 +23129,8 @@ function rq({
|
|
|
23119
23129
|
phyloLabelSize: ir,
|
|
23120
23130
|
setPhyloLabelSize: uo,
|
|
23121
23131
|
geneLabelSize: Io,
|
|
23122
|
-
setGeneLabelSize:
|
|
23123
|
-
strokeLineWidth:
|
|
23132
|
+
setGeneLabelSize: es,
|
|
23133
|
+
strokeLineWidth: ts,
|
|
23124
23134
|
setStrokeLineWidth: tn,
|
|
23125
23135
|
genomeXScale: Zs,
|
|
23126
23136
|
setGenomeXScale: Ar,
|
|
@@ -23129,7 +23139,7 @@ function rq({
|
|
|
23129
23139
|
geneHeight: sr,
|
|
23130
23140
|
...Qs
|
|
23131
23141
|
}) {
|
|
23132
|
-
const { resolvedTheme: ni, getThemeColors: yi } = zc(), ci = A.useMemo(() => yi(ni), [ni]), [Hr, wi] = bt("info"), [Ua, Js] = bt(!1), eo = typeof e < "u" ? e : Ua, dr = typeof n == "function" ? n : Js, [No, fo] = bt(!1), Oo = typeof r < "u" ? r : No, Ci = typeof i == "function" ? i : fo, [Hi, ho] = bt(!1), cs = typeof s < "u" ? s : Hi, Zo = typeof o == "function" ? o : ho, [Vi, $a] = bt(!1), Qo = typeof a < "u" ? a : Vi, Sn = typeof u == "function" ? u : $a, [Ha, Gn] = bt(null), Wi = typeof d < "u" ? d : Ha, Lo = typeof h == "function" ? h : Gn, [ws, Us] = bt(!1), Ao = typeof g < "u" ? g : ws, zo = typeof m == "function" ? m : Us, [sl, Va] = bt("start"), Dr = typeof y < "u" ? y : sl, qi = typeof C == "function" ? C : Va, [us, tt] = bt("after-tree"), qn = typeof b < "u" ? b : us, $s = typeof _ == "function" ? _ : tt, [Zr, go] = bt(Kt.gene.arrowheadHeight), [vo, Eo] = bt(Kt.gene.height), [Pn, ut] = bt(Kt.gene.tipWidthMode), ne = Lt ?? Pn, Bt = ft ?? ut, [fn, vn] = bt(xt ?? Kt.gene.tipWidthFactor), [Wt, Gt] = bt(zt ?? Kt.gene.tipWidthFixed), [wn, gn] = bt("bottom"), In = typeof w < "u" ? w : wn, Qn = typeof E == "function" ? E : gn, [xi, Vr] = bt(""), Nn = typeof x < "u" ? x : xi, nn = typeof D == "function" ? D : Vr, [pn, Yn] = bt(""), _r = typeof S < "u" ? S : pn, xs = typeof k == "function" ? k : Yn, [
|
|
23142
|
+
const { resolvedTheme: ni, getThemeColors: yi } = zc(), ci = A.useMemo(() => yi(ni), [ni]), [Hr, wi] = bt("info"), [Ua, Js] = bt(!1), eo = typeof e < "u" ? e : Ua, dr = typeof n == "function" ? n : Js, [No, fo] = bt(!1), Oo = typeof r < "u" ? r : No, Ci = typeof i == "function" ? i : fo, [Hi, ho] = bt(!1), cs = typeof s < "u" ? s : Hi, Zo = typeof o == "function" ? o : ho, [Vi, $a] = bt(!1), Qo = typeof a < "u" ? a : Vi, Sn = typeof u == "function" ? u : $a, [Ha, Gn] = bt(null), Wi = typeof d < "u" ? d : Ha, Lo = typeof h == "function" ? h : Gn, [ws, Us] = bt(!1), Ao = typeof g < "u" ? g : ws, zo = typeof m == "function" ? m : Us, [sl, Va] = bt("start"), Dr = typeof y < "u" ? y : sl, qi = typeof C == "function" ? C : Va, [us, tt] = bt("after-tree"), qn = typeof b < "u" ? b : us, $s = typeof _ == "function" ? _ : tt, [Zr, go] = bt(Kt.gene.arrowheadHeight), [vo, Eo] = bt(Kt.gene.height), [Pn, ut] = bt(Kt.gene.tipWidthMode), ne = Lt ?? Pn, Bt = ft ?? ut, [fn, vn] = bt(xt ?? Kt.gene.tipWidthFactor), [Wt, Gt] = bt(zt ?? Kt.gene.tipWidthFixed), [wn, gn] = bt("bottom"), In = typeof w < "u" ? w : wn, Qn = typeof E == "function" ? E : gn, [xi, Vr] = bt(""), Nn = typeof x < "u" ? x : xi, nn = typeof D == "function" ? D : Vr, [pn, Yn] = bt(""), _r = typeof S < "u" ? S : pn, xs = typeof k == "function" ? k : Yn, [ns, bi] = bt("domainName"), Di = typeof $ < "u" ? $ : ns, Br = typeof L == "function" ? L : bi, [to, ji] = bt(""), fa = typeof O < "u" ? O : to, _o = typeof P == "function" ? P : ji, [jn, Fi] = bt(""), rs = typeof U < "u" ? U : jn, Jo = typeof M == "function" ? M : Fi, [Pr, or] = bt({ enabled: !1 }), ds = typeof j < "u" ? j : Pr, Wa = typeof W == "function" ? W : or, [fs, St] = bt({ enabled: !1 }), Jn = typeof Y < "u" ? Y : fs, cn = typeof R == "function" ? R : St, [hs, Xi] = bt({ enabled: !1 }), ha = typeof H < "u" ? H : hs, Rl = typeof I == "function" ? I : Xi, [Uo, ga] = bt("all"), cc = typeof N < "u" ? N : Uo, ea = typeof q == "function" ? q : ga, [gs, uc] = bt({ enabled: !1 }), Tn = typeof Z < "u" ? Z : gs, pa = typeof ce == "function" ? ce : uc, [dc, kr] = bt({ enabled: !1 }), $o = typeof oe < "u" ? oe : dc, ol = typeof fe == "function" ? fe : kr, [ma, kl] = bt(null), Hs = typeof be < "u" ? be : ma, ya = typeof ge == "function" ? ge : kl, [Wr, is] = bt(null), Ho = typeof Ae < "u" ? Ae : Wr, Ca = typeof ke == "function" ? ke : is, [ta, po] = bt(Kt.tree.xScalePercent), [Pe, ba] = bt(null), Qr = typeof Ce < "u" ? Ce : Pe, [Bi, Ds] = bt(null), fc = typeof ot < "u" ? ot : Bi, [Ml, wo] = bt(!1), al = typeof kn < "u" ? kn : Ml, xo = typeof Vn == "function" ? Vn : wo, [qa, Fa] = bt(null), ll = typeof Mi < "u" ? Mi : qa, Si = typeof $i == "function" ? $i : Fa, [wr, T] = bt(!1), Q = typeof Zn < "u" ? Zn : wr, re = typeof Gr == "function" ? Gr : T, [te, X] = bt(!0), G = typeof mi < "u" ? mi : te, K = typeof Ji == "function" ? Ji : X, [ae, he] = bt(!0), me = typeof _i < "u" ? _i : ae, ye = typeof Kr == "function" ? Kr : he, [Me, Ue] = bt(Kt.tree.ySpacing), [Be, Ye] = bt(Kt.tree.ySpacing), He = typeof Wn == "function" ? Wn : Ye, [Ze, Ge] = bt(Kt.text.phyloLabelSize), [at, Nt] = bt(Kt.text.phyloLabelSize), Jt = typeof uo == "function" ? uo : Nt, [hn, On] = bt(Kt.text.geneLabelSize), [_n, Zt] = bt(Kt.text.geneLabelSize), Yt = typeof es == "function" ? es : Zt, [jt, mr] = bt(Kt.gene.edgeWidth), [Cr, ps] = bt(Kt.gene.edgeWidth), Yi = typeof tn == "function" ? tn : ps, [Jr, Vs] = bt(Kt.genome?.xScalePercent || 30), [Bs, ja] = bt(Kt.genome?.xScalePercent || 30), no = typeof Ar == "function" ? Ar : ja, na = ze || $n(null), [Ws, ss] = bt(!0), [ro, Pi] = bt(!0), [Gi, ra] = bt(!0), [qs, Fs] = bt(!0), [Do, Bo] = bt(!0), [So, Vo] = bt(!0), [Uc, J] = bt(!0), [Te, Se] = bt(!0), [Ie, je] = bt(!0), [V, ee] = bt(!0), ie = _e !== void 0 ? _e : Ws, ue = ve || ss, Fe = rt !== void 0 ? rt : ro, De = Ke || Pi, gt = vt !== void 0 ? vt : Gi, nt = $e || ra, yt = ct !== void 0 ? ct : qs, Ot = It || Fs, en = Xt !== void 0 ? Xt : Do, Cn = ln || Bo, Bn = Ln !== void 0 ? Ln : So, xr = mn || Vo, fr = mt !== void 0 ? mt : Uc, hr = on || J, er = $t !== void 0 ? $t : Te, Ir = En || Se, Ii = yn !== void 0 ? yn : Ie, Ni = li || je, os = $r !== void 0 ? $r : V, Mr = Yr || ee, [As, Xa] = bt(null), [Nr, To] = bt("idle"), [Ki, qr] = bt(null), [cl, hc] = bt(null), ul = 400, Ru = "hoodini_nvidia_api_key", [Wo, Pl] = bt(""), [tp, Sd] = bt(!1), [np, th] = bt(null);
|
|
23133
23143
|
Kn(() => {
|
|
23134
23144
|
const pt = localStorage.getItem(Ru);
|
|
23135
23145
|
pt && Pl(pt);
|
|
@@ -23179,7 +23189,7 @@ function rq({
|
|
|
23179
23189
|
To("needsApiKey"), Sd(!0), Xa(pt);
|
|
23180
23190
|
return;
|
|
23181
23191
|
}
|
|
23182
|
-
if (!(As === pt && Nr === "folding") && !(
|
|
23192
|
+
if (!(As === pt && Nr === "folding") && !(Ki && As === pt && Nr === "success")) {
|
|
23183
23193
|
Xa(pt), To("folding"), th(Oi), qr(null);
|
|
23184
23194
|
try {
|
|
23185
23195
|
const Rn = Dn && Dn.id || Dn && Dn.geneId || null;
|
|
@@ -23201,11 +23211,11 @@ function rq({
|
|
|
23201
23211
|
qr({ pdb: pt, sequenceLength: yr, confidence: Oi }), To("success"), Iu(null), Xa(null), kd(null);
|
|
23202
23212
|
}, Md = Dn && Dn.id || Dn && Dn.geneId || null;
|
|
23203
23213
|
Dn?.metadata?.sequence && Dn.metadata.sequence.length > 0;
|
|
23204
|
-
const ih = !!(Md && cl && Md === cl && (mc || Nr === "success" &&
|
|
23214
|
+
const ih = !!(Md && cl && Md === cl && (mc || Nr === "success" && Ki)), Nl = (pt) => {
|
|
23205
23215
|
To("error"), Iu(pt || "Unknown viewer error");
|
|
23206
23216
|
};
|
|
23207
23217
|
return Kn(() => {
|
|
23208
|
-
}, [mc, Nr,
|
|
23218
|
+
}, [mc, Nr, Ki, dl]), /* @__PURE__ */ le(c$, { collapsible: "offcanvas", variant: t, ...Qs, children: [
|
|
23209
23219
|
/* @__PURE__ */ B(
|
|
23210
23220
|
"div",
|
|
23211
23221
|
{
|
|
@@ -23505,7 +23515,7 @@ function rq({
|
|
|
23505
23515
|
/* @__PURE__ */ le("div", { className: "flex items-center justify-between mb-2", children: [
|
|
23506
23516
|
/* @__PURE__ */ B("h5", { className: "font-title text-xs font-medium", children: "3D Structure" }),
|
|
23507
23517
|
(() => {
|
|
23508
|
-
const Rn =
|
|
23518
|
+
const Rn = Ki && typeof Ki.confidence == "number" ? Ki.confidence : null, ei = Rn !== null ? Rn <= 1 ? Rn * 100 : Rn : null, Li = ei !== null ? nq(ei) : "transparent", Aa = ei !== null && ei > 50 ? "#000" : "#fff";
|
|
23509
23519
|
return /* @__PURE__ */ le(
|
|
23510
23520
|
zr,
|
|
23511
23521
|
{
|
|
@@ -23524,9 +23534,9 @@ function rq({
|
|
|
23524
23534
|
YW,
|
|
23525
23535
|
{
|
|
23526
23536
|
sequence: mc,
|
|
23527
|
-
pdbData:
|
|
23528
|
-
confidence:
|
|
23529
|
-
sequenceLength:
|
|
23537
|
+
pdbData: Ki?.pdb,
|
|
23538
|
+
confidence: Ki?.confidence,
|
|
23539
|
+
sequenceLength: Ki?.sequenceLength,
|
|
23530
23540
|
onStructureReady: Il,
|
|
23531
23541
|
onError: Nl,
|
|
23532
23542
|
themeBackground: ci.background
|
|
@@ -23540,7 +23550,7 @@ function rq({
|
|
|
23540
23550
|
"Structure predicted using ",
|
|
23541
23551
|
np === "boltz2" ? "Boltz2" : "ESMFold",
|
|
23542
23552
|
" • ",
|
|
23543
|
-
|
|
23553
|
+
Ki?.sequenceLength || mc?.length || "...",
|
|
23544
23554
|
" residues"
|
|
23545
23555
|
] })
|
|
23546
23556
|
] })
|
|
@@ -23835,7 +23845,7 @@ function rq({
|
|
|
23835
23845
|
HF,
|
|
23836
23846
|
{
|
|
23837
23847
|
options: ["gene_id", ...nh].map((pt) => ({ label: pt, value: pt })),
|
|
23838
|
-
value:
|
|
23848
|
+
value: rs ? rs.split(",").filter(Boolean) : [],
|
|
23839
23849
|
onValueChange: (pt) => Jo(pt.length > 0 ? pt.join(",") : ""),
|
|
23840
23850
|
placeholder: "Select columns...",
|
|
23841
23851
|
maxCount: 2,
|
|
@@ -31021,11 +31031,11 @@ let Tm = class extends il {
|
|
|
31021
31031
|
};
|
|
31022
31032
|
Tm.instance = new Tm();
|
|
31023
31033
|
const BR = /* @__PURE__ */ new Set(["all", "all", "any", "select", "arrayLength", "abs", "acos", "acosh", "asin", "asinh", "atan", "atanh", "atan2", "ceil", "clamp", "cos", "cosh", "countLeadingZeros", "countOneBits", "countTrailingZeros", "cross", "degrees", "determinant", "distance", "dot", "dot4U8Packed", "dot4I8Packed", "exp", "exp2", "extractBits", "faceForward", "firstLeadingBit", "firstTrailingBit", "floor", "fma", "fract", "frexp", "insertBits", "inverseSqrt", "ldexp", "length", "log", "log2", "max", "min", "mix", "modf", "normalize", "pow", "quantizeToF16", "radians", "reflect", "refract", "reverseBits", "round", "saturate", "sign", "sin", "sinh", "smoothStep", "sqrt", "step", "tan", "tanh", "transpose", "trunc", "dpdx", "dpdxCoarse", "dpdxFine", "dpdy", "dpdyCoarse", "dpdyFine", "fwidth", "fwidthCoarse", "fwidthFine", "textureDimensions", "textureGather", "textureGatherCompare", "textureLoad", "textureNumLayers", "textureNumLevels", "textureNumSamples", "textureSample", "textureSampleBias", "textureSampleCompare", "textureSampleCompareLevel", "textureSampleGrad", "textureSampleLevel", "textureSampleBaseClampToEdge", "textureStore", "atomicLoad", "atomicStore", "atomicAdd", "atomicSub", "atomicMax", "atomicMin", "atomicAnd", "atomicOr", "atomicXor", "atomicExchange", "atomicCompareExchangeWeak", "pack4x8snorm", "pack4x8unorm", "pack4xI8", "pack4xU8", "pack4x8Clamp", "pack4xU8Clamp", "pack2x16snorm", "pack2x16unorm", "pack2x16float", "unpack4x8snorm", "unpack4x8unorm", "unpack4xI8", "unpack4xU8", "unpack2x16snorm", "unpack2x16unorm", "unpack2x16float", "storageBarrier", "textureBarrier", "workgroupBarrier", "workgroupUniformLoad", "subgroupAdd", "subgroupExclusiveAdd", "subgroupInclusiveAdd", "subgroupAll", "subgroupAnd", "subgroupAny", "subgroupBallot", "subgroupBroadcast", "subgroupBroadcastFirst", "subgroupElect", "subgroupMax", "subgroupMin", "subgroupMul", "subgroupExclusiveMul", "subgroupInclusiveMul", "subgroupOr", "subgroupShuffle", "subgroupShuffleDown", "subgroupShuffleUp", "subgroupShuffleXor", "subgroupXor", "quadBroadcast", "quadSwapDiagonal", "quadSwapX", "quadSwapY"]);
|
|
31024
|
-
let
|
|
31034
|
+
let Qi = class extends il {
|
|
31025
31035
|
constructor() {
|
|
31026
31036
|
super();
|
|
31027
31037
|
}
|
|
31028
|
-
}, kg = class extends
|
|
31038
|
+
}, kg = class extends Qi {
|
|
31029
31039
|
constructor(e, n, r, i, s, o) {
|
|
31030
31040
|
super(), this.calls = /* @__PURE__ */ new Set(), this.name = e, this.args = n, this.returnType = r, this.body = i, this.startLine = s, this.endLine = o;
|
|
31031
31041
|
}
|
|
@@ -31038,7 +31048,7 @@ let Zi = class extends il {
|
|
|
31038
31048
|
for (const n of this.args) e(n);
|
|
31039
31049
|
this.searchBlock(this.body, e);
|
|
31040
31050
|
}
|
|
31041
|
-
}, xG = class extends
|
|
31051
|
+
}, xG = class extends Qi {
|
|
31042
31052
|
constructor(e) {
|
|
31043
31053
|
super(), this.expression = e;
|
|
31044
31054
|
}
|
|
@@ -31048,7 +31058,7 @@ let Zi = class extends il {
|
|
|
31048
31058
|
search(e) {
|
|
31049
31059
|
this.expression.search(e);
|
|
31050
31060
|
}
|
|
31051
|
-
}, SR = class extends
|
|
31061
|
+
}, SR = class extends Qi {
|
|
31052
31062
|
constructor(e, n) {
|
|
31053
31063
|
super(), this.condition = e, this.body = n;
|
|
31054
31064
|
}
|
|
@@ -31059,7 +31069,7 @@ let Zi = class extends il {
|
|
|
31059
31069
|
this.condition.search(e), this.searchBlock(this.body, e);
|
|
31060
31070
|
}
|
|
31061
31071
|
};
|
|
31062
|
-
class sA extends
|
|
31072
|
+
class sA extends Qi {
|
|
31063
31073
|
constructor(e, n) {
|
|
31064
31074
|
super(), this.body = e, this.loopId = n;
|
|
31065
31075
|
}
|
|
@@ -31070,7 +31080,7 @@ class sA extends Zi {
|
|
|
31070
31080
|
this.searchBlock(this.body, e);
|
|
31071
31081
|
}
|
|
31072
31082
|
}
|
|
31073
|
-
let TR = class extends
|
|
31083
|
+
let TR = class extends Qi {
|
|
31074
31084
|
constructor(e, n, r, i) {
|
|
31075
31085
|
super(), this.init = e, this.condition = n, this.increment = r, this.body = i;
|
|
31076
31086
|
}
|
|
@@ -31081,7 +31091,7 @@ let TR = class extends Zi {
|
|
|
31081
31091
|
var n, r, i;
|
|
31082
31092
|
(n = this.init) === null || n === void 0 || n.search(e), (r = this.condition) === null || r === void 0 || r.search(e), (i = this.increment) === null || i === void 0 || i.search(e), this.searchBlock(this.body, e);
|
|
31083
31093
|
}
|
|
31084
|
-
}, kc = class extends
|
|
31094
|
+
}, kc = class extends Qi {
|
|
31085
31095
|
constructor(e, n, r, i, s) {
|
|
31086
31096
|
super(), this.attributes = null, this.name = e, this.type = n, this.storage = r, this.access = i, this.value = s;
|
|
31087
31097
|
}
|
|
@@ -31092,7 +31102,7 @@ let TR = class extends Zi {
|
|
|
31092
31102
|
var n;
|
|
31093
31103
|
e(this), (n = this.value) === null || n === void 0 || n.search(e);
|
|
31094
31104
|
}
|
|
31095
|
-
}, Ov = class extends
|
|
31105
|
+
}, Ov = class extends Qi {
|
|
31096
31106
|
constructor(e, n, r) {
|
|
31097
31107
|
super(), this.attributes = null, this.name = e, this.type = n, this.value = r;
|
|
31098
31108
|
}
|
|
@@ -31103,7 +31113,7 @@ let TR = class extends Zi {
|
|
|
31103
31113
|
var n;
|
|
31104
31114
|
(n = this.value) === null || n === void 0 || n.search(e);
|
|
31105
31115
|
}
|
|
31106
|
-
}, hg = class extends
|
|
31116
|
+
}, hg = class extends Qi {
|
|
31107
31117
|
constructor(e, n, r, i, s) {
|
|
31108
31118
|
super(), this.attributes = null, this.name = e, this.type = n, this.storage = r, this.access = i, this.value = s;
|
|
31109
31119
|
}
|
|
@@ -31114,7 +31124,7 @@ let TR = class extends Zi {
|
|
|
31114
31124
|
var n;
|
|
31115
31125
|
e(this), (n = this.value) === null || n === void 0 || n.search(e);
|
|
31116
31126
|
}
|
|
31117
|
-
}, j0 = class extends
|
|
31127
|
+
}, j0 = class extends Qi {
|
|
31118
31128
|
constructor(e, n, r, i, s) {
|
|
31119
31129
|
super(), this.attributes = null, this.name = e, this.type = n, this.storage = r, this.access = i, this.value = s;
|
|
31120
31130
|
}
|
|
@@ -31139,7 +31149,7 @@ var hf, Jh, Qe, Ne;
|
|
|
31139
31149
|
return t[n];
|
|
31140
31150
|
};
|
|
31141
31151
|
})(hf || (hf = {}));
|
|
31142
|
-
let RR = class extends
|
|
31152
|
+
let RR = class extends Qi {
|
|
31143
31153
|
constructor(e, n) {
|
|
31144
31154
|
super(), this.operator = e, this.variable = n;
|
|
31145
31155
|
}
|
|
@@ -31159,7 +31169,7 @@ let RR = class extends Zi {
|
|
|
31159
31169
|
return n;
|
|
31160
31170
|
};
|
|
31161
31171
|
})(Jh || (Jh = {}));
|
|
31162
|
-
let kR = class extends
|
|
31172
|
+
let kR = class extends Qi {
|
|
31163
31173
|
constructor(e, n, r) {
|
|
31164
31174
|
super(), this.operator = e, this.variable = n, this.value = r;
|
|
31165
31175
|
}
|
|
@@ -31169,7 +31179,7 @@ let kR = class extends Zi {
|
|
|
31169
31179
|
search(e) {
|
|
31170
31180
|
this.variable.search(e), this.value.search(e);
|
|
31171
31181
|
}
|
|
31172
|
-
}, Lv = class extends
|
|
31182
|
+
}, Lv = class extends Qi {
|
|
31173
31183
|
constructor(e, n) {
|
|
31174
31184
|
super(), this.name = e, this.args = n;
|
|
31175
31185
|
}
|
|
@@ -31183,7 +31193,7 @@ let kR = class extends Zi {
|
|
|
31183
31193
|
for (const n of this.args) n.search(e);
|
|
31184
31194
|
e(this);
|
|
31185
31195
|
}
|
|
31186
|
-
}, MR = class extends
|
|
31196
|
+
}, MR = class extends Qi {
|
|
31187
31197
|
constructor(e, n) {
|
|
31188
31198
|
super(), this.body = e, this.continuing = n;
|
|
31189
31199
|
}
|
|
@@ -31195,7 +31205,7 @@ let kR = class extends Zi {
|
|
|
31195
31205
|
this.searchBlock(this.body, e), (n = this.continuing) === null || n === void 0 || n.search(e);
|
|
31196
31206
|
}
|
|
31197
31207
|
};
|
|
31198
|
-
class PR extends
|
|
31208
|
+
class PR extends Qi {
|
|
31199
31209
|
constructor(e, n) {
|
|
31200
31210
|
super(), this.condition = e, this.cases = n;
|
|
31201
31211
|
}
|
|
@@ -31207,7 +31217,7 @@ class PR extends Zi {
|
|
|
31207
31217
|
for (const n of this.cases) n.search(e);
|
|
31208
31218
|
}
|
|
31209
31219
|
}
|
|
31210
|
-
let IR = class extends
|
|
31220
|
+
let IR = class extends Qi {
|
|
31211
31221
|
constructor(e, n, r, i) {
|
|
31212
31222
|
super(), this.condition = e, this.body = n, this.elseif = r, this.else = i;
|
|
31213
31223
|
}
|
|
@@ -31218,7 +31228,7 @@ let IR = class extends Zi {
|
|
|
31218
31228
|
this.condition.search(e), this.searchBlock(this.body, e), this.searchBlock(this.elseif, e), this.searchBlock(this.else, e);
|
|
31219
31229
|
}
|
|
31220
31230
|
};
|
|
31221
|
-
class NR extends
|
|
31231
|
+
class NR extends Qi {
|
|
31222
31232
|
constructor(e) {
|
|
31223
31233
|
super(), this.value = e;
|
|
31224
31234
|
}
|
|
@@ -31230,14 +31240,14 @@ class NR extends Zi {
|
|
|
31230
31240
|
(n = this.value) === null || n === void 0 || n.search(e);
|
|
31231
31241
|
}
|
|
31232
31242
|
}
|
|
31233
|
-
let DG = class extends
|
|
31243
|
+
let DG = class extends Qi {
|
|
31234
31244
|
constructor(e) {
|
|
31235
31245
|
super(), this.name = e;
|
|
31236
31246
|
}
|
|
31237
31247
|
get astNodeType() {
|
|
31238
31248
|
return "enable";
|
|
31239
31249
|
}
|
|
31240
|
-
}, BG = class extends
|
|
31250
|
+
}, BG = class extends Qi {
|
|
31241
31251
|
constructor(e) {
|
|
31242
31252
|
super(), this.extensions = e;
|
|
31243
31253
|
}
|
|
@@ -31245,7 +31255,7 @@ let DG = class extends Zi {
|
|
|
31245
31255
|
return "requires";
|
|
31246
31256
|
}
|
|
31247
31257
|
};
|
|
31248
|
-
class OR extends
|
|
31258
|
+
class OR extends Qi {
|
|
31249
31259
|
constructor(e, n) {
|
|
31250
31260
|
super(), this.severity = e, this.rule = n;
|
|
31251
31261
|
}
|
|
@@ -31253,7 +31263,7 @@ class OR extends Zi {
|
|
|
31253
31263
|
return "diagnostic";
|
|
31254
31264
|
}
|
|
31255
31265
|
}
|
|
31256
|
-
class zv extends
|
|
31266
|
+
class zv extends Qi {
|
|
31257
31267
|
constructor(e, n) {
|
|
31258
31268
|
super(), this.name = e, this.type = n;
|
|
31259
31269
|
}
|
|
@@ -31261,7 +31271,7 @@ class zv extends Zi {
|
|
|
31261
31271
|
return "alias";
|
|
31262
31272
|
}
|
|
31263
31273
|
}
|
|
31264
|
-
class SG extends
|
|
31274
|
+
class SG extends Qi {
|
|
31265
31275
|
constructor() {
|
|
31266
31276
|
super();
|
|
31267
31277
|
}
|
|
@@ -31269,21 +31279,21 @@ class SG extends Zi {
|
|
|
31269
31279
|
return "discard";
|
|
31270
31280
|
}
|
|
31271
31281
|
}
|
|
31272
|
-
let LR = class extends
|
|
31282
|
+
let LR = class extends Qi {
|
|
31273
31283
|
constructor() {
|
|
31274
31284
|
super(), this.condition = null, this.loopId = -1;
|
|
31275
31285
|
}
|
|
31276
31286
|
get astNodeType() {
|
|
31277
31287
|
return "break";
|
|
31278
31288
|
}
|
|
31279
|
-
}, zR = class extends
|
|
31289
|
+
}, zR = class extends Qi {
|
|
31280
31290
|
constructor() {
|
|
31281
31291
|
super(), this.loopId = -1;
|
|
31282
31292
|
}
|
|
31283
31293
|
get astNodeType() {
|
|
31284
31294
|
return "continue";
|
|
31285
31295
|
}
|
|
31286
|
-
}, kt = class X0 extends
|
|
31296
|
+
}, kt = class X0 extends Qi {
|
|
31287
31297
|
constructor(e) {
|
|
31288
31298
|
super(), this.attributes = null, this.name = e;
|
|
31289
31299
|
}
|
|
@@ -57582,7 +57592,7 @@ function Hse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
|
|
|
57582
57592
|
console.log("🎯 Ruler rendering with rulerScaleFactor:", lt, "base fontSize: 11 -> scaled:", 11 * lt), ht.ruler.height * lt;
|
|
57583
57593
|
const qt = Ut, kn = ht.ruler.tickHeight * lt, Vn = ht.ruler.labelOffset * lt, Mi = 11 * lt;
|
|
57584
57594
|
At += "<g id='ruler'>";
|
|
57585
|
-
const $i = ft || 0, Gr = (ht.genome && typeof ht.genome.xScalePercent == "number" ? ht.genome.xScalePercent : 100) / 100, mi = (tn) => tn * Gr + $i,
|
|
57595
|
+
const $i = ft || 0, Gr = (ht.genome && typeof ht.genome.xScalePercent == "number" ? ht.genome.xScalePercent : 100) / 100, mi = (tn) => tn * Gr + $i, Ji = (tn) => {
|
|
57586
57596
|
const Zs = mi(tn.x), [Ar] = Ee([Zs, 0]);
|
|
57587
57597
|
return Ar;
|
|
57588
57598
|
}, _i = zt.slice(0, 3);
|
|
@@ -57591,26 +57601,26 @@ function Hse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
|
|
|
57591
57601
|
worldX: mi(tn.x),
|
|
57592
57602
|
screenX: tn.screenX,
|
|
57593
57603
|
type: tn.type,
|
|
57594
|
-
computedSvgX:
|
|
57604
|
+
computedSvgX: Ji(tn)
|
|
57595
57605
|
}))), console.log("🎯 Ruler debug - bounds:", { min_x: w, max_x: E, svgWidth: S, xOffset: be, contentScale: Ae, useFormatDimensions: b, compactWidth: q, finalWidth: ce, alignmentRef: $i, genomeXScaleValue: Gr });
|
|
57596
|
-
const Kr = zt.filter((tn) => tn && typeof tn.x == "number" && isFinite(tn.x)).map((tn) =>
|
|
57606
|
+
const Kr = zt.filter((tn) => tn && typeof tn.x == "number" && isFinite(tn.x)).map((tn) => Ji(tn)), rr = 10, Wn = Math.max(0, Math.min(...Kr) - rr), ir = Math.min(ce, Math.max(...Kr) + rr);
|
|
57597
57607
|
At += `<line x1='${Wn}' y1='${qt}' x2='${ir}' y2='${qt}' stroke='${Hn}' stroke-width='0.5'/>`;
|
|
57598
57608
|
const uo = zt.filter((tn) => tn && tn.type && typeof tn.x == "number" && isFinite(tn.x)).map((tn) => ({
|
|
57599
57609
|
...tn,
|
|
57600
57610
|
worldX: mi(tn.x),
|
|
57601
|
-
screenX:
|
|
57611
|
+
screenX: Ji(tn)
|
|
57602
57612
|
})).filter((tn) => tn.screenX >= 0 && tn.screenX <= ce);
|
|
57603
57613
|
console.log("🎯 SVG Export: filtered ticks:", uo.length, { contentScale: Ae, useFormatDimensions: b });
|
|
57604
|
-
const
|
|
57614
|
+
const es = i.showTreeLayer === !0 || i.showTreeTextLayer === !0 ? uo.filter((tn) => tn.type === "tree" && tn.isScale) : [], ts = uo.filter((tn) => tn.type === "gene");
|
|
57605
57615
|
At += "<g id='ruler-tree'>";
|
|
57606
|
-
for (const tn of
|
|
57616
|
+
for (const tn of es)
|
|
57607
57617
|
At += `<line x1='${tn.screenX}' y1='${qt}' x2='${tn.screenX}' y2='${qt + kn / 2}' stroke='${zn}' stroke-width='1'/>`, At += `<text x='${tn.screenX}' y='${qt + Vn}' text-anchor='middle' font-size='${Mi}px' fill='${zn}' font-family='Helvetica, Arial, sans-serif' font-weight='bold'>${tn.label}</text>`;
|
|
57608
57618
|
At += "</g>", At += "<g id='ruler-genes'>";
|
|
57609
|
-
for (const tn of
|
|
57619
|
+
for (const tn of ts)
|
|
57610
57620
|
At += `<line x1='${tn.screenX}' y1='${qt}' x2='${tn.screenX}' y2='${qt + kn}' stroke='${Hn}' stroke-width='1'/>`, At += `<text x='${tn.screenX}' y='${qt + Vn}' text-anchor='middle' font-size='${Mi}px' fill='${Ht}' font-family='Helvetica, Arial, sans-serif'>${F5(tn.x)}</text>`;
|
|
57611
|
-
if (
|
|
57612
|
-
for (let tn = 0; tn <
|
|
57613
|
-
const Zs =
|
|
57621
|
+
if (ts.length > 1)
|
|
57622
|
+
for (let tn = 0; tn < ts.length - 1; tn++) {
|
|
57623
|
+
const Zs = ts[tn], Ar = ts[tn + 1];
|
|
57614
57624
|
if (Ar.x - Zs.x > 20) {
|
|
57615
57625
|
const sr = Zs.screenX + (Ar.screenX - Zs.screenX) / 2;
|
|
57616
57626
|
sr >= 0 && sr <= ce && (At += `<line x1='${sr}' y1='${qt}' x2='${sr}' y2='${qt + kn / 2}' stroke='${Hn}' stroke-width='0.5'/>`);
|
|
@@ -57639,8 +57649,8 @@ function Hse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
|
|
|
57639
57649
|
const Hn = pi - Yr, Ht = 60, zn = q - ln, qt = Math.floor(zn / Ht), kn = Math.max(3, Math.min(8, qt)), Vn = Hn / kn, Mi = Math.pow(10, Math.floor(Math.log10(Vn))), $i = Vn / Mi;
|
|
57640
57650
|
let Zn;
|
|
57641
57651
|
$i <= 1 ? Zn = 1 : $i <= 2 ? Zn = 2 : $i <= 5 ? Zn = 5 : Zn = 10;
|
|
57642
|
-
const Gr = Zn * Mi, mi = Math.floor(Yr / Gr),
|
|
57643
|
-
for (let _i = mi; _i <=
|
|
57652
|
+
const Gr = Zn * Mi, mi = Math.floor(Yr / Gr), Ji = Math.ceil(pi / Gr);
|
|
57653
|
+
for (let _i = mi; _i <= Ji; _i++) {
|
|
57644
57654
|
const Kr = _i * Gr;
|
|
57645
57655
|
if (Kr < Yr - Gr * 0.1 || Kr > pi + Gr * 0.1) continue;
|
|
57646
57656
|
const rr = Kr * yn + En, Wn = Xt(rr);
|
|
@@ -57650,9 +57660,9 @@ function Hse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
|
|
|
57650
57660
|
if ((i.showTreeLayer === !0 || i.showTreeTextLayer === !0) && It !== null && ln > 30 && Tt && Tt.tree && xt) {
|
|
57651
57661
|
const Hn = xt.treeOffset || 0, Ht = ht.tree && typeof ht.tree.xScalePercent == "number" ? ht.tree.xScalePercent / 100 : 1, zn = Tt.tree.allNodes.map((Gr) => Gr.y * Ht + Hn), qt = Math.min(...zn), kn = Math.max(...zn), Vn = Tt.tree.maxEvolutionaryDistance || 1, Mi = ht.tree?.fixedCoordinateWidth || 2e3, $i = Math.max(qt, w), Zn = Math.min(kn, It);
|
|
57652
57662
|
if (Zn > $i) {
|
|
57653
|
-
const mi = Math.floor(ln / 60),
|
|
57654
|
-
for (let _i = 0; _i <
|
|
57655
|
-
const Kr = $i + _i / Math.max(1,
|
|
57663
|
+
const mi = Math.floor(ln / 60), Ji = Math.min(4, Math.max(2, mi));
|
|
57664
|
+
for (let _i = 0; _i < Ji; _i++) {
|
|
57665
|
+
const Kr = $i + _i / Math.max(1, Ji - 1) * (Zn - $i), rr = Xt(Kr), Wn = (Kr - Hn) / Ht * (Vn / Mi);
|
|
57656
57666
|
let ir;
|
|
57657
57667
|
Vn < 1e-3 ? ir = Wn.toExponential(1) : Vn < 0.1 || Vn < 1 ? ir = Wn.toFixed(2) : ir = Wn.toFixed(1), rr >= 0 && rr <= ln && (mt.push({ screenX: rr, label: ir }), Ln.push(rr));
|
|
57658
57668
|
}
|
|
@@ -57828,10 +57838,10 @@ const as = !1, xM = it.forwardRef(({
|
|
|
57828
57838
|
return te;
|
|
57829
57839
|
}
|
|
57830
57840
|
return {};
|
|
57831
|
-
}, [Ht, zn] = bt(null), [qt, kn] = bt(0), [Vn, Mi] = bt(!1), $i = it.useRef(null), [Zn, Gr] = it.useState({ width: 0, height: 0 }), [mi,
|
|
57841
|
+
}, [Ht, zn] = bt(null), [qt, kn] = bt(0), [Vn, Mi] = bt(!1), $i = it.useRef(null), [Zn, Gr] = it.useState({ width: 0, height: 0 }), [mi, Ji] = it.useState(!0), [_i, Kr] = bt(P?.tree?.xScalePercent || Kt.tree.xScalePercent), rr = ot ?? _i, [Wn, ir] = bt({
|
|
57832
57842
|
target: [0, 0, 0],
|
|
57833
57843
|
zoom: -2
|
|
57834
|
-
}), [uo, Io] = bt(null), [
|
|
57844
|
+
}), [uo, Io] = bt(null), [es, ts] = bt(null), [tn, Zs] = bt(null), [Ar, _s] = bt(null), [sr, Qs] = bt(null), [ni, yi] = bt(null), [ci, Hr] = bt(null), [wi, Ua] = bt(null), Js = $n(!1), eo = $n(null), dr = $n(null), No = $n(0), fo = $n([]), Oo = it.useRef(null);
|
|
57835
57845
|
it.useEffect(() => {
|
|
57836
57846
|
try {
|
|
57837
57847
|
console.debug("[HoodiniViz] mounted; initial selectedNode=", Ht);
|
|
@@ -57852,7 +57862,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
57852
57862
|
}, []), ho = it.useCallback(() => {
|
|
57853
57863
|
Js.current = !1, yi(null);
|
|
57854
57864
|
}, []), cs = it.useCallback(() => {
|
|
57855
|
-
|
|
57865
|
+
ts(null), _s(null);
|
|
57856
57866
|
}, []), Zo = it.useCallback(() => {
|
|
57857
57867
|
Qs(null);
|
|
57858
57868
|
}, []), Vi = it.useCallback(() => {
|
|
@@ -58301,17 +58311,17 @@ const as = !1, xM = it.forwardRef(({
|
|
|
58301
58311
|
zoom: K
|
|
58302
58312
|
})), Yn.current = !0;
|
|
58303
58313
|
}, [Zn.width, Zn.height, pn.minX, pn.maxX, pn.minY, pn.maxY]);
|
|
58304
|
-
const _r = Oo.current || nn, xs = _r.minY,
|
|
58314
|
+
const _r = Oo.current || nn, xs = _r.minY, ns = _r.maxY, bi = _r.minX ?? nn.minX, Di = _r.maxX ?? nn.maxX, Br = P?.scrollbar?.panPaddingY ?? 50, to = xs - Br, ji = ns + Br, [fa, _o] = it.useState(0);
|
|
58305
58315
|
it.useEffect(() => {
|
|
58306
|
-
if (Wn && isFinite(Wn.target[1]) && isFinite(xs) && isFinite(
|
|
58307
|
-
const T = (
|
|
58316
|
+
if (Wn && isFinite(Wn.target[1]) && isFinite(xs) && isFinite(ns) && ns > xs) {
|
|
58317
|
+
const T = (ns - Wn.target[1]) / (ns - xs) * 100;
|
|
58308
58318
|
_o(Math.max(0, Math.min(100, T)));
|
|
58309
58319
|
}
|
|
58310
|
-
}, [Wn?.target?.[1], xs,
|
|
58320
|
+
}, [Wn?.target?.[1], xs, ns]);
|
|
58311
58321
|
let jn = 1;
|
|
58312
|
-
if (Wn && Zn.height &&
|
|
58322
|
+
if (Wn && Zn.height && ns > xs) {
|
|
58313
58323
|
const T = Math.pow(2, Wn.zoom || 0), Q = Zn.height / T;
|
|
58314
|
-
jn = Math.min(1, Q / (
|
|
58324
|
+
jn = Math.min(1, Q / (ns - xs));
|
|
58315
58325
|
}
|
|
58316
58326
|
function Fi(T, Q, re, te, X, G, K = "bottom", ae = null, he = 100, me = 150) {
|
|
58317
58327
|
const ye = (Ge) => {
|
|
@@ -58375,35 +58385,35 @@ const as = !1, xM = it.forwardRef(({
|
|
|
58375
58385
|
}
|
|
58376
58386
|
return T.map((Ge) => {
|
|
58377
58387
|
if (Ye !== null) {
|
|
58378
|
-
const Pi = Ge.id || Ge.uniqueId || "",
|
|
58379
|
-
if ((
|
|
58388
|
+
const Pi = Ge.id || Ge.uniqueId || "", Gi = Pi.indexOf("_");
|
|
58389
|
+
if ((Gi > 0 ? Pi.substring(0, Gi) : "") !== Ye)
|
|
58380
58390
|
return null;
|
|
58381
58391
|
}
|
|
58382
58392
|
const at = Ge;
|
|
58383
58393
|
let Nt;
|
|
58384
58394
|
if (Be && Be.length > 0) {
|
|
58385
|
-
const Pi = Be.map((
|
|
58395
|
+
const Pi = Be.map((Gi) => Gi === "gene_id" ? at.id || at.geneId || at.metadata?.gene_id : at.metadata?.[Gi] ?? at.metadata?.attributes?.[Gi]).filter((Gi) => Gi != null && Gi !== "");
|
|
58386
58396
|
Nt = Pi.length > 0 ? Pi.join(" | ") : null;
|
|
58387
58397
|
} else
|
|
58388
58398
|
Nt = at.id || at.geneId || at.metadata?.gene_id || null;
|
|
58389
58399
|
if (Nt == null) return null;
|
|
58390
|
-
const Jt = (at.start + at.end) / 2, hn = at.trackY !== void 0 && at.trackY !== null ? at.trackY : at.polygon && at.polygon.length ? Math.min(...at.polygon.map(([Pi,
|
|
58400
|
+
const Jt = (at.start + at.end) / 2, hn = at.trackY !== void 0 && at.trackY !== null ? at.trackY : at.polygon && at.polygon.length ? Math.min(...at.polygon.map(([Pi, Gi]) => Gi)) : 0, _n = (at.geneHeight !== void 0 && at.geneHeight !== null ? at.geneHeight : G && G.gene ? G.gene.height : 60) / 2, Zt = Me(at), Yt = rs(Zt) || ye(X.geneFill), jt = Math.abs(at.end - at.start) * (he / 100), mr = G && G.text && G.text.geneLabelSize ? G.text.geneLabelSize : 12, Cr = Nt == null ? "" : String(Nt), Yi = jt / (mr * 0.4);
|
|
58391
58401
|
let Jr = mr;
|
|
58392
58402
|
if (Cr.length > Yi && Yi > 0) {
|
|
58393
58403
|
const Pi = Math.min(1, Yi * 2 / Cr.length);
|
|
58394
58404
|
Jr = Math.max(mr * 0.5, mr * Math.max(0.5, Pi));
|
|
58395
58405
|
}
|
|
58396
58406
|
const Vs = at.geneHeight !== void 0 && at.geneHeight !== null ? at.geneHeight : G && G.gene ? G.gene.height : 60, Bs = me - Vs - 10, ja = Jr * 7, no = Math.max(1, Math.floor(Bs / ja)), na = Ue(Cr, jt, Jr, no), Ws = 2;
|
|
58397
|
-
let
|
|
58407
|
+
let ss;
|
|
58398
58408
|
switch ((K || "bottom").toLowerCase()) {
|
|
58399
58409
|
case "top":
|
|
58400
|
-
|
|
58410
|
+
ss = hn + _n + Ws;
|
|
58401
58411
|
break;
|
|
58402
58412
|
case "center":
|
|
58403
|
-
|
|
58413
|
+
ss = hn;
|
|
58404
58414
|
break;
|
|
58405
58415
|
default:
|
|
58406
|
-
|
|
58416
|
+
ss = hn - _n - Ws;
|
|
58407
58417
|
break;
|
|
58408
58418
|
}
|
|
58409
58419
|
let ro = "top";
|
|
@@ -58419,7 +58429,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
58419
58429
|
break;
|
|
58420
58430
|
}
|
|
58421
58431
|
return {
|
|
58422
|
-
position: [Jt,
|
|
58432
|
+
position: [Jt, ss],
|
|
58423
58433
|
text: na,
|
|
58424
58434
|
color: Yt,
|
|
58425
58435
|
size: Jr,
|
|
@@ -58428,7 +58438,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
58428
58438
|
};
|
|
58429
58439
|
}).filter(Boolean);
|
|
58430
58440
|
}
|
|
58431
|
-
function
|
|
58441
|
+
function rs(T, Q = P.stroke.darkenFactor) {
|
|
58432
58442
|
return !Array.isArray(T) || T.length < 3 ? T : [
|
|
58433
58443
|
Math.max(0, Math.floor(T[0] * Q)),
|
|
58434
58444
|
Math.max(0, Math.floor(T[1] * Q)),
|
|
@@ -58982,7 +58992,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
58982
58992
|
const te = /* @__PURE__ */ new Set(), X = Array.from(Tn.entries()).filter(([G]) => {
|
|
58983
58993
|
const K = String(G);
|
|
58984
58994
|
return te.has(K) ? !1 : (te.add(K), !0);
|
|
58985
|
-
}).map(([G, K]) => ({ value: String(G), color: K, stroke: Array.isArray(K) ?
|
|
58995
|
+
}).map(([G, K]) => ({ value: String(G), color: K, stroke: Array.isArray(K) ? rs(K) : null }));
|
|
58986
58996
|
Q.genes = X;
|
|
58987
58997
|
} else if (T && T.genesById) {
|
|
58988
58998
|
const te = /* @__PURE__ */ new Map(), X = ge || S || "cluster", G = (K) => {
|
|
@@ -59004,7 +59014,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
59004
59014
|
const he = String(ae);
|
|
59005
59015
|
if (!te.has(he)) {
|
|
59006
59016
|
const me = G(K);
|
|
59007
|
-
te.set(he, { value: he, color: me, stroke: Array.isArray(me) ?
|
|
59017
|
+
te.set(he, { value: he, color: me, stroke: Array.isArray(me) ? rs(me) : null });
|
|
59008
59018
|
}
|
|
59009
59019
|
}
|
|
59010
59020
|
}), Q.genes = Array.from(te.values());
|
|
@@ -59038,7 +59048,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
59038
59048
|
const Ue = Me >> 0 & 255, Be = Me >> 8 & 255, Ye = Me >> 16 & 255;
|
|
59039
59049
|
ye = [Math.abs(Ue), Math.abs(Be), Math.abs(Ye), 255];
|
|
59040
59050
|
}
|
|
59041
|
-
re.set(me, { value: me, color: ye, stroke: Array.isArray(ye) ?
|
|
59051
|
+
re.set(me, { value: me, color: ye, stroke: Array.isArray(ye) ? rs(ye) : null });
|
|
59042
59052
|
});
|
|
59043
59053
|
}
|
|
59044
59054
|
if (Q.phylo = Array.from(re.values()), T && Array.isArray(T.proteinLinks) && T.proteinLinks.length > 0) {
|
|
@@ -59061,14 +59071,14 @@ const as = !1, xM = it.forwardRef(({
|
|
|
59061
59071
|
let ye = ae.metadata && ae.metadata[me];
|
|
59062
59072
|
or(ye) && me === "cluster" && (ye = ae.cluster);
|
|
59063
59073
|
const Me = Tn && ae && !or(ye) ? ds(Tn, Fl(ye), St?.type) || ae.fillColor : ae.fillColor || mt.geneFill;
|
|
59064
|
-
X.push({ id: K.gAId, label: ae.metadata ? ae.metadata[ge || S] : ae.id, color: Me, stroke: Array.isArray(Me) ?
|
|
59074
|
+
X.push({ id: K.gAId, label: ae.metadata ? ae.metadata[ge || S] : ae.id, color: Me, stroke: Array.isArray(Me) ? rs(Me) : null });
|
|
59065
59075
|
}
|
|
59066
59076
|
if (te.colorBy === "target_gene" && he) {
|
|
59067
59077
|
const me = ge || S || "cluster";
|
|
59068
59078
|
let ye = he.metadata && he.metadata[me];
|
|
59069
59079
|
or(ye) && me === "cluster" && (ye = he.cluster);
|
|
59070
59080
|
const Me = Tn && he && !or(ye) ? ds(Tn, Fl(ye), St?.type) || he.fillColor : he.fillColor || mt.geneFill;
|
|
59071
|
-
X.push({ id: K.gBId, label: he.metadata ? he.metadata[ge || S] : he.id, color: Me, stroke: Array.isArray(Me) ?
|
|
59081
|
+
X.push({ id: K.gBId, label: he.metadata ? he.metadata[ge || S] : he.id, color: Me, stroke: Array.isArray(Me) ? rs(Me) : null });
|
|
59072
59082
|
}
|
|
59073
59083
|
});
|
|
59074
59084
|
const G = /* @__PURE__ */ new Map();
|
|
@@ -59095,11 +59105,11 @@ const as = !1, xM = it.forwardRef(({
|
|
|
59095
59105
|
const ae = T.genesById && T.genesById[K.gAId], he = T.genesById && T.genesById[K.gBId];
|
|
59096
59106
|
if (te.colorBy === "source_gene" && ae) {
|
|
59097
59107
|
const me = ae.metadata && ae.metadata[ge || S] || ae.cluster, ye = Tn && ae && me ? ds(Tn, me, St?.type) || ae.fillColor : ae.fillColor || mt.geneFill;
|
|
59098
|
-
X.push({ id: K.gAId, label: ae.metadata ? ae.metadata[ge || S] : ae.id, color: ye, stroke: Array.isArray(ye) ?
|
|
59108
|
+
X.push({ id: K.gAId, label: ae.metadata ? ae.metadata[ge || S] : ae.id, color: ye, stroke: Array.isArray(ye) ? rs(ye) : null });
|
|
59099
59109
|
}
|
|
59100
59110
|
if (te.colorBy === "target_gene" && he) {
|
|
59101
59111
|
const me = he.metadata && he.metadata[ge || S] || he.cluster, ye = Tn && he && me ? ds(Tn, me, St?.type) || he.fillColor : he.fillColor || mt.geneFill;
|
|
59102
|
-
X.push({ id: K.gBId, label: he.metadata ? he.metadata[ge || S] : he.id, color: ye, stroke: Array.isArray(ye) ?
|
|
59112
|
+
X.push({ id: K.gBId, label: he.metadata ? he.metadata[ge || S] : he.id, color: ye, stroke: Array.isArray(ye) ? rs(ye) : null });
|
|
59103
59113
|
}
|
|
59104
59114
|
});
|
|
59105
59115
|
const G = /* @__PURE__ */ new Map();
|
|
@@ -59123,7 +59133,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
59123
59133
|
else {
|
|
59124
59134
|
const G = {};
|
|
59125
59135
|
te.forEach((K) => {
|
|
59126
|
-
const ae = K.metadata && (K.metadata.region_type || K.metadata.type) ? String(K.metadata.region_type || K.metadata.type) : K.name || K.id || "region", he = K.fillColor || K.color || null, me = K.strokeColor || (Array.isArray(he) ?
|
|
59136
|
+
const ae = K.metadata && (K.metadata.region_type || K.metadata.type) ? String(K.metadata.region_type || K.metadata.type) : K.name || K.id || "region", he = K.fillColor || K.color || null, me = K.strokeColor || (Array.isArray(he) ? rs(he) : null);
|
|
59127
59137
|
G[ae] = { color: he, stroke: me };
|
|
59128
59138
|
}), Q.regions = G;
|
|
59129
59139
|
}
|
|
@@ -59135,7 +59145,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
59135
59145
|
if (te && te.length > 0) {
|
|
59136
59146
|
const X = /* @__PURE__ */ new Map();
|
|
59137
59147
|
te.forEach((G) => {
|
|
59138
|
-
const K = G.metadata && G.metadata.type ? String(G.metadata.type) : G.name || G.id || "ncRNA", ae = G.fillColor || G.color || null, he = G.strokeColor || (Array.isArray(ae) ?
|
|
59148
|
+
const K = G.metadata && G.metadata.type ? String(G.metadata.type) : G.name || G.id || "ncRNA", ae = G.fillColor || G.color || null, he = G.strokeColor || (Array.isArray(ae) ? rs(ae) : null);
|
|
59139
59149
|
X.has(K) || X.set(K, { label: String(K), color: ae, stroke: he });
|
|
59140
59150
|
}), Q.ncRNAs = Array.from(X.values());
|
|
59141
59151
|
}
|
|
@@ -59423,7 +59433,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
59423
59433
|
}, [ne, Pn, W, P.tree?.phyloLabelPosition, qt, rr, oe, O, $, L, $e]), Wr = it.useMemo(() => {
|
|
59424
59434
|
const T = JSON.stringify(Z || P?.colorPalettes?.genePalette || {}), Q = JSON.stringify(fe || P?.colorPalettes?.ncRNAPalette || {}), re = JSON.stringify(be || P?.colorPalettes?.regionPalette || {}), te = JSON.stringify(ce || P?.colorPalettes?.domainPalette || {}), X = JSON.stringify(Ee || {}), G = JSON.stringify(Ce || {});
|
|
59425
59435
|
return `${T}|${Q}|${re}|${te}|${X}|${G}|${qt}`;
|
|
59426
|
-
}, [Z, fe, be, Ee, Ce, qt, P]),
|
|
59436
|
+
}, [Z, fe, be, Ee, Ce, qt, P]), is = it.useMemo(() => {
|
|
59427
59437
|
const T = /* @__PURE__ */ new Map();
|
|
59428
59438
|
if (!ne) return T;
|
|
59429
59439
|
const Q = St?.enabled, re = ge || S || "cluster", te = (X) => {
|
|
@@ -59480,7 +59490,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
59480
59490
|
end: G.end,
|
|
59481
59491
|
strand: G.strand,
|
|
59482
59492
|
trackY: G.trackY,
|
|
59483
|
-
fillColor:
|
|
59493
|
+
fillColor: is.get(K) || mt.geneFill || [200, 200, 200, 255]
|
|
59484
59494
|
};
|
|
59485
59495
|
});
|
|
59486
59496
|
} catch {
|
|
@@ -59492,10 +59502,10 @@ const as = !1, xM = it.forwardRef(({
|
|
|
59492
59502
|
end: G.end,
|
|
59493
59503
|
strand: G.strand,
|
|
59494
59504
|
trackY: G.trackY,
|
|
59495
|
-
fillColor:
|
|
59505
|
+
fillColor: is.get(X) || mt.geneFill || [200, 200, 200, 255]
|
|
59496
59506
|
}));
|
|
59497
59507
|
return te.filter((X) => X.fillColor && X.fillColor[0] !== 200), te;
|
|
59498
|
-
}, [ne, ne?._paletteVersion, St?.enabled,
|
|
59508
|
+
}, [ne, ne?._paletteVersion, St?.enabled, is, mt, Wr, a, yn, En, Ht, qt, $e, _e]);
|
|
59499
59509
|
const Ho = it.useMemo(() => JSON.stringify(Ee), [Ee]), Ca = it.useMemo(() => JSON.stringify(Ce), [Ce]), ta = it.useMemo(() => {
|
|
59500
59510
|
if (!ne || !ne.proteinLinks || !Array.isArray(ne.proteinLinks)) return [];
|
|
59501
59511
|
Ee && ne.applyProteinLinkColors(Ee, mt.geneFill);
|
|
@@ -60232,7 +60242,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
60232
60242
|
const Bs = `${Object.keys(ne.genesById).length}:${Pe.gene.height}:${Ht?.id ?? "null"}:${qt}:${Qr.size}:${$t.size}:${yn.size}`, ja = performance.now(), no = (() => {
|
|
60233
60243
|
if (G && Us.current && Ao.current === Bs)
|
|
60234
60244
|
return Us.current.forEach((ue) => {
|
|
60235
|
-
const Fe =
|
|
60245
|
+
const Fe = is.get(ue.uniqueId);
|
|
60236
60246
|
ue.fillColor = Fe || ue._originalFillColor || mt.geneFill;
|
|
60237
60247
|
}), Us.current;
|
|
60238
60248
|
const V = (ue) => {
|
|
@@ -60260,7 +60270,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
60260
60270
|
} catch {
|
|
60261
60271
|
}
|
|
60262
60272
|
return ie.map(([ue, Fe]) => {
|
|
60263
|
-
const gt =
|
|
60273
|
+
const gt = is.get(ue) || Fe.fillColor || mt.geneFill;
|
|
60264
60274
|
return {
|
|
60265
60275
|
type: "gene",
|
|
60266
60276
|
id: Fe.id || ue,
|
|
@@ -60291,10 +60301,10 @@ const as = !1, xM = it.forwardRef(({
|
|
|
60291
60301
|
});
|
|
60292
60302
|
} catch {
|
|
60293
60303
|
}
|
|
60294
|
-
const
|
|
60304
|
+
const ss = no.map((V) => {
|
|
60295
60305
|
const ee = V.geneHeight !== void 0 && V.geneHeight !== null ? V.geneHeight : Pe && Pe.gene ? Pe.gene.height : 0, ie = V.config && V.config.gene && V.config.gene.arrowheadHeight ? V.config.gene.arrowheadHeight : Pe && Pe.gene ? Pe.gene.arrowheadHeight : 0;
|
|
60296
60306
|
return `${V.uniqueId || ""}:${ee}:${ie}`;
|
|
60297
|
-
}).join("|"), ro = 8, Pi = (V, ee = 0, ie = 255) => Math.max(ee, Math.min(ie, V)),
|
|
60307
|
+
}).join("|"), ro = 8, Pi = (V, ee = 0, ie = 255) => Math.max(ee, Math.min(ie, V)), Gi = (V, ee) => [
|
|
60298
60308
|
Pi(Math.round(V[0] * ee)),
|
|
60299
60309
|
Pi(Math.round(V[1] * ee)),
|
|
60300
60310
|
Pi(Math.round(V[2] * ee)),
|
|
@@ -60325,11 +60335,11 @@ const as = !1, xM = it.forwardRef(({
|
|
|
60325
60335
|
nt.push([(hr[0] + er[0]) / 2, (hr[1] + er[1]) / 2]);
|
|
60326
60336
|
}
|
|
60327
60337
|
if (nt.length < 2) continue;
|
|
60328
|
-
const yt = Fe.metadata && typeof Fe.metadata.similarity == "number" ? Fe.metadata.similarity : 0, Ot = ie.length > 0 ? Math.floor(Math.max(0, Math.min(1, yt / 100)) * (ie.length - 1)) : 0, en = ie.length > 0 ? ie[Ot] : Fe.fillColor || [150, 150, 150, 255], Cn =
|
|
60338
|
+
const yt = Fe.metadata && typeof Fe.metadata.similarity == "number" ? Fe.metadata.similarity : 0, Ot = ie.length > 0 ? Math.floor(Math.max(0, Math.min(1, yt / 100)) * (ie.length - 1)) : 0, en = ie.length > 0 ? ie[Ot] : Fe.fillColor || [150, 150, 150, 255], Cn = Gi(en.slice(0, 4), 0.9), Bn = Gi(en.slice(0, 4), 1.1), xr = Math.max(2, ro);
|
|
60329
60339
|
for (let fr = 0; fr < xr - 1; fr++) {
|
|
60330
60340
|
const hr = fr / (xr - 1), er = (fr + 1) / (xr - 1), Ir = (Xa) => {
|
|
60331
|
-
const Nr = Xa * (nt.length - 1), To = Math.floor(Nr),
|
|
60332
|
-
return [
|
|
60341
|
+
const Nr = Xa * (nt.length - 1), To = Math.floor(Nr), Ki = nt[To], qr = nt[Math.min(nt.length - 1, To + 1)], cl = Nr - To;
|
|
60342
|
+
return [Ki[0] + (qr[0] - Ki[0]) * cl, Ki[1] + (qr[1] - Ki[1]) * cl];
|
|
60333
60343
|
}, Ii = Ir(hr), Ni = Ir(er), os = ra(Cn, Bn, hr), Mr = ra(Cn, Bn, er), As = ra(os, Mr, 0.5);
|
|
60334
60344
|
ue.push({ path: [Ii, Ni], color: As, width: Math.max(1, ee.strokeWidth || 2) });
|
|
60335
60345
|
}
|
|
@@ -60478,10 +60488,10 @@ const as = !1, xM = it.forwardRef(({
|
|
|
60478
60488
|
let ee = mt?.geneFill?.slice(0, 3) || [100, 150, 200], ie = 255;
|
|
60479
60489
|
const ue = Ee?.colorBy;
|
|
60480
60490
|
if (ue === "source_gene") {
|
|
60481
|
-
const De =
|
|
60491
|
+
const De = is.get(V.gAId);
|
|
60482
60492
|
De && (ee = De.slice(0, 3));
|
|
60483
60493
|
} else if (ue === "target_gene") {
|
|
60484
|
-
const De =
|
|
60494
|
+
const De = is.get(V.gBId);
|
|
60485
60495
|
De && (ee = De.slice(0, 3));
|
|
60486
60496
|
} else if (ue === "identity_solid")
|
|
60487
60497
|
Ee?.solidColor && (ee = Ee.solidColor.slice(0, 3));
|
|
@@ -60516,7 +60526,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
60516
60526
|
Do,
|
|
60517
60527
|
Wr,
|
|
60518
60528
|
Ho,
|
|
60519
|
-
|
|
60529
|
+
is.size,
|
|
60520
60530
|
Tn,
|
|
60521
60531
|
St?.prevalenceFilter,
|
|
60522
60532
|
St?.name,
|
|
@@ -60538,10 +60548,10 @@ const as = !1, xM = it.forwardRef(({
|
|
|
60538
60548
|
if (Ht && Qr.size > 0 && (!Qr.has(V.hoodA) || !Qr.has(V.hoodB)))
|
|
60539
60549
|
return [];
|
|
60540
60550
|
if (yn.size > 0 && V.geneA && V.geneB) {
|
|
60541
|
-
const Mr = (
|
|
60542
|
-
if (!
|
|
60543
|
-
const cl = typeof
|
|
60544
|
-
return
|
|
60551
|
+
const Mr = (Ki, qr) => {
|
|
60552
|
+
if (!Ki) return qr;
|
|
60553
|
+
const cl = typeof Ki.attributes == "string" ? Ki.attributes.match(/ID=([^;]+)/)?.[1] || null : Ki.attributes?.ID || null;
|
|
60554
|
+
return Ki.originalGeneId || Ki.gene_id || cl || qr;
|
|
60545
60555
|
}, As = ee?.genesById?.[V.geneA], Xa = ee?.genesById?.[V.geneB], Nr = Mr(As, V.geneA), To = Mr(Xa, V.geneB);
|
|
60546
60556
|
if (Nr && yn.has(String(Nr)) || To && yn.has(String(To)))
|
|
60547
60557
|
return [];
|
|
@@ -60732,7 +60742,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
60732
60742
|
// GenomeView data was re-derived (genesData identity changes on recompute).
|
|
60733
60743
|
getPolygon: [
|
|
60734
60744
|
no,
|
|
60735
|
-
|
|
60745
|
+
ss,
|
|
60736
60746
|
qt,
|
|
60737
60747
|
Pe.gene.height,
|
|
60738
60748
|
Pe.gene.defaultHeight,
|
|
@@ -61024,7 +61034,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
61024
61034
|
ta,
|
|
61025
61035
|
// ===== COLORS =====
|
|
61026
61036
|
Tn,
|
|
61027
|
-
|
|
61037
|
+
is,
|
|
61028
61038
|
// Contains custom colors from geneColors prop and metadata color column
|
|
61029
61039
|
Hs,
|
|
61030
61040
|
mn,
|
|
@@ -62232,7 +62242,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
62232
62242
|
const K = P.tree && typeof P.tree.xScalePercent == "number" ? P.tree.xScalePercent / 100 : 1, ae = nn.treeOffset || 0, he = [X * K + ae, G, 0], me = wr.current && wr.current.zoom !== void 0 ? wr.current.zoom : Wn.zoom || -3;
|
|
62233
62243
|
ir((Ye) => ({ ...Ye, target: he, zoom: me })), wr.current = { ...wr.current || {}, target: he, zoom: me };
|
|
62234
62244
|
const ye = String(te.leaf_id || te.metadata?.leaf_id || te.name || re);
|
|
62235
|
-
|
|
62245
|
+
ts(null), setTimeout(() => ts(ye), 0);
|
|
62236
62246
|
const Me = P?.tree?.nodeRadius || { internal: 4, leaf: 2 };
|
|
62237
62247
|
let Ue = mt.treeEdges || [220, 180, 60, 255];
|
|
62238
62248
|
if (Dr.current?.nodes) {
|
|
@@ -62269,7 +62279,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
62269
62279
|
id: "phylo-tree-viewer-container",
|
|
62270
62280
|
ref: $i,
|
|
62271
62281
|
style: {
|
|
62272
|
-
width: "
|
|
62282
|
+
width: "100%",
|
|
62273
62283
|
height: "100%",
|
|
62274
62284
|
position: "relative",
|
|
62275
62285
|
overflow: "hidden",
|
|
@@ -62309,9 +62319,9 @@ const as = !1, xM = it.forwardRef(({
|
|
|
62309
62319
|
wr.current = Q;
|
|
62310
62320
|
return;
|
|
62311
62321
|
}
|
|
62312
|
-
const re = P?.scrollbar?.panPaddingY ?? 50, te = P?.scrollbar?.panPaddingX ?? 500, X = Math.pow(2, Q.zoom || 0), G = Math.max(1, X * 0.5), K = W !== "none" ? In || 200 : 0, ae = re * G, he = (te + K) * G, me =
|
|
62322
|
+
const re = P?.scrollbar?.panPaddingY ?? 50, te = P?.scrollbar?.panPaddingX ?? 500, X = Math.pow(2, Q.zoom || 0), G = Math.max(1, X * 0.5), K = W !== "none" ? In || 200 : 0, ae = re * G, he = (te + K) * G, me = ns - xs || 1e3, ye = Di - bi || 1e4, Me = Zn.height || 600, Ue = Zn.width || 800, Be = Math.log2(Me / (me * 1.5)), Ye = Math.log2(Ue / (ye * 1.5)), He = Math.min(Be, Ye, P?.scrollbar?.minZoom ?? -5), Ze = P?.scrollbar?.maxZoom ?? 2;
|
|
62313
62323
|
isFinite(Q.zoom) && (Q.zoom = Math.max(He, Math.min(Ze, Q.zoom)));
|
|
62314
|
-
const Ge = xs - ae, at =
|
|
62324
|
+
const Ge = xs - ae, at = ns + ae;
|
|
62315
62325
|
if (isFinite(Ge) && isFinite(at) && at > Ge) {
|
|
62316
62326
|
const hn = Q.target[1], On = Math.max(Ge, Math.min(at, hn));
|
|
62317
62327
|
On !== hn && (Q.target = [Q.target[0], On, Q.target[2] || 0]);
|
|
@@ -62329,7 +62339,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
62329
62339
|
layers: Ml,
|
|
62330
62340
|
pickingRadius: 100,
|
|
62331
62341
|
style: {
|
|
62332
|
-
width: "
|
|
62342
|
+
width: "100%",
|
|
62333
62343
|
height: b ? `${Si}px` : `${Si}px`,
|
|
62334
62344
|
position: "absolute",
|
|
62335
62345
|
left: "0",
|
|
@@ -62347,7 +62357,7 @@ const as = !1, xM = it.forwardRef(({
|
|
|
62347
62357
|
if (K) {
|
|
62348
62358
|
const Be = T.node?.leaf_id || T.node?.metadata?.leaf_id || T.node?.metadata?.leaf_name || T.node?.name || T.node?.id;
|
|
62349
62359
|
if (Be) {
|
|
62350
|
-
|
|
62360
|
+
ts(null), setTimeout(() => ts(String(Be)), 0);
|
|
62351
62361
|
const Ye = Number.isFinite(Number(T.rawY)) ? Number(T.rawY) : Number.isFinite(Number(T.node?.y)) ? Number(T.node.y) : Number(T.node?.rawY), He = Number.isFinite(Number(T.x)) ? Number(T.x) : Number(T.node?.x), Ze = Pe.tree && typeof Pe.tree.xScalePercent == "number" ? Pe.tree.xScalePercent / 100 : 1;
|
|
62352
62362
|
Number.isFinite(Ye) && Number.isFinite(He) && _s([{
|
|
62353
62363
|
id: Be,
|
|
@@ -69673,7 +69683,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69673
69683
|
let xi = 0, Vr = 0;
|
|
69674
69684
|
const Nn = typeof PointerEvent < "u" && vn instanceof PointerEvent && vn.pointerType === "mouse" || typeof MouseEvent < "u" && vn instanceof MouseEvent, nn = typeof PointerEvent < "u" && vn instanceof PointerEvent && vn.pointerType === "touch" || typeof TouchEvent < "u" && vn instanceof TouchEvent;
|
|
69675
69685
|
Nn && (xi = vn.button, Vr = vn.buttons);
|
|
69676
|
-
const pn = rle(wn, Qn, Tt), Yn = ile(gn, r, w, u, h, m, g, a, zt, O), _r = vn?.shiftKey === !0, xs = vn?.ctrlKey === !0,
|
|
69686
|
+
const pn = rle(wn, Qn, Tt), Yn = ile(gn, r, w, u, h, m, g, a, zt, O), _r = vn?.shiftKey === !0, xs = vn?.ctrlKey === !0, ns = vn?.metaKey === !0, bi = [
|
|
69677
69687
|
wn < 0 ? -1 : n < wn ? 1 : 0,
|
|
69678
69688
|
gn < pi ? -1 : r < gn ? 1 : 0
|
|
69679
69689
|
];
|
|
@@ -69694,7 +69704,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69694
69704
|
region: [ji, fa],
|
|
69695
69705
|
shiftKey: _r,
|
|
69696
69706
|
ctrlKey: xs,
|
|
69697
|
-
metaKey:
|
|
69707
|
+
metaKey: ns,
|
|
69698
69708
|
isEdge: _o,
|
|
69699
69709
|
isTouch: nn,
|
|
69700
69710
|
button: xi,
|
|
@@ -69715,7 +69725,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69715
69725
|
isEdge: to,
|
|
69716
69726
|
shiftKey: _r,
|
|
69717
69727
|
ctrlKey: xs,
|
|
69718
|
-
metaKey:
|
|
69728
|
+
metaKey: ns,
|
|
69719
69729
|
isTouch: nn,
|
|
69720
69730
|
localEventX: Bt - Br.x,
|
|
69721
69731
|
localEventY: fn - Br.y,
|
|
@@ -69730,7 +69740,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69730
69740
|
isEdge: to,
|
|
69731
69741
|
shiftKey: _r,
|
|
69732
69742
|
ctrlKey: xs,
|
|
69733
|
-
metaKey:
|
|
69743
|
+
metaKey: ns,
|
|
69734
69744
|
isTouch: nn,
|
|
69735
69745
|
localEventX: Bt - Br.x,
|
|
69736
69746
|
localEventY: fn - Br.y,
|
|
@@ -69744,7 +69754,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69744
69754
|
const to = Br !== void 0 && Br.x + Br.width - Bt < In;
|
|
69745
69755
|
let ji = !1;
|
|
69746
69756
|
if (d !== !1 && d !== void 0 && k.current !== void 0) {
|
|
69747
|
-
const _o = typeof d == "object" ? { ...Gm, ...d } : Gm, jn = _o.size, Fi = jn / 2,
|
|
69757
|
+
const _o = typeof d == "object" ? { ...Gm, ...d } : Gm, jn = _o.size, Fi = jn / 2, rs = iP(k.current.range), Jo = kn(ne, rs[0], rs[1]);
|
|
69748
69758
|
if (Jo !== void 0) {
|
|
69749
69759
|
const Pr = Jo.x + Jo.width + _o.offsetX - Fi + 0.5, or = Jo.y + Jo.height + _o.offsetY - Fi + 0.5;
|
|
69750
69760
|
ji = Math.abs(Pr - Bt) < jn && Math.abs(or - fn) < jn;
|
|
@@ -69758,7 +69768,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69758
69768
|
shiftKey: _r,
|
|
69759
69769
|
ctrlKey: xs,
|
|
69760
69770
|
isFillHandle: ji,
|
|
69761
|
-
metaKey:
|
|
69771
|
+
metaKey: ns,
|
|
69762
69772
|
isTouch: nn,
|
|
69763
69773
|
localEventX: Bt - Br.x,
|
|
69764
69774
|
localEventY: fn - Br.y,
|
|
@@ -69799,7 +69809,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69799
69809
|
Gr.canvas.remove(), mi.canvas.remove();
|
|
69800
69810
|
};
|
|
69801
69811
|
}, [Gr, mi]);
|
|
69802
|
-
const
|
|
69812
|
+
const Ji = A.useMemo(() => new hle(), []), _i = Hn && $e ? 1 : Ht && $e ? 2 : 5, Kr = Lt?.disableMinimumCellWidth === !0 ? 1 : 10, rr = A.useRef(), Wn = A.useRef(null), ir = A.useRef(null), uo = A.useCallback(() => {
|
|
69803
69813
|
const ne = _e.current, Bt = on.current;
|
|
69804
69814
|
if (ne === null || Bt === null || (Wn.current === null && (Wn.current = ne.getContext("2d", { alpha: !1 }), ne.width = 0, ne.height = 0), ir.current === null && (ir.current = Bt.getContext("2d", { alpha: !1 }), Bt.width = 0, Bt.height = 0), Wn.current === null || ir.current === null || Gr === null || mi === null))
|
|
69805
69815
|
return;
|
|
@@ -69855,7 +69865,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69855
69865
|
hyperWrapping: Lt?.hyperWrapping ?? !1,
|
|
69856
69866
|
touchMode: yn,
|
|
69857
69867
|
enqueue: $i.current,
|
|
69858
|
-
renderStateProvider:
|
|
69868
|
+
renderStateProvider: Ji,
|
|
69859
69869
|
renderStrategy: Lt?.renderStrategy ?? (Jm.value ? "double-buffer" : "single-buffer"),
|
|
69860
69870
|
getCellRenderer: ft,
|
|
69861
69871
|
minimumCellWidth: Kr,
|
|
@@ -69904,7 +69914,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69904
69914
|
Lt?.hyperWrapping,
|
|
69905
69915
|
Lt?.renderStrategy,
|
|
69906
69916
|
yn,
|
|
69907
|
-
|
|
69917
|
+
Ji,
|
|
69908
69918
|
ft,
|
|
69909
69919
|
Kr,
|
|
69910
69920
|
xt
|
|
@@ -69914,14 +69924,14 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69914
69924
|
}, [uo]), A.useLayoutEffect(() => {
|
|
69915
69925
|
(async () => document?.fonts?.ready !== void 0 && (await document.fonts.ready, rr.current = void 0, Io.current()))();
|
|
69916
69926
|
}, []);
|
|
69917
|
-
const
|
|
69927
|
+
const es = A.useCallback((ne) => {
|
|
69918
69928
|
vt.current = ne, Io.current(), vt.current = void 0;
|
|
69919
|
-
}, []),
|
|
69920
|
-
$i.current =
|
|
69929
|
+
}, []), ts = que(es);
|
|
69930
|
+
$i.current = ts;
|
|
69921
69931
|
const tn = A.useCallback((ne) => {
|
|
69922
|
-
|
|
69923
|
-
}, [
|
|
69924
|
-
Ke.setCallback(
|
|
69932
|
+
es(new _g(ne.map((Bt) => Bt.cell)));
|
|
69933
|
+
}, [es]);
|
|
69934
|
+
Ke.setCallback(es);
|
|
69925
69935
|
const [Zs, Ar] = A.useState(!1), [_s, sr] = Mi ?? [], Qs = _s !== void 0 && sr === -1 && _s >= 0 && _s < zn.length && zn[_s].headerRowMarkerDisabled !== !0, ni = _s !== void 0 && sr === -2;
|
|
69926
69936
|
let yi = !1, ci = !1, Hr = $t;
|
|
69927
69937
|
if (Hr === void 0 && _s !== void 0 && sr !== void 0 && sr > -1 && sr < m) {
|
|
@@ -70072,7 +70082,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
70072
70082
|
} else
|
|
70073
70083
|
gn = !0;
|
|
70074
70084
|
const Qn = [Wt.location, [Wt.localEventX, Wt.localEventY]];
|
|
70075
|
-
Gt(Qn, In), Zn.current = Qn, gn &&
|
|
70085
|
+
Gt(Qn, In), Zn.current = Qn, gn && es(new _g([Wt.location]));
|
|
70076
70086
|
}
|
|
70077
70087
|
const wn = Wt.location[0] >= (N ? 0 : 1);
|
|
70078
70088
|
mt(Wt.kind === gu && Wt.isEdge && wn && Ce === !0), Ar(Wt.kind === "cell" && Wt.isFillHandle), Y?.(ne), R(Wt);
|
|
@@ -70086,7 +70096,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
70086
70096
|
H,
|
|
70087
70097
|
y,
|
|
70088
70098
|
ft,
|
|
70089
|
-
|
|
70099
|
+
es
|
|
70090
70100
|
]);
|
|
70091
70101
|
Go("pointermove", Wi, rt, !0);
|
|
70092
70102
|
const Lo = A.useCallback((ne) => {
|
|
@@ -70175,7 +70185,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
70175
70185
|
const Yn = Math.ceil(window.devicePixelRatio ?? 1);
|
|
70176
70186
|
nn.width = pn.width * Yn, nn.height = pn.height * Yn;
|
|
70177
70187
|
const _r = nn.getContext("2d");
|
|
70178
|
-
_r !== null && (_r.scale(Yn, Yn), _r.textBaseline = "middle", Nn === -1 ? (_r.font = ze.headerFontFull, _r.fillStyle = ze.bgHeader, _r.fillRect(0, 0, nn.width, nn.height), xP(_r, 0, 0, pn.width, pn.height, zn[Vr], !1, ze, !1, void 0, void 0, !1, 0, Yr, wt, !1)) : (_r.font = ze.baseFontFull, _r.fillStyle = ze.bgCell, _r.fillRect(0, 0, nn.width, nn.height), EP(_r, y([Vr, Nn]), 0, Nn, !1, !1, 0, 0, pn.width, pn.height, !1, ze, ze.bgCell, Ke, Yr, 1, void 0, !1, 0, void 0, void 0, void 0,
|
|
70188
|
+
_r !== null && (_r.scale(Yn, Yn), _r.textBaseline = "middle", Nn === -1 ? (_r.font = ze.headerFontFull, _r.fillStyle = ze.bgHeader, _r.fillRect(0, 0, nn.width, nn.height), xP(_r, 0, 0, pn.width, pn.height, zn[Vr], !1, ze, !1, void 0, void 0, !1, 0, Yr, wt, !1)) : (_r.font = ze.baseFontFull, _r.fillStyle = ze.bgCell, _r.fillRect(0, 0, nn.width, nn.height), EP(_r, y([Vr, Nn]), 0, Nn, !1, !1, 0, 0, pn.width, pn.height, !1, ze, ze.bgCell, Ke, Yr, 1, void 0, !1, 0, void 0, void 0, void 0, Ji, ft, () => {
|
|
70179
70189
|
}))), nn.style.left = "-100%", nn.style.position = "absolute", nn.style.width = `${pn.width}px`, nn.style.height = `${pn.height}px`, document.body.append(nn), ne.dataTransfer.setDragImage(nn, pn.width / 2, pn.height / 2), window.setTimeout(() => {
|
|
70180
70190
|
nn.remove();
|
|
70181
70191
|
}, 0);
|
|
@@ -70195,7 +70205,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
70195
70205
|
wt,
|
|
70196
70206
|
y,
|
|
70197
70207
|
Ke,
|
|
70198
|
-
|
|
70208
|
+
Ji,
|
|
70199
70209
|
ft
|
|
70200
70210
|
]);
|
|
70201
70211
|
Go("dragstart", Ao, ge?.current ?? null, !1, !1);
|
|
@@ -71848,7 +71858,7 @@ function zde(t, e, n, r, i) {
|
|
|
71848
71858
|
scrollRef: m
|
|
71849
71859
|
};
|
|
71850
71860
|
}
|
|
71851
|
-
const Ude = A.lazy(async () => await import("./data-grid-overlay-editor-
|
|
71861
|
+
const Ude = A.lazy(async () => await import("./data-grid-overlay-editor-BGJ8nj3b.js"));
|
|
71852
71862
|
let $de = 0;
|
|
71853
71863
|
function Hde(t) {
|
|
71854
71864
|
return Ple(kB(kB(t).filter((e) => e.span !== void 0).map((e) => Yu((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
|
|
@@ -71878,7 +71888,7 @@ const O0 = {
|
|
|
71878
71888
|
rows: ur.empty(),
|
|
71879
71889
|
current: void 0
|
|
71880
71890
|
}, Vde = (t, e) => {
|
|
71881
|
-
const [n, r] = A.useState(L0), [i, s] = A.useState(), o = A.useRef(null), a = A.useRef(null), [u, d] = A.useState(), h = A.useRef(), g = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: y, markdownDivCreateNode: C, width: b, height: _, columns: w, rows: E, getCellContent: x, onCellClicked: D, onCellActivated: S, onFillPattern: k, onFinishedEditing: $, coercePasteValue: L, drawHeader: O, drawCell: P, editorBloom: U, onHeaderClicked: M, onColumnProposeMove: j, rangeSelectionColumnSpanning: W = !0, spanRangeBehavior: Y = "default", onGroupHeaderClicked: R, onCellContextMenu: H, className: I, onHeaderContextMenu: N, getCellsForSelection: q, onGroupHeaderContextMenu: Z, onGroupHeaderRenamed: ce, onCellEdited: oe, onCellsEdited: fe, onSearchResultsChanged: be, searchResults: ge, onSearchValueChange: Ae, searchValue: ke, onKeyDown: lt, onKeyUp: Ee, keybindings: Ce, editOnType: Xe = !0, onRowAppended: ot, onColumnAppended: _t, onColumnMoved: ze, validateCell: Mt, highlightRegions: an, rangeSelect: sn = "rect", columnSelect: Ct = "multi", rowSelect: wt = "multi", rangeSelectionBlending: At = "exclusive", columnSelectionBlending: Vt = "exclusive", rowSelectionBlending: Ut = "exclusive", onDelete: Qt, onDragStart: qe, onMouseMove: xe, onPaste: Rt, copyHeaders: Lt = !1, freezeColumns: ft = 0, cellActivationBehavior: xt = "second-click", rowSelectionMode: Tt = "auto", columnSelectionMode: zt = "auto", onHeaderMenuClick: ht, onHeaderIndicatorClick: _e, getGroupDetails: ve, rowGrouping: rt, onSearchClose: Ke, onItemHovered: vt, onSelectionCleared: $e, showSearch: ct, onVisibleRegionChanged: It, gridSelection: Xt, onGridSelectionChange: ln, minColumnWidth: Ln = 50, maxColumnWidth: mn = 500, maxColumnAutoWidth: mt, provideEditor: on, trailingRowOptions: $t, freezeTrailingRows: En = 0, allowedFillDirections: yn = "orthogonal", scrollOffsetX: li, scrollOffsetY: $r, verticalBorder: Yr, onDragOverCell: pi, onDrop: co, onColumnResize: Hn, onColumnResizeEnd: Ht, onColumnResizeStart: zn, customRenderers: qt, fillHandle: kn, experimental: Vn, fixedShadowX: Mi, fixedShadowY: $i, headerIcons: Zn, imageWindowLoader: Gr, initialSize: mi, isDraggable:
|
|
71891
|
+
const [n, r] = A.useState(L0), [i, s] = A.useState(), o = A.useRef(null), a = A.useRef(null), [u, d] = A.useState(), h = A.useRef(), g = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: y, markdownDivCreateNode: C, width: b, height: _, columns: w, rows: E, getCellContent: x, onCellClicked: D, onCellActivated: S, onFillPattern: k, onFinishedEditing: $, coercePasteValue: L, drawHeader: O, drawCell: P, editorBloom: U, onHeaderClicked: M, onColumnProposeMove: j, rangeSelectionColumnSpanning: W = !0, spanRangeBehavior: Y = "default", onGroupHeaderClicked: R, onCellContextMenu: H, className: I, onHeaderContextMenu: N, getCellsForSelection: q, onGroupHeaderContextMenu: Z, onGroupHeaderRenamed: ce, onCellEdited: oe, onCellsEdited: fe, onSearchResultsChanged: be, searchResults: ge, onSearchValueChange: Ae, searchValue: ke, onKeyDown: lt, onKeyUp: Ee, keybindings: Ce, editOnType: Xe = !0, onRowAppended: ot, onColumnAppended: _t, onColumnMoved: ze, validateCell: Mt, highlightRegions: an, rangeSelect: sn = "rect", columnSelect: Ct = "multi", rowSelect: wt = "multi", rangeSelectionBlending: At = "exclusive", columnSelectionBlending: Vt = "exclusive", rowSelectionBlending: Ut = "exclusive", onDelete: Qt, onDragStart: qe, onMouseMove: xe, onPaste: Rt, copyHeaders: Lt = !1, freezeColumns: ft = 0, cellActivationBehavior: xt = "second-click", rowSelectionMode: Tt = "auto", columnSelectionMode: zt = "auto", onHeaderMenuClick: ht, onHeaderIndicatorClick: _e, getGroupDetails: ve, rowGrouping: rt, onSearchClose: Ke, onItemHovered: vt, onSelectionCleared: $e, showSearch: ct, onVisibleRegionChanged: It, gridSelection: Xt, onGridSelectionChange: ln, minColumnWidth: Ln = 50, maxColumnWidth: mn = 500, maxColumnAutoWidth: mt, provideEditor: on, trailingRowOptions: $t, freezeTrailingRows: En = 0, allowedFillDirections: yn = "orthogonal", scrollOffsetX: li, scrollOffsetY: $r, verticalBorder: Yr, onDragOverCell: pi, onDrop: co, onColumnResize: Hn, onColumnResizeEnd: Ht, onColumnResizeStart: zn, customRenderers: qt, fillHandle: kn, experimental: Vn, fixedShadowX: Mi, fixedShadowY: $i, headerIcons: Zn, imageWindowLoader: Gr, initialSize: mi, isDraggable: Ji, onDragLeave: _i, onRowMoved: Kr, overscrollX: rr, overscrollY: Wn, preventDiagonalScrolling: ir, rightElement: uo, rightElementProps: Io, trapFocus: es = !1, smoothScrollX: ts, smoothScrollY: tn, scaleToRem: Zs = !1, rowHeight: Ar = 34, headerHeight: _s = 36, groupHeaderHeight: sr = _s, theme: Qs, isOutsideClick: ni, renderers: yi, resizeIndicator: ci, scrollToActiveCell: Hr = !0, drawFocusRing: wi = !0, portalElementRef: Ua } = t, Js = wi === "no-editor" ? i === void 0 : wi, eo = typeof t.rowMarkers == "string" ? void 0 : t.rowMarkers, dr = eo?.kind ?? t.rowMarkers ?? "none", No = eo?.width ?? t.rowMarkerWidth, fo = eo?.startIndex ?? t.rowMarkerStartIndex ?? 1, Oo = eo?.theme ?? t.rowMarkerTheme, Ci = eo?.headerTheme, Hi = eo?.headerAlwaysVisible, ho = wt !== "multi" || eo?.headerDisabled === !0, cs = eo?.checkboxStyle ?? "square", Zo = Math.max(Ln, 20), Vi = Math.max(mn, Zo), $a = Math.max(mt ?? Vi, Zo), Qo = A.useMemo(() => typeof window > "u" ? { fontSize: "16px" } : window.getComputedStyle(document.documentElement), []), { rows: Sn, rowNumberMapper: Ha, rowHeight: Gn, getRowThemeOverride: Wi } = Nde(rt, E, Ar, y), Lo = A.useMemo(() => Number.parseFloat(Qo.fontSize), [Qo]), { rowHeight: ws, headerHeight: Us, groupHeaderHeight: Ao, theme: zo, overscrollX: sl, overscrollY: Va } = Mde({
|
|
71882
71892
|
groupHeaderHeight: sr,
|
|
71883
71893
|
headerHeight: _s,
|
|
71884
71894
|
overscrollX: rr,
|
|
@@ -71910,14 +71920,14 @@ const O0 = {
|
|
|
71910
71920
|
return typeof Te == "boolean" ? Te : N0(Te, tt);
|
|
71911
71921
|
}
|
|
71912
71922
|
return !0;
|
|
71913
|
-
}, [Qt, tt]), [Nn, nn, pn] = mde(ut, Gt, At, Vt, Ut, sn, W), Yn = A.useMemo(() => Ic(UE(), zo), [zo]), [_r, xs] = A.useState([0, 0, 0]),
|
|
71923
|
+
}, [Qt, tt]), [Nn, nn, pn] = mde(ut, Gt, At, Vt, Ut, sn, W), Yn = A.useMemo(() => Ic(UE(), zo), [zo]), [_r, xs] = A.useState([0, 0, 0]), ns = A.useMemo(() => {
|
|
71914
71924
|
if (yi === void 0)
|
|
71915
71925
|
return {};
|
|
71916
71926
|
const J = {};
|
|
71917
71927
|
for (const Te of yi)
|
|
71918
71928
|
J[Te.kind] = Te;
|
|
71919
71929
|
return J;
|
|
71920
|
-
}, [yi]), bi = A.useCallback((J) => J.kind !== dn.Custom ?
|
|
71930
|
+
}, [yi]), bi = A.useCallback((J) => J.kind !== dn.Custom ? ns[J.kind] : qt?.find((Te) => Te.isMatch(J)), [qt, ns]);
|
|
71921
71931
|
let { sizedColumns: Di, nonGrowWidth: Br } = yle(w, Sn, fn, _r[0] - (tt === 0 ? 0 : qi) - _r[2], Zo, $a, Yn, bi, ne.current);
|
|
71922
71932
|
dr !== "none" && (Br += qi);
|
|
71923
71933
|
const to = A.useMemo(() => Di.some((J) => J.group !== void 0), [Di]), ji = to ? Us + Ao : Us, fa = ut.rows.length, _o = dr === "none" ? void 0 : fa === 0 ? !1 : fa === Sn ? !0 : void 0, jn = A.useMemo(() => dr === "none" ? Di : [
|
|
@@ -71950,7 +71960,7 @@ const O0 = {
|
|
|
71950
71960
|
width: 1,
|
|
71951
71961
|
x: 0,
|
|
71952
71962
|
y: 0
|
|
71953
|
-
}),
|
|
71963
|
+
}), rs = A.useRef(!1), { setVisibleRegion: Jo, visibleRegion: Pr, scrollRef: or } = zde(li, $r, ws, Fi, () => rs.current = !0);
|
|
71954
71964
|
Fi.current = Pr;
|
|
71955
71965
|
const ds = Pr.x + tt, Wa = Pr.y, fs = A.useRef(null), St = A.useCallback((J) => {
|
|
71956
71966
|
J === !0 ? fs.current?.focus() : window.requestAnimationFrame(() => {
|
|
@@ -72304,7 +72314,7 @@ const O0 = {
|
|
|
72304
72314
|
if (Se >= 0)
|
|
72305
72315
|
return Se + (us ? 1 : 0);
|
|
72306
72316
|
}
|
|
72307
|
-
}, [Di, w, us, $t?.targetColumn]),
|
|
72317
|
+
}, [Di, w, us, $t?.targetColumn]), is = A.useRef(), Ho = A.useRef(), Ca = A.useCallback((J, Te) => {
|
|
72308
72318
|
const [Se, Ie] = Te;
|
|
72309
72319
|
return Ic(Yn, jn[Se]?.themeOverride, Wi?.(Ie), J.themeOverride);
|
|
72310
72320
|
}, [Wi, jn, Yn]), { mapper: ta } = Ode(rt, E), po = rt?.navigationBehavior, Pe = A.useCallback((J) => {
|
|
@@ -72333,11 +72343,11 @@ const O0 = {
|
|
|
72333
72343
|
return;
|
|
72334
72344
|
}
|
|
72335
72345
|
s(void 0), St();
|
|
72336
|
-
const De = ee.hasIndex(je), gt =
|
|
72346
|
+
const De = ee.hasIndex(je), gt = is.current;
|
|
72337
72347
|
if (wt === "multi" && (J.shiftKey || J.isLongTouch === !0) && gt !== void 0 && ee.hasIndex(gt)) {
|
|
72338
72348
|
const nt = [Math.min(gt, je), Math.max(gt, je) + 1];
|
|
72339
72349
|
Se || Tt === "multi" ? nn(void 0, nt, !0) : nn(ur.fromSingleSelection(nt), void 0, Se);
|
|
72340
|
-
} else wt === "multi" && (Se || J.isTouch || Tt === "multi") ? De ? nn(ee.remove(je), void 0, !0) : (nn(void 0, je, !0),
|
|
72350
|
+
} else wt === "multi" && (Se || J.isTouch || Tt === "multi") ? De ? nn(ee.remove(je), void 0, !0) : (nn(void 0, je, !0), is.current = je) : De && ee.length === 1 ? nn(ur.empty(), void 0, Te) : (nn(ur.fromSingleSelection(je), void 0, Te), is.current = je);
|
|
72341
72351
|
} else if (Ie >= tt && qn && je === Sn) {
|
|
72342
72352
|
const Fe = Wr(Ie);
|
|
72343
72353
|
Hs(Fe ?? Ie);
|
|
@@ -72371,25 +72381,25 @@ const O0 = {
|
|
|
72371
72381
|
width: Ot - yt + 1,
|
|
72372
72382
|
height: Cn - en + 1
|
|
72373
72383
|
}
|
|
72374
|
-
}, !0, Te, "click"),
|
|
72384
|
+
}, !0, Te, "click"), is.current = void 0, St();
|
|
72375
72385
|
} else
|
|
72376
72386
|
Nn({
|
|
72377
72387
|
cell: [Ie, je],
|
|
72378
72388
|
range: { x: Ie, y: je, width: 1, height: 1 }
|
|
72379
|
-
}, !0, Te, "click"),
|
|
72389
|
+
}, !0, Te, "click"), is.current = void 0, s(void 0), St();
|
|
72380
72390
|
}
|
|
72381
72391
|
} else if (J.kind === "header")
|
|
72382
72392
|
if (Qr.current = [Ie, je], s(void 0), us && Ie === 0)
|
|
72383
|
-
|
|
72393
|
+
is.current = void 0, Ho.current = void 0, !ho && wt === "multi" && (ee.length !== Sn ? nn(ur.fromSingleSelection([0, Sn]), void 0, Te) : nn(ur.empty(), void 0, Te), St());
|
|
72384
72394
|
else {
|
|
72385
72395
|
const Fe = Ho.current;
|
|
72386
72396
|
if (Ct === "multi" && (J.shiftKey || J.isLongTouch === !0) && Fe !== void 0 && V.hasIndex(Fe)) {
|
|
72387
72397
|
const De = [Math.min(Fe, Ie), Math.max(Fe, Ie) + 1];
|
|
72388
72398
|
Te || J.isTouch || zt === "multi" ? pn(void 0, De, Te) : pn(ur.fromSingleSelection(De), void 0, Te);
|
|
72389
72399
|
} else Ct === "multi" && (Te || J.isTouch || zt === "multi") ? (V.hasIndex(Ie) ? pn(V.remove(Ie), void 0, Te) : pn(void 0, Ie, Te), Ho.current = Ie) : Ct !== "none" && (V.hasIndex(Ie) ? pn(V.remove(Ie), void 0, Te) : pn(ur.fromSingleSelection(Ie), void 0, Te), Ho.current = Ie);
|
|
72390
|
-
|
|
72400
|
+
is.current = void 0, St();
|
|
72391
72401
|
}
|
|
72392
|
-
else J.kind === El ? Qr.current = [Ie, je] : J.kind === t1 && !J.isMaybeScrollbar && (Gt(L0, !1), s(void 0), St(), $e?.(),
|
|
72402
|
+
else J.kind === El ? Qr.current = [Ie, je] : J.kind === t1 && !J.isMaybeScrollbar && (Gt(L0, !1), s(void 0), St(), $e?.(), is.current = void 0, Ho.current = void 0);
|
|
72393
72403
|
}, [
|
|
72394
72404
|
wt,
|
|
72395
72405
|
Ct,
|
|
@@ -72693,7 +72703,7 @@ const O0 = {
|
|
|
72693
72703
|
}, [ht, tt]), X = A.useCallback((J, Te) => {
|
|
72694
72704
|
_e?.(J - tt, Te);
|
|
72695
72705
|
}, [_e, tt]), G = ut?.current?.cell, K = A.useCallback((J, Te, Se, Ie, je, V) => {
|
|
72696
|
-
|
|
72706
|
+
rs.current = !1;
|
|
72697
72707
|
let ee = G;
|
|
72698
72708
|
ee !== void 0 && (ee = [ee[0] - tt, ee[1]]);
|
|
72699
72709
|
const ie = ft === 0 ? void 0 : {
|
|
@@ -73088,7 +73098,7 @@ const O0 = {
|
|
|
73088
73098
|
}
|
|
73089
73099
|
}
|
|
73090
73100
|
const yt = Nt(ie, ue, !1, De), Ot = Se.didMatch;
|
|
73091
|
-
return Ot && (yt || !gt ||
|
|
73101
|
+
return Ot && (yt || !gt || es) && Te(), Ot;
|
|
73092
73102
|
}, [
|
|
73093
73103
|
po,
|
|
73094
73104
|
_n,
|
|
@@ -73105,7 +73115,7 @@ const O0 = {
|
|
|
73105
73115
|
$e,
|
|
73106
73116
|
w.length,
|
|
73107
73117
|
Vr,
|
|
73108
|
-
|
|
73118
|
+
es,
|
|
73109
73119
|
On,
|
|
73110
73120
|
pn,
|
|
73111
73121
|
nn,
|
|
@@ -73377,7 +73387,7 @@ const O0 = {
|
|
|
73377
73387
|
h.current !== void 0 && h.current[0] === Se && h.current[1] === Ie || (h.current = [Se, Ie], Nt(Se, Ie, !1, !1));
|
|
73378
73388
|
}, [be, tt, Nt]), [Jr, Vs] = Xt?.current?.cell ?? [], Bs = A.useRef(kr);
|
|
73379
73389
|
Bs.current = kr, A.useLayoutEffect(() => {
|
|
73380
|
-
at.current && !
|
|
73390
|
+
at.current && !rs.current && Jr !== void 0 && Vs !== void 0 && (Jr !== Wt.current?.current?.cell[0] || Vs !== Wt.current?.current?.cell[1]) && Bs.current(Jr, Vs), rs.current = !1;
|
|
73381
73391
|
}, [Jr, Vs]);
|
|
73382
73392
|
const ja = ut.current !== void 0 && (ut.current.cell[0] >= jn.length || ut.current.cell[1] >= Jn);
|
|
73383
73393
|
A.useLayoutEffect(() => {
|
|
@@ -73390,7 +73400,7 @@ const O0 = {
|
|
|
73390
73400
|
return A.createElement(gde, { bounds: J, group: Te, canvasBounds: Se, onClose: () => wo(void 0), onFinish: (Ie) => {
|
|
73391
73401
|
wo(void 0), ce?.(Te, Ie);
|
|
73392
73402
|
} });
|
|
73393
|
-
}, [ce, Ml]),
|
|
73403
|
+
}, [ce, Ml]), ss = Math.min(jn.length, ft + (us ? 1 : 0));
|
|
73394
73404
|
A.useImperativeHandle(e, () => ({
|
|
73395
73405
|
appendRow: (J, Te) => Hs(J + tt, Te),
|
|
73396
73406
|
appendColumn: (J, Te) => ya(J, Te),
|
|
@@ -73503,7 +73513,7 @@ const O0 = {
|
|
|
73503
73513
|
tt,
|
|
73504
73514
|
kr
|
|
73505
73515
|
]);
|
|
73506
|
-
const [ro, Pi] = G ?? [],
|
|
73516
|
+
const [ro, Pi] = G ?? [], Gi = A.useCallback((J) => {
|
|
73507
73517
|
const [Te, Se] = J;
|
|
73508
73518
|
if (Se === -1) {
|
|
73509
73519
|
Ct !== "none" && (pn(ur.fromSingleSelection(Te), void 0, !1), St());
|
|
@@ -73549,7 +73559,7 @@ const O0 = {
|
|
|
73549
73559
|
A.createElement(
|
|
73550
73560
|
Sde,
|
|
73551
73561
|
{ style: Uc, className: I, inWidth: b ?? So, inHeight: _ ?? Vo },
|
|
73552
|
-
A.createElement(ude, { fillHandle: kn, drawFocusRing: Js, experimental: Vn, fixedShadowX: Mi, fixedShadowY: $i, getRowThemeOverride: Wi, headerIcons: Zn, imageWindowLoader: Gr, initialSize: mi, isDraggable:
|
|
73562
|
+
A.createElement(ude, { fillHandle: kn, drawFocusRing: Js, experimental: Vn, fixedShadowX: Mi, fixedShadowY: $i, getRowThemeOverride: Wi, headerIcons: Zn, imageWindowLoader: Gr, initialSize: mi, isDraggable: Ji, onDragLeave: _i, onRowMoved: Kr, overscrollX: sl, overscrollY: Va, preventDiagonalScrolling: ir, rightElement: uo, rightElementProps: Io, smoothScrollX: ts, smoothScrollY: tn, className: I, enableGroups: to, onCanvasFocused: Do, onCanvasBlur: Bo, canvasRef: a, onContextMenu: jt, theme: Yn, cellXOffset: ds, cellYOffset: Wa, accessibilityHeight: Pr.height, onDragEnd: Me, columns: jn, nonGrowWidth: Br, drawHeader: Qn, onColumnProposeMove: ae, drawCell: xi, disabledRows: no, freezeColumns: ss, lockColumns: tt, firstColAccessible: tt === 0, getCellContent: gs, minColumnWidth: Zo, maxColumnWidth: Vi, searchInputRef: o, showSearch: vo, onSearchClose: Eo, highlightRegions: cc, getCellsForSelection: Bt, getGroupDetails: uc, headerHeight: Us, isFocused: ra, groupHeaderHeight: to ? Ao : 0, freezeTrailingRows: En + (qn && $t?.sticky === !0 ? 1 : 0), hasAppendRow: qn, onColumnResize: wn, onColumnResizeEnd: gn, onColumnResizeStart: In, onCellFocused: Gi, onColumnMoved: he, onDragStart: ye, onHeaderMenuClick: te, onHeaderIndicatorClick: X, onItemHovered: He, isFilling: u?.fillHandle === !0, onMouseMove: re, onKeyDown: Yt, onKeyUp: Ee, onMouseDown: fc, onMouseUp: Q, onDragOverCell: pi, onDrop: co, onSearchResultsChanged: Yi, onVisibleRegionChanged: K, clientSize: _r, rowHeight: ws, searchResults: ge, searchValue: ke, onSearchValueChange: Ae, rows: Jn, scrollRef: or, selection: ut, translateX: Pr.tx, translateY: Pr.ty, verticalBorder: na, gridRef: fs, getCellRenderer: bi, resizeIndicator: ci }),
|
|
73553
73563
|
Ws,
|
|
73554
73564
|
i !== void 0 && A.createElement(
|
|
73555
73565
|
A.Suspense,
|
|
@@ -73988,7 +73998,7 @@ function pfe(t, e, n, r, i) {
|
|
|
73988
73998
|
height: d - 1
|
|
73989
73999
|
};
|
|
73990
74000
|
}
|
|
73991
|
-
const mfe = A.lazy(async () => await import("./number-overlay-editor-
|
|
74001
|
+
const mfe = A.lazy(async () => await import("./number-overlay-editor-8SOLFxTU.js")), yfe = {
|
|
73992
74002
|
getAccessibilityString: (t) => t.data?.toString() ?? "",
|
|
73993
74003
|
kind: dn.Number,
|
|
73994
74004
|
needsHover: (t) => t.hoverEffect === !0,
|