hoodini-viz 0.2.11 → 0.2.12
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-B7Jn9keF.js → 3Dmol-Cbt2auYq.js} +1 -1
- package/dist/{data-grid-overlay-editor-B9dILUeR.js → data-grid-overlay-editor-B4lQDYkP.js} +1 -1
- package/dist/hoodini-viz.css +1 -1
- package/dist/hoodini-viz.js +1 -1
- package/dist/hoodini-viz.umd.js +1 -1
- package/dist/{index-ClbAi_Nj.js → index-DyxBxNIS.js} +686 -673
- package/dist/{number-overlay-editor-DElOzHLj.js → number-overlay-editor-DTkHoOvV.js} +1 -1
- package/package.json +1 -1
|
@@ -15,9 +15,9 @@ function aN() {
|
|
|
15
15
|
var I = R.length;
|
|
16
16
|
R.push(H);
|
|
17
17
|
e: for (; 0 < I; ) {
|
|
18
|
-
var
|
|
18
|
+
var O = I - 1 >>> 1, q = R[O];
|
|
19
19
|
if (0 < i(q, H))
|
|
20
|
-
R[
|
|
20
|
+
R[O] = H, R[I] = q, I = O;
|
|
21
21
|
else break e;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -29,12 +29,12 @@ function aN() {
|
|
|
29
29
|
var H = R[0], I = R.pop();
|
|
30
30
|
if (I !== H) {
|
|
31
31
|
R[0] = I;
|
|
32
|
-
e: for (var
|
|
33
|
-
var ce = 2 * (
|
|
32
|
+
e: for (var O = 0, q = R.length, Z = q >>> 1; O < Z; ) {
|
|
33
|
+
var ce = 2 * (O + 1) - 1, oe = R[ce], fe = ce + 1, be = R[fe];
|
|
34
34
|
if (0 > i(oe, I))
|
|
35
|
-
fe < q && 0 > i(be, oe) ? (R[
|
|
35
|
+
fe < q && 0 > i(be, oe) ? (R[O] = be, R[fe] = I, O = fe) : (R[O] = oe, R[ce] = I, O = ce);
|
|
36
36
|
else if (fe < q && 0 > i(be, I))
|
|
37
|
-
R[
|
|
37
|
+
R[O] = be, R[fe] = I, O = fe;
|
|
38
38
|
else break e;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -74,14 +74,14 @@ function aN() {
|
|
|
74
74
|
H !== null && Y(S, H.startTime - R);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
var k = !1, $ = -1, L = 5,
|
|
77
|
+
var k = !1, $ = -1, L = 5, N = -1;
|
|
78
78
|
function P() {
|
|
79
|
-
return E ? !0 : !(t.unstable_now() -
|
|
79
|
+
return E ? !0 : !(t.unstable_now() - N < L);
|
|
80
80
|
}
|
|
81
81
|
function U() {
|
|
82
82
|
if (E = !1, k) {
|
|
83
83
|
var R = t.unstable_now();
|
|
84
|
-
|
|
84
|
+
N = R;
|
|
85
85
|
var H = !0;
|
|
86
86
|
try {
|
|
87
87
|
e: {
|
|
@@ -90,10 +90,10 @@ function aN() {
|
|
|
90
90
|
try {
|
|
91
91
|
t: {
|
|
92
92
|
for (D(R), g = n(u); g !== null && !(g.expirationTime > R && P()); ) {
|
|
93
|
-
var
|
|
94
|
-
if (typeof
|
|
93
|
+
var O = g.callback;
|
|
94
|
+
if (typeof O == "function") {
|
|
95
95
|
g.callback = null, m = g.priorityLevel;
|
|
96
|
-
var q =
|
|
96
|
+
var q = O(
|
|
97
97
|
g.expirationTime <= R
|
|
98
98
|
);
|
|
99
99
|
if (R = t.unstable_now(), typeof q == "function") {
|
|
@@ -189,8 +189,8 @@ function aN() {
|
|
|
189
189
|
m = I;
|
|
190
190
|
}
|
|
191
191
|
}, t.unstable_scheduleCallback = function(R, H, I) {
|
|
192
|
-
var
|
|
193
|
-
switch (typeof I == "object" && I !== null ? (I = I.delay, I = typeof I == "number" && 0 < I ?
|
|
192
|
+
var O = t.unstable_now();
|
|
193
|
+
switch (typeof I == "object" && I !== null ? (I = I.delay, I = typeof I == "number" && 0 < I ? O + I : O) : I = O, R) {
|
|
194
194
|
case 1:
|
|
195
195
|
var q = -1;
|
|
196
196
|
break;
|
|
@@ -213,7 +213,7 @@ function aN() {
|
|
|
213
213
|
startTime: I,
|
|
214
214
|
expirationTime: q,
|
|
215
215
|
sortIndex: -1
|
|
216
|
-
}, I >
|
|
216
|
+
}, I > O ? (R.sortIndex = I, e(d, R), n(u) === null && R === n(d) && (b ? (_($), $ = -1) : b = !0, Y(S, I - O))) : (R.sortIndex = q, e(u, R), C || y || (C = !0, k || (k = !0, M()))), R;
|
|
217
217
|
}, t.unstable_shouldYield = P, t.unstable_wrapCallback = function(R) {
|
|
218
218
|
var H = m;
|
|
219
219
|
return function() {
|
|
@@ -345,7 +345,7 @@ function cN() {
|
|
|
345
345
|
}
|
|
346
346
|
return null;
|
|
347
347
|
}
|
|
348
|
-
var g = Object.assign, m = /* @__PURE__ */ Symbol.for("react.element"), y = /* @__PURE__ */ Symbol.for("react.transitional.element"), C = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), E = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.consumer"), x = /* @__PURE__ */ Symbol.for("react.context"), D = /* @__PURE__ */ Symbol.for("react.forward_ref"), S = /* @__PURE__ */ Symbol.for("react.suspense"), k = /* @__PURE__ */ Symbol.for("react.suspense_list"), $ = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"),
|
|
348
|
+
var g = Object.assign, m = /* @__PURE__ */ Symbol.for("react.element"), y = /* @__PURE__ */ Symbol.for("react.transitional.element"), C = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), E = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.consumer"), x = /* @__PURE__ */ Symbol.for("react.context"), D = /* @__PURE__ */ Symbol.for("react.forward_ref"), S = /* @__PURE__ */ Symbol.for("react.suspense"), k = /* @__PURE__ */ Symbol.for("react.suspense_list"), $ = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.activity"), P = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), U = Symbol.iterator;
|
|
349
349
|
function M(l) {
|
|
350
350
|
return l === null || typeof l != "object" ? null : (l = U && l[U] || l["@@iterator"], typeof l == "function" ? l : null);
|
|
351
351
|
}
|
|
@@ -366,7 +366,7 @@ function cN() {
|
|
|
366
366
|
return "Suspense";
|
|
367
367
|
case k:
|
|
368
368
|
return "SuspenseList";
|
|
369
|
-
case
|
|
369
|
+
case N:
|
|
370
370
|
return "Activity";
|
|
371
371
|
}
|
|
372
372
|
if (typeof l == "object")
|
|
@@ -396,15 +396,15 @@ function cN() {
|
|
|
396
396
|
data: null,
|
|
397
397
|
method: null,
|
|
398
398
|
action: null
|
|
399
|
-
},
|
|
399
|
+
}, O = [], q = -1;
|
|
400
400
|
function Z(l) {
|
|
401
401
|
return { current: l };
|
|
402
402
|
}
|
|
403
403
|
function ce(l) {
|
|
404
|
-
0 > q || (l.current =
|
|
404
|
+
0 > q || (l.current = O[q], O[q] = null, q--);
|
|
405
405
|
}
|
|
406
406
|
function oe(l, c) {
|
|
407
|
-
q++,
|
|
407
|
+
q++, O[q] = l.current, l.current = c;
|
|
408
408
|
}
|
|
409
409
|
var fe = Z(null), be = Z(null), ge = Z(null), Ae = Z(null);
|
|
410
410
|
function ke(l, c) {
|
|
@@ -1824,8 +1824,8 @@ Error generating stack: ` + p.message + `
|
|
|
1824
1824
|
) ? 26 : l === "html" || l === "head" || l === "body" ? 27 : 5;
|
|
1825
1825
|
else
|
|
1826
1826
|
e: switch (l) {
|
|
1827
|
-
case
|
|
1828
|
-
return l = Cr(31, f, c, F), l.elementType =
|
|
1827
|
+
case N:
|
|
1828
|
+
return l = Cr(31, f, c, F), l.elementType = N, l.lanes = v, l;
|
|
1829
1829
|
case b:
|
|
1830
1830
|
return Bs(f.children, F, v, c);
|
|
1831
1831
|
case E:
|
|
@@ -11198,9 +11198,9 @@ const pO = (t, e) => {
|
|
|
11198
11198
|
"bottom-left",
|
|
11199
11199
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
11200
11200
|
"left-bottom"
|
|
11201
|
-
], S = () => [...D(), An, Fn], k = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], L = () => [An, Fn, u],
|
|
11201
|
+
], S = () => [...D(), An, Fn], k = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], L = () => [An, Fn, u], N = () => [Qd, "full", "auto", ...L()], P = () => [ou, "none", "subgrid", An, Fn], U = () => ["auto", {
|
|
11202
11202
|
span: ["full", ou, An, Fn]
|
|
11203
|
-
}, ou, An, Fn], M = () => [ou, "auto", An, Fn], j = () => ["auto", "min", "max", "fr", An, Fn], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...L()], H = () => [Qd, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...L()], I = () => [t, An, Fn],
|
|
11203
|
+
}, ou, An, Fn], M = () => [ou, "auto", An, Fn], j = () => ["auto", "min", "max", "fr", An, Fn], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...L()], H = () => [Qd, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...L()], I = () => [t, An, Fn], O = () => [...D(), Zw, Kw, {
|
|
11204
11204
|
position: [An, Fn]
|
|
11205
11205
|
}], q = () => ["no-repeat", {
|
|
11206
11206
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -11399,63 +11399,63 @@ const pO = (t, e) => {
|
|
|
11399
11399
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
11400
11400
|
*/
|
|
11401
11401
|
inset: [{
|
|
11402
|
-
inset:
|
|
11402
|
+
inset: N()
|
|
11403
11403
|
}],
|
|
11404
11404
|
/**
|
|
11405
11405
|
* Right / Left
|
|
11406
11406
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
11407
11407
|
*/
|
|
11408
11408
|
"inset-x": [{
|
|
11409
|
-
"inset-x":
|
|
11409
|
+
"inset-x": N()
|
|
11410
11410
|
}],
|
|
11411
11411
|
/**
|
|
11412
11412
|
* Top / Bottom
|
|
11413
11413
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
11414
11414
|
*/
|
|
11415
11415
|
"inset-y": [{
|
|
11416
|
-
"inset-y":
|
|
11416
|
+
"inset-y": N()
|
|
11417
11417
|
}],
|
|
11418
11418
|
/**
|
|
11419
11419
|
* Start
|
|
11420
11420
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
11421
11421
|
*/
|
|
11422
11422
|
start: [{
|
|
11423
|
-
start:
|
|
11423
|
+
start: N()
|
|
11424
11424
|
}],
|
|
11425
11425
|
/**
|
|
11426
11426
|
* End
|
|
11427
11427
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
11428
11428
|
*/
|
|
11429
11429
|
end: [{
|
|
11430
|
-
end:
|
|
11430
|
+
end: N()
|
|
11431
11431
|
}],
|
|
11432
11432
|
/**
|
|
11433
11433
|
* Top
|
|
11434
11434
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
11435
11435
|
*/
|
|
11436
11436
|
top: [{
|
|
11437
|
-
top:
|
|
11437
|
+
top: N()
|
|
11438
11438
|
}],
|
|
11439
11439
|
/**
|
|
11440
11440
|
* Right
|
|
11441
11441
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
11442
11442
|
*/
|
|
11443
11443
|
right: [{
|
|
11444
|
-
right:
|
|
11444
|
+
right: N()
|
|
11445
11445
|
}],
|
|
11446
11446
|
/**
|
|
11447
11447
|
* Bottom
|
|
11448
11448
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
11449
11449
|
*/
|
|
11450
11450
|
bottom: [{
|
|
11451
|
-
bottom:
|
|
11451
|
+
bottom: N()
|
|
11452
11452
|
}],
|
|
11453
11453
|
/**
|
|
11454
11454
|
* Left
|
|
11455
11455
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
11456
11456
|
*/
|
|
11457
11457
|
left: [{
|
|
11458
|
-
left:
|
|
11458
|
+
left: N()
|
|
11459
11459
|
}],
|
|
11460
11460
|
/**
|
|
11461
11461
|
* Visibility
|
|
@@ -12173,7 +12173,7 @@ const pO = (t, e) => {
|
|
|
12173
12173
|
* @see https://tailwindcss.com/docs/background-position
|
|
12174
12174
|
*/
|
|
12175
12175
|
"bg-position": [{
|
|
12176
|
-
bg:
|
|
12176
|
+
bg: O()
|
|
12177
12177
|
}],
|
|
12178
12178
|
/**
|
|
12179
12179
|
* Background Repeat
|
|
@@ -12850,7 +12850,7 @@ const pO = (t, e) => {
|
|
|
12850
12850
|
* @see https://tailwindcss.com/docs/mask-position
|
|
12851
12851
|
*/
|
|
12852
12852
|
"mask-position": [{
|
|
12853
|
-
mask:
|
|
12853
|
+
mask: O()
|
|
12854
12854
|
}],
|
|
12855
12855
|
/**
|
|
12856
12856
|
* Mask Repeat
|
|
@@ -13926,8 +13926,8 @@ var FL = "DismissableLayer", RF = "dismissableLayer.update", AL = "dismissableLa
|
|
|
13926
13926
|
onDismiss: a,
|
|
13927
13927
|
...u
|
|
13928
13928
|
} = t, d = A.useContext($9), [h, g] = A.useState(null), m = h?.ownerDocument ?? globalThis?.document, [, y] = A.useState({}), C = ai(e, ($) => g($)), b = Array.from(d.layers), [E] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), w = b.indexOf(E), _ = h ? b.indexOf(h) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, D = _ >= w, S = wL(($) => {
|
|
13929
|
-
const L = $.target,
|
|
13930
|
-
!D ||
|
|
13929
|
+
const L = $.target, N = [...d.branches].some((P) => P.contains(L));
|
|
13930
|
+
!D || N || (i?.($), o?.($), $.defaultPrevented || a?.());
|
|
13931
13931
|
}, m), k = xL(($) => {
|
|
13932
13932
|
const L = $.target;
|
|
13933
13933
|
[...d.branches].some((P) => P.contains(L)) || (s?.($), o?.($), $.defaultPrevented || a?.());
|
|
@@ -14323,7 +14323,7 @@ const $L = async (t, e, n) => {
|
|
|
14323
14323
|
}, y = iv(i), C = rv(y), b = await o.getDimensions(d), E = y === "y", w = E ? "top" : "left", _ = E ? "bottom" : "right", x = E ? "clientHeight" : "clientWidth", D = s.reference[C] + s.reference[y] - m[y] - s.floating[C], S = m[y] - s.reference[y], k = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(d));
|
|
14324
14324
|
let $ = k ? k[x] : 0;
|
|
14325
14325
|
(!$ || !await (o.isElement == null ? void 0 : o.isElement(k))) && ($ = a.floating[x] || s.floating[C]);
|
|
14326
|
-
const L = D / 2 - S / 2,
|
|
14326
|
+
const L = D / 2 - S / 2, N = $ / 2 - b[C] / 2 - 1, P = _u(g[w], N), U = _u(g[_], N), M = P, j = $ - b[C] - U, W = $ / 2 - b[C] / 2 + L, Y = kF(M, W, j), R = !u.arrow && Yf(i) != null && W !== Y && s.reference[C] / 2 - (W < M ? P : U) - b[C] / 2 < 0, H = R ? W < M ? W - M : W - j : 0;
|
|
14327
14327
|
return {
|
|
14328
14328
|
[y]: m[y] + H,
|
|
14329
14329
|
data: {
|
|
@@ -14362,16 +14362,16 @@ const $L = async (t, e, n) => {
|
|
|
14362
14362
|
return {};
|
|
14363
14363
|
const w = Oc(i), _ = Yl(a), x = Oc(a) === a, D = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), S = m || (x || !b ? [hm(a)] : PL(a)), k = C !== "none";
|
|
14364
14364
|
!m && k && S.push(...LL(a, b, C, D));
|
|
14365
|
-
const $ = [a, ...S], L = await u.detectOverflow(e, E),
|
|
14365
|
+
const $ = [a, ...S], L = await u.detectOverflow(e, E), N = [];
|
|
14366
14366
|
let P = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
14367
|
-
if (h &&
|
|
14367
|
+
if (h && N.push(L[w]), g) {
|
|
14368
14368
|
const W = ML(i, o, D);
|
|
14369
|
-
|
|
14369
|
+
N.push(L[W[0]], L[W[1]]);
|
|
14370
14370
|
}
|
|
14371
14371
|
if (P = [...P, {
|
|
14372
14372
|
placement: i,
|
|
14373
|
-
overflows:
|
|
14374
|
-
}], !
|
|
14373
|
+
overflows: N
|
|
14374
|
+
}], !N.every((W) => W <= 0)) {
|
|
14375
14375
|
var U, M;
|
|
14376
14376
|
const W = (((U = s.flip) == null ? void 0 : U.index) || 0) + 1, Y = $[W];
|
|
14377
14377
|
if (Y && (!(g === "alignment" ? _ !== Yl(Y) : !1) || // We leave the current main axis only if every placement on that axis
|
|
@@ -14393,13 +14393,13 @@ const $L = async (t, e, n) => {
|
|
|
14393
14393
|
var j;
|
|
14394
14394
|
const H = (j = P.filter((I) => {
|
|
14395
14395
|
if (k) {
|
|
14396
|
-
const
|
|
14397
|
-
return
|
|
14396
|
+
const O = Yl(I.placement);
|
|
14397
|
+
return O === _ || // Create a bias to the `y` side axis due to horizontal
|
|
14398
14398
|
// reading directions favoring greater width.
|
|
14399
|
-
|
|
14399
|
+
O === "y";
|
|
14400
14400
|
}
|
|
14401
14401
|
return !0;
|
|
14402
|
-
}).map((I) => [I.placement, I.overflows.filter((
|
|
14402
|
+
}).map((I) => [I.placement, I.overflows.filter((O) => O > 0).reduce((O, q) => O + q, 0)]).sort((I, O) => I[1] - O[1])[0]) == null ? void 0 : j[0];
|
|
14403
14403
|
H && (R = H);
|
|
14404
14404
|
break;
|
|
14405
14405
|
}
|
|
@@ -14652,8 +14652,8 @@ const jL = function(t) {
|
|
|
14652
14652
|
availableWidth: L,
|
|
14653
14653
|
availableHeight: $
|
|
14654
14654
|
});
|
|
14655
|
-
const
|
|
14656
|
-
return C !==
|
|
14655
|
+
const N = await o.getDimensions(a.floating);
|
|
14656
|
+
return C !== N.width || b !== N.height ? {
|
|
14657
14657
|
reset: {
|
|
14658
14658
|
rects: !0
|
|
14659
14659
|
}
|
|
@@ -15233,7 +15233,7 @@ function Rz(t) {
|
|
|
15233
15233
|
I !== k.current && (k.current = I, b(I));
|
|
15234
15234
|
}, []), x = A.useCallback((I) => {
|
|
15235
15235
|
I !== $.current && ($.current = I, w(I));
|
|
15236
|
-
}, []), D = s || C, S = o || E, k = A.useRef(null), $ = A.useRef(null), L = A.useRef(h),
|
|
15236
|
+
}, []), D = s || C, S = o || E, k = A.useRef(null), $ = A.useRef(null), L = A.useRef(h), N = u != null, P = by(u), U = by(i), M = by(d), j = A.useCallback(() => {
|
|
15237
15237
|
if (!k.current || !$.current)
|
|
15238
15238
|
return;
|
|
15239
15239
|
const I = {
|
|
@@ -15241,9 +15241,9 @@ function Rz(t) {
|
|
|
15241
15241
|
strategy: n,
|
|
15242
15242
|
middleware: m
|
|
15243
15243
|
};
|
|
15244
|
-
U.current && (I.platform = U.current), Bz(k.current, $.current, I).then((
|
|
15244
|
+
U.current && (I.platform = U.current), Bz(k.current, $.current, I).then((O) => {
|
|
15245
15245
|
const q = {
|
|
15246
|
-
...
|
|
15246
|
+
...O,
|
|
15247
15247
|
// The floating element's position may be recomputed while it's closed
|
|
15248
15248
|
// but still mounted (such as when transitioning out). To ensure
|
|
15249
15249
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
@@ -15270,7 +15270,7 @@ function Rz(t) {
|
|
|
15270
15270
|
return P.current(D, S, j);
|
|
15271
15271
|
j();
|
|
15272
15272
|
}
|
|
15273
|
-
}, [D, S, j, P,
|
|
15273
|
+
}, [D, S, j, P, N]);
|
|
15274
15274
|
const Y = A.useMemo(() => ({
|
|
15275
15275
|
reference: k,
|
|
15276
15276
|
floating: $,
|
|
@@ -15287,16 +15287,16 @@ function Rz(t) {
|
|
|
15287
15287
|
};
|
|
15288
15288
|
if (!R.floating)
|
|
15289
15289
|
return I;
|
|
15290
|
-
const
|
|
15290
|
+
const O = dx(R.floating, h.x), q = dx(R.floating, h.y);
|
|
15291
15291
|
return a ? {
|
|
15292
15292
|
...I,
|
|
15293
|
-
transform: "translate(" +
|
|
15293
|
+
transform: "translate(" + O + "px, " + q + "px)",
|
|
15294
15294
|
...J9(R.floating) >= 1.5 && {
|
|
15295
15295
|
willChange: "transform"
|
|
15296
15296
|
}
|
|
15297
15297
|
} : {
|
|
15298
15298
|
position: n,
|
|
15299
|
-
left:
|
|
15299
|
+
left: O,
|
|
15300
15300
|
top: q
|
|
15301
15301
|
};
|
|
15302
15302
|
}, [n, a, R.floating, h.x, h.y]);
|
|
@@ -15605,7 +15605,7 @@ var uv = "PopperContent", [oU, aU] = n7(uv), a7 = A.forwardRef(
|
|
|
15605
15605
|
updatePositionStrategy: y = "optimized",
|
|
15606
15606
|
onPlaced: C,
|
|
15607
15607
|
...b
|
|
15608
|
-
} = t, E = r7(uv, n), [w, _] = A.useState(null), x = ai(e, (Ae) => _(Ae)), [D, S] = A.useState(null), k = lv(D), $ = k?.width ?? 0, L = k?.height ?? 0,
|
|
15608
|
+
} = t, E = r7(uv, n), [w, _] = A.useState(null), x = ai(e, (Ae) => _(Ae)), [D, S] = A.useState(null), k = lv(D), $ = k?.width ?? 0, L = k?.height ?? 0, N = r + (s !== "center" ? "-" + s : ""), P = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, U = Array.isArray(d) ? d : [d], M = U.length > 0, j = {
|
|
15609
15609
|
padding: P,
|
|
15610
15610
|
boundary: U.filter(cU),
|
|
15611
15611
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -15613,7 +15613,7 @@ var uv = "PopperContent", [oU, aU] = n7(uv), a7 = A.forwardRef(
|
|
|
15613
15613
|
}, { refs: W, floatingStyles: Y, placement: R, isPositioned: H, middlewareData: I } = Rz({
|
|
15614
15614
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
15615
15615
|
strategy: "fixed",
|
|
15616
|
-
placement:
|
|
15616
|
+
placement: N,
|
|
15617
15617
|
whileElementsMounted: (...Ae) => Az(...Ae, {
|
|
15618
15618
|
animationFrame: y === "always"
|
|
15619
15619
|
}),
|
|
@@ -15640,7 +15640,7 @@ var uv = "PopperContent", [oU, aU] = n7(uv), a7 = A.forwardRef(
|
|
|
15640
15640
|
uU({ arrowWidth: $, arrowHeight: L }),
|
|
15641
15641
|
m && Lz({ strategy: "referenceHidden", ...j })
|
|
15642
15642
|
]
|
|
15643
|
-
}), [
|
|
15643
|
+
}), [O, q] = u7(R), Z = ld(C);
|
|
15644
15644
|
Fo(() => {
|
|
15645
15645
|
H && Z?.();
|
|
15646
15646
|
}, [H, Z]);
|
|
@@ -15675,7 +15675,7 @@ var uv = "PopperContent", [oU, aU] = n7(uv), a7 = A.forwardRef(
|
|
|
15675
15675
|
oU,
|
|
15676
15676
|
{
|
|
15677
15677
|
scope: n,
|
|
15678
|
-
placedSide:
|
|
15678
|
+
placedSide: O,
|
|
15679
15679
|
onArrowChange: S,
|
|
15680
15680
|
arrowX: ce,
|
|
15681
15681
|
arrowY: oe,
|
|
@@ -15683,7 +15683,7 @@ var uv = "PopperContent", [oU, aU] = n7(uv), a7 = A.forwardRef(
|
|
|
15683
15683
|
children: /* @__PURE__ */ B(
|
|
15684
15684
|
t7.div,
|
|
15685
15685
|
{
|
|
15686
|
-
"data-side":
|
|
15686
|
+
"data-side": O,
|
|
15687
15687
|
"data-align": q,
|
|
15688
15688
|
...b,
|
|
15689
15689
|
ref: x,
|
|
@@ -18015,7 +18015,7 @@ function uV(t) {
|
|
|
18015
18015
|
var w = s0(b), _ = n.current, x = "deltaX" in b ? b.deltaX : _[0] - w[0], D = "deltaY" in b ? b.deltaY : _[1] - w[1], S, k = b.target, $ = Math.abs(x) > Math.abs(D) ? "h" : "v";
|
|
18016
18016
|
if ("touches" in b && $ === "h" && k.type === "range")
|
|
18017
18017
|
return !1;
|
|
18018
|
-
var L = window.getSelection(),
|
|
18018
|
+
var L = window.getSelection(), N = L && L.anchorNode, P = N ? N === k || N.contains(k) : !1;
|
|
18019
18019
|
if (P)
|
|
18020
18020
|
return !1;
|
|
18021
18021
|
var U = Ax($, k);
|
|
@@ -18111,7 +18111,7 @@ var hV = [" ", "Enter", "ArrowUp", "ArrowDown"], gV = [" ", "Enter"], ud = "Sele
|
|
|
18111
18111
|
defaultProp: i ?? !1,
|
|
18112
18112
|
onChange: s,
|
|
18113
18113
|
caller: ud
|
|
18114
|
-
}), [
|
|
18114
|
+
}), [N, P] = Tg({
|
|
18115
18115
|
prop: o,
|
|
18116
18116
|
defaultProp: a,
|
|
18117
18117
|
onChange: u,
|
|
@@ -18129,7 +18129,7 @@ var hV = [" ", "Enter", "ArrowUp", "ArrowDown"], gV = [" ", "Enter"], ud = "Sele
|
|
|
18129
18129
|
valueNodeHasChildren: D,
|
|
18130
18130
|
onValueNodeHasChildrenChange: S,
|
|
18131
18131
|
contentId: o1(),
|
|
18132
|
-
value:
|
|
18132
|
+
value: N,
|
|
18133
18133
|
onValueChange: P,
|
|
18134
18134
|
open: $,
|
|
18135
18135
|
onOpenChange: L,
|
|
@@ -18161,12 +18161,12 @@ var hV = [" ", "Enter", "ArrowUp", "ArrowDown"], gV = [" ", "Enter"], ud = "Sele
|
|
|
18161
18161
|
tabIndex: -1,
|
|
18162
18162
|
name: h,
|
|
18163
18163
|
autoComplete: g,
|
|
18164
|
-
value:
|
|
18164
|
+
value: N,
|
|
18165
18165
|
onChange: (R) => P(R.target.value),
|
|
18166
18166
|
disabled: m,
|
|
18167
18167
|
form: C,
|
|
18168
18168
|
children: [
|
|
18169
|
-
|
|
18169
|
+
N === void 0 ? /* @__PURE__ */ B("option", { value: "" }) : null,
|
|
18170
18170
|
Array.from(j)
|
|
18171
18171
|
]
|
|
18172
18172
|
},
|
|
@@ -18285,7 +18285,7 @@ var bl = 10, [iT, Bu] = Kf(dd), AV = "SelectContentImpl", vV = /* @__PURE__ */ U
|
|
|
18285
18285
|
avoidCollisions: E,
|
|
18286
18286
|
//
|
|
18287
18287
|
...w
|
|
18288
|
-
} = t, _ = Du(dd, n), [x, D] = A.useState(null), [S, k] = A.useState(null), $ = ai(e, (Ae) => D(Ae)), [L,
|
|
18288
|
+
} = t, _ = Du(dd, n), [x, D] = A.useState(null), [S, k] = A.useState(null), $ = ai(e, (Ae) => D(Ae)), [L, N] = A.useState(null), [P, U] = A.useState(
|
|
18289
18289
|
null
|
|
18290
18290
|
), M = C1(n), [j, W] = A.useState(!1), Y = A.useRef(!1);
|
|
18291
18291
|
A.useEffect(() => {
|
|
@@ -18305,23 +18305,23 @@ var bl = 10, [iT, Bu] = Kf(dd), AV = "SelectContentImpl", vV = /* @__PURE__ */ U
|
|
|
18305
18305
|
A.useEffect(() => {
|
|
18306
18306
|
j && H();
|
|
18307
18307
|
}, [j, H]);
|
|
18308
|
-
const { onOpenChange: I, triggerPointerDownPosRef:
|
|
18308
|
+
const { onOpenChange: I, triggerPointerDownPosRef: O } = _;
|
|
18309
18309
|
A.useEffect(() => {
|
|
18310
18310
|
if (x) {
|
|
18311
18311
|
let Ae = { x: 0, y: 0 };
|
|
18312
18312
|
const ke = (Ee) => {
|
|
18313
18313
|
Ae = {
|
|
18314
|
-
x: Math.abs(Math.round(Ee.pageX) - (
|
|
18315
|
-
y: Math.abs(Math.round(Ee.pageY) - (
|
|
18314
|
+
x: Math.abs(Math.round(Ee.pageX) - (O.current?.x ?? 0)),
|
|
18315
|
+
y: Math.abs(Math.round(Ee.pageY) - (O.current?.y ?? 0))
|
|
18316
18316
|
};
|
|
18317
18317
|
}, lt = (Ee) => {
|
|
18318
|
-
Ae.x <= 10 && Ae.y <= 10 ? Ee.preventDefault() : x.contains(Ee.target) || I(!1), document.removeEventListener("pointermove", ke),
|
|
18318
|
+
Ae.x <= 10 && Ae.y <= 10 ? Ee.preventDefault() : x.contains(Ee.target) || I(!1), document.removeEventListener("pointermove", ke), O.current = null;
|
|
18319
18319
|
};
|
|
18320
|
-
return
|
|
18320
|
+
return O.current !== null && (document.addEventListener("pointermove", ke), document.addEventListener("pointerup", lt, { capture: !0, once: !0 })), () => {
|
|
18321
18321
|
document.removeEventListener("pointermove", ke), document.removeEventListener("pointerup", lt, { capture: !0 });
|
|
18322
18322
|
};
|
|
18323
18323
|
}
|
|
18324
|
-
}, [x, I,
|
|
18324
|
+
}, [x, I, O]), A.useEffect(() => {
|
|
18325
18325
|
const Ae = () => I(!1);
|
|
18326
18326
|
return window.addEventListener("blur", Ae), window.addEventListener("resize", Ae), () => {
|
|
18327
18327
|
window.removeEventListener("blur", Ae), window.removeEventListener("resize", Ae);
|
|
@@ -18333,7 +18333,7 @@ var bl = 10, [iT, Bu] = Kf(dd), AV = "SelectContentImpl", vV = /* @__PURE__ */ U
|
|
|
18333
18333
|
}), ce = A.useCallback(
|
|
18334
18334
|
(Ae, ke, lt) => {
|
|
18335
18335
|
const Ee = !Y.current && !lt;
|
|
18336
|
-
(_.value !== void 0 && _.value === ke || Ee) && (
|
|
18336
|
+
(_.value !== void 0 && _.value === ke || Ee) && (N(Ae), Ee && (Y.current = !0));
|
|
18337
18337
|
},
|
|
18338
18338
|
[_.value]
|
|
18339
18339
|
), oe = A.useCallback(() => x?.focus(), [x]), fe = A.useCallback(
|
|
@@ -18435,9 +18435,9 @@ sT.displayName = AV;
|
|
|
18435
18435
|
var EV = "SelectItemAlignedPosition", oT = A.forwardRef((t, e) => {
|
|
18436
18436
|
const { __scopeSelect: n, onPlaced: r, ...i } = t, s = Du(dd, n), o = Bu(dd, n), [a, u] = A.useState(null), [d, h] = A.useState(null), g = ai(e, ($) => h($)), m = C1(n), y = A.useRef(!1), C = A.useRef(!0), { viewport: b, selectedItem: E, selectedItemText: w, focusSelectedItem: _ } = o, x = A.useCallback(() => {
|
|
18437
18437
|
if (s.trigger && s.valueNode && a && d && b && E && w) {
|
|
18438
|
-
const $ = s.trigger.getBoundingClientRect(), L = d.getBoundingClientRect(),
|
|
18438
|
+
const $ = s.trigger.getBoundingClientRect(), L = d.getBoundingClientRect(), N = s.valueNode.getBoundingClientRect(), P = w.getBoundingClientRect();
|
|
18439
18439
|
if (s.dir !== "rtl") {
|
|
18440
|
-
const Ce = P.left - L.left, Xe =
|
|
18440
|
+
const Ce = P.left - L.left, Xe = N.left - Ce, ot = $.left - Xe, _t = $.width + ot, ze = Math.max(_t, L.width), Mt = window.innerWidth - bl, an = mm(Xe, [
|
|
18441
18441
|
bl,
|
|
18442
18442
|
// Prevents the content from going off the starting edge of the
|
|
18443
18443
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -18448,13 +18448,13 @@ var EV = "SelectItemAlignedPosition", oT = A.forwardRef((t, e) => {
|
|
|
18448
18448
|
]);
|
|
18449
18449
|
a.style.minWidth = _t + "px", a.style.left = an + "px";
|
|
18450
18450
|
} else {
|
|
18451
|
-
const Ce = L.right - P.right, Xe = window.innerWidth -
|
|
18451
|
+
const Ce = L.right - P.right, Xe = window.innerWidth - N.right - Ce, ot = window.innerWidth - $.right - Xe, _t = $.width + ot, ze = Math.max(_t, L.width), Mt = window.innerWidth - bl, an = mm(Xe, [
|
|
18452
18452
|
bl,
|
|
18453
18453
|
Math.max(bl, Mt - ze)
|
|
18454
18454
|
]);
|
|
18455
18455
|
a.style.minWidth = _t + "px", a.style.right = an + "px";
|
|
18456
18456
|
}
|
|
18457
|
-
const U = m(), M = window.innerHeight - bl * 2, j = b.scrollHeight, W = window.getComputedStyle(d), Y = parseInt(W.borderTopWidth, 10), R = parseInt(W.paddingTop, 10), H = parseInt(W.borderBottomWidth, 10), I = parseInt(W.paddingBottom, 10),
|
|
18457
|
+
const U = m(), M = window.innerHeight - bl * 2, j = b.scrollHeight, W = window.getComputedStyle(d), Y = parseInt(W.borderTopWidth, 10), R = parseInt(W.paddingTop, 10), H = parseInt(W.borderBottomWidth, 10), I = parseInt(W.paddingBottom, 10), O = Y + R + j + I + H, q = Math.min(E.offsetHeight * 5, O), Z = window.getComputedStyle(b), ce = parseInt(Z.paddingTop, 10), oe = parseInt(Z.paddingBottom, 10), fe = $.top + $.height / 2 - bl, be = M - fe, ge = E.offsetHeight / 2, Ae = E.offsetTop + ge, ke = Y + R + Ae, lt = O - ke;
|
|
18458
18458
|
if (ke <= fe) {
|
|
18459
18459
|
const Ce = U.length > 0 && E === U[U.length - 1].ref.current;
|
|
18460
18460
|
a.style.bottom = "0px";
|
|
@@ -19350,7 +19350,7 @@ var oW = [
|
|
|
19350
19350
|
function L(U) {
|
|
19351
19351
|
P(U, w.current);
|
|
19352
19352
|
}
|
|
19353
|
-
function
|
|
19353
|
+
function N() {
|
|
19354
19354
|
const U = k.current[w.current];
|
|
19355
19355
|
D[w.current] !== U && m(D);
|
|
19356
19356
|
}
|
|
@@ -19360,8 +19360,8 @@ var oW = [
|
|
|
19360
19360
|
const I = gW(H, R, M);
|
|
19361
19361
|
if (bW(I, u * s)) {
|
|
19362
19362
|
w.current = I.indexOf(R);
|
|
19363
|
-
const
|
|
19364
|
-
return
|
|
19363
|
+
const O = String(I) !== String(H);
|
|
19364
|
+
return O && j && m(I), O ? I : H;
|
|
19365
19365
|
} else
|
|
19366
19366
|
return H;
|
|
19367
19367
|
});
|
|
@@ -19394,7 +19394,7 @@ var oW = [
|
|
|
19394
19394
|
inverted: y,
|
|
19395
19395
|
onSlideStart: a ? void 0 : $,
|
|
19396
19396
|
onSlideMove: a ? void 0 : L,
|
|
19397
|
-
onSlideEnd: a ? void 0 :
|
|
19397
|
+
onSlideEnd: a ? void 0 : N,
|
|
19398
19398
|
onHomeKeyDown: () => !a && P(r, 0, { commit: !0 }),
|
|
19399
19399
|
onEndKeyDown: () => !a && P(i, D.length - 1, { commit: !0 }),
|
|
19400
19400
|
onStepKeyDown: ({ event: U, direction: M }) => {
|
|
@@ -20031,13 +20031,13 @@ function LW(t) {
|
|
|
20031
20031
|
function g(m) {
|
|
20032
20032
|
var y = (m = ZF(m)).fill, C = m.align, b = m.sign, E = m.symbol, w = m.zero, _ = m.width, x = m.comma, D = m.precision, S = m.trim, k = m.type;
|
|
20033
20033
|
k === "n" ? (x = !0, k = "g") : Ix[k] || (D === void 0 && (D = 12), S = !0, k = "g"), (w || y === "0" && C === "=") && (w = !0, y = "0", C = "=");
|
|
20034
|
-
var $ = E === "$" ? i : E === "#" && /[boxX]/.test(k) ? "0" + k.toLowerCase() : "", L = E === "$" ? s : /[%p]/.test(k) ? u : "",
|
|
20034
|
+
var $ = E === "$" ? i : E === "#" && /[boxX]/.test(k) ? "0" + k.toLowerCase() : "", L = E === "$" ? s : /[%p]/.test(k) ? u : "", N = Ix[k], P = /[defgprs%]/.test(k);
|
|
20035
20035
|
function U(M) {
|
|
20036
20036
|
var j, W, Y, R = $, H = L;
|
|
20037
|
-
if (k === "c") H =
|
|
20037
|
+
if (k === "c") H = N(M) + H, M = "";
|
|
20038
20038
|
else {
|
|
20039
20039
|
var I = (M = +M) < 0 || 1 / M < 0;
|
|
20040
|
-
if (M = isNaN(M) ? h :
|
|
20040
|
+
if (M = isNaN(M) ? h : N(Math.abs(M), D), S && (M = (function(Z) {
|
|
20041
20041
|
e: for (var ce, oe = Z.length, fe = 1, be = -1; fe < oe; ++fe) switch (Z[fe]) {
|
|
20042
20042
|
case ".":
|
|
20043
20043
|
be = ce = fe;
|
|
@@ -20058,7 +20058,7 @@ function LW(t) {
|
|
|
20058
20058
|
}
|
|
20059
20059
|
}
|
|
20060
20060
|
x && !w && (M = r(M, 1 / 0));
|
|
20061
|
-
var
|
|
20061
|
+
var O = R.length + M.length + H.length, q = O < _ ? new Array(_ - O + 1).join(y) : "";
|
|
20062
20062
|
switch (x && w && (M = r(q + M, q.length ? _ - H.length : 1 / 0), q = ""), C) {
|
|
20063
20063
|
case "<":
|
|
20064
20064
|
M = R + M + H + q;
|
|
@@ -20067,7 +20067,7 @@ function LW(t) {
|
|
|
20067
20067
|
M = R + q + M + H;
|
|
20068
20068
|
break;
|
|
20069
20069
|
case "^":
|
|
20070
|
-
M = q.slice(0,
|
|
20070
|
+
M = q.slice(0, O = q.length >> 1) + R + M + H + q.slice(O);
|
|
20071
20071
|
break;
|
|
20072
20072
|
default:
|
|
20073
20073
|
M = q + R + M + H;
|
|
@@ -20438,7 +20438,7 @@ const VW = () => {
|
|
|
20438
20438
|
},
|
|
20439
20439
|
R
|
|
20440
20440
|
)) });
|
|
20441
|
-
}, L = x?.type ? S(x.type) : [],
|
|
20441
|
+
}, L = x?.type ? S(x.type) : [], N = L.length > 0 ? [...new Set(L.map((U) => U.name))].sort() : [], P = x?.name ? VT(x.name) : [];
|
|
20442
20442
|
return E.length === 0 ? null : /* @__PURE__ */ B(Cm, { className: "mb-2", children: /* @__PURE__ */ le(bm, { className: "space-y-3", children: [
|
|
20443
20443
|
/* @__PURE__ */ le("div", { className: "space-y-1", children: [
|
|
20444
20444
|
/* @__PURE__ */ B(un, { className: "text-xs", children: "Layer:" }),
|
|
@@ -20486,7 +20486,7 @@ const VW = () => {
|
|
|
20486
20486
|
onValueChange: (U) => k({ name: U }),
|
|
20487
20487
|
children: [
|
|
20488
20488
|
/* @__PURE__ */ B(Os, { className: "w-full text-xs", style: { height: "20px", minHeight: "20px" }, children: /* @__PURE__ */ B(Ns, { placeholder: "Select a palette..." }) }),
|
|
20489
|
-
/* @__PURE__ */ B(Ls, { children:
|
|
20489
|
+
/* @__PURE__ */ B(Ls, { children: N.map((U) => /* @__PURE__ */ B(pr, { value: U, children: /* @__PURE__ */ le("div", { className: "flex items-center gap-2", children: [
|
|
20490
20490
|
$(x.type, U),
|
|
20491
20491
|
/* @__PURE__ */ B("span", { children: U })
|
|
20492
20492
|
] }) }, U)) })
|
|
@@ -20857,22 +20857,22 @@ const VW = () => {
|
|
|
20857
20857
|
...D
|
|
20858
20858
|
});
|
|
20859
20859
|
}, [y, r]), _ = ({ label: D, color: S, onChange: k, alpha: $ = !0 }) => {
|
|
20860
|
-
const [L,
|
|
20860
|
+
const [L, N] = bt(S.length > 3 ? S[3] : 255), [P, U] = bt([S[0], S[1], S[2]]), [M, j] = bt(!1), { debounced: W, flush: Y } = Ph((Z) => {
|
|
20861
20861
|
k([P[0], P[1], P[2], Z]);
|
|
20862
20862
|
}, 100);
|
|
20863
20863
|
Gn(() => {
|
|
20864
|
-
|
|
20864
|
+
N(S.length > 3 ? S[3] : 255), U([S[0], S[1], S[2]]), j(!1);
|
|
20865
20865
|
}, [S]);
|
|
20866
20866
|
const R = (Z) => {
|
|
20867
20867
|
const ce = Z[0];
|
|
20868
|
-
|
|
20868
|
+
N(ce), W(ce);
|
|
20869
20869
|
}, H = (Z) => {
|
|
20870
20870
|
const ce = Z[0];
|
|
20871
|
-
|
|
20871
|
+
N(ce), Y(ce);
|
|
20872
20872
|
}, I = (Z) => {
|
|
20873
20873
|
const ce = Z.target.value, oe = parseInt(ce.slice(1, 3), 16), fe = parseInt(ce.slice(3, 5), 16), be = parseInt(ce.slice(5, 7), 16);
|
|
20874
20874
|
U([oe, fe, be]), j(!0);
|
|
20875
|
-
},
|
|
20875
|
+
}, O = () => {
|
|
20876
20876
|
const Z = $ ? L : 255;
|
|
20877
20877
|
k([P[0], P[1], P[2], Z]), j(!1);
|
|
20878
20878
|
}, q = () => {
|
|
@@ -20928,7 +20928,7 @@ const VW = () => {
|
|
|
20928
20928
|
size: "sm",
|
|
20929
20929
|
variant: "default",
|
|
20930
20930
|
className: "h-6 w-6 p-0 text-xs rounded-full",
|
|
20931
|
-
onClick:
|
|
20931
|
+
onClick: O,
|
|
20932
20932
|
title: "Apply color change",
|
|
20933
20933
|
children: /* @__PURE__ */ B(QA, { className: "h-3 w-3" })
|
|
20934
20934
|
}
|
|
@@ -20967,26 +20967,26 @@ const VW = () => {
|
|
|
20967
20967
|
] })
|
|
20968
20968
|
] }) });
|
|
20969
20969
|
}, x = ({ config: D, onChange: S }) => {
|
|
20970
|
-
const [k, $] = bt(D.minAlpha), [L,
|
|
20970
|
+
const [k, $] = bt(D.minAlpha), [L, N] = bt(D.maxAlpha), { debounced: P, flush: U } = Ph((I) => {
|
|
20971
20971
|
S({ ...D, minAlpha: I });
|
|
20972
20972
|
}, 100), { debounced: M, flush: j } = Ph((I) => {
|
|
20973
20973
|
S({ ...D, maxAlpha: I });
|
|
20974
20974
|
}, 100);
|
|
20975
20975
|
Gn(() => {
|
|
20976
|
-
$(D.minAlpha),
|
|
20976
|
+
$(D.minAlpha), N(D.maxAlpha);
|
|
20977
20977
|
}, [D.minAlpha, D.maxAlpha]);
|
|
20978
20978
|
const W = (I) => {
|
|
20979
|
-
const
|
|
20980
|
-
$(
|
|
20979
|
+
const O = I[0];
|
|
20980
|
+
$(O), P(O);
|
|
20981
20981
|
}, Y = (I) => {
|
|
20982
|
-
const
|
|
20983
|
-
$(
|
|
20982
|
+
const O = I[0];
|
|
20983
|
+
$(O), U(O);
|
|
20984
20984
|
}, R = (I) => {
|
|
20985
|
-
const
|
|
20986
|
-
O
|
|
20985
|
+
const O = I[0];
|
|
20986
|
+
N(O), M(O);
|
|
20987
20987
|
}, H = (I) => {
|
|
20988
|
-
const
|
|
20989
|
-
O
|
|
20988
|
+
const O = I[0];
|
|
20989
|
+
N(O), j(O);
|
|
20990
20990
|
};
|
|
20991
20991
|
return /* @__PURE__ */ B(Cm, { className: "mt-2", children: /* @__PURE__ */ le(bm, { className: "space-y-2", children: [
|
|
20992
20992
|
/* @__PURE__ */ le("div", { className: "flex items-center justify-between", children: [
|
|
@@ -21326,7 +21326,7 @@ const VW = () => {
|
|
|
21326
21326
|
} catch {
|
|
21327
21327
|
return "";
|
|
21328
21328
|
}
|
|
21329
|
-
}, $ = t && t.length ? t.reduce((Ce, Xe) => Math.max(Ce, String(k(Xe) || "").length), 0) : 0, L = Math.ceil($ * (d || 7) + (h || 36)),
|
|
21329
|
+
}, $ = t && t.length ? t.reduce((Ce, Xe) => Math.max(Ce, String(k(Xe) || "").length), 0) : 0, L = Math.ceil($ * (d || 7) + (h || 36)), N = Math.max(40, Math.min(n || 2040, L || n)), P = y && y > 0 ? y : Math.max(a, m.current && m.current.clientWidth || 0), U = Math.max(1, Math.min(t.length || 1, Math.floor((P + i) / (N + i)))), M = typeof g == "number" && g >= 1 ? Math.max(1, Math.min(t.length || 1, Math.floor(g))) : U, j = Math.max(1, Math.ceil(t.length / M)), W = r + i, Y = j * W, R = y && y > 0 ? y : Math.max(a, m.current && m.current.clientWidth || 0), H = Math.max(1, M), I = Math.floor(Math.max(0, R - (H - 1) * i) / H) || n, O = b && b > 0 ? b : 0, q = typeof s == "number" && s > 0 ? s : O > 0 ? O : Y, Z = Math.max(0, Y - q);
|
|
21330
21330
|
Gn(() => {
|
|
21331
21331
|
_((Ce) => {
|
|
21332
21332
|
const Xe = Math.min(Ce, Z);
|
|
@@ -21394,8 +21394,8 @@ const VW = () => {
|
|
|
21394
21394
|
}) => {
|
|
21395
21395
|
let m = {};
|
|
21396
21396
|
try {
|
|
21397
|
-
const
|
|
21398
|
-
|
|
21397
|
+
const O = zc();
|
|
21398
|
+
O && typeof O.getThemeColors == "function" ? m = O.getThemeColors() : m = O || {};
|
|
21399
21399
|
} catch {
|
|
21400
21400
|
m = {};
|
|
21401
21401
|
}
|
|
@@ -21404,28 +21404,28 @@ const VW = () => {
|
|
|
21404
21404
|
color: "inherit",
|
|
21405
21405
|
// inherit from container which uses CSS var
|
|
21406
21406
|
fontFamily: y
|
|
21407
|
-
}, _ = (
|
|
21408
|
-
const Z = String(
|
|
21407
|
+
}, _ = (O, q = 30) => {
|
|
21408
|
+
const Z = String(O || "");
|
|
21409
21409
|
return Z.length <= q ? Z : Z.substring(0, q - 3) + "...";
|
|
21410
|
-
}, x = { fontSize: `${Math.max(12, C + 2)}px`, color: "inherit", fontFamily: y, fontWeight: 600 }, D = (
|
|
21411
|
-
if (!
|
|
21412
|
-
if (Array.isArray(
|
|
21413
|
-
const Z = typeof q == "number" ? q :
|
|
21414
|
-
return `rgba(${
|
|
21415
|
-
}
|
|
21416
|
-
return String(
|
|
21417
|
-
}, S = (
|
|
21418
|
-
const Z = Number(
|
|
21419
|
-
return oe && fe ? Z - ce : String(
|
|
21420
|
-
}, k = (
|
|
21421
|
-
if (!
|
|
21410
|
+
}, x = { fontSize: `${Math.max(12, C + 2)}px`, color: "inherit", fontFamily: y, fontWeight: 600 }, D = (O, q = null) => {
|
|
21411
|
+
if (!O) return "#eee";
|
|
21412
|
+
if (Array.isArray(O)) {
|
|
21413
|
+
const Z = typeof q == "number" ? q : O.length > 3 ? O[3] / 255 : 1;
|
|
21414
|
+
return `rgba(${O[0]}, ${O[1]}, ${O[2]}, ${Z})`;
|
|
21415
|
+
}
|
|
21416
|
+
return String(O);
|
|
21417
|
+
}, S = (O, q) => {
|
|
21418
|
+
const Z = Number(O), ce = Number(q), oe = !Number.isNaN(Z) && String(O).trim() !== "", fe = !Number.isNaN(ce) && String(q).trim() !== "";
|
|
21419
|
+
return oe && fe ? Z - ce : String(O).localeCompare(String(q), void 0, { numeric: !0, sensitivity: "base" });
|
|
21420
|
+
}, k = (O) => {
|
|
21421
|
+
if (!O || !Array.isArray(O)) return O;
|
|
21422
21422
|
try {
|
|
21423
|
-
return [...
|
|
21423
|
+
return [...O].sort((q, Z) => S(q.value ?? q.label ?? q[0], Z.value ?? Z.label ?? Z[0]));
|
|
21424
21424
|
} catch {
|
|
21425
|
-
return
|
|
21425
|
+
return O;
|
|
21426
21426
|
}
|
|
21427
|
-
}, $ = (
|
|
21428
|
-
const fe = D(
|
|
21427
|
+
}, $ = (O, q = "rect", Z = 18, ce = 12, oe = null) => {
|
|
21428
|
+
const fe = D(O), be = oe ? D(oe) : "#555";
|
|
21429
21429
|
if (q === "arrow") {
|
|
21430
21430
|
const Ce = e?.gene?.tipWidthFactor ?? 0.1, Xe = e?.gene?.height ?? 60, ot = e?.gene?.arrowheadHeight ?? 0, _t = Xe / 2, ze = _t + ot / 2, Mt = Math.max(2, Math.round(Z * Ce)), an = 1.5;
|
|
21431
21431
|
let sn = Z - 1.5, Ct = sn - Mt;
|
|
@@ -21487,8 +21487,8 @@ const VW = () => {
|
|
|
21487
21487
|
] });
|
|
21488
21488
|
}
|
|
21489
21489
|
if (q === "region") {
|
|
21490
|
-
const ge = D(
|
|
21491
|
-
return /* @__PURE__ */ B("svg", { width: Z, height: ce, viewBox: `0 0 ${Z} ${ce}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ B("rect", { x: 0.5, y: 0.5, width: Z - 1, height: ce - 1, fill: "none", stroke: ge || D(
|
|
21490
|
+
const ge = D(O);
|
|
21491
|
+
return /* @__PURE__ */ B("svg", { width: Z, height: ce, viewBox: `0 0 ${Z} ${ce}`, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ B("rect", { x: 0.5, y: 0.5, width: Z - 1, height: ce - 1, fill: "none", stroke: ge || D(O), strokeWidth: 1.5 }) });
|
|
21492
21492
|
}
|
|
21493
21493
|
if (q === "phylo") {
|
|
21494
21494
|
const ge = "#000", Ae = fe, ke = 1, lt = ke, Ee = Z - ce / 2 - ke, Ce = ce / 2, Xe = Z - ce / 2, ot = Math.max(2, (ce - 2 * ke) / 2 - 1);
|
|
@@ -21518,9 +21518,9 @@ const VW = () => {
|
|
|
21518
21518
|
] });
|
|
21519
21519
|
}
|
|
21520
21520
|
return /* @__PURE__ */ B("div", { style: { width: Z, height: ce, background: fe, border: "1px solid #ccc" } });
|
|
21521
|
-
}, L = (
|
|
21522
|
-
if (!Array.isArray(
|
|
21523
|
-
const oe =
|
|
21521
|
+
}, L = (O) => O == null || O === "" ? "" : typeof O == "number" ? O >= 0 && O <= 1 ? `${Math.round(O * 100)}%` : Math.abs(O) < 100 ? O.toFixed(2) : `${Math.round(O)}` : String(O), N = (O, q, Z, ce) => {
|
|
21522
|
+
if (!Array.isArray(O) || O.length === 0) return null;
|
|
21523
|
+
const oe = O.map((be, ge) => `${D(be)} ${Math.round(100 * (ge / (O.length - 1) || 0))}%`).join(", "), fe = q != null && q !== "" || Z != null && Z !== "";
|
|
21524
21524
|
return /* @__PURE__ */ B("div", { style: { display: "flex", gap: "8px", alignItems: "center", marginBottom: "10px", flexDirection: "column", paddingLeft: "8px", paddingRight: "8px" }, children: /* @__PURE__ */ le("div", { style: { display: "flex", gap: "8px", alignItems: "center", width: "100%", justifyContent: "flex-start" }, children: [
|
|
21525
21525
|
/* @__PURE__ */ B("div", { style: { position: "relative", width: "100%", height: "14px", background: `linear-gradient(90deg, ${oe})`, border: "1px solid #ccc", boxSizing: "border-box", marginLeft: "4px", marginRight: "4px" }, children: fe && /* @__PURE__ */ le(ao, { children: [
|
|
21526
21526
|
/* @__PURE__ */ B("div", { style: {
|
|
@@ -21550,15 +21550,15 @@ const VW = () => {
|
|
|
21550
21550
|
] }) });
|
|
21551
21551
|
}, P = [], U = t?.leaves ?? t?.leafLabels ?? t?.leafs ?? t?.treeLeaves ?? null, M = t?.leaves?.mapping ?? t?.leafMapping ?? t?.leafs?.mapping ?? null;
|
|
21552
21552
|
let j = null;
|
|
21553
|
-
if (Array.isArray(M) && M.length > 0 ? j = M.map((
|
|
21554
|
-
const
|
|
21553
|
+
if (Array.isArray(M) && M.length > 0 ? j = M.map((O) => typeof O == "string" ? { label: O, color: null } : { label: O.label ?? O.value ?? O[0], color: O.color ?? O.fill ?? null, stroke: O.stroke ?? null }) : Array.isArray(U) && U.length > 0 ? j = U.map((O) => typeof O == "string" ? { label: O, color: null } : { label: O.label ?? O.value ?? O[0], color: O.color ?? O.fill ?? null, stroke: O.stroke ?? null }) : U && typeof U == "object" && (j = Object.entries(U).map(([O, q]) => q == null ? { label: O, color: null } : typeof q == "string" || Array.isArray(q) ? { label: O, color: q, stroke: null } : { label: O, color: q.color ?? q.fill ?? null, stroke: q.stroke ?? null })), j && j.length > 0) {
|
|
21554
|
+
const O = k(j);
|
|
21555
21555
|
P.push(
|
|
21556
21556
|
/* @__PURE__ */ le("div", { style: { marginBottom: "8px", width: "100%" }, children: [
|
|
21557
21557
|
/* @__PURE__ */ B("div", { style: { width: "100%" }, children: /* @__PURE__ */ B(un, { className: "text-xs font-medium", style: x, children: "Tree leaves" }) }),
|
|
21558
21558
|
/* @__PURE__ */ B("div", { style: { display: "flex", flexWrap: "wrap", gap: "6px", marginTop: "6px", justifyContent: "flex-start", width: "100%" }, children: /* @__PURE__ */ B(
|
|
21559
21559
|
Ih,
|
|
21560
21560
|
{
|
|
21561
|
-
items:
|
|
21561
|
+
items: O,
|
|
21562
21562
|
cellWidth: 140,
|
|
21563
21563
|
cellHeight: 20,
|
|
21564
21564
|
minContentWidth: 120,
|
|
@@ -21573,8 +21573,8 @@ const VW = () => {
|
|
|
21573
21573
|
);
|
|
21574
21574
|
}
|
|
21575
21575
|
if (t && t.genes && Array.isArray(t.genes)) {
|
|
21576
|
-
const
|
|
21577
|
-
|
|
21576
|
+
const O = k(t.genes);
|
|
21577
|
+
O && O.length > 0 && P.push(
|
|
21578
21578
|
/* @__PURE__ */ le("div", { style: { marginBottom: "8px", width: "100%", maxWidth: "100%" }, children: [
|
|
21579
21579
|
/* @__PURE__ */ B("div", { style: { width: "100%" }, children: /* @__PURE__ */ B(un, { className: "text-xs font-medium", children: "Gene families" }) }),
|
|
21580
21580
|
/* @__PURE__ */ B("div", { style: {
|
|
@@ -21592,7 +21592,7 @@ const VW = () => {
|
|
|
21592
21592
|
}, children: /* @__PURE__ */ B(
|
|
21593
21593
|
Ih,
|
|
21594
21594
|
{
|
|
21595
|
-
items:
|
|
21595
|
+
items: O,
|
|
21596
21596
|
cellWidth: 140,
|
|
21597
21597
|
cellHeight: 20,
|
|
21598
21598
|
containerHeight: 100,
|
|
@@ -21620,8 +21620,8 @@ const VW = () => {
|
|
|
21620
21620
|
);
|
|
21621
21621
|
}
|
|
21622
21622
|
if (t && t.phylo && Array.isArray(t.phylo)) {
|
|
21623
|
-
const
|
|
21624
|
-
|
|
21623
|
+
const O = k(t.phylo);
|
|
21624
|
+
O && O.length > 0 && P.push(
|
|
21625
21625
|
/* @__PURE__ */ le("div", { style: { marginBottom: "8px", width: "100%", maxWidth: "100%" }, children: [
|
|
21626
21626
|
/* @__PURE__ */ B("div", { style: { width: "100%" }, children: /* @__PURE__ */ B(un, { className: "text-xs font-medium", children: "Phylo labels" }) }),
|
|
21627
21627
|
/* @__PURE__ */ B("div", { style: {
|
|
@@ -21639,7 +21639,7 @@ const VW = () => {
|
|
|
21639
21639
|
}, children: /* @__PURE__ */ B(
|
|
21640
21640
|
Ih,
|
|
21641
21641
|
{
|
|
21642
|
-
items:
|
|
21642
|
+
items: O,
|
|
21643
21643
|
cellWidth: 140,
|
|
21644
21644
|
cellHeight: 20,
|
|
21645
21645
|
containerHeight: 100,
|
|
@@ -21668,7 +21668,7 @@ const VW = () => {
|
|
|
21668
21668
|
}
|
|
21669
21669
|
const W = t && t.ncRNAs ? t.ncRNAs : null;
|
|
21670
21670
|
if (W && Array.isArray(W) && W.length > 0) {
|
|
21671
|
-
const
|
|
21671
|
+
const O = W.map((Z) => ({ label: Z.label, color: Z.color, stroke: Z.stroke })), q = k(O);
|
|
21672
21672
|
P.push(
|
|
21673
21673
|
/* @__PURE__ */ le("div", { style: { marginBottom: "8px" }, children: [
|
|
21674
21674
|
/* @__PURE__ */ B("div", { style: { width: "100%" }, children: /* @__PURE__ */ B(un, { className: "text-xs font-medium", children: "ncRNAs" }) }),
|
|
@@ -21689,14 +21689,14 @@ const VW = () => {
|
|
|
21689
21689
|
);
|
|
21690
21690
|
}
|
|
21691
21691
|
if (t && t.regions && typeof t.regions == "object") {
|
|
21692
|
-
const
|
|
21693
|
-
|
|
21692
|
+
const O = Array.isArray(t.regions) ? t.regions : Object.entries(t.regions).map(([q, Z]) => [q, Z]);
|
|
21693
|
+
O.length > 0 && P.push(
|
|
21694
21694
|
/* @__PURE__ */ le("div", { style: { marginBottom: "8px" }, children: [
|
|
21695
21695
|
/* @__PURE__ */ B("div", { style: { width: "100%" }, children: /* @__PURE__ */ B(un, { className: "text-xs font-medium", children: "Regions" }) }),
|
|
21696
21696
|
/* @__PURE__ */ B("div", { style: { display: "flex", flexWrap: "wrap", gap: "6px", marginTop: "6px", justifyContent: "flex-start", width: "100%" }, children: /* @__PURE__ */ B(
|
|
21697
21697
|
Ih,
|
|
21698
21698
|
{
|
|
21699
|
-
items:
|
|
21699
|
+
items: O.sort((q, Z) => S(q[0], Z[0])),
|
|
21700
21700
|
cellWidth: 160,
|
|
21701
21701
|
cellHeight: 20,
|
|
21702
21702
|
minContentWidth: 120,
|
|
@@ -21709,9 +21709,9 @@ const VW = () => {
|
|
|
21709
21709
|
] }, "regions")
|
|
21710
21710
|
);
|
|
21711
21711
|
}
|
|
21712
|
-
const Y = [], R = [], H = (
|
|
21713
|
-
if (!Array.isArray(
|
|
21714
|
-
const Z =
|
|
21712
|
+
const Y = [], R = [], H = (O = [], q = "map") => {
|
|
21713
|
+
if (!Array.isArray(O) || O.length === 0) return null;
|
|
21714
|
+
const Z = O.map((be) => Array.isArray(be.color) ? D(be.color) : be.color ? String(be.color) : "#ccc"), oe = Z.slice(0, 8), fe = Math.max(0, Z.length - oe.length);
|
|
21715
21715
|
return /* @__PURE__ */ le("div", { style: { display: "flex", gap: "8px", alignItems: "center", width: "100%", flexWrap: "wrap" }, children: [
|
|
21716
21716
|
/* @__PURE__ */ le("div", { style: { display: "flex", gap: "2px", alignItems: "center", flexWrap: "wrap" }, children: [
|
|
21717
21717
|
oe.map((be, ge) => /* @__PURE__ */ B("div", { style: { width: 18, height: 12, background: be, border: "1px solid #ccc", boxSizing: "border-box" } }, `${q}-sw-${ge}`)),
|
|
@@ -21721,27 +21721,27 @@ const VW = () => {
|
|
|
21721
21721
|
] })
|
|
21722
21722
|
] }),
|
|
21723
21723
|
/* @__PURE__ */ le("div", { style: { ...w }, children: [
|
|
21724
|
-
|
|
21724
|
+
O.length,
|
|
21725
21725
|
" categories"
|
|
21726
21726
|
] })
|
|
21727
21727
|
] });
|
|
21728
21728
|
};
|
|
21729
21729
|
if (s) {
|
|
21730
|
-
const
|
|
21731
|
-
if (
|
|
21730
|
+
const O = s;
|
|
21731
|
+
if (O.colorBy === "source_gene" || O.colorBy === "target_gene") {
|
|
21732
21732
|
const q = t && t.proteinLinks && Array.isArray(t.proteinLinks.mapping) ? t.proteinLinks.mapping : null;
|
|
21733
21733
|
q && q.length > 0 && Y.push(
|
|
21734
21734
|
/* @__PURE__ */ B("div", { style: { width: "100%" }, children: H(q, "prot") }, "prot-gene-pal")
|
|
21735
21735
|
);
|
|
21736
|
-
} else if (
|
|
21737
|
-
const q =
|
|
21736
|
+
} else if (O.colorBy === "identity_gradient" && O.palette && O.palette.enabled) {
|
|
21737
|
+
const q = O.palette ? Pf(O.palette.name, O.palette.numColors || 8, O.palette.reverse || !1) : [];
|
|
21738
21738
|
Y.push(
|
|
21739
|
-
/* @__PURE__ */ B("div", { style: { width: "100%" }, children:
|
|
21739
|
+
/* @__PURE__ */ B("div", { style: { width: "100%" }, children: N(q, t && t.proteinLinks ? t.proteinLinks.minSim : "", t && t.proteinLinks ? t.proteinLinks.maxSim : "", "AA align") }, "prot-grad")
|
|
21740
21740
|
);
|
|
21741
|
-
} else if (
|
|
21742
|
-
const q =
|
|
21743
|
-
if (
|
|
21744
|
-
const Z = D(q,
|
|
21741
|
+
} else if (O.colorBy === "identity_solid" || O.colorBy === "solid" || O.solidColor) {
|
|
21742
|
+
const q = O.solidColor || [200, 200, 200, 255];
|
|
21743
|
+
if (O.useAlpha && typeof O.minAlpha == "number" && typeof O.maxAlpha == "number" && O.minAlpha !== O.maxAlpha) {
|
|
21744
|
+
const Z = D(q, O.minAlpha), ce = D(q, O.maxAlpha);
|
|
21745
21745
|
Y.push(
|
|
21746
21746
|
/* @__PURE__ */ le("div", { style: { display: "flex", gap: "8px", alignItems: "center", marginBottom: "6px", paddingLeft: "8px", paddingRight: "8px" }, children: [
|
|
21747
21747
|
/* @__PURE__ */ B("div", { style: { width: "100%", height: "14px", background: `linear-gradient(90deg, ${Z}, ${ce})`, border: "1px solid #ccc", marginLeft: "4px", marginRight: "4px" } }),
|
|
@@ -21757,15 +21757,15 @@ const VW = () => {
|
|
|
21757
21757
|
);
|
|
21758
21758
|
}
|
|
21759
21759
|
} else if (t && t.proteinLinks) {
|
|
21760
|
-
const
|
|
21761
|
-
if (
|
|
21762
|
-
Y.push(/* @__PURE__ */ B("div", { style: { width: "100%" }, children: H(
|
|
21763
|
-
else if (
|
|
21764
|
-
Y.push(/* @__PURE__ */ B("div", { children: O
|
|
21765
|
-
else if (
|
|
21766
|
-
const q =
|
|
21767
|
-
if (
|
|
21768
|
-
const Z = D(q,
|
|
21760
|
+
const O = t.proteinLinks;
|
|
21761
|
+
if (O.mapping && Array.isArray(O.mapping) && O.mapping.length > 0)
|
|
21762
|
+
Y.push(/* @__PURE__ */ B("div", { style: { width: "100%" }, children: H(O.mapping, "prot") }, "prot-mapping"));
|
|
21763
|
+
else if (O.mode === "identity_gradient" && O.palette)
|
|
21764
|
+
Y.push(/* @__PURE__ */ B("div", { children: N(O.palette, O.minSim, O.maxSim, "AA align") }, "prot-grad-payload"));
|
|
21765
|
+
else if (O.solidColor || O.useAlpha) {
|
|
21766
|
+
const q = O.solidColor || [200, 200, 200, 255];
|
|
21767
|
+
if (O.useAlpha && typeof O.minAlpha == "number" && typeof O.maxAlpha == "number" && O.minAlpha !== O.maxAlpha) {
|
|
21768
|
+
const Z = D(q, O.minAlpha), ce = D(q, O.maxAlpha);
|
|
21769
21769
|
Y.push(/* @__PURE__ */ le("div", { style: { display: "flex", gap: "8px", alignItems: "center", paddingLeft: "8px", paddingRight: "8px" }, children: [
|
|
21770
21770
|
/* @__PURE__ */ B("div", { style: { width: "100%", height: "14px", background: `linear-gradient(90deg, ${Z}, ${ce})`, border: "1px solid #ccc", marginLeft: "4px", marginRight: "4px" } }),
|
|
21771
21771
|
/* @__PURE__ */ B("div", { style: { fontSize: "11px", whiteSpace: "nowrap", minWidth: "fit-content" }, children: "AA align" })
|
|
@@ -21778,16 +21778,16 @@ const VW = () => {
|
|
|
21778
21778
|
}
|
|
21779
21779
|
}
|
|
21780
21780
|
if (o) {
|
|
21781
|
-
const
|
|
21782
|
-
if (
|
|
21783
|
-
const q =
|
|
21781
|
+
const O = o;
|
|
21782
|
+
if (O.colorBy === "identity_gradient" && O.palette && O.palette.enabled) {
|
|
21783
|
+
const q = O.palette ? Pf(O.palette.name, O.palette.numColors || 8, O.palette.reverse || !1) : [];
|
|
21784
21784
|
R.push(
|
|
21785
|
-
/* @__PURE__ */ B("div", { style: { width: "100%" }, children:
|
|
21785
|
+
/* @__PURE__ */ B("div", { style: { width: "100%" }, children: N(q, t && t.nucleotideLinks ? t.nucleotideLinks.minSim : "", t && t.nucleotideLinks ? t.nucleotideLinks.maxSim : "", "NT align") }, "nuc-grad")
|
|
21786
21786
|
);
|
|
21787
21787
|
} else {
|
|
21788
|
-
const q =
|
|
21789
|
-
if (
|
|
21790
|
-
const Z = D(q,
|
|
21788
|
+
const q = O.solidColor || [200, 200, 200, 255];
|
|
21789
|
+
if (O.useAlpha && typeof O.minAlpha == "number" && typeof O.maxAlpha == "number" && O.minAlpha !== O.maxAlpha) {
|
|
21790
|
+
const Z = D(q, O.minAlpha), ce = D(q, O.maxAlpha);
|
|
21791
21791
|
R.push(
|
|
21792
21792
|
/* @__PURE__ */ le("div", { style: { display: "flex", gap: "8px", alignItems: "center", marginBottom: "6px", paddingLeft: "8px", paddingRight: "8px" }, children: [
|
|
21793
21793
|
/* @__PURE__ */ B("div", { style: { width: "100%", height: "14px", background: `linear-gradient(90deg, ${Z}, ${ce})`, border: "1px solid #ccc", marginLeft: "4px", marginRight: "4px" } }),
|
|
@@ -21803,15 +21803,15 @@ const VW = () => {
|
|
|
21803
21803
|
);
|
|
21804
21804
|
}
|
|
21805
21805
|
} else if (t && t.nucleotideLinks) {
|
|
21806
|
-
const
|
|
21807
|
-
if (
|
|
21808
|
-
R.push(/* @__PURE__ */ B("div", { style: { width: "100%" }, children: H(
|
|
21809
|
-
else if (
|
|
21810
|
-
R.push(/* @__PURE__ */ B("div", { children: O
|
|
21811
|
-
else if (
|
|
21812
|
-
const q =
|
|
21813
|
-
if (
|
|
21814
|
-
const Z = D(q,
|
|
21806
|
+
const O = t.nucleotideLinks;
|
|
21807
|
+
if (O.mapping && Array.isArray(O.mapping) && O.mapping.length > 0)
|
|
21808
|
+
R.push(/* @__PURE__ */ B("div", { style: { width: "100%" }, children: H(O.mapping, "nuc") }, "nuc-mapping"));
|
|
21809
|
+
else if (O.mode === "identity_gradient" && O.palette)
|
|
21810
|
+
R.push(/* @__PURE__ */ B("div", { children: N(O.palette, O.minSim, O.maxSim, "NT align") }, "nuc-grad-payload"));
|
|
21811
|
+
else if (O.solidColor || O.useAlpha) {
|
|
21812
|
+
const q = O.solidColor || [200, 200, 200, 255];
|
|
21813
|
+
if (O.useAlpha && typeof O.minAlpha == "number" && typeof O.maxAlpha == "number" && O.minAlpha !== O.maxAlpha) {
|
|
21814
|
+
const Z = D(q, O.minAlpha), ce = D(q, O.maxAlpha);
|
|
21815
21815
|
R.push(/* @__PURE__ */ le("div", { style: { display: "flex", gap: "8px", alignItems: "center", paddingLeft: "8px", paddingRight: "8px" }, children: [
|
|
21816
21816
|
/* @__PURE__ */ B("div", { style: { width: "100%", height: "14px", background: `linear-gradient(90deg, ${Z}, ${ce})`, border: "1px solid #ccc", marginLeft: "4px", marginRight: "4px" } }),
|
|
21817
21817
|
/* @__PURE__ */ B("div", { style: { fontSize: "11px", whiteSpace: "nowrap", minWidth: "fit-content" }, children: "NT align" })
|
|
@@ -21918,7 +21918,7 @@ const VW = () => {
|
|
|
21918
21918
|
opacity: 0.8,
|
|
21919
21919
|
pointerEvents: "none",
|
|
21920
21920
|
zIndex: 1001
|
|
21921
|
-
},
|
|
21921
|
+
}, N = {
|
|
21922
21922
|
position: "absolute",
|
|
21923
21923
|
top: x - 24,
|
|
21924
21924
|
left: _,
|
|
@@ -21933,7 +21933,7 @@ const VW = () => {
|
|
|
21933
21933
|
whiteSpace: "nowrap"
|
|
21934
21934
|
}, P = e.unit === "mm" ? `${e.width}×${e.height}mm` : `${e.width}×${e.height}px`;
|
|
21935
21935
|
return /* @__PURE__ */ le("div", { style: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, pointerEvents: "none" }, children: [
|
|
21936
|
-
/* @__PURE__ */ le("div", { style:
|
|
21936
|
+
/* @__PURE__ */ le("div", { style: N, children: [
|
|
21937
21937
|
e.name,
|
|
21938
21938
|
" (",
|
|
21939
21939
|
P,
|
|
@@ -22186,18 +22186,18 @@ const VW = () => {
|
|
|
22186
22186
|
onError: o = null,
|
|
22187
22187
|
themeBackground: a = null
|
|
22188
22188
|
}) => {
|
|
22189
|
-
const u = $n(null), [d, h] = bt(null), [g, m] = bt(!0), [y, C] = bt(null), [b, E] = bt(!1), [w, _] = bt(null), x = $n(!1), D = $n(null), S = (H, I,
|
|
22189
|
+
const u = $n(null), [d, h] = bt(null), [g, m] = bt(!0), [y, C] = bt(null), [b, E] = bt(!1), [w, _] = bt(null), x = $n(!1), D = $n(null), S = (H, I, O) => Math.round(H + (I - H) * O), k = (H, I, O) => "#" + [H, I, O].map((q) => q.toString(16).padStart(2, "0")).join(""), $ = [255, 125, 69], L = [255, 219, 19], N = [101, 203, 243], P = [0, 83, 214], U = (H, I, O) => k(S(H[0], I[0], O), S(H[1], I[1], O), S(H[2], I[2], O)), M = (H) => {
|
|
22190
22190
|
const I = Math.max(0, Math.min(100, Number(H) || 0));
|
|
22191
|
-
return I <= 50 ? U($, L, I / 50) : I <= 70 ? U(L,
|
|
22191
|
+
return I <= 50 ? U($, L, I / 50) : I <= 70 ? U(L, N, (I - 50) / 20) : I <= 90 ? U(N, P, (I - 70) / 20) : "#0053D6";
|
|
22192
22192
|
};
|
|
22193
22193
|
Gn(() => {
|
|
22194
22194
|
let H = !1;
|
|
22195
22195
|
const I = async () => {
|
|
22196
|
-
const
|
|
22197
|
-
if (!(!u.current || !
|
|
22196
|
+
const O = w || t;
|
|
22197
|
+
if (!(!u.current || !O))
|
|
22198
22198
|
try {
|
|
22199
22199
|
m(!0), C(null);
|
|
22200
|
-
const q =
|
|
22200
|
+
const q = O.trim().startsWith("data_") || O.includes("_entry.id"), Z = q ? "cif" : "pdb";
|
|
22201
22201
|
console.log("[ProteinViewer] Detected format:", Z, "- isMMCIF:", q), await (async (Xe, ot = 30, _t = 100) => {
|
|
22202
22202
|
for (let ze = 0; ze < ot; ze++) {
|
|
22203
22203
|
const Mt = Xe.clientWidth || 0, an = Xe.clientHeight || 0;
|
|
@@ -22208,7 +22208,7 @@ const VW = () => {
|
|
|
22208
22208
|
})(u.current);
|
|
22209
22209
|
let oe = window.$3Dmol;
|
|
22210
22210
|
if (!oe) {
|
|
22211
|
-
const Xe = await import("./3Dmol-
|
|
22211
|
+
const Xe = await import("./3Dmol-Cbt2auYq.js").then((ot) => ot._);
|
|
22212
22212
|
oe = Xe.default || Xe, window.$3Dmol = oe;
|
|
22213
22213
|
}
|
|
22214
22214
|
if (d) {
|
|
@@ -22233,7 +22233,7 @@ const VW = () => {
|
|
|
22233
22233
|
} catch {
|
|
22234
22234
|
}
|
|
22235
22235
|
console.log("[ProteinViewer] Adding model with format:", Z);
|
|
22236
|
-
const be = fe.addModel(
|
|
22236
|
+
const be = fe.addModel(O, Z);
|
|
22237
22237
|
if (console.log("[ProteinViewer] Model loaded, atoms:", be?.atoms?.length), !be?.atoms?.length) throw new Error("No atoms loaded from structure data");
|
|
22238
22238
|
let ge = null, Ae = 1 / 0, ke = -1 / 0;
|
|
22239
22239
|
try {
|
|
@@ -22252,7 +22252,7 @@ const VW = () => {
|
|
|
22252
22252
|
x.current = !0;
|
|
22253
22253
|
const Xe = n || (i ? i.length : be.atoms.length);
|
|
22254
22254
|
s({
|
|
22255
|
-
pdb:
|
|
22255
|
+
pdb: O,
|
|
22256
22256
|
sequenceLength: Xe,
|
|
22257
22257
|
confidence: ge == null ? null : ge * lt
|
|
22258
22258
|
// 0..100
|
|
@@ -22412,8 +22412,8 @@ ${q}`,
|
|
|
22412
22412
|
const H = w || t;
|
|
22413
22413
|
if (H)
|
|
22414
22414
|
try {
|
|
22415
|
-
const I = new Blob([H], { type: "text/plain" }),
|
|
22416
|
-
q.href =
|
|
22415
|
+
const I = new Blob([H], { type: "text/plain" }), O = URL.createObjectURL(I), q = document.createElement("a");
|
|
22416
|
+
q.href = O, q.download = `protein_structure_${n || (i ? i.length : "unknown")}residues.pdb`, document.body.appendChild(q), q.click(), document.body.removeChild(q), URL.revokeObjectURL(O);
|
|
22417
22417
|
} catch (I) {
|
|
22418
22418
|
console.warn("Download failed:", I);
|
|
22419
22419
|
}
|
|
@@ -22652,10 +22652,10 @@ class iq {
|
|
|
22652
22652
|
let $ = Math.atan2(S, D);
|
|
22653
22653
|
$ < 0 && ($ += 2 * Math.PI), $ < x && ($ += 2 * Math.PI);
|
|
22654
22654
|
const L = $ - x;
|
|
22655
|
-
let
|
|
22656
|
-
|
|
22657
|
-
const P = L /
|
|
22658
|
-
for (let U = 1; U <
|
|
22655
|
+
let N = b.start - y.end;
|
|
22656
|
+
N < 0 && (N += this.nbase + 1);
|
|
22657
|
+
const P = L / N;
|
|
22658
|
+
for (let U = 1; U < N; U++) {
|
|
22659
22659
|
let M = y.end + U;
|
|
22660
22660
|
M > this.nbase && (M -= this.nbase + 1);
|
|
22661
22661
|
const j = x + U * P, W = _ + (k - _) * (j - x) / L;
|
|
@@ -22766,30 +22766,30 @@ const aq = ({
|
|
|
22766
22766
|
T: "#3498DB"
|
|
22767
22767
|
// Blue (same as U for DNA)
|
|
22768
22768
|
}, S = Ri(() => {
|
|
22769
|
-
u((
|
|
22769
|
+
u((O) => Math.min(O * 1.3, 20));
|
|
22770
22770
|
}, []), k = Ri(() => {
|
|
22771
|
-
u((
|
|
22771
|
+
u((O) => Math.max(O / 1.3, 0.2));
|
|
22772
22772
|
}, []), $ = Ri(() => {
|
|
22773
22773
|
u(1), h({ x: 0, y: 0 });
|
|
22774
|
-
}, []), L = Ri((
|
|
22775
|
-
|
|
22774
|
+
}, []), L = Ri((O, q, Z) => {
|
|
22775
|
+
O.preventDefault(), O.stopPropagation();
|
|
22776
22776
|
const ce = i.current;
|
|
22777
22777
|
if (!ce) return;
|
|
22778
22778
|
const oe = ce.getBoundingClientRect(), fe = oe.width / oe.height, be = q / Z;
|
|
22779
22779
|
let ge;
|
|
22780
22780
|
fe > be ? ge = oe.height / Z : ge = oe.width / q;
|
|
22781
|
-
const Ae = (
|
|
22781
|
+
const Ae = (O.clientX - oe.left - oe.width / 2) / ge + q / 2, ke = (O.clientY - oe.top - oe.height / 2) / ge + Z / 2, Ee = -O.deltaY * 2e-3, Ce = Math.exp(Ee), Xe = Math.min(Math.max(a * Ce, 0.2), 20), ot = (Ae - d.x) / a, _t = (ke - d.y) / a, ze = Ae - ot * Xe, Mt = ke - _t * Xe;
|
|
22782
22782
|
u(Xe), h({ x: ze, y: Mt });
|
|
22783
|
-
}, [a, d]),
|
|
22784
|
-
|
|
22785
|
-
}, [d]), P = Ri((
|
|
22783
|
+
}, [a, d]), N = Ri((O) => {
|
|
22784
|
+
O.button === 0 && (O.preventDefault(), m(!0), C({ x: O.clientX, y: O.clientY }), E(d));
|
|
22785
|
+
}, [d]), P = Ri((O, q, Z) => {
|
|
22786
22786
|
if (!g) return;
|
|
22787
22787
|
const ce = i.current;
|
|
22788
22788
|
if (!ce) return;
|
|
22789
22789
|
const oe = ce.getBoundingClientRect(), fe = oe.width / oe.height, be = q / Z;
|
|
22790
22790
|
let ge;
|
|
22791
22791
|
fe > be ? ge = oe.height / Z : ge = oe.width / q;
|
|
22792
|
-
const Ae = (
|
|
22792
|
+
const Ae = (O.clientX - y.x) / ge, ke = (O.clientY - y.y) / ge;
|
|
22793
22793
|
h({
|
|
22794
22794
|
x: b.x + Ae,
|
|
22795
22795
|
y: b.y + ke
|
|
@@ -22802,19 +22802,19 @@ const aq = ({
|
|
|
22802
22802
|
x.current && (document.fullscreenElement ? document.exitFullscreen() : x.current.requestFullscreen());
|
|
22803
22803
|
}, []);
|
|
22804
22804
|
Gn(() => {
|
|
22805
|
-
const
|
|
22805
|
+
const O = () => {
|
|
22806
22806
|
_(!!document.fullscreenElement);
|
|
22807
22807
|
};
|
|
22808
|
-
return document.addEventListener("fullscreenchange",
|
|
22808
|
+
return document.addEventListener("fullscreenchange", O), () => document.removeEventListener("fullscreenchange", O);
|
|
22809
22809
|
}, []);
|
|
22810
22810
|
const W = Ti(() => {
|
|
22811
22811
|
if (!t || !e) return null;
|
|
22812
22812
|
try {
|
|
22813
|
-
const
|
|
22814
|
-
if (
|
|
22815
|
-
return o(`Length mismatch: sequence (${
|
|
22813
|
+
const O = t.replace(/\s/g, "").toUpperCase(), q = e.replace(/\s/g, "");
|
|
22814
|
+
if (O.length !== q.length)
|
|
22815
|
+
return o(`Length mismatch: sequence (${O.length}) vs structure (${q.length})`), null;
|
|
22816
22816
|
const Z = oq(q), ce = sq(Z), oe = Math.min(...ce.x), fe = Math.max(...ce.x), be = Math.min(...ce.y), ge = Math.max(...ce.y), Ae = 30, ke = fe - oe + Ae * 2, lt = ge - be + Ae * 2, Ee = ce.x.map((ze) => ze - oe + Ae), Ce = ce.y.map((ze) => ze - be + Ae), Xe = [], ot = [];
|
|
22817
|
-
for (let ze = 0; ze <
|
|
22817
|
+
for (let ze = 0; ze < O.length - 1; ze++)
|
|
22818
22818
|
Xe.push({
|
|
22819
22819
|
x1: Ee[ze],
|
|
22820
22820
|
y1: Ce[ze],
|
|
@@ -22828,7 +22828,7 @@ const aq = ({
|
|
|
22828
22828
|
x2: Ee[Z[ze] - 1],
|
|
22829
22829
|
y2: Ce[Z[ze] - 1]
|
|
22830
22830
|
});
|
|
22831
|
-
const _t =
|
|
22831
|
+
const _t = O.split("").map((ze, Mt) => ({
|
|
22832
22832
|
x: Ee[Mt],
|
|
22833
22833
|
y: Ce[Mt],
|
|
22834
22834
|
name: ze,
|
|
@@ -22836,8 +22836,8 @@ const aq = ({
|
|
|
22836
22836
|
index: Mt + 1
|
|
22837
22837
|
}));
|
|
22838
22838
|
return o(null), { nodes: _t, backboneLinks: Xe, basepairLinks: ot, width: ke, height: lt };
|
|
22839
|
-
} catch (
|
|
22840
|
-
return o(String(
|
|
22839
|
+
} catch (O) {
|
|
22840
|
+
return o(String(O)), null;
|
|
22841
22841
|
}
|
|
22842
22842
|
}, [t, e]);
|
|
22843
22843
|
if (s)
|
|
@@ -22899,21 +22899,21 @@ const aq = ({
|
|
|
22899
22899
|
)
|
|
22900
22900
|
] })
|
|
22901
22901
|
] }), {}),
|
|
22902
|
-
/* @__PURE__ */ B(({ fullscreen:
|
|
22902
|
+
/* @__PURE__ */ B(({ fullscreen: O = !1 }) => /* @__PURE__ */ le(
|
|
22903
22903
|
"div",
|
|
22904
22904
|
{
|
|
22905
22905
|
ref: i,
|
|
22906
|
-
className: `rounded border border-border bg-muted overflow-hidden relative ${
|
|
22906
|
+
className: `rounded border border-border bg-muted overflow-hidden relative ${O ? "flex-1" : ""}`,
|
|
22907
22907
|
style: {
|
|
22908
|
-
maxHeight:
|
|
22909
|
-
height:
|
|
22908
|
+
maxHeight: O ? void 0 : "240px",
|
|
22909
|
+
height: O ? "100%" : "240px",
|
|
22910
22910
|
cursor: g ? "grabbing" : "grab",
|
|
22911
22911
|
touchAction: "none"
|
|
22912
22912
|
},
|
|
22913
22913
|
onWheel: (q) => {
|
|
22914
22914
|
q.preventDefault(), q.stopPropagation(), L(q, Y, R);
|
|
22915
22915
|
},
|
|
22916
|
-
onMouseDown:
|
|
22916
|
+
onMouseDown: N,
|
|
22917
22917
|
onMouseMove: (q) => P(q, Y, R),
|
|
22918
22918
|
onMouseUp: U,
|
|
22919
22919
|
onMouseLeave: M,
|
|
@@ -22924,7 +22924,7 @@ const aq = ({
|
|
|
22924
22924
|
ref: r,
|
|
22925
22925
|
viewBox: `0 0 ${Y} ${R}`,
|
|
22926
22926
|
className: "w-full h-full",
|
|
22927
|
-
style: { minHeight:
|
|
22927
|
+
style: { minHeight: O ? "100%" : "240px", maxHeight: O ? "100%" : "240px" },
|
|
22928
22928
|
preserveAspectRatio: "xMidYMid meet",
|
|
22929
22929
|
children: /* @__PURE__ */ le("g", { transform: `translate(${d.x}, ${d.y}) scale(${a})`, children: [
|
|
22930
22930
|
W.basepairLinks.map((q, Z) => /* @__PURE__ */ B(
|
|
@@ -22992,10 +22992,10 @@ const aq = ({
|
|
|
22992
22992
|
}
|
|
22993
22993
|
), { fullscreen: w }),
|
|
22994
22994
|
/* @__PURE__ */ le("div", { className: "flex items-center gap-1.5 text-[10px] text-muted-foreground", children: [
|
|
22995
|
-
Object.entries(D).filter(([
|
|
22995
|
+
Object.entries(D).filter(([O]) => O !== "T").map(([O, q]) => /* @__PURE__ */ le("span", { className: "flex items-center gap-0.5", children: [
|
|
22996
22996
|
/* @__PURE__ */ B("span", { className: "rounded-full w-2 h-2 inline-block", style: { backgroundColor: q } }),
|
|
22997
|
-
|
|
22998
|
-
] },
|
|
22997
|
+
O
|
|
22998
|
+
] }, O)),
|
|
22999
22999
|
/* @__PURE__ */ le("span", { className: "flex items-center gap-0.5", children: [
|
|
23000
23000
|
/* @__PURE__ */ B("span", { className: "w-2 h-0.5 bg-foreground opacity-70 inline-block" }),
|
|
23001
23001
|
"bb"
|
|
@@ -23100,7 +23100,7 @@ function uq({
|
|
|
23100
23100
|
setTreeColorBy: k,
|
|
23101
23101
|
domainColorBy: $,
|
|
23102
23102
|
setDomainColorBy: L,
|
|
23103
|
-
treeLabelBy:
|
|
23103
|
+
treeLabelBy: N,
|
|
23104
23104
|
setTreeLabelBy: P,
|
|
23105
23105
|
geneLabelBy: U,
|
|
23106
23106
|
setGeneLabelBy: M,
|
|
@@ -23110,7 +23110,7 @@ function uq({
|
|
|
23110
23110
|
setPhyloPalette: R,
|
|
23111
23111
|
domainPalette: H,
|
|
23112
23112
|
setDomainPalette: I,
|
|
23113
|
-
domainSource:
|
|
23113
|
+
domainSource: O,
|
|
23114
23114
|
setDomainSource: q,
|
|
23115
23115
|
ncRNAPalette: Z,
|
|
23116
23116
|
setNcRNAPalette: ce,
|
|
@@ -23198,7 +23198,7 @@ function uq({
|
|
|
23198
23198
|
geneHeight: sr,
|
|
23199
23199
|
...Qs
|
|
23200
23200
|
}) {
|
|
23201
|
-
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, Kn] = bt(null), Wi = typeof d < "u" ? d : Ha, Lo = typeof h == "function" ? h : Kn, [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 E == "function" ? E : 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 _ == "function" ? _ : 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
|
|
23201
|
+
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, Kn] = bt(null), Wi = typeof d < "u" ? d : Ha, Lo = typeof h == "function" ? h : Kn, [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 E == "function" ? E : 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 _ == "function" ? _ : 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 N < "u" ? N : 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 O < "u" ? O : 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(""), [ip, Td] = bt(!1), [sp, rh] = bt(null);
|
|
23202
23202
|
Gn(() => {
|
|
23203
23203
|
const pt = localStorage.getItem(Ru);
|
|
23204
23204
|
pt && Pl(pt);
|
|
@@ -24717,11 +24717,21 @@ class pq {
|
|
|
24717
24717
|
if (!this.parentGene || !this.parentGene.polygon) return;
|
|
24718
24718
|
const e = this.parentGene, n = this.createDomainPolygon(e, this.origStart, this.origEnd);
|
|
24719
24719
|
if (n && e.polygon) {
|
|
24720
|
-
const r = this.
|
|
24720
|
+
const r = this.getGeneClipRect(e);
|
|
24721
24721
|
this.polygon = gq(n, r);
|
|
24722
24722
|
} else
|
|
24723
24723
|
this.polygon = n;
|
|
24724
24724
|
}
|
|
24725
|
+
// Get a simple rectangular clipping region that covers the entire gene
|
|
24726
|
+
getGeneClipRect(e) {
|
|
24727
|
+
const r = (e.geneHeight || e.config?.gene?.height || 60) / 2, i = e.trackY, s = Math.min(e.start, e.end), o = Math.max(e.start, e.end);
|
|
24728
|
+
return [
|
|
24729
|
+
[s, i - r],
|
|
24730
|
+
[o, i - r],
|
|
24731
|
+
[o, i + r],
|
|
24732
|
+
[s, i + r]
|
|
24733
|
+
];
|
|
24734
|
+
}
|
|
24725
24735
|
// Build a convex 5-vertex arrow polygon for clipping
|
|
24726
24736
|
// This covers the full gene area (body + tip) and works with Sutherland-Hodgman
|
|
24727
24737
|
getConvexGenePolygon(e) {
|
|
@@ -24754,7 +24764,10 @@ class pq {
|
|
|
24754
24764
|
if (!e.centerLine || !Array.isArray(e.centerLine) || e.centerLine.length < 2 || !isFinite(u) || u <= 0) return null;
|
|
24755
24765
|
const h = Math.abs(e.origEnd - e.origStart) / 3;
|
|
24756
24766
|
let g = n / h, m = r / h;
|
|
24757
|
-
g = Math.max(0, Math.min(1, g)), m = Math.max(0, Math.min(1, m))
|
|
24767
|
+
if (g = Math.max(0, Math.min(1, g)), m = Math.max(0, Math.min(1, m)), e.strand === "-") {
|
|
24768
|
+
const L = 1 - m, N = 1 - g;
|
|
24769
|
+
g = L, m = N;
|
|
24770
|
+
}
|
|
24758
24771
|
const y = this.interpolateOnLine(e.centerLine, g), C = this.interpolateOnLine(e.centerLine, m), b = this.perpVector(e.centerLine[0], e.centerLine[1]), E = this.normalize(b), w = (typeof e.geneHeight == "number" ? e.geneHeight : e.config && e.config.gene && e.config.gene.height ? e.config.gene.height : 10) / 2, _ = e.config && e.config.domain && typeof e.config.domain.heightFactor == "number" ? e.config.domain.heightFactor : this.config && this.config.domain && this.config.domain.heightFactor || 0.6, x = w * _, D = [y[0] - E[0] * x, y[1] - E[1] * x], S = [C[0] - E[0] * x, C[1] - E[1] * x], k = [C[0] + E[0] * x, C[1] + E[1] * x], $ = [y[0] + E[0] * x, y[1] + E[1] * x];
|
|
24759
24772
|
return [D, S, k, $];
|
|
24760
24773
|
}
|
|
@@ -25213,8 +25226,8 @@ class bs {
|
|
|
25213
25226
|
const S = D.origStart || 0, k = D.origEnd || 0;
|
|
25214
25227
|
let $ = bs.getTransformedXUnified(S, C, g, b), L = bs.getTransformedXUnified(k, C, g, b);
|
|
25215
25228
|
$ = C + ($ - C) * i, L = C + (L - C) * i, D.start = $, D.end = L, D.strand = b ? D.origStrand === "+" ? "-" : "+" : D.origStrand, ["gene_1", "gene_2"].includes(D.id) || D.originalGeneId?.includes("gene_1") || D.originalGeneId?.includes("gene_2"), E = Math.max(E, $, L);
|
|
25216
|
-
for (let
|
|
25217
|
-
|
|
25229
|
+
for (let N of D.domains)
|
|
25230
|
+
N.updatePolygon();
|
|
25218
25231
|
D.updatePolygon();
|
|
25219
25232
|
}
|
|
25220
25233
|
const _ = n[s] || [];
|
|
@@ -25230,8 +25243,8 @@ class bs {
|
|
|
25230
25243
|
const S = D.origStart || 0, k = D.origEnd || 0;
|
|
25231
25244
|
let $ = bs.getTransformedXUnified(S, C, g, b), L = bs.getTransformedXUnified(k, C, g, b);
|
|
25232
25245
|
$ = C + ($ - C) * i, L = C + (L - C) * i, D.start = $, D.end = L, D.strand = b ? D.origStrand === "+" ? "-" : "+" : D.origStrand;
|
|
25233
|
-
const
|
|
25234
|
-
D.updatePolygon(
|
|
25246
|
+
const N = w.filter((P) => D.containsGene(P));
|
|
25247
|
+
D.updatePolygon(N, u), E = Math.max(E, $, L);
|
|
25235
25248
|
}
|
|
25236
25249
|
if (h && h.hood) {
|
|
25237
25250
|
const S = m ? m.length || 0 : (h.hood.origEnd || 0) - (h.hood.origStart || 0);
|
|
@@ -28248,8 +28261,8 @@ ${dY(E)}
|
|
|
28248
28261
|
for (const k in u) {
|
|
28249
28262
|
const $ = typeof u[k] == "string" ? { injection: u[k], order: 0 } : u[k], L = /^(v|f)s:(#)?([\w-]+)$/.exec(k);
|
|
28250
28263
|
if (L) {
|
|
28251
|
-
const
|
|
28252
|
-
|
|
28264
|
+
const N = L[2], P = L[3];
|
|
28265
|
+
N ? P === "decl" ? D[k] = [$] : S[k] = [$] : x[k] = [$];
|
|
28253
28266
|
} else
|
|
28254
28267
|
S[k] = [$];
|
|
28255
28268
|
}
|
|
@@ -28258,13 +28271,13 @@ ${dY(E)}
|
|
|
28258
28271
|
const $ = vR(k, r);
|
|
28259
28272
|
w += $;
|
|
28260
28273
|
const L = k.instance?.normalizedInjections[r] || {};
|
|
28261
|
-
for (const
|
|
28262
|
-
const P = /^(v|f)s:#([\w-]+)$/.exec(
|
|
28274
|
+
for (const N in L) {
|
|
28275
|
+
const P = /^(v|f)s:#([\w-]+)$/.exec(N);
|
|
28263
28276
|
if (P) {
|
|
28264
28277
|
const M = P[2] === "decl" ? D : S;
|
|
28265
|
-
M[
|
|
28278
|
+
M[N] = M[N] || [], M[N].push(L[N]);
|
|
28266
28279
|
} else
|
|
28267
|
-
x[
|
|
28280
|
+
x[N] = x[N] || [], x[N].push(L[N]);
|
|
28268
28281
|
}
|
|
28269
28282
|
}
|
|
28270
28283
|
return w += "// ----- MAIN SHADER SOURCE -------------------------", w += FR, w = Dm(w, r, D), w += CR(_[r], x), w += b, w = Dm(w, r, S), i === "glsl" && g !== m && (w = tY(w, r)), w.trim();
|
|
@@ -34375,10 +34388,10 @@ class Mo extends XG {
|
|
|
34375
34388
|
const D = Xo[w.name][0], S = Xo[w.name][1], k = Xo[x.name][0];
|
|
34376
34389
|
if (D !== Xo[x.name][1]) return null;
|
|
34377
34390
|
const $ = new Array(k * S);
|
|
34378
|
-
for (let L = 0; L < S; L++) for (let
|
|
34391
|
+
for (let L = 0; L < S; L++) for (let N = 0; N < k; N++) {
|
|
34379
34392
|
let P = 0;
|
|
34380
|
-
for (let U = 0; U < D; U++) P += E[U * S + L] * _[
|
|
34381
|
-
$[L * k +
|
|
34393
|
+
for (let U = 0; U < D; U++) P += E[U * S + L] * _[N * D + U];
|
|
34394
|
+
$[L * k + N] = P;
|
|
34382
34395
|
}
|
|
34383
34396
|
return $;
|
|
34384
34397
|
})(h, r.typeInfo, g, i.typeInfo);
|
|
@@ -36604,13 +36617,13 @@ function BK(t, e) {
|
|
|
36604
36617
|
return t;
|
|
36605
36618
|
}
|
|
36606
36619
|
function fA(t, e) {
|
|
36607
|
-
const n = e[0], r = e[1], i = e[2], s = e[3], o = e[4], a = e[5], u = e[6], d = e[7], h = e[8], g = e[9], m = e[10], y = e[11], C = e[12], b = e[13], E = e[14], w = e[15], _ = n * a - r * o, x = n * u - i * o, D = n * d - s * o, S = r * u - i * a, k = r * d - s * a, $ = i * d - s * u, L = h * b - g * C,
|
|
36608
|
-
let W = _ * j - x * M + D * U + S * P - k *
|
|
36609
|
-
return W ? (W = 1 / W, t[0] = (a * j - u * M + d * U) * W, t[1] = (i * M - r * j - s * U) * W, t[2] = (b * $ - E * k + w * S) * W, t[3] = (m * k - g * $ - y * S) * W, t[4] = (u * P - o * j - d *
|
|
36620
|
+
const n = e[0], r = e[1], i = e[2], s = e[3], o = e[4], a = e[5], u = e[6], d = e[7], h = e[8], g = e[9], m = e[10], y = e[11], C = e[12], b = e[13], E = e[14], w = e[15], _ = n * a - r * o, x = n * u - i * o, D = n * d - s * o, S = r * u - i * a, k = r * d - s * a, $ = i * d - s * u, L = h * b - g * C, N = h * E - m * C, P = h * w - y * C, U = g * E - m * b, M = g * w - y * b, j = m * w - y * E;
|
|
36621
|
+
let W = _ * j - x * M + D * U + S * P - k * N + $ * L;
|
|
36622
|
+
return W ? (W = 1 / W, t[0] = (a * j - u * M + d * U) * W, t[1] = (i * M - r * j - s * U) * W, t[2] = (b * $ - E * k + w * S) * W, t[3] = (m * k - g * $ - y * S) * W, t[4] = (u * P - o * j - d * N) * W, t[5] = (n * j - i * P + s * N) * W, t[6] = (E * D - C * $ - w * x) * W, t[7] = (h * $ - m * D + y * x) * W, t[8] = (o * M - a * P + d * L) * W, t[9] = (r * P - n * M - s * L) * W, t[10] = (C * k - b * D + w * _) * W, t[11] = (g * D - h * k - y * _) * W, t[12] = (a * N - o * U - u * L) * W, t[13] = (n * U - r * N + i * L) * W, t[14] = (b * x - C * S - E * _) * W, t[15] = (h * S - g * x + m * _) * W, t) : null;
|
|
36610
36623
|
}
|
|
36611
36624
|
function SK(t) {
|
|
36612
|
-
const e = t[0], n = t[1], r = t[2], i = t[3], s = t[4], o = t[5], a = t[6], u = t[7], d = t[8], h = t[9], g = t[10], m = t[11], y = t[12], C = t[13], b = t[14], E = t[15], w = e * o - n * s, _ = e * a - r * s, x = n * a - r * o, D = d * C - h * y, S = d * b - g * y, k = h * b - g * C, $ = e * k - n * S + r * D, L = s * k - o * S + a * D,
|
|
36613
|
-
return u * $ - i * L + E *
|
|
36625
|
+
const e = t[0], n = t[1], r = t[2], i = t[3], s = t[4], o = t[5], a = t[6], u = t[7], d = t[8], h = t[9], g = t[10], m = t[11], y = t[12], C = t[13], b = t[14], E = t[15], w = e * o - n * s, _ = e * a - r * s, x = n * a - r * o, D = d * C - h * y, S = d * b - g * y, k = h * b - g * C, $ = e * k - n * S + r * D, L = s * k - o * S + a * D, N = d * x - h * _ + g * w, P = y * x - C * _ + b * w;
|
|
36626
|
+
return u * $ - i * L + E * N - m * P;
|
|
36614
36627
|
}
|
|
36615
36628
|
function id(t, e, n) {
|
|
36616
36629
|
const r = e[0], i = e[1], s = e[2], o = e[3], a = e[4], u = e[5], d = e[6], h = e[7], g = e[8], m = e[9], y = e[10], C = e[11], b = e[12], E = e[13], w = e[14], _ = e[15];
|
|
@@ -36627,8 +36640,8 @@ function Gv(t, e, n) {
|
|
|
36627
36640
|
return t[0] = e[0] * r, t[1] = e[1] * r, t[2] = e[2] * r, t[3] = e[3] * r, t[4] = e[4] * i, t[5] = e[5] * i, t[6] = e[6] * i, t[7] = e[7] * i, t[8] = e[8] * s, t[9] = e[9] * s, t[10] = e[10] * s, t[11] = e[11] * s, t[12] = e[12], t[13] = e[13], t[14] = e[14], t[15] = e[15], t;
|
|
36628
36641
|
}
|
|
36629
36642
|
function TK(t, e, n, r) {
|
|
36630
|
-
let i = r[0], s = r[1], o = r[2], a = Math.sqrt(i * i + s * s + o * o), u, d, h, g, m, y, C, b, E, w, _, x, D, S, k, $, L,
|
|
36631
|
-
return a < em ? null : (a = 1 / a, i *= a, s *= a, o *= a, d = Math.sin(n), u = Math.cos(n), h = 1 - u, g = e[0], m = e[1], y = e[2], C = e[3], b = e[4], E = e[5], w = e[6], _ = e[7], x = e[8], D = e[9], S = e[10], k = e[11], $ = i * i * h + u, L = s * i * h + o * d,
|
|
36643
|
+
let i = r[0], s = r[1], o = r[2], a = Math.sqrt(i * i + s * s + o * o), u, d, h, g, m, y, C, b, E, w, _, x, D, S, k, $, L, N, P, U, M, j, W, Y;
|
|
36644
|
+
return a < em ? null : (a = 1 / a, i *= a, s *= a, o *= a, d = Math.sin(n), u = Math.cos(n), h = 1 - u, g = e[0], m = e[1], y = e[2], C = e[3], b = e[4], E = e[5], w = e[6], _ = e[7], x = e[8], D = e[9], S = e[10], k = e[11], $ = i * i * h + u, L = s * i * h + o * d, N = o * i * h - s * d, P = i * s * h - o * d, U = s * s * h + u, M = o * s * h + i * d, j = i * o * h + s * d, W = s * o * h - i * d, Y = o * o * h + u, t[0] = g * $ + b * L + x * N, t[1] = m * $ + E * L + D * N, t[2] = y * $ + w * L + S * N, t[3] = C * $ + _ * L + k * N, t[4] = g * P + b * U + x * M, t[5] = m * P + E * U + D * M, t[6] = y * P + w * U + S * M, t[7] = C * P + _ * U + k * M, t[8] = g * j + b * W + x * Y, t[9] = m * j + E * W + D * Y, t[10] = y * j + w * W + S * Y, t[11] = C * j + _ * W + k * Y, e !== t && (t[12] = e[12], t[13] = e[13], t[14] = e[14], t[15] = e[15]), t);
|
|
36632
36645
|
}
|
|
36633
36646
|
function sk(t, e, n) {
|
|
36634
36647
|
const r = Math.sin(n), i = Math.cos(n), s = e[4], o = e[5], a = e[6], u = e[7], d = e[8], h = e[9], g = e[10], m = e[11];
|
|
@@ -41082,17 +41095,17 @@ class $f extends wd {
|
|
|
41082
41095
|
D = m[5] / 2, k = Lg(D);
|
|
41083
41096
|
else {
|
|
41084
41097
|
e.fovy ? (k = e.fovy, D = Qv(k)) : k = Lg(D);
|
|
41085
|
-
let
|
|
41098
|
+
let N;
|
|
41086
41099
|
if (E) {
|
|
41087
41100
|
const { top: P = 0, bottom: U = 0 } = E;
|
|
41088
|
-
|
|
41101
|
+
N = [0, lo((P + x - U) / 2, 0, x) - x / 2];
|
|
41089
41102
|
}
|
|
41090
41103
|
$ = OQ({
|
|
41091
41104
|
width: _,
|
|
41092
41105
|
height: x,
|
|
41093
41106
|
scale: S,
|
|
41094
41107
|
center: b && [0, 0, b[2] * oC(n)],
|
|
41095
|
-
offset:
|
|
41108
|
+
offset: N,
|
|
41096
41109
|
pitch: s,
|
|
41097
41110
|
fovy: k,
|
|
41098
41111
|
nearZMultiplier: a,
|
|
@@ -44819,7 +44832,7 @@ class Tee {
|
|
|
44819
44832
|
let S;
|
|
44820
44833
|
const k = [], $ = /* @__PURE__ */ new Set();
|
|
44821
44834
|
for (let L = 0; L < a; L++) {
|
|
44822
|
-
let
|
|
44835
|
+
let N;
|
|
44823
44836
|
if (x) {
|
|
44824
44837
|
const U = this._drawAndSample({
|
|
44825
44838
|
layers: y,
|
|
@@ -44831,7 +44844,7 @@ class Tee {
|
|
|
44831
44844
|
effects: g,
|
|
44832
44845
|
pass: `picking:${u}`
|
|
44833
44846
|
});
|
|
44834
|
-
|
|
44847
|
+
N = pD({
|
|
44835
44848
|
...U,
|
|
44836
44849
|
deviceX: b[0],
|
|
44837
44850
|
deviceY: b[1],
|
|
@@ -44839,20 +44852,20 @@ class Tee {
|
|
|
44839
44852
|
deviceRect: x
|
|
44840
44853
|
});
|
|
44841
44854
|
} else
|
|
44842
|
-
|
|
44855
|
+
N = {
|
|
44843
44856
|
pickedColor: null,
|
|
44844
44857
|
pickedObjectIndex: -1
|
|
44845
44858
|
};
|
|
44846
44859
|
let P;
|
|
44847
|
-
if (
|
|
44860
|
+
if (N.pickedLayer && d && this.depthFBO) {
|
|
44848
44861
|
const { pickedColors: U } = this._drawAndSample({
|
|
44849
|
-
layers: [
|
|
44862
|
+
layers: [N.pickedLayer],
|
|
44850
44863
|
views: n,
|
|
44851
44864
|
viewports: r,
|
|
44852
44865
|
onViewportActive: h,
|
|
44853
44866
|
deviceRect: {
|
|
44854
|
-
x:
|
|
44855
|
-
y:
|
|
44867
|
+
x: N.pickedX,
|
|
44868
|
+
y: N.pickedY,
|
|
44856
44869
|
width: 1,
|
|
44857
44870
|
height: 1
|
|
44858
44871
|
},
|
|
@@ -44862,8 +44875,8 @@ class Tee {
|
|
|
44862
44875
|
}, !0);
|
|
44863
44876
|
U[3] && (P = U[0]);
|
|
44864
44877
|
}
|
|
44865
|
-
|
|
44866
|
-
pickInfo:
|
|
44878
|
+
N.pickedLayer && L + 1 < a && ($.add(N.pickedLayer), N.pickedLayer.disablePickingIndex(N.pickedObjectIndex)), S = yD({
|
|
44879
|
+
pickInfo: N,
|
|
44867
44880
|
lastPickedInfo: this.lastPickedInfo,
|
|
44868
44881
|
mode: u,
|
|
44869
44882
|
layers: y,
|
|
@@ -44875,7 +44888,7 @@ class Tee {
|
|
|
44875
44888
|
});
|
|
44876
44889
|
for (const U of S.values())
|
|
44877
44890
|
U.layer && k.push(U);
|
|
44878
|
-
if (!
|
|
44891
|
+
if (!N.pickedColor)
|
|
44879
44892
|
break;
|
|
44880
44893
|
}
|
|
44881
44894
|
for (const L of $)
|
|
@@ -44913,7 +44926,7 @@ class Tee {
|
|
|
44913
44926
|
let S;
|
|
44914
44927
|
const k = [], $ = /* @__PURE__ */ new Set();
|
|
44915
44928
|
for (let L = 0; L < a; L++) {
|
|
44916
|
-
let
|
|
44929
|
+
let N;
|
|
44917
44930
|
if (x) {
|
|
44918
44931
|
const U = this._drawAndSample({
|
|
44919
44932
|
layers: y,
|
|
@@ -44925,7 +44938,7 @@ class Tee {
|
|
|
44925
44938
|
effects: g,
|
|
44926
44939
|
pass: `picking:${u}`
|
|
44927
44940
|
});
|
|
44928
|
-
|
|
44941
|
+
N = pD({
|
|
44929
44942
|
...U,
|
|
44930
44943
|
deviceX: b[0],
|
|
44931
44944
|
deviceY: b[1],
|
|
@@ -44933,20 +44946,20 @@ class Tee {
|
|
|
44933
44946
|
deviceRect: x
|
|
44934
44947
|
});
|
|
44935
44948
|
} else
|
|
44936
|
-
|
|
44949
|
+
N = {
|
|
44937
44950
|
pickedColor: null,
|
|
44938
44951
|
pickedObjectIndex: -1
|
|
44939
44952
|
};
|
|
44940
44953
|
let P;
|
|
44941
|
-
if (
|
|
44954
|
+
if (N.pickedLayer && d && this.depthFBO) {
|
|
44942
44955
|
const { pickedColors: U } = this._drawAndSample({
|
|
44943
|
-
layers: [
|
|
44956
|
+
layers: [N.pickedLayer],
|
|
44944
44957
|
views: n,
|
|
44945
44958
|
viewports: r,
|
|
44946
44959
|
onViewportActive: h,
|
|
44947
44960
|
deviceRect: {
|
|
44948
|
-
x:
|
|
44949
|
-
y:
|
|
44961
|
+
x: N.pickedX,
|
|
44962
|
+
y: N.pickedY,
|
|
44950
44963
|
width: 1,
|
|
44951
44964
|
height: 1
|
|
44952
44965
|
},
|
|
@@ -44956,8 +44969,8 @@ class Tee {
|
|
|
44956
44969
|
}, !0);
|
|
44957
44970
|
U[3] && (P = U[0]);
|
|
44958
44971
|
}
|
|
44959
|
-
|
|
44960
|
-
pickInfo:
|
|
44972
|
+
N.pickedLayer && L + 1 < a && ($.add(N.pickedLayer), N.pickedLayer.disablePickingIndex(N.pickedObjectIndex)), S = yD({
|
|
44973
|
+
pickInfo: N,
|
|
44961
44974
|
lastPickedInfo: this.lastPickedInfo,
|
|
44962
44975
|
mode: u,
|
|
44963
44976
|
layers: y,
|
|
@@ -44969,7 +44982,7 @@ class Tee {
|
|
|
44969
44982
|
});
|
|
44970
44983
|
for (const U of S.values())
|
|
44971
44984
|
U.layer && k.push(U);
|
|
44972
|
-
if (!
|
|
44985
|
+
if (!N.pickedColor)
|
|
44973
44986
|
break;
|
|
44974
44987
|
}
|
|
44975
44988
|
for (const L of $)
|
|
@@ -45000,8 +45013,8 @@ class Tee {
|
|
|
45000
45013
|
cullRect: { x: i, y: s, width: o, height: a },
|
|
45001
45014
|
effects: g,
|
|
45002
45015
|
pass: `picking:${u}`
|
|
45003
|
-
}), k = mD(S), $ = /* @__PURE__ */ new Map(), L = [],
|
|
45004
|
-
for (let P = 0; P < k.length && !(
|
|
45016
|
+
}), k = mD(S), $ = /* @__PURE__ */ new Map(), L = [], N = Number.isFinite(d);
|
|
45017
|
+
for (let P = 0; P < k.length && !(N && L.length >= d); P++) {
|
|
45005
45018
|
const U = k[P];
|
|
45006
45019
|
let M = {
|
|
45007
45020
|
color: U.pickedColor,
|
|
@@ -45045,8 +45058,8 @@ class Tee {
|
|
|
45045
45058
|
cullRect: { x: i, y: s, width: o, height: a },
|
|
45046
45059
|
effects: g,
|
|
45047
45060
|
pass: `picking:${u}`
|
|
45048
|
-
}), k = mD(S), $ = /* @__PURE__ */ new Map(), L = [],
|
|
45049
|
-
for (let P = 0; P < k.length && !(
|
|
45061
|
+
}), k = mD(S), $ = /* @__PURE__ */ new Map(), L = [], N = Number.isFinite(d);
|
|
45062
|
+
for (let P = 0; P < k.length && !(N && L.length >= d); P++) {
|
|
45050
45063
|
const U = k[P];
|
|
45051
45064
|
let M = {
|
|
45052
45065
|
color: U.pickedColor,
|
|
@@ -52175,9 +52188,9 @@ class gE extends oc {
|
|
|
52175
52188
|
}, D = _ && e.id && _[e.id], S = D && D.updateTriggers, k = e.id || "sublayer";
|
|
52176
52189
|
if (D) {
|
|
52177
52190
|
const $ = this.props[Eu], L = e.type ? e.type._propTypes : {};
|
|
52178
|
-
for (const
|
|
52179
|
-
const P = L[
|
|
52180
|
-
P && P.type === "accessor" && (D[
|
|
52191
|
+
for (const N in D) {
|
|
52192
|
+
const P = L[N] || $[N];
|
|
52193
|
+
P && P.type === "accessor" && (D[N] = this.getSubLayerAccessor(D[N]));
|
|
52181
52194
|
}
|
|
52182
52195
|
}
|
|
52183
52196
|
Object.assign(
|
|
@@ -54847,10 +54860,10 @@ function sse() {
|
|
|
54847
54860
|
o5 = 1, B0.exports = t, B0.exports.default = t;
|
|
54848
54861
|
function t(R, H, I) {
|
|
54849
54862
|
I = I || 2;
|
|
54850
|
-
var
|
|
54863
|
+
var O = H && H.length, q = O ? H[0] * I : R.length, Z = e(R, 0, q, I, !0), ce = [];
|
|
54851
54864
|
if (!Z || Z.next === Z.prev) return ce;
|
|
54852
54865
|
var oe, fe, be, ge, Ae, ke, lt;
|
|
54853
|
-
if (
|
|
54866
|
+
if (O && (Z = u(R, H, Z, I)), R.length > 80 * I) {
|
|
54854
54867
|
oe = be = R[0], fe = ge = R[1];
|
|
54855
54868
|
for (var Ee = I; Ee < q; Ee += I)
|
|
54856
54869
|
Ae = R[Ee], ke = R[Ee + 1], Ae < oe && (oe = Ae), ke < fe && (fe = ke), Ae > be && (be = Ae), ke > ge && (ge = ke);
|
|
@@ -54858,55 +54871,55 @@ function sse() {
|
|
|
54858
54871
|
}
|
|
54859
54872
|
return r(Z, ce, I, oe, fe, lt, 0), ce;
|
|
54860
54873
|
}
|
|
54861
|
-
function e(R, H, I,
|
|
54874
|
+
function e(R, H, I, O, q) {
|
|
54862
54875
|
var Z, ce;
|
|
54863
|
-
if (q === Y(R, H, I,
|
|
54864
|
-
for (Z = H; Z < I; Z +=
|
|
54876
|
+
if (q === Y(R, H, I, O) > 0)
|
|
54877
|
+
for (Z = H; Z < I; Z += O) ce = M(Z, R[Z], R[Z + 1], ce);
|
|
54865
54878
|
else
|
|
54866
|
-
for (Z = I -
|
|
54879
|
+
for (Z = I - O; Z >= H; Z -= O) ce = M(Z, R[Z], R[Z + 1], ce);
|
|
54867
54880
|
return ce && D(ce, ce.next) && (j(ce), ce = ce.next), ce;
|
|
54868
54881
|
}
|
|
54869
54882
|
function n(R, H) {
|
|
54870
54883
|
if (!R) return R;
|
|
54871
54884
|
H || (H = R);
|
|
54872
|
-
var I = R,
|
|
54885
|
+
var I = R, O;
|
|
54873
54886
|
do
|
|
54874
|
-
if (
|
|
54887
|
+
if (O = !1, !I.steiner && (D(I, I.next) || x(I.prev, I, I.next) === 0)) {
|
|
54875
54888
|
if (j(I), I = H = I.prev, I === I.next) break;
|
|
54876
|
-
|
|
54889
|
+
O = !0;
|
|
54877
54890
|
} else
|
|
54878
54891
|
I = I.next;
|
|
54879
|
-
while (
|
|
54892
|
+
while (O || I !== H);
|
|
54880
54893
|
return H;
|
|
54881
54894
|
}
|
|
54882
|
-
function r(R, H, I,
|
|
54895
|
+
function r(R, H, I, O, q, Z, ce) {
|
|
54883
54896
|
if (R) {
|
|
54884
|
-
!ce && Z && y(R,
|
|
54897
|
+
!ce && Z && y(R, O, q, Z);
|
|
54885
54898
|
for (var oe = R, fe, be; R.prev !== R.next; ) {
|
|
54886
|
-
if (fe = R.prev, be = R.next, Z ? s(R,
|
|
54899
|
+
if (fe = R.prev, be = R.next, Z ? s(R, O, q, Z) : i(R)) {
|
|
54887
54900
|
H.push(fe.i / I | 0), H.push(R.i / I | 0), H.push(be.i / I | 0), j(R), R = be.next, oe = be.next;
|
|
54888
54901
|
continue;
|
|
54889
54902
|
}
|
|
54890
54903
|
if (R = be, R === oe) {
|
|
54891
|
-
ce ? ce === 1 ? (R = o(n(R), H, I), r(R, H, I,
|
|
54904
|
+
ce ? ce === 1 ? (R = o(n(R), H, I), r(R, H, I, O, q, Z, 2)) : ce === 2 && a(R, H, I, O, q, Z) : r(n(R), H, I, O, q, Z, 1);
|
|
54892
54905
|
break;
|
|
54893
54906
|
}
|
|
54894
54907
|
}
|
|
54895
54908
|
}
|
|
54896
54909
|
}
|
|
54897
54910
|
function i(R) {
|
|
54898
|
-
var H = R.prev, I = R,
|
|
54899
|
-
if (x(H, I,
|
|
54900
|
-
for (var q = H.x, Z = I.x, ce =
|
|
54911
|
+
var H = R.prev, I = R, O = R.next;
|
|
54912
|
+
if (x(H, I, O) >= 0) return !1;
|
|
54913
|
+
for (var q = H.x, Z = I.x, ce = O.x, oe = H.y, fe = I.y, be = O.y, ge = q < Z ? q < ce ? q : ce : Z < ce ? Z : ce, Ae = oe < fe ? oe < be ? oe : be : fe < be ? fe : be, ke = q > Z ? q > ce ? q : ce : Z > ce ? Z : ce, lt = oe > fe ? oe > be ? oe : be : fe > be ? fe : be, Ee = O.next; Ee !== H; ) {
|
|
54901
54914
|
if (Ee.x >= ge && Ee.x <= ke && Ee.y >= Ae && Ee.y <= lt && w(q, oe, Z, fe, ce, be, Ee.x, Ee.y) && x(Ee.prev, Ee, Ee.next) >= 0) return !1;
|
|
54902
54915
|
Ee = Ee.next;
|
|
54903
54916
|
}
|
|
54904
54917
|
return !0;
|
|
54905
54918
|
}
|
|
54906
|
-
function s(R, H, I,
|
|
54919
|
+
function s(R, H, I, O) {
|
|
54907
54920
|
var q = R.prev, Z = R, ce = R.next;
|
|
54908
54921
|
if (x(q, Z, ce) >= 0) return !1;
|
|
54909
|
-
for (var oe = q.x, fe = Z.x, be = ce.x, ge = q.y, Ae = Z.y, ke = ce.y, lt = oe < fe ? oe < be ? oe : be : fe < be ? fe : be, Ee = ge < Ae ? ge < ke ? ge : ke : Ae < ke ? Ae : ke, Ce = oe > fe ? oe > be ? oe : be : fe > be ? fe : be, Xe = ge > Ae ? ge > ke ? ge : ke : Ae > ke ? Ae : ke, ot = b(lt, Ee, H, I,
|
|
54922
|
+
for (var oe = q.x, fe = Z.x, be = ce.x, ge = q.y, Ae = Z.y, ke = ce.y, lt = oe < fe ? oe < be ? oe : be : fe < be ? fe : be, Ee = ge < Ae ? ge < ke ? ge : ke : Ae < ke ? Ae : ke, Ce = oe > fe ? oe > be ? oe : be : fe > be ? fe : be, Xe = ge > Ae ? ge > ke ? ge : ke : Ae > ke ? Ae : ke, ot = b(lt, Ee, H, I, O), _t = b(Ce, Xe, H, I, O), ze = R.prevZ, Mt = R.nextZ; ze && ze.z >= ot && Mt && Mt.z <= _t; ) {
|
|
54910
54923
|
if (ze.x >= lt && ze.x <= Ce && ze.y >= Ee && ze.y <= Xe && ze !== q && ze !== ce && w(oe, ge, fe, Ae, be, ke, ze.x, ze.y) && x(ze.prev, ze, ze.next) >= 0 || (ze = ze.prevZ, Mt.x >= lt && Mt.x <= Ce && Mt.y >= Ee && Mt.y <= Xe && Mt !== q && Mt !== ce && w(oe, ge, fe, Ae, be, ke, Mt.x, Mt.y) && x(Mt.prev, Mt, Mt.next) >= 0)) return !1;
|
|
54911
54924
|
Mt = Mt.nextZ;
|
|
54912
54925
|
}
|
|
@@ -54921,20 +54934,20 @@ function sse() {
|
|
|
54921
54934
|
return !0;
|
|
54922
54935
|
}
|
|
54923
54936
|
function o(R, H, I) {
|
|
54924
|
-
var
|
|
54937
|
+
var O = R;
|
|
54925
54938
|
do {
|
|
54926
|
-
var q =
|
|
54927
|
-
!D(q, Z) && S(q,
|
|
54928
|
-
} while (
|
|
54929
|
-
return n(
|
|
54939
|
+
var q = O.prev, Z = O.next.next;
|
|
54940
|
+
!D(q, Z) && S(q, O, O.next, Z) && N(q, Z) && N(Z, q) && (H.push(q.i / I | 0), H.push(O.i / I | 0), H.push(Z.i / I | 0), j(O), j(O.next), O = R = Z), O = O.next;
|
|
54941
|
+
} while (O !== R);
|
|
54942
|
+
return n(O);
|
|
54930
54943
|
}
|
|
54931
|
-
function a(R, H, I,
|
|
54944
|
+
function a(R, H, I, O, q, Z) {
|
|
54932
54945
|
var ce = R;
|
|
54933
54946
|
do {
|
|
54934
54947
|
for (var oe = ce.next.next; oe !== ce.prev; ) {
|
|
54935
54948
|
if (ce.i !== oe.i && _(ce, oe)) {
|
|
54936
54949
|
var fe = U(ce, oe);
|
|
54937
|
-
ce = n(ce, ce.next), fe = n(fe, fe.next), r(ce, H, I,
|
|
54950
|
+
ce = n(ce, ce.next), fe = n(fe, fe.next), r(ce, H, I, O, q, Z, 0), r(fe, H, I, O, q, Z, 0);
|
|
54938
54951
|
return;
|
|
54939
54952
|
}
|
|
54940
54953
|
oe = oe.next;
|
|
@@ -54942,10 +54955,10 @@ function sse() {
|
|
|
54942
54955
|
ce = ce.next;
|
|
54943
54956
|
} while (ce !== R);
|
|
54944
54957
|
}
|
|
54945
|
-
function u(R, H, I,
|
|
54958
|
+
function u(R, H, I, O) {
|
|
54946
54959
|
var q = [], Z, ce, oe, fe, be;
|
|
54947
54960
|
for (Z = 0, ce = H.length; Z < ce; Z++)
|
|
54948
|
-
oe = H[Z] *
|
|
54961
|
+
oe = H[Z] * O, fe = Z < ce - 1 ? H[Z + 1] * O : R.length, be = e(R, oe, fe, O, !1), be === be.next && (be.steiner = !0), q.push(E(be));
|
|
54949
54962
|
for (q.sort(d), Z = 0; Z < q.length; Z++)
|
|
54950
54963
|
I = h(q[Z], I);
|
|
54951
54964
|
return I;
|
|
@@ -54957,15 +54970,15 @@ function sse() {
|
|
|
54957
54970
|
var I = g(R, H);
|
|
54958
54971
|
if (!I)
|
|
54959
54972
|
return H;
|
|
54960
|
-
var
|
|
54961
|
-
return n(
|
|
54973
|
+
var O = U(I, R);
|
|
54974
|
+
return n(O, O.next), n(I, I.next);
|
|
54962
54975
|
}
|
|
54963
54976
|
function g(R, H) {
|
|
54964
|
-
var I = H,
|
|
54977
|
+
var I = H, O = R.x, q = R.y, Z = -1 / 0, ce;
|
|
54965
54978
|
do {
|
|
54966
54979
|
if (q <= I.y && q >= I.next.y && I.next.y !== I.y) {
|
|
54967
54980
|
var oe = I.x + (q - I.y) * (I.next.x - I.x) / (I.next.y - I.y);
|
|
54968
|
-
if (oe <=
|
|
54981
|
+
if (oe <= O && oe > Z && (Z = oe, ce = I.x < I.next.x ? I : I.next, oe === O))
|
|
54969
54982
|
return ce;
|
|
54970
54983
|
}
|
|
54971
54984
|
I = I.next;
|
|
@@ -54974,36 +54987,36 @@ function sse() {
|
|
|
54974
54987
|
var fe = ce, be = ce.x, ge = ce.y, Ae = 1 / 0, ke;
|
|
54975
54988
|
I = ce;
|
|
54976
54989
|
do
|
|
54977
|
-
|
|
54990
|
+
O >= I.x && I.x >= be && O !== I.x && w(q < ge ? O : Z, q, be, ge, q < ge ? Z : O, q, I.x, I.y) && (ke = Math.abs(q - I.y) / (O - I.x), N(I, R) && (ke < Ae || ke === Ae && (I.x > ce.x || I.x === ce.x && m(ce, I))) && (ce = I, Ae = ke)), I = I.next;
|
|
54978
54991
|
while (I !== fe);
|
|
54979
54992
|
return ce;
|
|
54980
54993
|
}
|
|
54981
54994
|
function m(R, H) {
|
|
54982
54995
|
return x(R.prev, R, H.prev) < 0 && x(H.next, R, R.next) < 0;
|
|
54983
54996
|
}
|
|
54984
|
-
function y(R, H, I,
|
|
54997
|
+
function y(R, H, I, O) {
|
|
54985
54998
|
var q = R;
|
|
54986
54999
|
do
|
|
54987
|
-
q.z === 0 && (q.z = b(q.x, q.y, H, I,
|
|
55000
|
+
q.z === 0 && (q.z = b(q.x, q.y, H, I, O)), q.prevZ = q.prev, q.nextZ = q.next, q = q.next;
|
|
54988
55001
|
while (q !== R);
|
|
54989
55002
|
q.prevZ.nextZ = null, q.prevZ = null, C(q);
|
|
54990
55003
|
}
|
|
54991
55004
|
function C(R) {
|
|
54992
|
-
var H, I,
|
|
55005
|
+
var H, I, O, q, Z, ce, oe, fe, be = 1;
|
|
54993
55006
|
do {
|
|
54994
55007
|
for (I = R, R = null, Z = null, ce = 0; I; ) {
|
|
54995
|
-
for (ce++,
|
|
55008
|
+
for (ce++, O = I, oe = 0, H = 0; H < be && (oe++, O = O.nextZ, !!O); H++)
|
|
54996
55009
|
;
|
|
54997
|
-
for (fe = be; oe > 0 || fe > 0 &&
|
|
54998
|
-
oe !== 0 && (fe === 0 || !
|
|
54999
|
-
I =
|
|
55010
|
+
for (fe = be; oe > 0 || fe > 0 && O; )
|
|
55011
|
+
oe !== 0 && (fe === 0 || !O || I.z <= O.z) ? (q = I, I = I.nextZ, oe--) : (q = O, O = O.nextZ, fe--), Z ? Z.nextZ = q : R = q, q.prevZ = Z, Z = q;
|
|
55012
|
+
I = O;
|
|
55000
55013
|
}
|
|
55001
55014
|
Z.nextZ = null, be *= 2;
|
|
55002
55015
|
} while (ce > 1);
|
|
55003
55016
|
return R;
|
|
55004
55017
|
}
|
|
55005
|
-
function b(R, H, I,
|
|
55006
|
-
return R = (R - I) * q | 0, H = (H -
|
|
55018
|
+
function b(R, H, I, O, q) {
|
|
55019
|
+
return R = (R - I) * q | 0, H = (H - O) * q | 0, R = (R | R << 8) & 16711935, R = (R | R << 4) & 252645135, R = (R | R << 2) & 858993459, R = (R | R << 1) & 1431655765, H = (H | H << 8) & 16711935, H = (H | H << 4) & 252645135, H = (H | H << 2) & 858993459, H = (H | H << 1) & 1431655765, R | H << 1;
|
|
55007
55020
|
}
|
|
55008
55021
|
function E(R) {
|
|
55009
55022
|
var H = R, I = R;
|
|
@@ -55012,12 +55025,12 @@ function sse() {
|
|
|
55012
55025
|
while (H !== R);
|
|
55013
55026
|
return I;
|
|
55014
55027
|
}
|
|
55015
|
-
function w(R, H, I,
|
|
55016
|
-
return (q - ce) * (H - oe) >= (R - ce) * (Z - oe) && (R - ce) * (
|
|
55028
|
+
function w(R, H, I, O, q, Z, ce, oe) {
|
|
55029
|
+
return (q - ce) * (H - oe) >= (R - ce) * (Z - oe) && (R - ce) * (O - oe) >= (I - ce) * (H - oe) && (I - ce) * (Z - oe) >= (q - ce) * (O - oe);
|
|
55017
55030
|
}
|
|
55018
55031
|
function _(R, H) {
|
|
55019
55032
|
return R.next.i !== H.i && R.prev.i !== H.i && !L(R, H) && // dones't intersect other edges
|
|
55020
|
-
(
|
|
55033
|
+
(N(R, H) && N(H, R) && P(R, H) && // locally visible
|
|
55021
55034
|
(x(R.prev, R, H.prev) || x(R, H.prev, H)) || // does not create opposite-facing sectors
|
|
55022
55035
|
D(R, H) && x(R.prev, R, R.next) > 0 && x(H.prev, H, H.next) > 0);
|
|
55023
55036
|
}
|
|
@@ -55027,9 +55040,9 @@ function sse() {
|
|
|
55027
55040
|
function D(R, H) {
|
|
55028
55041
|
return R.x === H.x && R.y === H.y;
|
|
55029
55042
|
}
|
|
55030
|
-
function S(R, H, I,
|
|
55031
|
-
var q = $(x(R, H, I)), Z = $(x(R, H,
|
|
55032
|
-
return !!(q !== Z && ce !== oe || q === 0 && k(R, I, H) || Z === 0 && k(R,
|
|
55043
|
+
function S(R, H, I, O) {
|
|
55044
|
+
var q = $(x(R, H, I)), Z = $(x(R, H, O)), ce = $(x(I, O, R)), oe = $(x(I, O, H));
|
|
55045
|
+
return !!(q !== Z && ce !== oe || q === 0 && k(R, I, H) || Z === 0 && k(R, O, H) || ce === 0 && k(I, R, O) || oe === 0 && k(I, H, O));
|
|
55033
55046
|
}
|
|
55034
55047
|
function k(R, H, I) {
|
|
55035
55048
|
return H.x <= Math.max(R.x, I.x) && H.x >= Math.min(R.x, I.x) && H.y <= Math.max(R.y, I.y) && H.y >= Math.min(R.y, I.y);
|
|
@@ -55045,23 +55058,23 @@ function sse() {
|
|
|
55045
55058
|
} while (I !== R);
|
|
55046
55059
|
return !1;
|
|
55047
55060
|
}
|
|
55048
|
-
function
|
|
55061
|
+
function N(R, H) {
|
|
55049
55062
|
return x(R.prev, R, R.next) < 0 ? x(R, H, R.next) >= 0 && x(R, R.prev, H) >= 0 : x(R, H, R.prev) < 0 || x(R, R.next, H) < 0;
|
|
55050
55063
|
}
|
|
55051
55064
|
function P(R, H) {
|
|
55052
|
-
var I = R,
|
|
55065
|
+
var I = R, O = !1, q = (R.x + H.x) / 2, Z = (R.y + H.y) / 2;
|
|
55053
55066
|
do
|
|
55054
|
-
I.y > Z != I.next.y > Z && I.next.y !== I.y && q < (I.next.x - I.x) * (Z - I.y) / (I.next.y - I.y) + I.x && (
|
|
55067
|
+
I.y > Z != I.next.y > Z && I.next.y !== I.y && q < (I.next.x - I.x) * (Z - I.y) / (I.next.y - I.y) + I.x && (O = !O), I = I.next;
|
|
55055
55068
|
while (I !== R);
|
|
55056
|
-
return
|
|
55069
|
+
return O;
|
|
55057
55070
|
}
|
|
55058
55071
|
function U(R, H) {
|
|
55059
|
-
var I = new W(R.i, R.x, R.y),
|
|
55060
|
-
return R.next = H, H.prev = R, I.next = q, q.prev = I,
|
|
55072
|
+
var I = new W(R.i, R.x, R.y), O = new W(H.i, H.x, H.y), q = R.next, Z = H.prev;
|
|
55073
|
+
return R.next = H, H.prev = R, I.next = q, q.prev = I, O.next = I, I.prev = O, Z.next = O, O.prev = Z, O;
|
|
55061
55074
|
}
|
|
55062
|
-
function M(R, H, I,
|
|
55075
|
+
function M(R, H, I, O) {
|
|
55063
55076
|
var q = new W(R, H, I);
|
|
55064
|
-
return
|
|
55077
|
+
return O ? (q.next = O.next, q.prev = O, O.next.prev = q, O.next = q) : (q.prev = q, q.next = q), q;
|
|
55065
55078
|
}
|
|
55066
55079
|
function j(R) {
|
|
55067
55080
|
R.next.prev = R.prev, R.prev.next = R.next, R.prevZ && (R.prevZ.nextZ = R.nextZ), R.nextZ && (R.nextZ.prevZ = R.prevZ);
|
|
@@ -55069,7 +55082,7 @@ function sse() {
|
|
|
55069
55082
|
function W(R, H, I) {
|
|
55070
55083
|
this.i = R, this.x = H, this.y = I, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
|
|
55071
55084
|
}
|
|
55072
|
-
t.deviation = function(R, H, I,
|
|
55085
|
+
t.deviation = function(R, H, I, O) {
|
|
55073
55086
|
var q = H && H.length, Z = q ? H[0] * I : R.length, ce = Math.abs(Y(R, 0, Z, I));
|
|
55074
55087
|
if (q)
|
|
55075
55088
|
for (var oe = 0, fe = H.length; oe < fe; oe++) {
|
|
@@ -55077,24 +55090,24 @@ function sse() {
|
|
|
55077
55090
|
ce -= Math.abs(Y(R, be, ge, I));
|
|
55078
55091
|
}
|
|
55079
55092
|
var Ae = 0;
|
|
55080
|
-
for (oe = 0; oe <
|
|
55081
|
-
var ke =
|
|
55093
|
+
for (oe = 0; oe < O.length; oe += 3) {
|
|
55094
|
+
var ke = O[oe] * I, lt = O[oe + 1] * I, Ee = O[oe + 2] * I;
|
|
55082
55095
|
Ae += Math.abs(
|
|
55083
55096
|
(R[ke] - R[Ee]) * (R[lt + 1] - R[ke + 1]) - (R[ke] - R[lt]) * (R[Ee + 1] - R[ke + 1])
|
|
55084
55097
|
);
|
|
55085
55098
|
}
|
|
55086
55099
|
return ce === 0 && Ae === 0 ? 0 : Math.abs((Ae - ce) / ce);
|
|
55087
55100
|
};
|
|
55088
|
-
function Y(R, H, I,
|
|
55089
|
-
for (var q = 0, Z = H, ce = I -
|
|
55101
|
+
function Y(R, H, I, O) {
|
|
55102
|
+
for (var q = 0, Z = H, ce = I - O; Z < I; Z += O)
|
|
55090
55103
|
q += (R[ce] - R[Z]) * (R[Z + 1] + R[ce + 1]), ce = Z;
|
|
55091
55104
|
return q;
|
|
55092
55105
|
}
|
|
55093
55106
|
return t.flatten = function(R) {
|
|
55094
|
-
for (var H = R[0][0].length, I = { vertices: [], holes: [], dimensions: H },
|
|
55107
|
+
for (var H = R[0][0].length, I = { vertices: [], holes: [], dimensions: H }, O = 0, q = 0; q < R.length; q++) {
|
|
55095
55108
|
for (var Z = 0; Z < R[q].length; Z++)
|
|
55096
55109
|
for (var ce = 0; ce < H; ce++) I.vertices.push(R[q][Z][ce]);
|
|
55097
|
-
q > 0 && (
|
|
55110
|
+
q > 0 && (O += R[q - 1].length, I.holes.push(O));
|
|
55098
55111
|
}
|
|
55099
55112
|
return I;
|
|
55100
55113
|
}, B0.exports;
|
|
@@ -55769,7 +55782,7 @@ class ls extends gE {
|
|
|
55769
55782
|
}
|
|
55770
55783
|
/* eslint-disable complexity */
|
|
55771
55784
|
renderLayers() {
|
|
55772
|
-
const { data: e, _dataDiff: n, stroked: r, filled: i, extruded: s, wireframe: o, _normalize: a, _windingOrder: u, elevationScale: d, transitions: h, positionFormat: g } = this.props, { lineWidthUnits: m, lineWidthScale: y, lineWidthMinPixels: C, lineWidthMaxPixels: b, lineJointRounded: E, lineMiterLimit: w, lineDashJustified: _ } = this.props, { getFillColor: x, getLineColor: D, getLineWidth: S, getLineDashArray: k, getElevation: $, getPolygon: L, updateTriggers:
|
|
55785
|
+
const { data: e, _dataDiff: n, stroked: r, filled: i, extruded: s, wireframe: o, _normalize: a, _windingOrder: u, elevationScale: d, transitions: h, positionFormat: g } = this.props, { lineWidthUnits: m, lineWidthScale: y, lineWidthMinPixels: C, lineWidthMaxPixels: b, lineJointRounded: E, lineMiterLimit: w, lineDashJustified: _ } = this.props, { getFillColor: x, getLineColor: D, getLineWidth: S, getLineDashArray: k, getElevation: $, getPolygon: L, updateTriggers: N, material: P } = this.props, { paths: U, pathsDiff: M } = this.state, j = this.getSubLayerClass("fill", mE), W = this.getSubLayerClass("stroke", I1), Y = this.shouldRenderSubLayer("fill", U) && new j({
|
|
55773
55786
|
_dataDiff: n,
|
|
55774
55787
|
extruded: s,
|
|
55775
55788
|
elevationScale: d,
|
|
@@ -55784,14 +55797,14 @@ class ls extends gE {
|
|
|
55784
55797
|
transitions: h
|
|
55785
55798
|
}, this.getSubLayerProps({
|
|
55786
55799
|
id: "fill",
|
|
55787
|
-
updateTriggers:
|
|
55788
|
-
getPolygon:
|
|
55789
|
-
getElevation:
|
|
55790
|
-
getFillColor:
|
|
55800
|
+
updateTriggers: N && {
|
|
55801
|
+
getPolygon: N.getPolygon,
|
|
55802
|
+
getElevation: N.getElevation,
|
|
55803
|
+
getFillColor: N.getFillColor,
|
|
55791
55804
|
// using a legacy API to invalid lineColor attributes
|
|
55792
55805
|
// if (extruded && wireframe) has changed
|
|
55793
55806
|
lineColors: s && o,
|
|
55794
|
-
getLineColor:
|
|
55807
|
+
getLineColor: N.getLineColor
|
|
55795
55808
|
}
|
|
55796
55809
|
}), {
|
|
55797
55810
|
data: e,
|
|
@@ -55818,10 +55831,10 @@ class ls extends gE {
|
|
|
55818
55831
|
getDashArray: this.getSubLayerAccessor(k)
|
|
55819
55832
|
}, this.getSubLayerProps({
|
|
55820
55833
|
id: "stroke",
|
|
55821
|
-
updateTriggers:
|
|
55822
|
-
getWidth:
|
|
55823
|
-
getColor:
|
|
55824
|
-
getDashArray:
|
|
55834
|
+
updateTriggers: N && {
|
|
55835
|
+
getWidth: N.getLineWidth,
|
|
55836
|
+
getColor: N.getLineColor,
|
|
55837
|
+
getDashArray: N.getLineDashArray
|
|
55825
55838
|
}
|
|
55826
55839
|
}), {
|
|
55827
55840
|
data: U,
|
|
@@ -55987,8 +56000,8 @@ class xse {
|
|
|
55987
56000
|
if ($ === 1)
|
|
55988
56001
|
x[L] = 0, _[L] = vg;
|
|
55989
56002
|
else {
|
|
55990
|
-
const
|
|
55991
|
-
x[L] =
|
|
56003
|
+
const N = 0.5 - $;
|
|
56004
|
+
x[L] = N > 0 ? N * N : 0, _[L] = N < 0 ? N * N : 0;
|
|
55992
56005
|
}
|
|
55993
56006
|
}
|
|
55994
56007
|
p5(x, 0, 0, g, m, g, this.f, this.v, this.z), p5(_, w, w, d, h, g, this.f, this.v, this.z);
|
|
@@ -56651,7 +56664,7 @@ class Ym extends gE {
|
|
|
56651
56664
|
return Pse(d, a, o, u * r.props.fontSize, i);
|
|
56652
56665
|
}
|
|
56653
56666
|
renderLayers() {
|
|
56654
|
-
const { startIndices: e, numInstances: n, getText: r, fontAtlasManager: { scale: i, atlas: s, mapping: o }, styleVersion: a } = this.state, { data: u, _dataDiff: d, getPosition: h, getColor: g, getSize: m, getAngle: y, getPixelOffset: C, getBackgroundColor: b, getBorderColor: E, getBorderWidth: w, backgroundBorderRadius: _, backgroundPadding: x, background: D, billboard: S, fontSettings: k, outlineWidth: $, outlineColor: L, sizeScale:
|
|
56667
|
+
const { startIndices: e, numInstances: n, getText: r, fontAtlasManager: { scale: i, atlas: s, mapping: o }, styleVersion: a } = this.state, { data: u, _dataDiff: d, getPosition: h, getColor: g, getSize: m, getAngle: y, getPixelOffset: C, getBackgroundColor: b, getBorderColor: E, getBorderWidth: w, backgroundBorderRadius: _, backgroundPadding: x, background: D, billboard: S, fontSettings: k, outlineWidth: $, outlineColor: L, sizeScale: N, sizeUnits: P, sizeMinPixels: U, sizeMaxPixels: M, transitions: j, updateTriggers: W } = this.props, Y = this.getSubLayerClass("characters", yE), R = this.getSubLayerClass("background", CE);
|
|
56655
56668
|
return [
|
|
56656
56669
|
D && new R({
|
|
56657
56670
|
// background props
|
|
@@ -56666,7 +56679,7 @@ class Ym extends gE {
|
|
|
56666
56679
|
getAngle: y,
|
|
56667
56680
|
getPixelOffset: C,
|
|
56668
56681
|
billboard: S,
|
|
56669
|
-
sizeScale:
|
|
56682
|
+
sizeScale: N,
|
|
56670
56683
|
sizeUnits: P,
|
|
56671
56684
|
sizeMinPixels: U,
|
|
56672
56685
|
sizeMaxPixels: M,
|
|
@@ -56722,7 +56735,7 @@ class Ym extends gE {
|
|
|
56722
56735
|
getAngle: y,
|
|
56723
56736
|
getPixelOffset: C,
|
|
56724
56737
|
billboard: S,
|
|
56725
|
-
sizeScale:
|
|
56738
|
+
sizeScale: N * i,
|
|
56726
56739
|
sizeUnits: P,
|
|
56727
56740
|
sizeMinPixels: U * i,
|
|
56728
56741
|
sizeMaxPixels: M * i,
|
|
@@ -56782,15 +56795,15 @@ function Xse({
|
|
|
56782
56795
|
i !== void 0 && isFinite(i) && m(i);
|
|
56783
56796
|
}, [i]);
|
|
56784
56797
|
const y = g;
|
|
56785
|
-
function C($, L,
|
|
56786
|
-
const P = d.scrollbar.minThumbHeight, U = Math.max(L *
|
|
56798
|
+
function C($, L, N) {
|
|
56799
|
+
const P = d.scrollbar.minThumbHeight, U = Math.max(L * N, P), M = L - U;
|
|
56787
56800
|
let j = $ / 100 * M;
|
|
56788
56801
|
return j = Math.max(0, Math.min(M, j)), { thumbTop: j, thumbHeight: U };
|
|
56789
56802
|
}
|
|
56790
56803
|
const b = $n(null);
|
|
56791
56804
|
Gn(() => {
|
|
56792
56805
|
if (!u) return;
|
|
56793
|
-
let $ = null, L,
|
|
56806
|
+
let $ = null, L, N;
|
|
56794
56807
|
const P = () => {
|
|
56795
56808
|
const U = u.current;
|
|
56796
56809
|
if (U && U.target && isFinite(t) && isFinite(e) && e > t) {
|
|
@@ -56806,8 +56819,8 @@ function Xse({
|
|
|
56806
56819
|
}
|
|
56807
56820
|
}
|
|
56808
56821
|
const j = U.zoom;
|
|
56809
|
-
if (isFinite(j) && o > 0 && (
|
|
56810
|
-
|
|
56822
|
+
if (isFinite(j) && o > 0 && (N === void 0 || Math.abs(j - N) > 0.01)) {
|
|
56823
|
+
N = j;
|
|
56811
56824
|
const W = Math.pow(2, j), Y = o / W, R = Math.min(1, Y / (e - t));
|
|
56812
56825
|
m(R);
|
|
56813
56826
|
}
|
|
@@ -56827,18 +56840,18 @@ function Xse({
|
|
|
56827
56840
|
}, [n]), Gn(() => {
|
|
56828
56841
|
const $ = S.current;
|
|
56829
56842
|
if (!$) return;
|
|
56830
|
-
const L = (
|
|
56831
|
-
|
|
56832
|
-
const U = u?.current?.zoom ?? -3, M = Math.sqrt(Math.pow(2, Math.max(-4, Math.min(2, -U)))), Y =
|
|
56843
|
+
const L = (N) => {
|
|
56844
|
+
N.preventDefault(), N.stopPropagation(), N.stopImmediatePropagation();
|
|
56845
|
+
const U = u?.current?.zoom ?? -3, M = Math.sqrt(Math.pow(2, Math.max(-4, Math.min(2, -U)))), Y = N.deltaY / 100 * 0.15 * M;
|
|
56833
56846
|
let R = k.current + Y;
|
|
56834
56847
|
if (R = Math.max(0, Math.min(100, R)), r(R), isFinite(t) && isFinite(e) && e > t) {
|
|
56835
56848
|
const H = e - R / 100 * (e - t);
|
|
56836
56849
|
if (isFinite(H)) {
|
|
56837
|
-
const I = u?.current,
|
|
56850
|
+
const I = u?.current, O = I?.zoom ?? 0, q = I?.target?.[0] ?? 0, Z = I?.target?.[2] ?? 0;
|
|
56838
56851
|
s((ce) => ce && {
|
|
56839
56852
|
...ce,
|
|
56840
56853
|
target: [q, H, Z],
|
|
56841
|
-
zoom:
|
|
56854
|
+
zoom: O
|
|
56842
56855
|
// Explicitly preserve zoom
|
|
56843
56856
|
});
|
|
56844
56857
|
}
|
|
@@ -56883,7 +56896,7 @@ function Xse({
|
|
|
56883
56896
|
userSelect: "none"
|
|
56884
56897
|
},
|
|
56885
56898
|
onMouseDown: ($) => {
|
|
56886
|
-
const
|
|
56899
|
+
const N = b.current.getBoundingClientRect(), P = N.height, { thumbHeight: U } = C(n, P, y), M = $.clientY - N.top, j = P - U;
|
|
56887
56900
|
let W = j > 0 ? (M - U / 2) / j * 100 : 0;
|
|
56888
56901
|
if (W = Math.max(0, Math.min(100, W)), !isFinite(W)) {
|
|
56889
56902
|
console.warn("Aborting: newNorm is not finite", { newNorm: W, clickY: M, barHeight: P, thumbHeight: U });
|
|
@@ -56895,8 +56908,8 @@ function Xse({
|
|
|
56895
56908
|
console.warn("Aborting: newY is not finite", { newY: Y, minY: t, maxY: e, newNorm: W });
|
|
56896
56909
|
return;
|
|
56897
56910
|
}
|
|
56898
|
-
const R = u?.current, H = R?.zoom ?? -3, I = R?.target?.[0] ?? 0,
|
|
56899
|
-
s({ target: [I, Y,
|
|
56911
|
+
const R = u?.current, H = R?.zoom ?? -3, I = R?.target?.[0] ?? 0, O = R?.target?.[2] ?? 0;
|
|
56912
|
+
s({ target: [I, Y, O], zoom: H });
|
|
56900
56913
|
}
|
|
56901
56914
|
},
|
|
56902
56915
|
children: /* @__PURE__ */ B(
|
|
@@ -56909,8 +56922,8 @@ function Xse({
|
|
|
56909
56922
|
width: "100%",
|
|
56910
56923
|
...(() => {
|
|
56911
56924
|
if (!b.current) return { top: 0, height: 40 };
|
|
56912
|
-
const $ = b.current.offsetHeight, { thumbTop: L, thumbHeight:
|
|
56913
|
-
return { top: L, height:
|
|
56925
|
+
const $ = b.current.offsetHeight, { thumbTop: L, thumbHeight: N } = C(n, $, y);
|
|
56926
|
+
return { top: L, height: N };
|
|
56914
56927
|
})(),
|
|
56915
56928
|
background: _,
|
|
56916
56929
|
borderRadius: 220,
|
|
@@ -56925,8 +56938,8 @@ function Xse({
|
|
|
56925
56938
|
$.preventDefault(), $.stopPropagation();
|
|
56926
56939
|
const P = b.current.getBoundingClientRect().height, { thumbTop: U, thumbHeight: M } = C(n, P, y), j = $.clientY, W = U, Y = P - M;
|
|
56927
56940
|
function R(I) {
|
|
56928
|
-
const
|
|
56929
|
-
let q = W +
|
|
56941
|
+
const O = I.clientY - j;
|
|
56942
|
+
let q = W + O;
|
|
56930
56943
|
q = Math.max(0, Math.min(Y, q));
|
|
56931
56944
|
let Z = Y > 0 ? q / Y * 100 : 0;
|
|
56932
56945
|
if (Z = Math.max(0, Math.min(100, Z)), !isFinite(Z)) {
|
|
@@ -57006,8 +57019,8 @@ const Yse = ({
|
|
|
57006
57019
|
let D = !1;
|
|
57007
57020
|
a && d !== null && isFinite(d) && (D = !0);
|
|
57008
57021
|
const S = b?.target?.[0] || 0, k = b?.zoom || 0, $ = Math.pow(2, k), L = i / $;
|
|
57009
|
-
let
|
|
57010
|
-
const j = U / x, W = M / x, Y = (t - (d || 0)) / x, R = (e - (d || 0)) / x, H = Math.max(j, Y), I = Math.min(W, R),
|
|
57022
|
+
let N = S - L / 2, P = S + L / 2, U = N - (d || 0), M = P - (d || 0);
|
|
57023
|
+
const j = U / x, W = M / x, Y = (t - (d || 0)) / x, R = (e - (d || 0)) / x, H = Math.max(j, Y), I = Math.min(W, R), O = g.ruler.height, q = g.ruler.tickHeight, Z = g.ruler.labelOffset, ce = (Ee, Ce) => {
|
|
57011
57024
|
const Xe = (Ct) => {
|
|
57012
57025
|
const At = Math.floor(i / 60), Vt = Math.min(g.ruler.targetTicks, At), Ut = Math.max(3, Math.min(Vt, 8)), Qt = Ct / Ut, qe = Math.pow(10, Math.floor(Math.log10(Qt))), xe = Qt / qe;
|
|
57013
57026
|
let Rt;
|
|
@@ -57088,7 +57101,7 @@ const Yse = ({
|
|
|
57088
57101
|
bottom: 0,
|
|
57089
57102
|
left: 0,
|
|
57090
57103
|
width: "100%",
|
|
57091
|
-
height: `${
|
|
57104
|
+
height: `${O}px`,
|
|
57092
57105
|
backgroundColor: C.rulerBackground || "rgba(255, 255, 255, 0.95)",
|
|
57093
57106
|
borderTop: "1px solid #ccc",
|
|
57094
57107
|
pointerEvents: "none",
|
|
@@ -57231,7 +57244,7 @@ function Gse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
|
|
|
57231
57244
|
const qe = Math.pow(2, e.zoom || 0), xe = e.target[0], Rt = e.target[1], Lt = d / (2 * qe), ft = h / (2 * qe);
|
|
57232
57245
|
w = xe - Lt, _ = xe + Lt, x = Rt - ft, D = Rt + ft, S = d, k = h, console.log("🖼️ VIEWPORT MODE - Using screen bounds");
|
|
57233
57246
|
}
|
|
57234
|
-
const
|
|
57247
|
+
const N = (qe) => (1 - k0(qe, x, D)) * k, P = (qe) => k0(qe, w, _) * S;
|
|
57235
57248
|
let U = 1 / 0, M = -1 / 0, j = 1 / 0, W = -1 / 0;
|
|
57236
57249
|
const Y = (qe, xe) => xe >= x && xe <= D && qe >= w && qe <= _, R = (qe) => {
|
|
57237
57250
|
if (!qe || qe.length === 0) return !1;
|
|
@@ -57255,9 +57268,9 @@ function Gse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
|
|
|
57255
57268
|
for (const [Rt, Lt] of xe)
|
|
57256
57269
|
isFinite(Lt) && Lt >= x && Lt <= D && (U = Math.min(U, Lt), M = Math.max(M, Lt));
|
|
57257
57270
|
}
|
|
57258
|
-
const
|
|
57259
|
-
if (
|
|
57260
|
-
for (const qe of
|
|
57271
|
+
const O = t.find((qe) => qe.id && qe.id.startsWith("domains"));
|
|
57272
|
+
if (O?.props?.data)
|
|
57273
|
+
for (const qe of O.props.data) {
|
|
57261
57274
|
const xe = qe.polygon;
|
|
57262
57275
|
if (xe && xe.length > 0 && R(xe))
|
|
57263
57276
|
for (const [Rt, Lt] of xe)
|
|
@@ -57289,7 +57302,7 @@ function Gse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
|
|
|
57289
57302
|
} else {
|
|
57290
57303
|
let qe = 0, xe = k, Rt = 0, Lt = S;
|
|
57291
57304
|
if (isFinite(U) && isFinite(M)) {
|
|
57292
|
-
const ft =
|
|
57305
|
+
const ft = N(M), xt = N(U);
|
|
57293
57306
|
qe = Math.max(0, ft - 20), xe = Math.min(k, xt + 20), console.log("🖼️ SVG Y bounds from layers:", {
|
|
57294
57307
|
actualMinWorldY: U,
|
|
57295
57308
|
actualMaxWorldY: M,
|
|
@@ -57454,7 +57467,7 @@ function Gse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
|
|
|
57454
57467
|
At += `<rect width='${ce}' height='${fe}' fill='${Vt}'/>`;
|
|
57455
57468
|
let Ut;
|
|
57456
57469
|
if (C)
|
|
57457
|
-
isFinite(U) ? Ut =
|
|
57470
|
+
isFinite(U) ? Ut = N(U) + 10 : Ut = fe - g - 20;
|
|
57458
57471
|
else if (b && Ae !== 1) {
|
|
57459
57472
|
const qe = Z * Ae, xe = oe - g, Rt = xe / 2, Lt = Rt - qe / 2, ft = Lt + qe;
|
|
57460
57473
|
Ut = ft + 10, console.log("🖼️ Scale to format ruler calc:", {
|
|
@@ -57466,7 +57479,7 @@ function Gse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
|
|
|
57466
57479
|
rulerTopY: Ut
|
|
57467
57480
|
});
|
|
57468
57481
|
} else
|
|
57469
|
-
isFinite(U) ? Ut =
|
|
57482
|
+
isFinite(U) ? Ut = N(U) - ge + 10 : Ut = Z;
|
|
57470
57483
|
console.log("🖼️ Ruler positioning:", {
|
|
57471
57484
|
useGuidesCrop: C,
|
|
57472
57485
|
useFormatDimensions: b,
|
|
@@ -57771,7 +57784,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
57771
57784
|
labelBy: k,
|
|
57772
57785
|
treeMetadata: $,
|
|
57773
57786
|
treeLabelBy: L,
|
|
57774
|
-
treeColorBy:
|
|
57787
|
+
treeColorBy: N,
|
|
57775
57788
|
config: P = Kt,
|
|
57776
57789
|
ultrametric: U = !1,
|
|
57777
57790
|
showConnectingLines: M = !1,
|
|
@@ -57782,7 +57795,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
57782
57795
|
arrowheadHeight: R,
|
|
57783
57796
|
geneHeight: H,
|
|
57784
57797
|
tipWidthMode: I,
|
|
57785
|
-
tipWidthFactor:
|
|
57798
|
+
tipWidthFactor: O,
|
|
57786
57799
|
tipWidthFixed: q,
|
|
57787
57800
|
genePalette: Z,
|
|
57788
57801
|
domainPalette: ce,
|
|
@@ -58638,7 +58651,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
58638
58651
|
});
|
|
58639
58652
|
});
|
|
58640
58653
|
return () => cancelAnimationFrame(Q);
|
|
58641
|
-
}, [Ar?.[0]?.id,
|
|
58654
|
+
}, [Ar?.[0]?.id, N, cn?.name, cn?.type]);
|
|
58642
58655
|
const hs = it.useMemo(() => {
|
|
58643
58656
|
if (!ne) return /* @__PURE__ */ new Set();
|
|
58644
58657
|
if (!Ht) return new Set(ne.leaves || []);
|
|
@@ -58707,15 +58720,15 @@ const as = !1, TM = it.forwardRef(({
|
|
|
58707
58720
|
});
|
|
58708
58721
|
return ha.current = me, Rl.current = G, console.debug("stableGeneColorMap: generated for", X.length, "unique values"), me;
|
|
58709
58722
|
}, [ne, ge, S, St?.enabled, St?.name, St?.numColors, St?.reverse, St?.type]), ga = it.useRef(null), cc = it.useRef(null), ea = it.useMemo(() => {
|
|
58710
|
-
if (!Pn || !$ || !
|
|
58723
|
+
if (!Pn || !$ || !N || !cn?.enabled) return null;
|
|
58711
58724
|
const T = /* @__PURE__ */ new Set();
|
|
58712
58725
|
for (const G of Pn.leafNodes || []) {
|
|
58713
|
-
const ae = ($[G.name] || {})[
|
|
58726
|
+
const ae = ($[G.name] || {})[N];
|
|
58714
58727
|
ae != null && ae !== "" && T.add(String(ae));
|
|
58715
58728
|
}
|
|
58716
58729
|
const Q = Array.from(T).sort();
|
|
58717
58730
|
if (Q.length === 0) return null;
|
|
58718
|
-
const re = `${
|
|
58731
|
+
const re = `${N}-${cn.name}-${cn.numColors}-${cn.reverse}-${Q.length}`;
|
|
58719
58732
|
if (ga.current && cc.current === re)
|
|
58720
58733
|
return ga.current;
|
|
58721
58734
|
let te = [];
|
|
@@ -58743,7 +58756,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
58743
58756
|
isNaN(ae) || X.set(ae, te[K % te.length]);
|
|
58744
58757
|
});
|
|
58745
58758
|
return ga.current = X, cc.current = re, console.debug("stableTreeColorMap: generated for", Q.length, "unique values"), X;
|
|
58746
|
-
}, [Pn, $,
|
|
58759
|
+
}, [Pn, $, N, cn?.enabled, cn?.name, cn?.numColors, cn?.reverse, cn?.type]), gs = St?.stableColors !== !1, uc = cn?.stableColors !== !1, Tn = it.useMemo(() => {
|
|
58747
58760
|
if (!ne || !St?.enabled || gs && !Uo) return null;
|
|
58748
58761
|
const T = ge || S || "cluster";
|
|
58749
58762
|
let Q = Object.values(ne.genesById);
|
|
@@ -59079,8 +59092,8 @@ const as = !1, TM = it.forwardRef(({
|
|
|
59079
59092
|
}), Q.genes = Array.from(te.values());
|
|
59080
59093
|
}
|
|
59081
59094
|
const re = /* @__PURE__ */ new Map();
|
|
59082
|
-
if (Pn && Pn.leafNodes && Array.isArray(Pn.leafNodes) && Pn.leafNodes.length > 0 && $ &&
|
|
59083
|
-
const te =
|
|
59095
|
+
if (Pn && Pn.leafNodes && Array.isArray(Pn.leafNodes) && Pn.leafNodes.length > 0 && $ && N) {
|
|
59096
|
+
const te = N, G = [...new Set(Pn.leafNodes.map((ae) => {
|
|
59084
59097
|
const me = ($[ae.name] || {})[te];
|
|
59085
59098
|
return me != null && me !== "" ? me : null;
|
|
59086
59099
|
}).filter((ae) => ae !== null))].sort();
|
|
@@ -59223,7 +59236,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
59223
59236
|
St,
|
|
59224
59237
|
Pn,
|
|
59225
59238
|
$,
|
|
59226
|
-
|
|
59239
|
+
N,
|
|
59227
59240
|
cn,
|
|
59228
59241
|
fe,
|
|
59229
59242
|
be,
|
|
@@ -59373,10 +59386,10 @@ const as = !1, TM = it.forwardRef(({
|
|
|
59373
59386
|
ae.has(he.label) || (ae.add(he.label), K.push(he));
|
|
59374
59387
|
K.length > 0 && T.push({ id: "genes", title: "Gene families", items: K.slice(0, 20) });
|
|
59375
59388
|
}
|
|
59376
|
-
if (cn && cn.enabled && Pn && $ &&
|
|
59389
|
+
if (cn && cn.enabled && Pn && $ && N) {
|
|
59377
59390
|
const X = /* @__PURE__ */ new Set();
|
|
59378
59391
|
Pn.leafNodes.forEach((K) => {
|
|
59379
|
-
const he = ($[K.name] || {})[
|
|
59392
|
+
const he = ($[K.name] || {})[N];
|
|
59380
59393
|
he != null && he !== "" && X.add(String(he));
|
|
59381
59394
|
});
|
|
59382
59395
|
const G = Array.from(X).sort();
|
|
@@ -59452,7 +59465,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
59452
59465
|
cn,
|
|
59453
59466
|
Pn,
|
|
59454
59467
|
$,
|
|
59455
|
-
|
|
59468
|
+
N,
|
|
59456
59469
|
JSON.stringify(Z),
|
|
59457
59470
|
// Add gene palette to dependencies
|
|
59458
59471
|
JSON.stringify(fe),
|
|
@@ -59489,7 +59502,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
59489
59502
|
Q.set(te.hood_id, Math.max(X, Math.max(te.start, te.end)));
|
|
59490
59503
|
}
|
|
59491
59504
|
}), Q;
|
|
59492
|
-
}, [ne, Pn, W, P.tree?.phyloLabelPosition, qt, rr, oe,
|
|
59505
|
+
}, [ne, Pn, W, P.tree?.phyloLabelPosition, qt, rr, oe, N, $, L, $e]), Wr = it.useMemo(() => {
|
|
59493
59506
|
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 || {});
|
|
59494
59507
|
return `${T}|${Q}|${re}|${te}|${X}|${G}|${qt}`;
|
|
59495
59508
|
}, [Z, fe, be, Ee, Ce, qt, P]), is = it.useMemo(() => {
|
|
@@ -59672,7 +59685,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
59672
59685
|
arrowheadHeight: re,
|
|
59673
59686
|
edgeWidth: G,
|
|
59674
59687
|
tipWidthMode: I ?? T.gene?.tipWidthMode ?? Kt.gene.tipWidthMode,
|
|
59675
|
-
tipWidthFactor:
|
|
59688
|
+
tipWidthFactor: O ?? T.gene?.tipWidthFactor ?? Kt.gene.tipWidthFactor,
|
|
59676
59689
|
tipWidthFixed: q ?? T.gene?.tipWidthFixed ?? Kt.gene.tipWidthFixed
|
|
59677
59690
|
},
|
|
59678
59691
|
genome: {
|
|
@@ -59693,7 +59706,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
59693
59706
|
lineWidth: G
|
|
59694
59707
|
}
|
|
59695
59708
|
};
|
|
59696
|
-
}, [Xe, P, rr, H, R, I,
|
|
59709
|
+
}, [Xe, P, rr, H, R, I, O, q, _e, $e, vt, ve, rt, Ke]);
|
|
59697
59710
|
Gn(() => {
|
|
59698
59711
|
if (!sr || sr.length === 0) return;
|
|
59699
59712
|
const T = mt.treeEdges || [100, 180, 255, 255], Q = sr[0]?.color;
|
|
@@ -60099,7 +60112,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
60099
60112
|
typeof De != "string" && (De = String(De));
|
|
60100
60113
|
let gt;
|
|
60101
60114
|
if (cn && cn.enabled) {
|
|
60102
|
-
const nt = Fe[
|
|
60115
|
+
const nt = Fe[N];
|
|
60103
60116
|
nt != null ? gt = Jo(nt) : gt = mt.phyloLabelFill || [0, 0, 0, 255];
|
|
60104
60117
|
} else
|
|
60105
60118
|
gt = mt.phyloLabelFill || [0, 0, 0, 255];
|
|
@@ -60130,7 +60143,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
60130
60143
|
return null;
|
|
60131
60144
|
};
|
|
60132
60145
|
let ie;
|
|
60133
|
-
cn && cn.enabled && $ ? ie = fs(V,
|
|
60146
|
+
cn && cn.enabled && $ ? ie = fs(V, N, $, cn, uc ? ea : null).map((Fe) => {
|
|
60134
60147
|
if ($r) {
|
|
60135
60148
|
const nt = $r.get(Fe.leafNode.name);
|
|
60136
60149
|
if (nt) return { ...Fe, color: nt };
|
|
@@ -60140,7 +60153,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
60140
60153
|
const nt = ee(De.color);
|
|
60141
60154
|
if (nt) return { ...Fe, color: nt };
|
|
60142
60155
|
}
|
|
60143
|
-
const gt = $?.[Fe.leafNode.name]?.[
|
|
60156
|
+
const gt = $?.[Fe.leafNode.name]?.[N];
|
|
60144
60157
|
return gt != null && gt !== "" ? Fe : { ...Fe, color: mt.phyloLabelFill };
|
|
60145
60158
|
}) : ie = V.map((ue) => {
|
|
60146
60159
|
if ($r) {
|
|
@@ -60198,11 +60211,11 @@ const as = !1, TM = it.forwardRef(({
|
|
|
60198
60211
|
if (Cn)
|
|
60199
60212
|
Fe = Cn;
|
|
60200
60213
|
else {
|
|
60201
|
-
const xr = (ie.metadata || {})[
|
|
60214
|
+
const xr = (ie.metadata || {})[N];
|
|
60202
60215
|
if (xr && cn && cn.enabled)
|
|
60203
60216
|
try {
|
|
60204
60217
|
const hr = [...new Set(Pn.leafNodes.map((Ir) => {
|
|
60205
|
-
const Ni = ($ && $[Ir.name] || {})[
|
|
60218
|
+
const Ni = ($ && $[Ir.name] || {})[N];
|
|
60206
60219
|
return Ni != null && Ni !== "" ? Ni : null;
|
|
60207
60220
|
}).filter((Ir) => Ir !== null))].sort(), er = hr.indexOf(xr);
|
|
60208
60221
|
if (er >= 0) {
|
|
@@ -60931,7 +60944,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
60931
60944
|
// changes in the palette controls or metadata force TextLayer color updates.
|
|
60932
60945
|
getColor: [
|
|
60933
60946
|
jt,
|
|
60934
|
-
|
|
60947
|
+
N,
|
|
60935
60948
|
cn ? `${cn.name}|${cn.numColors || 0}|${cn.reverse || !1}|${cn.enabled || !1}` : null,
|
|
60936
60949
|
// include explicit color signature so changes to assigned colors always trigger DeckGL updates
|
|
60937
60950
|
mr,
|
|
@@ -60976,7 +60989,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
60976
60989
|
mt.treeEdges,
|
|
60977
60990
|
Ht,
|
|
60978
60991
|
// Include phylo color information so node colors update with phylo label colors
|
|
60979
|
-
|
|
60992
|
+
N,
|
|
60980
60993
|
cn ? `${cn.name}|${cn.numColors || 0}|${cn.reverse || !1}|${cn.enabled || !1}` : null,
|
|
60981
60994
|
mr,
|
|
60982
60995
|
$ ? Object.keys($).length : 0
|
|
@@ -61103,7 +61116,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
61103
61116
|
Y,
|
|
61104
61117
|
k,
|
|
61105
61118
|
L,
|
|
61106
|
-
|
|
61119
|
+
N,
|
|
61107
61120
|
oe,
|
|
61108
61121
|
$,
|
|
61109
61122
|
lt,
|
|
@@ -61973,7 +61986,7 @@ const as = !1, TM = it.forwardRef(({
|
|
|
61973
61986
|
$e,
|
|
61974
61987
|
qt,
|
|
61975
61988
|
// Tree/palette dependencies
|
|
61976
|
-
|
|
61989
|
+
N,
|
|
61977
61990
|
cn?.name,
|
|
61978
61991
|
cn?.enabled,
|
|
61979
61992
|
cn?.numColors,
|
|
@@ -63686,13 +63699,13 @@ function Woe() {
|
|
|
63686
63699
|
key: "_handleSwipeMove",
|
|
63687
63700
|
value: function(S) {
|
|
63688
63701
|
if (this.moveStart) {
|
|
63689
|
-
var k = E(S), $ = k.x, L = k.y,
|
|
63702
|
+
var k = E(S), $ = k.x, L = k.y, N = $ - this.moveStart.x, P = L - this.moveStart.y;
|
|
63690
63703
|
this.moving = !0;
|
|
63691
63704
|
var U = this.props.onSwipeMove({
|
|
63692
|
-
x:
|
|
63705
|
+
x: N,
|
|
63693
63706
|
y: P
|
|
63694
63707
|
}, S);
|
|
63695
|
-
U && S.cancelable && S.preventDefault(), this.movePosition = { deltaX:
|
|
63708
|
+
U && S.cancelable && S.preventDefault(), this.movePosition = { deltaX: N, deltaY: P };
|
|
63696
63709
|
}
|
|
63697
63710
|
}
|
|
63698
63711
|
}, {
|
|
@@ -63714,7 +63727,7 @@ function Woe() {
|
|
|
63714
63727
|
S.tagName;
|
|
63715
63728
|
var k = S.className, $ = S.style, L = S.children;
|
|
63716
63729
|
S.allowMouseEvents, S.onSwipeUp, S.onSwipeDown, S.onSwipeLeft, S.onSwipeRight, S.onSwipeStart, S.onSwipeMove, S.onSwipeEnd, S.innerRef, S.tolerance;
|
|
63717
|
-
var
|
|
63730
|
+
var N = u(S, ["tagName", "className", "style", "children", "allowMouseEvents", "onSwipeUp", "onSwipeDown", "onSwipeLeft", "onSwipeRight", "onSwipeStart", "onSwipeMove", "onSwipeEnd", "innerRef", "tolerance"]);
|
|
63718
63731
|
return i.default.createElement(
|
|
63719
63732
|
this.props.tagName,
|
|
63720
63733
|
a({
|
|
@@ -63724,7 +63737,7 @@ function Woe() {
|
|
|
63724
63737
|
onTouchEnd: this._handleSwipeEnd,
|
|
63725
63738
|
className: k,
|
|
63726
63739
|
style: $
|
|
63727
|
-
},
|
|
63740
|
+
}, N),
|
|
63728
63741
|
L
|
|
63729
63742
|
);
|
|
63730
63743
|
}
|
|
@@ -63948,16 +63961,16 @@ function $M() {
|
|
|
63948
63961
|
return L;
|
|
63949
63962
|
if (L === null || d(L) !== "object" && typeof L != "function")
|
|
63950
63963
|
return { default: L };
|
|
63951
|
-
var
|
|
63952
|
-
if (
|
|
63953
|
-
return
|
|
63964
|
+
var N = a();
|
|
63965
|
+
if (N && N.has(L))
|
|
63966
|
+
return N.get(L);
|
|
63954
63967
|
var P = {}, U = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
63955
63968
|
for (var M in L)
|
|
63956
63969
|
if (Object.prototype.hasOwnProperty.call(L, M)) {
|
|
63957
63970
|
var j = U ? Object.getOwnPropertyDescriptor(L, M) : null;
|
|
63958
63971
|
j && (j.get || j.set) ? Object.defineProperty(P, M, j) : P[M] = L[M];
|
|
63959
63972
|
}
|
|
63960
|
-
return P.default = L,
|
|
63973
|
+
return P.default = L, N && N.set(L, P), P;
|
|
63961
63974
|
}
|
|
63962
63975
|
function d(L) {
|
|
63963
63976
|
"@babel/helpers - typeof";
|
|
@@ -63969,42 +63982,42 @@ function $M() {
|
|
|
63969
63982
|
}
|
|
63970
63983
|
function h() {
|
|
63971
63984
|
return h = Object.assign || function(L) {
|
|
63972
|
-
for (var
|
|
63973
|
-
var P = arguments[
|
|
63985
|
+
for (var N = 1; N < arguments.length; N++) {
|
|
63986
|
+
var P = arguments[N];
|
|
63974
63987
|
for (var U in P)
|
|
63975
63988
|
Object.prototype.hasOwnProperty.call(P, U) && (L[U] = P[U]);
|
|
63976
63989
|
}
|
|
63977
63990
|
return L;
|
|
63978
63991
|
}, h.apply(this, arguments);
|
|
63979
63992
|
}
|
|
63980
|
-
function g(L,
|
|
63981
|
-
if (!(L instanceof
|
|
63993
|
+
function g(L, N) {
|
|
63994
|
+
if (!(L instanceof N))
|
|
63982
63995
|
throw new TypeError("Cannot call a class as a function");
|
|
63983
63996
|
}
|
|
63984
|
-
function m(L,
|
|
63985
|
-
for (var P = 0; P <
|
|
63986
|
-
var U =
|
|
63997
|
+
function m(L, N) {
|
|
63998
|
+
for (var P = 0; P < N.length; P++) {
|
|
63999
|
+
var U = N[P];
|
|
63987
64000
|
U.enumerable = U.enumerable || !1, U.configurable = !0, "value" in U && (U.writable = !0), Object.defineProperty(L, U.key, U);
|
|
63988
64001
|
}
|
|
63989
64002
|
}
|
|
63990
|
-
function y(L,
|
|
63991
|
-
return
|
|
64003
|
+
function y(L, N, P) {
|
|
64004
|
+
return N && m(L.prototype, N), L;
|
|
63992
64005
|
}
|
|
63993
|
-
function C(L,
|
|
63994
|
-
if (typeof
|
|
64006
|
+
function C(L, N) {
|
|
64007
|
+
if (typeof N != "function" && N !== null)
|
|
63995
64008
|
throw new TypeError("Super expression must either be null or a function");
|
|
63996
|
-
L.prototype = Object.create(
|
|
64009
|
+
L.prototype = Object.create(N && N.prototype, { constructor: { value: L, writable: !0, configurable: !0 } }), N && b(L, N);
|
|
63997
64010
|
}
|
|
63998
|
-
function b(L,
|
|
64011
|
+
function b(L, N) {
|
|
63999
64012
|
return b = Object.setPrototypeOf || function(U, M) {
|
|
64000
64013
|
return U.__proto__ = M, U;
|
|
64001
|
-
}, b(L,
|
|
64014
|
+
}, b(L, N);
|
|
64002
64015
|
}
|
|
64003
64016
|
function E(L) {
|
|
64004
|
-
var
|
|
64017
|
+
var N = x();
|
|
64005
64018
|
return function() {
|
|
64006
64019
|
var U = D(L), M;
|
|
64007
|
-
if (
|
|
64020
|
+
if (N) {
|
|
64008
64021
|
var j = D(this).constructor;
|
|
64009
64022
|
M = Reflect.construct(U, arguments, j);
|
|
64010
64023
|
} else
|
|
@@ -64012,8 +64025,8 @@ function $M() {
|
|
|
64012
64025
|
return w(this, M);
|
|
64013
64026
|
};
|
|
64014
64027
|
}
|
|
64015
|
-
function w(L,
|
|
64016
|
-
return
|
|
64028
|
+
function w(L, N) {
|
|
64029
|
+
return N && (d(N) === "object" || typeof N == "function") ? N : _(L);
|
|
64017
64030
|
}
|
|
64018
64031
|
function _(L) {
|
|
64019
64032
|
if (L === void 0)
|
|
@@ -64035,17 +64048,17 @@ function $M() {
|
|
|
64035
64048
|
return P.__proto__ || Object.getPrototypeOf(P);
|
|
64036
64049
|
}, D(L);
|
|
64037
64050
|
}
|
|
64038
|
-
function S(L,
|
|
64039
|
-
return
|
|
64051
|
+
function S(L, N, P) {
|
|
64052
|
+
return N in L ? Object.defineProperty(L, N, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : L[N] = P, L;
|
|
64040
64053
|
}
|
|
64041
|
-
var k = function(
|
|
64042
|
-
return
|
|
64054
|
+
var k = function(N) {
|
|
64055
|
+
return N.hasOwnProperty("key");
|
|
64043
64056
|
}, $ = /* @__PURE__ */ (function(L) {
|
|
64044
64057
|
C(P, L);
|
|
64045
|
-
var
|
|
64058
|
+
var N = E(P);
|
|
64046
64059
|
function P(U) {
|
|
64047
64060
|
var M;
|
|
64048
|
-
return g(this, P), M =
|
|
64061
|
+
return g(this, P), M = N.call(this, U), S(_(M), "itemsWrapperRef", void 0), S(_(M), "itemsListRef", void 0), S(_(M), "thumbsRef", void 0), S(_(M), "setItemsWrapperRef", function(j) {
|
|
64049
64062
|
M.itemsWrapperRef = j;
|
|
64050
64063
|
}), S(_(M), "setItemsListRef", function(j) {
|
|
64051
64064
|
M.itemsListRef = j;
|
|
@@ -64054,7 +64067,7 @@ function $M() {
|
|
|
64054
64067
|
}), S(_(M), "updateSizes", function() {
|
|
64055
64068
|
if (!(!M.props.children || !M.itemsWrapperRef || !M.thumbsRef)) {
|
|
64056
64069
|
var j = t.Children.count(M.props.children), W = M.itemsWrapperRef.clientWidth, Y = M.props.thumbWidth ? M.props.thumbWidth : (0, n.outerWidth)(M.thumbsRef[0]), R = Math.floor(W / Y), H = R < j, I = H ? j - R : 0;
|
|
64057
|
-
M.setState(function(
|
|
64070
|
+
M.setState(function(O, q) {
|
|
64058
64071
|
return {
|
|
64059
64072
|
itemSize: Y,
|
|
64060
64073
|
visibleItems: R,
|
|
@@ -64081,8 +64094,8 @@ function $M() {
|
|
|
64081
64094
|
var W = j.x;
|
|
64082
64095
|
if (!M.state.itemSize || !M.itemsWrapperRef || !M.state.visibleItems)
|
|
64083
64096
|
return !1;
|
|
64084
|
-
var Y = 0, R = t.Children.count(M.props.children), H = -(M.state.firstItem * 100) / M.state.visibleItems, I = Math.max(R - M.state.visibleItems, 0),
|
|
64085
|
-
H === Y && W > 0 && (W = 0), H ===
|
|
64097
|
+
var Y = 0, R = t.Children.count(M.props.children), H = -(M.state.firstItem * 100) / M.state.visibleItems, I = Math.max(R - M.state.visibleItems, 0), O = -I * 100 / M.state.visibleItems;
|
|
64098
|
+
H === Y && W > 0 && (W = 0), H === O && W < 0 && (W = 0);
|
|
64086
64099
|
var q = M.itemsWrapperRef.clientWidth, Z = H + 100 / (q / W);
|
|
64087
64100
|
return M.itemsListRef && ["WebkitTransform", "MozTransform", "MsTransform", "OTransform", "transform", "msTransform"].forEach(function(ce) {
|
|
64088
64101
|
M.itemsListRef.style[ce] = (0, r.default)(Z, "%", M.props.axis);
|
|
@@ -64168,7 +64181,7 @@ function $M() {
|
|
|
64168
64181
|
var M = this;
|
|
64169
64182
|
if (!this.props.children)
|
|
64170
64183
|
return null;
|
|
64171
|
-
var j = t.Children.count(this.props.children) > 1, W = this.state.showArrows && this.state.firstItem > 0, Y = this.state.showArrows && this.state.firstItem < this.state.lastPosition, R = {}, H = -this.state.firstItem * (this.state.itemSize || 0), I = (0, r.default)(H, "px", this.props.axis),
|
|
64184
|
+
var j = t.Children.count(this.props.children) > 1, W = this.state.showArrows && this.state.firstItem > 0, Y = this.state.showArrows && this.state.firstItem < this.state.lastPosition, R = {}, H = -this.state.firstItem * (this.state.itemSize || 0), I = (0, r.default)(H, "px", this.props.axis), O = this.props.transitionTime + "ms";
|
|
64172
64185
|
return R = {
|
|
64173
64186
|
WebkitTransform: I,
|
|
64174
64187
|
MozTransform: I,
|
|
@@ -64176,12 +64189,12 @@ function $M() {
|
|
|
64176
64189
|
OTransform: I,
|
|
64177
64190
|
transform: I,
|
|
64178
64191
|
msTransform: I,
|
|
64179
|
-
WebkitTransitionDuration:
|
|
64180
|
-
MozTransitionDuration:
|
|
64181
|
-
MsTransitionDuration:
|
|
64182
|
-
OTransitionDuration:
|
|
64183
|
-
transitionDuration:
|
|
64184
|
-
msTransitionDuration:
|
|
64192
|
+
WebkitTransitionDuration: O,
|
|
64193
|
+
MozTransitionDuration: O,
|
|
64194
|
+
MsTransitionDuration: O,
|
|
64195
|
+
OTransitionDuration: O,
|
|
64196
|
+
transitionDuration: O,
|
|
64197
|
+
msTransitionDuration: O
|
|
64185
64198
|
}, /* @__PURE__ */ t.default.createElement("div", {
|
|
64186
64199
|
className: e.default.CAROUSEL(!1)
|
|
64187
64200
|
}, /* @__PURE__ */ t.default.createElement("div", {
|
|
@@ -64341,10 +64354,10 @@ function Yoe() {
|
|
|
64341
64354
|
var u = function(m, y, C, b) {
|
|
64342
64355
|
var E = {}, w = y.axis === "horizontal", _ = t.Children.count(y.children), x = 0, D = (0, n.getPosition)(C.selectedItem, y), S = y.infiniteLoop ? (0, n.getPosition)(_ - 1, y) - 100 : (0, n.getPosition)(_ - 1, y), k = w ? m.x : m.y, $ = k;
|
|
64343
64356
|
D === x && k > 0 && ($ = 0), D === S && k < 0 && ($ = 0);
|
|
64344
|
-
var L = D + 100 / (C.itemSize / $),
|
|
64345
|
-
return y.infiniteLoop &&
|
|
64357
|
+
var L = D + 100 / (C.itemSize / $), N = Math.abs(k) > y.swipeScrollTolerance;
|
|
64358
|
+
return y.infiniteLoop && N && (C.selectedItem === 0 && L > -100 ? L -= _ * 100 : C.selectedItem === _ - 1 && L < -_ * 100 && (L += _ * 100)), (!y.preventMovementUntilSwipeScrollTolerance || N || C.swipeMovementStarted) && (C.swipeMovementStarted || b({
|
|
64346
64359
|
swipeMovementStarted: !0
|
|
64347
|
-
}), E.itemListStyle = (0, n.setPosition)(L, y.axis)),
|
|
64360
|
+
}), E.itemListStyle = (0, n.setPosition)(L, y.axis)), N && !C.cancelClick && b({
|
|
64348
64361
|
cancelClick: !0
|
|
64349
64362
|
}), E;
|
|
64350
64363
|
};
|
|
@@ -64455,7 +64468,7 @@ function Goe() {
|
|
|
64455
64468
|
for (var M = 1; M < arguments.length; M++) {
|
|
64456
64469
|
var j = arguments[M] != null ? arguments[M] : {};
|
|
64457
64470
|
M % 2 ? y(Object(j), !0).forEach(function(W) {
|
|
64458
|
-
|
|
64471
|
+
N(U, W, j[W]);
|
|
64459
64472
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(U, Object.getOwnPropertyDescriptors(j)) : y(Object(j)).forEach(function(W) {
|
|
64460
64473
|
Object.defineProperty(U, W, Object.getOwnPropertyDescriptor(j, W));
|
|
64461
64474
|
});
|
|
@@ -64520,7 +64533,7 @@ function Goe() {
|
|
|
64520
64533
|
return j.__proto__ || Object.getPrototypeOf(j);
|
|
64521
64534
|
}, L(U);
|
|
64522
64535
|
}
|
|
64523
|
-
function
|
|
64536
|
+
function N(U, M, j) {
|
|
64524
64537
|
return M in U ? Object.defineProperty(U, M, { value: j, enumerable: !0, configurable: !0, writable: !0 }) : U[M] = j, U;
|
|
64525
64538
|
}
|
|
64526
64539
|
var P = /* @__PURE__ */ (function(U) {
|
|
@@ -64528,57 +64541,57 @@ function Goe() {
|
|
|
64528
64541
|
var M = D(j);
|
|
64529
64542
|
function j(W) {
|
|
64530
64543
|
var Y;
|
|
64531
|
-
b(this, j), Y = M.call(this, W),
|
|
64544
|
+
b(this, j), Y = M.call(this, W), N(k(Y), "thumbsRef", void 0), N(k(Y), "carouselWrapperRef", void 0), N(k(Y), "listRef", void 0), N(k(Y), "itemsRef", void 0), N(k(Y), "timer", void 0), N(k(Y), "animationHandler", void 0), N(k(Y), "setThumbsRef", function(H) {
|
|
64532
64545
|
Y.thumbsRef = H;
|
|
64533
|
-
}),
|
|
64546
|
+
}), N(k(Y), "setCarouselWrapperRef", function(H) {
|
|
64534
64547
|
Y.carouselWrapperRef = H;
|
|
64535
|
-
}),
|
|
64548
|
+
}), N(k(Y), "setListRef", function(H) {
|
|
64536
64549
|
Y.listRef = H;
|
|
64537
|
-
}),
|
|
64550
|
+
}), N(k(Y), "setItemsRef", function(H, I) {
|
|
64538
64551
|
Y.itemsRef || (Y.itemsRef = []), Y.itemsRef[I] = H;
|
|
64539
|
-
}),
|
|
64552
|
+
}), N(k(Y), "autoPlay", function() {
|
|
64540
64553
|
t.Children.count(Y.props.children) <= 1 || (Y.clearAutoPlay(), Y.props.autoPlay && (Y.timer = setTimeout(function() {
|
|
64541
64554
|
Y.increment();
|
|
64542
64555
|
}, Y.props.interval)));
|
|
64543
|
-
}),
|
|
64556
|
+
}), N(k(Y), "clearAutoPlay", function() {
|
|
64544
64557
|
Y.timer && clearTimeout(Y.timer);
|
|
64545
|
-
}),
|
|
64558
|
+
}), N(k(Y), "resetAutoPlay", function() {
|
|
64546
64559
|
Y.clearAutoPlay(), Y.autoPlay();
|
|
64547
|
-
}),
|
|
64560
|
+
}), N(k(Y), "stopOnHover", function() {
|
|
64548
64561
|
Y.setState({
|
|
64549
64562
|
isMouseEntered: !0
|
|
64550
64563
|
}, Y.clearAutoPlay);
|
|
64551
|
-
}),
|
|
64564
|
+
}), N(k(Y), "startOnLeave", function() {
|
|
64552
64565
|
Y.setState({
|
|
64553
64566
|
isMouseEntered: !1
|
|
64554
64567
|
}, Y.autoPlay);
|
|
64555
|
-
}),
|
|
64568
|
+
}), N(k(Y), "isFocusWithinTheCarousel", function() {
|
|
64556
64569
|
return Y.carouselWrapperRef ? !!((0, i.default)().activeElement === Y.carouselWrapperRef || Y.carouselWrapperRef.contains((0, i.default)().activeElement)) : !1;
|
|
64557
|
-
}),
|
|
64570
|
+
}), N(k(Y), "navigateWithKeyboard", function(H) {
|
|
64558
64571
|
if (Y.isFocusWithinTheCarousel()) {
|
|
64559
|
-
var I = Y.props.axis,
|
|
64572
|
+
var I = Y.props.axis, O = I === "horizontal", q = {
|
|
64560
64573
|
ArrowUp: 38,
|
|
64561
64574
|
ArrowRight: 39,
|
|
64562
64575
|
ArrowDown: 40,
|
|
64563
64576
|
ArrowLeft: 37
|
|
64564
|
-
}, Z =
|
|
64577
|
+
}, Z = O ? q.ArrowRight : q.ArrowDown, ce = O ? q.ArrowLeft : q.ArrowUp;
|
|
64565
64578
|
Z === H.keyCode ? Y.increment() : ce === H.keyCode && Y.decrement();
|
|
64566
64579
|
}
|
|
64567
|
-
}),
|
|
64580
|
+
}), N(k(Y), "updateSizes", function() {
|
|
64568
64581
|
if (!(!Y.state.initialized || !Y.itemsRef || Y.itemsRef.length === 0)) {
|
|
64569
64582
|
var H = Y.props.axis === "horizontal", I = Y.itemsRef[0];
|
|
64570
64583
|
if (I) {
|
|
64571
|
-
var
|
|
64584
|
+
var O = H ? I.clientWidth : I.clientHeight;
|
|
64572
64585
|
Y.setState({
|
|
64573
|
-
itemSize:
|
|
64586
|
+
itemSize: O
|
|
64574
64587
|
}), Y.thumbsRef && Y.thumbsRef.updateSizes();
|
|
64575
64588
|
}
|
|
64576
64589
|
}
|
|
64577
|
-
}),
|
|
64590
|
+
}), N(k(Y), "setMountState", function() {
|
|
64578
64591
|
Y.setState({
|
|
64579
64592
|
hasMount: !0
|
|
64580
64593
|
}), Y.updateSizes();
|
|
64581
|
-
}),
|
|
64594
|
+
}), N(k(Y), "handleClickItem", function(H, I) {
|
|
64582
64595
|
if (t.Children.count(Y.props.children) !== 0) {
|
|
64583
64596
|
if (Y.state.cancelClick) {
|
|
64584
64597
|
Y.setState({
|
|
@@ -64590,31 +64603,31 @@ function Goe() {
|
|
|
64590
64603
|
selectedItem: H
|
|
64591
64604
|
});
|
|
64592
64605
|
}
|
|
64593
|
-
}),
|
|
64606
|
+
}), N(k(Y), "handleOnChange", function(H, I) {
|
|
64594
64607
|
t.Children.count(Y.props.children) <= 1 || Y.props.onChange(H, I);
|
|
64595
|
-
}),
|
|
64608
|
+
}), N(k(Y), "handleClickThumb", function(H, I) {
|
|
64596
64609
|
Y.props.onClickThumb(H, I), Y.moveTo(H);
|
|
64597
|
-
}),
|
|
64610
|
+
}), N(k(Y), "onSwipeStart", function(H) {
|
|
64598
64611
|
Y.setState({
|
|
64599
64612
|
swiping: !0
|
|
64600
64613
|
}), Y.props.onSwipeStart(H);
|
|
64601
|
-
}),
|
|
64614
|
+
}), N(k(Y), "onSwipeEnd", function(H) {
|
|
64602
64615
|
Y.setState({
|
|
64603
64616
|
swiping: !1,
|
|
64604
64617
|
cancelClick: !1,
|
|
64605
64618
|
swipeMovementStarted: !1
|
|
64606
64619
|
}), Y.props.onSwipeEnd(H), Y.clearAutoPlay(), Y.state.autoPlay && Y.autoPlay();
|
|
64607
|
-
}),
|
|
64620
|
+
}), N(k(Y), "onSwipeMove", function(H, I) {
|
|
64608
64621
|
Y.props.onSwipeMove(I);
|
|
64609
|
-
var
|
|
64610
|
-
return Y.setState(C({},
|
|
64611
|
-
}),
|
|
64622
|
+
var O = Y.props.swipeAnimationHandler(H, Y.props, Y.state, Y.setState.bind(k(Y)));
|
|
64623
|
+
return Y.setState(C({}, O)), !!Object.keys(O).length;
|
|
64624
|
+
}), N(k(Y), "decrement", function() {
|
|
64612
64625
|
var H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
|
|
64613
64626
|
Y.moveTo(Y.state.selectedItem - (typeof H == "number" ? H : 1));
|
|
64614
|
-
}),
|
|
64627
|
+
}), N(k(Y), "increment", function() {
|
|
64615
64628
|
var H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
|
|
64616
64629
|
Y.moveTo(Y.state.selectedItem + (typeof H == "number" ? H : 1));
|
|
64617
|
-
}),
|
|
64630
|
+
}), N(k(Y), "moveTo", function(H) {
|
|
64618
64631
|
if (typeof H == "number") {
|
|
64619
64632
|
var I = t.Children.count(Y.props.children) - 1;
|
|
64620
64633
|
H < 0 && (H = Y.props.infiniteLoop ? I : 0), H > I && (H = Y.props.infiniteLoop ? 0 : I), Y.selectItem({
|
|
@@ -64622,37 +64635,37 @@ function Goe() {
|
|
|
64622
64635
|
selectedItem: H
|
|
64623
64636
|
}), Y.state.autoPlay && Y.state.isMouseEntered === !1 && Y.resetAutoPlay();
|
|
64624
64637
|
}
|
|
64625
|
-
}),
|
|
64638
|
+
}), N(k(Y), "onClickNext", function() {
|
|
64626
64639
|
Y.increment(1);
|
|
64627
|
-
}),
|
|
64640
|
+
}), N(k(Y), "onClickPrev", function() {
|
|
64628
64641
|
Y.decrement(1);
|
|
64629
|
-
}),
|
|
64642
|
+
}), N(k(Y), "onSwipeForward", function() {
|
|
64630
64643
|
Y.increment(1), Y.props.emulateTouch && Y.setState({
|
|
64631
64644
|
cancelClick: !0
|
|
64632
64645
|
});
|
|
64633
|
-
}),
|
|
64646
|
+
}), N(k(Y), "onSwipeBackwards", function() {
|
|
64634
64647
|
Y.decrement(1), Y.props.emulateTouch && Y.setState({
|
|
64635
64648
|
cancelClick: !0
|
|
64636
64649
|
});
|
|
64637
|
-
}),
|
|
64650
|
+
}), N(k(Y), "changeItem", function(H) {
|
|
64638
64651
|
return function(I) {
|
|
64639
64652
|
(!(0, o.isKeyboardEvent)(I) || I.key === "Enter") && Y.moveTo(H);
|
|
64640
64653
|
};
|
|
64641
|
-
}),
|
|
64654
|
+
}), N(k(Y), "selectItem", function(H) {
|
|
64642
64655
|
Y.setState(C({
|
|
64643
64656
|
previousItem: Y.state.selectedItem
|
|
64644
64657
|
}, H), function() {
|
|
64645
64658
|
Y.setState(Y.animationHandler(Y.props, Y.state));
|
|
64646
64659
|
}), Y.handleOnChange(H.selectedItem, t.Children.toArray(Y.props.children)[H.selectedItem]);
|
|
64647
|
-
}),
|
|
64648
|
-
var H = Y.props.selectedItem, I = Y.itemsRef && Y.itemsRef[H],
|
|
64649
|
-
return
|
|
64650
|
-
}),
|
|
64660
|
+
}), N(k(Y), "getInitialImage", function() {
|
|
64661
|
+
var H = Y.props.selectedItem, I = Y.itemsRef && Y.itemsRef[H], O = I && I.getElementsByTagName("img") || [];
|
|
64662
|
+
return O[0];
|
|
64663
|
+
}), N(k(Y), "getVariableItemHeight", function(H) {
|
|
64651
64664
|
var I = Y.itemsRef && Y.itemsRef[H];
|
|
64652
64665
|
if (Y.state.hasMount && I && I.children.length) {
|
|
64653
|
-
var
|
|
64654
|
-
if (
|
|
64655
|
-
var q =
|
|
64666
|
+
var O = I.children[0].getElementsByTagName("img") || [];
|
|
64667
|
+
if (O.length > 0) {
|
|
64668
|
+
var q = O[0];
|
|
64656
64669
|
if (!q.complete) {
|
|
64657
64670
|
var Z = function fe() {
|
|
64658
64671
|
Y.forceUpdate(), q.removeEventListener("load", fe);
|
|
@@ -64660,7 +64673,7 @@ function Goe() {
|
|
|
64660
64673
|
q.addEventListener("load", Z);
|
|
64661
64674
|
}
|
|
64662
64675
|
}
|
|
64663
|
-
var ce =
|
|
64676
|
+
var ce = O[0] || I.children[0], oe = ce.clientHeight;
|
|
64664
64677
|
return oe > 0 ? oe : null;
|
|
64665
64678
|
}
|
|
64666
64679
|
return null;
|
|
@@ -64753,7 +64766,7 @@ function Goe() {
|
|
|
64753
64766
|
value: function(Y) {
|
|
64754
64767
|
var R = this;
|
|
64755
64768
|
return this.props.children ? t.Children.map(this.props.children, function(H, I) {
|
|
64756
|
-
var
|
|
64769
|
+
var O = I === R.state.selectedItem, q = I === R.state.previousItem, Z = O && R.state.selectedStyle || q && R.state.prevStyle || R.state.slideStyle || {};
|
|
64757
64770
|
R.props.centerMode && R.props.axis === "horizontal" && (Z = C(C({}, Z), {}, {
|
|
64758
64771
|
minWidth: R.props.centerSlidePercentage + "%"
|
|
64759
64772
|
})), R.state.swiping && R.state.swipeMovementStarted && (Z = C(C({}, Z), {}, {
|
|
@@ -64777,11 +64790,11 @@ function Goe() {
|
|
|
64777
64790
|
}, {
|
|
64778
64791
|
key: "renderControls",
|
|
64779
64792
|
value: function() {
|
|
64780
|
-
var Y = this, R = this.props, H = R.showIndicators, I = R.labels,
|
|
64793
|
+
var Y = this, R = this.props, H = R.showIndicators, I = R.labels, O = R.renderIndicator, q = R.children;
|
|
64781
64794
|
return H ? /* @__PURE__ */ t.default.createElement("ul", {
|
|
64782
64795
|
className: "control-dots"
|
|
64783
64796
|
}, t.Children.map(q, function(Z, ce) {
|
|
64784
|
-
return
|
|
64797
|
+
return O && O(Y.changeItem(ce), ce === Y.state.selectedItem, ce, I.item);
|
|
64785
64798
|
})) : null;
|
|
64786
64799
|
}
|
|
64787
64800
|
}, {
|
|
@@ -64810,7 +64823,7 @@ function Goe() {
|
|
|
64810
64823
|
var Y = this;
|
|
64811
64824
|
if (!this.props.children || t.Children.count(this.props.children) === 0)
|
|
64812
64825
|
return null;
|
|
64813
|
-
var R = this.props.swipeable && t.Children.count(this.props.children) > 1, H = this.props.axis === "horizontal", I = this.props.showArrows && t.Children.count(this.props.children) > 1,
|
|
64826
|
+
var R = this.props.swipeable && t.Children.count(this.props.children) > 1, H = this.props.axis === "horizontal", I = this.props.showArrows && t.Children.count(this.props.children) > 1, O = I && (this.state.selectedItem > 0 || this.props.infiniteLoop) || !1, q = I && (this.state.selectedItem < t.Children.count(this.props.children) - 1 || this.props.infiniteLoop) || !1, Z = this.renderItems(!0), ce = Z.shift(), oe = Z.pop(), fe = {
|
|
64814
64827
|
className: n.default.SLIDER(!0, this.state.swiping),
|
|
64815
64828
|
onSwipeMove: this.onSwipeMove,
|
|
64816
64829
|
onSwipeStart: this.onSwipeStart,
|
|
@@ -64837,7 +64850,7 @@ function Goe() {
|
|
|
64837
64850
|
style: {
|
|
64838
64851
|
width: this.props.width
|
|
64839
64852
|
}
|
|
64840
|
-
}, this.renderControls(), this.props.renderArrowPrev(this.onClickPrev,
|
|
64853
|
+
}, this.renderControls(), this.props.renderArrowPrev(this.onClickPrev, O, this.props.labels.leftArrow), /* @__PURE__ */ t.default.createElement("div", {
|
|
64841
64854
|
className: n.default.WRAPPER(!0, this.props.axis),
|
|
64842
64855
|
style: be
|
|
64843
64856
|
}, R ? /* @__PURE__ */ t.default.createElement(e.default, m({
|
|
@@ -64855,7 +64868,7 @@ function Goe() {
|
|
|
64855
64868
|
}
|
|
64856
64869
|
}]), j;
|
|
64857
64870
|
})(t.default.Component);
|
|
64858
|
-
return Uh.default = P,
|
|
64871
|
+
return Uh.default = P, N(P, "displayName", "Carousel"), N(P, "defaultProps", {
|
|
64859
64872
|
ariaLabel: void 0,
|
|
64860
64873
|
axis: "horizontal",
|
|
64861
64874
|
centerSlidePercentage: 80,
|
|
@@ -65048,17 +65061,17 @@ function VM() {
|
|
|
65048
65061
|
function L() {
|
|
65049
65062
|
var j = e();
|
|
65050
65063
|
if ($(j))
|
|
65051
|
-
return
|
|
65064
|
+
return N(j);
|
|
65052
65065
|
C = setTimeout(L, k(j));
|
|
65053
65066
|
}
|
|
65054
|
-
function
|
|
65067
|
+
function N(j) {
|
|
65055
65068
|
return C = void 0, x && h ? D(j) : (h = g = void 0, y);
|
|
65056
65069
|
}
|
|
65057
65070
|
function P() {
|
|
65058
65071
|
C !== void 0 && clearTimeout(C), E = 0, h = b = g = C = void 0;
|
|
65059
65072
|
}
|
|
65060
65073
|
function U() {
|
|
65061
|
-
return C === void 0 ? y :
|
|
65074
|
+
return C === void 0 ? y : N(e());
|
|
65062
65075
|
}
|
|
65063
65076
|
function M() {
|
|
65064
65077
|
var j = e(), W = $(j);
|
|
@@ -67064,9 +67077,9 @@ function _le(t, e, n, r, i, s, o, a, u) {
|
|
|
67064
67077
|
height: 1
|
|
67065
67078
|
};
|
|
67066
67079
|
(async () => {
|
|
67067
|
-
const L = _(S, u.signal),
|
|
67080
|
+
const L = _(S, u.signal), N = D > 0 ? _(k, u.signal) : void 0;
|
|
67068
67081
|
let P;
|
|
67069
|
-
typeof L == "object" ? P = L : P = await S8(L),
|
|
67082
|
+
typeof L == "object" ? P = L : P = await S8(L), N !== void 0 && (typeof N == "object" ? P = [...P, ...N] : P = [...P, ...await S8(N)]), b.current = t, w(P);
|
|
67070
67083
|
})();
|
|
67071
67084
|
}, [u.signal, t]), A.useMemo(() => {
|
|
67072
67085
|
let x = t.every(M0) ? t : y === null ? t.map(($) => M0($) ? $ : {
|
|
@@ -67085,22 +67098,22 @@ function _le(t, e, n, r, i, s, o, a, u) {
|
|
|
67085
67098
|
...$,
|
|
67086
67099
|
width: qA
|
|
67087
67100
|
};
|
|
67088
|
-
const
|
|
67089
|
-
return C.current[$.id] =
|
|
67101
|
+
const N = yP(y, o, $, L, E, i, s, !0, a);
|
|
67102
|
+
return C.current[$.id] = N.width, N;
|
|
67090
67103
|
})), D = 0, S = 0;
|
|
67091
67104
|
const k = [];
|
|
67092
67105
|
for (const [$, L] of x.entries())
|
|
67093
67106
|
D += L.width, L.grow !== void 0 && L.grow > 0 && (S += L.grow, k.push($));
|
|
67094
67107
|
if (D < r && k.length > 0) {
|
|
67095
67108
|
const $ = [...x], L = r - D;
|
|
67096
|
-
let
|
|
67109
|
+
let N = L;
|
|
67097
67110
|
for (let P = 0; P < k.length; P++) {
|
|
67098
|
-
const U = k[P], M = (x[U].grow ?? 0) / S, j = P === k.length - 1 ?
|
|
67111
|
+
const U = k[P], M = (x[U].grow ?? 0) / S, j = P === k.length - 1 ? N : Math.min(N, Math.floor(L * M));
|
|
67099
67112
|
$[U] = {
|
|
67100
67113
|
...x[U],
|
|
67101
67114
|
growOffset: j,
|
|
67102
67115
|
width: x[U].width + j
|
|
67103
|
-
},
|
|
67116
|
+
}, N -= j;
|
|
67104
67117
|
}
|
|
67105
67118
|
x = $;
|
|
67106
67119
|
}
|
|
@@ -67821,8 +67834,8 @@ function kce(t, e, n, r, i) {
|
|
|
67821
67834
|
const [s, o, a, u] = e, [d, h, g, m] = i, { x: y, y: C, width: b, height: E } = t, w = [];
|
|
67822
67835
|
if (b <= 0 || E <= 0)
|
|
67823
67836
|
return w;
|
|
67824
|
-
const _ = y + b, x = C + E, D = y < s, S = C < o, k = y + b > a, $ = C + E > u, L = y >= s && y < a || _ > s && _ <= a || y < s && _ > a,
|
|
67825
|
-
if (L &&
|
|
67837
|
+
const _ = y + b, x = C + E, D = y < s, S = C < o, k = y + b > a, $ = C + E > u, L = y >= s && y < a || _ > s && _ <= a || y < s && _ > a, N = C >= o && C < u || x > o && x <= u || C < o && x > u;
|
|
67838
|
+
if (L && N) {
|
|
67826
67839
|
const U = Math.max(y, s), M = Math.max(C, o), j = Math.min(_, a), W = Math.min(x, u);
|
|
67827
67840
|
w.push({
|
|
67828
67841
|
rect: { x: U, y: M, width: j - U, height: W - M },
|
|
@@ -67885,7 +67898,7 @@ function kce(t, e, n, r, i) {
|
|
|
67885
67898
|
}
|
|
67886
67899
|
});
|
|
67887
67900
|
}
|
|
67888
|
-
if (D &&
|
|
67901
|
+
if (D && N) {
|
|
67889
67902
|
const U = y, M = Math.max(C, o), j = Math.min(_, s), W = Math.min(x, u);
|
|
67890
67903
|
w.push({
|
|
67891
67904
|
rect: {
|
|
@@ -67902,7 +67915,7 @@ function kce(t, e, n, r, i) {
|
|
|
67902
67915
|
}
|
|
67903
67916
|
});
|
|
67904
67917
|
}
|
|
67905
|
-
if (k &&
|
|
67918
|
+
if (k && N) {
|
|
67906
67919
|
const U = Math.max(y, a), M = Math.max(C, o), j = _, W = Math.min(x, u);
|
|
67907
67920
|
w.push({
|
|
67908
67921
|
rect: {
|
|
@@ -67976,8 +67989,8 @@ const Mce = {
|
|
|
67976
67989
|
kind: dn.Loading,
|
|
67977
67990
|
allowOverlay: !1
|
|
67978
67991
|
};
|
|
67979
|
-
function VB(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _, x, D, S, k, $, L,
|
|
67980
|
-
let
|
|
67992
|
+
function VB(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _, x, D, S, k, $, L, N, P, U, M, j, W, Y, R, H, I) {
|
|
67993
|
+
let O = x?.size ?? Number.MAX_SAFE_INTEGER;
|
|
67981
67994
|
const q = performance.now();
|
|
67982
67995
|
let Z = j.baseFontFull;
|
|
67983
67996
|
t.font = Z;
|
|
@@ -68023,7 +68036,7 @@ function VB(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _, x, D, S, k,
|
|
|
68023
68036
|
if (Tt.span !== void 0) {
|
|
68024
68037
|
const [$t, En] = Tt.span, yn = `${qe},${$t},${En},${ke.sticky}`;
|
|
68025
68038
|
if (ge === void 0 && (ge = /* @__PURE__ */ new Set()), ge.has(yn)) {
|
|
68026
|
-
|
|
68039
|
+
O--;
|
|
68027
68040
|
return;
|
|
68028
68041
|
} else {
|
|
68029
68042
|
const li = wP(Tt.span, lt, Qt, ke.width, xe, ke, n), $r = ke.sticky ? li[0] : li[1];
|
|
@@ -68074,8 +68087,8 @@ function VB(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _, x, D, S, k,
|
|
|
68074
68087
|
const mn = ke.sourceIndex === n.length - 1, mt = qe === u - 1;
|
|
68075
68088
|
ln !== void 0 && (t.fillStyle = ln, Ut !== void 0 && (Ut.fillStyle = ln), x !== void 0 ? t.fillRect(zt + 1, Qt + 1, ht - (mn ? 2 : 1), xe - (mt ? 2 : 1)) : t.fillRect(zt, Qt, ht, xe)), Tt.style === "faded" && (t.globalAlpha = 0.6);
|
|
68076
68089
|
let on;
|
|
68077
|
-
for (let $t = 0; $t <
|
|
68078
|
-
const En =
|
|
68090
|
+
for (let $t = 0; $t < N.length; $t++) {
|
|
68091
|
+
const En = N[$t];
|
|
68079
68092
|
if (En.item[0] === ke.sourceIndex && En.item[1] === qe) {
|
|
68080
68093
|
on = En;
|
|
68081
68094
|
break;
|
|
@@ -68085,8 +68098,8 @@ function VB(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _, x, D, S, k,
|
|
|
68085
68098
|
const $t = vt.baseFontFull;
|
|
68086
68099
|
$t !== Z && (t.font = $t, Z = $t), Ut = DP(t, Tt, ke.sourceIndex, qe, mn, mt, zt, Qt, ht, xe, ct > 0, vt, ln ?? vt.bgCell, $, L, on?.hoverAmount ?? 0, P, M, q, U, Ut, W, Y, R, H);
|
|
68087
68100
|
}
|
|
68088
|
-
return Ln && t.restore(), Tt.style === "faded" && (t.globalAlpha = 1),
|
|
68089
|
-
}), t.restore(),
|
|
68101
|
+
return Ln && t.restore(), Tt.style === "faded" && (t.globalAlpha = 1), O--, _e && (t.restore(), Ut?.deprep?.(ce), Ut = void 0, sn(), Z = Vt, t.font = Vt), O <= 0;
|
|
68102
|
+
}), t.restore(), O <= 0;
|
|
68090
68103
|
}), be;
|
|
68091
68104
|
}
|
|
68092
68105
|
const Gh = [0, 0], Kh = { x: 0, y: 0, width: 0, height: 0 }, pb = [void 0, () => {
|
|
@@ -68096,8 +68109,8 @@ function Pce() {
|
|
|
68096
68109
|
jA = !0;
|
|
68097
68110
|
}
|
|
68098
68111
|
function DP(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _, x, D, S, k, $, L) {
|
|
68099
|
-
let
|
|
68100
|
-
E !== void 0 && E[0][0] === n && E[0][1] === r && (
|
|
68112
|
+
let N, P;
|
|
68113
|
+
E !== void 0 && E[0][0] === n && E[0][1] === r && (N = E[1][0], P = E[1][1]);
|
|
68101
68114
|
let U;
|
|
68102
68115
|
Gh[0] = n, Gh[1] = r, Kh.x = o, Kh.y = a, Kh.width = u, Kh.height = d, pb[0] = k.getValue(Gh), pb[1] = (Y) => k.setValue(Gh, Y), jA = !1;
|
|
68103
68116
|
const M = {
|
|
@@ -68112,13 +68125,13 @@ function DP(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _, x, D, S, k,
|
|
|
68112
68125
|
cellFillColor: m,
|
|
68113
68126
|
hoverAmount: b,
|
|
68114
68127
|
frameTime: _,
|
|
68115
|
-
hoverX:
|
|
68128
|
+
hoverX: N,
|
|
68116
68129
|
drawState: pb,
|
|
68117
68130
|
hoverY: P,
|
|
68118
68131
|
imageLoader: y,
|
|
68119
68132
|
spriteManager: C,
|
|
68120
68133
|
hyperWrapping: w,
|
|
68121
|
-
overrideCursor:
|
|
68134
|
+
overrideCursor: N !== void 0 ? L : void 0,
|
|
68122
68135
|
requestAnimationFrame: Pce
|
|
68123
68136
|
}, j = ple(M, e.lastUpdated, _, D, i, s), W = $(e);
|
|
68124
68137
|
if (W !== void 0) {
|
|
@@ -68161,15 +68174,15 @@ function Ice(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _) {
|
|
|
68161
68174
|
return;
|
|
68162
68175
|
t.fillStyle = g.bgHeader, t.fillRect(0, 0, i, x);
|
|
68163
68176
|
const D = r?.[0]?.[0], S = r?.[0]?.[1], k = r?.[1]?.[0], $ = r?.[1]?.[1], L = g.headerFontFull;
|
|
68164
|
-
t.font = L, Tu(e, 0, s, 0, x, (
|
|
68165
|
-
if (E !== void 0 && !E.has([
|
|
68177
|
+
t.font = L, Tu(e, 0, s, 0, x, (N, P, U, M) => {
|
|
68178
|
+
if (E !== void 0 && !E.has([N.sourceIndex, -1]))
|
|
68166
68179
|
return;
|
|
68167
68180
|
const j = Math.max(0, M - P);
|
|
68168
|
-
t.save(), t.beginPath(), t.rect(P + j, a,
|
|
68169
|
-
const W = b(
|
|
68181
|
+
t.save(), t.beginPath(), t.rect(P + j, a, N.width - j, o), t.clip();
|
|
68182
|
+
const W = b(N.group ?? "").overrideTheme, Y = N.themeOverride === void 0 && W === void 0 ? g : Ic(g, W, N.themeOverride);
|
|
68170
68183
|
Y.bgHeader !== g.bgHeader && (t.fillStyle = Y.bgHeader, t.fill()), Y !== g && (t.font = Y.headerFontFull);
|
|
68171
|
-
const R = h.columns.hasIndex(
|
|
68172
|
-
R ? (t.fillStyle = Z, t.fillRect(P + oe, ce,
|
|
68184
|
+
const R = h.columns.hasIndex(N.sourceIndex), H = u !== void 0 || d || N.headerRowMarkerDisabled === !0, I = !H && S === -1 && D === N.sourceIndex, O = H ? 0 : y.find((fe) => fe.item[0] === N.sourceIndex && fe.item[1] === -1)?.hoverAmount ?? 0, q = h?.current !== void 0 && h.current.cell[0] === N.sourceIndex, Z = R ? Y.accentColor : q ? Y.bgHeaderHasFocus : Y.bgHeader, ce = n ? a : 0, oe = N.sourceIndex === 0 ? 0 : 1;
|
|
68185
|
+
R ? (t.fillStyle = Z, t.fillRect(P + oe, ce, N.width - oe, o)) : (q || O > 0) && (t.beginPath(), t.rect(P + oe, ce, N.width - oe, o), q && (t.fillStyle = Y.bgHeaderHasFocus, t.fill()), O > 0 && (t.globalAlpha = O, t.fillStyle = Y.bgHeaderHovered, t.fill(), t.globalAlpha = 1)), TP(t, P, ce, N.width, o, N, R, Y, I, I ? k : void 0, I ? $ : void 0, q, O, m, w, _), t.restore();
|
|
68173
68186
|
}), n && Nce(t, e, i, s, a, r, g, m, y, C, b, E);
|
|
68174
68187
|
}
|
|
68175
68188
|
function Nce(t, e, n, r, i, s, o, a, u, d, h, g) {
|
|
@@ -68184,20 +68197,20 @@ function Nce(t, e, n, r, i, s, o, a, u, d, h, g) {
|
|
|
68184
68197
|
}))
|
|
68185
68198
|
return;
|
|
68186
68199
|
t.save(), t.beginPath(), t.rect(_, x, D, S), t.clip();
|
|
68187
|
-
const k = h(w), $ = k?.overrideTheme === void 0 ? o : Ic(o, k.overrideTheme), L = C === -2 && y !== void 0 && y >= E[0] && y <= E[1],
|
|
68188
|
-
if (
|
|
68200
|
+
const k = h(w), $ = k?.overrideTheme === void 0 ? o : Ic(o, k.overrideTheme), L = C === -2 && y !== void 0 && y >= E[0] && y <= E[1], N = L ? $.bgGroupHeaderHovered ?? $.bgHeaderHovered : $.bgGroupHeader ?? $.bgHeader;
|
|
68201
|
+
if (N !== o.bgHeader && (t.fillStyle = N, t.fill()), t.fillStyle = $.textGroupHeader ?? $.textHeader, k !== void 0) {
|
|
68189
68202
|
let P = _;
|
|
68190
68203
|
if (k.icon !== void 0 && (a.drawSprite(k.icon, "normal", t, P + 8, (i - 20) / 2, 20, $), P += 26), t.fillText(k.name, P + 8, i / 2 + Su(t, o.headerFontFull)), k.actions !== void 0 && L) {
|
|
68191
68204
|
const U = BP({ x: _, y: x, width: D, height: S }, k.actions);
|
|
68192
68205
|
t.beginPath();
|
|
68193
68206
|
const M = U[0].x - 10, j = _ + D - M;
|
|
68194
68207
|
t.rect(M, 0, j, i);
|
|
68195
|
-
const W = t.createLinearGradient(M, 0, M + j, 0), Y = Fd(
|
|
68196
|
-
W.addColorStop(0, Y), W.addColorStop(10 / j,
|
|
68208
|
+
const W = t.createLinearGradient(M, 0, M + j, 0), Y = Fd(N, 0);
|
|
68209
|
+
W.addColorStop(0, Y), W.addColorStop(10 / j, N), W.addColorStop(1, N), t.fillStyle = W, t.fill(), t.globalAlpha = 0.6;
|
|
68197
68210
|
const [R, H] = s?.[1] ?? [-1, -1];
|
|
68198
68211
|
for (let I = 0; I < k.actions.length; I++) {
|
|
68199
|
-
const
|
|
68200
|
-
Z && (t.globalAlpha = 1), a.drawSprite(
|
|
68212
|
+
const O = k.actions[I], q = U[I], Z = ad(q, R + _, H);
|
|
68213
|
+
Z && (t.globalAlpha = 1), a.drawSprite(O.icon, "normal", t, q.x + q.width / 2 - 10, q.y + q.height / 2 - 10, 20, $), Z && (t.globalAlpha = 0.6);
|
|
68201
68214
|
}
|
|
68202
68215
|
t.globalAlpha = 1;
|
|
68203
68216
|
}
|
|
@@ -68438,8 +68451,8 @@ var Eb, JB;
|
|
|
68438
68451
|
function qce() {
|
|
68439
68452
|
if (JB) return Eb;
|
|
68440
68453
|
JB = 1;
|
|
68441
|
-
var t = ep(), e = wE(), n = tp(), r = "[object Arguments]", i = "[object Array]", s = "[object Boolean]", o = "[object Date]", a = "[object Error]", u = "[object Function]", d = "[object Map]", h = "[object Number]", g = "[object Object]", m = "[object RegExp]", y = "[object Set]", C = "[object String]", b = "[object WeakMap]", E = "[object ArrayBuffer]", w = "[object DataView]", _ = "[object Float32Array]", x = "[object Float64Array]", D = "[object Int8Array]", S = "[object Int16Array]", k = "[object Int32Array]", $ = "[object Uint8Array]", L = "[object Uint8ClampedArray]",
|
|
68442
|
-
U[_] = U[x] = U[D] = U[S] = U[k] = U[$] = U[L] = U[
|
|
68454
|
+
var t = ep(), e = wE(), n = tp(), r = "[object Arguments]", i = "[object Array]", s = "[object Boolean]", o = "[object Date]", a = "[object Error]", u = "[object Function]", d = "[object Map]", h = "[object Number]", g = "[object Object]", m = "[object RegExp]", y = "[object Set]", C = "[object String]", b = "[object WeakMap]", E = "[object ArrayBuffer]", w = "[object DataView]", _ = "[object Float32Array]", x = "[object Float64Array]", D = "[object Int8Array]", S = "[object Int16Array]", k = "[object Int32Array]", $ = "[object Uint8Array]", L = "[object Uint8ClampedArray]", N = "[object Uint16Array]", P = "[object Uint32Array]", U = {};
|
|
68455
|
+
U[_] = U[x] = U[D] = U[S] = U[k] = U[$] = U[L] = U[N] = U[P] = !0, U[r] = U[i] = U[E] = U[s] = U[w] = U[o] = U[a] = U[u] = U[d] = U[h] = U[g] = U[m] = U[y] = U[C] = U[b] = !1;
|
|
68443
68456
|
function M(j) {
|
|
68444
68457
|
return n(j) && e(j.length) && !!U[t(j)];
|
|
68445
68458
|
}
|
|
@@ -68738,7 +68751,7 @@ function due() {
|
|
|
68738
68751
|
if (ES) return jb;
|
|
68739
68752
|
ES = 1;
|
|
68740
68753
|
var t = Jg(), e = cue(), n = FE(), r = PP(), i = uue(), s = qE(), o = 1, a = 2, u = "[object Boolean]", d = "[object Date]", h = "[object Error]", g = "[object Map]", m = "[object Number]", y = "[object RegExp]", C = "[object Set]", b = "[object String]", E = "[object Symbol]", w = "[object ArrayBuffer]", _ = "[object DataView]", x = t ? t.prototype : void 0, D = x ? x.valueOf : void 0;
|
|
68741
|
-
function S(k, $, L,
|
|
68754
|
+
function S(k, $, L, N, P, U, M) {
|
|
68742
68755
|
switch (L) {
|
|
68743
68756
|
case _:
|
|
68744
68757
|
if (k.byteLength != $.byteLength || k.byteOffset != $.byteOffset)
|
|
@@ -68758,14 +68771,14 @@ function due() {
|
|
|
68758
68771
|
case g:
|
|
68759
68772
|
var j = i;
|
|
68760
68773
|
case C:
|
|
68761
|
-
var W =
|
|
68774
|
+
var W = N & o;
|
|
68762
68775
|
if (j || (j = s), k.size != $.size && !W)
|
|
68763
68776
|
return !1;
|
|
68764
68777
|
var Y = M.get(k);
|
|
68765
68778
|
if (Y)
|
|
68766
68779
|
return Y == $;
|
|
68767
|
-
|
|
68768
|
-
var R = r(j(k), j($),
|
|
68780
|
+
N |= a, M.set(k, $);
|
|
68781
|
+
var R = r(j(k), j($), N, P, U, M);
|
|
68769
68782
|
return M.delete(k), R;
|
|
68770
68783
|
case E:
|
|
68771
68784
|
if (D)
|
|
@@ -68860,8 +68873,8 @@ function yue() {
|
|
|
68860
68873
|
S || (S = w == "constructor");
|
|
68861
68874
|
}
|
|
68862
68875
|
if (D && !S) {
|
|
68863
|
-
var
|
|
68864
|
-
|
|
68876
|
+
var N = s.constructor, P = o.constructor;
|
|
68877
|
+
N != P && "constructor" in s && "constructor" in o && !(typeof N == "function" && N instanceof N && typeof P == "function" && P instanceof P) && (D = !1);
|
|
68865
68878
|
}
|
|
68866
68879
|
return h.delete(s), h.delete(o), D;
|
|
68867
68880
|
}
|
|
@@ -68919,16 +68932,16 @@ function vue() {
|
|
|
68919
68932
|
function C(b, E, w, _, x, D) {
|
|
68920
68933
|
var S = s(b), k = s(E), $ = S ? h : i(b), L = k ? h : i(E);
|
|
68921
68934
|
$ = $ == d ? g : $, L = L == d ? g : L;
|
|
68922
|
-
var
|
|
68935
|
+
var N = $ == g, P = L == g, U = $ == L;
|
|
68923
68936
|
if (U && o(b)) {
|
|
68924
68937
|
if (!o(E))
|
|
68925
68938
|
return !1;
|
|
68926
|
-
S = !0,
|
|
68939
|
+
S = !0, N = !1;
|
|
68927
68940
|
}
|
|
68928
|
-
if (U && !
|
|
68941
|
+
if (U && !N)
|
|
68929
68942
|
return D || (D = new t()), S || a(b) ? e(b, E, w, _, x, D) : n(b, E, $, w, _, x, D);
|
|
68930
68943
|
if (!(w & u)) {
|
|
68931
|
-
var M =
|
|
68944
|
+
var M = N && y.call(b, "__wrapped__"), j = P && y.call(E, "__wrapped__");
|
|
68932
68945
|
if (M || j) {
|
|
68933
68946
|
var W = M ? b.value() : b, Y = j ? E.value() : E;
|
|
68934
68947
|
return D || (D = new t()), x(W, Y, w, _, D);
|
|
@@ -69168,8 +69181,8 @@ function zue(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _) {
|
|
|
69168
69181
|
if (D !== e[e.length - 1])
|
|
69169
69182
|
return;
|
|
69170
69183
|
S += D.width;
|
|
69171
|
-
const
|
|
69172
|
-
|
|
69184
|
+
const N = Math.max(S, $);
|
|
69185
|
+
N > r || (t.save(), t.beginPath(), t.rect(N, s + 1, 1e4, i - s - 1), t.clip(), q1(L, k, i, d, h, C, b, x, (P, U, M, j) => {
|
|
69173
69186
|
if (!j && E.length > 0 && !E.some((I) => Wg(S, P, 1e4, M, I.x, I.y, I.width, I.height)))
|
|
69174
69187
|
return;
|
|
69175
69188
|
const W = m.hasIndex(U), Y = y.hasIndex(U);
|
|
@@ -69219,21 +69232,21 @@ function $ue(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C) {
|
|
|
69219
69232
|
}
|
|
69220
69233
|
k += j, $ < y - m && (L = k), $++;
|
|
69221
69234
|
}
|
|
69222
|
-
let
|
|
69235
|
+
let N = 0;
|
|
69223
69236
|
const P = Math.min(S, x) - L;
|
|
69224
69237
|
if (P > 0)
|
|
69225
69238
|
for (let M = 0; M < e.length; M++) {
|
|
69226
69239
|
const j = e[M];
|
|
69227
69240
|
if (j.width === 0)
|
|
69228
69241
|
continue;
|
|
69229
|
-
const W = j.sticky ?
|
|
69242
|
+
const W = j.sticky ? N : N + r, Y = j.themeOverride?.bgCell;
|
|
69230
69243
|
Y !== void 0 && Y !== b && W >= E && W <= w && g(M + 1) && D.push({
|
|
69231
69244
|
x: W,
|
|
69232
69245
|
y: L,
|
|
69233
69246
|
w: j.width,
|
|
69234
69247
|
h: P,
|
|
69235
69248
|
color: Y
|
|
69236
|
-
}),
|
|
69249
|
+
}), N += j.width;
|
|
69237
69250
|
}
|
|
69238
69251
|
if (D.length === 0)
|
|
69239
69252
|
return;
|
|
@@ -69254,13 +69267,13 @@ function JS(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w = !1) {
|
|
|
69254
69267
|
}
|
|
69255
69268
|
const _ = E.horizontalBorderColor ?? E.borderColor, x = E.borderColor, { minX: D, maxX: S, minY: k, maxY: $ } = zP(a, s, o), L = [];
|
|
69256
69269
|
t.beginPath();
|
|
69257
|
-
let
|
|
69270
|
+
let N = 0.5;
|
|
69258
69271
|
for (let M = 0; M < e.length; M++) {
|
|
69259
69272
|
const j = e[M];
|
|
69260
69273
|
if (j.width === 0)
|
|
69261
69274
|
continue;
|
|
69262
|
-
|
|
69263
|
-
const W = j.sticky ?
|
|
69275
|
+
N += j.width;
|
|
69276
|
+
const W = j.sticky ? N : N + r;
|
|
69264
69277
|
W >= D && W <= S && y(M + 1) && L.push({
|
|
69265
69278
|
x1: W,
|
|
69266
69279
|
y1: Math.max(d, k),
|
|
@@ -69313,16 +69326,16 @@ function Hue(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _) {
|
|
|
69313
69326
|
k += w(W);
|
|
69314
69327
|
o > i.cellYOffset && (k = -k), k += u - i.translateY;
|
|
69315
69328
|
const $ = Math.min(i.cellXOffset, s), L = Math.max(i.cellXOffset, s);
|
|
69316
|
-
let
|
|
69329
|
+
let N = 0;
|
|
69317
69330
|
for (let W = $; W < L; W++)
|
|
69318
|
-
|
|
69319
|
-
s > i.cellXOffset && (
|
|
69331
|
+
N += b[W].width;
|
|
69332
|
+
s > i.cellXOffset && (N = -N), N += a - i.translateX;
|
|
69320
69333
|
const P = qf(E);
|
|
69321
|
-
if (
|
|
69334
|
+
if (N !== 0 && k !== 0)
|
|
69322
69335
|
return {
|
|
69323
69336
|
regions: []
|
|
69324
69337
|
};
|
|
69325
|
-
const U = d > 0 ? Sd(m, d, w) : 0, M = h - P - Math.abs(
|
|
69338
|
+
const U = d > 0 ? Sd(m, d, w) : 0, M = h - P - Math.abs(N), j = g - y - U - Math.abs(k) - 1;
|
|
69326
69339
|
if (M > 150 && j > 150) {
|
|
69327
69340
|
const W = {
|
|
69328
69341
|
sx: 0,
|
|
@@ -69344,23 +69357,23 @@ function Hue(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E, w, _) {
|
|
|
69344
69357
|
y: g + k - U,
|
|
69345
69358
|
width: h,
|
|
69346
69359
|
height: -k + U
|
|
69347
|
-
})),
|
|
69360
|
+
})), N > 0 ? (W.sx = P * C, W.sw = M * C, W.dx = (N + P) * C, W.dw = M * C, x.push({
|
|
69348
69361
|
x: P - 1,
|
|
69349
69362
|
y: 0,
|
|
69350
|
-
width:
|
|
69363
|
+
width: N + 2,
|
|
69351
69364
|
// extra width to account for first col not drawing a left side border
|
|
69352
69365
|
height: g
|
|
69353
|
-
})) :
|
|
69354
|
-
x: h +
|
|
69366
|
+
})) : N < 0 && (W.sx = (P - N) * C, W.sw = M * C, W.dx = P * C, W.dw = M * C, x.push({
|
|
69367
|
+
x: h + N,
|
|
69355
69368
|
y: 0,
|
|
69356
|
-
width: -
|
|
69369
|
+
width: -N,
|
|
69357
69370
|
height: g
|
|
69358
69371
|
})), t.setTransform(1, 0, 0, 1, 0, 0), _) {
|
|
69359
|
-
if (P > 0 &&
|
|
69372
|
+
if (P > 0 && N !== 0 && k === 0 && (r === void 0 || n?.[1] !== !1)) {
|
|
69360
69373
|
const Y = P * C, R = g * C;
|
|
69361
69374
|
t.drawImage(e, 0, 0, Y, R, 0, 0, Y, R);
|
|
69362
69375
|
}
|
|
69363
|
-
if (U > 0 &&
|
|
69376
|
+
if (U > 0 && N === 0 && k !== 0 && (r === void 0 || n?.[0] !== !1)) {
|
|
69364
69377
|
const Y = (g - U) * C, R = h * C, H = U * C;
|
|
69365
69378
|
t.drawImage(e, 0, Y, R, H, 0, Y, R, H);
|
|
69366
69379
|
}
|
|
@@ -69412,12 +69425,12 @@ function e9(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b) {
|
|
|
69412
69425
|
if (E === void 0 || E.length === 0)
|
|
69413
69426
|
return;
|
|
69414
69427
|
const w = qf(a), _ = Sd(y, m, g), x = [u, 0, a.length, y - m], D = [w, 0, e, n - _], S = E.map(($) => {
|
|
69415
|
-
const L = $.range,
|
|
69428
|
+
const L = $.range, N = $.style ?? "dashed";
|
|
69416
69429
|
return kce(L, x, e, n, D).map((P) => {
|
|
69417
69430
|
const U = P.rect, M = WA(U.x, U.y, e, n, h, d + h, r, i, s, o, y, u, m, a, g), j = U.width === 1 && U.height === 1 ? M : WA(U.x + U.width - 1, U.y + U.height - 1, e, n, h, d + h, r, i, s, o, y, u, m, a, g);
|
|
69418
69431
|
return U.x + U.width >= a.length && (j.width -= 1), U.y + U.height >= y && (j.height -= 1), {
|
|
69419
69432
|
color: $.color,
|
|
69420
|
-
style:
|
|
69433
|
+
style: N,
|
|
69421
69434
|
clip: P.clip,
|
|
69422
69435
|
rect: Rce({
|
|
69423
69436
|
x: M.x,
|
|
@@ -69431,10 +69444,10 @@ function e9(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b) {
|
|
|
69431
69444
|
t.lineWidth = 1;
|
|
69432
69445
|
let $ = !1;
|
|
69433
69446
|
for (const L of S)
|
|
69434
|
-
for (const
|
|
69435
|
-
if (
|
|
69436
|
-
const P = $, U = !Tce(
|
|
69437
|
-
t.beginPath(), U && (t.save(), t.rect(
|
|
69447
|
+
for (const N of L)
|
|
69448
|
+
if (N?.rect !== void 0 && Wg(0, 0, e, n, N.rect.x, N.rect.y, N.rect.width, N.rect.height)) {
|
|
69449
|
+
const P = $, U = !Tce(N.clip, N.rect);
|
|
69450
|
+
t.beginPath(), U && (t.save(), t.rect(N.clip.x, N.clip.y, N.clip.width, N.clip.height), t.clip()), N.style === "dashed" && !$ ? (t.setLineDash([5, 3]), $ = !0) : (N.style === "solid" || N.style === "solid-outline") && $ && (t.setLineDash([]), $ = !1), t.strokeStyle = N.style === "solid-outline" ? Pa(Pa(N.color, b.borderColor), b.bgCell) : Fd(N.color, 1), t.closePath(), t.strokeRect(N.rect.x + 0.5, N.rect.y + 0.5, N.rect.width - 1, N.rect.height - 1), U && (t.restore(), $ = P);
|
|
69438
69451
|
}
|
|
69439
69452
|
$ && t.setLineDash([]);
|
|
69440
69453
|
};
|
|
@@ -69452,9 +69465,9 @@ function vF(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E) {
|
|
|
69452
69465
|
const _ = typeof b == "object" ? { ...Qm, ...b } : Qm, x = h.current.range, D = h.current.cell, S = [x.x + x.width - 1, x.y + x.height - 1];
|
|
69453
69466
|
if (D[1] >= E && S[1] >= E || !o.some((R) => R.sourceIndex === D[0] || R.sourceIndex === S[0]))
|
|
69454
69467
|
return;
|
|
69455
|
-
const [$, L] = h.current.cell,
|
|
69468
|
+
const [$, L] = h.current.cell, N = m(h.current.cell), P = N.span ?? [$, $], U = L >= E - y, M = y > 0 && !U ? Sd(E, y, g) - 1 : 0, j = S[1];
|
|
69456
69469
|
let W;
|
|
69457
|
-
if (Tu(o, r, i, s, d, (R, H, I,
|
|
69470
|
+
if (Tu(o, r, i, s, d, (R, H, I, O, q) => {
|
|
69458
69471
|
if (R.sticky && $ > R.sourceIndex)
|
|
69459
69472
|
return;
|
|
69460
69473
|
const Z = R.sourceIndex < P[0], ce = R.sourceIndex > P[1], oe = R.sourceIndex === S[0];
|
|
@@ -69463,12 +69476,12 @@ function vF(t, e, n, r, i, s, o, a, u, d, h, g, m, y, C, b, E) {
|
|
|
69463
69476
|
if (be !== L && be !== j)
|
|
69464
69477
|
return;
|
|
69465
69478
|
let Ae = H, ke = R.width;
|
|
69466
|
-
if (
|
|
69467
|
-
const Ee = wP(
|
|
69479
|
+
if (N.span !== void 0) {
|
|
69480
|
+
const Ee = wP(N.span, H, fe, R.width, ge, R, a), Ce = R.sticky ? Ee[0] : Ee[1];
|
|
69468
69481
|
Ce !== void 0 && (Ae = Ce.x, ke = Ce.width);
|
|
69469
69482
|
}
|
|
69470
69483
|
return be === j && oe && w && (W = () => {
|
|
69471
|
-
|
|
69484
|
+
O > Ae && !R.sticky && (t.beginPath(), t.rect(O, 0, e - O, n), t.clip());
|
|
69472
69485
|
const Ee = _.size, Ce = Ee / 2, Xe = Ae + ke + _.offsetX - Ce + 0.5, ot = fe + ge + _.offsetY - Ce + 0.5;
|
|
69473
69486
|
t.beginPath(), _.shape === "circle" ? t.arc(Xe + Ce, ot + Ce, Ce, 0, Math.PI * 2) : t.rect(Xe, ot, Ee, Ee), t.fillStyle = R.themeOverride?.accentColor ?? u.accentColor, t.fill(), _.outline > 0 && (t.lineWidth = _.outline, t.strokeStyle = u.bgCell, _.shape === "circle" ? (t.beginPath(), t.arc(Xe + Ce, ot + Ce, Ce + _.outline / 2, 0, Math.PI * 2), t.stroke()) : t.strokeRect(Xe - _.outline / 2, ot - _.outline / 2, Ee + _.outline, Ee + _.outline));
|
|
69474
69487
|
}), W !== void 0;
|
|
@@ -69500,7 +69513,7 @@ function jue(t, e, n, r, i, s, o, a, u, d) {
|
|
|
69500
69513
|
}), !0)), h;
|
|
69501
69514
|
}
|
|
69502
69515
|
function n9(t, e) {
|
|
69503
|
-
const { canvasCtx: n, headerCanvasCtx: r, width: i, height: s, cellXOffset: o, cellYOffset: a, translateX: u, translateY: d, mappedColumns: h, enableGroups: g, freezeColumns: m, dragAndDropState: y, theme: C, drawFocus: b, headerHeight: E, groupHeaderHeight: w, disabledRows: _, rowHeight: x, verticalBorder: D, overrideCursor: S, isResizing: k, selection: $, fillHandle: L, freezeTrailingRows:
|
|
69516
|
+
const { canvasCtx: n, headerCanvasCtx: r, width: i, height: s, cellXOffset: o, cellYOffset: a, translateX: u, translateY: d, mappedColumns: h, enableGroups: g, freezeColumns: m, dragAndDropState: y, theme: C, drawFocus: b, headerHeight: E, groupHeaderHeight: w, disabledRows: _, rowHeight: x, verticalBorder: D, overrideCursor: S, isResizing: k, selection: $, fillHandle: L, freezeTrailingRows: N, rows: P, getCellContent: U, getGroupDetails: M, getRowThemeOverride: j, isFocused: W, drawHeaderCallback: Y, prelightCells: R, drawCellCallback: H, highlightRegions: I, resizeCol: O, imageLoader: q, lastBlitData: Z, hoverValues: ce, hyperWrapping: oe, hoverInfo: fe, spriteManager: be, maxScaleFactor: ge, hasAppendRow: Ae, touchMode: ke, enqueue: lt, renderStateProvider: Ee, getCellRenderer: Ce, renderStrategy: Xe, bufferACtx: ot, bufferBCtx: _t, damage: ze, minimumCellWidth: Mt, resizeIndicator: an } = t;
|
|
69504
69517
|
if (i === 0 || s === 0)
|
|
69505
69518
|
return;
|
|
69506
69519
|
const sn = Xe === "double-buffer", Ct = Math.min(ge, Math.ceil(window.devicePixelRatio ?? 1)), wt = Xe !== "direct" && Wue(t, e), At = n.canvas;
|
|
@@ -69531,7 +69544,7 @@ function n9(t, e) {
|
|
|
69531
69544
|
}
|
|
69532
69545
|
}
|
|
69533
69546
|
const vt = () => {
|
|
69534
|
-
Ice(ft, _e, g, fe, i, u, E, w, y, k, $, C, be, ce, D, M, ze, Y, ke), JS(ft, _e, a, u, d, i, s, void 0, void 0, w, Ut, ht, j, D,
|
|
69547
|
+
Ice(ft, _e, g, fe, i, u, E, w, y, k, $, C, be, ce, D, M, ze, Y, ke), JS(ft, _e, a, u, d, i, s, void 0, void 0, w, Ut, ht, j, D, N, P, C, !0), ft.beginPath(), ft.moveTo(0, Qt - 0.5), ft.lineTo(i, Qt - 0.5), ft.strokeStyle = Pa(C.headerBottomBorderColor ?? C.horizontalBorderColor ?? C.borderColor, C.bgHeader), ft.stroke(), Ke && e9(ft, i, s, o, a, u, d, h, m, E, w, x, N, P, I, C), rt && vF(ft, i, s, a, u, d, _e, h, C, Ut, $, ht, U, N, Ae, L, P);
|
|
69535
69548
|
};
|
|
69536
69549
|
if (ze !== void 0) {
|
|
69537
69550
|
const mn = _e[_e.length - 1].sourceIndex + 1, mt = ze.hasItemInRegion([
|
|
@@ -69561,26 +69574,26 @@ function n9(t, e) {
|
|
|
69561
69574
|
},
|
|
69562
69575
|
{
|
|
69563
69576
|
x: o,
|
|
69564
|
-
y: P -
|
|
69577
|
+
y: P - N,
|
|
69565
69578
|
width: mn,
|
|
69566
|
-
height:
|
|
69567
|
-
when:
|
|
69579
|
+
height: N,
|
|
69580
|
+
when: N > 0
|
|
69568
69581
|
}
|
|
69569
69582
|
]), on = ($t) => {
|
|
69570
|
-
VB($t, _e, h, s, Ut, u, d, a, P, ht, U, M, j, _, W, b,
|
|
69583
|
+
VB($t, _e, h, s, Ut, u, d, a, P, ht, U, M, j, _, W, b, N, Ae, ve, ze, $, R, I, q, be, ce, fe, H, oe, C, lt, Ee, Ce, S, Mt);
|
|
69571
69584
|
const En = $.current;
|
|
69572
|
-
L !== !1 && L !== void 0 && b && En !== void 0 && ze.has(lP(En.range)) && vF($t, i, s, a, u, d, _e, h, C, Ut, $, ht, U,
|
|
69585
|
+
L !== !1 && L !== void 0 && b && En !== void 0 && ze.has(lP(En.range)) && vF($t, i, s, a, u, d, _e, h, C, Ut, $, ht, U, N, Ae, L, P);
|
|
69573
69586
|
};
|
|
69574
69587
|
mt && (on(xt), Lt !== null && (Lt.save(), Lt.scale(Ct, Ct), Lt.textBaseline = "middle", on(Lt), Lt.restore()), ze.hasHeader() && (que(ft, _e, i, w, Ut, u, d, a, ze), vt())), xt.restore(), ft.restore();
|
|
69575
69588
|
return;
|
|
69576
69589
|
}
|
|
69577
69590
|
if ((wt !== !0 || o !== Rt?.cellXOffset || u !== Rt?.translateX || rt !== Rt?.mustDrawFocusOnHeader || Ke !== Rt?.mustDrawHighlightRingsOnHeader) && vt(), wt === !0) {
|
|
69578
69591
|
Ma(zt !== void 0 && Rt !== void 0);
|
|
69579
|
-
const { regions: mn } = Hue(xt, zt, zt === qe ? Rt.aBufferScroll : Rt.bBufferScroll, zt === qe ? Rt.bBufferScroll : Rt.aBufferScroll, Rt, o, a, u, d,
|
|
69592
|
+
const { regions: mn } = Hue(xt, zt, zt === qe ? Rt.aBufferScroll : Rt.bBufferScroll, zt === qe ? Rt.bBufferScroll : Rt.aBufferScroll, Rt, o, a, u, d, N, i, s, P, Ut, Ct, h, _e, x, sn);
|
|
69580
69593
|
ve = mn;
|
|
69581
69594
|
} else wt !== !1 && (Ma(Rt !== void 0), ve = Vue(Rt, o, a, u, d, i, s, Ut, _e, wt));
|
|
69582
|
-
Uue(xt, _e, i, s,
|
|
69583
|
-
const $e = e9(xt, i, s, o, a, u, d, h, m, E, w, x,
|
|
69595
|
+
Uue(xt, _e, i, s, N, P, D, ht, C);
|
|
69596
|
+
const $e = e9(xt, i, s, o, a, u, d, h, m, E, w, x, N, P, I, C), ct = b ? vF(xt, i, s, a, u, d, _e, h, C, Ut, $, ht, U, N, Ae, L, P) : void 0;
|
|
69584
69597
|
if (xt.fillStyle = C.bgCell, ve.length > 0) {
|
|
69585
69598
|
xt.beginPath();
|
|
69586
69599
|
for (const mn of ve)
|
|
@@ -69588,15 +69601,15 @@ function n9(t, e) {
|
|
|
69588
69601
|
xt.clip(), xt.fill(), xt.beginPath();
|
|
69589
69602
|
} else
|
|
69590
69603
|
xt.fillRect(0, 0, i, s);
|
|
69591
|
-
const It = VB(xt, _e, h, s, Ut, u, d, a, P, ht, U, M, j, _, W, b,
|
|
69592
|
-
zue(xt, _e, h, i, s, Ut, u, d, a, P, ht, j, $.rows, _,
|
|
69593
|
-
const Xt = jue(_e, s, Ut, u, d, a, P, ht,
|
|
69604
|
+
const It = VB(xt, _e, h, s, Ut, u, d, a, P, ht, U, M, j, _, W, b, N, Ae, ve, ze, $, R, I, q, be, ce, fe, H, oe, C, lt, Ee, Ce, S, Mt);
|
|
69605
|
+
zue(xt, _e, h, i, s, Ut, u, d, a, P, ht, j, $.rows, _, N, Ae, ve, ze, C), $ue(xt, _e, a, u, d, i, s, ve, Ut, ht, j, D, N, P, C), JS(xt, _e, a, u, d, i, s, ve, It, w, Ut, ht, j, D, N, P, C), $e?.(), ct?.(), k && an !== "none" && Tu(_e, 0, u, 0, Ut, (mn, mt) => mn.sourceIndex === O ? (t9(ft, mt + mn.width, 0, Ut + 1, Pa(C.resizeIndicatorColor ?? C.accentLight, C.bgHeader)), an === "full" && t9(xt, mt + mn.width, Ut, s, Pa(C.resizeIndicatorColor ?? C.accentLight, C.bgCell)), !0) : !1), Lt !== null && (Lt.fillStyle = C.bgCell, Lt.fillRect(0, 0, i, s), Lt.drawImage(xt.canvas, 0, 0));
|
|
69606
|
+
const Xt = jue(_e, s, Ut, u, d, a, P, ht, N, Ae);
|
|
69594
69607
|
q?.setWindow({
|
|
69595
69608
|
x: o,
|
|
69596
69609
|
y: a,
|
|
69597
69610
|
width: _e.length,
|
|
69598
69611
|
height: Xt - a
|
|
69599
|
-
}, m, Array.from({ length:
|
|
69612
|
+
}, m, Array.from({ length: N }, (mn, mt) => P - 1 - mt));
|
|
69600
69613
|
const ln = Rt !== void 0 && (o !== Rt.cellXOffset || u !== Rt.translateX), Ln = Rt !== void 0 && (a !== Rt.cellYOffset || d !== Rt.translateY);
|
|
69601
69614
|
Z.current = {
|
|
69602
69615
|
cellXOffset: o,
|
|
@@ -69707,7 +69720,7 @@ function UP(t, e) {
|
|
|
69707
69720
|
return t === e ? !0 : t?.kind === "out-of-bounds" ? t?.kind === e?.kind && t?.location[0] === e?.location[0] && t?.location[1] === e?.location[1] && t?.region[0] === e?.region[0] && t?.region[1] === e?.region[1] : t?.kind === e?.kind && t?.location[0] === e?.location[0] && t?.location[1] === e?.location[1];
|
|
69708
69721
|
}
|
|
69709
69722
|
const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibilityString(t) ?? "", ede = (t, e) => {
|
|
69710
|
-
const { width: n, height: r, accessibilityHeight: i, columns: s, cellXOffset: o, cellYOffset: a, headerHeight: u, fillHandle: d = !1, groupHeaderHeight: h, rowHeight: g, rows: m, getCellContent: y, getRowThemeOverride: C, onHeaderMenuClick: b, onHeaderIndicatorClick: E, enableGroups: w, isFilling: _, onCanvasFocused: x, onCanvasBlur: D, isFocused: S, selection: k, freezeColumns: $, onContextMenu: L, freezeTrailingRows:
|
|
69723
|
+
const { width: n, height: r, accessibilityHeight: i, columns: s, cellXOffset: o, cellYOffset: a, headerHeight: u, fillHandle: d = !1, groupHeaderHeight: h, rowHeight: g, rows: m, getCellContent: y, getRowThemeOverride: C, onHeaderMenuClick: b, onHeaderIndicatorClick: E, enableGroups: w, isFilling: _, onCanvasFocused: x, onCanvasBlur: D, isFocused: S, selection: k, freezeColumns: $, onContextMenu: L, freezeTrailingRows: N, fixedShadowX: P = !0, fixedShadowY: U = !0, drawFocusRing: M, onMouseDown: j, onMouseUp: W, onMouseMoveRaw: Y, onMouseMove: R, onItemHovered: H, dragAndDropState: I, firstColAccessible: O, onKeyDown: q, onKeyUp: Z, highlightRegions: ce, canvasRef: oe, onDragStart: fe, onDragEnd: be, eventTargetRef: ge, isResizing: Ae, resizeColumn: ke, isDragging: lt, isDraggable: Ee = !1, allowResize: Ce, disabledRows: Xe, hasAppendRow: ot, getGroupDetails: _t, theme: ze, prelightCells: Mt, headerIcons: an, verticalBorder: sn, drawCell: Ct, drawHeader: wt, onCellFocused: At, onDragOverCell: Vt, onDrop: Ut, onDragLeave: Qt, imageWindowLoader: qe, smoothScrollX: xe = !1, smoothScrollY: Rt = !1, experimental: Lt, getCellRenderer: ft, resizeIndicator: xt = "full" } = t, Tt = t.translateX ?? 0, zt = t.translateY ?? 0, ht = Math.max($, Math.min(s.length - 1, o)), _e = A.useRef(null), ve = A.useRef(Lt?.eventTarget ?? window), rt = ve.current, Ke = qe, vt = A.useRef(), [$e, ct] = A.useState(!1), It = A.useRef([]), Xt = A.useRef(), [ln, Ln] = A.useState(), [mn, mt] = A.useState(), on = A.useRef(null), [$t, En] = A.useState(), [yn, li] = A.useState(!1), $r = A.useRef(yn);
|
|
69711
69724
|
$r.current = yn;
|
|
69712
69725
|
const Yr = A.useMemo(() => new Bce(an, () => {
|
|
69713
69726
|
rr.current = void 0, Io.current();
|
|
@@ -69721,7 +69734,7 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69721
69734
|
const vn = ne.getBoundingClientRect();
|
|
69722
69735
|
if (Bt >= zn.length || fn >= m)
|
|
69723
69736
|
return;
|
|
69724
|
-
const Wt = vn.width / n, Gt = WA(Bt, fn, n, r, h, pi, ht, a, Tt, zt, m, $,
|
|
69737
|
+
const Wt = vn.width / n, Gt = WA(Bt, fn, n, r, h, pi, ht, a, Tt, zt, m, $, N, zn, g);
|
|
69725
69738
|
return Wt !== 1 && (Gt.x *= Wt, Gt.y *= Wt, Gt.width *= Wt, Gt.height *= Wt), Gt.x += vn.x, Gt.y += vn.y, Gt;
|
|
69726
69739
|
}, [
|
|
69727
69740
|
n,
|
|
@@ -69734,7 +69747,7 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69734
69747
|
zt,
|
|
69735
69748
|
m,
|
|
69736
69749
|
$,
|
|
69737
|
-
|
|
69750
|
+
N,
|
|
69738
69751
|
zn,
|
|
69739
69752
|
g
|
|
69740
69753
|
]), Vn = A.useCallback((ne, Bt, fn, vn) => {
|
|
@@ -69742,7 +69755,7 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69742
69755
|
let xi = 0, Vr = 0;
|
|
69743
69756
|
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;
|
|
69744
69757
|
Nn && (xi = vn.button, Vr = vn.buttons);
|
|
69745
|
-
const pn = ule(wn, Qn, Tt), Yn = dle(gn, r, w, u, h, m, g, a, zt,
|
|
69758
|
+
const pn = ule(wn, Qn, Tt), Yn = dle(gn, r, w, u, h, m, g, a, zt, N), _r = vn?.shiftKey === !0, xs = vn?.ctrlKey === !0, ns = vn?.metaKey === !0, bi = [
|
|
69746
69759
|
wn < 0 ? -1 : n < wn ? 1 : 0,
|
|
69747
69760
|
gn < pi ? -1 : r < gn ? 1 : 0
|
|
69748
69761
|
];
|
|
@@ -69850,7 +69863,7 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69850
69863
|
g,
|
|
69851
69864
|
a,
|
|
69852
69865
|
zt,
|
|
69853
|
-
|
|
69866
|
+
N,
|
|
69854
69867
|
kn,
|
|
69855
69868
|
d,
|
|
69856
69869
|
k,
|
|
@@ -69905,7 +69918,7 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69905
69918
|
hasAppendRow: ot,
|
|
69906
69919
|
overrideCursor: vn,
|
|
69907
69920
|
maxScaleFactor: _i,
|
|
69908
|
-
freezeTrailingRows:
|
|
69921
|
+
freezeTrailingRows: N,
|
|
69909
69922
|
rows: m,
|
|
69910
69923
|
drawFocus: M,
|
|
69911
69924
|
getCellContent: y,
|
|
@@ -69956,7 +69969,7 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
69956
69969
|
S,
|
|
69957
69970
|
k,
|
|
69958
69971
|
d,
|
|
69959
|
-
|
|
69972
|
+
N,
|
|
69960
69973
|
m,
|
|
69961
69974
|
M,
|
|
69962
69975
|
_i,
|
|
@@ -70143,12 +70156,12 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
70143
70156
|
const Qn = [Wt.location, [Wt.localEventX, Wt.localEventY]];
|
|
70144
70157
|
Gt(Qn, In), Zn.current = Qn, gn && es(new Dg([Wt.location]));
|
|
70145
70158
|
}
|
|
70146
|
-
const wn = Wt.location[0] >= (
|
|
70159
|
+
const wn = Wt.location[0] >= (O ? 0 : 1);
|
|
70147
70160
|
mt(Wt.kind === gu && Wt.isEdge && wn && Ce === !0), Ar(Wt.kind === "cell" && Wt.isFillHandle), Y?.(ne), R(Wt);
|
|
70148
70161
|
}, [
|
|
70149
70162
|
ge,
|
|
70150
70163
|
Vn,
|
|
70151
|
-
|
|
70164
|
+
O,
|
|
70152
70165
|
Ce,
|
|
70153
70166
|
Y,
|
|
70154
70167
|
R,
|
|
@@ -70272,9 +70285,9 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
70272
70285
|
const Bt = _e.current;
|
|
70273
70286
|
if (Ut !== void 0 && ne.preventDefault(), Bt === null || Vt === void 0)
|
|
70274
70287
|
return;
|
|
70275
|
-
const fn = Vn(Bt, ne.clientX, ne.clientY), [vn, Wt] = fn.location, Gt = vn - (
|
|
70288
|
+
const fn = Vn(Bt, ne.clientX, ne.clientY), [vn, Wt] = fn.location, Gt = vn - (O ? 0 : 1), [wn, gn] = zo.current ?? [];
|
|
70276
70289
|
(wn !== Gt || gn !== Wt) && (zo.current = [Gt, Wt], Vt([Gt, Wt], ne.dataTransfer));
|
|
70277
|
-
}, [
|
|
70290
|
+
}, [O, Vn, Vt, Ut]);
|
|
70278
70291
|
Go("dragover", sl, ge?.current ?? null, !1, !1);
|
|
70279
70292
|
const Va = A.useCallback(() => {
|
|
70280
70293
|
zo.current = void 0, be?.();
|
|
@@ -70285,9 +70298,9 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
70285
70298
|
if (Bt === null || Ut === void 0)
|
|
70286
70299
|
return;
|
|
70287
70300
|
ne.preventDefault();
|
|
70288
|
-
const fn = Vn(Bt, ne.clientX, ne.clientY), [vn, Wt] = fn.location, Gt = vn - (
|
|
70301
|
+
const fn = Vn(Bt, ne.clientX, ne.clientY), [vn, Wt] = fn.location, Gt = vn - (O ? 0 : 1);
|
|
70289
70302
|
Ut([Gt, Wt], ne.dataTransfer);
|
|
70290
|
-
}, [
|
|
70303
|
+
}, [O, Vn, Ut]);
|
|
70291
70304
|
Go("drop", Dr, ge?.current ?? null, !1, !1);
|
|
70292
70305
|
const qi = A.useCallback(() => {
|
|
70293
70306
|
Qt?.();
|
|
@@ -70325,8 +70338,8 @@ const Jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
|
|
|
70325
70338
|
if (n < 50 || Lt?.disableAccessibilityTree === !0)
|
|
70326
70339
|
return null;
|
|
70327
70340
|
let ne = VA(zn, ht, n, I, Tt);
|
|
70328
|
-
const Bt =
|
|
70329
|
-
!
|
|
70341
|
+
const Bt = O ? 0 : -1;
|
|
70342
|
+
!O && ne[0]?.sourceIndex === 0 && (ne = ne.slice(1));
|
|
70330
70343
|
const [fn, vn] = k.current?.cell ?? [], Wt = k.current?.range, Gt = ne.map((gn) => gn.sourceIndex), wn = Gu(a, Math.min(m, a + i));
|
|
70331
70344
|
return fn !== void 0 && vn !== void 0 && !(Gt.includes(fn) && wn.includes(vn)) && qn(null), A.createElement(
|
|
70332
70345
|
"table",
|
|
@@ -70430,7 +70443,7 @@ function Qh(t, e, n, r) {
|
|
|
70430
70443
|
return Za(Math.round(e - (t.growOffset ?? 0)), Math.ceil(n), Math.floor(r));
|
|
70431
70444
|
}
|
|
70432
70445
|
const nde = (t) => {
|
|
70433
|
-
const [e, n] = A.useState(), [r, i] = A.useState(), [s, o] = A.useState(), [a, u] = A.useState(), [d, h] = A.useState(!1), [g, m] = A.useState(), [y, C] = A.useState(), [b, E] = A.useState(), [w, _] = A.useState(!1), [x, D] = A.useState(), { onHeaderMenuClick: S, onHeaderIndicatorClick: k, getCellContent: $, onColumnMoved: L, onColumnResize:
|
|
70446
|
+
const [e, n] = A.useState(), [r, i] = A.useState(), [s, o] = A.useState(), [a, u] = A.useState(), [d, h] = A.useState(!1), [g, m] = A.useState(), [y, C] = A.useState(), [b, E] = A.useState(), [w, _] = A.useState(!1), [x, D] = A.useState(), { onHeaderMenuClick: S, onHeaderIndicatorClick: k, getCellContent: $, onColumnMoved: L, onColumnResize: N, onColumnResizeStart: P, onColumnResizeEnd: U, gridRef: M, maxColumnWidth: j, minColumnWidth: W, onRowMoved: Y, lockColumns: R, onColumnProposeMove: H, onMouseDown: I, onMouseUp: O, onItemHovered: q, onDragStart: Z, canvasRef: ce } = t, oe = (N ?? U ?? P) !== void 0, { columns: fe, selection: be } = t, ge = be.columns, Ae = A.useCallback((Ct) => {
|
|
70434
70447
|
const [wt, At] = Ct.location;
|
|
70435
70448
|
s !== void 0 && a !== wt && wt >= R ? (h(!0), u(wt)) : y !== void 0 && At !== void 0 ? (_(!0), E(Math.max(0, At))) : r === void 0 && !d && !w && q?.(Ct);
|
|
70436
70449
|
}, [s, y, a, q, R, r, d, w]), ke = L !== void 0, lt = A.useCallback((Ct) => {
|
|
@@ -70463,7 +70476,7 @@ const nde = (t) => {
|
|
|
70463
70476
|
if (Vt === r)
|
|
70464
70477
|
continue;
|
|
70465
70478
|
const Ut = fe[Vt], Qt = Qh(Ut, Xe.current, W, j);
|
|
70466
|
-
|
|
70479
|
+
N?.(Ut, Qt, Vt, Qt + (Ut.growOffset ?? 0));
|
|
70467
70480
|
}
|
|
70468
70481
|
const At = Qh(fe[r], Xe.current, W, j);
|
|
70469
70482
|
if (U?.(fe[r], At, r, At + (fe[r].growOffset ?? 0)), ge.hasIndex(r))
|
|
@@ -70476,9 +70489,9 @@ const nde = (t) => {
|
|
|
70476
70489
|
}
|
|
70477
70490
|
ot(), s !== void 0 && a !== void 0 && H?.(s, a) !== !1 && L?.(s, a), y !== void 0 && b !== void 0 && Y?.(y, b);
|
|
70478
70491
|
}
|
|
70479
|
-
|
|
70492
|
+
O?.(Ct, wt);
|
|
70480
70493
|
}, [
|
|
70481
|
-
|
|
70494
|
+
O,
|
|
70482
70495
|
r,
|
|
70483
70496
|
s,
|
|
70484
70497
|
a,
|
|
@@ -70489,7 +70502,7 @@ const nde = (t) => {
|
|
|
70489
70502
|
fe,
|
|
70490
70503
|
W,
|
|
70491
70504
|
j,
|
|
70492
|
-
|
|
70505
|
+
N,
|
|
70493
70506
|
L,
|
|
70494
70507
|
Y,
|
|
70495
70508
|
ot,
|
|
@@ -70508,12 +70521,12 @@ const nde = (t) => {
|
|
|
70508
70521
|
Math.abs(Ct.clientY - x) > 20 && _(!0);
|
|
70509
70522
|
else if (r !== void 0 && e !== void 0 && wt) {
|
|
70510
70523
|
const Vt = wt.getBoundingClientRect().width / wt.offsetWidth, Ut = (Ct.clientX - e) / Vt, Qt = fe[r], qe = Qh(Qt, Ut, W, j);
|
|
70511
|
-
if (
|
|
70524
|
+
if (N?.(Qt, qe, r, qe + (Qt.growOffset ?? 0)), Xe.current = Ut, ge?.first() === r)
|
|
70512
70525
|
for (const xe of ge) {
|
|
70513
70526
|
if (xe === r)
|
|
70514
70527
|
continue;
|
|
70515
70528
|
const Rt = fe[xe], Lt = Qh(Rt, Xe.current, W, j);
|
|
70516
|
-
|
|
70529
|
+
N?.(Rt, Lt, xe, Lt + (Rt.growOffset ?? 0));
|
|
70517
70530
|
}
|
|
70518
70531
|
}
|
|
70519
70532
|
}, [
|
|
@@ -70526,7 +70539,7 @@ const nde = (t) => {
|
|
|
70526
70539
|
fe,
|
|
70527
70540
|
W,
|
|
70528
70541
|
j,
|
|
70529
|
-
|
|
70542
|
+
N,
|
|
70530
70543
|
ge,
|
|
70531
70544
|
ce
|
|
70532
70545
|
]), an = A.useCallback((Ct, wt) => {
|
|
@@ -70631,7 +70644,7 @@ const ude = (t) => {
|
|
|
70631
70644
|
scrollLeft: 0,
|
|
70632
70645
|
scrollTop: 0,
|
|
70633
70646
|
lockDirection: void 0
|
|
70634
|
-
}),
|
|
70647
|
+
}), N = A.useRef(null), P = cde(200), [U, M] = A.useState(!0), j = A.useRef(0);
|
|
70635
70648
|
A.useLayoutEffect(() => {
|
|
70636
70649
|
if (!U || P || L.current.lockDirection === void 0) return;
|
|
70637
70650
|
const be = S.current;
|
|
@@ -70663,7 +70676,7 @@ const ude = (t) => {
|
|
|
70663
70676
|
y: sn,
|
|
70664
70677
|
width: ot - h,
|
|
70665
70678
|
height: _t - d,
|
|
70666
|
-
paddingRight:
|
|
70679
|
+
paddingRight: N.current?.clientWidth ?? 0
|
|
70667
70680
|
});
|
|
70668
70681
|
}, [d, h, r, s, u, P]);
|
|
70669
70682
|
ide(y && n1.value, W, S);
|
|
@@ -70676,10 +70689,10 @@ const ude = (t) => {
|
|
|
70676
70689
|
const I = A.useCallback((be) => {
|
|
70677
70690
|
S.current = be, C !== void 0 && (C.current = be);
|
|
70678
70691
|
}, [C]);
|
|
70679
|
-
let
|
|
70692
|
+
let O = 0, q = 0;
|
|
70680
70693
|
const Z = Math.min(r, ade);
|
|
70681
70694
|
for (E.push(A.createElement("div", {
|
|
70682
|
-
key:
|
|
70695
|
+
key: O++,
|
|
70683
70696
|
style: {
|
|
70684
70697
|
width: i,
|
|
70685
70698
|
height: 0
|
|
@@ -70687,7 +70700,7 @@ const ude = (t) => {
|
|
|
70687
70700
|
})); q < Z; ) {
|
|
70688
70701
|
const be = Math.min(lde, Z - q);
|
|
70689
70702
|
E.push(A.createElement("div", {
|
|
70690
|
-
key:
|
|
70703
|
+
key: O++,
|
|
70691
70704
|
style: {
|
|
70692
70705
|
width: 0,
|
|
70693
70706
|
height: be
|
|
@@ -70726,7 +70739,7 @@ const ude = (t) => {
|
|
|
70726
70739
|
}, E), g !== void 0 && A.createElement(A.Fragment, null, !_ && A.createElement("div", {
|
|
70727
70740
|
className: "dvn-spacer"
|
|
70728
70741
|
}), A.createElement("div", {
|
|
70729
|
-
ref:
|
|
70742
|
+
ref: N,
|
|
70730
70743
|
style: {
|
|
70731
70744
|
height: fe,
|
|
70732
70745
|
maxHeight: n - Math.ceil(k % 1),
|
|
@@ -70741,7 +70754,7 @@ const ude = (t) => {
|
|
|
70741
70754
|
}
|
|
70742
70755
|
}, g))))));
|
|
70743
70756
|
}, dde = (t) => {
|
|
70744
|
-
const { columns: e, rows: n, rowHeight: r, headerHeight: i, groupHeaderHeight: s, enableGroups: o, freezeColumns: a, experimental: u, nonGrowWidth: d, clientSize: h, className: g, onVisibleRegionChanged: m, scrollRef: y, preventDiagonalScrolling: C, rightElement: b, rightElementProps: E, overscrollX: w, overscrollY: _, initialSize: x, smoothScrollX: D = !1, smoothScrollY: S = !1, isDraggable: k } = t, { paddingRight: $, paddingBottom: L } = u ?? {}, [
|
|
70757
|
+
const { columns: e, rows: n, rowHeight: r, headerHeight: i, groupHeaderHeight: s, enableGroups: o, freezeColumns: a, experimental: u, nonGrowWidth: d, clientSize: h, className: g, onVisibleRegionChanged: m, scrollRef: y, preventDiagonalScrolling: C, rightElement: b, rightElementProps: E, overscrollX: w, overscrollY: _, initialSize: x, smoothScrollX: D = !1, smoothScrollY: S = !1, isDraggable: k } = t, { paddingRight: $, paddingBottom: L } = u ?? {}, [N, P] = h, U = A.useRef(), M = A.useRef(), j = A.useRef(), W = A.useRef(), Y = d + Math.max(0, w ?? 0);
|
|
70745
70758
|
let R = o ? i + s : i;
|
|
70746
70759
|
if (typeof r == "number")
|
|
70747
70760
|
R += n * r;
|
|
@@ -70799,15 +70812,15 @@ const ude = (t) => {
|
|
|
70799
70812
|
width: oe - fe,
|
|
70800
70813
|
height: ke - Ae
|
|
70801
70814
|
}, q.width, q.height, q.paddingRight ?? 0, ce, ge), U.current = lt, M.current = ce, j.current = ge, W.current = [q.width, q.height]);
|
|
70802
|
-
}, [e, r, n, m, a, D, S]),
|
|
70815
|
+
}, [e, r, n, m, a, D, S]), O = A.useCallback((q) => {
|
|
70803
70816
|
H.current = q, I();
|
|
70804
70817
|
}, [I]);
|
|
70805
70818
|
return A.useEffect(() => {
|
|
70806
70819
|
I();
|
|
70807
70820
|
}, [I]), A.createElement(
|
|
70808
70821
|
ude,
|
|
70809
|
-
{ scrollRef: y, className: g, kineticScrollPerfHack: u?.kineticScrollPerfHack, preventDiagonalScrolling: C, draggable: k === !0 || typeof k == "string", scrollWidth: Y + ($ ?? 0), scrollHeight: R + (L ?? 0), clientHeight: P, rightElement: b, paddingBottom: L, paddingRight: $, rightElementProps: E, update:
|
|
70810
|
-
A.createElement(nde, { eventTargetRef: y, width:
|
|
70822
|
+
{ scrollRef: y, className: g, kineticScrollPerfHack: u?.kineticScrollPerfHack, preventDiagonalScrolling: C, draggable: k === !0 || typeof k == "string", scrollWidth: Y + ($ ?? 0), scrollHeight: R + (L ?? 0), clientHeight: P, rightElement: b, paddingBottom: L, paddingRight: $, rightElementProps: E, update: O, initialSize: x },
|
|
70823
|
+
A.createElement(nde, { eventTargetRef: y, width: N, height: P, accessibilityHeight: t.accessibilityHeight, canvasRef: t.canvasRef, cellXOffset: t.cellXOffset, cellYOffset: t.cellYOffset, columns: t.columns, disabledRows: t.disabledRows, enableGroups: t.enableGroups, fillHandle: t.fillHandle, firstColAccessible: t.firstColAccessible, fixedShadowX: t.fixedShadowX, fixedShadowY: t.fixedShadowY, freezeColumns: t.freezeColumns, getCellContent: t.getCellContent, getCellRenderer: t.getCellRenderer, getGroupDetails: t.getGroupDetails, getRowThemeOverride: t.getRowThemeOverride, groupHeaderHeight: t.groupHeaderHeight, headerHeight: t.headerHeight, highlightRegions: t.highlightRegions, imageWindowLoader: t.imageWindowLoader, isFilling: t.isFilling, isFocused: t.isFocused, lockColumns: t.lockColumns, maxColumnWidth: t.maxColumnWidth, minColumnWidth: t.minColumnWidth, onHeaderMenuClick: t.onHeaderMenuClick, onHeaderIndicatorClick: t.onHeaderIndicatorClick, onMouseMove: t.onMouseMove, prelightCells: t.prelightCells, rowHeight: t.rowHeight, rows: t.rows, selection: t.selection, theme: t.theme, freezeTrailingRows: t.freezeTrailingRows, hasAppendRow: t.hasAppendRow, translateX: t.translateX, translateY: t.translateY, onColumnProposeMove: t.onColumnProposeMove, verticalBorder: t.verticalBorder, drawFocusRing: t.drawFocusRing, drawHeader: t.drawHeader, drawCell: t.drawCell, experimental: t.experimental, gridRef: t.gridRef, headerIcons: t.headerIcons, isDraggable: t.isDraggable, onCanvasBlur: t.onCanvasBlur, onCanvasFocused: t.onCanvasFocused, onCellFocused: t.onCellFocused, onColumnMoved: t.onColumnMoved, onColumnResize: t.onColumnResize, onColumnResizeEnd: t.onColumnResizeEnd, onColumnResizeStart: t.onColumnResizeStart, onContextMenu: t.onContextMenu, onDragEnd: t.onDragEnd, onDragLeave: t.onDragLeave, onDragOverCell: t.onDragOverCell, onDragStart: t.onDragStart, onDrop: t.onDrop, onItemHovered: t.onItemHovered, onKeyDown: t.onKeyDown, onKeyUp: t.onKeyUp, onMouseDown: t.onMouseDown, onMouseUp: t.onMouseUp, onRowMoved: t.onRowMoved, smoothScrollX: t.smoothScrollX, smoothScrollY: t.smoothScrollY, resizeIndicator: t.resizeIndicator })
|
|
70811
70824
|
);
|
|
70812
70825
|
}, fde = /* @__PURE__ */ za("div")({
|
|
70813
70826
|
name: "SearchWrapper",
|
|
@@ -70838,7 +70851,7 @@ const ude = (t) => {
|
|
|
70838
70851
|
}, [r, a]);
|
|
70839
70852
|
const S = A.useRef();
|
|
70840
70853
|
S.current === void 0 && (S.current = new AbortController());
|
|
70841
|
-
const k = A.useRef(), [$, L] = A.useState([]),
|
|
70854
|
+
const k = A.useRef(), [$, L] = A.useState([]), N = a ?? $, P = A.useCallback(() => {
|
|
70842
70855
|
k.current !== void 0 && (window.cancelAnimationFrame(k.current), k.current = void 0), S.current !== void 0 && S.current.abort(), S.current = new AbortController();
|
|
70843
70856
|
}, []), U = A.useRef(n);
|
|
70844
70857
|
U.current = n;
|
|
@@ -70910,27 +70923,27 @@ const ude = (t) => {
|
|
|
70910
70923
|
x({
|
|
70911
70924
|
..._,
|
|
70912
70925
|
selectedIndex: ce
|
|
70913
|
-
}), h?.(
|
|
70914
|
-
}, [_, h,
|
|
70926
|
+
}), h?.(N, ce);
|
|
70927
|
+
}, [_, h, N]), R = A.useCallback((Z) => {
|
|
70915
70928
|
if (Z?.stopPropagation?.(), _ === void 0 || _.results === 0)
|
|
70916
70929
|
return;
|
|
70917
70930
|
let ce = (_.selectedIndex - 1) % _.results;
|
|
70918
70931
|
ce < 0 && (ce += _.results), x({
|
|
70919
70932
|
..._,
|
|
70920
70933
|
selectedIndex: ce
|
|
70921
|
-
}), h?.(
|
|
70922
|
-
}, [h,
|
|
70934
|
+
}), h?.(N, ce);
|
|
70935
|
+
}, [h, N, _]), H = A.useCallback((Z) => {
|
|
70923
70936
|
(Z.ctrlKey || Z.metaKey) && Z.nativeEvent.code === "KeyF" || Z.key === "Escape" ? (j(), Z.stopPropagation(), Z.preventDefault()) : Z.key === "Enter" && (Z.shiftKey ? R() : Y());
|
|
70924
70937
|
}, [j, Y, R]);
|
|
70925
70938
|
A.useEffect(() => () => {
|
|
70926
70939
|
P();
|
|
70927
70940
|
}, [P]);
|
|
70928
|
-
const [I,
|
|
70941
|
+
const [I, O] = A.useState(!1);
|
|
70929
70942
|
A.useEffect(() => {
|
|
70930
70943
|
if (g)
|
|
70931
|
-
|
|
70944
|
+
O(!0);
|
|
70932
70945
|
else {
|
|
70933
|
-
const Z = setTimeout(() =>
|
|
70946
|
+
const Z = setTimeout(() => O(!1), 150);
|
|
70934
70947
|
return () => clearTimeout(Z);
|
|
70935
70948
|
}
|
|
70936
70949
|
}, [g]);
|
|
@@ -70988,7 +71001,7 @@ const ude = (t) => {
|
|
|
70988
71001
|
return A.createElement(
|
|
70989
71002
|
A.Fragment,
|
|
70990
71003
|
null,
|
|
70991
|
-
A.createElement(dde, { prelightCells:
|
|
71004
|
+
A.createElement(dde, { prelightCells: N, accessibilityHeight: t.accessibilityHeight, canvasRef: t.canvasRef, cellXOffset: t.cellXOffset, cellYOffset: t.cellYOffset, className: t.className, clientSize: t.clientSize, columns: t.columns, disabledRows: t.disabledRows, enableGroups: t.enableGroups, fillHandle: t.fillHandle, firstColAccessible: t.firstColAccessible, nonGrowWidth: t.nonGrowWidth, fixedShadowX: t.fixedShadowX, fixedShadowY: t.fixedShadowY, freezeColumns: t.freezeColumns, getCellContent: t.getCellContent, getCellRenderer: t.getCellRenderer, getGroupDetails: t.getGroupDetails, getRowThemeOverride: t.getRowThemeOverride, groupHeaderHeight: t.groupHeaderHeight, headerHeight: t.headerHeight, highlightRegions: t.highlightRegions, imageWindowLoader: t.imageWindowLoader, initialSize: t.initialSize, isFilling: t.isFilling, isFocused: t.isFocused, lockColumns: t.lockColumns, maxColumnWidth: t.maxColumnWidth, minColumnWidth: t.minColumnWidth, onHeaderMenuClick: t.onHeaderMenuClick, onHeaderIndicatorClick: t.onHeaderIndicatorClick, onMouseMove: t.onMouseMove, onVisibleRegionChanged: t.onVisibleRegionChanged, overscrollX: t.overscrollX, overscrollY: t.overscrollY, preventDiagonalScrolling: t.preventDiagonalScrolling, rightElement: t.rightElement, rightElementProps: t.rightElementProps, rowHeight: t.rowHeight, rows: t.rows, scrollRef: t.scrollRef, selection: t.selection, theme: t.theme, freezeTrailingRows: t.freezeTrailingRows, hasAppendRow: t.hasAppendRow, translateX: t.translateX, translateY: t.translateY, verticalBorder: t.verticalBorder, onColumnProposeMove: t.onColumnProposeMove, drawFocusRing: t.drawFocusRing, drawCell: t.drawCell, drawHeader: t.drawHeader, experimental: t.experimental, gridRef: t.gridRef, headerIcons: t.headerIcons, isDraggable: t.isDraggable, onCanvasBlur: t.onCanvasBlur, onCanvasFocused: t.onCanvasFocused, onCellFocused: t.onCellFocused, onColumnMoved: t.onColumnMoved, onColumnResize: t.onColumnResize, onColumnResizeEnd: t.onColumnResizeEnd, onColumnResizeStart: t.onColumnResizeStart, onContextMenu: t.onContextMenu, onDragEnd: t.onDragEnd, onDragLeave: t.onDragLeave, onDragOverCell: t.onDragOverCell, onDragStart: t.onDragStart, onDrop: t.onDrop, onItemHovered: t.onItemHovered, onKeyDown: t.onKeyDown, onKeyUp: t.onKeyUp, onMouseDown: t.onMouseDown, onMouseUp: t.onMouseUp, onRowMoved: t.onRowMoved, smoothScrollX: t.smoothScrollX, smoothScrollY: t.smoothScrollY, resizeIndicator: t.resizeIndicator }),
|
|
70992
71005
|
q
|
|
70993
71006
|
);
|
|
70994
71007
|
};
|
|
@@ -71917,7 +71930,7 @@ function jde(t, e, n, r, i) {
|
|
|
71917
71930
|
scrollRef: m
|
|
71918
71931
|
};
|
|
71919
71932
|
}
|
|
71920
|
-
const Xde = A.lazy(async () => await import("./data-grid-overlay-editor-
|
|
71933
|
+
const Xde = A.lazy(async () => await import("./data-grid-overlay-editor-B4lQDYkP.js"));
|
|
71921
71934
|
let Yde = 0;
|
|
71922
71935
|
function Gde(t) {
|
|
71923
71936
|
return $le(NB(NB(t).filter((e) => e.span !== void 0).map((e) => Gu((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
|
|
@@ -71947,7 +71960,7 @@ const U0 = {
|
|
|
71947
71960
|
rows: ur.empty(),
|
|
71948
71961
|
current: void 0
|
|
71949
71962
|
}, Kde = (t, e) => {
|
|
71950
|
-
const [n, r] = A.useState($0), [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: E, columns: w, rows: _, getCellContent: x, onCellClicked: D, onCellActivated: S, onFillPattern: k, onFinishedEditing: $, coercePasteValue: L, drawHeader:
|
|
71963
|
+
const [n, r] = A.useState($0), [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: E, columns: w, rows: _, getCellContent: x, onCellClicked: D, onCellActivated: S, onFillPattern: k, onFinishedEditing: $, coercePasteValue: L, drawHeader: N, drawCell: P, editorBloom: U, onHeaderClicked: M, onColumnProposeMove: j, rangeSelectionColumnSpanning: W = !0, spanRangeBehavior: Y = "default", onGroupHeaderClicked: R, onCellContextMenu: H, className: I, onHeaderContextMenu: O, 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: Kn, getRowThemeOverride: Wi } = Vde(rt, _, Ar, y), Lo = A.useMemo(() => Number.parseFloat(Qo.fontSize), [Qo]), { rowHeight: ws, headerHeight: Us, groupHeaderHeight: Ao, theme: zo, overscrollX: sl, overscrollY: Va } = Ude({
|
|
71951
71964
|
groupHeaderHeight: sr,
|
|
71952
71965
|
headerHeight: _s,
|
|
71953
71966
|
overscrollX: rr,
|
|
@@ -71973,7 +71986,7 @@ const U0 = {
|
|
|
71973
71986
|
Ht?.(w[Se - tt], Te, Se - tt, Ie);
|
|
71974
71987
|
}, [Ht, tt, w])), In = hu(zn, A.useCallback((J, Te, Se, Ie) => {
|
|
71975
71988
|
zn?.(w[Se - tt], Te, Se - tt, Ie);
|
|
71976
|
-
}, [zn, tt, w])), Qn = hu(
|
|
71989
|
+
}, [zn, tt, w])), Qn = hu(N, A.useCallback((J, Te) => N?.({ ...J, columnIndex: J.columnIndex - tt }, Te) ?? !1, [N, tt])), xi = hu(P, A.useCallback((J, Te) => P?.({ ...J, col: J.col - tt }, Te) ?? !1, [P, tt])), Vr = A.useCallback((J) => {
|
|
71977
71990
|
if (Qt !== void 0) {
|
|
71978
71991
|
const Te = Qt(z0(J, -tt));
|
|
71979
71992
|
return typeof Te == "boolean" ? Te : z0(Te, tt);
|
|
@@ -72702,7 +72715,7 @@ const U0 = {
|
|
|
72702
72715
|
});
|
|
72703
72716
|
return;
|
|
72704
72717
|
} else if (J.kind === "header" && ut.columns.hasIndex(Ie)) {
|
|
72705
|
-
|
|
72718
|
+
O?.(Fe, { ...J, preventDefault: ie });
|
|
72706
72719
|
return;
|
|
72707
72720
|
} else if (J.kind === El) {
|
|
72708
72721
|
if (Fe < 0)
|
|
@@ -72744,7 +72757,7 @@ const U0 = {
|
|
|
72744
72757
|
S,
|
|
72745
72758
|
pa,
|
|
72746
72759
|
H,
|
|
72747
|
-
|
|
72760
|
+
O,
|
|
72748
72761
|
Z,
|
|
72749
72762
|
Pe,
|
|
72750
72763
|
R,
|
|
@@ -73221,7 +73234,7 @@ const U0 = {
|
|
|
73221
73234
|
pa
|
|
73222
73235
|
]), jt = A.useCallback((J, Te) => {
|
|
73223
73236
|
const Se = J.location[0] - tt;
|
|
73224
|
-
if (J.kind === "header" &&
|
|
73237
|
+
if (J.kind === "header" && O?.(Se, { ...J, preventDefault: Te }), J.kind === El) {
|
|
73225
73238
|
if (Se < 0)
|
|
73226
73239
|
return;
|
|
73227
73240
|
Z?.(Se, { ...J, preventDefault: Te });
|
|
@@ -73237,7 +73250,7 @@ const U0 = {
|
|
|
73237
73250
|
ut,
|
|
73238
73251
|
H,
|
|
73239
73252
|
Z,
|
|
73240
|
-
|
|
73253
|
+
O,
|
|
73241
73254
|
tt,
|
|
73242
73255
|
Nt
|
|
73243
73256
|
]), mr = A.useCallback(async (J) => {
|
|
@@ -73787,17 +73800,17 @@ function lfe(t, e) {
|
|
|
73787
73800
|
const $ = nh(S.text, i, h).width;
|
|
73788
73801
|
let L = 0;
|
|
73789
73802
|
S.img !== void 0 && s.loadOrGetImage(S.img, o, a) !== void 0 && (L = C - 8 + 4);
|
|
73790
|
-
const
|
|
73803
|
+
const N = $ + L + b * 2;
|
|
73791
73804
|
D.push({
|
|
73792
73805
|
x: w,
|
|
73793
|
-
width:
|
|
73794
|
-
}), w +=
|
|
73806
|
+
width: N
|
|
73807
|
+
}), w += N + E;
|
|
73795
73808
|
}
|
|
73796
73809
|
if (x !== null) {
|
|
73797
|
-
const { el: S, height: k, middleWidth: $, sideWidth: L, width:
|
|
73810
|
+
const { el: S, height: k, middleWidth: $, sideWidth: L, width: N, dpr: P, padding: U } = x, M = L / P, j = U / P;
|
|
73798
73811
|
for (const W of D) {
|
|
73799
73812
|
const Y = Math.floor(W.x), R = Math.floor(W.width), H = R - (M - j) * 2;
|
|
73800
|
-
i.imageSmoothingEnabled = !1, i.drawImage(S, 0, 0, L, k, Y - j, y, M, m), H > 0 && i.drawImage(S, L, 0, $, k, Y + (M - j), y, H, m), i.drawImage(S,
|
|
73813
|
+
i.imageSmoothingEnabled = !1, i.drawImage(S, 0, 0, L, k, Y - j, y, M, m), H > 0 && i.drawImage(S, L, 0, $, k, Y + (M - j), y, H, m), i.drawImage(S, N - L, 0, L, k, Y + R - (M - j), y, M, m), i.imageSmoothingEnabled = !0;
|
|
73801
73814
|
}
|
|
73802
73815
|
}
|
|
73803
73816
|
i.beginPath();
|
|
@@ -73805,11 +73818,11 @@ function lfe(t, e) {
|
|
|
73805
73818
|
const $ = e[S];
|
|
73806
73819
|
let L = k.x + b;
|
|
73807
73820
|
if ($.img !== void 0) {
|
|
73808
|
-
const
|
|
73809
|
-
if (
|
|
73821
|
+
const N = s.loadOrGetImage($.img, o, a);
|
|
73822
|
+
if (N !== void 0) {
|
|
73810
73823
|
const P = C - 8;
|
|
73811
|
-
let U = 0, M = 0, j =
|
|
73812
|
-
j > W ? (U += (j - W) / 2, j = W) : W > j && (M += (W - j) / 2, W = j), i.beginPath(), Ql(i, L, y + m / 2 - P / 2, P, P, r.roundingRadius ?? 3), i.save(), i.clip(), i.drawImage(
|
|
73824
|
+
let U = 0, M = 0, j = N.width, W = N.height;
|
|
73825
|
+
j > W ? (U += (j - W) / 2, j = W) : W > j && (M += (W - j) / 2, W = j), i.beginPath(), Ql(i, L, y + m / 2 - P / 2, P, P, r.roundingRadius ?? 3), i.save(), i.clip(), i.drawImage(N, U, M, j, W, L, y + m / 2 - P / 2, P, P), i.restore(), L += P + 4;
|
|
73813
73826
|
}
|
|
73814
73827
|
}
|
|
73815
73828
|
i.beginPath(), i.fillStyle = r.textBubble, i.fillText($.text, L, y + m / 2 + Su(i, r));
|
|
@@ -74057,7 +74070,7 @@ function vfe(t, e, n, r, i) {
|
|
|
74057
74070
|
height: d - 1
|
|
74058
74071
|
};
|
|
74059
74072
|
}
|
|
74060
|
-
const Efe = A.lazy(async () => await import("./number-overlay-editor-
|
|
74073
|
+
const Efe = A.lazy(async () => await import("./number-overlay-editor-DTkHoOvV.js")), _fe = {
|
|
74061
74074
|
getAccessibilityString: (t) => t.data?.toString() ?? "",
|
|
74062
74075
|
kind: dn.Number,
|
|
74063
74076
|
needsHover: (t) => t.hoverEffect === !0,
|
|
@@ -74418,7 +74431,7 @@ function zfe({
|
|
|
74418
74431
|
}
|
|
74419
74432
|
] : [];
|
|
74420
74433
|
return [...oe, ...fe, ...be];
|
|
74421
|
-
}, [x.columns, x.rows, S, k, g]), [L,
|
|
74434
|
+
}, [x.columns, x.rows, S, k, g]), [L, N] = bt(null), P = Ti(() => {
|
|
74422
74435
|
const oe = Array.isArray(x.rows) ? x.rows : [];
|
|
74423
74436
|
if (!y) return oe;
|
|
74424
74437
|
const fe = y.toLowerCase();
|
|
@@ -74434,7 +74447,7 @@ function zfe({
|
|
|
74434
74447
|
});
|
|
74435
74448
|
}, [x.rows, y, D]);
|
|
74436
74449
|
it.useEffect(() => {
|
|
74437
|
-
|
|
74450
|
+
N(null);
|
|
74438
74451
|
}, [g, P.length]);
|
|
74439
74452
|
const U = Ti(() => {
|
|
74440
74453
|
const oe = WE(), fe = u === "dark", be = fe ? "#e2e8f0" : "#1e293b", ge = fe ? "#09090b" : "#ffffff", Ae = fe ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.1)";
|
|
@@ -74501,7 +74514,7 @@ function zfe({
|
|
|
74501
74514
|
}
|
|
74502
74515
|
}),
|
|
74503
74516
|
[Y, L, u]
|
|
74504
|
-
), [H, I] = bt(),
|
|
74517
|
+
), [H, I] = bt(), O = it.useRef({ key: null, rows: 0 }), q = $n(!1), Z = Ri(() => {
|
|
74505
74518
|
if (!k || !P.length) return;
|
|
74506
74519
|
const oe = P.reduce((fe, be, ge) => {
|
|
74507
74520
|
const Ae = k.getRowId ? k.getRowId(be) : null, ke = k.hiddenSet?.has(Ae);
|
|
@@ -74519,14 +74532,14 @@ function zfe({
|
|
|
74519
74532
|
}, [k, P]);
|
|
74520
74533
|
it.useEffect(() => {
|
|
74521
74534
|
if (!k) {
|
|
74522
|
-
I(void 0),
|
|
74535
|
+
I(void 0), O.current = { key: null, rows: 0 };
|
|
74523
74536
|
return;
|
|
74524
74537
|
}
|
|
74525
|
-
const oe =
|
|
74538
|
+
const oe = O.current;
|
|
74526
74539
|
if (oe.key === g && oe.rows === P.length && H) return;
|
|
74527
74540
|
q.current = !0;
|
|
74528
74541
|
const fe = Z();
|
|
74529
|
-
I(fe),
|
|
74542
|
+
I(fe), O.current = { key: g, rows: P.length }, requestAnimationFrame(() => {
|
|
74530
74543
|
q.current = !1;
|
|
74531
74544
|
});
|
|
74532
74545
|
}, [g, P.length, k, Z]);
|
|
@@ -74684,20 +74697,20 @@ function zfe({
|
|
|
74684
74697
|
},
|
|
74685
74698
|
onItemHovered: (oe) => {
|
|
74686
74699
|
if (!oe || oe.kind !== "cell") {
|
|
74687
|
-
L !== null &&
|
|
74700
|
+
L !== null && N(null);
|
|
74688
74701
|
return;
|
|
74689
74702
|
}
|
|
74690
74703
|
const fe = oe.location;
|
|
74691
74704
|
if (!Array.isArray(fe)) {
|
|
74692
|
-
L !== null &&
|
|
74705
|
+
L !== null && N(null);
|
|
74693
74706
|
return;
|
|
74694
74707
|
}
|
|
74695
74708
|
const [be, ge] = fe, Ae = j[be];
|
|
74696
74709
|
if (!Ae || Ae.id !== "__zoom") {
|
|
74697
|
-
L !== null &&
|
|
74710
|
+
L !== null && N(null);
|
|
74698
74711
|
return;
|
|
74699
74712
|
}
|
|
74700
|
-
(!L || L.col !== be || L.row !== ge) &&
|
|
74713
|
+
(!L || L.col !== be || L.row !== ge) && N({ col: be, row: ge });
|
|
74701
74714
|
},
|
|
74702
74715
|
onGridSelectionChange: (oe) => {
|
|
74703
74716
|
if (console.log("[DataGridView] onGridSelectionChange", oe), q.current) {
|
|
@@ -75079,9 +75092,9 @@ const GA = it.forwardRef((t, e) => {
|
|
|
75079
75092
|
} = t, k = Ti(() => ({
|
|
75080
75093
|
...g9,
|
|
75081
75094
|
...s
|
|
75082
|
-
}), []), [$, L] = bt(k),
|
|
75083
|
-
|
|
75084
|
-
}, [
|
|
75095
|
+
}), []), [$, L] = bt(k), N = o !== void 0, P = N ? { ...g9, ...o } : $, U = Ri((_e, ve) => {
|
|
75096
|
+
N ? a?.({ ...P, [_e]: ve }, _e) : L((rt) => ({ ...rt, [_e]: ve }));
|
|
75097
|
+
}, [N, P, a]), M = Ri((_e) => (ve) => U(_e, ve), [U]), j = $n(null), [W, Y] = bt(null), [R, H] = bt(!0), [I, O] = bt(null), [q, Z] = bt(["cluster", "species", "geneType"]), [ce, oe] = bt(["species", "branchLength", "support"]), [fe, be] = bt([]), [ge, Ae] = bt(!1), [ke, lt] = bt(!1), [Ee, Ce] = bt(!1), [Xe, ot] = bt(!1), [_t, ze] = bt(!1), [Mt, an] = bt(!1), [sn, Ct] = bt(null), [wt, At] = bt(null), [Vt, Ut] = bt(/* @__PURE__ */ new Set()), [Qt, qe] = bt(/* @__PURE__ */ new Set()), xe = Ti(() => ({
|
|
75085
75098
|
...Kt,
|
|
75086
75099
|
...D
|
|
75087
75100
|
}), [D]);
|
|
@@ -75289,7 +75302,7 @@ const GA = it.forwardRef((t, e) => {
|
|
|
75289
75302
|
domain: fe
|
|
75290
75303
|
});
|
|
75291
75304
|
} catch (ve) {
|
|
75292
|
-
console.error("[HoodiniDashboard] Data loading failed:", ve),
|
|
75305
|
+
console.error("[HoodiniDashboard] Data loading failed:", ve), O(ve), C?.(ve);
|
|
75293
75306
|
} finally {
|
|
75294
75307
|
H(!1), b?.(!1);
|
|
75295
75308
|
}
|