@weng-lab/genomebrowser 1.7.9 → 1.7.10
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/genomebrowser.es.js +93 -93
- package/dist/genomebrowser.es.js.map +1 -1
- package/package.json +1 -1
package/dist/genomebrowser.es.js
CHANGED
|
@@ -403,7 +403,7 @@ function Ll() {
|
|
|
403
403
|
}
|
|
404
404
|
}));
|
|
405
405
|
}
|
|
406
|
-
const
|
|
406
|
+
const Yt = Ll();
|
|
407
407
|
function rd(e) {
|
|
408
408
|
const t = e.slice(1), r = parseInt(t.slice(0, 2), 16), n = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
|
|
409
409
|
return (0.299 * r + 0.587 * n + 0.114 * i) / 255 > 0.5 ? "#000000" : "#ffffff";
|
|
@@ -461,7 +461,7 @@ var eo = function(e, t) {
|
|
|
461
461
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
462
462
|
}, eo(e, t);
|
|
463
463
|
};
|
|
464
|
-
function
|
|
464
|
+
function Ut(e, t) {
|
|
465
465
|
if (typeof t != "function" && t !== null)
|
|
466
466
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
467
467
|
eo(e, t);
|
|
@@ -584,7 +584,7 @@ var Ui = "Invariant Violation", Ls = Object.setPrototypeOf, id = Ls === void 0 ?
|
|
|
584
584
|
} : Ls, Ml = (
|
|
585
585
|
/** @class */
|
|
586
586
|
(function(e) {
|
|
587
|
-
|
|
587
|
+
Ut(t, e);
|
|
588
588
|
function t(r) {
|
|
589
589
|
r === void 0 && (r = Ui);
|
|
590
590
|
var n = e.call(this, typeof r == "number" ? Ui + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
|
|
@@ -3923,7 +3923,7 @@ function Ii(e, t) {
|
|
|
3923
3923
|
}
|
|
3924
3924
|
return null;
|
|
3925
3925
|
}
|
|
3926
|
-
function
|
|
3926
|
+
function Xt(e) {
|
|
3927
3927
|
return e.alias ? e.alias.value : e.name.value;
|
|
3928
3928
|
}
|
|
3929
3929
|
function uo(e, t, r) {
|
|
@@ -3931,7 +3931,7 @@ function uo(e, t, r) {
|
|
|
3931
3931
|
var o = a[i];
|
|
3932
3932
|
if (fr(o)) {
|
|
3933
3933
|
if (o.name.value === "__typename")
|
|
3934
|
-
return e[
|
|
3934
|
+
return e[Xt(o)];
|
|
3935
3935
|
} else n ? n.push(o) : n = [o];
|
|
3936
3936
|
}
|
|
3937
3937
|
if (typeof e.__typename == "string")
|
|
@@ -5235,7 +5235,7 @@ function Ks(e) {
|
|
|
5235
5235
|
var qr = (
|
|
5236
5236
|
/** @class */
|
|
5237
5237
|
(function(e) {
|
|
5238
|
-
|
|
5238
|
+
Ut(t, e);
|
|
5239
5239
|
function t(r) {
|
|
5240
5240
|
var n = e.call(this, function(i) {
|
|
5241
5241
|
return n.addObserver(i), function() {
|
|
@@ -5612,10 +5612,10 @@ var Lp = function(e) {
|
|
|
5612
5612
|
return Ge(r) && r.message || "Error message not found.";
|
|
5613
5613
|
}).join(`
|
|
5614
5614
|
`);
|
|
5615
|
-
},
|
|
5615
|
+
}, Qt = (
|
|
5616
5616
|
/** @class */
|
|
5617
5617
|
(function(e) {
|
|
5618
|
-
|
|
5618
|
+
Ut(t, e);
|
|
5619
5619
|
function t(r) {
|
|
5620
5620
|
var n = r.graphQLErrors, i = r.protocolErrors, a = r.clientErrors, o = r.networkError, s = r.errorMessage, c = r.extraInfo, u = e.call(this, s) || this;
|
|
5621
5621
|
return u.name = "ApolloError", u.graphQLErrors = n || [], u.protocolErrors = i || [], u.clientErrors = a || [], u.networkError = o || null, u.message = s || Lp(u), u.extraInfo = c, u.cause = lt(lt(lt([
|
|
@@ -5908,7 +5908,7 @@ var nc = Ot(function() {
|
|
|
5908
5908
|
}, Df = (
|
|
5909
5909
|
/** @class */
|
|
5910
5910
|
(function(e) {
|
|
5911
|
-
|
|
5911
|
+
Ut(t, e);
|
|
5912
5912
|
function t(r) {
|
|
5913
5913
|
r === void 0 && (r = {});
|
|
5914
5914
|
var n = e.call(this, Qp(r).request) || this;
|
|
@@ -6043,7 +6043,7 @@ function di(e, t, r, n) {
|
|
|
6043
6043
|
if (i.has(a) || (i.add(a), !zn(a, n.variables)) || cc(a))
|
|
6044
6044
|
return !0;
|
|
6045
6045
|
if (fr(a)) {
|
|
6046
|
-
var o =
|
|
6046
|
+
var o = Xt(a), s = t && t[o], c = r && r[o], u = a.selectionSet;
|
|
6047
6047
|
if (!u)
|
|
6048
6048
|
return Be(s, c);
|
|
6049
6049
|
var l = Array.isArray(s), f = Array.isArray(c);
|
|
@@ -6114,7 +6114,7 @@ function Dn(e, t, r, n, i) {
|
|
|
6114
6114
|
for (var _ = 0, T = t.selections; _ < T.length; _++) {
|
|
6115
6115
|
var w = T[_], m = void 0;
|
|
6116
6116
|
if (n && o.add(s), w.kind === he.FIELD) {
|
|
6117
|
-
var g =
|
|
6117
|
+
var g = Xt(w), b = w.selectionSet;
|
|
6118
6118
|
if (m = s[g] || e[g], m === void 0)
|
|
6119
6119
|
continue;
|
|
6120
6120
|
if (b && m !== null) {
|
|
@@ -6295,7 +6295,7 @@ globalThis.__DEV__ !== !1 && (Af.prototype.getMemoryInternals = v0);
|
|
|
6295
6295
|
var Nf = (
|
|
6296
6296
|
/** @class */
|
|
6297
6297
|
(function(e) {
|
|
6298
|
-
|
|
6298
|
+
Ut(t, e);
|
|
6299
6299
|
function t(r, n, i, a) {
|
|
6300
6300
|
var o, s = e.call(this, r) || this;
|
|
6301
6301
|
if (s.message = r, s.path = n, s.query = i, s.variables = a, Array.isArray(s.path)) {
|
|
@@ -6345,7 +6345,7 @@ function xo(e, t, r) {
|
|
|
6345
6345
|
return xo(e, n, r);
|
|
6346
6346
|
}) : e.selections.every(function(n) {
|
|
6347
6347
|
if (fr(n) && zn(n, r)) {
|
|
6348
|
-
var i =
|
|
6348
|
+
var i = Xt(n);
|
|
6349
6349
|
return it.call(t, i) && (!n.selectionSet || xo(n.selectionSet, t[i], r));
|
|
6350
6350
|
}
|
|
6351
6351
|
return !0;
|
|
@@ -6597,7 +6597,7 @@ function fc(e, t) {
|
|
|
6597
6597
|
var t = (
|
|
6598
6598
|
/** @class */
|
|
6599
6599
|
(function(r) {
|
|
6600
|
-
|
|
6600
|
+
Ut(n, r);
|
|
6601
6601
|
function n(i) {
|
|
6602
6602
|
var a = i.policies, o = i.resultCaching, s = o === void 0 ? !0 : o, c = i.seed, u = r.call(this, a, new Uf(s)) || this;
|
|
6603
6603
|
return u.stump = new av(u), u.storageTrie = new Jt(Cr), c && u.replace(c), u;
|
|
@@ -6616,7 +6616,7 @@ function fc(e, t) {
|
|
|
6616
6616
|
var ir = (
|
|
6617
6617
|
/** @class */
|
|
6618
6618
|
(function(e) {
|
|
6619
|
-
|
|
6619
|
+
Ut(t, e);
|
|
6620
6620
|
function t(r, n, i, a) {
|
|
6621
6621
|
var o = e.call(this, n.policies, a) || this;
|
|
6622
6622
|
return o.id = r, o.parent = n, o.replay = i, o.group = a, i(o), o;
|
|
@@ -6651,7 +6651,7 @@ var ir = (
|
|
|
6651
6651
|
), av = (
|
|
6652
6652
|
/** @class */
|
|
6653
6653
|
(function(e) {
|
|
6654
|
-
|
|
6654
|
+
Ut(t, e);
|
|
6655
6655
|
function t(r) {
|
|
6656
6656
|
return e.call(this, "EntityStore.Stump", r, function() {
|
|
6657
6657
|
}, new Uf(r.group.caching, r.group)) || this;
|
|
@@ -6839,7 +6839,7 @@ var cv = (
|
|
|
6839
6839
|
field: b,
|
|
6840
6840
|
variables: o.variables,
|
|
6841
6841
|
from: i
|
|
6842
|
-
}, o), D =
|
|
6842
|
+
}, o), D = Xt(b);
|
|
6843
6843
|
C === void 0 ? Zo.added(b) || (d = h.merge(d, (x = {}, x[D] = "Can't find field '".concat(b.name.value, "' on ").concat(Pe(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), x))) : Ye(C) ? C.length > 0 && (C = _(r.executeSubSelectedArray({
|
|
6844
6844
|
field: b,
|
|
6845
6845
|
array: C,
|
|
@@ -7387,7 +7387,7 @@ var mv = (
|
|
|
7387
7387
|
o,
|
|
7388
7388
|
l
|
|
7389
7389
|
).forEach(function(b, x) {
|
|
7390
|
-
var E, C =
|
|
7390
|
+
var E, C = Xt(x), D = i[C];
|
|
7391
7391
|
if (d.add(x), D !== void 0) {
|
|
7392
7392
|
var I = c.getStoreFieldName({
|
|
7393
7393
|
typename: l,
|
|
@@ -7413,7 +7413,7 @@ var mv = (
|
|
|
7413
7413
|
} else globalThis.__DEV__ !== !1 && !b.clientOnly && !b.deferred && !Zo.added(x) && // If the field has a read function, it may be a synthetic field or
|
|
7414
7414
|
// provide a default value, so its absence from the written data should
|
|
7415
7415
|
// not be cause for alarm.
|
|
7416
|
-
!c.getReadFunction(l, x.name.value) && globalThis.__DEV__ !== !1 && ce.error(13,
|
|
7416
|
+
!c.getReadFunction(l, x.name.value) && globalThis.__DEV__ !== !1 && ce.error(13, Xt(x), i);
|
|
7417
7417
|
});
|
|
7418
7418
|
try {
|
|
7419
7419
|
var h = c.identify(i, {
|
|
@@ -7579,7 +7579,7 @@ function gv(e, t, r, n) {
|
|
|
7579
7579
|
var Qf = (
|
|
7580
7580
|
/** @class */
|
|
7581
7581
|
(function(e) {
|
|
7582
|
-
|
|
7582
|
+
Ut(t, e);
|
|
7583
7583
|
function t(r) {
|
|
7584
7584
|
r === void 0 && (r = {});
|
|
7585
7585
|
var n = e.call(this) || this;
|
|
@@ -7759,7 +7759,7 @@ function Wr(e) {
|
|
|
7759
7759
|
var Tc = Object.assign, yv = Object.hasOwnProperty, Mn = (
|
|
7760
7760
|
/** @class */
|
|
7761
7761
|
(function(e) {
|
|
7762
|
-
|
|
7762
|
+
Ut(t, e);
|
|
7763
7763
|
function t(r) {
|
|
7764
7764
|
var n = r.queryManager, i = r.queryInfo, a = r.options, o = this, s = t.inactiveOnCreation.getValue();
|
|
7765
7765
|
o = e.call(this, function(m) {
|
|
@@ -8080,7 +8080,7 @@ var Tc = Object.assign, yv = Object.hasOwnProperty, Mn = (
|
|
|
8080
8080
|
Be(i.variables, d) && (f(), i.reportResult(m, d));
|
|
8081
8081
|
},
|
|
8082
8082
|
error: function(m) {
|
|
8083
|
-
Be(i.variables, d) && (kf(m) || (m = new
|
|
8083
|
+
Be(i.variables, d) && (kf(m) || (m = new Qt({ networkError: m })), f(), i.reportError(m, d));
|
|
8084
8084
|
}
|
|
8085
8085
|
};
|
|
8086
8086
|
return !a && (T || !this.concast) && (this.concast && this.observer && this.concast.removeObserver(this.observer), this.concast = _, this.observer = w), _.addObserver(w), _;
|
|
@@ -8362,7 +8362,7 @@ var xv = Object.prototype.hasOwnProperty, Dc = /* @__PURE__ */ Object.create(nul
|
|
|
8362
8362
|
}), this.broadcastQueries(), s = this, [2, new Promise(function(j, W) {
|
|
8363
8363
|
return Gi(s.getObservableFromLink(l, z(z({}, M), { optimisticResponse: o ? d : void 0 }), f, {}, !1), function(V) {
|
|
8364
8364
|
if (hi(V) && D === "none")
|
|
8365
|
-
throw new
|
|
8365
|
+
throw new Qt({
|
|
8366
8366
|
graphQLErrors: po(V)
|
|
8367
8367
|
});
|
|
8368
8368
|
a && (a.loading = !1, a.error = null);
|
|
@@ -8393,7 +8393,7 @@ var xv = Object.prototype.hasOwnProperty, Dc = /* @__PURE__ */ Object.create(nul
|
|
|
8393
8393
|
}) }));
|
|
8394
8394
|
},
|
|
8395
8395
|
error: function(V) {
|
|
8396
|
-
a && (a.loading = !1, a.error = V), o && s.cache.removeOptimistic(n), s.broadcastQueries(), W(V instanceof
|
|
8396
|
+
a && (a.loading = !1, a.error = V), o && s.cache.removeOptimistic(n), s.broadcastQueries(), W(V instanceof Qt ? V : new Qt({
|
|
8397
8397
|
networkError: V
|
|
8398
8398
|
}));
|
|
8399
8399
|
}
|
|
@@ -8676,7 +8676,7 @@ var xv = Object.prototype.hasOwnProperty, Dc = /* @__PURE__ */ Object.create(nul
|
|
|
8676
8676
|
if (w || m) {
|
|
8677
8677
|
var g = {};
|
|
8678
8678
|
if (w && (g.graphQLErrors = T.errors), m && (g.protocolErrors = T.extensions[rs]), s === "none" || m)
|
|
8679
|
-
throw new
|
|
8679
|
+
throw new Qt(g);
|
|
8680
8680
|
}
|
|
8681
8681
|
return s === "ignore" && delete T.errors, T;
|
|
8682
8682
|
});
|
|
@@ -8749,7 +8749,7 @@ var xv = Object.prototype.hasOwnProperty, Dc = /* @__PURE__ */ Object.create(nul
|
|
|
8749
8749
|
var s = po(o), c = s.length > 0, u = n.errorPolicy;
|
|
8750
8750
|
if (i >= t.lastRequestId) {
|
|
8751
8751
|
if (c && u === "none")
|
|
8752
|
-
throw t.markError(new
|
|
8752
|
+
throw t.markError(new Qt({
|
|
8753
8753
|
graphQLErrors: s
|
|
8754
8754
|
}));
|
|
8755
8755
|
t.markResult(o, a, n, r), t.markReady();
|
|
@@ -8761,7 +8761,7 @@ var xv = Object.prototype.hasOwnProperty, Dc = /* @__PURE__ */ Object.create(nul
|
|
|
8761
8761
|
};
|
|
8762
8762
|
return c && u === "none" && (l.data = void 0), c && u !== "ignore" && (l.errors = s, l.networkStatus = Ie.error), l;
|
|
8763
8763
|
}, function(o) {
|
|
8764
|
-
var s = kf(o) ? o : new
|
|
8764
|
+
var s = kf(o) ? o : new Qt({ networkError: o });
|
|
8765
8765
|
throw i >= t.lastRequestId && t.markError(s), s;
|
|
8766
8766
|
});
|
|
8767
8767
|
}, e.prototype.fetchConcastWithInfo = function(t, r, n, i) {
|
|
@@ -9072,7 +9072,7 @@ var xv = Object.prototype.hasOwnProperty, Dc = /* @__PURE__ */ Object.create(nul
|
|
|
9072
9072
|
/*return*/
|
|
9073
9073
|
] : zn(d, s) ? fr(d) ? [2, this.resolveField(d, r, n, i).then(function(w) {
|
|
9074
9074
|
var m;
|
|
9075
|
-
typeof w < "u" && c.push((m = {}, m[
|
|
9075
|
+
typeof w < "u" && c.push((m = {}, m[Xt(d)] = w, m));
|
|
9076
9076
|
})] : (A0(d) ? h = d : (h = a[d.name.value], ce(h, 21, d.name.value)), h && h.typeCondition && (_ = h.typeCondition.name.value, i.fragmentMatcher(n, _, o)) ? [2, this.resolveSelectionSet(h.selectionSet, r, n, i).then(function(w) {
|
|
9077
9077
|
c.push(w);
|
|
9078
9078
|
})] : [
|
|
@@ -9093,7 +9093,7 @@ var xv = Object.prototype.hasOwnProperty, Dc = /* @__PURE__ */ Object.create(nul
|
|
|
9093
9093
|
return ar(this, void 0, void 0, function() {
|
|
9094
9094
|
var a, o, s, c, u, l, f, d, h, _ = this;
|
|
9095
9095
|
return or(this, function(T) {
|
|
9096
|
-
return n ? (a = i.variables, o = t.name.value, s =
|
|
9096
|
+
return n ? (a = i.variables, o = t.name.value, s = Xt(t), c = o !== s, u = n[s] || n[o], l = Promise.resolve(u), (!i.onlyRunForcedResolvers || this.shouldForceResolvers(t)) && (f = n.__typename || i.defaultOperationType, d = this.resolvers && this.resolvers[f], d && (h = d[c ? o : s], h && (l = Promise.resolve(
|
|
9097
9097
|
// In case the resolve function accesses reactive variables,
|
|
9098
9098
|
// set cacheSlot to the current cache instance.
|
|
9099
9099
|
is.withValue(this.cache, h, [
|
|
@@ -9483,21 +9483,21 @@ function na(e) {
|
|
|
9483
9483
|
return !0;
|
|
9484
9484
|
}
|
|
9485
9485
|
}
|
|
9486
|
-
var
|
|
9486
|
+
var Gt;
|
|
9487
9487
|
(function(e) {
|
|
9488
9488
|
e[e.Query = 0] = "Query", e[e.Mutation = 1] = "Mutation", e[e.Subscription = 2] = "Subscription";
|
|
9489
|
-
})(
|
|
9489
|
+
})(Gt || (Gt = {}));
|
|
9490
9490
|
var wr;
|
|
9491
9491
|
function Lc(e) {
|
|
9492
9492
|
var t;
|
|
9493
9493
|
switch (e) {
|
|
9494
|
-
case
|
|
9494
|
+
case Gt.Query:
|
|
9495
9495
|
t = "Query";
|
|
9496
9496
|
break;
|
|
9497
|
-
case
|
|
9497
|
+
case Gt.Mutation:
|
|
9498
9498
|
t = "Mutation";
|
|
9499
9499
|
break;
|
|
9500
|
-
case
|
|
9500
|
+
case Gt.Subscription:
|
|
9501
9501
|
t = "Subscription";
|
|
9502
9502
|
break;
|
|
9503
9503
|
}
|
|
@@ -9541,7 +9541,7 @@ function eh(e) {
|
|
|
9541
9541
|
o.length,
|
|
9542
9542
|
c.length,
|
|
9543
9543
|
s.length
|
|
9544
|
-
), n = o.length ?
|
|
9544
|
+
), n = o.length ? Gt.Query : Gt.Mutation, !o.length && !s.length && (n = Gt.Subscription);
|
|
9545
9545
|
var d = o.length ? o : s.length ? s : c;
|
|
9546
9546
|
ce(d.length === 1, 98, e, d.length);
|
|
9547
9547
|
var h = d[0];
|
|
@@ -9614,7 +9614,7 @@ function Wv(e, t) {
|
|
|
9614
9614
|
function Hv(e, t, r, n, i) {
|
|
9615
9615
|
function a(f) {
|
|
9616
9616
|
var d;
|
|
9617
|
-
Pv(t,
|
|
9617
|
+
Pv(t, Gt.Query);
|
|
9618
9618
|
var h = {
|
|
9619
9619
|
client: e,
|
|
9620
9620
|
query: t,
|
|
@@ -9769,7 +9769,7 @@ function us(e, t, r, n) {
|
|
|
9769
9769
|
}
|
|
9770
9770
|
function ko(e, t, r, n, i, a, o) {
|
|
9771
9771
|
var s = t.current;
|
|
9772
|
-
s && s.data && (t.previousData = s.data), !e.error && Et(e.errors) && (e.error = new
|
|
9772
|
+
s && s.data && (t.previousData = s.data), !e.error && Et(e.errors) && (e.error = new Qt({ graphQLErrors: e.errors })), t.current = wi(Jv(e, r, i), t.previousData, r, n), a(), Xv(e, s == null ? void 0 : s.networkStatus, o);
|
|
9773
9773
|
}
|
|
9774
9774
|
function Xv(e, t, r) {
|
|
9775
9775
|
if (!e.loading) {
|
|
@@ -9790,7 +9790,7 @@ function To(e, t) {
|
|
|
9790
9790
|
return (e == null ? void 0 : e.fetchPolicy) || ((r = t == null ? void 0 : t.watchQuery) === null || r === void 0 ? void 0 : r.fetchPolicy) || "cache-first";
|
|
9791
9791
|
}
|
|
9792
9792
|
function Zv(e) {
|
|
9793
|
-
return Et(e.errors) ? new
|
|
9793
|
+
return Et(e.errors) ? new Qt({ graphQLErrors: e.errors }) : e.error;
|
|
9794
9794
|
}
|
|
9795
9795
|
function wi(e, t, r, n) {
|
|
9796
9796
|
var i = e.data;
|
|
@@ -10342,7 +10342,7 @@ function um() {
|
|
|
10342
10342
|
case "hex":
|
|
10343
10343
|
return y >>> 1;
|
|
10344
10344
|
case "base64":
|
|
10345
|
-
return
|
|
10345
|
+
return Vt(R).length;
|
|
10346
10346
|
default:
|
|
10347
10347
|
if (k)
|
|
10348
10348
|
return N ? -1 : qe(R).length;
|
|
@@ -10509,7 +10509,7 @@ function um() {
|
|
|
10509
10509
|
return gt(De(v), R, y, N);
|
|
10510
10510
|
}
|
|
10511
10511
|
function j(R, v, y, N) {
|
|
10512
|
-
return gt(
|
|
10512
|
+
return gt(Vt(v), R, y, N);
|
|
10513
10513
|
}
|
|
10514
10514
|
function W(R, v, y, N) {
|
|
10515
10515
|
return gt(vt(v, R.length - y), R, y, N);
|
|
@@ -11018,7 +11018,7 @@ function um() {
|
|
|
11018
11018
|
y = R.charCodeAt(U), N = y >> 8, k = y % 256, P.push(k), P.push(N);
|
|
11019
11019
|
return P;
|
|
11020
11020
|
}
|
|
11021
|
-
function
|
|
11021
|
+
function Vt(R) {
|
|
11022
11022
|
return t.toByteArray(ht(R));
|
|
11023
11023
|
}
|
|
11024
11024
|
function gt(R, v, y, N) {
|
|
@@ -11728,7 +11728,7 @@ function cn() {
|
|
|
11728
11728
|
};
|
|
11729
11729
|
return ti.BinaryParser = e, ti;
|
|
11730
11730
|
}
|
|
11731
|
-
var
|
|
11731
|
+
var Ht = {}, bn = {}, fu;
|
|
11732
11732
|
function Wn() {
|
|
11733
11733
|
return fu || (fu = 1, (function(e) {
|
|
11734
11734
|
var t = bn && bn.__awaiter || function(l, f, d, h) {
|
|
@@ -11895,9 +11895,9 @@ const Im = {}, Rm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
11895
11895
|
}, Symbol.toStringTag, { value: "Module" })), Ai = /* @__PURE__ */ Gh(Rm);
|
|
11896
11896
|
var hu;
|
|
11897
11897
|
function lh() {
|
|
11898
|
-
if (hu) return
|
|
11898
|
+
if (hu) return Ht;
|
|
11899
11899
|
hu = 1;
|
|
11900
|
-
var e =
|
|
11900
|
+
var e = Ht && Ht.__awaiter || function(T, w, m, g) {
|
|
11901
11901
|
return new (m || (m = Promise))(function(b, x) {
|
|
11902
11902
|
function E(I) {
|
|
11903
11903
|
try {
|
|
@@ -11921,7 +11921,7 @@ function lh() {
|
|
|
11921
11921
|
D((g = g.apply(T, w || [])).next());
|
|
11922
11922
|
});
|
|
11923
11923
|
};
|
|
11924
|
-
Object.defineProperty(
|
|
11924
|
+
Object.defineProperty(Ht, "__esModule", { value: !0 });
|
|
11925
11925
|
const t = Wn(), r = cn(), n = fs(), i = Ai, a = 32768, o = 3e6, s = 16;
|
|
11926
11926
|
function c() {
|
|
11927
11927
|
const T = "TCAG", w = [];
|
|
@@ -11951,7 +11951,7 @@ function lh() {
|
|
|
11951
11951
|
return D;
|
|
11952
11952
|
});
|
|
11953
11953
|
}
|
|
11954
|
-
|
|
11954
|
+
Ht.loadTwoBitHeaderData = l;
|
|
11955
11955
|
function f(T, w, m) {
|
|
11956
11956
|
return e(this, void 0, void 0, function* () {
|
|
11957
11957
|
let g = new t.BufferedDataLoader(T, o);
|
|
@@ -11981,7 +11981,7 @@ function lh() {
|
|
|
11981
11981
|
return C.reserved = x.getUInt(), C.offset = E, C;
|
|
11982
11982
|
});
|
|
11983
11983
|
}
|
|
11984
|
-
|
|
11984
|
+
Ht.loadSequenceRecord = f;
|
|
11985
11985
|
function d(T) {
|
|
11986
11986
|
let w = "";
|
|
11987
11987
|
for (let m = 0; m < T; ++m)
|
|
@@ -12002,7 +12002,7 @@ function lh() {
|
|
|
12002
12002
|
return D.push(null), D;
|
|
12003
12003
|
});
|
|
12004
12004
|
}
|
|
12005
|
-
|
|
12005
|
+
Ht.streamSequence = h;
|
|
12006
12006
|
function _(T, w, m, g, b) {
|
|
12007
12007
|
return e(this, void 0, void 0, function* () {
|
|
12008
12008
|
let x = [], E = [], C = "";
|
|
@@ -12029,7 +12029,7 @@ function lh() {
|
|
|
12029
12029
|
}), C;
|
|
12030
12030
|
});
|
|
12031
12031
|
}
|
|
12032
|
-
return
|
|
12032
|
+
return Ht.loadSequence = _, Ht;
|
|
12033
12033
|
}
|
|
12034
12034
|
var du;
|
|
12035
12035
|
function fs() {
|
|
@@ -12408,7 +12408,7 @@ function Lm() {
|
|
|
12408
12408
|
/*SMALLEST*/
|
|
12409
12409
|
], we(k, P), Fe(U, Ee, k.bl_count);
|
|
12410
12410
|
}
|
|
12411
|
-
function
|
|
12411
|
+
function Vt(k, P, U) {
|
|
12412
12412
|
var ie, B = -1, G, O = P[1], ee = 0, Ee = 7, p = 4;
|
|
12413
12413
|
for (O === 0 && (Ee = 138, p = 3), P[(U + 1) * 2 + 1] = 65535, ie = 0; ie <= U; ie++)
|
|
12414
12414
|
G = O, O = P[(ie + 1) * 2 + 1], !(++ee < Ee && G === O) && (ee < p ? k.bl_tree[G * 2] += ee : G !== 0 ? (G !== B && k.bl_tree[G * 2]++, k.bl_tree[E * 2]++) : ee <= 10 ? k.bl_tree[C * 2]++ : k.bl_tree[D * 2]++, ee = 0, B = G, O === 0 ? (Ee = 138, p = 3) : G === O ? (Ee = 6, p = 3) : (Ee = 7, p = 4));
|
|
@@ -12427,7 +12427,7 @@ function Lm() {
|
|
|
12427
12427
|
}
|
|
12428
12428
|
function $e(k) {
|
|
12429
12429
|
var P;
|
|
12430
|
-
for (
|
|
12430
|
+
for (Vt(k, k.dyn_ltree, k.l_desc.max_code), Vt(k, k.dyn_dtree, k.d_desc.max_code), vt(k, k.bl_desc), P = T - 1; P >= 3 && k.bl_tree[j[P] * 2 + 1] === 0; P--)
|
|
12431
12431
|
;
|
|
12432
12432
|
return k.opt_len += 3 * (P + 1) + 5 + 5 + 4, P;
|
|
12433
12433
|
}
|
|
@@ -12558,12 +12558,12 @@ function Mm() {
|
|
|
12558
12558
|
function vt(p, X) {
|
|
12559
12559
|
p.pending_buf[p.pending++] = X >>> 8 & 255, p.pending_buf[p.pending++] = X & 255;
|
|
12560
12560
|
}
|
|
12561
|
-
function
|
|
12561
|
+
function Vt(p, X, J, L) {
|
|
12562
12562
|
var q = p.avail_in;
|
|
12563
12563
|
return q > L && (q = L), q === 0 ? 0 : (p.avail_in -= q, e.arraySet(X, p.input, p.next_in, q, J), p.state.wrap === 1 ? p.adler = r(p.adler, X, q, J) : p.state.wrap === 2 && (p.adler = n(p.adler, X, q, J)), p.next_in += q, p.total_in += q, q);
|
|
12564
12564
|
}
|
|
12565
12565
|
function gt(p, X) {
|
|
12566
|
-
var J = p.max_chain_length, L = p.strstart, q, Y, be = p.prev_length, pe = p.nice_match, me = p.strstart > p.w_size - oe ? p.strstart - (p.w_size - oe) : 0, Re = p.window,
|
|
12566
|
+
var J = p.max_chain_length, L = p.strstart, q, Y, be = p.prev_length, pe = p.nice_match, me = p.strstart > p.w_size - oe ? p.strstart - (p.w_size - oe) : 0, Re = p.window, $t = p.w_mask, He = p.prev, Le = p.strstart + fe, et = Re[L + be - 1], ft = Re[L + be];
|
|
12567
12567
|
p.prev_length >= p.good_match && (J >>= 2), pe > p.lookahead && (pe = p.lookahead);
|
|
12568
12568
|
do
|
|
12569
12569
|
if (q = X, !(Re[q + be] !== ft || Re[q + be - 1] !== et || Re[q] !== Re[L] || Re[++q] !== Re[L + 1])) {
|
|
@@ -12577,7 +12577,7 @@ function Mm() {
|
|
|
12577
12577
|
et = Re[L + be - 1], ft = Re[L + be];
|
|
12578
12578
|
}
|
|
12579
12579
|
}
|
|
12580
|
-
while ((X = He[X &
|
|
12580
|
+
while ((X = He[X & $t]) > me && --J !== 0);
|
|
12581
12581
|
return be <= p.lookahead ? be : p.lookahead;
|
|
12582
12582
|
}
|
|
12583
12583
|
function $e(p) {
|
|
@@ -12596,7 +12596,7 @@ function Mm() {
|
|
|
12596
12596
|
}
|
|
12597
12597
|
if (p.strm.avail_in === 0)
|
|
12598
12598
|
break;
|
|
12599
|
-
if (L =
|
|
12599
|
+
if (L = Vt(p.strm, p.window, p.strstart + p.lookahead, Y), p.lookahead += L, p.lookahead + p.insert >= Q)
|
|
12600
12600
|
for (be = p.strstart - p.insert, p.ins_h = p.window[be], p.ins_h = (p.ins_h << p.hash_shift ^ p.window[be + 1]) & p.hash_mask; p.insert && (p.ins_h = (p.ins_h << p.hash_shift ^ p.window[be + Q - 1]) & p.hash_mask, p.prev[be & p.w_mask] = p.head[p.ins_h], p.head[p.ins_h] = be, be++, p.insert--, !(p.lookahead + p.insert < Q)); )
|
|
12601
12601
|
;
|
|
12602
12602
|
} while (p.lookahead < oe && p.strm.avail_in !== 0);
|
|
@@ -12823,10 +12823,10 @@ function Mm() {
|
|
|
12823
12823
|
return !p || !p.state ? d : (X = p.state.status, X !== F && X !== K && X !== ne && X !== ue && X !== ge && X !== de && X !== se ? Ae(p, d) : (p.state = null, X === de ? Ae(p, h) : l));
|
|
12824
12824
|
}
|
|
12825
12825
|
function Ee(p, X) {
|
|
12826
|
-
var J = X.length, L, q, Y, be, pe, me, Re,
|
|
12826
|
+
var J = X.length, L, q, Y, be, pe, me, Re, $t;
|
|
12827
12827
|
if (!p || !p.state || (L = p.state, be = L.wrap, be === 2 || be === 1 && L.status !== F || L.lookahead))
|
|
12828
12828
|
return d;
|
|
12829
|
-
for (be === 1 && (p.adler = r(p.adler, X, J, 0)), L.wrap = 0, J >= L.w_size && (be === 0 && (ot(L.head), L.strstart = 0, L.block_start = 0, L.insert = 0),
|
|
12829
|
+
for (be === 1 && (p.adler = r(p.adler, X, J, 0)), L.wrap = 0, J >= L.w_size && (be === 0 && (ot(L.head), L.strstart = 0, L.block_start = 0, L.insert = 0), $t = new e.Buf8(L.w_size), e.arraySet($t, X, J - L.w_size, L.w_size, 0), X = $t, J = L.w_size), pe = p.avail_in, me = p.next_in, Re = p.input, p.avail_in = J, p.next_in = 0, p.input = X, $e(L); L.lookahead >= Q; ) {
|
|
12830
12830
|
q = L.strstart, Y = L.lookahead - (Q - 1);
|
|
12831
12831
|
do
|
|
12832
12832
|
L.ins_h = (L.ins_h << L.hash_shift ^ L.window[q + Q - 1]) & L.hash_mask, L.prev[q & L.w_mask] = L.head[L.ins_h], L.head[L.ins_h] = q, q++;
|
|
@@ -13262,7 +13262,7 @@ function Pm() {
|
|
|
13262
13262
|
function vt(B) {
|
|
13263
13263
|
return (B >>> 24 & 255) + (B >>> 8 & 65280) + ((B & 65280) << 8) + ((B & 255) << 24);
|
|
13264
13264
|
}
|
|
13265
|
-
function
|
|
13265
|
+
function Vt() {
|
|
13266
13266
|
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new e.Buf16(320), this.work = new e.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
13267
13267
|
}
|
|
13268
13268
|
function gt(B) {
|
|
@@ -13279,7 +13279,7 @@ function Pm() {
|
|
|
13279
13279
|
}
|
|
13280
13280
|
function jt(B, G) {
|
|
13281
13281
|
var O, ee;
|
|
13282
|
-
return B ? (ee = new
|
|
13282
|
+
return B ? (ee = new Vt(), B.state = ee, ee.window = null, O = Nt(B, G), O !== f && (B.state = null), O) : _;
|
|
13283
13283
|
}
|
|
13284
13284
|
function Ze(B) {
|
|
13285
13285
|
return jt(B, De);
|
|
@@ -13307,7 +13307,7 @@ function Pm() {
|
|
|
13307
13307
|
return p.window === null && (p.wsize = 1 << p.wbits, p.wnext = 0, p.whave = 0, p.window = new e.Buf8(p.wsize)), ee >= p.wsize ? (e.arraySet(p.window, G, O - p.wsize, p.wsize, 0), p.wnext = 0, p.whave = p.wsize) : (Ee = p.wsize - p.wnext, Ee > ee && (Ee = ee), e.arraySet(p.window, G, O - ee, Ee, p.wnext), ee -= Ee, ee ? (e.arraySet(p.window, G, O - ee, ee, 0), p.wnext = ee, p.whave = p.wsize) : (p.wnext += Ee, p.wnext === p.wsize && (p.wnext = 0), p.whave < p.wsize && (p.whave += Ee))), 0;
|
|
13308
13308
|
}
|
|
13309
13309
|
function k(B, G) {
|
|
13310
|
-
var O, ee, Ee, p, X, J, L, q, Y, be, pe, me, Re,
|
|
13310
|
+
var O, ee, Ee, p, X, J, L, q, Y, be, pe, me, Re, $t, He = 0, Le, et, ft, mt, Hn, Qn, Je, xt, st = new e.Buf8(4), Wt, Pt, Ts = (
|
|
13311
13311
|
/* permutation of code lengths */
|
|
13312
13312
|
[16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
|
|
13313
13313
|
);
|
|
@@ -13539,7 +13539,7 @@ function Pm() {
|
|
|
13539
13539
|
}
|
|
13540
13540
|
for (; O.have < 19; )
|
|
13541
13541
|
O.lens[Ts[O.have++]] = 0;
|
|
13542
|
-
if (O.lencode = O.lendyn, O.lenbits = 7,
|
|
13542
|
+
if (O.lencode = O.lendyn, O.lenbits = 7, Wt = { bits: O.lenbits }, xt = i(a, O.lens, 0, 19, O.lencode, 0, O.work, Wt), O.lenbits = Wt.bits, xt) {
|
|
13543
13543
|
B.msg = "invalid code lengths set", O.mode = ae;
|
|
13544
13544
|
break;
|
|
13545
13545
|
}
|
|
@@ -13595,11 +13595,11 @@ function Pm() {
|
|
|
13595
13595
|
B.msg = "invalid code -- missing end-of-block", O.mode = ae;
|
|
13596
13596
|
break;
|
|
13597
13597
|
}
|
|
13598
|
-
if (O.lenbits = 9,
|
|
13598
|
+
if (O.lenbits = 9, Wt = { bits: O.lenbits }, xt = i(o, O.lens, 0, O.nlen, O.lencode, 0, O.work, Wt), O.lenbits = Wt.bits, xt) {
|
|
13599
13599
|
B.msg = "invalid literal/lengths set", O.mode = ae;
|
|
13600
13600
|
break;
|
|
13601
13601
|
}
|
|
13602
|
-
if (O.distbits = 6, O.distcode = O.distdyn,
|
|
13602
|
+
if (O.distbits = 6, O.distcode = O.distdyn, Wt = { bits: O.distbits }, xt = i(s, O.lens, O.nlen, O.ndist, O.distcode, 0, O.work, Wt), O.distbits = Wt.bits, xt) {
|
|
13603
13603
|
B.msg = "invalid distances set", O.mode = ae;
|
|
13604
13604
|
break;
|
|
13605
13605
|
}
|
|
@@ -13695,12 +13695,12 @@ function Pm() {
|
|
|
13695
13695
|
B.msg = "invalid distance too far back", O.mode = ae;
|
|
13696
13696
|
break;
|
|
13697
13697
|
}
|
|
13698
|
-
me > O.wnext ? (me -= O.wnext, Re = O.wsize - me) : Re = O.wnext - me, me > O.length && (me = O.length),
|
|
13698
|
+
me > O.wnext ? (me -= O.wnext, Re = O.wsize - me) : Re = O.wnext - me, me > O.length && (me = O.length), $t = O.window;
|
|
13699
13699
|
} else
|
|
13700
|
-
|
|
13700
|
+
$t = Ee, Re = X - O.offset, me = O.length;
|
|
13701
13701
|
me > L && (me = L), L -= me, O.length -= me;
|
|
13702
13702
|
do
|
|
13703
|
-
Ee[X++] =
|
|
13703
|
+
Ee[X++] = $t[Re++];
|
|
13704
13704
|
while (--me);
|
|
13705
13705
|
O.length === 0 && (O.mode = ne);
|
|
13706
13706
|
break;
|
|
@@ -15111,7 +15111,7 @@ const bg = (e) => {
|
|
|
15111
15111
|
{ renderPoints: n, range: { max: -1 / 0, min: 1 / 0 } }
|
|
15112
15112
|
);
|
|
15113
15113
|
};
|
|
15114
|
-
function
|
|
15114
|
+
function zt(e) {
|
|
15115
15115
|
const t = _e((s) => s.getExpandedDomain), [r, n] = Me(t()), i = It((s) => s.isFetching);
|
|
15116
15116
|
Ue(() => {
|
|
15117
15117
|
i || n(t());
|
|
@@ -15189,7 +15189,7 @@ function wh({
|
|
|
15189
15189
|
onLeave: c,
|
|
15190
15190
|
tooltip: u
|
|
15191
15191
|
}) {
|
|
15192
|
-
const { totalWidth: l, sideWidth: f } = i, { x: d, reverseX: h } =
|
|
15192
|
+
const { totalWidth: l, sideWidth: f } = i, { x: d, reverseX: h } = zt(l), _ = xe(() => xg(t || [], d), [t, d]), { handleClick: T, handleHover: w, handleLeave: m } = kt({
|
|
15193
15193
|
onClick: o,
|
|
15194
15194
|
onHover: s,
|
|
15195
15195
|
onLeave: c,
|
|
@@ -15243,7 +15243,7 @@ function Eg(e) {
|
|
|
15243
15243
|
if (e = e.replace(/[^0-9a-f]/gi, ""), e.length === 3 && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]), e.length === 8 && (e = e.substring(0, 6)), e.length !== 6) throw new Error(e + " is not a valid hex color");
|
|
15244
15244
|
return e;
|
|
15245
15245
|
}
|
|
15246
|
-
function
|
|
15246
|
+
function Zt(e, t) {
|
|
15247
15247
|
e = Eg(e);
|
|
15248
15248
|
let r = "#";
|
|
15249
15249
|
for (let n = 0; n < 3; ++n) {
|
|
@@ -15253,7 +15253,7 @@ function Ut(e, t) {
|
|
|
15253
15253
|
return r;
|
|
15254
15254
|
}
|
|
15255
15255
|
function Co(e, t) {
|
|
15256
|
-
return
|
|
15256
|
+
return Zt(e, -0.2);
|
|
15257
15257
|
}
|
|
15258
15258
|
const qn = (e) => {
|
|
15259
15259
|
const t = e.slice(1), r = parseInt(t.slice(0, 2), 16), n = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
|
|
@@ -15312,9 +15312,9 @@ function kg({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: a })
|
|
|
15312
15312
|
const j = gg(T, 1);
|
|
15313
15313
|
return m.renderPoints.filter((V) => V.min < 1 / 0 && V.max > -1 / 0).map((V) => {
|
|
15314
15314
|
const Z = j(V.max);
|
|
15315
|
-
return
|
|
15315
|
+
return Zt(r, Z / 1.25);
|
|
15316
15316
|
});
|
|
15317
|
-
}, [r, m, T]), b =
|
|
15317
|
+
}, [r, m, T]), b = Yt((j) => j.text), { mouseState: x, updateMouseState: E, clearMouseState: C } = ps(_, c, h, o), D = xe(() => {
|
|
15318
15318
|
var j;
|
|
15319
15319
|
return (j = x.pos) != null && j.x ? x.pos.x - h + o : 0;
|
|
15320
15320
|
}, [(A = x.pos) == null ? void 0 : A.x, h, o]), { handleHover: I, handleLeave: M } = kt({
|
|
@@ -17216,7 +17216,7 @@ function cl({
|
|
|
17216
17216
|
}
|
|
17217
17217
|
const Qe = 80;
|
|
17218
17218
|
function zg() {
|
|
17219
|
-
const e = _e((f) => f.getTrackDimensions), { sideWidth: t, totalWidth: r } = e(), n = _e((f) => f.getExpandedDomain), i = _e((f) => f.getDomain), [a, o] = Me(n()), s = It((f) => f.isFetching), { x: c } =
|
|
17219
|
+
const e = _e((f) => f.getTrackDimensions), { sideWidth: t, totalWidth: r } = e(), n = _e((f) => f.getExpandedDomain), i = _e((f) => f.getDomain), [a, o] = Me(n()), s = It((f) => f.isFetching), { x: c } = zt(r);
|
|
17220
17220
|
Ue(() => {
|
|
17221
17221
|
s || o(n());
|
|
17222
17222
|
}, [s, n]);
|
|
@@ -17507,7 +17507,7 @@ function Jg({
|
|
|
17507
17507
|
onLeave: s,
|
|
17508
17508
|
tooltip: c
|
|
17509
17509
|
}) {
|
|
17510
|
-
const { totalWidth: u, sideWidth: l } = n, { x: f, reverseX: d } =
|
|
17510
|
+
const { totalWidth: u, sideWidth: l } = n, { x: f, reverseX: d } = zt(u), h = xe(() => {
|
|
17511
17511
|
const g = t ? [...t] : [];
|
|
17512
17512
|
return _g(g, f);
|
|
17513
17513
|
}, [t, f]), _ = Bi(h.length, e), { handleClick: T, handleHover: w, handleLeave: m } = kt({
|
|
@@ -17668,7 +17668,7 @@ function oy({
|
|
|
17668
17668
|
onLeave: l,
|
|
17669
17669
|
tooltip: f
|
|
17670
17670
|
}) {
|
|
17671
|
-
const { totalWidth: d, sideWidth: h } = i, { x: _, reverseX: T } =
|
|
17671
|
+
const { totalWidth: d, sideWidth: h } = i, { x: _, reverseX: T } = zt(d), w = 10, m = xe(() => t == null ? void 0 : t.map((I) => ey(I)), [t]), g = xe(() => ji(m, _, w), [m, _, w]), b = Bi(g.length, e), x = xe(
|
|
17672
17672
|
() => g.map((I, M) => ({
|
|
17673
17673
|
y: M * b,
|
|
17674
17674
|
transcripts: I.map((A) => Rh(A, _, b, d))
|
|
@@ -17747,7 +17747,7 @@ function sy({
|
|
|
17747
17747
|
onLeave: l,
|
|
17748
17748
|
tooltip: f
|
|
17749
17749
|
}) {
|
|
17750
|
-
const { totalWidth: d, sideWidth: h } = i, { x: _, reverseX: T } =
|
|
17750
|
+
const { totalWidth: d, sideWidth: h } = i, { x: _, reverseX: T } = zt(d), w = 10, m = xe(() => ny(t || []), [t]), g = xe(() => ji(m, _, w), [m, _, w]), b = Bi(g.length, e), x = xe(
|
|
17751
17751
|
() => g.map((I, M) => ({
|
|
17752
17752
|
y: M * b,
|
|
17753
17753
|
transcripts: I.map((A) => Rh(A, _, b, d))
|
|
@@ -18825,7 +18825,7 @@ function Jb({
|
|
|
18825
18825
|
onLeave: c,
|
|
18826
18826
|
tooltip: u
|
|
18827
18827
|
}) {
|
|
18828
|
-
const { totalWidth: l, sideWidth: f } = n, { x: d } =
|
|
18828
|
+
const { totalWidth: l, sideWidth: f } = n, { x: d } = zt(l), h = xe(() => yl(t.occurrenceRect, d), [t]), _ = xe(() => yl(t.peaks, d), [t]), { handleClick: T, handleHover: w, handleLeave: m } = kt({
|
|
18829
18829
|
onClick: o,
|
|
18830
18830
|
onHover: s,
|
|
18831
18831
|
onLeave: c,
|
|
@@ -18877,7 +18877,7 @@ function Kb({
|
|
|
18877
18877
|
onLeave: c,
|
|
18878
18878
|
tooltip: u
|
|
18879
18879
|
}) {
|
|
18880
|
-
const { totalWidth: l, sideWidth: f } = n, { x: d } =
|
|
18880
|
+
const { totalWidth: l, sideWidth: f } = n, { x: d } = zt(l), h = xe(() => gl(t.occurrenceRect, d), [t, d]), _ = xe(() => gl(t.peaks, d), [t, d]), T = Bi(h.length, e), { handleClick: w, handleHover: m, handleLeave: g } = kt({
|
|
18881
18881
|
onClick: o,
|
|
18882
18882
|
onHover: s,
|
|
18883
18883
|
onLeave: c,
|
|
@@ -19204,14 +19204,14 @@ function sx(e, t, r, n, i, a) {
|
|
|
19204
19204
|
let d = Rt(0, c), h = Rt(0, c), _ = "", T = "", w = "";
|
|
19205
19205
|
return e.forEach((m) => {
|
|
19206
19206
|
const g = Math.max(s.min, Math.min(s.max, m.min)), b = Math.max(s.min, Math.min(s.max, m.max)), x = Zr(g, s, { min: 0, max: t }), E = Zr(b, s, { min: 0, max: t });
|
|
19207
|
-
d += Se(m.x, c) + Se(m.x, t - x) + Se(m.x + 1, t - x) + Se(m.x + 1, c), h += Se(m.x, c) + Se(m.x, t - E) + Se(m.x + 1, t - E) + Se(m.x + 1, c), n && m.min < n.min && (T += `M ${m.x} ${t} l 0 -2 `), n && m.max > n.max && (_ += `M ${m.x} 0 l 0 2 `), a && m.min === 0 && m.max === 0 && (w += `M ${m.x} ${c} v -
|
|
19207
|
+
d += Se(m.x, c) + Se(m.x, t - x) + Se(m.x + 1, t - x) + Se(m.x + 1, c), h += Se(m.x, c) + Se(m.x, t - E) + Se(m.x + 1, t - E) + Se(m.x + 1, c), n && m.min < n.min && (T += `M ${m.x} ${t} l 0 -2 `), n && m.max > n.max && (_ += `M ${m.x} 0 l 0 2 `), a && m.min === 0 && m.max === 0 && (w += `M ${m.x} ${c} v -1 h 1 v 1 `);
|
|
19208
19208
|
}), /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
|
19209
|
-
s.min < 0 ? /* @__PURE__ */ S.jsx("path", { d, fill:
|
|
19209
|
+
s.min < 0 ? /* @__PURE__ */ S.jsx("path", { d, fill: Zt(r, 0.2) }) : null,
|
|
19210
19210
|
/* @__PURE__ */ S.jsx("line", { x1: 0, y1: c, x2: 4190, y2: c, stroke: i, strokeWidth: 1 }),
|
|
19211
19211
|
/* @__PURE__ */ S.jsx("path", { d: h, fill: r }),
|
|
19212
19212
|
/* @__PURE__ */ S.jsx("path", { d: _, stroke: f, strokeWidth: "2", fill: "none" }),
|
|
19213
19213
|
/* @__PURE__ */ S.jsx("path", { d: T, stroke: f, strokeWidth: "2", fill: "none" }),
|
|
19214
|
-
a && w && /* @__PURE__ */ S.jsx("path", { d: w, fill:
|
|
19214
|
+
a && w && /* @__PURE__ */ S.jsx("path", { d: w, fill: r })
|
|
19215
19215
|
] });
|
|
19216
19216
|
}
|
|
19217
19217
|
const xl = (e, t, r, n, i) => {
|
|
@@ -19224,7 +19224,7 @@ const xl = (e, t, r, n, i) => {
|
|
|
19224
19224
|
if (e.ldblocksnpid === "Lead") return e.rsquare;
|
|
19225
19225
|
const r = e.ldblocksnpid.split(",").map((a) => a.trim()), n = e.rsquare.split(",").map((a) => a.trim()), i = r.indexOf(t);
|
|
19226
19226
|
return i >= 0 && i < n.length ? n[i] : n[0] || e.rsquare;
|
|
19227
|
-
}, cx = (e) => e.ldblocksnpid === "Lead" ? e.rsquare : e.rsquare.split(",").map((r) => r.trim())[0] || e.rsquare, ur = (e) => e.rsquare.includes("*") || e.ldblocksnpid.includes("Lead"), ux = (e, t) => ur(e) ? t :
|
|
19227
|
+
}, cx = (e) => e.ldblocksnpid === "Lead" ? e.rsquare : e.rsquare.split(",").map((r) => r.trim())[0] || e.rsquare, ur = (e) => e.rsquare.includes("*") || e.ldblocksnpid.includes("Lead"), ux = (e, t) => ur(e) ? t : Zt(t, 0.3);
|
|
19228
19228
|
function lx({
|
|
19229
19229
|
id: e,
|
|
19230
19230
|
data: t,
|
|
@@ -19238,7 +19238,7 @@ function lx({
|
|
|
19238
19238
|
onLeave: u,
|
|
19239
19239
|
tooltip: l
|
|
19240
19240
|
}) {
|
|
19241
|
-
const { totalWidth: f, sideWidth: d } = i, h =
|
|
19241
|
+
const { totalWidth: f, sideWidth: d } = i, h = Yt((H) => H.text), _ = 4, T = _e((H) => H.getExpandedDomain), w = Oe((H) => H.editTrack), { x: m } = zt(f), g = r / 3, b = 2 * r / 3, x = xe(() => {
|
|
19242
19242
|
const H = T(), re = t == null ? void 0 : t.filter((Q) => {
|
|
19243
19243
|
const fe = Q.start >= H.start, oe = Q.stop <= H.end, $ = Q.chromosome === H.chromosome;
|
|
19244
19244
|
return fe && oe && $;
|
|
@@ -19295,7 +19295,7 @@ function lx({
|
|
|
19295
19295
|
"path",
|
|
19296
19296
|
{
|
|
19297
19297
|
d: xl(re, H, r, b, g),
|
|
19298
|
-
stroke: qn(n) ?
|
|
19298
|
+
stroke: qn(n) ? Zt(n, 0.5) : Co(n),
|
|
19299
19299
|
strokeWidth: Oo(H.rsquare),
|
|
19300
19300
|
fill: "none",
|
|
19301
19301
|
opacity: 0.5
|
|
@@ -19309,7 +19309,7 @@ function lx({
|
|
|
19309
19309
|
"path",
|
|
19310
19310
|
{
|
|
19311
19311
|
d: xl(H, re, r, b, g),
|
|
19312
|
-
stroke: qn(n) ?
|
|
19312
|
+
stroke: qn(n) ? Zt(n, 0.5) : Co(n),
|
|
19313
19313
|
strokeWidth: Oo(H.rsquare),
|
|
19314
19314
|
fill: "none",
|
|
19315
19315
|
opacity: 0.5
|
|
@@ -19377,7 +19377,7 @@ function lx({
|
|
|
19377
19377
|
] });
|
|
19378
19378
|
}
|
|
19379
19379
|
function fx(e) {
|
|
19380
|
-
const t =
|
|
19380
|
+
const t = Yt((n) => n.text), r = Yt((n) => n.background);
|
|
19381
19381
|
return /* @__PURE__ */ S.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
|
|
19382
19382
|
/* @__PURE__ */ S.jsx("rect", { width: 180, height: 50, y: 0, fill: r }),
|
|
19383
19383
|
/* @__PURE__ */ S.jsx("text", { fontSize: 14, x: 5, y: 16, children: e.snpid }),
|
|
@@ -19405,7 +19405,7 @@ function hx({
|
|
|
19405
19405
|
onLeave: l,
|
|
19406
19406
|
tooltip: f
|
|
19407
19407
|
}) {
|
|
19408
|
-
const { totalWidth: d, sideWidth: h } = s, _ =
|
|
19408
|
+
const { totalWidth: d, sideWidth: h } = s, _ = Yt((D) => D.text), T = _e((D) => D.getExpandedDomain), w = _e((D) => D.marginWidth), { x: m } = zt(d), g = 4, { handleHover: b } = kt({
|
|
19409
19409
|
onClick: c,
|
|
19410
19410
|
onHover: u,
|
|
19411
19411
|
onLeave: l,
|
|
@@ -19474,7 +19474,7 @@ function hx({
|
|
|
19474
19474
|
] });
|
|
19475
19475
|
}
|
|
19476
19476
|
function dx(e) {
|
|
19477
|
-
const t =
|
|
19477
|
+
const t = Yt((n) => n.text), r = Yt((n) => n.background);
|
|
19478
19478
|
return /* @__PURE__ */ S.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
|
|
19479
19479
|
/* @__PURE__ */ S.jsx("rect", { width: 180, height: 50, y: 0, fill: r }),
|
|
19480
19480
|
/* @__PURE__ */ S.jsx("text", { fontSize: 14, x: 8, y: 16, children: e.snpId }),
|
|
@@ -19504,7 +19504,7 @@ function px({
|
|
|
19504
19504
|
onLeave: u,
|
|
19505
19505
|
tooltip: l
|
|
19506
19506
|
}) {
|
|
19507
|
-
const { totalWidth: f, sideWidth: d } = o, { x: h } =
|
|
19507
|
+
const { totalWidth: f, sideWidth: d } = o, { x: h } = zt(f), _ = i / 3, T = 2, w = xe(() => t.map((x) => ({
|
|
19508
19508
|
...x,
|
|
19509
19509
|
pixelStart: h(x.start),
|
|
19510
19510
|
pixelEnd: h(x.end)
|
|
@@ -19524,7 +19524,7 @@ function px({
|
|
|
19524
19524
|
"path",
|
|
19525
19525
|
{
|
|
19526
19526
|
d: Z,
|
|
19527
|
-
stroke: qn(a) ?
|
|
19527
|
+
stroke: qn(a) ? Zt(a, 0.5) : Co(a),
|
|
19528
19528
|
strokeWidth: Oo(x),
|
|
19529
19529
|
fill: "none",
|
|
19530
19530
|
opacity: 0.5
|
|
@@ -19549,7 +19549,7 @@ function px({
|
|
|
19549
19549
|
] });
|
|
19550
19550
|
}
|
|
19551
19551
|
function vx(e) {
|
|
19552
|
-
const t =
|
|
19552
|
+
const t = Yt((n) => n.text), r = Yt((n) => n.background);
|
|
19553
19553
|
return /* @__PURE__ */ S.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
|
|
19554
19554
|
/* @__PURE__ */ S.jsx("rect", { width: 180, height: 50, y: 0, fill: r }),
|
|
19555
19555
|
/* @__PURE__ */ S.jsx("text", { fontSize: 14, x: 5, y: 16, children: e.snpId }),
|
|
@@ -20877,11 +20877,11 @@ function v1(e) {
|
|
|
20877
20877
|
const m1 = /* @__PURE__ */ new Map([
|
|
20878
20878
|
["stalk", (e) => e.stalk],
|
|
20879
20879
|
["gvar", (e) => e.default],
|
|
20880
|
-
["gneg", (e) =>
|
|
20880
|
+
["gneg", (e) => Zt(e.default, 0.9)]
|
|
20881
20881
|
]);
|
|
20882
20882
|
function g1(e) {
|
|
20883
20883
|
var r;
|
|
20884
|
-
const t = e.type.slice(0, 4) === "gpos" ?
|
|
20884
|
+
const t = e.type.slice(0, 4) === "gpos" ? Zt(e.colors.default, 1 - +e.type.replace(/gpos/g, "") / 100) : (r = m1.get(e.type)) == null ? void 0 : r.call(null, e.colors);
|
|
20885
20885
|
return t === void 0 ? null : /* @__PURE__ */ S.jsx(
|
|
20886
20886
|
"rect",
|
|
20887
20887
|
{
|